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
24184 \begin_inset Float table
24189 \begin_layout Plain Layout
24190 \begin_inset Caption
24192 \begin_layout Plain Layout
24193 \begin_inset CommandInset label
24195 name "tab:cap-beside-tab"
24199 This is a caption beside a table.
24207 \begin_layout Plain Layout
24208 \begin_inset Tabular
24209 <lyxtabular version="3" rows="4" columns="5">
24210 <features tabularvalignment="middle">
24211 <column alignment="center" valignment="top" width="0">
24212 <column alignment="center" valignment="top" width="0">
24213 <column alignment="center" valignment="top" width="0">
24214 <column alignment="center" valignment="top" width="0">
24215 <column alignment="center" valignment="top" width="0">
24217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24220 \begin_layout Plain Layout
24226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24229 \begin_layout Plain Layout
24235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24238 \begin_layout Plain Layout
24244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24247 \begin_layout Plain Layout
24253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24256 \begin_layout Plain Layout
24264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24267 \begin_layout Plain Layout
24273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24276 \begin_layout Plain Layout
24282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24285 \begin_layout Plain Layout
24291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24294 \begin_layout Plain Layout
24300 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24303 \begin_layout Plain Layout
24311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24314 \begin_layout Plain Layout
24320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24323 \begin_layout Plain Layout
24329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24332 \begin_layout Plain Layout
24338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24341 \begin_layout Plain Layout
24347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24350 \begin_layout Plain Layout
24358 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24361 \begin_layout Plain Layout
24367 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24370 \begin_layout Plain Layout
24376 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24379 \begin_layout Plain Layout
24385 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24388 \begin_layout Plain Layout
24394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24397 \begin_layout Plain Layout
24416 \begin_layout Standard
24420 \begin_layout Plain Layout
24424 sidecaptionvpos{figure}{c}
24430 \begin_inset Float figure
24435 \begin_layout Plain Layout
24436 \begin_inset Graphics
24437 filename clipart/escher-lsd.eps
24439 scaleBeforeRotation
24446 \begin_layout Plain Layout
24447 \begin_inset Caption
24449 \begin_layout Plain Layout
24450 \begin_inset CommandInset label
24452 name "fig:cap-beside-fig-2"
24456 This is a vertically centered caption beside a figure.
24469 \begin_layout Standard
24473 \begin_layout Plain Layout
24485 \begin_layout Standard
24489 \begin_layout Plain Layout
24501 \begin_layout Standard
24502 \begin_inset Float table
24507 \begin_layout Plain Layout
24508 \begin_inset Caption
24510 \begin_layout Plain Layout
24511 \begin_inset CommandInset label
24513 name "tab:cap-beside-tab-wider"
24517 This is a caption is wider than the one in Table
24518 \begin_inset space ~
24522 \begin_inset CommandInset ref
24524 reference "tab:cap-beside-tab"
24536 \begin_layout Plain Layout
24537 \begin_inset Tabular
24538 <lyxtabular version="3" rows="4" columns="5">
24539 <features tabularvalignment="middle">
24540 <column alignment="center" valignment="top" width="0">
24541 <column alignment="center" valignment="top" width="0">
24542 <column alignment="center" valignment="top" width="0">
24543 <column alignment="center" valignment="top" width="0">
24544 <column alignment="center" valignment="top" width="0">
24546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24549 \begin_layout Plain Layout
24555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24558 \begin_layout Plain Layout
24564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24567 \begin_layout Plain Layout
24573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24576 \begin_layout Plain Layout
24582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24585 \begin_layout Plain Layout
24593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24596 \begin_layout Plain Layout
24602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24605 \begin_layout Plain Layout
24611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24614 \begin_layout Plain Layout
24620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24623 \begin_layout Plain Layout
24629 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24632 \begin_layout Plain Layout
24640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24643 \begin_layout Plain Layout
24649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24652 \begin_layout Plain Layout
24658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24661 \begin_layout Plain Layout
24667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24670 \begin_layout Plain Layout
24676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24679 \begin_layout Plain Layout
24687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24690 \begin_layout Plain Layout
24696 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24699 \begin_layout Plain Layout
24705 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24708 \begin_layout Plain Layout
24714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24717 \begin_layout Plain Layout
24723 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24726 \begin_layout Plain Layout
24745 \begin_layout Standard
24749 \begin_layout Plain Layout
24761 \begin_layout Standard
24765 \begin_layout Plain Layout
24775 \begin_inset Note Note
24778 \begin_layout Plain Layout
24779 The following will be displayed when the LaTeX-package
24791 \begin_layout Standard
24792 You need to install the LaTeX-package
24796 to see the following part of this section in the output.
24799 \begin_layout Standard
24803 \begin_layout Plain Layout
24815 \begin_layout Section
24817 \begin_inset Index idx
24820 \begin_layout Plain Layout
24821 Floats ! Float Lists
24829 \begin_layout Standard
24830 Similar to the table of contents where the sections of the document are
24831 listed, there are listings for all float types, like the figures of the
24833 You can insert them via the
24835 Insert\SpecialChar \menuseparator
24837 \begin_inset space ~
24841 \begin_inset space ~
24849 \begin_layout Standard
24850 The list entries are the float captions or its short title, the float number,
24851 and the page number where they appear in the document.
24854 \begin_layout Standard
24855 You can find the list of figures and tables at the end of this document.
24858 \begin_layout Chapter
24862 \begin_layout Section
24864 \begin_inset Index idx
24867 \begin_layout Plain Layout
24876 \begin_layout Standard
24877 Notes are inserted with the toolbar button
24878 \begin_inset Graphics
24879 filename ../images/note-insert.png
24881 scaleBeforeRotation
24887 Insert\SpecialChar \menuseparator
24891 There are three types of notes:
24894 \begin_layout Description
24896 \begin_inset space ~
24899 Note This note type is for internal notes that won't appear in the output.
24900 Its note-box looks like this:
24901 \begin_inset Newline newline
24905 \begin_inset Newline newline
24909 \begin_inset Graphics
24910 filename clipart/LyXNoteImageQt4.png
24913 scaleBeforeRotation
24918 \begin_inset Note Note
24921 \begin_layout Plain Layout
24922 This is text in a note box that doesn't appear in the output.
24930 \begin_layout Description
24931 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24932 ent, when you export the document to LaTeX via the menu
24934 File\SpecialChar \menuseparator
24935 Export\SpecialChar \menuseparator
24936 LaTeX (pdflatex) / (plain)
24939 Its note-box looks like this:
24940 \begin_inset Newline newline
24944 \begin_inset Newline newline
24948 \begin_inset Graphics
24949 filename clipart/CommentNoteImageQt4.png
24952 scaleBeforeRotation
24957 \begin_inset Note Comment
24960 \begin_layout Plain Layout
24961 This is text in a note box that only appears as comment in LaTeX-files.
24969 \begin_layout Description
24971 \begin_inset space ~
24974 Out This note will appear in the output as grey text.
24975 Its note-box looks like this:
24976 \begin_inset Newline newline
24980 \begin_inset Newline newline
24984 \begin_inset Graphics
24985 filename clipart/GreyedOutNoteImageQt4.png
24988 scaleBeforeRotation
24993 \begin_inset Newline newline
25000 \begin_layout Plain Layout
25004 renewenvironment{lyxgreyedout}
25007 \begin_layout Plain Layout
25011 textcolor[gray]{0.8}
25021 \begin_inset Note Greyedout
25024 \begin_layout Plain Layout
25029 \begin_layout Plain Layout
25030 This is an example footnote within a greyed out note.
25035 of a comment that appears in the output as grey text.
25044 \begin_layout Plain Layout
25048 renewenvironment{lyxgreyedout}
25051 \begin_layout Plain Layout
25065 \begin_inset Note Note
25068 \begin_layout Plain Layout
25069 The greyed out note is here redefined to show it with the original LyX definitio
25070 n because greyed out notes are redefined in the preamble of this document,
25071 as described below, to have blue text.
25077 \begin_inset Newline newline
25081 \begin_inset Newline newline
25084 As you can see in the example, the first line of greyed out notes is a bit
25085 indented and greyed out notes can have footnotes.
25088 \begin_layout Standard
25089 \begin_inset VSpace bigskip
25092 When you use the toolbar button
25093 \begin_inset Graphics
25094 filename ../images/note-insert.png
25096 scaleBeforeRotation
25103 \begin_inset space ~
25109 You can switch between the five note types by right-clicking on the note-box.
25114 If you want to turn existing text into a note, mark it and click on the
25128 To change a note to text, press the backspace key when the cursor is in
25129 the first position of a note, or press the delete key when the cursor is
25130 in the very last position of the note, respectively.
25133 \begin_layout Standard
25134 \begin_inset VSpace bigskip
25137 You can change the text color of the greyed out notes in the menu
25139 Document\SpecialChar \menuseparator
25140 Settings\SpecialChar \menuseparator
25146 \begin_layout Section
25148 \begin_inset CommandInset label
25150 name "sec:Footnotes"
25155 \begin_inset Index idx
25158 \begin_layout Plain Layout
25165 \begin_inset Index idx
25168 \begin_layout Plain Layout
25177 \begin_layout Standard
25178 Footnotes can be inserted using the toolbar button
25179 \begin_inset Graphics
25180 filename ../images/footnote-insert.png
25182 scaleBeforeRotation
25188 Insert\SpecialChar \menuseparator
25200 then the following footnote-box:
25201 \begin_inset Graphics
25202 filename clipart/footnoteQt4.png
25204 scaleBeforeRotation
25212 where you can enter the footnote text.
25213 If you want to turn existing text into a footnote, mark it and click on
25235 to text, press the Backspace key when the cursor is in the first position
25244 , or press the Delete key when the cursor is in the very last position of
25256 \begin_layout Standard
25257 Here is an example footnote:
25265 \begin_layout Plain Layout
25266 \begin_inset CommandInset label
25268 name "foot:This-is-an"
25272 This is an example footnote.
25285 \begin_layout Plain Layout
25289 newcounter{MyRepeatFoot}
25292 \begin_layout Plain Layout
25296 setcounter{MyRepeatFoot}{
25306 \begin_layout Standard
25307 The footnote will appear in the output as a superscript number at the text
25308 position where the footnote box is placed.
25309 The footnote text is placed at the bottom of the current page.
25310 The footnote number is calculated by LaTeX; the numbers are consecutive.
25311 It depends on your document-class, whether the footnote number is reset
25315 \begin_layout Standard
25316 Footnotes can be referenced like floats: Insert a label into the footnote
25317 and cross-reference this label in the text as described in section
25318 \begin_inset space ~
25322 \begin_inset CommandInset ref
25324 reference "sec:Referencing-Floats"
25329 \begin_inset Newline newline
25332 This is a cross-reference of Footnote
25333 \begin_inset space ~
25337 \begin_inset CommandInset ref
25339 reference "foot:This-is-an"
25346 \begin_layout Standard
25347 \begin_inset VSpace defskip
25350 Footnotes in tables are not printed by LaTeX due to technical reasons.
25351 However there exists another method to print them: Instead of the footnote
25358 is inserted as TeX-code.
25359 The text of the footnote is entered as an argument of the TeX-code command
25367 \begin_inset Newline newline
25370 This was done for the following table with the command
25373 \begin_layout Standard
25380 Printed table footnote.
25385 \begin_layout Standard
25386 \begin_inset Tabular
25387 <lyxtabular version="3" rows="2" columns="1">
25388 <features tabularvalignment="middle">
25389 <column alignment="center" valignment="top" width="0">
25391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25394 \begin_layout Plain Layout
25395 This an example text.
25399 \begin_layout Plain Layout
25400 This footnote will not be printed!
25412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25415 \begin_layout Plain Layout
25416 This an example text.
25420 \begin_layout Plain Layout
25443 \begin_layout Plain Layout
25452 Printed table footnote.
25456 \begin_layout Plain Layout
25466 \begin_layout Standard
25467 Footnotes in longtables are described in section
25468 \begin_inset space ~
25472 \begin_inset CommandInset ref
25474 reference "sub:Footnotes-in-Longtables"
25481 \begin_layout Standard
25482 Footnotes in minipage boxes are printed, but inside the box and with a different
25483 numbering because a minipage box is like a page inside a page.
25484 (For more about minipages, see section
25485 \begin_inset space ~
25489 \begin_inset CommandInset ref
25491 reference "sec:Minipages"
25495 .) To get a footnote in the minipage that is output at the bottom of the
25496 page like normal footnotes, also use the method of
25511 \begin_layout Standard
25512 \begin_inset Box Frameless
25522 height_special "totalheight"
25525 \begin_layout Plain Layout
25526 This an example text in a minipage.
25530 \begin_layout Plain Layout
25531 Footnote in the minipage.
25539 \begin_layout Plain Layout
25540 This an example text in a minipage.
25544 \begin_layout Plain Layout
25561 \begin_layout Standard
25565 \begin_layout Plain Layout
25574 Footnote outside the minipage.
25578 \begin_layout Plain Layout
25588 \begin_layout Standard
25589 \begin_inset VSpace defskip
25595 \begin_layout Standard
25596 To refer to the same footnote several times without printing the footnote
25597 text every time, use the command
25601 footnotemark[number]
25604 \begin_inset Newline newline
25607 As you do not know the number of the repeating footnote while you are writing
25608 the text, you have to store its number.
25609 For the following footnote mark example, these commands were inserted in
25610 TeX-code after Footnote
25611 \begin_inset space ~
25615 \begin_inset CommandInset ref
25617 reference "foot:This-is-an"
25621 to store the footnote number:
25624 \begin_layout Standard
25629 newcounter{MyRepeatFoot}
25630 \begin_inset Newline newline
25635 setcounter{MyRepeatFoot}{
25640 \begin_layout Standard
25641 The footnote mark was then created with this command:
25644 \begin_layout Standard
25654 \begin_layout Standard
25655 Here is a repeated footnote:
25663 \begin_layout Plain Layout
25677 \begin_layout Standard
25678 If you want to repeat the previous footnote, you can omit the storage of
25679 the footnote number and just use this command instead:
25682 \begin_layout Standard
25692 \begin_layout Standard
25693 Here is another repeated footnote:
25701 \begin_layout Plain Layout
25715 \begin_layout Subsection
25717 \begin_inset CommandInset label
25719 name "sub:Footnote-Numbering"
25724 \begin_inset Index idx
25727 \begin_layout Plain Layout
25728 Footnotes ! Numbering
25736 \begin_layout Standard
25737 To reset the footnote number back to 1 after each section
25739 , add this command to your document preamble:
25742 \begin_layout Standard
25747 @addtoreset{footnote}{section}
25750 \begin_layout Standard
25751 \begin_inset VSpace bigskip
25754 The following preamble command changes the footnote numbering style to small
25758 \begin_layout Standard
25770 \begin_layout Standard
25774 \begin_layout Plain Layout
25787 This is a footnote with roman numbering:
25791 \begin_layout Plain Layout
25792 This is an example footnote with roman numbering.
25800 \begin_layout Standard
25801 To change the numbering style to capital roman numerals replace in the command
25816 \begin_inset Quotes eld
25820 \begin_inset Quotes erd
25823 footnotes with capital or small Latin letters use
25837 \begin_inset Quotes eld
25841 \begin_inset Quotes erd
25844 footnotes with symbols use
25853 \begin_layout Standard
25854 \begin_inset Note Greyedout
25857 \begin_layout Plain Layout
25862 You can only number 26 footnotes with Latin letters, because this numbering
25863 is limited to single letters.
25869 \begin_inset Newline newline
25873 \begin_inset Note Greyedout
25876 \begin_layout Plain Layout
25881 You can only number 9 footnotes with symbols.
25889 \begin_layout Standard
25890 To return to the default numbering style after you have changed to another
25903 in the command above.
25907 \begin_layout Plain Layout
25923 \begin_layout Standard
25924 \begin_inset VSpace bigskip
25930 \begin_layout Standard
25931 If you want to have footnotes numbered in the scheme
25932 \begin_inset Quotes eld
25936 \begin_inset Quotes erd
25939 , add the following command to your document preamble:
25942 \begin_layout Standard
25947 numberwithin{footnote}{chapter}
25950 \begin_layout Standard
25951 To be able to use the command
25960 \begin_inset space ~
25965 in the document settings the option
25968 \begin_inset space ~
25972 \begin_inset space ~
25976 \begin_inset space ~
25984 \begin_layout Standard
25988 \begin_layout Plain Layout
25992 numberwithin{footnote}{chapter}
25997 This is another example footnote:
26003 \begin_layout Plain Layout
26004 This is a footnote numbered in the scheme
26005 \begin_inset Quotes eld
26009 \begin_inset Quotes erd
26023 \begin_layout Plain Layout
26039 \begin_layout Standard
26040 \begin_inset Note Greyedout
26043 \begin_layout Plain Layout
26054 always prints out the footnote number as arabic number; previous redefinitions
26055 to get non-arabic numbers are overwritten.
26063 \begin_layout Standard
26064 So to get for example the scheme
26065 \begin_inset Quotes eld
26071 \begin_inset Quotes erd
26074 , use this command instead of
26083 \begin_layout Standard
26097 \begin_layout Subsection
26099 \begin_inset Index idx
26102 \begin_layout Plain Layout
26103 Footnotes ! Placement
26111 \begin_layout Standard
26112 If you have several footnotes in one page, they appear without vertical
26113 space between them at the bottom of the page.
26114 To make them more readable you can e.
26115 \begin_inset space \thinspace{}
26119 \begin_inset space \space{}
26123 \begin_inset space \thinspace{}
26126 mm space with the following preamble command:
26129 \begin_layout Standard
26139 \begin_inset Newline newline
26153 \begin_layout Standard
26154 \begin_inset VSpace bigskip
26157 In a two-column document the footnotes appear at the bottom of every column,
26159 \begin_inset space ~
26163 \begin_inset CommandInset ref
26165 reference "fig:Standard-footnote-placement"
26170 If the footnotes should only appear at the bottom of the right column,
26172 \begin_inset space ~
26176 \begin_inset CommandInset ref
26178 reference "fig:Footnote-placement-in"
26182 , use the LaTeX-package
26187 \begin_inset Index idx
26190 \begin_layout Plain Layout
26191 LaTeX-packages ! ftnright
26196 with this command in the document preamble:
26199 \begin_layout Standard
26204 usepackage{ftnright}
26207 \begin_layout Standard
26208 \begin_inset Float figure
26214 \begin_layout Plain Layout
26218 \begin_layout Plain Layout
26228 \begin_inset Graphics
26229 filename clipart/without_fntright.pdf
26231 scaleBeforeRotation
26239 \begin_layout Plain Layout
26249 \begin_layout Plain Layout
26250 \begin_inset Caption
26252 \begin_layout Plain Layout
26253 \begin_inset CommandInset label
26255 name "fig:Standard-footnote-placement"
26259 Standard footnote placement in two-column documents.
26272 \begin_layout Standard
26273 \begin_inset Float figure
26279 \begin_layout Plain Layout
26283 \begin_layout Plain Layout
26293 \begin_inset Graphics
26294 filename clipart/with_fntright.pdf
26296 scaleBeforeRotation
26304 \begin_layout Plain Layout
26314 \begin_layout Plain Layout
26315 \begin_inset Caption
26317 \begin_layout Plain Layout
26318 \begin_inset CommandInset label
26320 name "fig:Footnote-placement-in"
26324 Footnote placement in two-column documents when the LaTeX-package
26341 \begin_layout Standard
26342 \begin_inset VSpace bigskip
26345 In some scientific literature it is usual to collect the footnotes and print
26346 them in a separate paragraph at the end of a section, as in Figure
26347 \begin_inset space ~
26351 \begin_inset CommandInset ref
26353 reference "fig:Endnotes"
26358 They are then called
26359 \begin_inset Quotes eld
26363 \begin_inset Quotes erd
26367 \begin_inset Index idx
26370 \begin_layout Plain Layout
26376 To use endnotes instead of footnotes in your document, load in the menu
26379 Document\SpecialChar \menuseparator
26380 Settings\SpecialChar \menuseparator
26386 \begin_inset space ~
26390 \begin_inset space ~
26396 To insert the collected footnotes, insert the command
26399 \begin_layout Standard
26407 \begin_layout Standard
26408 in TeX-Code at the end of a section or chapter.
26411 \begin_layout Standard
26412 \begin_inset Float figure
26417 \begin_layout Plain Layout
26422 \begin_layout Plain Layout
26432 \begin_inset Graphics
26433 filename clipart/endnotes.pdf
26434 scaleBeforeRotation
26442 \begin_layout Plain Layout
26452 \begin_layout Plain Layout
26453 \begin_inset Caption
26455 \begin_layout Plain Layout
26456 \begin_inset CommandInset label
26458 name "fig:Endnotes"
26462 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26476 \begin_layout Standard
26477 \begin_inset VSpace medskip
26480 The paragraph heading for the endnotes isn't automatically translated into
26481 the document language, this must be done manually.
26482 The following preamble command translates the default English
26483 \begin_inset Quotes eld
26487 \begin_inset Quotes erd
26491 \begin_inset Quotes eld
26495 \begin_inset Quotes erd
26501 \begin_layout Standard
26508 notesname}{Anmerkungen}
26511 \begin_layout Standard
26512 \begin_inset VSpace medskip
26515 The numbering of endnotes can be changed like the footnote numbering as
26516 described in section
26517 \begin_inset space ~
26521 \begin_inset CommandInset ref
26523 reference "sub:Footnote-Numbering"
26527 ; just replace the command
26540 To reset the endnote number use the command
26546 as described in section
26547 \begin_inset space ~
26551 \begin_inset CommandInset ref
26553 reference "sub:Footnote-Numbering"
26557 and replace the command parameter
26568 \begin_layout Standard
26569 For endnotes there is the command
26573 endnotemark[number]
26575 similar to the command
26581 , that is described in section
26582 \begin_inset space ~
26586 \begin_inset CommandInset ref
26588 reference "sec:Footnotes"
26595 \begin_layout Standard
26596 \begin_inset VSpace bigskip
26599 Footnotes can also be placed in the page margin and the footnote text alignment
26600 can be changed, see the LaTeX-package
26605 \begin_inset Index idx
26608 \begin_layout Plain Layout
26609 LaTeX-packages ! footmisc
26615 \begin_inset CommandInset citation
26621 for more information about this.
26624 \begin_layout Standard
26625 For various further footnote formatting issues have a look at LaTeX-books,
26627 \begin_inset CommandInset citation
26629 key "latexcompanion,latexguide,latexbook"
26639 \begin_inset Index idx
26642 \begin_layout Plain Layout
26643 LaTeX-packages ! KOMA-Script
26648 document class, you can adjust all footnote settings using class-specific
26650 \begin_inset CommandInset citation
26659 \begin_layout Section
26661 \begin_inset Index idx
26664 \begin_layout Plain Layout
26665 Notes ! Margin Notes
26673 \begin_layout Standard
26674 Margin notes look and behave in LyX like footnotes.
26675 They are inserted via the menu
26677 Insert\SpecialChar \menuseparator
26679 \begin_inset space ~
26684 or the toolbar button
26685 \begin_inset Graphics
26686 filename ../images/marginalnote-insert.png
26688 scaleBeforeRotation
26703 \begin_inset Quotes eld
26707 \begin_inset Quotes erd
26710 appears where you can enter the text of the margin note.
26713 \begin_layout Standard
26714 At the side is an example margin note.
26719 \begin_inset Marginal
26722 \begin_layout Plain Layout
26723 This is a margin note.
26731 \begin_layout Standard
26732 Margin notes appear at the right side in single-sided documents.
26733 In double-sided documents they appear in the outer margin – left on even
26734 pages, right on odd pages.
26735 The text of margin notes is aligned opposite to the outer margin – right-aligne
26736 d when the note appears in the left margin.
26737 The first line of the margin note is placed at the position of the text
26738 line where it is inserted in the document.
26741 \begin_layout Standard
26742 \begin_inset VSpace bigskip
26745 To place the margin note in the inner margin, add the command
26748 \begin_layout Standard
26756 \begin_layout Standard
26757 in TeX-Code before a margin note.
26758 The new placement is valid for all subsequent margin notes.
26763 \begin_layout Plain Layout
26773 \begin_inset Marginal
26776 \begin_layout Plain Layout
26777 This is a margin note in the inner margin.
26785 \begin_inset Newline newline
26791 \begin_inset Note Greyedout
26794 \begin_layout Plain Layout
26799 There is often not enough space in the inner margin so that the notes are
26800 not correctly displayed in the output.
26808 \begin_layout Standard
26809 To return to the default placement insert the command
26812 \begin_layout Standard
26820 \begin_layout Standard
26825 \begin_layout Plain Layout
26835 \begin_inset Note Greyedout
26838 \begin_layout Plain Layout
26843 The command is ignored when it is within a paragraph where also the command
26858 \begin_layout Standard
26859 \begin_inset VSpace bigskip
26866 \begin_inset Marginal
26869 \begin_layout Plain Layout
26870 AVeryLongMarginParWord that isn't hyphenated.
26878 Similar to the case described in section
26879 \begin_inset space ~
26883 \begin_inset CommandInset ref
26885 reference "sub:Multiple-Lines-in"
26889 , long words cannot be hyphenated when they are the first word in a margin
26891 To avoid this, insert 0
26892 \begin_inset space \thinspace{}
26895 pt horizontal space before the word
26900 \begin_inset Marginal
26903 \begin_layout Plain Layout
26904 \begin_inset space \hspace*{}
26908 AVeryLongMarginParWord that is hyphenated.
26916 \begin_layout Standard
26917 \begin_inset VSpace bigskip
26923 \begin_layout Standard
26924 \begin_inset Note Greyedout
26927 \begin_layout Plain Layout
26932 Margin notes can normally not be used inside tables, floats, and footnotes.
26940 \begin_layout Standard
26941 \begin_inset VSpace bigskip
26947 \begin_layout Standard
26951 \begin_layout Plain Layout
26961 \begin_inset Note Note
26964 \begin_layout Plain Layout
26965 The following section will only be displayed when the LaTeX-package
26977 \begin_layout Standard
26978 This restriction can be evaded by using the LaTeX-package
26983 \begin_inset Index idx
26986 \begin_layout Plain Layout
26987 LaTeX-packages ! marginnote
26993 By adding these two lines to your document preamble, the command used by
26994 LyX for margin notes is redefined to use the command provided by the
27001 \begin_layout Standard
27006 usepackage{marginnote}
27007 \begin_inset Newline newline
27019 \begin_layout Standard
27020 This is also used in this document because
27024 has another useful feature: You can set a vertical offset for the note.
27025 This is often needed when too many margin notes are too close together
27026 or for a better page layout.
27027 The offset is set in LyX as TeX-Code directly after the margin note in
27031 \begin_layout Standard
27037 \begin_layout Standard
27038 where the offset is a length with one of the units listed in Table
27039 \begin_inset space ~
27043 \begin_inset CommandInset ref
27045 reference "tab:Units"
27050 A negative value shifts the note up, a positive value shifts it down.
27054 For example the margin note beside this text line is shifted up 1.5
27055 \begin_inset space \thinspace{}
27058 cm with the TeX-Code-command
27059 \begin_inset Quotes eld
27069 \begin_inset Quotes erd
27073 \begin_inset Marginal
27076 \begin_layout Plain Layout
27077 This margin note is shifted up 1.5
27078 \begin_inset space \thinspace{}
27081 cm from its original position.
27093 \begin_layout Plain Layout
27103 \begin_layout Standard
27104 \begin_inset VSpace medskip
27111 you can also change the alignment of the text in the margin note.
27112 For example the commands
27115 \begin_layout Standard
27122 raggedleftmarginnote}{
27125 \begin_inset Newline newline
27132 raggedrightmarginnote}{
27137 \begin_layout Standard
27138 set the alignment to centered.
27143 raggedleftmarginnote
27145 denotes margin notes that appear at the left side.
27152 \begin_layout Plain Layout
27158 raggedleftmarginnote}{
27163 \begin_layout Plain Layout
27169 raggedrightmarginnote}{
27177 \begin_inset Marginal
27180 \begin_layout Plain Layout
27181 The text of this margin note is centered.
27192 \begin_layout Standard
27199 raggedleftmarginnote}{
27202 \begin_inset Newline newline
27209 raggedrightmarginnote}{
27218 \begin_layout Plain Layout
27224 raggedleftmarginnote}{
27229 \begin_layout Plain Layout
27235 raggedrightmarginnote}{
27245 \begin_layout Standard
27246 \begin_inset VSpace medskip
27249 For the other features of
27253 refer to its documentation
27254 \begin_inset CommandInset citation
27263 \begin_layout Standard
27264 \begin_inset VSpace bigskip
27267 You can adjust the layout of margin notes by changing its definition.
27268 To create for example a header for all margin notes with the underlined,
27269 sans-serif, and bold header text
27270 \begin_inset Quotes eld
27282 \begin_inset Quotes erd
27285 , add this to your document preamble:
27288 \begin_layout Standard
27298 \begin_inset Newline newline
27308 \begin_inset Newline newline
27312 \begin_inset Phantom HPhantom
27315 \begin_layout Plain Layout
27318 \begin_inset space ~
27334 underbar{Attention!}}}%
27335 \begin_inset Newline newline
27339 \begin_inset Phantom HPhantom
27342 \begin_layout Plain Layout
27345 \begin_inset space ~
27362 \begin_layout Standard
27369 \begin_layout Plain Layout
27380 \begin_layout Plain Layout
27391 \begin_layout Plain Layout
27399 underbar{Attention!}}}%
27402 \begin_layout Plain Layout
27416 \begin_inset Marginal
27419 \begin_layout Plain Layout
27420 This is a margin note with a defined heading.
27432 \begin_layout Plain Layout
27446 \begin_layout Plain Layout
27463 \begin_inset Note Note
27466 \begin_layout Plain Layout
27467 The margin note format is changed only for this example.
27475 \begin_layout Standard
27479 \begin_layout Plain Layout
27489 \begin_inset Note Note
27492 \begin_layout Plain Layout
27493 The following will be displayed when the LaTeX-package
27505 \begin_layout Standard
27506 You need to install the LaTeX-package
27510 to see the following part of this section in the output.
27513 \begin_layout Standard
27517 \begin_layout Plain Layout
27529 \begin_layout Chapter
27533 \begin_layout Section
27535 \begin_inset Index idx
27538 \begin_layout Plain Layout
27539 Boxes ! Introduction
27547 \begin_layout Standard
27548 Boxes are used to format a block of text.
27549 Boxes can be used to write documents with multiple languages, see section
27550 \begin_inset space ~
27554 \begin_inset CommandInset ref
27556 reference "sec:Minipages"
27560 , to frame texts, see section
27561 \begin_inset space ~
27565 \begin_inset CommandInset ref
27567 reference "sec:Decoration"
27571 , to prevent words from being hyphenated, see section
27572 \begin_inset space ~
27576 \begin_inset CommandInset ref
27578 reference "sec:Prevent-Hyphenation"
27582 , to align text, see section
27583 \begin_inset space ~
27587 \begin_inset CommandInset ref
27589 reference "sub:Vertical-Alignment"
27593 , or to set the background color of texts, see section
27594 \begin_inset space ~
27598 \begin_inset CommandInset ref
27600 reference "sec:Colored-Boxes"
27607 \begin_layout Standard
27608 Boxes can be inserted with the menu
27610 Insert\SpecialChar \menuseparator
27613 or the toolbar button
27614 \begin_inset Graphics
27615 filename ../images/box-insert.png
27617 scaleBeforeRotation
27622 A grey box with the label
27627 \begin_inset Graphics
27628 filename clipart/BoxInsetDefaultQt4.png
27630 scaleBeforeRotation
27635 The box type can be specified by right-clicking on the box and selecting
27641 The box dialog offers the
27644 \begin_inset space ~
27666 is the default for new boxes and is explained in section
27667 \begin_inset space ~
27671 \begin_inset CommandInset ref
27673 reference "sec:Minipages"
27681 is described in section
27682 \begin_inset space ~
27686 \begin_inset CommandInset ref
27688 reference "sec:Parboxes"
27697 \begin_inset CommandInset ref
27699 reference "sec:Prevent-Hyphenation"
27706 \begin_layout Standard
27707 Boxes are not numbered and can therefore not be referenced like floats or
27711 \begin_layout Standard
27712 \begin_inset Note Greyedout
27715 \begin_layout Plain Layout
27720 Boxes must not be the item in an
27736 \begin_layout Standard
27737 \begin_inset Note Greyedout
27740 \begin_layout Plain Layout
27745 For an unknown reason you can only set the
27748 \begin_inset space ~
27757 when you use a framed box.
27761 \begin_inset space ~
27766 type and without frames are explained in section
27767 \begin_inset space ~
27771 \begin_inset CommandInset ref
27773 reference "sec:Prevent-Hyphenation"
27785 \begin_layout Section
27787 \begin_inset CommandInset label
27789 name "sec:Box-Dialog"
27794 \begin_inset Index idx
27797 \begin_layout Plain Layout
27806 \begin_layout Subsection
27808 \begin_inset Index idx
27811 \begin_layout Plain Layout
27820 \begin_layout Standard
27821 In the box dialog you can adjust the box geometry in the fields
27830 The available units for the geometry are explained in Table
27831 \begin_inset space ~
27835 \begin_inset CommandInset ref
27837 reference "tab:Units"
27846 offers the following additional sizes:
27849 \begin_layout Description
27850 Depth This is the plain text
27851 \begin_inset Quotes eld
27855 \begin_inset Quotes erd
27859 It ignores the total depth when there are multiple text lines in the box:
27860 \begin_inset Newline newline
27864 \begin_inset Newline newline
27868 \begin_inset Newline newline
27872 \begin_inset Box Boxed
27882 height_special "depth"
27885 \begin_layout Plain Layout
27887 Box height set to 1
27888 \begin_inset space \thinspace{}
27897 \begin_inset Newline newline
27901 \begin_inset Newline newline
27907 \begin_layout Description
27908 Height This is the height of the text that is inside the box.
27910 \begin_inset space \thinspace{}
27914 \begin_inset space \space{}
27917 2 for this size will set the box height to 2
27918 \begin_inset space ~
27921 times the text height:
27922 \begin_inset Box Boxed
27932 height_special "height"
27935 \begin_layout Plain Layout
27937 Box height set to 2
27938 \begin_inset space \thinspace{}
27949 \begin_layout Description
27951 \begin_inset space ~
27954 Height This is the Height
27955 \begin_inset space \thinspace{}
27959 \begin_inset space \thinspace{}
27963 \begin_inset Box Boxed
27973 height_special "totalheight"
27976 \begin_layout Plain Layout
27978 Box height set to 1
27979 \begin_inset space \thinspace{}
27983 \begin_inset space ~
27994 \begin_layout Description
27995 Width This sets the width of the box as height:
27996 \begin_inset Box Boxed
28006 height_special "width"
28009 \begin_layout Plain Layout
28011 Box height set to 1
28012 \begin_inset space \thinspace{}
28023 \begin_layout Subsection
28025 \begin_inset Index idx
28028 \begin_layout Plain Layout
28037 \begin_layout Standard
28038 When you have chosen an
28041 \begin_inset space ~
28046 , the vertical box alignment can be:
28049 \begin_layout Description
28050 Top This is an example text line.
28052 \begin_inset Box Boxed
28062 height_special "totalheight"
28065 \begin_layout Plain Layout
28067 This box is top-aligned.
28072 This is an example text line.
28075 \begin_layout Description
28076 Middle This is an example text line.
28078 \begin_inset Box Boxed
28088 height_special "totalheight"
28091 \begin_layout Plain Layout
28093 This box is middle-aligned.
28098 This is an example text line.
28101 \begin_layout Description
28102 Bottom This is an example text line.
28104 \begin_inset Box Boxed
28114 height_special "totalheight"
28117 \begin_layout Plain Layout
28119 This box is bottom-aligned.
28124 This is an example text line.
28127 \begin_layout Standard
28128 \begin_inset Note Greyedout
28131 \begin_layout Plain Layout
28136 The vertical box alignment can be lost in the output when you have two
28137 boxes in a line and one has e.
28138 \begin_inset space \thinspace{}
28142 \begin_inset space \space{}
28145 a shadow and the other one not.
28153 \begin_layout Standard
28154 The horizontal box alignment can be set via LyX's paragraph dialog when
28155 you set the box into its own paragraph.
28158 \begin_layout Standard
28159 \begin_inset VSpace bigskip
28162 When you have chosen an
28165 \begin_inset space ~
28170 , the box content can be aligned vertically to:
28173 \begin_layout Description
28174 top This is an example text line.
28176 \begin_inset Box Boxed
28186 height_special "totalheight"
28189 \begin_layout Plain Layout
28191 This box text is top-aligned.
28196 This is an example text line.
28199 \begin_layout Description
28200 middle This is an example text line.
28202 \begin_inset Box Boxed
28212 height_special "totalheight"
28215 \begin_layout Plain Layout
28217 This box text is middle-aligned.
28222 This is an example text line.
28225 \begin_layout Description
28226 bottom This is an example text line.
28228 \begin_inset Box Boxed
28238 height_special "totalheight"
28241 \begin_layout Plain Layout
28243 This box text is bottom-aligned.
28248 This is an example text line.
28251 \begin_layout Description
28252 stretch This is an example text line.
28254 \begin_inset Box Boxed
28264 height_special "totalheight"
28267 \begin_layout Plain Layout
28272 \begin_layout Plain Layout
28277 \begin_layout Plain Layout
28284 This is an example text line.
28287 \begin_layout Standard
28288 To stretch the box content, it must consist of more than one paragraph.
28289 In the example above every text line is in an own paragraph.
28292 \begin_layout Standard
28293 \begin_inset VSpace bigskip
28296 To align the box content horizontally you can use LyX's paragraph dialog
28297 when you have chosen an
28300 \begin_inset space ~
28308 \begin_layout Standard
28310 \begin_inset Box Boxed
28320 height_special "totalheight"
28323 \begin_layout Plain Layout
28328 \begin_layout Plain Layout
28333 \begin_layout Plain Layout
28343 \begin_layout Standard
28344 If you have not set an
28347 \begin_inset space ~
28352 , you can align the box content horizontally in the box dialog.
28355 \begin_layout Standard
28357 \begin_inset Box Boxed
28367 height_special "totalheight"
28370 \begin_layout Plain Layout
28371 This box text is horizontally stretched.
28379 \begin_layout Subsection
28381 \begin_inset CommandInset label
28383 name "sec:Decoration"
28388 \begin_inset Index idx
28391 \begin_layout Plain Layout
28400 \begin_layout Standard
28401 The type of the box can be specified in the box dialog in the drop-down
28407 The following types are possible:
28410 \begin_layout Description
28412 \begin_inset space ~
28415 frame Nothing is drawn.
28418 \begin_layout Description
28420 \begin_inset space ~
28424 \begin_inset space ~
28427 frame This draws a rectangular frame around the box.
28428 The frame line thickness has the size of
28436 \begin_inset Box Boxed
28446 height_special "totalheight"
28449 \begin_layout Plain Layout
28459 \begin_layout Description
28461 \begin_inset space ~
28465 \begin_inset space ~
28468 thin This draws an oval frame around the box.
28469 The frame line thickness has the size 0.4
28470 \begin_inset space \thinspace{}
28475 \begin_inset Box ovalbox
28485 height_special "totalheight"
28488 \begin_layout Plain Layout
28498 \begin_layout Description
28500 \begin_inset space ~
28504 \begin_inset space ~
28507 thick This draws an oval frame around the box.
28508 The frame line thickness has the size 0.8
28509 \begin_inset space \thinspace{}
28514 \begin_inset Box Ovalbox
28524 height_special "totalheight"
28527 \begin_layout Plain Layout
28537 \begin_layout Description
28539 \begin_inset space ~
28542 shadow This draws a rectangular frame with a shadow around the box.
28543 The frame line thickness has the size of
28549 , the shadow has a width of 4
28550 \begin_inset space \thinspace{}
28555 \begin_inset Box Shadowbox
28565 height_special "totalheight"
28568 \begin_layout Plain Layout
28578 \begin_layout Description
28580 \begin_inset space ~
28583 background This draws a box with a red background.
28584 Unlike colored boxes
28588 \begin_layout Plain Layout
28590 \begin_inset space \thinspace{}
28594 \begin_inset CommandInset ref
28596 reference "sec:Colored-Boxes"
28605 , it always uses the whole column width and the box is set as its own paragraph.
28607 \begin_inset Box Shaded
28617 height_special "totalheight"
28620 \begin_layout Plain Layout
28621 Shaded background box
28629 \begin_layout Description
28631 \begin_inset space ~
28635 \begin_inset space ~
28638 frame This draws a double-line rectangular frame around the box.
28639 The line thickness of the inner frame is 0.75
28640 \begin_inset space \thinspace{}
28649 , the thickness of the outer frame is 1.5
28650 \begin_inset space \thinspace{}
28660 The distance between the lines is 1.5
28661 \begin_inset space \thinspace{}
28671 \begin_inset space \thinspace{}
28675 \begin_inset space \thinspace{}
28679 \begin_inset space \thinspace{}
28684 \begin_inset Box Doublebox
28694 height_special "totalheight"
28697 \begin_layout Plain Layout
28699 Double rectangular box
28707 \begin_layout Standard
28708 \begin_inset VSpace bigskip
28711 LyX's box label will reflect the different frame types.
28712 To be able to use all types, the LaTeX-package
28717 \begin_inset Index idx
28720 \begin_layout Plain Layout
28721 LaTeX-packages ! fancybox
28729 \begin_layout Standard
28730 \begin_inset VSpace bigskip
28733 When you use the decoration
28735 simple rectangular frame
28737 and no inner box, you can allow page breaks within a box.
28738 Note that then, unlike other framed boxes, the frame always uses the whole
28739 column width, the box is set as its own paragraph, and
28751 have no effect on this box type.
28752 The frame line thickness has the size of
28760 \begin_inset Box Framed
28770 height_special "totalheight"
28773 \begin_layout Plain Layout
28774 Allow page break box
28782 \begin_layout Section
28784 \begin_inset Index idx
28787 \begin_layout Plain Layout
28788 Boxes ! Customization
28796 \begin_layout Standard
28797 The default value for the size
28804 \begin_inset space \thinspace{}
28808 It can be changed with the following command in TeX-code to e.
28809 \begin_inset space \thinspace{}
28813 \begin_inset space \space{}
28817 \begin_inset space \thinspace{}
28823 \begin_layout Standard
28833 \begin_layout Standard
28837 \begin_layout Plain Layout
28849 \begin_inset Box Boxed
28859 height_special "totalheight"
28862 \begin_layout Plain Layout
28864 Rectangular box with
28871 \begin_inset space \thinspace{}
28875 \begin_inset space \thinspace{}
28879 \begin_inset space \thinspace{}
28891 \begin_layout Plain Layout
28905 \begin_layout Standard
28906 \begin_inset VSpace bigskip
28909 The space between the frame and the box content is for all frame styles
28911 \begin_inset space \thinspace{}
28915 You can change it by setting the length
28922 For example the command
28925 \begin_layout Standard
28935 \begin_layout Standard
28936 sets the value to 10
28937 \begin_inset space \thinspace{}
28940 pt, as with the following box:
28943 \begin_layout Standard
28947 \begin_layout Plain Layout
28959 \begin_inset Box Boxed
28969 height_special "totalheight"
28972 \begin_layout Plain Layout
28974 Rectangular box with
28981 \begin_inset space \thinspace{}
28985 \begin_inset space \thinspace{}
28989 \begin_inset space \thinspace{}
29001 \begin_layout Plain Layout
29015 \begin_layout Standard
29016 \begin_inset VSpace bigskip
29019 The diameter of the round corners of the oval boxes can be set with the
29030 \begin_layout Standard
29038 \begin_layout Standard
29039 sets the diameter to 1
29040 \begin_inset space \thinspace{}
29047 \begin_layout Standard
29055 \begin_layout Standard
29056 sets the diameter to
29059 \begin_inset space \thinspace{}
29063 \begin_inset space \thinspace{}
29066 minimum(width and height of box)
29078 \begin_layout Standard
29082 \begin_layout Plain Layout
29092 \begin_inset Box Ovalbox
29102 height_special "totalheight"
29105 \begin_layout Plain Layout
29114 \begin_inset space \thinspace{}
29118 \begin_inset space \thinspace{}
29122 \begin_inset space \thinspace{}
29134 \begin_layout Plain Layout
29146 \begin_layout Standard
29147 \begin_inset VSpace bigskip
29150 The size of the shadow can be adjusted by changing the length
29158 \begin_inset space \thinspace{}
29161 pt for the following box by this command:
29164 \begin_layout Standard
29174 \begin_layout Standard
29178 \begin_layout Plain Layout
29190 \begin_inset Box Shadowbox
29200 height_special "totalheight"
29203 \begin_layout Plain Layout
29212 \begin_inset space \thinspace{}
29216 \begin_inset space \thinspace{}
29220 \begin_inset space \thinspace{}
29232 \begin_layout Plain Layout
29246 \begin_layout Standard
29247 \begin_inset VSpace bigskip
29253 \begin_layout Standard
29254 The default value for the size
29261 \begin_inset space \thinspace{}
29265 The default space between the note content and the frame is 9
29266 \begin_inset space \thinspace{}
29269 pt and can be changed with the value of
29276 For example the frame appearance of the following
29280 is set with the TeX-Code commands
29283 \begin_layout Standard
29291 \begin_inset Newline newline
29301 \begin_layout Standard
29305 \begin_layout Plain Layout
29314 \begin_layout Plain Layout
29326 \begin_inset Box Framed
29336 height_special "totalheight"
29339 \begin_layout Plain Layout
29353 \begin_layout Plain Layout
29362 \begin_layout Plain Layout
29376 \begin_layout Standard
29377 \begin_inset VSpace bigskip
29383 \begin_layout Standard
29388 boxes the default space between the box content and the box border is 3
29389 \begin_inset space \thinspace{}
29392 pt and can be changed with the value of
29399 The default background color red can either be changed locally with the
29404 definecolor{shadecolor}
29406 or globally with the menu
29408 Tools\SpecialChar \menuseparator
29409 Preferences\SpecialChar \menuseparator
29410 Colors\SpecialChar \menuseparator
29412 \begin_inset space ~
29424 command is explained in section
29425 \begin_inset space ~
29429 \begin_inset CommandInset ref
29431 reference "sec:Colored-Tables"
29439 \begin_layout Plain Layout
29446 requires the LaTeX-package
29450 in the preamble, see section
29451 \begin_inset space ~
29455 \begin_inset CommandInset ref
29457 reference "sec:Colored-Boxes"
29466 For example the appearance of the following shaded background box is set
29467 with the TeX-Code commands
29470 \begin_layout Standard
29480 \begin_inset Newline newline
29487 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29490 \begin_layout Standard
29494 \begin_layout Plain Layout
29503 \begin_layout Plain Layout
29507 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29513 \begin_inset Box Shaded
29523 height_special "totalheight"
29526 \begin_layout Plain Layout
29529 This is yellow text in a
29539 box with dark green background.
29548 \begin_layout Plain Layout
29557 \begin_layout Plain Layout
29561 definecolor{shadecolor}{rgb}{1,0,0}
29569 \begin_layout Standard
29570 \begin_inset VSpace bigskip
29573 Changed lengths and widths are valid for all boxes following the commands
29577 \begin_layout Section
29579 \begin_inset CommandInset label
29581 name "sec:Minipages"
29586 \begin_inset Index idx
29589 \begin_layout Plain Layout
29598 \begin_layout Standard
29599 Minipages are treated by LaTeX as pages within pages and can therefore for
29600 example have their own footnotes.
29603 \begin_layout Standard
29604 Minipages are useful when you write documents with different languages.
29607 \begin_layout Standard
29608 Below are two example minipages side by side.
29609 Their width is set to 45
29610 \begin_inset space \thinspace{}
29613 col% and they are separated by a horizontal fill, that was inserted via
29616 Insert\SpecialChar \menuseparator
29618 \begin_inset space ~
29621 Formatting\SpecialChar \menuseparator
29623 \begin_inset space ~
29629 \begin_inset Newpage newpage
29635 \begin_layout Standard
29636 \begin_inset Box Frameless
29646 height_special "totalheight"
29649 \begin_layout Plain Layout
29652 Dies ist ein deutscher Text.
29653 Dies ist ein deutscher Text.
29654 Dies ist ein deutscher Text.
29655 Dies ist ein deutscher Text.
29656 Dies ist ein deutscher Text.
29657 Dies ist ein deutscher Text.
29658 Dies ist ein deutscher Text.
29659 Dies ist ein deutscher Text.
29660 Dies ist ein deutscher Text.
29661 Dies ist ein deutscher Text.
29662 Dies ist ein deutscher Text.
29663 Dies ist ein deutscher Text.
29664 Dies ist ein deutscher Text
29668 \begin_layout Plain Layout
29671 Dies ist eine deutsche Fußnote.
29677 Dies ist ein deutscher Text.
29678 Dies ist ein deutscher Text.
29684 \begin_inset space \hfill{}
29688 \begin_inset Box Frameless
29698 height_special "totalheight"
29701 \begin_layout Plain Layout
29702 This is an English Text.
29703 This is an English Text.
29704 This is an English Text.
29705 This is an English Text.
29706 This is an English Text.
29707 This is an English Text.
29708 This is an English Text.
29709 This is an English Text.
29710 This is an English Text.
29711 This is an English Text.
29712 This is an English Text.
29713 This is an English Text.
29714 This is an English Text.
29715 This is an English Text.
29716 This is an English Text.
29717 This is an English Text.
29721 \begin_layout Plain Layout
29722 This is an English footnote.
29727 This is an English Text.
29736 \begin_layout Standard
29737 \begin_inset VSpace bigskip
29740 The document-wide paragraph settings are ignored within minipages.
29741 That means that there will be no space between paragraphs in minipages
29742 although you set it to e.
29743 \begin_inset space \thinspace{}
29747 \begin_inset space \space{}
29754 in the document settings.
29757 \begin_layout Standard
29758 Minipages can also be used to set a background color for text parts, see
29760 \begin_inset space ~
29764 \begin_inset CommandInset ref
29766 reference "sub:Color-for-Paragraphs"
29773 \begin_layout Standard
29774 \begin_inset Note Greyedout
29777 \begin_layout Plain Layout
29782 You cannot have floats or margin notes inside minipages but minipages can
29783 be used inside tables, floats, and other boxes.
29791 \begin_layout Section
29793 \begin_inset CommandInset label
29795 name "sec:Parboxes"
29800 \begin_inset Index idx
29803 \begin_layout Plain Layout
29812 \begin_layout Standard
29813 Parboxes are very similar to minipages with the difference that they cannot
29817 \begin_layout Standard
29819 \begin_inset Box Frameless
29829 height_special "totalheight"
29832 \begin_layout Plain Layout
29833 This a text within a parbox.
29834 This a text within a parbox.
29837 \begin_layout Plain Layout
29838 This footnote won't appear:
29842 \begin_layout Plain Layout
29843 This footnote is inside a parbox and will therefore not appear.
29856 \begin_layout Section
29857 Boxes for Words and Characters
29858 \begin_inset Index idx
29861 \begin_layout Plain Layout
29862 Boxes ! for Characters
29870 \begin_layout Subsection
29871 Prevent Hyphenation
29872 \begin_inset CommandInset label
29874 name "sec:Prevent-Hyphenation"
29879 \begin_inset Index idx
29882 \begin_layout Plain Layout
29883 Boxes ! to Prevent Hyphenation
29891 \begin_layout Standard
29892 You can use the box type
29896 to prevent words or text from being hyphenated.
29897 \begin_inset Newline newline
29900 Here is an example text:
29903 \begin_layout Standard
29904 This line is an example to show how you can prevent the hyphenation of
29905 \begin_inset Quotes eld
29909 \begin_inset Quotes erd
29915 \begin_layout Standard
29916 To prevent the hyphenation of the word
29917 \begin_inset Quotes eld
29921 \begin_inset Quotes erd
29924 , put the word into a box, set the
29927 \begin_inset space ~
29937 \begin_inset space \thinspace{}
29943 \begin_layout Standard
29944 This is the result:
29947 \begin_layout Standard
29948 This line is an example to show how you can prevent the hyphenation of
29949 \begin_inset Box Frameless
29959 height_special "totalheight"
29962 \begin_layout Plain Layout
29963 \begin_inset Quotes eld
29967 \begin_inset Quotes erd
29978 \begin_layout Standard
29979 You can alternatively set the command
29980 \begin_inset Quotes eld
29990 \begin_inset Quotes grd
29993 as TeX-Code directly before the word:
29996 \begin_layout Standard
29997 This line is an example to show how you can prevent the hyphenation of
29998 \begin_inset Quotes eld
30005 \begin_layout Plain Layout
30015 \begin_inset Quotes erd
30021 \begin_layout Standard
30022 Of course the word now protrudes over the side margin.
30023 To avoid this, add via the menu
30025 Insert\SpecialChar \menuseparator
30026 Formatting\SpecialChar \menuseparator
30028 \begin_inset space ~
30032 \begin_inset space ~
30040 arg "newline-insert newline"
30043 ) a line break before the word:
30046 \begin_layout Standard
30047 This line is an example to show how you can prevent the hyphenation of
30048 \begin_inset Newline newline
30052 \begin_inset Box Frameless
30062 height_special "totalheight"
30065 \begin_layout Plain Layout
30066 \begin_inset Quotes eld
30070 \begin_inset Quotes erd
30081 \begin_layout Subsection
30083 \begin_inset CommandInset label
30085 name "sub:Vertical-Alignment"
30090 \begin_inset Index idx
30093 \begin_layout Plain Layout
30094 Boxes ! for Vertical Alignment
30100 \begin_inset Index idx
30103 \begin_layout Plain Layout
30112 \begin_layout Standard
30113 With the help of the command
30119 you can align words, characters or other boxes vertically relative to the
30127 is used with the following scheme:
30130 \begin_layout Standard
30135 raisebox{lift}[height][depth]{box content}
30138 \begin_layout Standard
30139 The lift can be a positive value to raise the box or a negative value to
30143 \begin_layout Standard
30144 To align for example the word
30145 \begin_inset Quotes eld
30149 \begin_inset Quotes erd
30152 so that the bottom of the
30153 \begin_inset Quotes eld
30157 \begin_inset Quotes erd
30161 \begin_inset Quotes eld
30165 \begin_inset Quotes erd
30168 is at the baseline, insert the command
30171 \begin_layout Standard
30181 \begin_layout Standard
30182 in TeX-Code before the word.
30183 After the word insert a closing brace
30184 \begin_inset Quotes eld
30192 \begin_inset Quotes erd
30196 \begin_inset Newline newline
30199 This is the result:
30202 \begin_layout Standard
30203 This is a text line with the word
30207 \begin_layout Plain Layout
30219 \begin_inset Quotes eld
30223 \begin_inset Quotes erd
30230 \begin_layout Plain Layout
30240 \begin_layout Standard
30241 \begin_inset VSpace bigskip
30244 When you raise or lower characters in a line, the line distance will be
30248 \begin_layout Standard
30249 This is a text line with the word
30253 \begin_layout Plain Layout
30265 \begin_inset Quotes eld
30269 \begin_inset Quotes erd
30276 \begin_layout Plain Layout
30284 \begin_inset Newline newline
30287 This is a text line with the word
30291 \begin_layout Plain Layout
30301 \begin_inset Quotes eld
30305 \begin_inset Quotes erd
30312 \begin_layout Plain Layout
30322 \begin_layout Standard
30323 If you want to prevent this for a certain reason, set the box height to
30328 \begin_layout Standard
30338 \begin_layout Standard
30339 This is a text line with the word
30343 \begin_layout Plain Layout
30355 \begin_inset Quotes eld
30359 \begin_inset Quotes erd
30366 \begin_layout Plain Layout
30374 \begin_inset Newline newline
30377 This is a text line with the word
30381 \begin_layout Plain Layout
30385 raisebox{0.5cm}[0pt]{
30391 \begin_inset Quotes eld
30395 \begin_inset Quotes erd
30402 \begin_layout Plain Layout
30412 \begin_layout Section
30414 \begin_inset CommandInset label
30416 name "sec:Colored-Boxes"
30421 \begin_inset Index idx
30424 \begin_layout Plain Layout
30433 \begin_layout Subsection
30435 \begin_inset Index idx
30438 \begin_layout Plain Layout
30447 \begin_layout Standard
30448 To color the background of text the text must be put into a so called
30449 \begin_inset Quotes eld
30453 \begin_inset Quotes erd
30457 This requires that the LaTeX-package
30462 \begin_inset Index idx
30465 \begin_layout Plain Layout
30466 LaTeX-packages ! color
30471 is loaded in the document preamble with the command
30474 \begin_layout Standard
30479 @ifundefined{textcolor}
30480 \begin_inset Newline newline
30484 \begin_inset Phantom HPhantom
30487 \begin_layout Plain Layout
30490 \begin_inset space ~
30500 usepackage{color}}{}
30503 \begin_layout Standard
30508 will be loaded automatically by LyX when you color text.
30512 \begin_layout Plain Layout
30513 To avoid it being loaded twice the command
30527 \begin_layout Standard
30528 \begin_inset VSpace medskip
30531 Colorboxes are created with the command
30538 This will be used with the following scheme:
30541 \begin_layout Standard
30546 colorbox{color}{box content}
30549 \begin_layout Standard
30550 The box content can also be a box and colorboxes can also be within other
30554 \begin_layout Standard
30555 The following colors are predefined:
30556 \begin_inset Newline newline
30595 \begin_inset Newline newline
30598 You can also define your own color as described in section
30599 \begin_inset space ~
30603 \begin_inset CommandInset ref
30605 reference "sec:Colored-Tables"
30612 \begin_layout Standard
30614 \begin_inset space \thinspace{}
30618 \begin_inset space \space{}
30621 a red background for a word, insert the command
30624 \begin_layout Standard
30632 \begin_layout Standard
30633 before the word in TeX-Code.
30634 After the word insert a closing brace
30635 \begin_inset Quotes eld
30643 \begin_inset Quotes erd
30647 \begin_inset Newline newline
30650 This is the result:
30653 \begin_layout Standard
30654 This is a line where the word
30658 \begin_layout Plain Layout
30668 \begin_inset Quotes eld
30672 \begin_inset Quotes erd
30679 \begin_layout Plain Layout
30686 has a red background.
30689 \begin_layout Standard
30690 \begin_inset VSpace bigskip
30693 If you would like the box frame in a different color, you can use the command
30700 with the following scheme:
30703 \begin_layout Standard
30708 fcolorbox{frame color}{box color}{box content}
30711 \begin_layout Standard
30725 The frame thickness and the space between the frame and the box content
30726 can be adjusted with the lengths
30738 , respectively, as described in section
30739 \begin_inset space ~
30743 \begin_inset CommandInset ref
30745 reference "sec:Decoration"
30752 \begin_layout Standard
30753 For the following example the command
30756 \begin_layout Standard
30761 fcolorbox{cyan}{magenta}{
30764 \begin_layout Standard
30768 \begin_layout Standard
30769 Here is an example where the frame line thickness was set to 1
30770 \begin_inset space \thinspace{}
30774 \begin_inset Newline newline
30781 \begin_layout Plain Layout
30796 \begin_layout Plain Layout
30800 fcolorbox{cyan}{magenta}{
30805 This is text within a colored, framed box.
30809 \begin_layout Plain Layout
30819 \begin_layout Standard
30820 \begin_inset VSpace bigskip
30823 Of course you can also have colored text inside a colorbox:
30824 \begin_inset Newline newline
30831 \begin_layout Plain Layout
30835 fcolorbox{cyan}{magenta}{
30842 This is colored text within a colored, framed box.
30848 \begin_layout Plain Layout
30859 \begin_layout Plain Layout
30873 \begin_layout Standard
30874 \begin_inset VSpace medskip
30880 \begin_layout Standard
30881 \begin_inset Note Greyedout
30884 \begin_layout Plain Layout
30889 Text in colorboxes cannot have line breaks.
30890 To color multiple text lines or paragraphs, use a box inside a colorbox
30891 as described in the following.
30899 \begin_layout Subsection
30900 Color for Paragraphs
30901 \begin_inset CommandInset label
30903 name "sub:Color-for-Paragraphs"
30908 \begin_inset Index idx
30911 \begin_layout Plain Layout
30912 Color ! for Paragraphs
30920 \begin_layout Standard
30921 To set the background color for more than one text line, put the text into
30923 Before the minipage insert the
30932 \begin_layout Standard
30940 \begin_layout Standard
30942 After the minipage insert a closing brace
30943 \begin_inset Quotes eld
30951 \begin_inset Quotes erd
30957 \begin_layout Standard
30961 \begin_layout Plain Layout
30965 colorbox{lightgrey}{
30971 \begin_inset Box Frameless
30981 height_special "totalheight"
30984 \begin_layout Plain Layout
30985 This is text with background color.
30986 This is text with background color.
30989 \begin_layout Plain Layout
30990 \begin_inset VSpace defskip
30993 The text can have footnotes
30997 \begin_layout Plain Layout
30998 Another example footnote
31003 and can include tables and figures.
31006 \begin_layout Plain Layout
31008 \begin_inset Tabular
31009 <lyxtabular version="3" rows="3" columns="3">
31010 <features tabularvalignment="middle">
31011 <column alignment="center" valignment="top" width="0">
31012 <column alignment="center" valignment="top" width="0">
31013 <column alignment="center" valignment="top" width="0">
31015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31018 \begin_layout Plain Layout
31024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31027 \begin_layout Plain Layout
31033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31036 \begin_layout Plain Layout
31044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31047 \begin_layout Plain Layout
31053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31056 \begin_layout Plain Layout
31058 \begin_inset Quotes erd
31066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31069 \begin_layout Plain Layout
31077 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31080 \begin_layout Plain Layout
31086 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31089 \begin_layout Plain Layout
31095 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31098 \begin_layout Plain Layout
31118 \begin_layout Plain Layout
31128 \begin_layout Section
31129 Rotated and Scaled Boxes
31132 \begin_layout Standard
31133 To use the commands described in this section, the LaTeX-package
31138 \begin_inset Index idx
31141 \begin_layout Plain Layout
31142 LaTeX-packages ! graphicx
31147 needs to be loaded in the document preamble with the command
31150 \begin_layout Standard
31155 @ifundefined{rotatebox}
31156 \begin_inset Newline newline
31160 \begin_inset Phantom HPhantom
31163 \begin_layout Plain Layout
31166 \begin_inset space ~
31176 usepackage{graphicx}}{}
31179 \begin_layout Standard
31180 \begin_inset Note Greyedout
31183 \begin_layout Plain Layout
31188 Some DVI-viewers can't display rotated or scaled material.
31196 \begin_layout Standard
31197 \begin_inset Note Greyedout
31200 \begin_layout Plain Layout
31205 Floats mustn't be inside a rotated or scaled box.
31213 \begin_layout Subsection
31215 \begin_inset Index idx
31218 \begin_layout Plain Layout
31225 \begin_inset Index idx
31228 \begin_layout Plain Layout
31235 \begin_inset Index idx
31238 \begin_layout Plain Layout
31245 \begin_inset Index idx
31248 \begin_layout Plain Layout
31249 Table Customization ! Rotating
31257 \begin_layout Standard
31258 To rotate material, you can put it into a rotated box.
31259 Such a box is created using the command
31265 in TeX-Code with the following scheme:
31268 \begin_layout Standard
31273 rotatebox[rotation origin]{rotation angle}{box content}
31276 \begin_layout Standard
31277 The rotation origin is specified in the form
31282 The following positions are possible:
31302 (top), along with meaningful combinations of the four base positions.
31307 means that the rotation origin is at the top left corner of the box.
31308 When no rotation origin is specified, the position
31313 The rotation angle is a number that can be negative that specifies the
31315 The rotation direction is counterclockwise.
31318 \begin_layout Standard
31319 In the following example the command
31323 rotatebox[origin=c]{60}{
31325 was inserted as TeX-Code before the text
31326 \begin_inset Quotes eld
31330 \begin_inset Quotes erd
31333 ; after the text the box was closed by a closing brace
31340 \begin_layout Standard
31345 \begin_layout Plain Layout
31349 rotatebox[origin=c]{60}{
31358 \begin_layout Plain Layout
31368 \begin_layout Standard
31369 The box content can also be another box or an inline formula:
31372 \begin_layout Standard
31377 \begin_layout Plain Layout
31381 rotatebox[origin=r]{-60}{
31387 \begin_inset Box Doublebox
31397 height_special "totalheight"
31400 \begin_layout Plain Layout
31410 \begin_layout Plain Layout
31421 \begin_layout Plain Layout
31425 rotatebox[origin=lb]{60}{
31431 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31438 \begin_layout Plain Layout
31448 \begin_layout Standard
31449 or an image or table:
31452 \begin_layout Standard
31457 \begin_layout Plain Layout
31461 rotatebox[origin=lb]{90}{
31467 \begin_inset Graphics
31468 filename clipart/platypus.eps
31478 \begin_layout Plain Layout
31485 with a rotated image
31489 \begin_layout Plain Layout
31493 rotatebox[origin=l]{-90}{
31499 \begin_inset Tabular
31500 <lyxtabular version="3" rows="2" columns="2">
31501 <features tabularvalignment="middle">
31502 <column alignment="center" valignment="top" width="0">
31503 <column alignment="center" valignment="top" width="0">
31505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31508 \begin_layout Plain Layout
31514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31517 \begin_layout Plain Layout
31525 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31528 \begin_layout Plain Layout
31534 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31537 \begin_layout Plain Layout
31552 \begin_layout Plain Layout
31562 \begin_layout Subsection
31564 \begin_inset Index idx
31567 \begin_layout Plain Layout
31574 \begin_inset Index idx
31577 \begin_layout Plain Layout
31584 \begin_inset Index idx
31587 \begin_layout Plain Layout
31594 \begin_inset Index idx
31597 \begin_layout Plain Layout
31598 Table Customization ! Scaling
31606 \begin_layout Standard
31607 To scale material the commands
31619 can be used as TeX-Code.
31622 \begin_layout Standard
31629 is used with the following scheme:
31632 \begin_layout Standard
31637 scalebox{horizontal}[vertical]{box content}
31640 \begin_layout Standard
31641 Horizontal and vertical are the corresponding scaling factors.
31642 If no vertical scaling factor is given, the horizontal factor will also
31643 be used as the vertical one.
31646 \begin_layout Standard
31653 creates for example a double size
31657 \begin_layout Plain Layout
31670 \begin_layout Plain Layout
31677 , compared with the document text size.
31680 \begin_layout Standard
31685 scalebox{2}[1]{Hello}
31687 on the other hand distorts the
31691 \begin_layout Plain Layout
31704 \begin_layout Plain Layout
31714 \begin_layout Standard
31715 If the scaling factor is negative, the box content will be mirrored.
31716 Therefore the command
31720 scalebox{-1}[1]{Hello}
31722 can be used to create mirror writing:
31726 \begin_layout Plain Layout
31739 \begin_layout Plain Layout
31749 \begin_layout Standard
31754 scalebox{1}[-1]{Hello}
31760 \begin_layout Plain Layout
31773 \begin_layout Plain Layout
31783 \begin_layout Standard
31788 scalebox{-1}[1]{box content}
31790 there exists the command
31791 \begin_inset Newline newline
31798 reflectbox{box content}
31803 \begin_layout Standard
31804 \begin_inset VSpace bigskip
31813 is used to scale the box to a defined width and height.
31814 The command scheme is:
31817 \begin_layout Standard
31822 resizebox{width}{height}{box content}
31825 \begin_layout Standard
31826 If one of the two command arguments given is an exclamation mark
31830 , the size is set so that the aspect ratio of the box content is kept.
31833 \begin_layout Standard
31838 resizebox{2cm}{1cm}{Hello}
31844 \begin_layout Plain Layout
31848 resizebox{2cm}{1cm}{
31857 \begin_layout Plain Layout
31865 \begin_inset Newline newline
31872 resizebox{2cm}{!}{Hello}
31878 \begin_layout Plain Layout
31891 \begin_layout Plain Layout
31901 \begin_layout Standard
31902 \begin_inset VSpace bigskip
31906 \begin_inset Note Greyedout
31909 \begin_layout Plain Layout
31926 are set to zero, no LaTeX-errors occur when exporting the document but
31927 the exported files can not or only partly be displayed.
31935 \begin_layout Standard
31936 \begin_inset VSpace bigskip
31942 \begin_layout Standard
31943 The boxes can be combined in any order.
31945 \begin_inset space \thinspace{}
31949 \begin_inset space \space{}
31953 \begin_inset Newline newline
31960 rotatebox[origin=c]{-45}{
31964 reflectbox{Hello}}}
31965 \begin_inset Newline newline
31973 \begin_layout Standard
31978 \begin_layout Plain Layout
31982 rotatebox[origin=c]{-45}{
31995 \begin_layout Plain Layout
32005 \begin_layout Standard
32007 Images, tables, and inline formulas are allowed as box content:
32010 \begin_layout Standard
32015 \begin_layout Plain Layout
32019 rotatebox[origin=c]{-30}{
32029 \begin_inset Graphics
32030 filename clipart/platypus.eps
32040 \begin_layout Plain Layout
32051 \begin_layout Plain Layout
32055 rotatebox[origin=c]{-45}{
32065 \begin_inset Tabular
32066 <lyxtabular version="3" rows="2" columns="2">
32067 <features tabularvalignment="middle">
32068 <column alignment="center" valignment="top" width="0">
32069 <column alignment="center" valignment="top" width="0">
32071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32074 \begin_layout Plain Layout
32080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32083 \begin_layout Plain Layout
32091 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32094 \begin_layout Plain Layout
32100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32103 \begin_layout Plain Layout
32118 \begin_layout Plain Layout
32129 \begin_layout Plain Layout
32133 rotatebox[origin=c]{-45}{
32143 \begin_inset Formula $\int A\,\mathrm{d}x=B$
32150 \begin_layout Plain Layout
32160 \begin_layout Standard
32161 When the global formula style
32165 is used in the document
32169 \begin_layout Plain Layout
32171 \begin_inset Quotes eld
32175 \begin_inset Quotes erd
32178 is added to the document class options.
32183 , display style formulas can also be scaled.
32186 \begin_layout Chapter
32187 Objects Surrounded by Text
32188 \begin_inset Index idx
32191 \begin_layout Plain Layout
32200 \begin_layout Section
32202 \begin_inset CommandInset label
32204 name "sec:Wrap-Floats"
32209 \begin_inset Index idx
32212 \begin_layout Plain Layout
32213 Floats ! Wrap Floats
32219 \begin_inset Index idx
32222 \begin_layout Plain Layout
32223 Surrounded by text ! Wrap Floats
32231 \begin_layout Standard
32232 \begin_inset Wrap figure
32239 \begin_layout Plain Layout
32240 \begin_inset Graphics
32241 filename clipart/mobius.eps
32243 scaleBeforeRotation
32244 rotateOrigin center
32251 \begin_layout Plain Layout
32252 \begin_inset Caption
32254 \begin_layout Plain Layout
32255 \begin_inset CommandInset label
32257 name "fig:This-is-a"
32261 This is a figure wrap float.
32271 This float type is used if you want to wrap text around a figure or table
32272 so that it only occupies some fraction of the column width.
32273 It can be inserted using the menu
32275 Insert\SpecialChar \menuseparator
32276 Floats\SpecialChar \menuseparator
32278 \begin_inset space ~
32282 \begin_inset space ~
32290 \begin_inset space ~
32294 \begin_inset space ~
32299 if the LaTeX-package
32304 \begin_inset Index idx
32307 \begin_layout Plain Layout
32308 LaTeX-packages ! wrapfig
32312 \begin_layout Plain Layout
32330 \begin_layout Plain Layout
32331 Installing a LaTeX-package is explained it in the
32334 \begin_inset space ~
32344 The settings of the float can be modified by right-clicking on the float
32346 The mandatory settings are the float
32359 that specifies how much the float is set into the paragraph
32360 \begin_inset space \thinspace{}
32364 \begin_inset space \thinspace{}
32367 page margin, and the
32370 \begin_inset space ~
32375 that specifies how many text lines the float will approximately need.
32376 The line span is often hard to approximate; so it is better only to use
32377 it when you encounter float placement problems.
32378 You can furthermore decide if LaTeX is allowed to let the float float within
32379 the paragraph or to surrounding paragraphs.
32381 \begin_inset space ~
32385 \begin_inset CommandInset ref
32387 reference "fig:This-is-a"
32391 is an example text wrap float with a width of 40
32392 \begin_inset space \thinspace{}
32396 \begin_inset space \thinspace{}
32399 cm overhang, set to the left.
32402 \begin_layout Standard
32403 \begin_inset Note Greyedout
32406 \begin_layout Plain Layout
32412 \begin_inset space ~
32415 wrap float floats are fragile! E.
32416 \begin_inset space \thinspace{}
32420 \begin_inset space \space{}
32423 having a figure too close to the bottom of the page can mess things up in
32424 such a way that the float does not appear in the output or that it is placed
32425 over some other text.
32433 \begin_layout Standard
32434 In general, the following applies for wrap floats:
32437 \begin_layout Itemize
32438 They should not be placed in paragraphs that run over a page break.
32439 That means that wrap floats are better inserted in their exact place when
32440 the document is almost finished and you are able to estimate where page
32441 breaks will appear.
32444 \begin_layout Itemize
32445 They should either be placed in their own paragraph before the paragraph
32446 where they should wrap into or within a paragraph.
32449 \begin_layout Itemize
32450 In consecutive paragraphs they may cause troubles, so ensure that there
32451 is a text paragraph between them as separator.
32454 \begin_layout Itemize
32455 They are not allowed in section headings or tables.
32458 \begin_layout Itemize
32459 Their numbering and referencing works as described in chap.
32460 \begin_inset space \thinspace{}
32464 \begin_inset CommandInset ref
32466 reference "chap:Floats"
32473 \begin_layout Section
32474 Surrounded Fixed Objects
32475 \begin_inset Index idx
32478 \begin_layout Plain Layout
32479 Surrounded by text ! Fixed objects
32487 \begin_layout Standard
32488 The wrap floats described in sec.
32489 \begin_inset space \thinspace{}
32493 \begin_inset CommandInset ref
32495 reference "sec:Wrap-Floats"
32499 have these positions in the paragraph:
32502 \begin_layout Standard
32505 \begin_inset Tabular
32506 <lyxtabular version="3" rows="2" columns="2">
32507 <features tabularvalignment="middle">
32508 <column alignment="center" valignment="top" width="0">
32509 <column alignment="center" valignment="top" width="0">
32511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32514 \begin_layout Plain Layout
32515 \begin_inset Graphics
32516 filename ../images/dialog-show-new-inset_graphics.png
32518 scaleBeforeRotation
32519 BoundingBox 0bp 6bp 22bp 22bp
32528 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32531 \begin_layout Plain Layout
32539 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32542 \begin_layout Plain Layout
32548 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32551 \begin_layout Plain Layout
32563 \begin_inset Tabular
32564 <lyxtabular version="3" rows="2" columns="2">
32565 <features tabularvalignment="middle">
32566 <column alignment="center" valignment="top" width="0">
32567 <column alignment="center" valignment="top" width="0">
32569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32572 \begin_layout Plain Layout
32578 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32581 \begin_layout Plain Layout
32582 \begin_inset Graphics
32583 filename ../images/dialog-show-new-inset_graphics.png
32585 scaleBeforeRotation
32586 BoundingBox 0bp 6bp 22bp 22bp
32597 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32600 \begin_layout Plain Layout
32606 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32609 \begin_layout Plain Layout
32623 \begin_layout Standard
32624 To get an object exactly at the position where it is inserted, for example
32625 to get one of these positions:
32626 \begin_inset VSpace defskip
32632 \begin_layout Standard
32635 \begin_inset Tabular
32636 <lyxtabular version="3" rows="2" columns="2">
32637 <features tabularvalignment="middle">
32638 <column alignment="center" valignment="top" width="0">
32639 <column alignment="center" valignment="top" width="0">
32641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32644 \begin_layout Plain Layout
32650 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32653 \begin_layout Plain Layout
32661 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32664 \begin_layout Plain Layout
32665 \begin_inset Graphics
32666 filename ../images/dialog-show-new-inset_graphics.png
32668 scaleBeforeRotation
32669 BoundingBox 0bp 6bp 22bp 22bp
32678 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32681 \begin_layout Plain Layout
32693 \begin_inset Tabular
32694 <lyxtabular version="3" rows="2" columns="2">
32695 <features tabularvalignment="middle">
32696 <column alignment="center" valignment="top" width="0">
32697 <column alignment="center" valignment="top" width="0">
32699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32702 \begin_layout Plain Layout
32708 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32711 \begin_layout Plain Layout
32719 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32722 \begin_layout Plain Layout
32728 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32731 \begin_layout Plain Layout
32732 \begin_inset Graphics
32733 filename ../images/dialog-show-new-inset_graphics.png
32735 scaleBeforeRotation
32736 BoundingBox 0bp 6bp 22bp 22bp
32751 \begin_inset Tabular
32752 <lyxtabular version="3" rows="2" columns="3">
32753 <features tabularvalignment="middle">
32754 <column alignment="center" valignment="top" width="0">
32755 <column alignment="center" valignment="top" width="0">
32756 <column alignment="center" valignment="top" width="0">
32758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32761 \begin_layout Plain Layout
32767 <cell alignment="center" valignment="top" topline="true" usebox="none">
32770 \begin_layout Plain Layout
32771 \begin_inset Graphics
32772 filename ../images/dialog-show-new-inset_graphics.png
32774 scaleBeforeRotation
32775 BoundingBox 0bp 6bp 22bp 22bp
32784 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32787 \begin_layout Plain Layout
32795 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32798 \begin_layout Plain Layout
32804 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32807 \begin_layout Plain Layout
32813 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32816 \begin_layout Plain Layout
32828 \begin_inset Tabular
32829 <lyxtabular version="3" rows="2" columns="3">
32830 <features tabularvalignment="middle">
32831 <column alignment="center" valignment="top" width="0">
32832 <column alignment="center" valignment="top" width="0">
32833 <column alignment="center" valignment="top" width="0">
32835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32838 \begin_layout Plain Layout
32844 <cell alignment="center" valignment="top" topline="true" usebox="none">
32847 \begin_layout Plain Layout
32853 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32856 \begin_layout Plain Layout
32864 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32867 \begin_layout Plain Layout
32873 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32876 \begin_layout Plain Layout
32877 \begin_inset Graphics
32878 filename ../images/dialog-show-new-inset_graphics.png
32880 scaleBeforeRotation
32881 BoundingBox 0bp 6bp 22bp 22bp
32890 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32893 \begin_layout Plain Layout
32907 \begin_layout Standard
32910 \begin_inset Tabular
32911 <lyxtabular version="3" rows="3" columns="2">
32912 <features tabularvalignment="middle">
32913 <column alignment="center" valignment="top" width="0">
32914 <column alignment="center" valignment="top" width="0">
32916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32919 \begin_layout Plain Layout
32925 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32928 \begin_layout Plain Layout
32936 <cell alignment="center" valignment="top" leftline="true" usebox="none">
32939 \begin_layout Plain Layout
32940 \begin_inset Graphics
32941 filename ../images/dialog-show-new-inset_graphics.png
32943 scaleBeforeRotation
32944 BoundingBox 0bp 6bp 22bp 22bp
32953 <cell alignment="center" valignment="top" rightline="true" usebox="none">
32956 \begin_layout Plain Layout
32964 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32967 \begin_layout Plain Layout
32973 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32976 \begin_layout Plain Layout
32988 \begin_inset Tabular
32989 <lyxtabular version="3" rows="3" columns="3">
32990 <features tabularvalignment="middle">
32991 <column alignment="center" valignment="top" width="0">
32992 <column alignment="center" valignment="top" width="0">
32993 <column alignment="center" valignment="top" width="0">
32995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32998 \begin_layout Plain Layout
33004 <cell alignment="center" valignment="top" topline="true" usebox="none">
33007 \begin_layout Plain Layout
33013 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33016 \begin_layout Plain Layout
33024 <cell alignment="center" valignment="top" leftline="true" usebox="none">
33027 \begin_layout Plain Layout
33033 <cell alignment="center" valignment="top" usebox="none">
33036 \begin_layout Plain Layout
33037 \begin_inset Graphics
33038 filename ../images/dialog-show-new-inset_graphics.png
33040 scaleBeforeRotation
33041 BoundingBox 0bp 6bp 22bp 22bp
33050 <cell alignment="center" valignment="top" rightline="true" usebox="none">
33053 \begin_layout Plain Layout
33061 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33064 \begin_layout Plain Layout
33070 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
33073 \begin_layout Plain Layout
33079 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33082 \begin_layout Plain Layout
33094 \begin_inset Tabular
33095 <lyxtabular version="3" rows="3" columns="2">
33096 <features tabularvalignment="middle">
33097 <column alignment="center" valignment="top" width="0">
33098 <column alignment="center" valignment="top" width="0">
33100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33103 \begin_layout Plain Layout
33109 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33112 \begin_layout Plain Layout
33120 <cell alignment="center" valignment="top" leftline="true" usebox="none">
33123 \begin_layout Plain Layout
33129 <cell alignment="center" valignment="top" rightline="true" usebox="none">
33132 \begin_layout Plain Layout
33133 \begin_inset Graphics
33134 filename ../images/dialog-show-new-inset_graphics.png
33136 scaleBeforeRotation
33137 BoundingBox 0bp 6bp 22bp 22bp
33148 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33151 \begin_layout Plain Layout
33157 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33160 \begin_layout Plain Layout
33174 \begin_layout Standard
33176 you can use the LaTeX-package
33181 \begin_inset Index idx
33184 \begin_layout Plain Layout
33185 LaTeX-packages ! picinpar
33191 Here is an example:
33194 \begin_layout Standard
33198 \begin_layout Plain Layout
33208 \begin_inset Note Note
33211 \begin_layout Plain Layout
33212 The following section will only be displayed when the LaTeX-package
33224 \begin_layout Standard
33228 \begin_layout Plain Layout
33232 begin{window}[2,c,{
33238 \begin_inset Graphics
33239 filename clipart/mobius.eps
33242 scaleBeforeRotation
33243 rotateOrigin center
33251 \begin_layout Plain Layout
33256 \begin_layout Plain Layout
33265 It was in the spring of the year 1894 that all London was interested, and
33266 the fashionable world dismayed, by the murder of the Honourable Ronald
33267 Adair under most unusual and inexplicable circumstances.
33268 The public has already learned those particulars of the crime which
33274 \begin_layout Plain Layout
33285 came out in the police investigation, but a good deal was suppressed upon
33286 that occasion, since the case for the prosecution was so overwhelmingly
33287 strong that it was not necessary to bring forward all the facts.
33288 Only now, at the end of nearly ten years, am I allowed to supply those
33289 missing links which make up the whole of that remarkable chain.
33295 \begin_layout Plain Layout
33307 \begin_layout Standard
33311 \begin_layout Plain Layout
33320 Footnote of the paragraph with the fixed object.
33324 \begin_layout Plain Layout
33334 \begin_layout Standard
33335 Surrounded fixed objects are used to let text float around them, at which
33336 the object's position in the paragraph can be determined by the number
33338 In contrary to floats is it not possible to have a numbered caption.
33341 \begin_layout Standard
33342 A fixed object is inserted by adding the command
33345 \begin_layout Standard
33350 begin{window}[2,c,{
33353 \begin_layout Standard
33354 as TeX Code at the beginning of the paragraph.
33355 The first parameter in the bracket, here '2', defines the number of lines
33356 above the object, the second, here 'c', the position of the object.
33357 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
33358 Behind the command you insert the object.
33359 In this example an image with a width of 40
33360 \begin_inset space \thinspace{}
33363 % of the text column width was inserted.
33364 The object can also be a table, a box or an equation.
33365 Behind the object the command
33368 \begin_layout Standard
33371 },description text]
33372 \begin_inset Newline newline
33378 \begin_layout Standard
33381 \begin_inset Quotes eld
33389 \begin_inset Quotes erd
33392 is in the second line.
33393 The description text is optional.
33394 The text surrounding the object must be in the same paragraph as the object,
33395 so it must begin directly after the
33400 At the end of the paragraph insert the command:
33403 \begin_layout Standard
33411 \begin_layout Standard
33412 Within a paragraph with a fixed object, you cannot insert footnotes in the
33414 You have to use instead the command
33420 inside the paragraph and outside the command
33426 as described in sec.
33427 \begin_inset space \thinspace{}
33431 \begin_inset CommandInset ref
33433 reference "sec:Footnotes"
33440 \begin_layout Standard
33444 \begin_layout Plain Layout
33454 \begin_inset Note Note
33457 \begin_layout Plain Layout
33458 The following will be displayed when the LaTeX-package
33470 \begin_layout Standard
33471 You need to install the LaTeX-package
33475 to see the following part of this section in the output.
33478 \begin_layout Standard
33482 \begin_layout Plain Layout
33494 \begin_layout Section
33496 \begin_inset Index idx
33499 \begin_layout Plain Layout
33506 \begin_inset Index idx
33509 \begin_layout Plain Layout
33510 Surrounded by text ! Initials
33518 \begin_layout Standard
33519 To use initials, you must have the LaTeX-package
33524 \begin_inset Index idx
33527 \begin_layout Plain Layout
33528 LaTeX-packages ! lettrine
33533 installed and use the module
33537 in your document (menu
33539 Document\SpecialChar \menuseparator
33540 Settings\SpecialChar \menuseparator
33544 To insert an initial, use the style
33549 This style has a mandatory and an optional argument.
33550 The mandatory argument is inserted via the menu
33552 Insert\SpecialChar \menuseparator
33554 \begin_inset space ~
33559 and contains the letter that is the initial.
33560 To use also the optional argument, insert another argument in front of
33561 the mandatory argument.
33562 This one contains parameters to modify the initial.
33563 For more information about the possible parameters see the documentation
33569 \begin_inset CommandInset citation
33576 The style itself contains the text that is surrounding the initial.
33577 The usual style is hereby that the word whose first letter is the initial,
33583 To tell LaTeX where this word is finished, add a closing brace '
33587 ' as TeX Code behind it.
33588 At the end of the style there must be an opening brace '
33595 \begin_layout Standard
33596 Here are some examples:
33599 \begin_layout Standard
33603 \begin_layout Plain Layout
33613 \begin_inset Note Note
33616 \begin_layout Plain Layout
33617 The following section will only be displayed when the LaTeX-package
33629 \begin_layout Enumerate
33630 No optional argument, the initial is the letter 'I' in the math font
33631 \begin_inset Formula $\mathfrak{Fraktur}$
33638 \begin_layout Initial
33639 \begin_inset Argument
33642 \begin_layout Plain Layout
33643 \begin_inset Formula $\mathfrak{I}$
33655 \begin_layout Plain Layout
33662 was in the spring of the year 1894 that all London was interested, and
33663 the fashionable world dismayed, by the murder of the Honourable Ronald
33664 Adair under most unusual and inexplicable circumstances.
33665 The public has already learned those particulars of the crime which came
33666 out in the police investigation, but a good deal was suppressed upon that
33667 occasion, since the case for the prosecution was so overwhelmingly strong
33668 that it was not necessary to bring forward all the facts.
33672 \begin_layout Plain Layout
33680 \begin_inset Newpage newpage
33687 \begin_layout Enumerate
33688 Only one line is surrounding the initial, which is formed by two letters
33689 in standard font and no text is printed in small caps:
33693 \begin_layout Initial
33694 \begin_inset Argument
33697 \begin_layout Plain Layout
33704 \begin_inset Argument
33707 \begin_layout Plain Layout
33717 \begin_layout Plain Layout
33724 was in the spring of the year 1894 that all London was interested, and
33725 the fashionable world dismayed, by the murder of the Honourable Ronald
33726 Adair under most unusual and inexplicable circumstances.
33727 The public has already learned those particulars of the crime which came
33728 out in the police investigation, but a good deal was suppressed upon that
33729 occasion, since the case for the prosecution was so overwhelmingly strong
33730 that it was not necessary to bring forward all the facts.
33734 \begin_layout Plain Layout
33745 \begin_layout Enumerate
33746 Magenta, hanging initial over 3
33747 \begin_inset space ~
33750 lines in the math font
33751 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
33755 \begin_inset Quotes eld
33758 t was in the spring
33759 \begin_inset Quotes erd
33766 ; to color the initial, you must insert this command before the initial:
33767 \begin_inset Newline newline
33781 \begin_inset Newline newline
33789 \begin_inset Quotes eld
33793 \begin_inset Quotes erd
33797 \begin_inset Quotes eld
33801 \begin_inset Quotes erd
33805 \begin_inset Quotes eld
33809 \begin_inset Quotes erd
33813 \begin_inset Quotes eld
33817 \begin_inset Quotes erd
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
33852 , and add this command to the document preamble:
33853 \begin_inset Newline newline
33860 @ifundefined{textcolor}
33861 \begin_inset Newline newline
33865 \begin_inset space ~
33870 usepackage{color}}{}
33874 \begin_layout Standard
33878 \begin_layout Plain Layout
33892 \begin_inset Note Note
33895 \begin_layout Plain Layout
33896 makes the initial magenta
33904 \begin_layout Initial
33905 \begin_inset Argument
33908 \begin_layout Plain Layout
33909 lines=3, lhang=0.33, loversize=0.25
33915 \begin_inset Argument
33918 \begin_layout Plain Layout
33919 \begin_inset Formula $\mathcal{I}$
33927 t was in the spring
33931 \begin_layout Plain Layout
33938 of the year 1894 that all London was interested, and the fashionable world
33939 dismayed, by the murder of the Honourable Ronald Adair under most unusual
33940 and inexplicable circumstances.
33941 The public has already learned those particulars of the crime which came
33942 out in the police investigation, but a good deal was suppressed upon that
33943 occasion, since the case for the prosecution was so overwhelmingly strong
33944 that it was not necessary to bring forward all the facts.
33948 \begin_layout Plain Layout
33959 \begin_layout Standard
33963 \begin_layout Plain Layout
33973 \begin_inset Note Note
33976 \begin_layout Plain Layout
33977 The following will be displayed when the LaTeX-package
33989 \begin_layout Standard
33990 You need to install the LaTeX-package
33994 to see the following part of this section in the output.
33997 \begin_layout Standard
34001 \begin_layout Plain Layout
34013 \begin_layout Chapter
34014 External Document Parts
34015 \begin_inset Index idx
34018 \begin_layout Plain Layout
34019 External Document Parts
34027 \begin_layout Standard
34030 Insert\SpecialChar \menuseparator
34033 you can insert external material to your document.
34037 \begin_layout Description
34039 \begin_inset space ~
34042 Document Another LyX document; its content is directly inserted to your
34046 \begin_layout Description
34048 \begin_inset space ~
34051 Text A text document; each line is inserted in your document as a separate
34055 \begin_layout Description
34057 \begin_inset space ~
34061 \begin_inset space ~
34065 \begin_inset space ~
34068 Lines A text document; text lines are inserted in your document continuously
34069 but an empty text line creates a new paragraph.
34072 \begin_layout Description
34074 \begin_inset space ~
34077 Material Files in various formats.
34080 \begin_layout Description
34082 \begin_inset space ~
34085 Document LyX or LaTeX-documents.
34088 \begin_layout Section
34090 \begin_inset Index idx
34093 \begin_layout Plain Layout
34094 External Document Parts ! External Material
34102 \begin_layout Standard
34103 The external material feature allows you to insert files in to your document
34104 without converting them to a format that can be read by the document output
34106 LyX takes care of the necessary conversions.
34107 This is similar to images that can be inserted in various image formats
34109 When you have enabled Instant Preview in LyX's preferences under
34112 \begin_inset space ~
34116 \begin_inset space ~
34119 feel\SpecialChar \menuseparator
34122 , the external material types Dia and Xfig are directly shown in LyX.
34125 \begin_layout Standard
34126 External material can be inserted via the
34130 dialog that is accessible with the menu
34132 Insert\SpecialChar \menuseparator
34133 File\SpecialChar \menuseparator
34135 \begin_inset space ~
34141 Currently the following file types (
34148 \begin_layout Description
34149 ChessDiagram This template supports chess position diagrams made with the
34153 \begin_inset CommandInset href
34156 target "http://en.wikipedia.org/wiki/XBoard"
34165 \begin_layout Description
34166 Date This inserts the date in the form
34171 This is a date inserted as external material:
34172 \begin_inset External
34179 \begin_inset space ~
34183 \begin_inset Note Note
34186 \begin_layout Plain Layout
34187 Remove the protected space when bug 4398 is fixed!
34193 \begin_inset Newline newline
34196 The date is not shown within LyX, only in the output.
34197 There are two other methods of inserting a date: Via menu
34199 Insert\SpecialChar \menuseparator
34202 and with the LaTeX command
34209 The different methods are compared in Table
34210 \begin_inset space ~
34214 \begin_inset CommandInset ref
34216 reference "tab:Comparison-of-the"
34223 \begin_layout Description
34224 Dia This template supports diagrams created with the program
34227 \begin_inset CommandInset href
34230 target "http://en.wikipedia.org/wiki/Dia_(software)"
34239 \begin_layout Description
34240 LilyPond This template is used for music notation typeset with the program
34241 \begin_inset Newline linebreak
34247 \begin_inset CommandInset href
34250 target "http://en.wikipedia.org/wiki/LilyPond"
34259 \begin_layout Description
34260 PDFPages With this template you can insert PDF documents to your document.
34261 To insert certain or all pages of a PDF, use the
34271 LaTeX and LyX options
34273 tab according to the template description in the dialog.
34278 option is given, only the first page of the PDF will be inserted.
34281 \begin_layout Description
34282 RasterImage This can be used for bitmap images.
34283 Nearly all popular image formats are supported.
34284 The image can be treated in the
34288 dialog like the images that are usually included via the
34292 dialog as described in section
34293 \begin_inset space ~
34297 \begin_inset CommandInset ref
34299 reference "sec:Graphics-Dialog"
34304 The difference is that only raster images are allowed; that means that
34305 PDF and EPS-images are not supported.
34308 \begin_layout Description
34309 XFig This template supports images created with the program
34312 \begin_inset CommandInset href
34315 target "http://en.wikipedia.org/wiki/Xfig"
34324 \begin_layout Standard
34325 \begin_inset Float table
34331 \begin_layout Plain Layout
34332 \begin_inset Caption
34334 \begin_layout Plain Layout
34335 \begin_inset CommandInset label
34337 name "tab:Comparison-of-the"
34341 Comparison of the date input methods.
34349 \begin_layout Plain Layout
34351 \begin_inset Tabular
34352 <lyxtabular version="3" rows="4" columns="4">
34353 <features tabularvalignment="middle">
34354 <column alignment="center" valignment="top" width="0">
34355 <column alignment="center" valignment="top" width="0">
34356 <column alignment="center" valignment="top" width="0">
34357 <column alignment="center" valignment="top" width="0">
34359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34362 \begin_layout Plain Layout
34368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34371 \begin_layout Plain Layout
34374 External Material\SpecialChar \menuseparator
34380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34383 \begin_layout Plain Layout
34386 Insert\SpecialChar \menuseparator
34392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34395 \begin_layout Plain Layout
34407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34410 \begin_layout Plain Layout
34416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34419 \begin_layout Plain Layout
34425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34428 \begin_layout Plain Layout
34434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34437 \begin_layout Plain Layout
34438 as TeX-Code inset box
34445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34448 \begin_layout Plain Layout
34454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34457 \begin_layout Plain Layout
34463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34466 \begin_layout Plain Layout
34472 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34475 \begin_layout Plain Layout
34483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34486 \begin_layout Plain Layout
34492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34495 \begin_layout Plain Layout
34501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34504 \begin_layout Plain Layout
34510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34513 \begin_layout Plain Layout
34532 \begin_layout Standard
34533 When you use the option
34545 dialog, only the path to the inserted file is shown in the output.
34546 \begin_inset Newline newline
34549 External material is displayed in LyX either as a box like this:
34550 \begin_inset Graphics
34551 filename clipart/ExternalMaterialQt4.png
34553 scaleBeforeRotation
34557 or as image, depending on the option
34563 LaTeX and LyX options
34568 \begin_layout Standard
34575 manual explains how you can define your own templates.
34578 \begin_layout Section
34580 \begin_inset CommandInset label
34582 name "sec:Child-Documents"
34587 \begin_inset Index idx
34590 \begin_layout Plain Layout
34591 External Document Parts ! Child Documents
34597 \begin_inset Index idx
34600 \begin_layout Plain Layout
34609 \begin_layout Standard
34610 Child documents are used if you have a long document consisting of several
34611 larger parts or sections.
34612 For maintenance it is often useful and sometimes even required to split
34613 the document into several files that can be revised separately.
34614 The different documents are then the so called
34615 \begin_inset Quotes eld
34619 \begin_inset Quotes erd
34622 , and a master document connects them to print the full document or parts
34624 A child document inherits elements of its master, for example the LaTeX
34625 preamble, the bibliography, and labels for cross-references.
34628 \begin_layout Standard
34629 To be able to work on child documents without the need to open their master,
34630 specify in the child document the master in the menu
34632 Document\SpecialChar \menuseparator
34633 Settings\SpecialChar \menuseparator
34635 \begin_inset space ~
34641 This master document will then be used in the background by LyX when you
34642 edit the child document.
34645 \begin_layout Standard
34646 Included documents are displayed in LyX as a box like this:
34647 \begin_inset Graphics
34648 filename clipart/ChildDocumentQt4.png
34650 scaleBeforeRotation
34654 To include child documents in a master document use the menu
34656 Insert\SpecialChar \menuseparator
34657 File\SpecialChar \menuseparator
34659 \begin_inset space ~
34665 A dialog pops up where you can choose between four include methods:
34668 \begin_layout Description
34669 Include You can include LyX- and LaTeX-documents.
34678 dialog, the included documents will be opened in LyX in a new file tab
34679 so that you can modify them.
34680 \begin_inset Newline newline
34686 \begin_layout Standard
34687 Here is a child document inserted using
34692 \begin_inset CommandInset include
34693 LatexCommand include
34694 filename "DummyDocument1.lyx"
34701 \begin_layout Standard
34702 The section numbering includes the sections of the included files in the
34703 order they are inserted in the master document.
34704 The included example document has for example a subsection that is numbered
34705 as a subsection of this section.
34706 Labels of included documents can be referenced: Subsection
34707 \begin_inset space ~
34711 \begin_inset CommandInset ref
34713 reference "sub:External-Subsection-1"
34720 \begin_layout Standard
34721 The preamble of the child document is ignored; only the preamble of the
34722 master document is used.
34723 Branches in child documents will be ignored by the master document when
34724 the master document does not have a branch with the same name.
34725 Included documents are inserted starting on a new page and ending with
34729 \begin_layout Standard
34730 \begin_inset Note Greyedout
34733 \begin_layout Plain Layout
34738 If you have included a LyX- or LaTeX-file, you are warned when you export/view
34739 the document in case the child document uses another document class than
34740 the master document as this will lead to unexpected outputs.
34748 \begin_layout Description
34749 Input This method is very similar to the Include method.
34750 The differences are:
34754 \begin_layout Itemize
34755 Input files don't start with a new page and don't end with a page break.
34758 \begin_layout Itemize
34759 Input files can be previewed in LyX when
34762 \begin_inset space ~
34767 is enabled in LyX's preferences under
34770 \begin_inset space ~
34774 \begin_inset space ~
34777 feel\SpecialChar \menuseparator
34783 \begin_layout Itemize
34784 You cannot exclude Input files via the menu
34786 Document\SpecialChar \menuseparator
34787 Settings\SpecialChar \menuseparator
34794 \begin_layout Standard
34795 Here is a child document inserted using
34800 \begin_inset CommandInset include
34802 filename "DummyDocument2.lyx"
34809 \begin_layout Description
34810 Verbatim With this method any text file can be included.
34811 The file is shown in the output with its source code; no command used in
34812 the text is invoked.
34813 You can use the option
34815 Mark spaces in output
34817 that displays the character
34818 \begin_inset Quotes eld
34825 \begin_layout Plain Layout
34835 \begin_inset Quotes erd
34838 for every space character in the source code.
34839 The difference from the method via the menu
34841 Insert\SpecialChar \menuseparator
34842 File\SpecialChar \menuseparator
34844 \begin_inset space ~
34849 is that the document content is not shown in LyX.
34852 \begin_layout Standard
34853 Here is a child document inserted as Verbatim:
34854 \begin_inset CommandInset include
34855 LatexCommand verbatiminput
34856 filename "DummyTextDocument.txt"
34861 \begin_inset VSpace bigskip
34864 Here is a child document inserted as Verbatim using the
34866 Mark spaces in output
34869 \begin_inset CommandInset include
34870 LatexCommand verbatiminput*
34871 filename "DummyTextDocument.txt"
34878 \begin_layout Standard
34879 \begin_inset VSpace bigskip
34885 \begin_layout Standard
34886 \begin_inset Note Greyedout
34889 \begin_layout Plain Layout
34894 As you can see in the examples above, the text of the documents included
34899 is not broken at the end of the document lines.
34907 \begin_layout Description
34908 Listings This type is described in chapter
34909 \begin_inset space ~
34913 \begin_inset CommandInset ref
34915 reference "cha:Program-Code-Listings"
34922 \begin_layout Standard
34923 \begin_inset Note Greyedout
34926 \begin_layout Plain Layout
34931 Including the same document twice in a document using different methods
34932 could cause LaTeX-problems.
34940 \begin_layout Standard
34941 If you want to view/export only selected children of your master document,
34942 either because you want to save compiling time or because you want to distribut
34943 e single chapters of the book you are just writing, you can exclude children
34945 This is done via the menu
34947 Document\SpecialChar \menuseparator
34948 Settings\SpecialChar \menuseparator
34952 You can exclude\SpecialChar \slash{}
34953 include children by double-clicking on the
34957 column of the respective child document in the list (note that this only
34958 works for documents embedded via
34959 \begin_inset Quotes eld
34963 \begin_inset Quotes erd
34967 \begin_inset Quotes eld
34971 \begin_inset Quotes erd
34977 Maintain counters and references
34979 is enabled, LyX will assure that all page numbers, references etc.
34980 \begin_inset space ~
34983 are correct as if the whole document was processed.
34984 This is useful if you want the selected sub-documents to look exactly as
34985 in the context of the whole document.
34986 However, LyX needs to process the whole document in the background for
34988 So if you want to save compile time and if counters and references do not
34989 need to be correct, disable this checkbox.
34992 \begin_layout Standard
34993 Alternatively, you can put each included file into a branch.
34997 \begin_layout Plain Layout
34998 Branches are described in section
35011 By enabling\SpecialChar \slash{}
35012 disabling branches you can decide which included files will
35013 appear in the output.
35014 This has the advantage that it also works with Input'ed sub-documents.
35015 However, counters and references will not be maintained with this approach.
35018 \begin_layout Chapter
35019 Program Code Listings
35020 \begin_inset CommandInset label
35022 name "cha:Program-Code-Listings"
35027 \begin_inset Index idx
35030 \begin_layout Plain Layout
35037 \begin_inset Index idx
35040 \begin_layout Plain Layout
35047 \begin_inset Index idx
35050 \begin_layout Plain Layout
35059 \begin_layout Standard
35060 To include and typeset program code you can use the
35064 inset that can be inserted via the menu
35066 Insert\SpecialChar \menuseparator
35075 \begin_inset Index idx
35078 \begin_layout Plain Layout
35079 LaTeX-packages ! listings
35084 provides a powerful and flexible way to insert program source code into
35088 \begin_layout Standard
35089 Right-clicking on a listings inset opens the context menu containing where
35090 you can set the listings format.
35093 \begin_layout Standard
35094 By default, a listing starts a new paragraph in the output.
35095 The placement option
35098 \begin_inset space ~
35103 prints the listing inline like this:
35104 \begin_inset listings
35105 lstparams "language={C++}"
35109 \begin_layout Plain Layout
35117 \begin_inset Newline newline
35124 creates a listings float where you can specify the placement options
35125 \begin_inset Quotes eld
35133 \begin_inset Quotes erd
35137 \begin_inset Quotes eld
35145 \begin_inset Quotes erd
35149 \begin_inset Quotes eld
35157 \begin_inset Quotes erd
35161 \begin_inset Quotes eld
35169 \begin_inset Quotes erd
35172 corresponding to the float placement options described in section
35173 \begin_inset space ~
35177 \begin_inset CommandInset ref
35179 reference "sec:Float-Placement"
35184 The placement options can be mixed and are inserted without any separation,
35186 \begin_inset space \thinspace{}
35190 \begin_inset space \space{}
35194 \begin_inset Quotes eld
35202 \begin_inset Quotes erd
35207 \begin_inset Quotes eld
35211 \begin_inset Quotes erd
35214 has sometimes no effect, but you don't need to use the
35218 option in this case as also non-float listings can have captions and be
35222 \begin_layout Standard
35223 You can add captions to listings with the menu
35225 Insert\SpecialChar \menuseparator
35229 Listings can be referenced like floats: Listing
35230 \begin_inset space ~
35234 \begin_inset CommandInset ref
35236 reference "lst:Example-Listing"
35243 \begin_layout Standard
35244 \begin_inset listings
35245 lstparams "language=Python"
35249 \begin_layout Plain Layout
35251 \begin_inset Caption
35253 \begin_layout Plain Layout
35254 \begin_inset CommandInset label
35256 name "lst:Example-Listing"
35260 Example Listing float
35265 # Example listing float
35268 \begin_layout Plain Layout
35273 \begin_layout Plain Layout
35275 'this is a python function'
35278 \begin_layout Plain Layout
35288 \begin_layout Standard
35289 When you have set a programming language in the listings dialog, the keywords
35290 of this language will be recognized and specially typeset in the output.
35291 In the example listings the Python keyword
35292 \begin_inset Quotes eld
35296 \begin_inset Quotes erd
35299 is recognized and printed bold in the output.
35302 \begin_layout Standard
35303 \begin_inset Note Greyedout
35306 \begin_layout Plain Layout
35311 If you don't get bold keywords when using typewriter fonts, your
35315 font probably doesn't provide a bold shape.
35316 In this case select a different one in the menu
35318 Document\SpecialChar \menuseparator
35319 Settings\SpecialChar \menuseparator
35331 provide bold shapes.)
35339 \begin_layout Standard
35343 \begin_inset space ~
35348 of the listings dialog you can specify the line numbering style.
35349 You can insert a number to specify which lines are numbered in the field
35356 \begin_inset space \thinspace{}
35360 \begin_inset space \space{}
35364 \begin_inset Quotes eld
35368 \begin_inset Quotes erd
35371 , only every 3rd line will be numbered.
35374 \begin_layout Standard
35375 You can furthermore specify a range of lines; only these will then appear
35379 Extended character table
35381 should be used when you use national characters like the German umlauts
35383 \begin_inset Newline newline
35386 Here is an example listing with left line numbering, step
35387 \begin_inset Quotes eld
35391 \begin_inset Quotes erd
35395 \begin_inset Quotes eld
35399 \begin_inset Quotes erd
35403 \begin_inset Quotes eld
35406 Extended character table
35407 \begin_inset Quotes erd
35411 \begin_inset Quotes eld
35415 \begin_inset space ~
35419 \begin_inset space ~
35423 \begin_inset Quotes erd
35427 \begin_inset space \thinspace{}
35431 \begin_inset space \thinspace{}
35437 \begin_layout Standard
35438 \begin_inset listings
35439 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
35443 \begin_layout Plain Layout
35448 \begin_layout Plain Layout
35450 'this is a python function'
35453 \begin_layout Plain Layout
35458 \begin_layout Plain Layout
35463 \begin_layout Plain Layout
35465 'This is a German word: Tschüß'
35468 \begin_layout Plain Layout
35473 \begin_layout Plain Layout
35478 \begin_layout Plain Layout
35480 'this is a python function'
35483 \begin_layout Plain Layout
35493 \begin_layout Standard
35494 When you have tabulators in your listing, you can specify the number of
35495 characters that are spanned by a tabulator in the field
35498 \begin_inset space ~
35506 \begin_layout Standard
35507 \begin_inset Note Greyedout
35510 \begin_layout Plain Layout
35515 Due to a bug in the
35519 package the line numbering is shifted by a line by every previous listing.
35520 That's the reason why the lines 2 and 5 are numbered in the above listing
35521 and not the lines 3 and 6.
35529 \begin_layout Standard
35530 \begin_inset VSpace bigskip
35536 \begin_layout Standard
35537 It is also possible to print lines from a file as listing.
35538 To do this, use the menu
35540 Insert\SpecialChar \menuseparator
35541 File\SpecialChar \menuseparator
35544 and choose the type
35552 \begin_layout Plain Layout
35553 The other child document types are described in section
35554 \begin_inset space ~
35558 \begin_inset CommandInset ref
35560 reference "sec:Child-Documents"
35569 In the child document dialog you can specify the listing parameters in
35571 To show a list of all available parameters, type in a question mark
35572 \begin_inset Quotes eld
35576 \begin_inset Quotes erd
35582 \begin_layout Standard
35583 To reference child document listings, write a label text into the corresponding
35584 field of the child document dialog.
35585 The label can then be referenced using the menu
35587 Insert\SpecialChar \menuseparator
35593 \begin_layout Standard
35595 \begin_inset space ~
35599 \begin_inset CommandInset ref
35601 reference "lst:file-listing"
35605 is an example for a listing of a file; there the lines 10
35606 \begin_inset space \thinspace{}
35610 \begin_inset space \thinspace{}
35613 15 of this LyX file are listed.
35616 \begin_layout Standard
35617 \begin_inset CommandInset include
35618 LatexCommand lstinputlisting
35619 filename "EmbeddedObjects.lyx"
35620 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
35627 \begin_layout Standard
35628 \begin_inset VSpace bigskip
35634 \begin_layout Standard
35635 Inserting a formula into a listing can be done the following way:
35638 \begin_layout Enumerate
35639 Open the listings dialog and add
35640 \begin_inset Newline newline
35648 \begin_inset Newline newline
35651 to the field of the
35658 \begin_layout Enumerate
35659 Create a formula outside the listing
35662 \begin_layout Enumerate
35663 Copy the content of the formula (not the formula inset) to the clipboard
35673 \begin_layout Enumerate
35674 In the listing write
35675 \begin_inset Quotes eld
35683 \begin_inset Quotes erd
35686 and copy from the clipboard between the dollar-signs (shortcut
35695 \begin_layout Standard
35696 \begin_inset listings
35697 lstparams "language=Python,mathescape=true"
35701 \begin_layout Plain Layout
35703 \begin_inset Caption
35705 \begin_layout Plain Layout
35706 Example Listing float containing a formula
35711 # Example listing float
35714 \begin_layout Plain Layout
35719 \begin_layout Plain Layout
35732 \begin_layout Plain Layout
35742 \begin_layout Standard
35743 \begin_inset VSpace bigskip
35749 \begin_layout Standard
35750 Global listings settings can be set in the
35752 Document\SpecialChar \menuseparator
35753 Settings\SpecialChar \menuseparator
35757 To get there a list of available options, type in a question mark
35758 \begin_inset Quotes eld
35762 \begin_inset Quotes erd
35768 \begin_layout Standard
35769 For more information about the
35773 package, we refer to its documentation
35774 \begin_inset CommandInset citation
35783 \begin_layout Standard
35784 \begin_inset Newpage newpage
35790 \begin_layout Chapter
35792 Units available in LyX
35793 \begin_inset Index idx
35796 \begin_layout Plain Layout
35803 \begin_inset CommandInset label
35805 name "cha:Units-available-in"
35812 \begin_layout Standard
35813 To understand the units described in this documentation, Table
35814 \begin_inset space ~
35818 \begin_inset CommandInset ref
35820 reference "tab:Units"
35824 explains all units available in LyX.
35827 \begin_layout Standard
35828 \begin_inset Float table
35834 \begin_layout Plain Layout
35835 \begin_inset Caption
35837 \begin_layout Plain Layout
35838 \begin_inset CommandInset label
35852 \begin_layout Plain Layout
35853 \begin_inset VSpace medskip
35859 \begin_layout Plain Layout
35861 \begin_inset Tabular
35862 <lyxtabular version="3" rows="20" columns="2">
35863 <features tabularvalignment="middle">
35864 <column alignment="center" valignment="top" width="0">
35865 <column alignment="center" valignment="top" width="0">
35867 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35870 \begin_layout Plain Layout
35876 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35879 \begin_layout Plain Layout
35887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35890 \begin_layout Plain Layout
35896 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35899 \begin_layout Plain Layout
35907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35910 \begin_layout Plain Layout
35916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35919 \begin_layout Plain Layout
35927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35930 \begin_layout Plain Layout
35936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35939 \begin_layout Plain Layout
35947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35950 \begin_layout Plain Layout
35956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35959 \begin_layout Plain Layout
35961 \begin_inset space \thinspace{}
35965 \begin_inset space \thinspace{}
35975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35978 \begin_layout Plain Layout
35984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35987 \begin_layout Plain Layout
35989 \begin_inset space \thinspace{}
35993 \begin_inset space \thinspace{}
36003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36006 \begin_layout Plain Layout
36012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36015 \begin_layout Plain Layout
36016 scaled point (65536
36017 \begin_inset space \thinspace{}
36021 \begin_inset space \thinspace{}
36031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36034 \begin_layout Plain Layout
36040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36043 \begin_layout Plain Layout
36045 \begin_inset space \thinspace{}
36049 \begin_inset space \thinspace{}
36059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36062 \begin_layout Plain Layout
36068 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36071 \begin_layout Plain Layout
36073 \begin_inset space \thinspace{}
36077 \begin_inset Formula $\approx$
36081 \begin_inset space \thinspace{}
36091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36094 \begin_layout Plain Layout
36100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36103 \begin_layout Plain Layout
36105 \begin_inset space \thinspace{}
36109 \begin_inset space \thinspace{}
36119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36122 \begin_layout Plain Layout
36128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36131 \begin_layout Plain Layout
36132 % of original image width
36139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36142 \begin_layout Plain Layout
36148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36151 \begin_layout Plain Layout
36159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36162 \begin_layout Plain Layout
36168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36171 \begin_layout Plain Layout
36179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36182 \begin_layout Plain Layout
36188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36191 \begin_layout Plain Layout
36199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36202 \begin_layout Plain Layout
36208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36211 \begin_layout Plain Layout
36219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36222 \begin_layout Plain Layout
36228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36231 \begin_layout Plain Layout
36239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36242 \begin_layout Plain Layout
36248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36251 \begin_layout Plain Layout
36259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36262 \begin_layout Plain Layout
36268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36271 \begin_layout Plain Layout
36283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36286 \begin_layout Plain Layout
36292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36295 \begin_layout Plain Layout
36307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36310 \begin_layout Plain Layout
36316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36319 \begin_layout Plain Layout
36321 \begin_inset space \thinspace{}
36325 \begin_inset space \thinspace{}
36346 \begin_layout Chapter
36347 Output File Formats with Graphics
36348 \begin_inset CommandInset label
36350 name "cha:Output-File-Formats"
36357 \begin_layout Section
36359 \begin_inset Index idx
36362 \begin_layout Plain Layout
36369 \begin_inset Index idx
36372 \begin_layout Plain Layout
36377 \begin_layout Plain Layout
36388 \begin_layout Plain Layout
36403 \begin_layout Standard
36404 This file type has the extension
36405 \begin_inset Quotes eld
36413 \begin_inset Quotes erd
36418 \begin_inset Quotes eld
36422 \begin_inset Quotes erd
36425 (DVI), because it is completely portable; you can move them from one machine
36426 to another without needing to do any sort of conversion.
36427 At the time when this file-format was developed, this was no matter of
36429 DVIs are used for quick previews and as pre-stage for other output formats,
36433 \begin_layout Standard
36434 \begin_inset Note Greyedout
36437 \begin_layout Plain Layout
36442 DVI-files do not contain images; they will only be a linked.
36447 So don't forget this, if you move your
36451 file to another computer.
36452 This property can also slow down your computer when you view the DVI, because
36453 the DVI-viewer has to convert the image in the background to make it visible
36454 when you scroll in the DVI.
36455 So it is recommended that you use PDF for files with many images.
36458 \begin_layout Standard
36459 You can export your document to DVI by using the menu
36461 File\SpecialChar \menuseparator
36462 Export\SpecialChar \menuseparator
36466 You can view your document as DVI via the
36470 menu or by using the toolbar button
36471 \begin_inset Graphics
36472 filename ../images/buffer-view_dvi.png
36474 scaleBeforeRotation
36481 \begin_layout Section
36483 \begin_inset CommandInset label
36485 name "sec:PostScript"
36490 \begin_inset Index idx
36493 \begin_layout Plain Layout
36494 File Formats ! PostScript
36500 \begin_inset Index idx
36503 \begin_layout Plain Layout
36508 \begin_layout Plain Layout
36519 \begin_layout Plain Layout
36534 \begin_layout Standard
36535 This file type has the extension
36536 \begin_inset Quotes eld
36544 \begin_inset Quotes erd
36548 PostScript was developed by the company
36552 as a printer language.
36553 The file therefore contains commands that the printer uses to print the
36555 PostScript can be seen as a
36556 \begin_inset Quotes eld
36559 programming language
36560 \begin_inset Quotes erd
36563 ; you can calculate with it and draw diagrams and images
36567 \begin_layout Plain Layout
36568 If you are interested to learn more about this, have a look at the LaTeX-package
36574 \begin_inset CommandInset citation
36586 Due to this ability, the files are often bigger than PDFs.
36589 \begin_layout Standard
36590 PostScript can only contain images in the format
36591 \begin_inset Quotes eld
36594 Encapsulated PostScript
36595 \begin_inset Quotes erd
36598 (EPS, file extension
36599 \begin_inset Quotes eld
36607 \begin_inset Quotes erd
36611 As LyX allows you to use any known image format in your document, it has
36612 to convert images in the background to EPS.
36614 \begin_inset space ~
36618 \begin_inset space ~
36621 images in your document, LyX has to do 50
36622 \begin_inset space ~
36625 conversions whenever you view or export your document.
36626 This will slow down your work flow with LyX drastically.
36627 So if you plan to use PostScript, you can insert your images directly as
36628 EPS to avoid this problem.
36631 \begin_layout Standard
36632 You can export your document to PostScript using the menu
36634 File\SpecialChar \menuseparator
36635 Export\SpecialChar \menuseparator
36639 You can view your document as PostScript via the
36643 menu or by using the toolbar button
36644 \begin_inset Graphics
36645 filename ../images/buffer-view_ps.png
36647 scaleBeforeRotation
36654 \begin_layout Section
36656 \begin_inset Index idx
36659 \begin_layout Plain Layout
36666 \begin_inset Index idx
36669 \begin_layout Plain Layout
36678 \begin_layout Standard
36679 This file type has the extension
36680 \begin_inset Quotes eld
36688 \begin_inset Quotes erd
36693 \begin_inset Quotes eld
36696 Portable Document Format
36697 \begin_inset Quotes erd
36700 (PDF) was developed by
36704 as a derivative of PostScript.
36705 It is more compressed and it uses fewer commands than PostScript.
36707 \begin_inset Quotes eld
36711 \begin_inset Quotes erd
36714 implies, it can be processed at any computer system and the printed output
36715 looks exactly the same.
36718 \begin_layout Standard
36719 PDF can contain images in its own PDF format, in the format
36720 \begin_inset Quotes eld
36723 Joint Photographic Experts Group
36724 \begin_inset Quotes erd
36727 (JPG, file extension
36728 \begin_inset Quotes eld
36736 \begin_inset Quotes erd
36740 \begin_inset Quotes eld
36748 \begin_inset Quotes erd
36751 ), and in the format
36752 \begin_inset Quotes eld
36755 Portable Network Graphics
36756 \begin_inset Quotes erd
36759 (PNG, file extension
36760 \begin_inset Quotes eld
36768 \begin_inset Quotes erd
36772 Nevertheless you can use any other image format, because LyX converts them
36773 in the background to one of these formats.
36774 But as described in the section about PostScript, the image conversion
36775 will slow down your work flow.
36776 So it is recommended that you use images in one of the three mentioned
36780 \begin_layout Standard
36781 You can export your document to PDF via the menu
36783 File\SpecialChar \menuseparator
36786 in three different ways:
36789 \begin_layout Description
36791 \begin_inset space ~
36794 (ps2pdf) This uses the program
36798 that creates a PDF from a PostScript-version of your file.
36799 The PostScript-version is produced by the program
36803 which uses a DVI-version as intermediate step.
36804 So this export variant consists of three conversions.
36807 \begin_layout Description
36809 \begin_inset space ~
36812 (dvipdfm) This uses the program
36816 that converts your file in the background to DVI and in a second step to
36820 \begin_layout Description
36822 \begin_inset space ~
36825 (pdflatex) This uses the program
36829 that converts your file directly to PDF.
36832 \begin_layout Standard
36833 It is recommended that you use
36836 \begin_inset space ~
36845 supports all features of actual PDF-versions, is quick and works stable.
36850 is not under development and therefore a bit outdated.
36853 \begin_layout Standard
36854 You can view your document as PDF via the
36858 menu or by using the toolbar button
36859 \begin_inset Graphics
36860 filename ../images/buffer-view_pdf2.png
36862 scaleBeforeRotation
36873 \begin_inset space ~
36881 \begin_layout Chapter
36882 Explanation of Equation
36883 \begin_inset space ~
36887 \begin_inset CommandInset ref
36894 \begin_inset CommandInset label
36896 name "cha:Explanation-of-Equation"
36903 \begin_layout Standard
36904 We can calculate the total width of
36909 \begin_inset Formula $W_{\mathrm{tot\, n}}$
36915 \begin_layout Standard
36916 \begin_inset Formula
36918 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
36924 \begin_inset Formula $W_{g\, n}$
36927 is the given width of all cells,
36933 is the LaTeX-length between the cell text and the cell border (its default
36935 \begin_inset space \thinspace{}
36945 is the thickness of the cell border line, the default is 0.4
36946 \begin_inset space \thinspace{}
36952 \begin_layout Standard
36954 \begin_inset space ~
36958 \begin_inset CommandInset ref
36960 reference "eq:Wtot_n"
36964 , the total width of a multicolumn
36965 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
36971 \begin_layout Standard
36972 \begin_inset Formula
36974 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
36982 \begin_layout Standard
36983 By setting equation
36984 \begin_inset space ~
36988 \begin_inset CommandInset ref
36990 reference "eq:Wtot_n"
36995 \begin_inset CommandInset ref
36997 reference "eq:Wtot_mult"
37001 equal we can calculate the needed given width
37002 \begin_inset Formula $W_{g\, n}$
37009 columns are spanned, so that each column has a total width of
37010 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
37016 \begin_layout Standard
37017 \begin_inset Formula
37019 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n
37027 \begin_layout Bibliography
37028 \labelwidthstring Bibliography
37029 \begin_inset CommandInset bibitem
37030 LatexCommand bibitem
37031 key "latexcompanion"
37035 Frank Mittelbach and Michel Goossens:
37037 The LaTeX Companion Second Edition.
37040 Addison-Wesley, 2004
37043 \begin_layout Bibliography
37044 \labelwidthstring Bibliography
37045 \begin_inset CommandInset bibitem
37046 LatexCommand bibitem
37051 Helmut Kopka and Patrick W.
37054 A Guide to LaTeX Fourth Edition.
37057 Addison-Wesley, 2003
37060 \begin_layout Bibliography
37061 \labelwidthstring Bibliography
37062 \begin_inset CommandInset bibitem
37063 LatexCommand bibitem
37070 LaTeX: A Document Preparation System.
37073 Addison-Wesley, second edition, 1994
37076 \begin_layout Bibliography
37077 \labelwidthstring Bibliography
37078 \begin_inset CommandInset bibitem
37079 LatexCommand bibitem
37084 Documentation of the LaTeX-package
37087 \begin_inset CommandInset href
37090 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
37097 \begin_inset Index idx
37100 \begin_layout Plain Layout
37101 LaTeX-packages ! booktabs
37109 \begin_layout Bibliography
37110 \labelwidthstring Bibliography
37111 \begin_inset CommandInset bibitem
37112 LatexCommand bibitem
37117 Documentation of the LaTeX-package
37120 \begin_inset CommandInset href
37123 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
37130 \begin_inset Index idx
37133 \begin_layout Plain Layout
37134 LaTeX-packages ! caption
37142 \begin_layout Bibliography
37143 \labelwidthstring Bibliography
37144 \begin_inset CommandInset bibitem
37145 LatexCommand bibitem
37150 Documentation of the LaTeX-package
37153 \begin_inset CommandInset href
37156 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
37163 \begin_inset Index idx
37166 \begin_layout Plain Layout
37167 LaTeX-packages ! endfloat
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/footmisc/footmisc.pdf"
37196 \begin_inset Index idx
37199 \begin_layout Plain Layout
37200 LaTeX-packages ! footmisc
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 "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
37229 \begin_inset Index idx
37232 \begin_layout Plain Layout
37233 LaTeX-packages ! hyperref
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/hyperref/hyperref.pdf"
37262 \begin_inset Index idx
37265 \begin_layout Plain Layout
37266 LaTeX-packages ! hyperref
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/koma-script/scrguien.pdf"
37295 \begin_inset Index idx
37298 \begin_layout Plain Layout
37299 LaTeX-packages ! KOMA-Script
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 "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
37328 \begin_inset Index idx
37331 \begin_layout Plain Layout
37332 LaTeX-packages ! listings
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/marginnote/marginnote.pdf"
37361 \begin_inset Index idx
37364 \begin_layout Plain Layout
37365 LaTeX-packages ! marginnote
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 "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
37394 \begin_inset CommandInset href
37397 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
37402 \begin_inset Index idx
37405 \begin_layout Plain Layout
37406 LaTeX-packages ! lettrine
37414 \begin_layout Bibliography
37415 \labelwidthstring Bibliography
37416 \begin_inset CommandInset bibitem
37417 LatexCommand bibitem
37422 Web page of the LaTeX-package
37425 \begin_inset CommandInset href
37428 target "http://tug.org/PSTricks/"
37435 \begin_inset Index idx
37438 \begin_layout Plain Layout
37439 LaTeX-packages ! PSTricks
37447 \begin_layout Bibliography
37448 \labelwidthstring Bibliography
37449 \begin_inset CommandInset bibitem
37450 LatexCommand bibitem
37455 Documentation of the LaTeX-package
37458 \begin_inset CommandInset href
37461 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
37468 \begin_inset Index idx
37471 \begin_layout Plain Layout
37472 LaTeX-packages ! sidecap
37480 \begin_layout Bibliography
37481 \labelwidthstring Bibliography
37482 \begin_inset CommandInset bibitem
37483 LatexCommand bibitem
37488 Documentation of the LaTeX-package
37491 \begin_inset CommandInset href
37494 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
37501 \begin_inset Index idx
37504 \begin_layout Plain Layout
37505 LaTeX-packages ! prettyref
37513 \begin_layout Bibliography
37514 \labelwidthstring Bibliography
37515 \begin_inset CommandInset bibitem
37516 LatexCommand bibitem
37521 Documentation of the LaTeX-package
37524 \begin_inset CommandInset href
37527 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
37534 \begin_inset Index idx
37537 \begin_layout Plain Layout
37538 LaTeX-packages ! refstyle
37546 \begin_layout Bibliography
37547 \labelwidthstring Bibliography
37548 \begin_inset CommandInset bibitem
37549 LatexCommand bibitem
37555 \begin_inset CommandInset href
37558 target "http://wiki.lyx.org/LyX/NewInLyX20"
37562 about new features in
37569 \begin_layout Standard
37570 \begin_inset CommandInset index_print
37571 LatexCommand printindex