1 #LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % increase the bottom float placement fraction
60 \renewcommand{\bottomfraction}{0.5}
62 % avoids that floats are placed before their
63 % corresponding section starts
64 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
66 % speed up the longtable calculation
67 \setcounter{LTchunksize}{100}
69 % used for scaled and rotated boxes
70 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
72 % used for colored tables
73 \@ifundefined{textcolor}
74 {\usepackage{color}}{}
75 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
76 \definecolor{lightgrey}{gray}{0.8}
78 % check for package colortbl
79 % used for colored table cells
81 \IfFileExists{colortbl.sty}
82 {\usepackage{colortbl}
83 \setboolean{colortbl}{true}}
84 {\setboolean{colortbl}{false}}
86 % used for book-style tables
89 % used to have extra space in table cells
90 \@ifundefined{extrarowheight}
91 {\usepackage{array}}{}
92 \setlength{\extrarowheight}{2pt}
94 % used for customized tables
97 {>{\centering\hspace{0pt}}m{#1}}
100 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
103 {>{\columncolor{#1}\hspace{0pt}}c}
105 \newcolumntype{V}{!{\vrule width 1.5pt}}
107 \newcolumntype{W}{!{\color{green}\vline}}
110 % insert additional vertical space of
111 % 1.5 mm between footnotes
113 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
115 % number algorithm floats within chapters
116 \numberwithin{algorithm}{chapter}
118 % ------------------------------------
119 % used to check for needed LaTeX packages
122 % check for package arydshln
123 % used for tables with dashed lines
124 \newboolean{arydshln}
125 \IfFileExists{arydshln.sty}
126 {\usepackage{arydshln}
127 \setboolean{arydshln}{true}}
128 {\setboolean{arydshln}{false}}
130 % check for package marginnote
131 % used for margin notes
132 \newboolean{marginnote}
133 \IfFileExists{marginnote.sty}
134 {\usepackage{marginnote}
135 \let\marginpar\marginnote
136 \setboolean{marginnote}{true}}
137 {\setboolean{marginnote}{false}}
139 % check for package sidecap
140 % used for captions on the side
142 \IfFileExists{sidecap.sty}
143 {\usepackage{sidecap}
144 \setboolean{sidecap}{true}}
145 {\setboolean{sidecap}{false}}
147 % redefine the \LyX macro for PDF bookmarks
148 \def\LyX{\texorpdfstring{%
149 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
152 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
153 \use_default_options false
154 \maintain_unincluded_children false
160 \font_typewriter default
161 \font_default_family default
169 \default_output_format default
171 \bibtex_command default
172 \index_command default
176 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
177 \pdf_author "LyX Team, Uwe Stöhr"
178 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
179 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
181 \pdf_bookmarksnumbered true
182 \pdf_bookmarksopen true
183 \pdf_bookmarksopenlevel 1
184 \pdf_breaklinks false
188 \pdf_pdfusetitle false
189 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
199 \paperorientation portrait
202 \notefontcolor #0000ff
209 \paragraph_separation skip
211 \quotes_language english
214 \paperpagestyle default
218 \tracking_changes false
219 \output_changes false
221 \html_be_strict false
227 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
236 \begin_layout Plain Layout
238 If you have comments or error corrections, please send them to the LyX Documenta
240 \begin_inset CommandInset href
242 name "lyx-docs@lists.lyx.org"
243 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
254 \begin_inset Note Note
257 \begin_layout Plain Layout
264 \begin_inset Newline newline
268 \begin_inset Newline newline
276 \begin_layout Standard
277 \begin_inset CommandInset toc
278 LatexCommand tableofcontents
285 \begin_layout Standard
286 \begin_inset Note Note
289 \begin_layout Plain Layout
290 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
308 If they are not installed you can export the document anyway but the sections
309 where the packages are required won't appear in the output.
312 \begin_layout Plain Layout
313 The latest PDF-version of this document can be found here:
314 \begin_inset Newline newline
319 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
327 \begin_layout Chapter
329 \begin_inset Index idx
332 \begin_layout Plain Layout
339 \begin_inset Index idx
342 \begin_layout Plain Layout
347 \begin_layout Plain Layout
358 \begin_layout Plain Layout
373 \begin_layout Section
375 \begin_inset Index idx
378 \begin_layout Plain Layout
379 Figures ! Graphics Dialog
385 \begin_inset CommandInset label
387 name "sec:Graphics-Dialog"
394 \begin_layout Standard
395 To insert an image into your document, place the cursor at the text position
396 you want and click on the toolbar icon
397 \begin_inset Graphics
398 filename ../images/dialog-show-new-inset_graphics.png
406 Insert\SpecialChar \menuseparator
410 Then a dialog will appear to choose the file to load.
411 The image will appear in the output exactly at the position where it is
415 \begin_layout Standard
416 The graphics dialog can be called at any time by clicking on an image.
417 This dialog has three tabs:
420 \begin_layout Description
425 Here you can choose an image file and adjust its appearance in the output.
426 The available units for the image size are explained in appendix
431 \begin_inset CommandInset ref
433 reference "cha:Units-available-in"
438 \begin_inset Newline newline
442 \begin_inset Index idx
445 \begin_layout Plain Layout
451 You can rotate images counter-clockwise by setting a rotation angle and
453 The image will also be rotated inside LyX.
454 \begin_inset Newline newline
458 \begin_inset Index idx
461 \begin_layout Plain Layout
467 Images can be scaled by using a percentage value or by setting the width
468 and height explicitly.
469 If you set only the width or only the height, the other size will be determined
471 If you set both, then the image will be transformed to the given size,
472 possibly distorting it.
473 To prevent the image from distortion, use the option
475 Maintain aspect ratio
478 The image will then be scaled so that its width and height don't exceed
479 the specified dimensions.
480 \begin_inset Newline newline
483 Images can be opened in a program of your choice by right-clicking on it
484 and choosing the entry
493 The program can be set for every image format in the file format settings
494 in LyX's preferences.
497 \begin_layout Description
502 Alternatively to the usage of scaling units it is possible to set image
503 coordinates to adjust the height and width of the image in the output.
504 The coordinates can also be calculated automatically by pressing the button
534 will only print the image region within the given coordinates.
535 Normally you don't need to take care about image coordinates and can ignore
539 \begin_layout Description
556 In this tab you can modify the appearance of the image within LyX and LaTeX
557 experts can specify additional LaTeX options.
558 \begin_inset Newline newline
569 makes the image appear in the output only as a frame with the size of the
571 \begin_inset Newline newline
590 option only affects zipped EPS-graphics, e.
591 \begin_inset space \thinspace{}
595 \begin_inset space \space{}
603 When the option is used the images will not be unzipped on export, since
604 LaTeX can handle them as they are.
605 \begin_inset Newline newline
608 Zipped EPS-graphics are useful to save disk space when you choose PostScript
609 as output format, see appendix
614 \begin_inset CommandInset ref
616 reference "sec:PostScript"
621 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
623 \begin_inset Newline newline
631 \begin_inset Newline newline
636 zgrep %%Bounding x.eps.gz > x.eps.bb
639 \begin_inset Newline newline
642 The second command creates the bounding box file
643 \begin_inset Quotes eld
647 \begin_inset Quotes erd
650 that is needed by LaTeX for zipped graphics.
651 \begin_inset Newline newline
666 allows you define or join an image settings group.
667 \begin_inset Index idx
670 \begin_layout Plain Layout
671 Figures ! Settings grouping
676 Images within such a group share their settings, so adjusting one image
677 of the group automatically also adjusts all other images of the group in
679 So you can for example change the size for a bunch of images without the
680 need to manually change each of them.
681 Joining an existing group can also be done using the context menu of the
682 image by checking the name of the desired group.
685 \begin_layout Standard
686 \begin_inset VSpace bigskip
692 \begin_layout Standard
693 This is an example image in EPS format
697 \begin_layout Plain Layout
698 Image formats are explained in section
703 \begin_inset CommandInset ref
705 reference "sec:Image-Formats"
714 within a separate, horizontally centered paragraph:
717 \begin_layout Standard
719 \begin_inset Graphics
720 filename clipart/mobius.eps
730 \begin_layout Standard
731 This is the same image like the one above but in draft mode:
734 \begin_layout Standard
736 \begin_inset Graphics
737 filename clipart/mobius.eps
748 \begin_layout Standard
749 \begin_inset Newpage newpage
755 \begin_layout Section
757 \begin_inset CommandInset label
759 name "sec:Figure-Floats"
764 \begin_inset Index idx
767 \begin_layout Plain Layout
774 \begin_inset Index idx
777 \begin_layout Plain Layout
786 \begin_layout Standard
787 For general explanations about floats, have a look at section
792 \begin_inset CommandInset ref
794 reference "sec:FloatIntroduction"
801 \begin_layout Standard
803 \begin_inset Graphics
804 filename ../images/float-insert_figure.png
812 Insert\SpecialChar \menuseparator
813 Float\SpecialChar \menuseparator
816 inserts a float with a caption that has the label
817 \begin_inset Quotes eld
825 \begin_inset Quotes erd
828 (# is the actual number).
829 You can insert the image above the caption, like in Figure
834 \begin_inset CommandInset ref
836 reference "fig:kill-plat"
840 or below the caption, like in Figure
845 \begin_inset CommandInset ref
847 reference "fig:escher"
852 More about caption placement is described in section
857 \begin_inset CommandInset ref
859 reference "sec:Caption-Placement"
866 \begin_layout Standard
867 \begin_inset Float figure
872 \begin_layout Plain Layout
874 \begin_inset Graphics
875 filename clipart/platypus.eps
885 \begin_layout Plain Layout
888 \begin_layout Plain Layout
889 \begin_inset CommandInset label
895 A severely distorted platypus in a float.
908 \begin_layout Standard
909 \begin_inset Float figure
914 \begin_layout Plain Layout
917 \begin_layout Plain Layout
918 \begin_inset CommandInset label
933 \begin_layout Plain Layout
935 \begin_inset Graphics
936 filename clipart/escher-lsd.eps
951 \begin_layout Standard
952 \begin_inset Index idx
955 \begin_layout Plain Layout
956 References ! to Figures
966 \begin_inset CommandInset ref
968 reference "fig:kill-plat"
973 \begin_inset CommandInset ref
975 reference "fig:escher"
979 are examples of referenced figures.
980 Figures can be referenced in the text by referencing their label.
981 To do this insert a label in the caption using the menu
983 Insert\SpecialChar \menuseparator
986 or the toolbar button
987 \begin_inset Graphics
988 filename ../images/label-insert.png
995 You can now refer to the label using the menu
997 Insert\SpecialChar \menuseparator
1004 or the toolbar button
1005 \begin_inset Graphics
1006 filename ../images/dialog-show-new-inset_ref.png
1013 It is important to use references to floats, rather than using vague references
1015 \begin_inset Quotes eld
1019 \begin_inset Quotes erd
1022 , because LaTeX will reposition the floats in the final document and it
1024 \begin_inset Quotes eld
1028 \begin_inset Quotes erd
1032 \begin_inset Newline newline
1035 Referencing is explained in detail in section
1036 \begin_inset space ~
1040 \begin_inset CommandInset ref
1042 reference "sec:Referencing-Floats"
1049 \begin_layout Standard
1050 Normally only one image is inserted to a figure float, but sometimes you
1051 might want to use two images with separate subcaptions.
1052 This can be done by inserting image floats into existing image floats.
1053 Note that only the main caption of the float is added to the List of Figures.
1055 \begin_inset space ~
1059 \begin_inset CommandInset ref
1061 reference "fig:Two-distorted-images"
1065 is an example of a figure float with two images set side by side.
1066 You can also set the images one below the other.
1068 \begin_inset space ~
1072 \begin_inset CommandInset ref
1074 reference "fig:Undefinable-structure"
1079 \begin_inset CommandInset ref
1081 reference "fig:A-Platypus"
1088 \begin_layout Standard
1089 \begin_inset Float figure
1094 \begin_layout Plain Layout
1095 \begin_inset space \hfill{}
1099 \begin_inset Float figure
1104 \begin_layout Plain Layout
1105 \begin_inset Caption
1107 \begin_layout Plain Layout
1108 \begin_inset CommandInset label
1110 name "fig:Undefinable-structure"
1114 Undefinable structure.
1122 \begin_layout Plain Layout
1123 \begin_inset Graphics
1124 filename clipart/escher-lsd.eps
1137 \begin_inset space \hfill{}
1141 \begin_inset Float figure
1146 \begin_layout Plain Layout
1147 \begin_inset Caption
1149 \begin_layout Plain Layout
1150 \begin_inset CommandInset label
1152 name "fig:A-Platypus"
1164 \begin_layout Plain Layout
1165 \begin_inset Graphics
1166 filename clipart/platypus.eps
1179 \begin_inset space \hfill{}
1185 \begin_layout Plain Layout
1186 \begin_inset Caption
1188 \begin_layout Plain Layout
1189 \begin_inset CommandInset label
1191 name "fig:Two-distorted-images"
1196 \begin_inset CommandInset label
1198 name "fig2:Two-distorted-images-2"
1202 Two distorted images.
1203 Both images are in the image settings group named
1204 \begin_inset Quotes eld
1208 \begin_inset Quotes erd
1224 \begin_layout Standard
1225 \begin_inset Newpage newpage
1231 \begin_layout Section
1233 \begin_inset CommandInset label
1235 name "sec:Image-Formats"
1240 \begin_inset Index idx
1243 \begin_layout Plain Layout
1250 \begin_inset Index idx
1253 \begin_layout Plain Layout
1254 Figures ! Image Formats
1262 \begin_layout Standard
1263 You can insert images in any known file format.
1264 But as explained in appendix
1265 \begin_inset space ~
1269 \begin_inset CommandInset ref
1271 reference "cha:Output-File-Formats"
1275 , each output document format allows only a few image formats.
1276 LyX uses therefore the program
1280 in the background to convert the images to the right format.
1281 To increase your work flow by avoiding these conversions in the background,
1282 you can use only the image formats that can directly be embedded in the
1284 The output file formats are explained in appendix
1285 \begin_inset space ~
1289 \begin_inset CommandInset ref
1291 reference "cha:Output-File-Formats"
1298 \begin_layout Standard
1299 Similar to fonts there are two types of image formats:
1302 \begin_layout Description
1304 \begin_inset space ~
1307 images consist of pixel values, often in a compressed form.
1308 They are therefore not fully scalable and look pixelated in large zooms.
1309 Well-known bitmap image formats are
1310 \begin_inset Quotes eld
1313 Graphics Interchange Format
1314 \begin_inset Quotes erd
1317 (GIF, file extension
1318 \begin_inset Quotes eld
1326 \begin_inset Quotes erd
1330 \begin_inset Index idx
1333 \begin_layout Plain Layout
1338 \begin_layout Plain Layout
1349 \begin_layout Plain Layout
1362 \begin_inset Quotes eld
1365 Portable Network Graphics
1366 \begin_inset Quotes erd
1369 (PNG, file extension
1370 \begin_inset Quotes eld
1378 \begin_inset Quotes erd
1382 \begin_inset Index idx
1385 \begin_layout Plain Layout
1390 \begin_layout Plain Layout
1401 \begin_layout Plain Layout
1414 \begin_inset Quotes eld
1417 Joint Photographic Experts Group
1418 \begin_inset Quotes erd
1421 (JPG, file extension
1422 \begin_inset Quotes eld
1430 \begin_inset Quotes erd
1434 \begin_inset Quotes eld
1442 \begin_inset Quotes erd
1446 \begin_inset Index idx
1449 \begin_layout Plain Layout
1454 \begin_layout Plain Layout
1465 \begin_layout Plain Layout
1480 \begin_layout Description
1482 \begin_inset space ~
1485 images consist of vectors and can therefore be scaled to any size without
1487 The scaling ability is necessary if you want to create presentations, because
1488 presentations are always scaled by the video projector.
1489 Scaling is also useful for online documents to let the user zoom into diagrams.
1490 \begin_inset Newline newline
1493 Well-known scalable image formats are
1494 \begin_inset Quotes eld
1497 Scalable Vector Graphics
1498 \begin_inset Quotes erd
1501 (SVG, file extension
1502 \begin_inset Quotes eld
1510 \begin_inset Quotes erd
1514 \begin_inset Index idx
1517 \begin_layout Plain Layout
1522 \begin_layout Plain Layout
1533 \begin_layout Plain Layout
1546 \begin_inset Quotes eld
1549 Encapsulated PostScript
1550 \begin_inset Quotes erd
1553 (EPS, file extension
1554 \begin_inset Quotes eld
1562 \begin_inset Quotes erd
1566 \begin_inset Index idx
1569 \begin_layout Plain Layout
1574 \begin_layout Plain Layout
1585 \begin_layout Plain Layout
1598 \begin_inset Quotes eld
1601 Portable Document Format
1602 \begin_inset Quotes erd
1605 (PDF, file extension
1606 \begin_inset Quotes eld
1614 \begin_inset Quotes erd
1618 \begin_inset Index idx
1621 \begin_layout Plain Layout
1628 \begin_inset Quotes eld
1632 \begin_inset Quotes erd
1635 (WMF, file extension
1636 \begin_inset Quotes eld
1644 \begin_inset Quotes erd
1648 \begin_inset Index idx
1651 \begin_layout Plain Layout
1656 \begin_layout Plain Layout
1667 \begin_layout Plain Layout
1681 \begin_inset Quotes eld
1685 \begin_inset Quotes erd
1688 , because you can convert any bitmap image to a PDF or EPS-image and the
1689 result will still be a bitmap image.
1690 In such cases only a header with the image properties is added to the original
1695 \begin_layout Plain Layout
1696 In the case of PDF, the original image is additionally compressed.
1702 The PDF-files generated by
1706 are for example bitmap images.
1709 \begin_layout Standard
1710 Normally it is not possible to convert a bitmap image into a scalable one,
1712 Only the image formats PDF and EPS can directly be embedded to PDF and
1713 PostScript output files, respectively.
1714 SVG and WMF-images are recalculated to bitmaps when the output file is
1715 generated because there is currently no adequate WMF/SVG
1716 \begin_inset Formula $\to$
1719 PDF/EPS converter available.
1722 \begin_layout Chapter
1724 \begin_inset Index idx
1727 \begin_layout Plain Layout
1736 \begin_layout Section
1738 \begin_inset Index idx
1741 \begin_layout Plain Layout
1742 Table ! Introduction
1750 \begin_layout Standard
1751 You can insert a table using either the toolbar button
1752 \begin_inset Graphics
1753 filename ../images/tabular-insert.png
1761 Insert\SpecialChar \menuseparator
1765 The toolbar button offers you a graphical selection: move the mouse to
1766 set the column/row number of the table that should be created and then
1767 press a mouse button.
1768 When you use the menu to create a table, a dialog will appear, asking you
1769 for the number of rows and columns.
1770 \begin_inset Newline newline
1773 The default table has lines around any cell and the first row appears separated
1774 from the rest of the table.
1775 This separation occurs due to a double line: The cells of the first row
1776 have a line below them and the cells of the second row have a line above
1778 Here is an example table:
1781 \begin_layout Standard
1783 \begin_inset Tabular
1784 <lyxtabular version="3" rows="4" columns="4">
1785 <features tabularvalignment="middle">
1786 <column alignment="center" valignment="top" width="0">
1787 <column alignment="center" valignment="top" width="0">
1788 <column alignment="center" valignment="top" width="0">
1789 <column alignment="center" valignment="top" width="0">
1791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1794 \begin_layout Plain Layout
1800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1803 \begin_layout Plain Layout
1818 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1821 \begin_layout Plain Layout
1827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1830 \begin_layout Plain Layout
1838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1841 \begin_layout Plain Layout
1856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1859 \begin_layout Plain Layout
1865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1868 \begin_layout Plain Layout
1874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1877 \begin_layout Plain Layout
1885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1888 \begin_layout Plain Layout
1903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1906 \begin_layout Plain Layout
1912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1915 \begin_layout Plain Layout
1921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1924 \begin_layout Plain Layout
1932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1935 \begin_layout Plain Layout
1950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1953 \begin_layout Plain Layout
1959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1962 \begin_layout Plain Layout
1968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1971 \begin_layout Plain Layout
1985 \begin_layout Section
1987 \begin_inset Index idx
1990 \begin_layout Plain Layout
1999 \begin_layout Standard
2000 You can alter a table by clicking on it with the right mouse button, which
2001 brings up the table dialog.
2002 Here you can adjust the settings of that cell and row/column respectively
2003 where the cursor is currently placed.
2004 Most of the dialog options also work on selections.
2005 This means if you select more cells, columns or rows, the action is done
2006 for the whole selection.
2007 Note that there is a difference between selecting the
2011 of the cell, and the cell itself.
2012 You can alter tables with the following tabs of the table dialog:
2015 \begin_layout Description
2019 \begin_inset space ~
2024 Here you can set the horizontal alignment and the width of the current
2029 \begin_inset space ~
2033 \begin_inset space ~
2038 is described in section
2039 \begin_inset space ~
2043 \begin_inset CommandInset ref
2045 reference "sub:Special-Cell-Alignment"
2050 When you have set a width you can also adjust the vertical alignment of
2052 A given width will allow the cell to have line breaks and multiple paragraphs
2053 of text, see section
2054 \begin_inset space ~
2058 \begin_inset CommandInset ref
2060 reference "sub:Multiple-Lines-in"
2065 If you set no width, the column is as wide as the content of the widest
2067 \begin_inset Newline newline
2070 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2072 \begin_inset space ~
2076 \begin_inset CommandInset ref
2078 reference "sub:Multicolumns"
2082 or the cells of one column as multirow cell, see section
2083 \begin_inset space ~
2087 \begin_inset CommandInset ref
2089 reference "sub:Multirows"
2094 \begin_inset Newline newline
2097 The rotate check boxes rotate the current cell, a selection, or the whole
2098 table counter-clockwise by 90°.
2099 The rotation is not shown within LyX, only in the output.
2100 \begin_inset Newline newline
2104 \begin_inset Note Greyedout
2107 \begin_layout Plain Layout
2112 Not all DVI-viewers are able to display rotations.
2118 \begin_inset Newline newline
2121 It is also possible to enter a LaTeX-argument which is needed for special
2122 table formattings, see section
2123 \begin_inset space ~
2127 \begin_inset CommandInset ref
2129 reference "sub:Multicolumn-Calculations"
2134 \begin_inset CommandInset ref
2136 reference "sec:Colored-Tables"
2143 \begin_layout Description
2148 In this tab you can add and delete border lines for the current row/column.
2149 \begin_inset Newline newline
2152 Using the style option
2156 will convert the table to a formal table as described in section
2157 \begin_inset space ~
2161 \begin_inset CommandInset ref
2163 reference "sec:Formal-Tables"
2168 \begin_inset Newline newline
2171 You can also add here space to table rows as described in section
2172 \begin_inset space ~
2176 \begin_inset CommandInset ref
2178 reference "sub:Row-Spacing"
2185 \begin_layout Description
2190 This tab is to make a table a so called
2191 \begin_inset Quotes eld
2199 \begin_inset Quotes erd
2202 that can run over several pages.
2204 \begin_inset space ~
2208 \begin_inset CommandInset ref
2210 reference "sec:Longtables"
2215 \begin_inset CommandInset ref
2217 reference "sec:Special-Longtable-Issues"
2221 describe the longtable features in detail.
2224 \begin_layout Standard
2225 When the table dialog is open, you can move the cursor with the arrow keys
2226 from cell to cell and the property of the current cell will immediately
2227 be displayed in the dialog.
2230 \begin_layout Section
2232 \begin_inset Index idx
2235 \begin_layout Plain Layout
2244 \begin_layout Standard
2245 The table toolbar is an alternative to the table dialog to be able to alter
2247 It should normally appear at the bottom of LyX's main window when the cursor
2249 You can alternatively switch it on to appear always, by right-clicking
2250 in LyX's main menu bar.
2253 \begin_layout Standard
2254 The toolbar has the following icons:
2257 \begin_layout Labeling
2258 \labelwidthstring 00.00.0000
2259 \begin_inset Graphics
2260 filename ../images/tabular-feature_append-row.png
2265 adds a row below the current cell or selection
2268 \begin_layout Labeling
2269 \labelwidthstring 00.00.0000
2270 \begin_inset Graphics
2271 filename ../images/tabular-feature_append-column.png
2276 adds a column right beside the current cell or selection
2279 \begin_layout Labeling
2280 \labelwidthstring 00.00.0000
2281 \begin_inset Graphics
2282 filename ../images/tabular-feature_delete-row.png
2287 deletes the current row or selection
2290 \begin_layout Labeling
2291 \labelwidthstring 00.00.0000
2292 \begin_inset Graphics
2293 filename ../images/tabular-feature_delete-column.png
2298 deletes the current column or selection
2301 \begin_layout Labeling
2302 \labelwidthstring 00.00.0000
2303 \begin_inset Graphics
2304 filename ../images/tabular-feature_toggle-line-top.png
2309 adds a line at the top of the current cell / row or of a selection
2312 \begin_layout Labeling
2313 \labelwidthstring 00.00.0000
2314 \begin_inset Graphics
2315 filename ../images/tabular-feature_toggle-line-bottom.png
2320 adds a line at the bottom of the current cell / row or of a selection
2323 \begin_layout Labeling
2324 \labelwidthstring 00.00.0000
2325 \begin_inset Graphics
2326 filename ../images/tabular-feature_toggle-line-left.png
2331 adds a line at the left side of the current cell / row or of a selection
2334 \begin_layout Labeling
2335 \labelwidthstring 00.00.0000
2336 \begin_inset Graphics
2337 filename ../images/tabular-feature_toggle-line-right.png
2342 adds a line at the right side of the current cell / row or of a selection
2345 \begin_layout Labeling
2346 \labelwidthstring 00.00.0000
2347 \begin_inset Graphics
2348 filename ../images/tabular-feature_set-all-lines.png
2353 adds lines around the current or selected cells - if the current cell no
2354 multicolumn cell this also affects the current row and column
2357 \begin_layout Labeling
2358 \labelwidthstring 00.00.0000
2359 \begin_inset Graphics
2360 filename ../images/tabular-feature_unset-all-lines.png
2365 deletes all lines of the current or selected cells - if the current cell
2366 no multicolumn cell this also affects the current row and column
2369 \begin_layout Labeling
2370 \labelwidthstring 00.00.0000
2371 \begin_inset Graphics
2372 filename ../images/tabular-feature_m-align-left.png
2377 left-aligns the content of the current cell / column
2380 \begin_layout Labeling
2381 \labelwidthstring 00.00.0000
2382 \begin_inset Graphics
2383 filename ../images/tabular-feature_m-align-center.png
2388 centers the content of the current cell / column horizontally
2391 \begin_layout Labeling
2392 \labelwidthstring 00.00.0000
2393 \begin_inset Graphics
2394 filename ../images/tabular-feature_m-align-right.png
2399 right-aligns the content of the current cell / column
2402 \begin_layout Labeling
2403 \labelwidthstring 00.00.0000
2404 \begin_inset Graphics
2405 filename ../images/tabular-feature_align-decimal.png
2410 aligns the content of the current column at a character
2413 \begin_layout Labeling
2414 \labelwidthstring 00.00.0000
2415 \begin_inset Graphics
2416 filename ../images/tabular-feature_m-valign-top.png
2421 aligns the content of the current cell vertically to the top
2424 \begin_layout Labeling
2425 \labelwidthstring 00.00.0000
2426 \begin_inset Graphics
2427 filename ../images/tabular-feature_m-valign-middle.png
2432 centers the content of the current cell vertically
2435 \begin_layout Labeling
2436 \labelwidthstring 00.00.0000
2437 \begin_inset Graphics
2438 filename ../images/tabular-feature_m-valign-bottom.png
2443 aligns the content of the current cell vertically to the bottom
2446 \begin_layout Labeling
2447 \labelwidthstring 00.00.0000
2448 \begin_inset Graphics
2449 filename ../images/tabular-feature_set-rotate-cell.png
2454 rotates the current cell or selection counter-clockwise by 90°
2457 \begin_layout Labeling
2458 \labelwidthstring 00.00.0000
2459 \begin_inset Graphics
2460 filename ../images/tabular-feature_set-rotate-tabular.png
2465 rotates the whole table counter-clockwise by 90°
2468 \begin_layout Labeling
2469 \labelwidthstring 00.00.0000
2470 \begin_inset Graphics
2471 filename ../images/tabular-feature_multicolumn.png
2476 sets the current cell or selection as a multicolumn
2479 \begin_layout Labeling
2480 \labelwidthstring 00.00.0000
2481 \begin_inset Graphics
2482 filename ../images/tabular-feature_multirow.png
2487 sets the current cell or selection as a multirow
2490 \begin_layout Standard
2491 \begin_inset Note Greyedout
2494 \begin_layout Plain Layout
2499 For the output the vertical alignment of the first cell in a row is used
2500 for all following cells in the row.
2508 \begin_layout Section
2510 \begin_inset Index idx
2513 \begin_layout Plain Layout
2522 \begin_layout Standard
2523 Additionally to the table dialog and toolbar, the menu
2525 Edit\SpecialChar \menuseparator
2528 allows you to add and delete border lines for the current row/column and
2529 to set the current selection as multicolumn.
2530 The menu is only available when the cursor is inside a table.
2533 \begin_layout Section
2535 \begin_inset CommandInset label
2537 name "sec:Table-Floats"
2542 \begin_inset Index idx
2545 \begin_layout Plain Layout
2552 \begin_inset Index idx
2555 \begin_layout Plain Layout
2564 \begin_layout Standard
2565 For general explanations about floats, have a look at section
2566 \begin_inset space ~
2570 \begin_inset CommandInset ref
2572 reference "sec:FloatIntroduction"
2579 \begin_layout Standard
2580 \begin_inset Float table
2586 \begin_layout Plain Layout
2587 \begin_inset Caption
2589 \begin_layout Plain Layout
2590 \begin_inset CommandInset label
2592 name "tab:a table float"
2604 \begin_layout Plain Layout
2606 \begin_inset Tabular
2607 <lyxtabular version="3" rows="3" columns="3">
2608 <features tabularvalignment="middle">
2609 <column alignment="center" valignment="top" width="0pt">
2610 <column alignment="center" valignment="top" width="0pt">
2611 <column alignment="center" valignment="top" width="0pt">
2613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2616 \begin_layout Plain Layout
2631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2634 \begin_layout Plain Layout
2649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2652 \begin_layout Plain Layout
2669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2672 \begin_layout Plain Layout
2687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2690 \begin_layout Plain Layout
2705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2708 \begin_layout Plain Layout
2725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2728 \begin_layout Plain Layout
2738 \begin_inset Formula $\int x^{2}dx$
2746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2749 \begin_layout Plain Layout
2759 \begin_inset Formula $\left[\begin{array}{cc}
2770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2773 \begin_layout Plain Layout
2783 \begin_inset Formula $1+1=2$
2804 \begin_layout Standard
2805 Table floats can be inserted using the menu
2807 Insert\SpecialChar \menuseparator
2808 Float\SpecialChar \menuseparator
2811 or the toolbar button
2812 \begin_inset Graphics
2813 filename ../images/float-insert_table.png
2822 \begin_layout Standard
2823 The float appears as a collapsible box with a caption that has the label
2825 \begin_inset Quotes eld
2829 \begin_inset space ~
2833 \begin_inset Quotes erd
2836 (# is the actual table number).
2837 You can insert tables in the float above or below the caption.
2840 \begin_layout Standard
2842 \begin_inset space ~
2846 \begin_inset CommandInset ref
2848 reference "tab:a table float"
2852 is an example table within a table float.
2855 \begin_layout Standard
2856 Having the caption above the table is the common rule that is unfortunately
2857 not supported in LaTeX's standard classes.
2858 This means that, if you are using the document classes
2874 , there will be no space between the caption and the table.
2875 To insert the needed space, add the following option to the load command
2876 of the LaTeX-package
2881 \begin_inset Index idx
2884 \begin_layout Plain Layout
2885 LaTeX-packages ! caption
2890 in your document preamble
2894 \begin_layout Plain Layout
2895 For more information have a look at section
2896 \begin_inset space ~
2900 \begin_inset CommandInset ref
2902 reference "sec:Caption-Placement"
2914 \begin_layout Standard
2920 \begin_layout Standard
2925 , which is described in section
2926 \begin_inset space ~
2930 \begin_inset CommandInset ref
2932 reference "sec:Caption-Formatting"
2936 , is used to adjust the caption format.
2939 \begin_layout Standard
2940 \begin_inset Index idx
2943 \begin_layout Plain Layout
2944 References ! to Tables
2949 Tables can be cross-referenced in the text by referencing their label.
2950 To do this insert a label in the caption using the menu
2952 Insert\SpecialChar \menuseparator
2955 or the toolbar button
2956 \begin_inset Graphics
2957 filename ../images/label-insert.png
2964 You can now refer to the label using the menu
2966 Insert\SpecialChar \menuseparator
2968 \begin_inset space ~
2973 or the toolbar button
2974 \begin_inset Graphics
2975 filename ../images/dialog-show-new-inset_ref.png
2982 \begin_inset Newline newline
2985 Referencing is explained in detail in section
2986 \begin_inset space ~
2990 \begin_inset CommandInset ref
2992 reference "sec:Referencing-Floats"
2999 \begin_layout Section
3001 \begin_inset CommandInset label
3003 name "sec:Longtables"
3008 \begin_inset Index idx
3011 \begin_layout Plain Layout
3018 \begin_inset Index idx
3021 \begin_layout Plain Layout
3030 \begin_layout Standard
3031 If the table is too long to fit on one page, you can use the option
3034 \begin_inset space ~
3038 \begin_inset space ~
3047 of the table dialog to split the table automatically over more pages.
3048 Doing this enables the following options:
3051 \begin_layout Description
3052 Header: The current row is defined to be a header row that appears on all
3053 pages of the longtable; except for the first page, if
3056 \begin_inset space ~
3062 This is therefore called the main header.
3065 \begin_layout Description
3067 \begin_inset space ~
3070 header: The current row is defined to be a header row that appears on the
3071 first page of the longtable.
3074 \begin_layout Description
3075 Footer: The current row is defined to be a footer row that appears on all
3076 pages of the longtable; except for the last page, if
3079 \begin_inset space ~
3087 \begin_layout Description
3089 \begin_inset space ~
3092 footer: The current row is defined to be a footer row that appears on the
3093 last page of the longtable.
3096 \begin_layout Description
3097 Caption: The current row contains the table caption.
3098 The row is reset as single column and a caption is inserted.
3099 More about longtable captions is explained in sec.
3100 \begin_inset space \thinspace{}
3104 \begin_inset CommandInset ref
3106 reference "sub:Longtable-Captions"
3113 \begin_layout Standard
3114 You can also specify a row where the table is split.
3115 See the following longtable to see how it works:
3118 \begin_layout Standard
3120 \begin_inset Tabular
3121 <lyxtabular version="3" rows="69" columns="3">
3122 <features islongtable="true" longtabularalignment="center">
3123 <column alignment="left" valignment="top" width="0cm">
3124 <column alignment="left" valignment="top" width="0pt">
3125 <column alignment="center" valignment="top" width="0pt">
3126 <row endfirsthead="true">
3127 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3130 \begin_layout Plain Layout
3133 Example Phone List (ignore the names)
3138 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3141 \begin_layout Plain Layout
3147 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3150 \begin_layout Plain Layout
3157 <row endfirsthead="true">
3158 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3161 \begin_layout Plain Layout
3169 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3172 \begin_layout Plain Layout
3178 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3181 \begin_layout Plain Layout
3190 <row endhead="true">
3191 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3194 \begin_layout Plain Layout
3202 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3205 \begin_layout Plain Layout
3211 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3214 \begin_layout Plain Layout
3221 <row endhead="true">
3222 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3225 \begin_layout Plain Layout
3233 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3236 \begin_layout Plain Layout
3242 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3245 \begin_layout Plain Layout
3254 <row endfoot="true">
3255 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3258 \begin_layout Plain Layout
3259 continued on next page
3264 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3267 \begin_layout Plain Layout
3273 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3276 \begin_layout Plain Layout
3284 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3287 \begin_layout Plain Layout
3295 <cell alignment="center" valignment="top" usebox="none">
3298 \begin_layout Plain Layout
3304 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3307 \begin_layout Plain Layout
3315 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3318 \begin_layout Plain Layout
3326 <cell alignment="center" valignment="top" usebox="none">
3329 \begin_layout Plain Layout
3335 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3338 \begin_layout Plain Layout
3346 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3349 \begin_layout Plain Layout
3357 <cell alignment="center" valignment="top" usebox="none">
3360 \begin_layout Plain Layout
3366 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3369 \begin_layout Plain Layout
3377 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3380 \begin_layout Plain Layout
3388 <cell alignment="center" valignment="top" usebox="none">
3391 \begin_layout Plain Layout
3397 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3400 \begin_layout Plain Layout
3408 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3411 \begin_layout Plain Layout
3419 <cell alignment="center" valignment="top" usebox="none">
3422 \begin_layout Plain Layout
3428 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3431 \begin_layout Plain Layout
3439 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3442 \begin_layout Plain Layout
3450 <cell alignment="center" valignment="top" usebox="none">
3453 \begin_layout Plain Layout
3459 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3462 \begin_layout Plain Layout
3470 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3473 \begin_layout Plain Layout
3481 <cell alignment="center" valignment="top" usebox="none">
3484 \begin_layout Plain Layout
3490 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3493 \begin_layout Plain Layout
3501 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3504 \begin_layout Plain Layout
3512 <cell alignment="center" valignment="top" usebox="none">
3515 \begin_layout Plain Layout
3521 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3524 \begin_layout Plain Layout
3532 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3535 \begin_layout Plain Layout
3543 <cell alignment="center" valignment="top" usebox="none">
3546 \begin_layout Plain Layout
3552 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3555 \begin_layout Plain Layout
3563 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3566 \begin_layout Plain Layout
3574 <cell alignment="center" valignment="top" usebox="none">
3577 \begin_layout Plain Layout
3583 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3586 \begin_layout Plain Layout
3594 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3597 \begin_layout Plain Layout
3605 <cell alignment="center" valignment="top" usebox="none">
3608 \begin_layout Plain Layout
3614 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3617 \begin_layout Plain Layout
3625 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3628 \begin_layout Plain Layout
3636 <cell alignment="center" valignment="top" usebox="none">
3639 \begin_layout Plain Layout
3645 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3648 \begin_layout Plain Layout
3656 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3659 \begin_layout Plain Layout
3667 <cell alignment="center" valignment="top" usebox="none">
3670 \begin_layout Plain Layout
3676 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3679 \begin_layout Plain Layout
3687 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3690 \begin_layout Plain Layout
3698 <cell alignment="center" valignment="top" usebox="none">
3701 \begin_layout Plain Layout
3707 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3710 \begin_layout Plain Layout
3718 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3721 \begin_layout Plain Layout
3729 <cell alignment="center" valignment="top" usebox="none">
3732 \begin_layout Plain Layout
3738 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3741 \begin_layout Plain Layout
3749 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3752 \begin_layout Plain Layout
3760 <cell alignment="center" valignment="top" usebox="none">
3763 \begin_layout Plain Layout
3769 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3772 \begin_layout Plain Layout
3780 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3783 \begin_layout Plain Layout
3791 <cell alignment="center" valignment="top" usebox="none">
3794 \begin_layout Plain Layout
3800 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3803 \begin_layout Plain Layout
3811 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3814 \begin_layout Plain Layout
3822 <cell alignment="center" valignment="top" usebox="none">
3825 \begin_layout Plain Layout
3831 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3834 \begin_layout Plain Layout
3842 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3845 \begin_layout Plain Layout
3853 <cell alignment="center" valignment="top" usebox="none">
3856 \begin_layout Plain Layout
3862 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3865 \begin_layout Plain Layout
3873 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3876 \begin_layout Plain Layout
3884 <cell alignment="center" valignment="top" usebox="none">
3887 \begin_layout Plain Layout
3893 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3896 \begin_layout Plain Layout
3904 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3907 \begin_layout Plain Layout
3915 <cell alignment="center" valignment="top" usebox="none">
3918 \begin_layout Plain Layout
3924 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3927 \begin_layout Plain Layout
3935 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3938 \begin_layout Plain Layout
3946 <cell alignment="center" valignment="top" usebox="none">
3949 \begin_layout Plain Layout
3955 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3958 \begin_layout Plain Layout
3966 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3969 \begin_layout Plain Layout
3977 <cell alignment="center" valignment="top" usebox="none">
3980 \begin_layout Plain Layout
3986 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3989 \begin_layout Plain Layout
3997 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4000 \begin_layout Plain Layout
4008 <cell alignment="center" valignment="top" usebox="none">
4011 \begin_layout Plain Layout
4017 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4020 \begin_layout Plain Layout
4028 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4031 \begin_layout Plain Layout
4039 <cell alignment="center" valignment="top" usebox="none">
4042 \begin_layout Plain Layout
4048 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4051 \begin_layout Plain Layout
4059 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4062 \begin_layout Plain Layout
4070 <cell alignment="center" valignment="top" usebox="none">
4073 \begin_layout Plain Layout
4079 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4082 \begin_layout Plain Layout
4090 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4093 \begin_layout Plain Layout
4101 <cell alignment="center" valignment="top" usebox="none">
4104 \begin_layout Plain Layout
4110 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4113 \begin_layout Plain Layout
4121 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4124 \begin_layout Plain Layout
4132 <cell alignment="center" valignment="top" usebox="none">
4135 \begin_layout Plain Layout
4141 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4144 \begin_layout Plain Layout
4152 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4155 \begin_layout Plain Layout
4163 <cell alignment="center" valignment="top" usebox="none">
4166 \begin_layout Plain Layout
4172 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4175 \begin_layout Plain Layout
4183 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4186 \begin_layout Plain Layout
4194 <cell alignment="center" valignment="top" usebox="none">
4197 \begin_layout Plain Layout
4203 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4206 \begin_layout Plain Layout
4214 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4217 \begin_layout Plain Layout
4225 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4228 \begin_layout Plain Layout
4234 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4237 \begin_layout Plain Layout
4245 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4248 \begin_layout Plain Layout
4254 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4257 \begin_layout Plain Layout
4263 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4266 \begin_layout Plain Layout
4274 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4277 \begin_layout Plain Layout
4285 <cell alignment="center" valignment="top" usebox="none">
4288 \begin_layout Plain Layout
4294 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4297 \begin_layout Plain Layout
4305 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4308 \begin_layout Plain Layout
4316 <cell alignment="center" valignment="top" usebox="none">
4319 \begin_layout Plain Layout
4325 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4328 \begin_layout Plain Layout
4336 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4339 \begin_layout Plain Layout
4347 <cell alignment="center" valignment="top" usebox="none">
4350 \begin_layout Plain Layout
4356 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4359 \begin_layout Plain Layout
4367 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4370 \begin_layout Plain Layout
4378 <cell alignment="center" valignment="top" usebox="none">
4381 \begin_layout Plain Layout
4387 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4390 \begin_layout Plain Layout
4398 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4401 \begin_layout Plain Layout
4409 <cell alignment="center" valignment="top" usebox="none">
4412 \begin_layout Plain Layout
4418 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4421 \begin_layout Plain Layout
4429 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4432 \begin_layout Plain Layout
4440 <cell alignment="center" valignment="top" usebox="none">
4443 \begin_layout Plain Layout
4449 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4452 \begin_layout Plain Layout
4460 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4463 \begin_layout Plain Layout
4471 <cell alignment="center" valignment="top" usebox="none">
4474 \begin_layout Plain Layout
4480 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4483 \begin_layout Plain Layout
4491 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4494 \begin_layout Plain Layout
4502 <cell alignment="center" valignment="top" usebox="none">
4505 \begin_layout Plain Layout
4511 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4514 \begin_layout Plain Layout
4522 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4525 \begin_layout Plain Layout
4533 <cell alignment="center" valignment="top" usebox="none">
4536 \begin_layout Plain Layout
4542 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4545 \begin_layout Plain Layout
4553 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4556 \begin_layout Plain Layout
4564 <cell alignment="center" valignment="top" usebox="none">
4567 \begin_layout Plain Layout
4573 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4576 \begin_layout Plain Layout
4584 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4587 \begin_layout Plain Layout
4595 <cell alignment="center" valignment="top" usebox="none">
4598 \begin_layout Plain Layout
4604 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4607 \begin_layout Plain Layout
4615 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4618 \begin_layout Plain Layout
4626 <cell alignment="center" valignment="top" usebox="none">
4629 \begin_layout Plain Layout
4635 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4638 \begin_layout Plain Layout
4646 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4649 \begin_layout Plain Layout
4657 <cell alignment="center" valignment="top" usebox="none">
4660 \begin_layout Plain Layout
4666 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4669 \begin_layout Plain Layout
4677 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4680 \begin_layout Plain Layout
4688 <cell alignment="center" valignment="top" usebox="none">
4691 \begin_layout Plain Layout
4697 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4700 \begin_layout Plain Layout
4708 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4711 \begin_layout Plain Layout
4719 <cell alignment="center" valignment="top" usebox="none">
4722 \begin_layout Plain Layout
4728 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4731 \begin_layout Plain Layout
4739 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4742 \begin_layout Plain Layout
4750 <cell alignment="center" valignment="top" usebox="none">
4753 \begin_layout Plain Layout
4759 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4762 \begin_layout Plain Layout
4770 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4773 \begin_layout Plain Layout
4781 <cell alignment="center" valignment="top" usebox="none">
4784 \begin_layout Plain Layout
4790 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4793 \begin_layout Plain Layout
4801 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4804 \begin_layout Plain Layout
4812 <cell alignment="center" valignment="top" usebox="none">
4815 \begin_layout Plain Layout
4821 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4824 \begin_layout Plain Layout
4832 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4835 \begin_layout Plain Layout
4843 <cell alignment="center" valignment="top" usebox="none">
4846 \begin_layout Plain Layout
4852 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4855 \begin_layout Plain Layout
4863 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4866 \begin_layout Plain Layout
4874 <cell alignment="center" valignment="top" usebox="none">
4877 \begin_layout Plain Layout
4883 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4886 \begin_layout Plain Layout
4894 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4897 \begin_layout Plain Layout
4905 <cell alignment="center" valignment="top" usebox="none">
4908 \begin_layout Plain Layout
4914 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4917 \begin_layout Plain Layout
4925 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4928 \begin_layout Plain Layout
4936 <cell alignment="center" valignment="top" usebox="none">
4939 \begin_layout Plain Layout
4945 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4948 \begin_layout Plain Layout
4956 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4959 \begin_layout Plain Layout
4967 <cell alignment="center" valignment="top" usebox="none">
4970 \begin_layout Plain Layout
4976 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4979 \begin_layout Plain Layout
4987 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4990 \begin_layout Plain Layout
4998 <cell alignment="center" valignment="top" usebox="none">
5001 \begin_layout Plain Layout
5007 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5010 \begin_layout Plain Layout
5018 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5021 \begin_layout Plain Layout
5029 <cell alignment="center" valignment="top" usebox="none">
5032 \begin_layout Plain Layout
5038 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5041 \begin_layout Plain Layout
5049 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5052 \begin_layout Plain Layout
5060 <cell alignment="center" valignment="top" usebox="none">
5063 \begin_layout Plain Layout
5069 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5072 \begin_layout Plain Layout
5080 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5083 \begin_layout Plain Layout
5091 <cell alignment="center" valignment="top" usebox="none">
5094 \begin_layout Plain Layout
5100 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5103 \begin_layout Plain Layout
5111 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5114 \begin_layout Plain Layout
5122 <cell alignment="center" valignment="top" usebox="none">
5125 \begin_layout Plain Layout
5131 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5134 \begin_layout Plain Layout
5142 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5145 \begin_layout Plain Layout
5153 <cell alignment="center" valignment="top" usebox="none">
5156 \begin_layout Plain Layout
5162 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5165 \begin_layout Plain Layout
5173 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5176 \begin_layout Plain Layout
5184 <cell alignment="center" valignment="top" usebox="none">
5187 \begin_layout Plain Layout
5193 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5196 \begin_layout Plain Layout
5204 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5207 \begin_layout Plain Layout
5215 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5218 \begin_layout Plain Layout
5224 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5227 \begin_layout Plain Layout
5234 <row endlastfoot="true">
5235 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5238 \begin_layout Plain Layout
5244 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5247 \begin_layout Plain Layout
5253 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5256 \begin_layout Plain Layout
5271 \begin_layout Plain Layout
5275 addtocounter{table}{-1}
5281 \begin_inset Note Note
5284 \begin_layout Plain Layout
5285 See the first greyed-out note in section
5286 \begin_inset space ~
5290 \begin_inset CommandInset ref
5292 reference "sub:Longtable-Captions"
5296 for an explanation of this command.
5304 \begin_layout Subsection
5305 Footnotes in Longtables
5306 \begin_inset CommandInset label
5308 name "sub:Footnotes-in-Longtables"
5313 \begin_inset Index idx
5316 \begin_layout Plain Layout
5317 Longtables ! Footnotes
5325 \begin_layout Standard
5326 Footnotes can be inserted to every longtable cell.
5327 They appear at the bottom of the page where the table cell with the footnote
5330 \begin_inset space ~
5334 \begin_inset CommandInset ref
5336 reference "tab:DiffCaptions"
5340 has for example a footnote.
5343 \begin_layout Subsection
5345 \begin_inset Index idx
5348 \begin_layout Plain Layout
5349 Longtables ! Alignment
5357 \begin_layout Standard
5358 The horizontal alignment of longtables can be set in the table settings
5360 For left- and right-alignment the table will be directly at the page border.
5361 To add space between the table and the border one has to set the alignment
5362 to center and change the value of the LaTeX-lengths
5374 by inserting this line as TeX-Code before the longtable:
5377 \begin_layout Standard
5387 \begin_layout Standard
5388 The value can have any of the units listed in Table
5389 \begin_inset space ~
5393 \begin_inset CommandInset ref
5395 reference "tab:Units"
5406 controls the horizontal distance from the left page border to the longtable,
5413 the distance from the right side.
5414 The default value for both lengths is
5420 , which is in this case the same as an horizontal fill in LyX.
5423 \begin_layout Standard
5424 The following longtable was centered and
5440 \begin_layout Plain Layout
5456 \begin_layout Standard
5457 \begin_inset Tabular
5458 <lyxtabular version="3" rows="5" columns="5">
5459 <features islongtable="true" longtabularalignment="center">
5460 <column alignment="center" valignment="top" width="0">
5461 <column alignment="center" valignment="top" width="0pt">
5462 <column alignment="center" valignment="top" width="0">
5463 <column alignment="center" valignment="top" width="0">
5464 <column alignment="center" valignment="top" width="0">
5466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5469 \begin_layout Plain Layout
5475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5478 \begin_layout Plain Layout
5484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5487 \begin_layout Plain Layout
5493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5496 \begin_layout Plain Layout
5502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5505 \begin_layout Plain Layout
5513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5516 \begin_layout Plain Layout
5522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5525 \begin_layout Plain Layout
5531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5534 \begin_layout Plain Layout
5540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5543 \begin_layout Plain Layout
5549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5552 \begin_layout Plain Layout
5560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5563 \begin_layout Plain Layout
5569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5572 \begin_layout Plain Layout
5578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5581 \begin_layout Plain Layout
5587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5590 \begin_layout Plain Layout
5596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5599 \begin_layout Plain Layout
5607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5610 \begin_layout Plain Layout
5616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5619 \begin_layout Plain Layout
5625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5628 \begin_layout Plain Layout
5634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5637 \begin_layout Plain Layout
5643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5646 \begin_layout Plain Layout
5654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5657 \begin_layout Plain Layout
5663 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5666 \begin_layout Plain Layout
5672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5675 \begin_layout Plain Layout
5681 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5684 \begin_layout Plain Layout
5690 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5693 \begin_layout Plain Layout
5708 \begin_layout Plain Layout
5725 \begin_layout Plain Layout
5729 addtocounter{table}{-1}
5735 \begin_inset Note Note
5738 \begin_layout Plain Layout
5739 See the first greyed-out note in section
5740 \begin_inset space ~
5744 \begin_inset CommandInset ref
5746 reference "sub:Longtable-Captions"
5750 for an explanation of this command.
5758 \begin_layout Subsection
5760 \begin_inset Index idx
5763 \begin_layout Plain Layout
5764 Longtables ! Captions
5770 \begin_inset CommandInset label
5772 name "sub:Longtable-Captions"
5779 \begin_layout Standard
5780 A longtable cannot be put into a table float because floats can only be
5782 But the caption environment of floats can also be used for longtables when
5783 you use the longtable option
5787 as described in sec.
5788 \begin_inset space \thinspace{}
5792 \begin_inset CommandInset ref
5794 reference "sec:Longtables"
5799 Only one table row can contain the caption.
5802 \begin_layout Standard
5803 Here is a short longtable to see how it works:
5806 \begin_layout Standard
5807 \begin_inset Tabular
5808 <lyxtabular version="3" rows="6" columns="5">
5809 <features islongtable="true" longtabularalignment="center">
5810 <column alignment="center" valignment="top" width="0">
5811 <column alignment="center" valignment="top" width="0">
5812 <column alignment="center" valignment="top" width="0">
5813 <column alignment="center" valignment="top" width="0">
5814 <column alignment="center" valignment="top" width="0">
5815 <row caption="true">
5816 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5819 \begin_layout Plain Layout
5820 \begin_inset Caption
5822 \begin_layout Plain Layout
5823 Longtable with caption
5824 \begin_inset Argument
5827 \begin_layout Plain Layout
5843 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5846 \begin_layout Plain Layout
5852 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5855 \begin_layout Plain Layout
5861 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5864 \begin_layout Plain Layout
5870 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5873 \begin_layout Plain Layout
5881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5884 \begin_layout Plain Layout
5890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5893 \begin_layout Plain Layout
5899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5902 \begin_layout Plain Layout
5908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5911 \begin_layout Plain Layout
5917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5920 \begin_layout Plain Layout
5928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5931 \begin_layout Plain Layout
5937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5940 \begin_layout Plain Layout
5946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5949 \begin_layout Plain Layout
5955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5958 \begin_layout Plain Layout
5964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5967 \begin_layout Plain Layout
5975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5978 \begin_layout Plain Layout
5984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5987 \begin_layout Plain Layout
5993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5996 \begin_layout Plain Layout
6002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6005 \begin_layout Plain Layout
6011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6014 \begin_layout Plain Layout
6022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6025 \begin_layout Plain Layout
6031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6034 \begin_layout Plain Layout
6040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6043 \begin_layout Plain Layout
6049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6052 \begin_layout Plain Layout
6058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6061 \begin_layout Plain Layout
6069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6072 \begin_layout Plain Layout
6078 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6081 \begin_layout Plain Layout
6087 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6090 \begin_layout Plain Layout
6096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6099 \begin_layout Plain Layout
6105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6108 \begin_layout Plain Layout
6122 \begin_layout Standard
6123 \begin_inset VSpace medskip
6127 \begin_inset Note Greyedout
6130 \begin_layout Plain Layout
6134 \begin_inset space ~
6139 The table number is increased for for every longtable, even if you did
6140 not set a caption for it.
6141 For this reason you could have the case that e.
6142 \begin_inset space \thinspace{}
6146 \begin_inset space \space{}
6150 \begin_inset space ~
6154 \begin_inset space ~
6157 2.1 in the list of tables if there are two longtables without captions.
6158 To avoid this you can add the following command in TeX-Code after every
6159 longtable without a caption:
6162 \begin_layout Plain Layout
6167 addtocounter{table}{-1}
6170 \begin_layout Plain Layout
6171 This is not needed when none of your longtables have a caption and you add
6172 the following code to the document preamble:
6175 \begin_layout Plain Layout
6185 \begin_inset Newline newline
6196 addtocounter{table}{-1}}
6204 \begin_layout Standard
6205 \begin_inset Note Greyedout
6208 \begin_layout Plain Layout
6212 \begin_inset space ~
6222 \begin_inset Index idx
6225 \begin_layout Plain Layout
6226 LaTeX-packages ! hyperref
6239 dialog to link cross-references, the link to a longtable caption will always
6240 point to the beginning of the document.
6248 \begin_layout Subsubsection
6249 References to Longtables
6250 \begin_inset Index idx
6253 \begin_layout Plain Layout
6254 Longtables ! References
6262 \begin_layout Standard
6263 \begin_inset Tabular
6264 <lyxtabular version="3" rows="6" columns="5">
6265 <features islongtable="true" longtabularalignment="center">
6266 <column alignment="center" valignment="top" width="0">
6267 <column alignment="center" valignment="top" width="0">
6268 <column alignment="center" valignment="top" width="0">
6269 <column alignment="center" valignment="top" width="0">
6270 <column alignment="center" valignment="top" width="0">
6271 <row caption="true">
6272 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6275 \begin_layout Plain Layout
6276 \begin_inset Caption
6278 \begin_layout Plain Layout
6279 Referenced longtable
6280 \begin_inset CommandInset label
6282 name "tab:RefExample"
6296 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6299 \begin_layout Plain Layout
6305 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6308 \begin_layout Plain Layout
6314 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6317 \begin_layout Plain Layout
6323 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6326 \begin_layout Plain Layout
6334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6337 \begin_layout Plain Layout
6343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6346 \begin_layout Plain Layout
6352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6355 \begin_layout Plain Layout
6361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6364 \begin_layout Plain Layout
6370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6373 \begin_layout Plain Layout
6381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6384 \begin_layout Plain Layout
6390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6393 \begin_layout Plain Layout
6399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6402 \begin_layout Plain Layout
6408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6411 \begin_layout Plain Layout
6417 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6420 \begin_layout Plain Layout
6428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6431 \begin_layout Plain Layout
6437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6440 \begin_layout Plain Layout
6446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6449 \begin_layout Plain Layout
6455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6458 \begin_layout Plain Layout
6464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6467 \begin_layout Plain Layout
6475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6478 \begin_layout Plain Layout
6484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6487 \begin_layout Plain Layout
6493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6496 \begin_layout Plain Layout
6502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6505 \begin_layout Plain Layout
6511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6514 \begin_layout Plain Layout
6522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6525 \begin_layout Plain Layout
6531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6534 \begin_layout Plain Layout
6540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6543 \begin_layout Plain Layout
6549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6552 \begin_layout Plain Layout
6558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6561 \begin_layout Plain Layout
6575 \begin_layout Standard
6576 To reference a longtable, insert a label into the caption.
6579 \begin_layout Standard
6580 This is a reference to Table
6581 \begin_inset space ~
6585 \begin_inset CommandInset ref
6587 reference "tab:RefExample"
6594 \begin_layout Standard
6595 The caption layout can be set together with all other captions of your document
6596 using the LaTeX-package
6601 \begin_inset Index idx
6604 \begin_layout Plain Layout
6605 LaTeX-packages ! caption
6611 \begin_inset space ~
6615 \begin_inset CommandInset ref
6617 reference "sec:Caption-Formatting"
6624 \begin_layout Subsubsection
6626 \begin_inset Index idx
6629 \begin_layout Plain Layout
6630 Longtables ! Caption Width
6638 \begin_layout Standard
6639 The maximal width of of caption lines is defined by the length
6646 Its default value is 4
6647 \begin_inset space \thinspace{}
6651 To change it add the following command to your document preamble or as
6652 TeX-Code into your document before the longtable that should be affected
6655 \begin_layout Standard
6665 \begin_layout Standard
6666 where the width could have one of the units listed in appendix
6667 \begin_inset space ~
6671 \begin_inset CommandInset ref
6673 reference "cha:Units-available-in"
6680 \begin_layout Standard
6681 The following tables show the difference:
6684 \begin_layout Standard
6685 \begin_inset Tabular
6686 <lyxtabular version="3" rows="6" columns="5">
6687 <features islongtable="true" longtabularalignment="center">
6688 <column alignment="center" valignment="top" width="0">
6689 <column alignment="center" valignment="top" width="0">
6690 <column alignment="center" valignment="top" width="0">
6691 <column alignment="center" valignment="top" width="0">
6692 <column alignment="center" valignment="top" width="0">
6693 <row caption="true">
6694 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6697 \begin_layout Plain Layout
6698 \begin_inset Caption
6700 \begin_layout Plain Layout
6701 long full title with default width long full title with default width long
6702 full title with default width
6703 \begin_inset Argument
6706 \begin_layout Plain Layout
6707 caption with default width
6722 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6725 \begin_layout Plain Layout
6731 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6734 \begin_layout Plain Layout
6740 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6743 \begin_layout Plain Layout
6749 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6752 \begin_layout Plain Layout
6760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6763 \begin_layout Plain Layout
6769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6772 \begin_layout Plain Layout
6778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6781 \begin_layout Plain Layout
6787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6790 \begin_layout Plain Layout
6796 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6799 \begin_layout Plain Layout
6807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6810 \begin_layout Plain Layout
6816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6819 \begin_layout Plain Layout
6825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6828 \begin_layout Plain Layout
6834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6837 \begin_layout Plain Layout
6843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6846 \begin_layout Plain Layout
6854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6857 \begin_layout Plain Layout
6863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6866 \begin_layout Plain Layout
6872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6875 \begin_layout Plain Layout
6881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6884 \begin_layout Plain Layout
6890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6893 \begin_layout Plain Layout
6901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6904 \begin_layout Plain Layout
6910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6913 \begin_layout Plain Layout
6919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6922 \begin_layout Plain Layout
6928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6931 \begin_layout Plain Layout
6937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6940 \begin_layout Plain Layout
6948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6951 \begin_layout Plain Layout
6957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6960 \begin_layout Plain Layout
6966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6969 \begin_layout Plain Layout
6975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6978 \begin_layout Plain Layout
6984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6987 \begin_layout Plain Layout
7001 \begin_layout Standard
7005 \begin_layout Plain Layout
7017 \begin_inset Tabular
7018 <lyxtabular version="3" rows="6" columns="5">
7019 <features islongtable="true" longtabularalignment="center">
7020 <column alignment="center" valignment="top" width="0">
7021 <column alignment="center" valignment="top" width="0">
7022 <column alignment="center" valignment="top" width="0">
7023 <column alignment="center" valignment="top" width="0">
7024 <column alignment="center" valignment="top" width="0">
7025 <row caption="true">
7026 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7029 \begin_layout Plain Layout
7030 \begin_inset Caption
7032 \begin_layout Plain Layout
7033 long full title with width set to 5
7034 \begin_inset space \thinspace{}
7037 cm long full title with width set to 5
7038 \begin_inset space \thinspace{}
7041 cm long full title with width set to 5
7042 \begin_inset space \thinspace{}
7046 \begin_inset Argument
7049 \begin_layout Plain Layout
7051 \begin_inset space \thinspace{}
7055 \begin_inset space \thinspace{}
7059 \begin_inset space \thinspace{}
7077 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7080 \begin_layout Plain Layout
7086 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7089 \begin_layout Plain Layout
7095 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7098 \begin_layout Plain Layout
7104 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7107 \begin_layout Plain Layout
7115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7118 \begin_layout Plain Layout
7124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7127 \begin_layout Plain Layout
7133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7136 \begin_layout Plain Layout
7142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7145 \begin_layout Plain Layout
7151 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7154 \begin_layout Plain Layout
7162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7165 \begin_layout Plain Layout
7171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7174 \begin_layout Plain Layout
7180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7183 \begin_layout Plain Layout
7189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7192 \begin_layout Plain Layout
7198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7201 \begin_layout Plain Layout
7209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7212 \begin_layout Plain Layout
7218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7221 \begin_layout Plain Layout
7227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7230 \begin_layout Plain Layout
7236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7239 \begin_layout Plain Layout
7245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7248 \begin_layout Plain Layout
7256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7259 \begin_layout Plain Layout
7265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7268 \begin_layout Plain Layout
7274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7277 \begin_layout Plain Layout
7283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7286 \begin_layout Plain Layout
7292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7295 \begin_layout Plain Layout
7303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7306 \begin_layout Plain Layout
7312 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7315 \begin_layout Plain Layout
7321 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7324 \begin_layout Plain Layout
7330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7333 \begin_layout Plain Layout
7339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7342 \begin_layout Plain Layout
7356 \begin_layout Standard
7360 \begin_layout Plain Layout
7374 \begin_layout Standard
7375 \begin_inset Note Greyedout
7378 \begin_layout Plain Layout
7383 When the LaTeX-package
7388 \begin_inset Index idx
7391 \begin_layout Plain Layout
7392 LaTeX-packages ! caption
7397 is used, as in this document, the full page width is used for the caption
7398 when you use the default value of 4
7399 \begin_inset space \thinspace{}
7409 To get in this case exactly a 4
7410 \begin_inset space \thinspace{}
7413 in wide caption, you can either use a value slightly different from 4.0
7414 \begin_inset space \thinspace{}
7418 \begin_inset space \thinspace{}
7422 \begin_inset space \space{}
7426 \begin_inset space \thinspace{}
7429 in, or the LaTeX-command
7433 captionsetup{width=value}
7435 that is provided by the
7447 \begin_layout Subsubsection
7448 Different Captions for Table Pages
7449 \begin_inset Index idx
7452 \begin_layout Plain Layout
7453 Longtables ! Different Captions for Pages
7461 \begin_layout Standard
7462 When the table captions for the following pages should differ from the one
7463 of the first table page, insert a caption with the TeX code command
7466 \begin_layout Standard
7471 caption*{caption text}
7478 \begin_layout Standard
7479 in a dummy caption row that is marked as a header.
7481 \begin_inset space ~
7485 \begin_inset CommandInset ref
7487 reference "tab:DiffCaptions"
7491 is an example of a longtable with different heading where the second caption
7492 doesn't include the table number.
7495 \begin_layout Standard
7497 \begin_inset Tabular
7498 <lyxtabular version="3" rows="59" columns="3">
7499 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7500 <column alignment="left" valignment="top" width="0cm">
7501 <column alignment="left" valignment="top" width="0pt">
7502 <column alignment="center" valignment="top" width="0pt">
7503 <row caption="true">
7504 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7507 \begin_layout Plain Layout
7508 \begin_inset Caption
7510 \begin_layout Plain Layout
7512 \begin_inset CommandInset label
7514 name "tab:DiffCaptions"
7519 \begin_inset Argument
7522 \begin_layout Plain Layout
7538 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7541 \begin_layout Plain Layout
7547 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7550 \begin_layout Plain Layout
7557 <row endfirsthead="true">
7558 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7561 \begin_layout Plain Layout
7564 Example Phone List (ignore the names)
7569 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7572 \begin_layout Plain Layout
7578 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7581 \begin_layout Plain Layout
7588 <row endfirsthead="true">
7589 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7592 \begin_layout Plain Layout
7600 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7603 \begin_layout Plain Layout
7609 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7612 \begin_layout Plain Layout
7621 <row endhead="true">
7622 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7625 \begin_layout Plain Layout
7629 \begin_layout Plain Layout
7633 caption*{Continued Example Phone List}
7647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7650 \begin_layout Plain Layout
7656 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7659 \begin_layout Plain Layout
7666 <row endhead="true">
7667 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7670 \begin_layout Plain Layout
7678 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7681 \begin_layout Plain Layout
7687 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7690 \begin_layout Plain Layout
7697 <row endhead="true">
7698 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7701 \begin_layout Plain Layout
7709 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7712 \begin_layout Plain Layout
7718 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7721 \begin_layout Plain Layout
7730 <row endfoot="true">
7731 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7734 \begin_layout Plain Layout
7735 continued on next page
7740 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7743 \begin_layout Plain Layout
7749 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7752 \begin_layout Plain Layout
7760 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7763 \begin_layout Plain Layout
7771 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7774 \begin_layout Plain Layout
7780 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7783 \begin_layout Plain Layout
7791 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7794 \begin_layout Plain Layout
7802 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7805 \begin_layout Plain Layout
7811 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7814 \begin_layout Plain Layout
7822 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7825 \begin_layout Plain Layout
7833 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7836 \begin_layout Plain Layout
7842 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7845 \begin_layout Plain Layout
7853 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7856 \begin_layout Plain Layout
7864 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7867 \begin_layout Plain Layout
7873 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7876 \begin_layout Plain Layout
7884 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7887 \begin_layout Plain Layout
7895 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7898 \begin_layout Plain Layout
7904 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7907 \begin_layout Plain Layout
7915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7918 \begin_layout Plain Layout
7926 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7929 \begin_layout Plain Layout
7935 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7938 \begin_layout Plain Layout
7946 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7949 \begin_layout Plain Layout
7957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7960 \begin_layout Plain Layout
7966 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7969 \begin_layout Plain Layout
7977 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7980 \begin_layout Plain Layout
7988 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7991 \begin_layout Plain Layout
7997 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8000 \begin_layout Plain Layout
8008 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8011 \begin_layout Plain Layout
8019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8022 \begin_layout Plain Layout
8028 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8031 \begin_layout Plain Layout
8039 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8042 \begin_layout Plain Layout
8050 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8053 \begin_layout Plain Layout
8059 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8062 \begin_layout Plain Layout
8070 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8073 \begin_layout Plain Layout
8081 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8084 \begin_layout Plain Layout
8090 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8093 \begin_layout Plain Layout
8101 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8104 \begin_layout Plain Layout
8112 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8115 \begin_layout Plain Layout
8121 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8124 \begin_layout Plain Layout
8132 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8135 \begin_layout Plain Layout
8143 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8146 \begin_layout Plain Layout
8152 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8155 \begin_layout Plain Layout
8163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8166 \begin_layout Plain Layout
8174 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8177 \begin_layout Plain Layout
8183 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8186 \begin_layout Plain Layout
8194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8197 \begin_layout Plain Layout
8206 \begin_layout Plain Layout
8217 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8220 \begin_layout Plain Layout
8226 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8229 \begin_layout Plain Layout
8237 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8240 \begin_layout Plain Layout
8248 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8251 \begin_layout Plain Layout
8257 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8260 \begin_layout Plain Layout
8268 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8271 \begin_layout Plain Layout
8279 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8282 \begin_layout Plain Layout
8288 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8291 \begin_layout Plain Layout
8299 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8302 \begin_layout Plain Layout
8310 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8313 \begin_layout Plain Layout
8319 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8322 \begin_layout Plain Layout
8330 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8333 \begin_layout Plain Layout
8341 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8344 \begin_layout Plain Layout
8350 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8353 \begin_layout Plain Layout
8361 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8364 \begin_layout Plain Layout
8372 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8375 \begin_layout Plain Layout
8381 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8384 \begin_layout Plain Layout
8392 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8395 \begin_layout Plain Layout
8403 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8406 \begin_layout Plain Layout
8412 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8415 \begin_layout Plain Layout
8423 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8426 \begin_layout Plain Layout
8434 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8437 \begin_layout Plain Layout
8443 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8446 \begin_layout Plain Layout
8454 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8457 \begin_layout Plain Layout
8465 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8468 \begin_layout Plain Layout
8474 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8477 \begin_layout Plain Layout
8485 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8488 \begin_layout Plain Layout
8496 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8499 \begin_layout Plain Layout
8505 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8508 \begin_layout Plain Layout
8516 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8519 \begin_layout Plain Layout
8527 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8530 \begin_layout Plain Layout
8536 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8539 \begin_layout Plain Layout
8547 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8550 \begin_layout Plain Layout
8558 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8561 \begin_layout Plain Layout
8567 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8570 \begin_layout Plain Layout
8578 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8581 \begin_layout Plain Layout
8589 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8592 \begin_layout Plain Layout
8598 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8601 \begin_layout Plain Layout
8609 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8612 \begin_layout Plain Layout
8620 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8623 \begin_layout Plain Layout
8629 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8632 \begin_layout Plain Layout
8640 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8643 \begin_layout Plain Layout
8651 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8654 \begin_layout Plain Layout
8660 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8663 \begin_layout Plain Layout
8671 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8674 \begin_layout Plain Layout
8682 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8685 \begin_layout Plain Layout
8691 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8694 \begin_layout Plain Layout
8702 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8705 \begin_layout Plain Layout
8713 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8716 \begin_layout Plain Layout
8722 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8725 \begin_layout Plain Layout
8733 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8736 \begin_layout Plain Layout
8742 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8745 \begin_layout Plain Layout
8751 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8754 \begin_layout Plain Layout
8762 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8765 \begin_layout Plain Layout
8773 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8776 \begin_layout Plain Layout
8782 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8785 \begin_layout Plain Layout
8793 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8796 \begin_layout Plain Layout
8804 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8807 \begin_layout Plain Layout
8813 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8816 \begin_layout Plain Layout
8824 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8827 \begin_layout Plain Layout
8835 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8838 \begin_layout Plain Layout
8844 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8847 \begin_layout Plain Layout
8855 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8858 \begin_layout Plain Layout
8866 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8869 \begin_layout Plain Layout
8875 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8878 \begin_layout Plain Layout
8886 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8889 \begin_layout Plain Layout
8897 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8900 \begin_layout Plain Layout
8906 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8909 \begin_layout Plain Layout
8917 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8920 \begin_layout Plain Layout
8928 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8931 \begin_layout Plain Layout
8937 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8940 \begin_layout Plain Layout
8948 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8951 \begin_layout Plain Layout
8959 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8962 \begin_layout Plain Layout
8968 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8971 \begin_layout Plain Layout
8979 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8982 \begin_layout Plain Layout
8990 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8993 \begin_layout Plain Layout
8999 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9002 \begin_layout Plain Layout
9010 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9013 \begin_layout Plain Layout
9021 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9024 \begin_layout Plain Layout
9030 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9033 \begin_layout Plain Layout
9041 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9044 \begin_layout Plain Layout
9052 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9055 \begin_layout Plain Layout
9061 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9064 \begin_layout Plain Layout
9072 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9075 \begin_layout Plain Layout
9083 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9086 \begin_layout Plain Layout
9092 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9095 \begin_layout Plain Layout
9103 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9106 \begin_layout Plain Layout
9114 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9117 \begin_layout Plain Layout
9123 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9126 \begin_layout Plain Layout
9134 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9137 \begin_layout Plain Layout
9145 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9148 \begin_layout Plain Layout
9154 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9157 \begin_layout Plain Layout
9165 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9168 \begin_layout Plain Layout
9176 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9179 \begin_layout Plain Layout
9185 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9188 \begin_layout Plain Layout
9196 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9199 \begin_layout Plain Layout
9207 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9210 \begin_layout Plain Layout
9216 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9219 \begin_layout Plain Layout
9227 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9230 \begin_layout Plain Layout
9238 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9241 \begin_layout Plain Layout
9247 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9250 \begin_layout Plain Layout
9258 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9261 \begin_layout Plain Layout
9269 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9272 \begin_layout Plain Layout
9278 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9281 \begin_layout Plain Layout
9289 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9292 \begin_layout Plain Layout
9300 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9303 \begin_layout Plain Layout
9309 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9312 \begin_layout Plain Layout
9320 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9323 \begin_layout Plain Layout
9331 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9334 \begin_layout Plain Layout
9340 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9343 \begin_layout Plain Layout
9351 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9354 \begin_layout Plain Layout
9362 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9365 \begin_layout Plain Layout
9371 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9374 \begin_layout Plain Layout
9388 \begin_layout Section
9389 Special Longtable Issues
9390 \begin_inset CommandInset label
9392 name "sec:Special-Longtable-Issues"
9399 \begin_layout Subsection
9400 Longtable Calculation
9401 \begin_inset Index idx
9404 \begin_layout Plain Layout
9405 Longtables ! Calculation
9413 \begin_layout Standard
9414 LaTeX calculates the height of table pages and their page breaks using so
9416 Chunks are parts of tables that held at the same time in LaTeX's memory.
9417 The default value was historically set to only 20 table rows.
9418 If you are using longtables with many pages this may slow down the creation
9420 You can safely increase the chunk size to values of 100-1000 by adding
9421 this command line to your document preamble:
9424 \begin_layout Standard
9429 setcounter{LTchunksize}{100}
9432 \begin_layout Subsection
9433 Floats and Longtables
9434 \begin_inset Index idx
9437 \begin_layout Plain Layout
9446 \begin_layout Standard
9447 There might be problems when a float appears on the same page where a longtable
9449 To avoid such a situation, insert a
9450 \begin_inset Quotes eld
9454 \begin_inset Quotes erd
9459 Insert\SpecialChar \menuseparator
9460 Formatting\SpecialChar \menuseparator
9462 \begin_inset space ~
9467 ) before your longtable.
9470 \begin_layout Subsection
9472 \begin_inset Index idx
9475 \begin_layout Plain Layout
9476 Longtables ! Forced Page Breaks
9484 \begin_layout Standard
9485 By default tables are only broken between rows.
9486 If you have a cell with multiples lines and want to have a page break within
9487 the cell, insert the new line command
9488 \begin_inset Quotes eld
9500 \begin_inset Quotes erd
9503 as TeX-Code at the point of the cell where it can be broken.
9512 command you have to insert in TeX-Code as many
9513 \begin_inset Quotes eld
9521 \begin_inset Quotes erd
9524 characters as the number of the following table columns.
9529 is the character to separate table cells.
9530 Write in TeX-Code after each
9534 the content of the corresponding following cell and delete the content
9536 \begin_inset Newline newline
9547 command, insert as many
9551 characters as the number of table columns before the current column.
9553 \begin_inset space ~
9557 \begin_inset CommandInset ref
9559 reference "tab:ForcedPagebreak"
9563 the cell that should be broken is in the second column followed by another
9565 Therefore the following command was inserted in the cell as TeX-Code after
9567 \begin_inset Quotes eld
9575 \begin_inset Quotes erd
9581 \begin_layout Standard
9591 \begin_inset Newline newline
9597 \begin_layout Standard
9599 \begin_inset Quotes eld
9603 \begin_inset Quotes erd
9606 in the third column of the row was deleted.
9613 is only needed when a page break should definitely occur at this position,
9614 otherwise it would be a conditional break.
9615 If your footer row of the longtable has for a certain reason no upper line
9616 but you would have a horizontal line where the cell is broken, use this
9620 \begin_layout Standard
9628 \begin_inset Newline newline
9636 \begin_layout Standard
9637 When the cell to be broken is in the last column, the command
9640 \begin_layout Standard
9650 \begin_layout Standard
9651 must be inserted as TeX-Code at the beginning of the cell.
9652 This ensures that the part of the cell that will be displayed on the new
9653 page appears with the full width.
9656 \begin_layout Standard
9658 \begin_inset Tabular
9659 <lyxtabular version="3" rows="38" columns="3">
9660 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9661 <column alignment="left" valignment="top" width="0cm">
9662 <column alignment="left" valignment="top" width="3cm">
9663 <column alignment="center" valignment="top" width="0pt">
9664 <row caption="true">
9665 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9668 \begin_layout Plain Layout
9669 \begin_inset Caption
9671 \begin_layout Plain Layout
9672 Table with forced page break in table cell
9673 \begin_inset CommandInset label
9675 name "tab:ForcedPagebreak"
9680 \begin_inset Argument
9683 \begin_layout Plain Layout
9684 Table with forced page break in table cell
9699 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9702 \begin_layout Plain Layout
9708 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9711 \begin_layout Plain Layout
9718 <row endfirsthead="true">
9719 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9722 \begin_layout Plain Layout
9725 Example Phone List (ignore the names)
9730 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9733 \begin_layout Plain Layout
9739 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9742 \begin_layout Plain Layout
9749 <row endfirsthead="true">
9750 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9753 \begin_layout Plain Layout
9761 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9764 \begin_layout Plain Layout
9770 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9773 \begin_layout Plain Layout
9782 <row endhead="true">
9783 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9786 \begin_layout Plain Layout
9790 \begin_layout Plain Layout
9794 caption*{Continued Example Phone List}
9808 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9811 \begin_layout Plain Layout
9817 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9820 \begin_layout Plain Layout
9827 <row endhead="true">
9828 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9831 \begin_layout Plain Layout
9839 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9842 \begin_layout Plain Layout
9848 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9851 \begin_layout Plain Layout
9858 <row endhead="true">
9859 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9862 \begin_layout Plain Layout
9870 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9873 \begin_layout Plain Layout
9879 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9882 \begin_layout Plain Layout
9891 <row endfoot="true">
9892 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9895 \begin_layout Plain Layout
9896 continued on next page
9901 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9904 \begin_layout Plain Layout
9910 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9913 \begin_layout Plain Layout
9921 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9924 \begin_layout Plain Layout
9932 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9935 \begin_layout Plain Layout
9941 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9944 \begin_layout Plain Layout
9952 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9955 \begin_layout Plain Layout
9963 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9966 \begin_layout Plain Layout
9972 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9975 \begin_layout Plain Layout
9983 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9986 \begin_layout Plain Layout
9994 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9997 \begin_layout Plain Layout
10003 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10006 \begin_layout Plain Layout
10014 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10017 \begin_layout Plain Layout
10025 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10028 \begin_layout Plain Layout
10034 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10037 \begin_layout Plain Layout
10045 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10048 \begin_layout Plain Layout
10056 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10059 \begin_layout Plain Layout
10065 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10068 \begin_layout Plain Layout
10076 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10079 \begin_layout Plain Layout
10087 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10090 \begin_layout Plain Layout
10096 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10099 \begin_layout Plain Layout
10107 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10110 \begin_layout Plain Layout
10118 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10121 \begin_layout Plain Layout
10127 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10130 \begin_layout Plain Layout
10138 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10141 \begin_layout Plain Layout
10149 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10152 \begin_layout Plain Layout
10158 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10161 \begin_layout Plain Layout
10169 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10172 \begin_layout Plain Layout
10180 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10183 \begin_layout Plain Layout
10189 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10192 \begin_layout Plain Layout
10200 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10203 \begin_layout Plain Layout
10211 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10214 \begin_layout Plain Layout
10220 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10223 \begin_layout Plain Layout
10231 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10234 \begin_layout Plain Layout
10242 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10245 \begin_layout Plain Layout
10251 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10254 \begin_layout Plain Layout
10262 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10265 \begin_layout Plain Layout
10273 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10276 \begin_layout Plain Layout
10282 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10285 \begin_layout Plain Layout
10293 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10296 \begin_layout Plain Layout
10304 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10307 \begin_layout Plain Layout
10313 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10316 \begin_layout Plain Layout
10324 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10327 \begin_layout Plain Layout
10335 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10338 \begin_layout Plain Layout
10344 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10347 \begin_layout Plain Layout
10355 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10358 \begin_layout Plain Layout
10366 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10369 \begin_layout Plain Layout
10375 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10378 \begin_layout Plain Layout
10386 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10389 \begin_layout Plain Layout
10397 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10400 \begin_layout Plain Layout
10406 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10409 \begin_layout Plain Layout
10417 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10420 \begin_layout Plain Layout
10428 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10431 \begin_layout Plain Layout
10437 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10440 \begin_layout Plain Layout
10448 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10451 \begin_layout Plain Layout
10459 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10462 \begin_layout Plain Layout
10468 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10471 \begin_layout Plain Layout
10479 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10482 \begin_layout Plain Layout
10490 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10493 \begin_layout Plain Layout
10499 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10502 \begin_layout Plain Layout
10510 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10513 \begin_layout Plain Layout
10521 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10524 \begin_layout Plain Layout
10530 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10533 \begin_layout Plain Layout
10541 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10544 \begin_layout Plain Layout
10552 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10555 \begin_layout Plain Layout
10561 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10564 \begin_layout Plain Layout
10572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10575 \begin_layout Plain Layout
10583 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10586 \begin_layout Plain Layout
10592 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10595 \begin_layout Plain Layout
10603 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10606 \begin_layout Plain Layout
10614 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10617 \begin_layout Plain Layout
10619 Fürst von Montecompatri, 11.
10620 Fürst von Sulmona und Vivaro, 10.
10621 Fürst von Rossano, 5.
10622 Herzog von Canemorte, 11.
10623 Herzog von Palombara, 5.
10624 Herzog von Castelchiodato,
10628 \begin_layout Plain Layout
10639 \begin_layout Plain Layout
10647 Herzog von Poggionativo, 11.
10648 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10649 Graf von Valinfreda, 11.
10650 Baron von Cropalati, 11.
10651 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10656 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10659 \begin_layout Plain Layout
10667 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10670 \begin_layout Plain Layout
10678 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10681 \begin_layout Plain Layout
10687 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10690 \begin_layout Plain Layout
10698 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10701 \begin_layout Plain Layout
10709 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10712 \begin_layout Plain Layout
10718 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10721 \begin_layout Plain Layout
10729 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10732 \begin_layout Plain Layout
10740 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10743 \begin_layout Plain Layout
10749 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10752 \begin_layout Plain Layout
10760 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10763 \begin_layout Plain Layout
10771 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10774 \begin_layout Plain Layout
10780 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10783 \begin_layout Plain Layout
10791 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10794 \begin_layout Plain Layout
10802 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10805 \begin_layout Plain Layout
10811 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10814 \begin_layout Plain Layout
10822 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10825 \begin_layout Plain Layout
10833 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10836 \begin_layout Plain Layout
10842 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10845 \begin_layout Plain Layout
10853 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10856 \begin_layout Plain Layout
10864 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10867 \begin_layout Plain Layout
10873 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10876 \begin_layout Plain Layout
10884 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10887 \begin_layout Plain Layout
10895 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10898 \begin_layout Plain Layout
10904 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10907 \begin_layout Plain Layout
10921 \begin_layout Section
10922 Multiple Lines Columns and Rows
10925 \begin_layout Subsection
10926 Multiple Lines in Table Cells
10927 \begin_inset CommandInset label
10929 name "sub:Multiple-Lines-in"
10934 \begin_inset Index idx
10937 \begin_layout Plain Layout
10938 Multiple Lines in Table Cells
10944 \begin_inset Index idx
10947 \begin_layout Plain Layout
10956 \begin_layout Standard
10958 \begin_inset Float table
10964 \begin_layout Plain Layout
10965 \begin_inset Caption
10967 \begin_layout Plain Layout
10968 \begin_inset CommandInset label
10970 name "tab:Table-with-multiple"
10974 Table with multiple lines in cells
10982 \begin_layout Plain Layout
10984 \begin_inset Tabular
10985 <lyxtabular version="3" rows="3" columns="3">
10986 <features tabularvalignment="middle">
10987 <column alignment="center" valignment="middle" width="2.5cm">
10988 <column alignment="center" valignment="middle" width="0">
10989 <column alignment="center" valignment="middle" width="0">
10991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10994 \begin_layout Plain Layout
10996 \begin_inset Newline linebreak
11004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11007 \begin_layout Plain Layout
11013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11016 \begin_layout Plain Layout
11024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11027 \begin_layout Plain Layout
11033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11036 \begin_layout Plain Layout
11042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11045 \begin_layout Plain Layout
11053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11056 \begin_layout Plain Layout
11062 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11065 \begin_layout Plain Layout
11071 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11074 \begin_layout Plain Layout
11093 \begin_layout Standard
11094 Setting a fixed width for a column enables you to enter text as a paragraph
11095 with multiple lines and hyphenation.
11098 \begin_layout Standard
11100 \begin_inset space ~
11104 \begin_inset CommandInset ref
11106 reference "tab:Table-with-multiple"
11110 , create a 3×3 table, mark the first cell and right-click on it.
11111 In the appearing table dialog we set a cell width of 2.5
11112 \begin_inset space \thinspace{}
11115 cm and choose centered for the vertical and horizontal alignment.
11116 The vertical alignment is used for all cells of the row.
11117 As our text is smaller than 2.5
11118 \begin_inset space \thinspace{}
11121 cm, only one line will appear.
11122 To get two lines, a justified line break (shortcut
11125 arg "newline-insert linebreak"
11129 If the text is wider than the set cell width, it will automatically be
11130 broken to several lines.
11133 \begin_layout Standard
11134 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11135 by LaTeX if it is the first entry.
11136 Therefore you need to insert something to prevent the word not being the
11138 So add a horizontal space of 0
11139 \begin_inset space \thinspace{}
11142 pt before the word.
11143 As the space is zero, it doesn't change the output.
11145 \begin_inset space ~
11149 \begin_inset CommandInset ref
11151 reference "tab:Table-with-and"
11158 \begin_layout Standard
11159 \begin_inset Float table
11165 \begin_layout Plain Layout
11166 \begin_inset Caption
11168 \begin_layout Plain Layout
11169 \begin_inset CommandInset label
11171 name "tab:Table-with-and"
11175 Table with and without hyphenation
11183 \begin_layout Plain Layout
11184 \begin_inset space \hfill{}
11188 \begin_inset Tabular
11189 <lyxtabular version="3" rows="3" columns="3">
11190 <features tabularvalignment="middle">
11191 <column alignment="center" valignment="middle" width="2.5cm">
11192 <column alignment="center" valignment="middle" width="0">
11193 <column alignment="center" valignment="middle" width="0">
11195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11198 \begin_layout Plain Layout
11199 verylongtablecellword
11204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11207 \begin_layout Plain Layout
11213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11216 \begin_layout Plain Layout
11224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11227 \begin_layout Plain Layout
11233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11236 \begin_layout Plain Layout
11242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11245 \begin_layout Plain Layout
11253 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11256 \begin_layout Plain Layout
11262 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11265 \begin_layout Plain Layout
11271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11274 \begin_layout Plain Layout
11286 \begin_inset space \hfill{}
11290 \begin_inset Tabular
11291 <lyxtabular version="3" rows="3" columns="3">
11292 <features tabularvalignment="middle">
11293 <column alignment="center" valignment="middle" width="2.5cm">
11294 <column alignment="center" valignment="middle" width="0">
11295 <column alignment="center" valignment="middle" width="0">
11297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11300 \begin_layout Plain Layout
11301 \begin_inset space \hspace{}
11305 verylongtablecellword
11310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11313 \begin_layout Plain Layout
11319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11322 \begin_layout Plain Layout
11330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11333 \begin_layout Plain Layout
11339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11342 \begin_layout Plain Layout
11348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11351 \begin_layout Plain Layout
11359 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11362 \begin_layout Plain Layout
11368 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11371 \begin_layout Plain Layout
11377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11380 \begin_layout Plain Layout
11392 \begin_inset space \hfill{}
11403 \begin_layout Subsection
11405 \begin_inset CommandInset label
11407 name "sub:Multicolumns"
11412 \begin_inset Index idx
11415 \begin_layout Plain Layout
11422 \begin_inset Index idx
11425 \begin_layout Plain Layout
11426 Table ! Multicolumns
11434 \begin_layout Subsubsection
11438 \begin_layout Standard
11439 To merge cells over multiple columns, select as many cells within a row
11440 as you want to merge and use either the table-toolbar button
11441 \begin_inset Graphics
11442 filename ../images/tabular-feature_multicolumn.png
11444 scaleBeforeRotation
11450 Edit\SpecialChar \menuseparator
11451 Table\SpecialChar \menuseparator
11454 , or right click on the marked cells and choose
11458 in the context menu.
11461 \begin_layout Standard
11462 Multicolumns have there own cell settings.
11463 That means changing cell borders, cell alignment, and the width only affects
11465 Here is an example table with a multicolumn cell in the first row and one
11466 in the last row without the upper border:
11469 \begin_layout Standard
11471 \begin_inset Tabular
11472 <lyxtabular version="3" rows="3" columns="4">
11473 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11474 <column alignment="center" valignment="top" width="0pt">
11475 <column alignment="center" valignment="middle" width="0">
11476 <column alignment="center" valignment="top" width="0in">
11477 <column alignment="center" valignment="top" width="0pt">
11479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11482 \begin_layout Plain Layout
11488 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11491 \begin_layout Plain Layout
11497 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11500 \begin_layout Plain Layout
11506 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11509 \begin_layout Plain Layout
11517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11520 \begin_layout Plain Layout
11535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11538 \begin_layout Plain Layout
11544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11547 \begin_layout Plain Layout
11553 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11556 \begin_layout Plain Layout
11564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11567 \begin_layout Plain Layout
11573 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11576 \begin_layout Plain Layout
11582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11585 \begin_layout Plain Layout
11591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11594 \begin_layout Plain Layout
11608 \begin_layout Subsubsection
11609 Multicolumn Calculations
11610 \begin_inset CommandInset label
11612 name "sub:Multicolumn-Calculations"
11617 \begin_inset Index idx
11620 \begin_layout Plain Layout
11621 Multicolumns ! Calculations
11629 \begin_layout Standard
11630 LyX supports multicolumns directly, but we have to take account of the cell
11631 width of the columns spanned by the multicolumn cell.
11634 \begin_layout Standard
11635 \begin_inset Float table
11641 \begin_layout Plain Layout
11642 \begin_inset Caption
11644 \begin_layout Plain Layout
11645 \begin_inset CommandInset label
11647 name "tab:Table-with-centered"
11651 Table with centered multicolumn text above two columns that have exactly
11652 half the width of the multicolumn cell
11653 \begin_inset Argument
11656 \begin_layout Plain Layout
11657 Perfect multicolumn table
11670 \begin_layout Plain Layout
11672 \begin_inset Tabular
11673 <lyxtabular version="3" rows="3" columns="3">
11674 <features tabularvalignment="middle">
11675 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11676 <column alignment="center" valignment="middle" width="0">
11677 <column alignment="center" valignment="top" width="0">
11679 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11682 \begin_layout Plain Layout
11683 multiple lines multicolumn
11688 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11691 \begin_layout Plain Layout
11697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11700 \begin_layout Plain Layout
11708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11711 \begin_layout Plain Layout
11717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11720 \begin_layout Plain Layout
11726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11729 \begin_layout Plain Layout
11737 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11740 \begin_layout Plain Layout
11746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11749 \begin_layout Plain Layout
11755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11758 \begin_layout Plain Layout
11777 \begin_layout Standard
11778 To create for example Table
11779 \begin_inset space ~
11783 \begin_inset CommandInset ref
11785 reference "tab:Table-with-centered"
11789 , mark the first two cells in the first row of a 3×3 table and right-click
11791 Now choose for this cell
11800 \begin_inset space \thinspace{}
11803 cm in the table dialog.
11804 The merged columns should have exactly half the width of the multicolumn
11805 cell, so that you would set a width of 1.25
11806 \begin_inset space \thinspace{}
11809 cm for the first column.
11810 The second column has then automatically a width of 1.25
11811 \begin_inset space \thinspace{}
11814 cm (multicolumn width - width of first column).
11815 This was done for Table
11816 \begin_inset space ~
11820 \begin_inset CommandInset ref
11822 reference "tab:Table-without-half"
11829 \begin_layout Standard
11830 \begin_inset Float table
11835 \begin_layout Plain Layout
11836 \begin_inset Caption
11838 \begin_layout Plain Layout
11839 \begin_inset CommandInset label
11841 name "tab:Table-without-half"
11845 Table where the spanned table columns are not exactly half the width of
11846 the multicolumn cell
11847 \begin_inset Argument
11850 \begin_layout Plain Layout
11851 Imperfect multicolumn table
11864 \begin_layout Plain Layout
11866 \begin_inset Tabular
11867 <lyxtabular version="3" rows="3" columns="3">
11868 <features tabularvalignment="middle">
11869 <column alignment="center" valignment="top" width="1.25cm">
11870 <column alignment="center" valignment="top" width="0">
11871 <column alignment="center" valignment="top" width="0">
11873 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11876 \begin_layout Plain Layout
11877 multiple lines multicolumn
11882 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11885 \begin_layout Plain Layout
11891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11894 \begin_layout Plain Layout
11902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11905 \begin_layout Plain Layout
11911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11914 \begin_layout Plain Layout
11920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11923 \begin_layout Plain Layout
11931 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11934 \begin_layout Plain Layout
11940 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11943 \begin_layout Plain Layout
11949 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11952 \begin_layout Plain Layout
11971 \begin_layout Standard
11972 You can see that the first column is not half the width of the multicolumn
11973 cell, it is a bit bigger.
11974 The reason is that the specified width of a cell
11975 \begin_inset Formula $W_{g}$
11978 is not its total width
11979 \begin_inset Formula $W_{\mathrm{tot}}$
11982 because a cell is always a bit larger than specified.
11984 \begin_inset space ~
11988 \begin_inset CommandInset ref
11990 reference "cha:Explanation-of-Equation"
11994 explains this in detail.
11997 \begin_layout Standard
11999 \begin_inset Formula $W_{g\, n}$
12002 which the user needs to set when
12006 columns are spanned can be calculated, so that each column has a total
12008 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12012 \begin_inset Formula \begin{equation}
12013 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
12020 \begin_layout Standard
12021 In our case we have
12022 \begin_inset Formula $n=2$
12026 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12029 cm and the default values for the lengths, so that equation
12030 \begin_inset CommandInset ref
12037 \begin_inset Formula \begin{equation}
12038 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
12045 \begin_layout Standard
12046 To enable calculations in LaTeX, the LaTeX-package
12050 must be loaded with the document preamble line
12051 \begin_inset Index idx
12054 \begin_layout Plain Layout
12055 LaTeX-packages ! calc
12063 \begin_layout Standard
12071 \begin_layout Standard
12072 LyX does not allow you to calculate lengths in the
12076 field of the table dialog.
12077 Therefore you have to format the column by inserting a LaTeX-argument in
12079 Here is an overview about the arguments:
12082 \begin_layout Itemize
12087 creates cell with a fixed width, its text is vertically top-aligned
12090 \begin_layout Itemize
12095 creates cell with a fixed width, its text is vertically centered
12098 \begin_layout Itemize
12103 creates cell with a fixed width, its text is vertically bottom-aligned
12106 \begin_layout Standard
12107 By entering a LaTeX-argument, all cell settings set in the table dialog
12111 \begin_layout Standard
12112 \begin_inset Note Greyedout
12115 \begin_layout Plain Layout
12120 Due to a bug, LyX shows the overwritten settings anyway.
12128 \begin_layout Standard
12129 As the text should be horizontally centered, the command
12136 You can now enter the following LaTeX-argument for the first spanned column:
12139 \begin_layout Standard
12144 centering}m{1.25cm-6.2pt}
12147 \begin_layout Standard
12152 means, that the commands inside the braces are applied before the cell
12156 \begin_layout Standard
12157 Although we have chosen centered alignment for the text of the multicolumn
12158 cell, it is still left aligned.
12159 This is because LyX only applies the alignment to single columns.
12160 So for the multicolumn cell we have to use the LaTeX-argument
12163 \begin_layout Standard
12171 \begin_layout Subsection
12173 \begin_inset CommandInset label
12175 name "sub:Multirows"
12180 \begin_inset Index idx
12183 \begin_layout Plain Layout
12190 \begin_inset Index idx
12193 \begin_layout Plain Layout
12202 \begin_layout Standard
12203 To merge cells over multiple rows, select as many cells within a column
12204 as you want to merge and use either the table-toolbar button
12205 \begin_inset Graphics
12206 filename ../images/tabular-feature_multirow.png
12208 scaleBeforeRotation
12214 Edit\SpecialChar \menuseparator
12215 Table\SpecialChar \menuseparator
12218 , or right click on the marked cells and choose
12222 in the context menu.
12225 \begin_layout Standard
12226 Here is an example table with a multirow in the first column:
12229 \begin_layout Standard
12231 \begin_inset Tabular
12232 <lyxtabular version="3" rows="3" columns="3">
12233 <features tabularvalignment="middle">
12234 <column alignment="center" valignment="top" width="0pt">
12235 <column alignment="center" valignment="top" width="0">
12236 <column alignment="center" valignment="top" width="0">
12238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12241 \begin_layout Plain Layout
12247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12250 \begin_layout Plain Layout
12256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12259 \begin_layout Plain Layout
12267 <cell multirow="3" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12270 \begin_layout Plain Layout
12276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12279 \begin_layout Plain Layout
12285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12288 \begin_layout Plain Layout
12296 <cell multirow="4" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12299 \begin_layout Plain Layout
12305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12308 \begin_layout Plain Layout
12314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12317 \begin_layout Plain Layout
12331 \begin_layout Standard
12332 The width and alignment of multirow cells is set by setting the width and
12333 alignment for the whole column.
12336 \begin_layout Section
12338 \begin_inset CommandInset label
12340 name "sec:Formal-Tables"
12345 \begin_inset Index idx
12348 \begin_layout Plain Layout
12357 \begin_layout Standard
12358 Tables are often typeset in books similar to Table
12359 \begin_inset space ~
12363 \begin_inset CommandInset ref
12365 reference "tab:Example-booktabs-table"
12370 This kind of tables is called
12371 \begin_inset Quotes eld
12379 \begin_inset Quotes erd
12383 To make a table a formal table use the option
12391 tab of the table dialog.
12394 \begin_layout Standard
12395 \begin_inset Float table
12401 \begin_layout Plain Layout
12402 \begin_inset Caption
12404 \begin_layout Plain Layout
12405 \begin_inset CommandInset label
12407 name "tab:Example-booktabs-table"
12411 Example booktabs-table
12419 \begin_layout Plain Layout
12421 \begin_inset Tabular
12422 <lyxtabular version="3" rows="8" columns="4">
12423 <features booktabs="true" tabularvalignment="middle">
12424 <column alignment="center" valignment="top" width="0">
12425 <column alignment="center" valignment="top" width="0">
12426 <column alignment="center" valignment="top" width="0">
12427 <column alignment="center" valignment="top" width="0">
12429 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12432 \begin_layout Plain Layout
12438 <cell alignment="center" valignment="top" topline="true" usebox="none">
12441 \begin_layout Plain Layout
12443 \begin_inset space \thinspace{}
12451 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
12454 \begin_layout Plain Layout
12456 \begin_inset space \thinspace{}
12464 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12467 \begin_layout Plain Layout
12475 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12478 \begin_layout Plain Layout
12482 \begin_layout Plain Layout
12495 \begin_layout Plain Layout
12504 Detector thickness in µm
12509 <cell alignment="center" valignment="top" usebox="none">
12512 \begin_layout Plain Layout
12518 <cell alignment="center" valignment="top" usebox="none">
12521 \begin_layout Plain Layout
12527 <cell alignment="center" valignment="top" usebox="none">
12530 \begin_layout Plain Layout
12538 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12541 \begin_layout Plain Layout
12547 <cell alignment="center" valignment="top" topline="true" usebox="none">
12550 \begin_layout Plain Layout
12556 <cell alignment="center" valignment="top" topline="true" usebox="none">
12559 \begin_layout Plain Layout
12565 <cell alignment="center" valignment="top" topline="true" usebox="none">
12568 \begin_layout Plain Layout
12575 <row topspace="default">
12576 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12579 \begin_layout Plain Layout
12580 Spatial resolution in µm
12585 <cell alignment="center" valignment="top" usebox="none">
12588 \begin_layout Plain Layout
12594 <cell alignment="center" valignment="top" usebox="none">
12597 \begin_layout Plain Layout
12603 <cell alignment="center" valignment="top" usebox="none">
12606 \begin_layout Plain Layout
12613 <row topspace="default">
12614 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12617 \begin_layout Plain Layout
12619 \begin_inset Formula $f_{\mathrm{max}}$
12627 <cell alignment="center" valignment="top" usebox="none">
12630 \begin_layout Plain Layout
12636 <cell alignment="center" valignment="top" usebox="none">
12639 \begin_layout Plain Layout
12645 <cell alignment="center" valignment="top" usebox="none">
12648 \begin_layout Plain Layout
12655 <row topspace="default">
12656 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12659 \begin_layout Plain Layout
12663 \begin_layout Plain Layout
12667 cmidrule(l{10pt}){1-1}
12672 LSF-spatial resolution
12677 <cell alignment="center" valignment="top" usebox="none">
12680 \begin_layout Plain Layout
12686 <cell alignment="center" valignment="top" usebox="none">
12689 \begin_layout Plain Layout
12695 <cell alignment="center" valignment="top" usebox="none">
12698 \begin_layout Plain Layout
12706 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12709 \begin_layout Plain Layout
12715 <cell alignment="center" valignment="top" usebox="none">
12718 \begin_layout Plain Layout
12724 <cell alignment="center" valignment="top" usebox="none">
12727 \begin_layout Plain Layout
12733 <cell alignment="center" valignment="top" usebox="none">
12736 \begin_layout Plain Layout
12744 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12747 \begin_layout Plain Layout
12753 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12756 \begin_layout Plain Layout
12762 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12765 \begin_layout Plain Layout
12771 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12774 \begin_layout Plain Layout
12793 \begin_layout Standard
12794 Spaces to table rows can be added using the
12798 tab of the table dialog as described in section
12799 \begin_inset space ~
12803 \begin_inset CommandInset ref
12805 reference "sub:Row-Spacing"
12812 \begin_layout Standard
12813 Unlike normal tables, formal tables have no vertical table lines.
12814 The horizontal table lines can be set as for normal tables but they appear
12815 with different widths in the output:
12816 \begin_inset Newline newline
12819 The first and the last table line have a default width of 0.08
12820 \begin_inset space \thinspace{}
12823 em while the other lines have a default width of 0.05
12824 \begin_inset space \thinspace{}
12830 \begin_layout Standard
12831 The default widths can be changed with the following preamble lines
12834 \begin_layout Standard
12844 \begin_inset Newline newline
12856 \begin_layout Standard
12857 This example is for the first line, the so called
12862 If you want to change the width for the last line, replace
12871 To change the width for the other lines replace
12880 You can use all units listed in appendix
12881 \begin_inset space ~
12885 \begin_inset CommandInset ref
12887 reference "cha:Units-available-in"
12894 \begin_layout Standard
12895 Lines that do not span all table columns can be created by setting a table
12896 line for multicolumn cells.
12897 LyX will then internally use the command
12903 to create this line.
12907 \begin_layout Standard
12912 cmidrule[width](trim){startcol-endcol}
12915 \begin_layout Standard
12922 are currently not supported by LyX so you have to use TeX-Code to be able
12930 s can manually be created by inserting the command as TeX-Code as the first
12931 cell entry of the first cell of a row.
12932 The line is then drawn in the output above the current row.
12935 \begin_layout Standard
12936 The default for the width is 0.03
12937 \begin_inset space \thinspace{}
12941 Startcol is the number of the column where the line starts and endcol the
12942 column number where the line ends.
12943 The endcol always needs to be specified, also when the line should span
12945 The optional parameter trim could be either
12953 where the trimwidth is also optional.
12954 Using for example the parameter
12958 means that the line is trimmed from its left end by 2
12959 \begin_inset space \thinspace{}
12963 If you don't specify the trimwidth the lines are trimmed by the default
12965 \begin_inset space \thinspace{}
12971 \begin_layout Standard
12972 \begin_inset VSpace bigskip
12976 \begin_inset space ~
12980 \begin_inset CommandInset ref
12982 reference "tab:Example-booktabs-table"
12986 was created using the commands
12989 \begin_layout Standard
12999 \begin_layout Standard
13000 at the beginning of the second row and
13003 \begin_layout Standard
13008 cmidrule(l{10pt}){1-1}
13011 \begin_layout Standard
13015 \begin_layout Standard
13016 \begin_inset VSpace bigskip
13022 \begin_layout Standard
13023 You might want to have overlapping
13030 \begin_inset space ~
13034 \begin_inset CommandInset ref
13036 reference "tab:Special-booktabs-table"
13041 This can be achieved with the TeX-Code command
13044 \begin_layout Standard
13052 \begin_layout Standard
13053 The command that was used for the second row of Table
13054 \begin_inset space ~
13058 \begin_inset CommandInset ref
13060 reference "tab:Special-booktabs-table"
13067 \begin_layout Standard
13081 \begin_layout Standard
13082 The command for the sixth row is
13085 \begin_layout Standard
13097 \begin_layout Standard
13098 \begin_inset VSpace bigskip
13104 \begin_layout Standard
13105 If you are anyway not satisfied with the border line spacing, you can use
13106 the following command to produce lines that span over all table columns
13111 \begin_layout Standard
13116 specialrule{width}{space above}{space below}
13119 \begin_layout Standard
13120 For more information about these features, refer to the manual of the LaTeX-pack
13126 \begin_inset CommandInset citation
13133 \begin_inset Index idx
13136 \begin_layout Plain Layout
13137 LaTeX-packages ! booktabs
13145 \begin_layout Standard
13146 \begin_inset Float table
13152 \begin_layout Plain Layout
13153 \begin_inset Caption
13155 \begin_layout Plain Layout
13156 \begin_inset CommandInset label
13158 name "tab:Special-booktabs-table"
13162 Special booktabs-table
13170 \begin_layout Plain Layout
13172 \begin_inset Tabular
13173 <lyxtabular version="3" rows="8" columns="4">
13174 <features booktabs="true" tabularvalignment="middle">
13175 <column alignment="center" valignment="top" width="0">
13176 <column alignment="center" valignment="top" width="0">
13177 <column alignment="center" valignment="top" width="0">
13178 <column alignment="center" valignment="top" width="0">
13180 <cell alignment="center" valignment="top" topline="true" usebox="none">
13183 \begin_layout Plain Layout
13189 <cell alignment="center" valignment="top" topline="true" usebox="none">
13192 \begin_layout Plain Layout
13194 \begin_inset space \thinspace{}
13202 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13205 \begin_layout Plain Layout
13207 \begin_inset space \thinspace{}
13215 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13218 \begin_layout Plain Layout
13226 <cell alignment="center" valignment="top" usebox="none">
13229 \begin_layout Plain Layout
13233 \begin_layout Plain Layout
13246 \begin_layout Plain Layout
13259 \begin_layout Plain Layout
13272 \begin_layout Plain Layout
13281 Detector thickness in µm
13286 <cell alignment="center" valignment="top" usebox="none">
13289 \begin_layout Plain Layout
13295 <cell alignment="center" valignment="top" usebox="none">
13298 \begin_layout Plain Layout
13304 <cell alignment="center" valignment="top" usebox="none">
13307 \begin_layout Plain Layout
13315 <cell alignment="center" valignment="top" topline="true" usebox="none">
13318 \begin_layout Plain Layout
13324 <cell alignment="center" valignment="top" topline="true" usebox="none">
13327 \begin_layout Plain Layout
13333 <cell alignment="center" valignment="top" topline="true" usebox="none">
13336 \begin_layout Plain Layout
13342 <cell alignment="center" valignment="top" topline="true" usebox="none">
13345 \begin_layout Plain Layout
13352 <row topspace="default">
13353 <cell alignment="center" valignment="top" usebox="none">
13356 \begin_layout Plain Layout
13357 Spatial resolution in µm
13362 <cell alignment="center" valignment="top" usebox="none">
13365 \begin_layout Plain Layout
13371 <cell alignment="center" valignment="top" usebox="none">
13374 \begin_layout Plain Layout
13380 <cell alignment="center" valignment="top" usebox="none">
13383 \begin_layout Plain Layout
13390 <row topspace="default">
13391 <cell alignment="center" valignment="top" usebox="none">
13394 \begin_layout Plain Layout
13396 \begin_inset Formula $f_{\mathrm{max}}$
13404 <cell alignment="center" valignment="top" usebox="none">
13407 \begin_layout Plain Layout
13413 <cell alignment="center" valignment="top" usebox="none">
13416 \begin_layout Plain Layout
13422 <cell alignment="center" valignment="top" usebox="none">
13425 \begin_layout Plain Layout
13433 <cell alignment="center" valignment="top" topline="true" usebox="none">
13436 \begin_layout Plain Layout
13440 \begin_layout Plain Layout
13453 \begin_layout Plain Layout
13462 LSF-spatial resolution
13467 <cell alignment="center" valignment="top" topline="true" usebox="none">
13470 \begin_layout Plain Layout
13476 <cell alignment="center" valignment="top" topline="true" usebox="none">
13479 \begin_layout Plain Layout
13485 <cell alignment="center" valignment="top" topline="true" usebox="none">
13488 \begin_layout Plain Layout
13496 <cell alignment="center" valignment="top" usebox="none">
13499 \begin_layout Plain Layout
13505 <cell alignment="center" valignment="top" usebox="none">
13508 \begin_layout Plain Layout
13514 <cell alignment="center" valignment="top" usebox="none">
13517 \begin_layout Plain Layout
13523 <cell alignment="center" valignment="top" usebox="none">
13526 \begin_layout Plain Layout
13534 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13537 \begin_layout Plain Layout
13543 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13546 \begin_layout Plain Layout
13552 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13555 \begin_layout Plain Layout
13561 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13564 \begin_layout Plain Layout
13583 \begin_layout Section
13584 Vertical Table Alignment
13585 \begin_inset Index idx
13588 \begin_layout Plain Layout
13597 \begin_layout Standard
13598 To align tables vertically in a text line the table must be inside a box.
13599 The box can then be vertically aligned as described in section
13600 \begin_inset space ~
13604 \begin_inset CommandInset ref
13606 reference "sec:Box-Dialog"
13613 \begin_layout Standard
13614 In the following example the tables are inside a minipage
13618 \begin_layout Plain Layout
13619 Minipages are described in section
13620 \begin_inset space ~
13624 \begin_inset CommandInset ref
13626 reference "sec:Minipages"
13635 box that has a width of 15
13636 \begin_inset space \thinspace{}
13642 \begin_layout Itemize
13644 \begin_inset Box Frameless
13654 height_special "totalheight"
13657 \begin_layout Plain Layout
13658 \begin_inset Tabular
13659 <lyxtabular version="3" rows="3" columns="3">
13660 <features tabularvalignment="middle">
13661 <column alignment="center" valignment="top" width="0">
13662 <column alignment="center" valignment="top" width="0">
13663 <column alignment="center" valignment="top" width="0">
13665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13668 \begin_layout Plain Layout
13674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13677 \begin_layout Plain Layout
13683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13686 \begin_layout Plain Layout
13694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13697 \begin_layout Plain Layout
13703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13706 \begin_layout Plain Layout
13712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13715 \begin_layout Plain Layout
13723 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13726 \begin_layout Plain Layout
13732 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13735 \begin_layout Plain Layout
13741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13744 \begin_layout Plain Layout
13764 \begin_layout Plain Layout
13776 \begin_inset Box Frameless
13786 height_special "totalheight"
13789 \begin_layout Plain Layout
13790 \begin_inset Tabular
13791 <lyxtabular version="3" rows="3" columns="3">
13792 <features tabularvalignment="middle">
13793 <column alignment="center" valignment="top" width="0">
13794 <column alignment="center" valignment="top" width="0">
13795 <column alignment="center" valignment="top" width="0">
13797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13800 \begin_layout Plain Layout
13806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13809 \begin_layout Plain Layout
13815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13818 \begin_layout Plain Layout
13826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13829 \begin_layout Plain Layout
13835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13838 \begin_layout Plain Layout
13844 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13847 \begin_layout Plain Layout
13855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13858 \begin_layout Plain Layout
13864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13867 \begin_layout Plain Layout
13873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13876 \begin_layout Plain Layout
13896 \begin_layout Plain Layout
13906 \begin_layout Itemize
13908 \begin_inset Box Frameless
13918 height_special "totalheight"
13921 \begin_layout Plain Layout
13922 \begin_inset Tabular
13923 <lyxtabular version="3" rows="3" columns="3">
13924 <features tabularvalignment="middle">
13925 <column alignment="center" valignment="top" width="0">
13926 <column alignment="center" valignment="top" width="0">
13927 <column alignment="center" valignment="top" width="0">
13929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13932 \begin_layout Plain Layout
13938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13941 \begin_layout Plain Layout
13947 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13950 \begin_layout Plain Layout
13958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13961 \begin_layout Plain Layout
13967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13970 \begin_layout Plain Layout
13976 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13979 \begin_layout Plain Layout
13987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13990 \begin_layout Plain Layout
13996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13999 \begin_layout Plain Layout
14005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14008 \begin_layout Plain Layout
14027 \begin_layout Itemize
14029 \begin_inset Box Frameless
14039 height_special "totalheight"
14042 \begin_layout Plain Layout
14043 \begin_inset Tabular
14044 <lyxtabular version="3" rows="3" columns="3">
14045 <features tabularvalignment="middle">
14046 <column alignment="center" valignment="top" width="0">
14047 <column alignment="center" valignment="top" width="0">
14048 <column alignment="center" valignment="top" width="0">
14050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14053 \begin_layout Plain Layout
14059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14062 \begin_layout Plain Layout
14068 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14071 \begin_layout Plain Layout
14079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14082 \begin_layout Plain Layout
14088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14091 \begin_layout Plain Layout
14097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14100 \begin_layout Plain Layout
14108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14111 \begin_layout Plain Layout
14117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14120 \begin_layout Plain Layout
14126 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14129 \begin_layout Plain Layout
14149 \begin_layout Plain Layout
14161 \begin_inset Box Frameless
14171 height_special "totalheight"
14174 \begin_layout Plain Layout
14175 \begin_inset Tabular
14176 <lyxtabular version="3" rows="3" columns="3">
14177 <features tabularvalignment="middle">
14178 <column alignment="center" valignment="top" width="0">
14179 <column alignment="center" valignment="top" width="0">
14180 <column alignment="center" valignment="top" width="0">
14182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14185 \begin_layout Plain Layout
14191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14194 \begin_layout Plain Layout
14200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14203 \begin_layout Plain Layout
14211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14214 \begin_layout Plain Layout
14220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14223 \begin_layout Plain Layout
14229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14232 \begin_layout Plain Layout
14240 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14243 \begin_layout Plain Layout
14249 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14252 \begin_layout Plain Layout
14258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14261 \begin_layout Plain Layout
14281 \begin_layout Plain Layout
14291 \begin_layout Standard
14292 As you will see, the content of the first and last table row is not correctly
14294 To get this alignment, the minipage box must be set into a raisebox
14298 \begin_layout Plain Layout
14299 Raiseboxes are described in section
14300 \begin_inset space ~
14304 \begin_inset CommandInset ref
14306 reference "sub:Vertical-Alignment"
14316 In the example above the second table in the first item is aligned using
14317 the TeX-Code-command
14320 \begin_layout Standard
14330 \begin_layout Standard
14332 After the box the closing brace
14336 is inserted as TeX-Code.
14337 For the second table in the last item the command
14340 \begin_layout Standard
14350 \begin_layout Standard
14354 \begin_layout Standard
14355 \begin_inset Note Greyedout
14358 \begin_layout Plain Layout
14363 The alignment of the table row content to the surrounding text line is
14365 The required value for the
14371 command for this alignment depends on the document font, the font size,
14372 and the table line thickness.
14380 \begin_layout Section
14382 \begin_inset CommandInset label
14384 name "sec:Colored-Tables"
14389 \begin_inset Index idx
14392 \begin_layout Plain Layout
14401 \begin_layout Subsection
14403 \begin_inset Index idx
14406 \begin_layout Plain Layout
14407 Table Color ! for Cells
14413 \begin_inset Index idx
14416 \begin_layout Plain Layout
14417 Color ! for Table Cells
14425 \begin_layout Standard
14426 \begin_inset Float table
14432 \begin_layout Plain Layout
14433 \begin_inset Caption
14435 \begin_layout Plain Layout
14436 \begin_inset CommandInset label
14438 name "tab:Table-colored-without"
14442 Table colored without using the package
14447 \begin_inset Argument
14450 \begin_layout Plain Layout
14451 Table without colortbl
14464 \begin_layout Plain Layout
14466 \begin_inset Tabular
14467 <lyxtabular version="3" rows="3" columns="3">
14468 <features tabularvalignment="middle">
14469 <column alignment="center" valignment="top" width="0">
14470 <column alignment="center" valignment="top" width="0">
14471 <column alignment="center" valignment="top" width="0">
14473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14476 \begin_layout Plain Layout
14484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14487 \begin_layout Plain Layout
14495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14498 \begin_layout Plain Layout
14508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14511 \begin_layout Plain Layout
14519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14522 \begin_layout Plain Layout
14530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14533 \begin_layout Plain Layout
14543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14546 \begin_layout Plain Layout
14554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14557 \begin_layout Plain Layout
14565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14568 \begin_layout Plain Layout
14589 \begin_layout Standard
14590 If you only need colored text, mark the cells and choose a color in the
14593 Edit\SpecialChar \menuseparator
14595 \begin_inset space ~
14601 This was used to create Table
14602 \begin_inset space ~
14606 \begin_inset CommandInset ref
14608 reference "tab:Table-colored-without"
14613 In any other case you have to use the LaTeX-package
14618 \begin_inset Index idx
14621 \begin_layout Plain Layout
14622 LaTeX-packages ! colortbl
14630 \begin_layout Standard
14634 \begin_layout Plain Layout
14644 \begin_inset Note Note
14647 \begin_layout Plain Layout
14648 The following section part will only be displayed when the LaTeX-package
14661 \begin_layout Standard
14662 To create colored tables,
14666 must be loaded in the preamble with the line
14669 \begin_layout Standard
14674 usepackage{colortbl}
14677 \begin_layout Standard
14678 The color of a column is adjusted with the command
14681 \begin_layout Standard
14686 columncolor{name of color}
14689 \begin_layout Standard
14695 More about the command
14699 is contained in section
14700 \begin_inset space ~
14704 \begin_inset CommandInset ref
14706 reference "sub:Multicolumn-Calculations"
14713 \begin_layout Standard
14714 The following color names are predefined:
14717 \begin_layout Standard
14751 \begin_layout Standard
14752 \begin_inset VSpace medskip
14758 \begin_layout Standard
14759 You can also define your own color with the command
14762 \begin_layout Standard
14767 definecolor{color name}{color model}{color values}
14770 \begin_layout Standard
14771 The color model can be
14774 \begin_layout Labeling
14775 \labelwidthstring 00.00.0000
14776 cmyk: cyan, magenta, yellow, black
14779 \begin_layout Labeling
14780 \labelwidthstring 00.00.0000
14781 rgb: red, green blue
14784 \begin_layout Labeling
14785 \labelwidthstring 00.00.0000
14789 \begin_layout Standard
14790 and the color values are comma separated numbers between 0 and 1 describing
14791 the factor for the corresponding color of the color model.
14794 \begin_layout Standard
14796 \begin_inset space \thinspace{}
14800 \begin_inset space \space{}
14807 " in the preamble with
14810 \begin_layout Standard
14815 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14818 \begin_layout Standard
14826 \begin_layout Standard
14831 definecolor{lightgray}{gray}{0.8}
14834 \begin_layout Standard
14835 \begin_inset VSpace medskip
14841 \begin_layout Standard
14842 Lines are colored with the command
14845 \begin_layout Standard
14850 rowcolor{name of color}
14853 \begin_layout Standard
14854 and cells are colored with the command
14857 \begin_layout Standard
14862 cellcolor{name of color}
14865 \begin_layout Standard
14866 Both commands are inserted at the beginning of a cell as TeX-Code.
14869 \begin_layout Standard
14870 To color characters in the table, mark the cells and use the LyX menu
14872 Edit\SpecialChar \menuseparator
14874 \begin_inset space ~
14880 If a cell contains TeX-Code mark only the characters, otherwise the colored
14881 TeX-Code will cause LaTeX-errors.
14884 \begin_layout Standard
14885 \begin_inset Note Greyedout
14888 \begin_layout Plain Layout
14893 Not all DVI-viewers are able to display self-defined colors.
14901 \begin_layout Standard
14902 \begin_inset VSpace bigskip
14908 \begin_layout Standard
14910 \begin_inset space ~
14914 \begin_inset CommandInset ref
14916 reference "tab:Table-colored-using"
14920 do the following: The color of the first column should be
14928 \begin_layout Standard
14933 columncolor{darkgreen}
14938 \begin_layout Standard
14939 as LaTeX-argument for this column.
14940 The first row should be blue, therefore the TeX-Code command
14943 \begin_layout Standard
14951 \begin_layout Standard
14952 is inserted to the first cell of this row.
14953 Note that this overwrites the column color for the first cell.
14954 The last cell of the last row is colored magenta by inserting the TeX-Code
14958 \begin_layout Standard
14966 \begin_layout Standard
14967 The characters could now be colored using the menu
14969 Edit\SpecialChar \menuseparator
14971 \begin_inset space ~
14979 \begin_layout Standard
14980 \begin_inset Float table
14986 \begin_layout Plain Layout
14987 \begin_inset Caption
14989 \begin_layout Plain Layout
14990 \begin_inset CommandInset label
14992 name "tab:Table-colored-using"
14996 Table colored using the package
15001 \begin_inset Argument
15004 \begin_layout Plain Layout
15005 Table with colortbl
15018 \begin_layout Plain Layout
15020 \begin_inset Tabular
15021 <lyxtabular version="3" rows="3" columns="3">
15022 <features tabularvalignment="middle">
15023 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15024 <column alignment="center" valignment="top" width="0">
15025 <column alignment="center" valignment="top" width="0">
15027 <cell alignment="center" valignment="top" usebox="none">
15030 \begin_layout Plain Layout
15034 \begin_layout Plain Layout
15050 <cell alignment="center" valignment="top" usebox="none">
15053 \begin_layout Plain Layout
15061 <cell alignment="center" valignment="top" usebox="none">
15064 \begin_layout Plain Layout
15074 <cell alignment="center" valignment="top" usebox="none">
15077 \begin_layout Plain Layout
15085 <cell alignment="center" valignment="top" usebox="none">
15088 \begin_layout Plain Layout
15096 <cell alignment="center" valignment="top" usebox="none">
15099 \begin_layout Plain Layout
15109 <cell alignment="center" valignment="top" usebox="none">
15112 \begin_layout Plain Layout
15120 <cell alignment="center" valignment="top" usebox="none">
15123 \begin_layout Plain Layout
15131 <cell alignment="center" valignment="top" usebox="none">
15134 \begin_layout Plain Layout
15138 \begin_layout Plain Layout
15167 \begin_layout Standard
15171 \begin_layout Plain Layout
15181 \begin_inset Note Note
15184 \begin_layout Plain Layout
15185 The following will be displayed when the LaTeX-package
15197 \begin_layout Standard
15198 You need to install the package
15202 to see the content of this section in the output.
15205 \begin_layout Standard
15209 \begin_layout Plain Layout
15221 \begin_layout Subsection
15223 \begin_inset Index idx
15226 \begin_layout Plain Layout
15227 Table Color ! for Lines
15233 \begin_inset Index idx
15236 \begin_layout Plain Layout
15237 Color ! for Table Lines
15245 \begin_layout Standard
15246 As described in section
15247 \begin_inset space ~
15251 \begin_inset CommandInset ref
15253 reference "sub:Line-Thickness"
15257 , the line thickness for all lines in a table can be adjusted with the length
15266 \begin_inset space \thinspace{}
15269 pt for all tables of this section.
15273 \begin_layout Plain Layout
15279 arrayrulewidth}{1.5pt}
15287 \begin_layout Standard
15288 To color vertical lines for example with green, create the following column
15289 format in the document preamble, according to the description in section
15290 \begin_inset space ~
15294 \begin_inset CommandInset ref
15296 reference "sub:Customized-Format"
15303 \begin_layout Standard
15308 newcolumntype{W}{!{
15315 \begin_layout Standard
15317 \begin_inset space ~
15321 \begin_inset CommandInset ref
15323 reference "tab:Table-with-vertical-colored"
15331 was used for the last column and
15335 for the other columns.
15338 \begin_layout Standard
15339 If you want to have several colors, define more column formats.
15342 \begin_layout Standard
15343 \begin_inset Float table
15349 \begin_layout Plain Layout
15350 \begin_inset Caption
15352 \begin_layout Plain Layout
15353 \begin_inset CommandInset label
15355 name "tab:Table-with-vertical-colored"
15359 Table with colored vertical lines
15367 \begin_layout Plain Layout
15369 \begin_inset Tabular
15370 <lyxtabular version="3" rows="3" columns="3">
15371 <features tabularvalignment="middle">
15372 <column alignment="center" valignment="top" width="0" special="Wc">
15373 <column alignment="center" valignment="top" width="0" special="Wc">
15374 <column alignment="center" valignment="top" width="0" special="WcW">
15376 <cell alignment="center" valignment="top" topline="true" usebox="none">
15379 \begin_layout Plain Layout
15385 <cell alignment="center" valignment="top" topline="true" usebox="none">
15388 \begin_layout Plain Layout
15394 <cell alignment="center" valignment="top" topline="true" usebox="none">
15397 \begin_layout Plain Layout
15405 <cell alignment="center" valignment="top" topline="true" usebox="none">
15408 \begin_layout Plain Layout
15414 <cell alignment="center" valignment="top" topline="true" usebox="none">
15417 \begin_layout Plain Layout
15423 <cell alignment="center" valignment="top" topline="true" usebox="none">
15426 \begin_layout Plain Layout
15434 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15437 \begin_layout Plain Layout
15443 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15446 \begin_layout Plain Layout
15452 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15455 \begin_layout Plain Layout
15474 \begin_layout Standard
15475 \begin_inset VSpace bigskip
15478 To color horizontal lines for example with red, as in Table
15479 \begin_inset space ~
15483 \begin_inset CommandInset ref
15485 reference "tab:Table-with-horizontal-colored"
15489 , insert these commands in TeX-Code before the table or table float:
15492 \begin_layout Standard
15502 \begin_inset Newline newline
15510 \begin_inset Newline newline
15514 \begin_inset Phantom HPhantom
15517 \begin_layout Plain Layout
15520 \begin_inset space ~
15530 arrayrulecolor{red}
15534 arrayrulecolor{black}}
15537 \begin_layout Standard
15541 \begin_layout Plain Layout
15552 \begin_layout Plain Layout
15561 \begin_layout Plain Layout
15565 arrayrulecolor{red}
15569 arrayrulecolor{black}}
15575 \begin_inset Float table
15581 \begin_layout Plain Layout
15582 \begin_inset Caption
15584 \begin_layout Plain Layout
15585 \begin_inset CommandInset label
15587 name "tab:Table-with-horizontal-colored"
15591 Table with colored horizontal lines
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">
15605 <column alignment="center" valignment="top" width="0">
15606 <column alignment="center" valignment="top" width="0">
15608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15611 \begin_layout Plain Layout
15617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15620 \begin_layout Plain Layout
15626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15629 \begin_layout Plain Layout
15637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15640 \begin_layout Plain Layout
15646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15649 \begin_layout Plain Layout
15655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15658 \begin_layout Plain Layout
15666 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15669 \begin_layout Plain Layout
15675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15678 \begin_layout Plain Layout
15684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15687 \begin_layout Plain Layout
15706 \begin_layout Standard
15707 To return to the default line color black, insert this command in TeX-Code
15708 after the table or table float:
15711 \begin_layout Standard
15723 \begin_layout Standard
15725 \begin_inset space ~
15729 \begin_inset CommandInset ref
15731 reference "tab:Table-with-colored"
15735 is an example with colored vertical and horizontal lines.
15738 \begin_layout Standard
15739 \begin_inset Float table
15745 \begin_layout Plain Layout
15746 \begin_inset Caption
15748 \begin_layout Plain Layout
15749 \begin_inset CommandInset label
15751 name "tab:Table-with-colored"
15755 Table with colored lines
15763 \begin_layout Plain Layout
15765 \begin_inset Tabular
15766 <lyxtabular version="3" rows="3" columns="3">
15767 <features tabularvalignment="middle">
15768 <column alignment="center" valignment="top" width="0" special="Wc">
15769 <column alignment="center" valignment="top" width="0" special="Wc">
15770 <column alignment="center" valignment="top" width="0" special="WcW">
15772 <cell alignment="center" valignment="top" topline="true" usebox="none">
15775 \begin_layout Plain Layout
15781 <cell alignment="center" valignment="top" topline="true" usebox="none">
15784 \begin_layout Plain Layout
15790 <cell alignment="center" valignment="top" topline="true" usebox="none">
15793 \begin_layout Plain Layout
15801 <cell alignment="center" valignment="top" topline="true" usebox="none">
15804 \begin_layout Plain Layout
15810 <cell alignment="center" valignment="top" topline="true" usebox="none">
15813 \begin_layout Plain Layout
15819 <cell alignment="center" valignment="top" topline="true" usebox="none">
15822 \begin_layout Plain Layout
15829 <row topspace="default">
15830 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15833 \begin_layout Plain Layout
15839 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15842 \begin_layout Plain Layout
15848 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15851 \begin_layout Plain Layout
15870 \begin_layout Standard
15874 \begin_layout Plain Layout
15890 \begin_layout Standard
15894 \begin_layout Plain Layout
15900 arrayrulewidth}{0.4pt}
15908 \begin_layout Section
15909 Table Customization
15910 \begin_inset Index idx
15913 \begin_layout Plain Layout
15914 Table Customization
15920 \begin_inset Index idx
15923 \begin_layout Plain Layout
15924 Table ! Customization
15932 \begin_layout Subsection
15934 \begin_inset CommandInset label
15936 name "sub:Row-Spacing"
15941 \begin_inset Index idx
15944 \begin_layout Plain Layout
15945 Table Customization ! Row Spacing
15953 \begin_layout Standard
15954 You can add vertical space to table rows in the
15958 tab of the table dialog.
15959 You find there three possibilities:
15962 \begin_layout Description
15964 \begin_inset space ~
15968 \begin_inset space ~
15971 row will add space above the characters of the table row.
15972 If the table is a formal table
15976 \begin_layout Plain Layout
15977 Formal tables are explained in section
15978 \begin_inset space ~
15982 \begin_inset CommandInset ref
15984 reference "sec:Formal-Tables"
15993 LyX will insert as default 0.5
15994 \begin_inset space \thinspace{}
15998 For normal tables the inserted space will unfortunately destroy the vertical
15999 table lines as in the following table:
16000 \begin_inset VSpace medskip
16004 \begin_inset Newline newline
16008 \begin_inset space \hspace*{}
16013 \begin_inset space \hfill{}
16017 \begin_inset Tabular
16018 <lyxtabular version="3" rows="3" columns="1">
16019 <features tabularvalignment="middle">
16020 <column alignment="center" valignment="top" width="0">
16022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16025 \begin_layout Plain Layout
16032 <row topspace="3mm">
16033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16036 \begin_layout Plain Layout
16038 \begin_inset space \thinspace{}
16041 mm space top of row
16048 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16051 \begin_layout Plain Layout
16063 \begin_inset space \hfill{}
16067 \begin_inset space \hspace*{}
16072 \begin_inset VSpace medskip
16076 \begin_inset Newline newline
16079 So inserting space in the top of row for normal tables is only useful when
16080 you don't have vertical lines.
16083 \begin_layout Description
16085 \begin_inset space ~
16089 \begin_inset space ~
16092 row will add space below the characters of the table row.
16093 If the table is a formal table LyX will insert as default 0.5
16094 \begin_inset space \thinspace{}
16097 em space, for normal tables the default size is 2
16098 \begin_inset space \thinspace{}
16104 \begin_layout Description
16106 \begin_inset space ~
16109 rows adds space between the current and the following row.
16110 If the table is a formal table LyX will insert as default 0.5
16111 \begin_inset space \thinspace{}
16115 For normal tables the inserted space will unfortunately destroy the vertical
16116 table lines as in the following table:
16117 \begin_inset VSpace medskip
16121 \begin_inset Newline newline
16125 \begin_inset space \hspace*{}
16130 \begin_inset space \hfill{}
16134 \begin_inset Tabular
16135 <lyxtabular version="3" rows="3" columns="1">
16136 <features tabularvalignment="middle">
16137 <column alignment="center" valignment="top" width="0">
16139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16142 \begin_layout Plain Layout
16149 <row interlinespace="3mm">
16150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16153 \begin_layout Plain Layout
16154 \begin_inset Formula $\downarrow$
16158 \begin_inset space \thinspace{}
16161 mm space between row
16162 \begin_inset Formula $\downarrow$
16172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16175 \begin_layout Plain Layout
16176 \begin_inset Formula $\uparrow$
16180 \begin_inset space \thinspace{}
16183 mm space between row
16184 \begin_inset Formula $\uparrow$
16198 \begin_inset space \hfill{}
16202 \begin_inset space \hspace*{}
16207 \begin_inset VSpace medskip
16211 \begin_inset Newline newline
16214 So inserting space between rows for normal tables is only useful when you
16215 don't have vertical lines.
16218 \begin_layout Standard
16219 \begin_inset VSpace bigskip
16222 When you want to add extra height to all cells of all tables, you can do
16223 this with the following preamble lines:
16226 \begin_layout Standard
16231 @ifundefined{extrarowheight}
16232 \begin_inset Newline newline
16236 \begin_inset Phantom HPhantom
16239 \begin_layout Plain Layout
16242 \begin_inset space ~
16252 usepackage{array}}{}
16253 \begin_inset Newline newline
16260 extrarowheight}{height}
16263 \begin_layout Standard
16264 But this has the disadvantage that the cell texts are no longer exactly
16265 vertically centered.
16270 will be loaded automatically by LyX when you use self defined table formats.
16271 To avoid that it being loaded twice the command
16277 is used in the above command.)
16280 \begin_layout Standard
16281 If you are using font sizes larger than the normal size, the table borders
16282 are often too close to the letters.
16283 This can be corrected by inserting the command
16289 in TeX code at the beginning of a table row.
16291 \begin_inset space ~
16295 \begin_inset CommandInset ref
16297 reference "tab:Vertical-alignment-of"
16301 illustrates the effect.
16304 \begin_layout Standard
16306 \begin_inset Float table
16312 \begin_layout Plain Layout
16313 \begin_inset Caption
16315 \begin_layout Plain Layout
16316 \begin_inset CommandInset label
16318 name "tab:Vertical-alignment-of"
16322 Vertical alignment of text with large font sizes.
16330 \begin_layout Plain Layout
16331 \begin_inset space \hfill{}
16335 \begin_inset Float table
16340 \begin_layout Plain Layout
16341 \begin_inset Caption
16343 \begin_layout Plain Layout
16352 \begin_layout Plain Layout
16355 \begin_inset Tabular
16356 <lyxtabular version="3" rows="6" columns="1">
16357 <features tabularvalignment="middle">
16358 <column alignment="left" valignment="top" width="0">
16360 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16363 \begin_layout Plain Layout
16371 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16374 \begin_layout Plain Layout
16384 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16387 \begin_layout Plain Layout
16397 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16400 \begin_layout Plain Layout
16410 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16413 \begin_layout Plain Layout
16423 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16426 \begin_layout Plain Layout
16445 \begin_inset space \hfill{}
16449 \begin_inset Float table
16454 \begin_layout Plain Layout
16455 \begin_inset Caption
16457 \begin_layout Plain Layout
16458 Table using the command
16472 \begin_layout Plain Layout
16475 \begin_inset Tabular
16476 <lyxtabular version="3" rows="6" columns="1">
16477 <features tabularvalignment="middle">
16478 <column alignment="left" valignment="top" width="0">
16480 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16483 \begin_layout Plain Layout
16491 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16494 \begin_layout Plain Layout
16500 \begin_layout Plain Layout
16516 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16519 \begin_layout Plain Layout
16525 \begin_layout Plain Layout
16541 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16544 \begin_layout Plain Layout
16550 \begin_layout Plain Layout
16566 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16569 \begin_layout Plain Layout
16575 \begin_layout Plain Layout
16591 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16594 \begin_layout Plain Layout
16600 \begin_layout Plain Layout
16627 \begin_inset space \hfill{}
16638 \begin_layout Subsection
16639 Special Cell Alignment
16640 \begin_inset CommandInset label
16642 name "sub:Special-Cell-Alignment"
16647 \begin_inset Index idx
16650 \begin_layout Plain Layout
16651 Table Customization ! Special Cell Alignment
16659 \begin_layout Standard
16660 Sometimes it looks better when the cell entries of a column are aligned
16661 with a special character, e.
16662 \begin_inset space \thinspace{}
16666 \begin_inset space \space{}
16669 with the decimal separator as in Table
16670 \begin_inset space ~
16674 \begin_inset CommandInset ref
16676 reference "tab:Table-cells-align"
16681 This alignment is achieved by highlighting the last 3
16682 \begin_inset space ~
16685 cells of the column and then either pressing the toolbar button
16686 \begin_inset Graphics
16687 filename ../images/tabular-feature_align-decimal.png
16689 scaleBeforeRotation
16693 or setting the alignment in the table settings to
16696 \begin_inset space ~
16700 \begin_inset space ~
16706 The alignment character can be a character of your choice and is specified
16707 in the table settings.
16710 \begin_layout Standard
16711 \begin_inset Float table
16717 \begin_layout Plain Layout
16718 \begin_inset Caption
16720 \begin_layout Plain Layout
16721 \begin_inset CommandInset label
16723 name "tab:Table-cells-align"
16727 Table cells of a column aligned with the decimal separator.
16735 \begin_layout Plain Layout
16737 \begin_inset Tabular
16738 <lyxtabular version="3" rows="4" columns="1">
16739 <features booktabs="true" tabularvalignment="middle">
16740 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
16742 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
16745 \begin_layout Plain Layout
16753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16756 \begin_layout Plain Layout
16764 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
16767 \begin_layout Plain Layout
16775 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
16778 \begin_layout Plain Layout
16797 \begin_layout Standard
16798 \begin_inset Float table
16804 \begin_layout Plain Layout
16805 \begin_inset Caption
16807 \begin_layout Plain Layout
16808 \begin_inset CommandInset label
16810 name "tab:Table-align-operator"
16814 Table cells of a column aligned with the operators.
16822 \begin_layout Plain Layout
16824 \begin_inset Tabular
16825 <lyxtabular version="3" rows="4" columns="2">
16826 <features booktabs="true" tabularvalignment="middle">
16827 <column alignment="right" valignment="top" width="0pt">
16828 <column alignment="left" valignment="top" width="0pt" special="@{}l">
16830 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16833 \begin_layout Plain Layout
16839 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16842 \begin_layout Plain Layout
16850 <cell alignment="center" valignment="top" usebox="none">
16853 \begin_layout Plain Layout
16854 \begin_inset Formula $12\,+$
16862 <cell alignment="center" valignment="top" usebox="none">
16865 \begin_layout Plain Layout
16866 \begin_inset Formula $\,6$
16876 <cell alignment="center" valignment="top" usebox="none">
16879 \begin_layout Plain Layout
16880 \begin_inset Formula $0\,-$
16888 <cell alignment="center" valignment="top" usebox="none">
16891 \begin_layout Plain Layout
16892 \begin_inset Formula $\,68$
16902 <cell alignment="center" valignment="top" usebox="none">
16905 \begin_layout Plain Layout
16906 \begin_inset Formula $-123\,/$
16914 <cell alignment="center" valignment="top" usebox="none">
16917 \begin_layout Plain Layout
16918 \begin_inset Formula $\,0$
16939 \begin_layout Standard
16940 For alignments at characters in formulas this method does not work because
16941 the field to specify the alignment character does not allow formulas.
16942 In this case one need to use the method from Table
16943 \begin_inset space ~
16947 \begin_inset CommandInset ref
16949 reference "tab:Table-align-operator"
16954 This table was created with a 4×2 table.
16955 The heading is a centered multicolumn.
16956 The first column is right-aligned and contains the first part including
16958 The second column is left aligned and contains the rest.
16959 A small space was added at the beginning of each cell of the second column
16960 to get the space that is usually around operators.
16961 To omit the space that is normally between two table columns, the following
16962 LaTeX-argument was used for the second column:
16965 \begin_layout Standard
16971 \begin_layout Standard
16973 \begin_inset space ~
16977 \begin_inset CommandInset ref
16979 reference "tab:Several-table-cell"
16983 shows some example alignments.
16984 For the alignment with the relation sign, a small space was added like
16985 for the second column of Table
16986 \begin_inset space ~
16990 \begin_inset CommandInset ref
16992 reference "tab:Table-align-operator"
16999 \begin_layout Standard
17000 \begin_inset Float table
17006 \begin_layout Plain Layout
17007 \begin_inset Caption
17009 \begin_layout Plain Layout
17010 \begin_inset CommandInset label
17012 name "tab:Several-table-cell"
17016 Several table cell alignments.
17024 \begin_layout Plain Layout
17026 \begin_inset Tabular
17027 <lyxtabular version="3" rows="4" columns="6">
17028 <features tabularvalignment="middle">
17029 <column alignment="right" valignment="top" width="0">
17030 <column alignment="left" valignment="top" width="0" special="@{}l">
17031 <column alignment="right" valignment="top" width="0">
17032 <column alignment="left" valignment="top" width="0" special="@{}l">
17033 <column alignment="right" valignment="top" width="0">
17034 <column alignment="left" valignment="top" width="0" special="@{}l">
17036 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17039 \begin_layout Plain Layout
17045 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17048 \begin_layout Plain Layout
17054 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17057 \begin_layout Plain Layout
17063 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17066 \begin_layout Plain Layout
17072 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17075 \begin_layout Plain Layout
17081 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17084 \begin_layout Plain Layout
17092 <cell alignment="center" valignment="top" usebox="none">
17095 \begin_layout Plain Layout
17101 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17104 \begin_layout Plain Layout
17106 \begin_inset space \thinspace{}
17114 <cell alignment="center" valignment="top" usebox="none">
17117 \begin_layout Plain Layout
17118 \begin_inset Formula $10\cdot$
17126 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17129 \begin_layout Plain Layout
17130 \begin_inset Formula $10^{\mbox{-}17}$
17138 <cell alignment="center" valignment="top" usebox="none">
17141 \begin_layout Plain Layout
17142 \begin_inset Formula $\Gamma(t)\propto$
17150 <cell alignment="center" valignment="top" usebox="none">
17153 \begin_layout Plain Layout
17154 \begin_inset Formula $\:\Upsilon(t)$
17164 <cell alignment="center" valignment="top" usebox="none">
17167 \begin_layout Plain Layout
17173 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17176 \begin_layout Plain Layout
17178 \begin_inset space \thinspace{}
17186 <cell alignment="center" valignment="top" usebox="none">
17189 \begin_layout Plain Layout
17190 \begin_inset Formula $5.78\cdot$
17198 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17201 \begin_layout Plain Layout
17202 \begin_inset Formula $10^{7}$
17210 <cell alignment="center" valignment="top" usebox="none">
17213 \begin_layout Plain Layout
17214 \begin_inset Formula $A\ne$
17222 <cell alignment="center" valignment="top" usebox="none">
17225 \begin_layout Plain Layout
17226 \begin_inset Formula $\: B_{\mathrm{red}}$
17236 <cell alignment="center" valignment="top" usebox="none">
17239 \begin_layout Plain Layout
17245 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17248 \begin_layout Plain Layout
17250 \begin_inset space \thinspace{}
17258 <cell alignment="center" valignment="top" usebox="none">
17261 \begin_layout Plain Layout
17263 \begin_inset Formula $33.5\cdot$
17271 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17274 \begin_layout Plain Layout
17275 \begin_inset Formula $10^{4}$
17283 <cell alignment="center" valignment="top" usebox="none">
17286 \begin_layout Plain Layout
17287 \begin_inset Formula $\sin(\alpha)\ge$
17295 <cell alignment="center" valignment="top" usebox="none">
17298 \begin_layout Plain Layout
17299 \begin_inset Formula $\:\sin(\beta)$
17320 \begin_layout Subsection
17321 Customized Cell/Column Format
17322 \begin_inset CommandInset label
17324 name "sub:Customized-Format"
17329 \begin_inset Index idx
17332 \begin_layout Plain Layout
17333 Table Customization ! Cell/Column Format
17341 \begin_layout Standard
17342 Calculating the required width for spanned columns as in section
17343 \begin_inset space ~
17347 \begin_inset CommandInset ref
17349 reference "sub:Multicolumn-Calculations"
17353 is very annoying if you have several tables with multicolumn cells.
17354 To make life easier, you can define a cell/column format in the preamble,
17355 so that it can be used in all tables of the document.
17356 The format is defined with the command
17359 \begin_layout Standard
17364 newcolumntype{name of format}[number of arguments]{commands}
17367 \begin_layout Standard
17368 The format name may only consist of one letter.
17393 are predefined and cannot be used.
17394 But all letters are allowed as capitals.
17397 \begin_layout Standard
17398 \begin_inset VSpace medskip
17404 \begin_layout Standard
17405 For vertically and horizontally centered multicolumn cells with a fixed
17406 width you can define the cell format
17409 \begin_layout Standard
17414 newcolumntype{M}[1]{>{
17421 \begin_layout Standard
17428 avoids the problem of hyphenating the first word, as described in section
17429 \begin_inset space ~
17433 \begin_inset CommandInset ref
17435 reference "sub:Multiple-Lines-in"
17440 Now you can simply enter
17443 \begin_layout Standard
17449 \begin_layout Standard
17450 as LaTeX-argument in the table dialog to create a multicolumn.
17453 \begin_layout Standard
17454 \begin_inset VSpace bigskip
17460 \begin_layout Standard
17461 For cells spanned by a multicolumn cell, you can define the format
17464 \begin_layout Standard
17469 newcolumntype{S}[2]{>{
17474 \begin_inset Newline newline
17478 \begin_inset Phantom HPhantom
17481 \begin_layout Plain Layout
17495 arrayrulewidth)*(1-#2))/#2}}
17498 \begin_layout Standard
17499 This format uses equation
17500 \begin_inset CommandInset ref
17506 to calculate the required width so that each spanned cell has the same
17510 \begin_layout Standard
17514 \begin_layout Standard
17517 S{width of multicolumn cell}{number of spanned columns}
17520 \begin_layout Standard
17521 as LaTeX-argument of the column.
17524 \begin_layout Standard
17525 \begin_inset VSpace bigskip
17531 \begin_layout Standard
17532 For colored columns, you can define
17535 \begin_layout Standard
17540 newcolumntype{K}[1]{>{
17547 \begin_layout Standard
17549 \begin_inset Quotes eld
17553 \begin_inset Quotes erd
17556 at the end creates a column with a flexible width whose text is horizontally
17561 \begin_layout Standard
17567 \begin_layout Standard
17571 \begin_layout Standard
17572 \begin_inset VSpace bigskip
17578 \begin_layout Standard
17580 \begin_inset space ~
17584 \begin_inset CommandInset ref
17586 reference "tab:Table-using-user-defined"
17590 use the LaTeX-arguments
17593 \begin_layout Standard
17599 \begin_layout Standard
17600 for the first column and the multicolumn,
17603 \begin_layout Standard
17609 \begin_layout Standard
17610 for the last column, and
17613 \begin_layout Standard
17619 \begin_layout Standard
17620 for the cells in the second column.
17623 \begin_layout Standard
17624 \begin_inset Float table
17630 \begin_layout Plain Layout
17631 \begin_inset Caption
17633 \begin_layout Plain Layout
17634 \begin_inset CommandInset label
17636 name "tab:Table-using-user-defined"
17640 Table using user-defined table formats
17648 \begin_layout Plain Layout
17650 \begin_inset Tabular
17651 <lyxtabular version="3" rows="3" columns="4">
17652 <features tabularvalignment="middle">
17653 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17654 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17655 <column alignment="center" valignment="middle" width="0">
17656 <column alignment="center" valignment="middle" width="0" special="K{red}">
17658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17661 \begin_layout Plain Layout
17662 verylongtablecellword
17667 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17670 \begin_layout Plain Layout
17671 multiple lines multicolumn
17676 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17679 \begin_layout Plain Layout
17685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17688 \begin_layout Plain Layout
17696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17699 \begin_layout Plain Layout
17705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17708 \begin_layout Plain Layout
17714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17717 \begin_layout Plain Layout
17723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17726 \begin_layout Plain Layout
17734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17737 \begin_layout Plain Layout
17743 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17746 \begin_layout Plain Layout
17752 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17755 \begin_layout Plain Layout
17761 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17764 \begin_layout Plain Layout
17783 \begin_layout Subsection
17785 \begin_inset CommandInset label
17787 name "sub:Line-Thickness"
17792 \begin_inset Index idx
17795 \begin_layout Plain Layout
17796 Table Customization ! Line Thickness
17804 \begin_layout Standard
17805 The line thickness for all lines in a table can be adjusted with the length
17813 To set for example a line thickness of 1.5
17814 \begin_inset space \thinspace{}
17818 \begin_inset space ~
17822 \begin_inset CommandInset ref
17824 reference "tab:Table-with-1.5"
17828 , insert the command
17831 \begin_layout Standard
17838 arrayrulewidth}{1.5pt}
17841 \begin_layout Standard
17842 in TeX-Code before the table or table float.
17843 The changed thickness is valid for all subsequent tables.
17844 To use the default value again, set
17851 \begin_inset space \thinspace{}
17854 pt in TeX-Code after the table or table float.
17857 \begin_layout Standard
17861 \begin_layout Plain Layout
17867 arrayrulewidth}{1.5pt}
17873 \begin_inset Float table
17878 \begin_layout Plain Layout
17879 \begin_inset Caption
17881 \begin_layout Plain Layout
17882 \begin_inset CommandInset label
17884 name "tab:Table-with-1.5"
17889 \begin_inset space \thinspace{}
17900 \begin_layout Plain Layout
17902 \begin_inset Tabular
17903 <lyxtabular version="3" rows="3" columns="3">
17904 <features tabularvalignment="middle">
17905 <column alignment="center" valignment="top" width="0">
17906 <column alignment="center" valignment="top" width="0">
17907 <column alignment="center" valignment="top" width="0">
17909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17912 \begin_layout Plain Layout
17918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17921 \begin_layout Plain Layout
17927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17930 \begin_layout Plain Layout
17938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17941 \begin_layout Plain Layout
17947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17950 \begin_layout Plain Layout
17956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17959 \begin_layout Plain Layout
17967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17970 \begin_layout Plain Layout
17976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17979 \begin_layout Plain Layout
17985 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17988 \begin_layout Plain Layout
18008 \begin_layout Plain Layout
18014 arrayrulewidth}{0.4pt}
18022 \begin_layout Standard
18023 \begin_inset VSpace bigskip
18026 To set the line thickness to 1.5
18027 \begin_inset space \thinspace{}
18030 pt only for horizontal lines, as in Table
18031 \begin_inset space ~
18035 \begin_inset CommandInset ref
18037 reference "tab:Table-with-horizontal"
18041 , insert these commands in TeX-Code before the table or table float:
18044 \begin_layout Standard
18054 \begin_inset Newline newline
18062 \begin_inset Newline newline
18071 arrayrulewidth 1.5pt}
18072 \begin_inset Newline newline
18083 arrayrulewidth 0.4pt}}
18086 \begin_layout Standard
18087 To return to the default line thickness, insert this command in TeX-Code
18088 after the table or table float:
18091 \begin_layout Standard
18103 \begin_layout Standard
18107 \begin_layout Plain Layout
18118 \begin_layout Plain Layout
18127 \begin_layout Plain Layout
18135 arrayrulewidth 1.5pt}
18138 \begin_layout Plain Layout
18148 arrayrulewidth 0.4pt}}
18154 \begin_inset Float table
18159 \begin_layout Plain Layout
18160 \begin_inset Caption
18162 \begin_layout Plain Layout
18163 \begin_inset CommandInset label
18165 name "tab:Table-with-horizontal"
18170 \begin_inset space \thinspace{}
18173 pt thick horizontal lines
18181 \begin_layout Plain Layout
18183 \begin_inset Tabular
18184 <lyxtabular version="3" rows="3" columns="3">
18185 <features tabularvalignment="middle">
18186 <column alignment="center" valignment="top" width="0">
18187 <column alignment="center" valignment="top" width="0">
18188 <column alignment="center" valignment="top" width="0">
18190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18193 \begin_layout Plain Layout
18199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18202 \begin_layout Plain Layout
18208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18211 \begin_layout Plain Layout
18219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18222 \begin_layout Plain Layout
18228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18231 \begin_layout Plain Layout
18237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18240 \begin_layout Plain Layout
18248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18251 \begin_layout Plain Layout
18257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18260 \begin_layout Plain Layout
18266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18269 \begin_layout Plain Layout
18289 \begin_layout Plain Layout
18305 \begin_layout Standard
18306 \begin_inset VSpace bigskip
18309 To set the line thickness to 1.5
18310 \begin_inset space \thinspace{}
18313 pt only for vertical lines, create the following column format in the document
18314 preamble, according to the description in section
18315 \begin_inset space ~
18319 \begin_inset CommandInset ref
18321 reference "sub:Customized-Format"
18328 \begin_layout Standard
18333 newcolumntype{V}{!{
18335 vrule width 1.5pt}}
18338 \begin_layout Standard
18340 \begin_inset space ~
18344 \begin_inset CommandInset ref
18346 reference "tab:Table-with-vertical"
18353 \begin_layout Standard
18359 \begin_layout Standard
18360 was used for the last column and
18363 \begin_layout Standard
18369 \begin_layout Standard
18370 for the other columns.
18373 \begin_layout Standard
18374 \begin_inset Float table
18379 \begin_layout Plain Layout
18380 \begin_inset Caption
18382 \begin_layout Plain Layout
18383 \begin_inset CommandInset label
18385 name "tab:Table-with-vertical"
18390 \begin_inset space \thinspace{}
18393 pt thick vertical lines
18401 \begin_layout Plain Layout
18403 \begin_inset Tabular
18404 <lyxtabular version="3" rows="3" columns="3">
18405 <features tabularvalignment="middle">
18406 <column alignment="center" valignment="top" width="0" special="Vc">
18407 <column alignment="center" valignment="top" width="0" special="Vc">
18408 <column alignment="center" valignment="top" width="0" special="VcV">
18410 <cell alignment="center" valignment="top" topline="true" usebox="none">
18413 \begin_layout Plain Layout
18419 <cell alignment="center" valignment="top" topline="true" usebox="none">
18422 \begin_layout Plain Layout
18428 <cell alignment="center" valignment="top" topline="true" usebox="none">
18431 \begin_layout Plain Layout
18439 <cell alignment="center" valignment="top" topline="true" usebox="none">
18442 \begin_layout Plain Layout
18448 <cell alignment="center" valignment="top" topline="true" usebox="none">
18451 \begin_layout Plain Layout
18457 <cell alignment="center" valignment="top" topline="true" usebox="none">
18460 \begin_layout Plain Layout
18468 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18471 \begin_layout Plain Layout
18477 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18480 \begin_layout Plain Layout
18486 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18489 \begin_layout Plain Layout
18508 \begin_layout Subsection
18510 \begin_inset Index idx
18513 \begin_layout Plain Layout
18514 Table Customization ! Dashed Lines
18522 \begin_layout Standard
18526 \begin_layout Plain Layout
18536 \begin_inset Note Note
18539 \begin_layout Plain Layout
18540 The following section will only be displayed when the LaTeX-package
18552 \begin_layout Standard
18553 \begin_inset Float table
18559 \begin_layout Plain Layout
18560 \begin_inset Caption
18562 \begin_layout Plain Layout
18563 \begin_inset CommandInset label
18565 name "tab:Table-with-dashed"
18569 Table with dashed lines
18577 \begin_layout Plain Layout
18579 \begin_inset Tabular
18580 <lyxtabular version="3" rows="5" columns="5">
18581 <features tabularvalignment="middle">
18582 <column alignment="center" valignment="top" width="0">
18583 <column alignment="center" valignment="top" width="0">
18584 <column alignment="center" valignment="top" width="0" special=":c">
18585 <column alignment="center" valignment="top" width="0">
18586 <column alignment="center" valignment="top" width="0">
18588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18591 \begin_layout Plain Layout
18597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18600 \begin_layout Plain Layout
18606 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18609 \begin_layout Plain Layout
18615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18618 \begin_layout Plain Layout
18624 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18627 \begin_layout Plain Layout
18635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18638 \begin_layout Plain Layout
18644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18647 \begin_layout Plain Layout
18653 <cell alignment="center" valignment="top" topline="true" usebox="none">
18656 \begin_layout Plain Layout
18662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18665 \begin_layout Plain Layout
18671 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18674 \begin_layout Plain Layout
18682 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18685 \begin_layout Plain Layout
18689 \begin_layout Plain Layout
18703 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18706 \begin_layout Plain Layout
18712 <cell alignment="center" valignment="top" usebox="none">
18715 \begin_layout Plain Layout
18721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18724 \begin_layout Plain Layout
18730 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18733 \begin_layout Plain Layout
18741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18744 \begin_layout Plain Layout
18748 \begin_layout Plain Layout
18762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18765 \begin_layout Plain Layout
18771 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18774 \begin_layout Plain Layout
18780 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18783 \begin_layout Plain Layout
18789 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18792 \begin_layout Plain Layout
18800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18803 \begin_layout Plain Layout
18809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18812 \begin_layout Plain Layout
18818 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18821 \begin_layout Plain Layout
18827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18830 \begin_layout Plain Layout
18836 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18839 \begin_layout Plain Layout
18858 \begin_layout Standard
18859 LyX does not natively support dashed lines, so you have to use TeX-Code.
18860 As a prerequisite the LaTeX-package
18865 \begin_inset Index idx
18868 \begin_layout Plain Layout
18869 LaTeX-packages ! arydshln
18874 must be loaded in the document preamble with the command
18877 \begin_layout Standard
18882 usepackage{arydshln}
18885 \begin_layout Standard
18886 To make a vertical line dashed, enter the colon
18887 \begin_inset Quotes eld
18891 \begin_inset Quotes erd
18894 together with the character for the horizontal alignment as LaTeX-argument
18895 in the table cell dialog.
18898 \begin_layout Standard
18899 For a horizontal dashed line add the command
18902 \begin_layout Standard
18910 \begin_layout Standard
18911 in TeX-Code as first element of the first cell in the table row.
18914 \begin_layout Standard
18915 For dashed multicolumn lines use the command
18918 \begin_layout Standard
18923 cdashline{line number
18928 \begin_layout Standard
18929 in TeX-Code as the first element of the first cell in the table row.
18930 If you have for example a multicolumn spanning columns 2 to 4 and you want
18931 to have a dashed line above, add the command
18934 \begin_layout Standard
18942 \begin_layout Standard
18943 as the first element of the first cell in the row of the multicolumn.
18946 \begin_layout Standard
18947 \begin_inset VSpace bigskip
18953 \begin_layout Standard
18955 \begin_inset space ~
18959 \begin_inset CommandInset ref
18961 reference "tab:Table-with-dashed"
18966 \begin_inset Quotes eld
18974 \begin_inset Quotes erd
18977 as LaTeX-argument of the third column.
18978 The TeX-Code command
18984 was inserted in the first cell of the third row and the TeX-Code command
18985 \begin_inset Newline newline
18994 was inserted in the first cell of the fourth row.
18997 \begin_layout Standard
18998 \begin_inset Note Greyedout
19001 \begin_layout Plain Layout
19010 is apparently not compatible with the LaTeX-package
19015 \begin_inset Index idx
19018 \begin_layout Plain Layout
19019 LaTeX-packages ! colortbl
19024 that is used for colored tables in section
19025 \begin_inset space ~
19029 \begin_inset CommandInset ref
19031 reference "sec:Colored-Tables"
19036 That means colored tables cannot have dashed lines.
19044 \begin_layout Standard
19048 \begin_layout Plain Layout
19058 \begin_inset Note Note
19061 \begin_layout Plain Layout
19062 The following will be displayed when the LaTeX-package
19074 \begin_layout Standard
19075 You need to install the package
19079 to see the content of this section in the output.
19082 \begin_layout Standard
19086 \begin_layout Plain Layout
19098 \begin_layout Chapter
19100 \begin_inset Index idx
19103 \begin_layout Plain Layout
19112 \begin_layout Section
19114 \begin_inset CommandInset label
19116 name "sec:FloatIntroduction"
19121 \begin_inset Index idx
19124 \begin_layout Plain Layout
19125 Floats ! Introduction
19133 \begin_layout Standard
19134 A float is a block of text associated with some sort of label, which doesn't
19135 have a fixed location.
19137 \begin_inset Quotes eld
19141 \begin_inset Quotes erd
19144 forward or backward a page or two, to wherever it fits best.
19152 \begin_inset space ~
19157 are also floats, because they can float to the next page when there are
19158 too many notes on the page.
19161 \begin_layout Standard
19162 Floats allow a high quality layout.
19163 Images and tables can be spread evenly to the pages to avoid white space
19164 and pages without text.
19165 As the floating often destroys the context between the text and the image/table
19166 , every float can be referenced in the text.
19167 Floats are therefore numbered.
19168 Referencing is described in section
19169 \begin_inset space ~
19173 \begin_inset CommandInset ref
19175 reference "sec:Referencing-Floats"
19182 \begin_layout Standard
19183 To insert a float, use the menu
19185 Insert\SpecialChar \menuseparator
19193 inset, a box with a label.
19194 The label will automatically be translated to the document language in
19196 After the label you can insert the caption text.
19197 The image or table is inserted above or below the caption in a separate
19198 paragraph within the float.
19199 More about the caption placement is contained in section
19200 \begin_inset space ~
19204 \begin_inset CommandInset ref
19206 reference "sec:Caption-Placement"
19211 To keep your LyX-document readable, you can open and close the float box
19212 by left-clicking on the box label.
19213 A closed float box looks like this:
19214 \begin_inset Graphics
19215 filename clipart/floatQt4.png
19217 scaleBeforeRotation
19221 – a gray button with a red label.
19224 \begin_layout Standard
19225 It is recommended that you insert floats as a separate standard paragraph
19226 to avoid possible LaTeX-errors that can occur when the surrounding text
19227 is specially formatted.
19230 \begin_layout Standard
19231 Existing figures or tables can be put into a float by highlighting them
19232 and then pressing the corresponding toolbar button for a new float.
19235 \begin_layout Section
19239 \begin_layout Standard
19240 Besides figure and table floats that are described in sections
19241 \begin_inset space ~
19245 \begin_inset CommandInset ref
19247 reference "sec:Figure-Floats"
19252 \begin_inset CommandInset ref
19254 reference "sec:Table-Floats"
19258 respectively, LyX offers the float types
19269 \begin_layout Subsection
19271 \begin_inset Index idx
19274 \begin_layout Plain Layout
19275 Floats ! Algorithms
19283 \begin_layout Standard
19284 \begin_inset Float algorithm
19290 \begin_layout Plain Layout
19291 \begin_inset Caption
19293 \begin_layout Plain Layout
19294 \begin_inset CommandInset label
19296 name "alg:Example-Algorithm-float"
19300 Example Algorithm float
19308 \begin_layout LyX-Code
19310 \begin_inset Newline newline
19313 Sum:= Sum + A(I); /*comment*/
19314 \begin_inset Newline newline
19318 \begin_inset VSpace -4mm
19329 \begin_layout Standard
19330 This float type is inserted with the menu
19332 Insert\SpecialChar \menuseparator
19333 Floats\SpecialChar \menuseparator
19337 It is used for program codes and descriptions of algorithms and can be
19338 seen as an alternative to program code listings that are explained in chapter
19339 \begin_inset space ~
19343 \begin_inset CommandInset ref
19345 reference "cha:Program-Code-Listings"
19350 A possible environment for algorithms is the
19354 , described in LyX's
19360 \begin_inset space ~
19364 \begin_inset CommandInset ref
19366 reference "alg:Example-Algorithm-float"
19370 is an example of an algorithm float where -4
19371 \begin_inset space \thinspace{}
19374 mm vertical space was added at the end of the float to have the bottom rule
19375 exactly below the last text line.
19378 \begin_layout Standard
19379 The float label is not automatically translated into the document language.
19380 If your document is not in English, you have to do this manually by adding
19381 the following line to the document preamble
19386 \begin_layout Standard
19391 floatname{algorithm}{your
19392 \begin_inset space ~
19398 \begin_layout Standard
19402 \begin_inset space ~
19408 \begin_inset Quotes eld
19416 \begin_inset Quotes erd
19422 \begin_layout Standard
19423 To insert the list of algorithms you can use the menu
19425 Insert\SpecialChar \menuseparator
19427 \begin_inset space \thinspace{}
19431 \begin_inset space \thinspace{}
19434 TOC\SpecialChar \menuseparator
19437 when your document has the same language as LyX's menu names.
19438 In other cases use this command in TeX-Code instead:
19441 \begin_layout Standard
19446 listof{algorithm}{your
19447 \begin_inset space ~
19453 \begin_layout Standard
19457 \begin_inset space ~
19463 \begin_inset Quotes eld
19471 \begin_inset Quotes erd
19477 \begin_layout Standard
19478 Algorithm floats are not by default numbered in the scheme
19479 \begin_inset Quotes eld
19483 \begin_inset Quotes erd
19486 as is the case for table and figure floats in many document-classes.
19487 To number algorithm floats in the same scheme, add this command to your
19491 \begin_layout Standard
19496 numberwithin{algorithm}{chapter}
19499 \begin_layout Standard
19500 To be able to use the command
19509 \begin_inset space ~
19514 in the document settings the option
19517 \begin_inset space ~
19521 \begin_inset space ~
19525 \begin_inset space ~
19533 \begin_layout Subsection
19535 \begin_inset Index idx
19538 \begin_layout Plain Layout
19539 Floats ! Wrap Floats
19547 \begin_layout Standard
19548 \begin_inset Wrap figure
19555 \begin_layout Plain Layout
19556 \begin_inset Graphics
19557 filename clipart/mobius.eps
19559 scaleBeforeRotation
19560 rotateOrigin center
19567 \begin_layout Plain Layout
19568 \begin_inset Caption
19570 \begin_layout Plain Layout
19571 \begin_inset CommandInset label
19573 name "fig:This-is-a"
19577 This is a figure wrap float.
19587 This float type is used if you want to wrap text around a figure or table
19588 so that it only occupies some fraction of the column width.
19589 It can be inserted using the menu
19591 Insert\SpecialChar \menuseparator
19592 Floats\SpecialChar \menuseparator
19594 \begin_inset space ~
19598 \begin_inset space ~
19606 \begin_inset space ~
19610 \begin_inset space ~
19615 if the LaTeX-package
19620 \begin_inset Index idx
19623 \begin_layout Plain Layout
19624 LaTeX-packages ! wrapfig
19628 \begin_layout Plain Layout
19646 \begin_layout Plain Layout
19647 Installing a LaTeX-package is explained it in the
19650 \begin_inset space ~
19660 The settings of the float can be modified by right-clicking on the float
19662 The mandatory settings are the float
19675 that specifies how much the float is set into the paragraph
19676 \begin_inset space \thinspace{}
19680 \begin_inset space \thinspace{}
19683 page margin, and the
19686 \begin_inset space ~
19691 that specifies how many text lines the float will approximately need.
19692 The line span is often hard to approximate; so it is better only to use
19693 it when you encounter float placement problems.
19694 You can furthermore decide if LaTeX is allowed to let the float float within
19695 the paragraph or to surrounding paragraphs.
19697 \begin_inset space ~
19701 \begin_inset CommandInset ref
19703 reference "fig:This-is-a"
19707 is an example text wrap float with a width of 40
19708 \begin_inset space \thinspace{}
19712 \begin_inset space \thinspace{}
19715 cm overhang, set to the left.
19719 \begin_layout Plain Layout
19720 Available units are explained in appendix
19721 \begin_inset space ~
19725 \begin_inset CommandInset ref
19727 reference "cha:Units-available-in"
19739 \begin_layout Standard
19740 \begin_inset Note Greyedout
19743 \begin_layout Plain Layout
19749 \begin_inset space ~
19752 wrap float floats are fragile! E.
19753 \begin_inset space \thinspace{}
19757 \begin_inset space \space{}
19760 having a figure too close to the bottom of the page can mess things up in
19761 such a way that the float does not appear in the output or that it is placed
19762 over some other text.
19770 \begin_layout Standard
19774 \begin_layout Itemize
19775 Wrap floats should not be placed in paragraphs that run over a page break.
19776 That means that wrap floats are better inserted in their exact place when
19777 the document is almost finished and you are able to estimate where page
19778 breaks will appear.
19781 \begin_layout Itemize
19782 Wrap floats should either be placed in their own paragraph before the paragraph
19783 where they should wrap into or within a paragraph.
19786 \begin_layout Itemize
19787 Wrap floats in consecutive paragraphs may cause troubles, so ensure that
19788 there is a text paragraph between them as separator.
19791 \begin_layout Itemize
19792 Wrap floats are not allowed in section headings or tables.
19795 \begin_layout Section
19797 \begin_inset Index idx
19800 \begin_layout Plain Layout
19809 \begin_layout Standard
19810 Floats are usually numbered either independently from the sections the floats
19811 are in, or in the scheme
19812 \begin_inset Quotes eld
19816 \begin_inset Quotes erd
19820 \begin_inset Quotes eld
19824 \begin_inset Quotes erd
19828 This depends on the document class used.
19831 \begin_layout Standard
19832 To change section-independent numbering, you can use this command in the
19836 \begin_layout Standard
19848 \begin_layout Standard
19855 is the command that prints the table number, for figure floats, the command
19869 in the command above prints the table number as small roman number.
19872 \begin_layout Standard
19873 To change the numbering scheme for example to
19874 \begin_inset Quotes eld
19878 \begin_inset Quotes erd
19881 , use this command in the preamble:
19884 \begin_layout Standard
19889 numberwithin{table}{subsection}
19892 \begin_layout Standard
19893 To be able to use the command
19902 \begin_inset space ~
19907 in the document settings the option
19910 \begin_inset space ~
19914 \begin_inset space ~
19918 \begin_inset space ~
19926 \begin_layout Standard
19927 Please also have a look at section
19928 \begin_inset space ~
19932 \begin_inset CommandInset ref
19934 reference "sub:Footnote-Numbering"
19938 for the details and important notes about the numbering commands.
19941 \begin_layout Section
19943 \begin_inset CommandInset label
19945 name "sec:Referencing-Floats"
19950 \begin_inset Index idx
19953 \begin_layout Plain Layout
19954 Floats ! References
19960 \begin_inset Index idx
19963 \begin_layout Plain Layout
19964 References ! to Floats
19972 \begin_layout Standard
19973 To reference a float, insert a label into its caption using the menu
19975 Insert\SpecialChar \menuseparator
19978 or the toolbar button
19979 \begin_inset Graphics
19980 filename ../images/label-insert.png
19982 scaleBeforeRotation
19987 A grey label box like this one:
19988 \begin_inset Graphics
19989 filename clipart/labelQt4.png
19991 scaleBeforeRotation
19995 will be inserted and the label window pops up asking for the label text.
19996 LyX offers as text the first words of the caption with a prefix.
19997 The prefix depends on the float type, e.
19998 \begin_inset space \thinspace{}
20002 \begin_inset space \space{}
20005 for figure floats the prefix will be "
20012 \begin_layout Standard
20013 The label is used as anchor and name for the reference.
20014 You can refer to the label using the menu
20016 Insert\SpecialChar \menuseparator
20019 or the toolbar button
20020 \begin_inset Graphics
20021 filename ../images/dialog-show-new-inset_ref.png
20023 scaleBeforeRotation
20028 A grey cross-reference box like this one:
20029 \begin_inset Graphics
20030 filename clipart/referenceQt4.png
20032 scaleBeforeRotation
20036 will be inserted and the cross-reference window appear showing all labels
20038 If you have multiple LyX-documents opened, choose the one you are working
20039 on from the drop-list at the top of the dialog.
20040 You can now sort the labels alphabetically and then choose one.
20041 At the position of the cross-reference box the float number will appear
20045 \begin_layout Standard
20046 It is recommended that you use a protected space between the cross-reference
20047 name and its number to avoid line breaks between them.
20048 If a cross-reference refers to a non-existing label, you will see two question
20049 marks in the output instead of the reference.
20052 \begin_layout Standard
20053 You can change labels at any time by clicking on the label box.
20054 References to the changed label will automatically change its link to the
20055 new label text, so that you don't need to take care about this.
20058 \begin_layout Standard
20062 \begin_inset space ~
20066 \begin_inset space ~
20071 in the cross-reference window sets the cursor before the referred label.
20072 The button text changes then to Go
20073 \begin_inset space ~
20076 Back and you can use it to set the cursor back to the cross-reference.
20077 Right-clicking on a cross-reference box also sets the cursor before the
20078 referenced label but without the possibility of going back.
20081 \begin_layout Subsection
20082 Cross-Reference Formats
20083 \begin_inset CommandInset label
20085 name "sub:Cross-Reference-Formats"
20090 \begin_inset Index idx
20093 \begin_layout Plain Layout
20094 References ! Formats
20102 \begin_layout Standard
20103 There are six varieties of cross-references:
20106 \begin_layout Description
20107 <reference>: prints the float number, this is the default:
20108 \begin_inset CommandInset ref
20110 reference "fig:Two-distorted-images"
20117 \begin_layout Description
20118 (<reference>): prints the float number within two parentheses, this is the
20119 style normally used to reference formulas, especially when the reference
20121 \begin_inset Quotes eld
20125 \begin_inset Quotes erd
20129 \begin_inset CommandInset ref
20138 \begin_layout Description
20139 <page>: prints the page number: Page
20140 \begin_inset space ~
20144 \begin_inset CommandInset ref
20145 LatexCommand pageref
20146 reference "fig:Two-distorted-images"
20153 \begin_layout Description
20155 \begin_inset space ~
20159 \begin_inset space ~
20162 <page>: prints the text "on page" and the page number:
20163 \begin_inset CommandInset ref
20164 LatexCommand vpageref
20165 reference "fig:Two-distorted-images"
20172 \begin_layout Description
20174 \begin_inset space ~
20178 \begin_inset space ~
20182 \begin_inset space ~
20185 <page>: prints the float number, the text "on page", and the page number:
20187 \begin_inset CommandInset ref
20189 reference "fig:Two-distorted-images"
20196 \begin_layout Description
20198 \begin_inset space ~
20201 reference: prints a self-defined cross-reference format.
20202 \begin_inset Newline newline
20206 \begin_inset Note Greyedout
20209 \begin_layout Plain Layout
20214 This feature is only available when you have the LaTeX-package
20223 \begin_inset Index idx
20226 \begin_layout Plain Layout
20227 LaTeX-packages ! prettyref
20233 \begin_inset Index idx
20236 \begin_layout Plain Layout
20237 LaTeX-packages ! refstyle
20248 \begin_inset Newline newline
20251 You can select which LaTeX-package should be used for this feature by setting
20254 Use refstyle (not prettyref) for cross-references
20258 Document\SpecialChar \menuseparator
20259 Settings\SpecialChar \menuseparator
20263 The format is specified by adding the command
20275 (refstyle) to the preamble of the document.
20276 For example redefining all references to figures (which have the label
20278 \begin_inset Quotes eld
20286 \begin_inset Quotes erd
20289 ) can be done with this command
20290 \begin_inset Newline newline
20297 newref{fig}{refcmd={Image on page
20302 \begin_inset Newline newline
20305 For more information about the format, have a look at the package documentations
20307 \begin_inset CommandInset citation
20309 key "prettyref,refstyle"
20316 \begin_layout Description
20318 \begin_inset space ~
20321 reference: prints the caption of the reference:
20322 \begin_inset CommandInset ref
20323 LatexCommand nameref
20324 reference "fig:Two-distorted-images"
20331 \begin_layout Standard
20336 will not print the page number if the label is on the previous, the same,
20339 \begin_inset space \thinspace{}
20343 \begin_inset space \space{}
20347 \begin_inset Quotes eld
20355 \begin_inset Quotes erd
20361 <reference> on page <page>
20363 will not print anything about the page if the label is on the same page.
20366 \begin_layout Standard
20367 The number and current page of the part of the document referred to in the
20368 output is automatically calculated by LaTeX.
20369 The varieties are adjusted in the field
20373 of the cross-reference window that appears when you click on the cross-referenc
20377 \begin_layout Standard
20378 \begin_inset Note Greyedout
20381 \begin_layout Plain Layout
20386 It is recommended to use the LaTeX-package
20391 \begin_inset Index idx
20394 \begin_layout Plain Layout
20395 LaTeX-packages ! refstyle
20405 \begin_inset Index idx
20408 \begin_layout Plain Layout
20409 LaTeX-packages ! prettyref
20414 does not know all of LyX's possible label shortcuts
20418 \begin_layout Plain Layout
20419 \begin_inset Quotes eld
20423 \begin_inset Quotes erd
20426 is for example LyX's shortcut for labels in figure captions.
20431 and is not internationalized.
20439 \begin_layout Standard
20440 \begin_inset Note Greyedout
20443 \begin_layout Plain Layout
20448 Due to a bug in the LaTeX-package
20452 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20453 languages that make the period character active (like French).
20454 For a workaround, see
20455 \begin_inset Newline newline
20459 \begin_inset CommandInset href
20461 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20473 \begin_layout Subsection
20474 Automatic Reference Naming
20475 \begin_inset Index idx
20478 \begin_layout Plain Layout
20479 References ! Automatic Reference Naming
20487 \begin_layout Standard
20493 \begin_inset Index idx
20496 \begin_layout Plain Layout
20497 LaTeX-packages ! hyperref
20502 , that is enabled in the
20510 dialog, provides a very useful feature that cross-references automatically
20511 include the name of the referenced floats (or text parts like
20516 So you will save having to write e.
20517 \begin_inset space \thinspace{}
20521 \begin_inset space \space{}
20525 \begin_inset Quotes eld
20529 \begin_inset Quotes erd
20532 before every reference to a figure.
20533 To use this feature, enable
20537 and insert this line to the LaTeX preamble:
20540 \begin_layout Standard
20556 \begin_layout Standard
20557 When you prefer other reference names than the default ones, for example
20558 you want instead of
20559 \begin_inset Quotes eld
20563 \begin_inset Quotes erd
20567 \begin_inset Quotes eld
20571 \begin_inset space \thinspace{}
20575 \begin_inset Quotes eld
20578 , you can redefine the name by inserting this in the preamble:
20581 \begin_layout Standard
20592 sectionautorefname}
20593 \begin_inset Newline newline
20597 \begin_inset Phantom HPhantom
20600 \begin_layout Plain Layout
20603 \begin_inset space ~
20616 \begin_layout Standard
20617 When you are using another document language than English, replace
20618 \begin_inset Newline newline
20633 , where *** is the name of the language used.
20636 \begin_layout Standard
20637 To get automatic names, but not for certain reference types, for example
20638 not for equations, use this preamble code:
20641 \begin_layout Standard
20649 \begin_inset Newline newline
20659 \begin_inset Newline newline
20670 equationautorefname}
20671 \begin_inset Newline newline
20675 \begin_inset Phantom HPhantom
20678 \begin_layout Plain Layout
20681 \begin_inset space ~
20696 \begin_layout Standard
20697 More about this topic can be found in
20702 \begin_inset CommandInset citation
20711 \begin_layout Standard
20712 \begin_inset Note Greyedout
20715 \begin_layout Plain Layout
20720 Automatic reference naming cannot be used when you use cross-references
20724 \begin_inset space ~
20729 style, as described in section
20730 \begin_inset space ~
20734 \begin_inset CommandInset ref
20736 reference "sub:Cross-Reference-Formats"
20748 \begin_layout Standard
20753 manual is an example where automatic reference naming is used.
20756 \begin_layout Subsection
20758 \begin_inset CommandInset label
20760 name "sub:Reference-Position"
20765 \begin_inset Index idx
20768 \begin_layout Plain Layout
20769 References ! Reference Position
20777 \begin_layout Standard
20783 \begin_inset Index idx
20786 \begin_layout Plain Layout
20787 LaTeX-packages ! hyperref
20800 dialog to link cross-references in the output, you will see that clicking
20801 on an image float reference jumps to the image label.
20802 The caption will be the first text part on the screen, so that you cannot
20803 see the image without scrolling.
20804 This is because the reference link anchor is placed at the position of
20806 With the use of the package
20811 \begin_inset Index idx
20814 \begin_layout Plain Layout
20815 LaTeX-packages ! hypcap
20820 , which is part of the LaTeX-package
20825 \begin_inset Index idx
20828 \begin_layout Plain Layout
20829 LaTeX-packages ! oberdiek
20834 , the link anchor is placed at the beginning of a float.
20835 To use this feature for figure floats, load
20839 in the document preamble with the line
20842 \begin_layout Standard
20847 usepackage[figure]{hypcap}
20850 \begin_layout Standard
20855 for all float types but this is not recommended for stability reasons.
20856 For more information, have a look at
20861 \begin_inset CommandInset citation
20870 \begin_layout Standard
20871 \begin_inset Note Greyedout
20874 \begin_layout Plain Layout
20883 has no effect on references to subfigures.
20891 \begin_layout Section
20893 \begin_inset CommandInset label
20895 name "sec:Float-Placement"
20900 \begin_inset Index idx
20903 \begin_layout Plain Layout
20912 \begin_layout Standard
20913 Right-clicking on a float-box opens a dialog where you can alter the placement
20914 options that LaTeX uses for positioning the float.
20915 \begin_inset Newline newline
20921 \begin_inset space ~
20926 is only useful for two-column documents: If you select it, the float will
20927 span both columns on the page instead of being confined to just one.
20928 \begin_inset Newline newline
20934 \begin_inset space ~
20939 is used to rotate floats, see section
20940 \begin_inset CommandInset ref
20942 reference "sec:Rotated-Floats"
20949 \begin_layout Standard
20950 You can use one ore more of the following options in the float dialog to
20951 set the placement for a particular float when you uncheck the option
20954 \begin_inset space ~
20958 \begin_inset space ~
20966 \begin_layout Description
20968 \begin_inset space ~
20972 \begin_inset space ~
20975 possible try to place the float on the position where it has been inserted
20978 \begin_layout Description
20980 \begin_inset space ~
20984 \begin_inset space ~
20987 page try to place the float at the top of the current page
20990 \begin_layout Description
20992 \begin_inset space ~
20996 \begin_inset space ~
20999 page try to place the float at the bottom of the current page
21002 \begin_layout Description
21004 \begin_inset space ~
21008 \begin_inset space ~
21011 floats try to place the float on its own page
21014 \begin_layout Standard
21015 The order of the above option is
21020 That means, if you use the default placement, LaTeX will first try out
21024 \begin_inset space ~
21028 \begin_inset space ~
21036 \begin_inset space ~
21040 \begin_inset space ~
21045 , and then the others.
21046 If you do not use the default, LaTeX will try only the checked options
21047 but in the same order.
21049 \begin_inset space ~
21052 placements are possible the procedure is internally repeated but it is tried
21053 to put the float on the following page.
21056 \begin_layout Standard
21057 By default, each option has its own rules:
21060 \begin_layout Labeling
21061 \labelwidthstring 00.00.0000
21065 \begin_inset space ~
21069 \begin_inset space ~
21074 only floats occupying less than 70
21075 \begin_inset space \thinspace{}
21078 % of the page can be placed at the top of a page (
21087 \begin_layout Labeling
21088 \labelwidthstring 00.00.0000
21092 \begin_inset space ~
21096 \begin_inset space ~
21101 : only floats occupying less than 30
21102 \begin_inset space \thinspace{}
21105 % of the page can be placed at the bottom of a page.
21115 \begin_layout Labeling
21116 \labelwidthstring 00.00.0000
21120 \begin_inset space ~
21124 \begin_inset space ~
21129 : only if more than 50
21130 \begin_inset space \thinspace{}
21133 % of the page are occupied by floats, several floats can be set together
21144 \begin_layout Standard
21145 If you don't like these rules, you can ignore them by using the additional
21149 \begin_inset space ~
21153 \begin_inset space ~
21159 \begin_inset Newline newline
21162 You can also redefine the rules with LaTeX-commands that are given in parenthese
21163 s after the rules description above.
21164 To increase for example the often too small default of the bottom-rule
21166 \begin_inset space \thinspace{}
21169 % of the page, add this line to your document preamble:
21172 \begin_layout Standard
21179 bottomfraction}{0.5}
21182 \begin_layout Standard
21183 Sometimes you might need, under all circumstances, a float to be placed
21184 exactly at the position where it is inserted.
21185 For this case you can use the option
21188 \begin_inset space ~
21194 Use this option very rarely and only if the document is almost ready to
21195 be printed, because the float is then no longer able to
21196 \begin_inset Quotes eld
21200 \begin_inset Quotes erd
21203 when you change your document and this will often destroy the page layout.
21206 \begin_layout Standard
21207 There are no placement options for text wrap floats, because they are always
21208 surrounded by the text of a certain paragraph.
21209 \begin_inset VSpace bigskip
21215 \begin_layout Standard
21216 Sometimes you have the problem that a float is placed at the top of a page
21217 while its corresponding section starts at the middle of the page, so that
21218 the reader could think the float is part of the previous section.
21219 To avoid this the LaTeX-command
21226 It suppresses a given float placement for the page where it is inserted
21227 and can therefore be used to avoid floats being set before a section starts.
21228 To get this, add these commands to your document preamble:
21231 \begin_layout Standard
21241 \begin_inset Newline newline
21255 \begin_layout Standard
21256 You can define the same for all section headings, like chapters and subsections.
21257 This definition is not recommended to be used for small text parts like
21258 subsubsections because LaTeX may then have problems finding a suitable
21262 \begin_layout Standard
21263 \begin_inset VSpace bigskip
21266 In some cases it is required to have all figures/tables at the end of the
21268 For this purpose the LaTeX-package
21273 \begin_inset Index idx
21276 \begin_layout Plain Layout
21277 LaTeX-packages ! endfloat
21283 It puts all figure and table floats at the end of the document into their
21285 At the original float position a text hint like
21286 \begin_inset Quotes eld
21292 \begin_inset space ~
21298 \begin_inset Quotes erd
21302 The endfloat-package is loaded in the preamble with the line
21305 \begin_layout Standard
21310 usepackage[options]{endfloat}
21313 \begin_layout Standard
21314 There are various package options to format the created figure/table sections.
21315 For more information we refer to the
21320 \begin_inset CommandInset citation
21327 \begin_inset Newline newline
21331 \begin_inset Note Greyedout
21334 \begin_layout Plain Layout
21339 doesn't provide an automatic translation for the text hint, you have to
21340 do this manually, see section
21341 \begin_inset space ~
21345 \begin_inset CommandInset citation
21357 \begin_inset Newline newline
21361 \begin_inset Note Greyedout
21364 \begin_layout Plain Layout
21369 There is currently a bug in
21373 when the caption contains a German
21374 \begin_inset Quotes eld
21378 \begin_inset Quotes erd
21382 Use in this case the command
21383 \begin_inset Quotes eld
21393 \begin_inset Quotes erd
21396 in TeX-Code instead of
21397 \begin_inset Quotes eld
21401 \begin_inset Quotes erd
21412 \begin_layout Standard
21413 \begin_inset VSpace bigskip
21416 For more details about float placements, have a look at LaTeX books,
21417 \begin_inset CommandInset citation
21419 key "latexcompanion,latexguide,latexbook"
21426 \begin_layout Section
21428 \begin_inset CommandInset label
21430 name "sec:Rotated-Floats"
21435 \begin_inset Index idx
21438 \begin_layout Plain Layout
21447 \begin_layout Standard
21448 Especially for wide tables you might have floats rotated.
21449 To rotate a whole float including the caption, right-click on the float-box
21453 \begin_inset space ~
21461 \begin_layout Standard
21462 Rotated floats are always placed on a page of their own (or column of their
21463 own; in case you have a multi-column document).
21464 You can let them span several columns using the float settings option
21467 \begin_inset space ~
21473 Floats are rotated so that you can read them from the outside margin.
21474 To force a certain rotation direction for all pages, you can add either
21483 to the document class options.
21486 \begin_layout Standard
21487 Referencing rotated floats is the same as for normal floats, the caption
21488 format is also the same: Table
21489 \begin_inset space ~
21493 \begin_inset CommandInset ref
21495 reference "tab:Rotated-table"
21499 is an example of a rotated table float.
21502 \begin_layout Standard
21503 \begin_inset Note Greyedout
21506 \begin_layout Plain Layout
21511 Not all DVI-viewers are able to display rotated floats.
21519 \begin_layout Standard
21520 \begin_inset Float table
21525 \begin_layout Plain Layout
21526 \begin_inset Caption
21528 \begin_layout Plain Layout
21529 \begin_inset CommandInset label
21531 name "tab:Rotated-table"
21543 \begin_layout Plain Layout
21545 \begin_inset Tabular
21546 <lyxtabular version="3" rows="1" columns="5">
21547 <features tabularvalignment="middle">
21548 <column alignment="center" valignment="top" width="0">
21549 <column alignment="center" valignment="top" width="0">
21550 <column alignment="center" valignment="top" width="0">
21551 <column alignment="center" valignment="top" width="0">
21552 <column alignment="center" valignment="top" width="0">
21554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21557 \begin_layout Plain Layout
21563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21566 \begin_layout Plain Layout
21572 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21575 \begin_layout Plain Layout
21581 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21584 \begin_layout Plain Layout
21590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21593 \begin_layout Plain Layout
21612 \begin_layout Section
21614 \begin_inset Index idx
21617 \begin_layout Plain Layout
21626 \begin_layout Standard
21627 Subfloats are for example used when a figure consists of several images.
21628 They are created by inserting a float into an existing float.
21629 The placement of the subfloats can be controlled in the same way as for
21630 paragraphs as shown in table
21631 \begin_inset space ~
21635 \begin_inset CommandInset ref
21637 reference "tab:Two-subtables-side"
21642 \begin_inset CommandInset ref
21644 reference "tab:Two-subtables-upon"
21651 \begin_layout Standard
21652 Referencing subfloats works as for normal floats: Table
21653 \begin_inset space ~
21657 \begin_inset CommandInset ref
21659 reference "tab:This-is-subtable-a"
21664 \begin_inset CommandInset ref
21666 reference "tab:This-is-subtable-b"
21670 are subtables of table
21671 \begin_inset space ~
21675 \begin_inset CommandInset ref
21677 reference "tab:Two-subtables-side"
21684 \begin_layout Standard
21685 \begin_inset Float table
21690 \begin_layout Plain Layout
21691 \begin_inset Caption
21693 \begin_layout Plain Layout
21694 \begin_inset CommandInset label
21696 name "tab:Two-subtables-side"
21700 Two subtables placed side by side.
21708 \begin_layout Plain Layout
21710 \begin_inset space \hfill{}
21714 \begin_inset Float table
21719 \begin_layout Plain Layout
21720 \begin_inset Caption
21722 \begin_layout Plain Layout
21723 \begin_inset CommandInset label
21725 name "tab:This-is-subtable-a"
21729 This is subtable a.
21737 \begin_layout Plain Layout
21739 \begin_inset Tabular
21740 <lyxtabular version="3" rows="1" columns="5">
21741 <features tabularvalignment="middle">
21742 <column alignment="center" valignment="top" width="0">
21743 <column alignment="center" valignment="top" width="0">
21744 <column alignment="center" valignment="top" width="0">
21745 <column alignment="center" valignment="top" width="0">
21746 <column alignment="center" valignment="top" width="0">
21748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21751 \begin_layout Plain Layout
21757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21760 \begin_layout Plain Layout
21766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21769 \begin_layout Plain Layout
21775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21778 \begin_layout Plain Layout
21784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21787 \begin_layout Plain Layout
21804 \begin_inset space \hfill{}
21808 \begin_inset Float table
21813 \begin_layout Plain Layout
21814 \begin_inset Caption
21816 \begin_layout Plain Layout
21817 \begin_inset CommandInset label
21819 name "tab:This-is-subtable-b"
21823 This is subtable b.
21831 \begin_layout Plain Layout
21833 \begin_inset Tabular
21834 <lyxtabular version="3" rows="1" columns="5">
21835 <features tabularvalignment="middle">
21836 <column alignment="center" valignment="top" width="0">
21837 <column alignment="center" valignment="top" width="0">
21838 <column alignment="center" valignment="top" width="0">
21839 <column alignment="center" valignment="top" width="0">
21840 <column alignment="center" valignment="top" width="0">
21842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21845 \begin_layout Plain Layout
21851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21854 \begin_layout Plain Layout
21860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21863 \begin_layout Plain Layout
21869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21872 \begin_layout Plain Layout
21878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21881 \begin_layout Plain Layout
21898 \begin_inset space \hfill{}
21909 \begin_layout Standard
21910 \begin_inset Float table
21915 \begin_layout Plain Layout
21916 \begin_inset Caption
21918 \begin_layout Plain Layout
21919 \begin_inset CommandInset label
21921 name "tab:Two-subtables-upon"
21925 Two subtables placed one above the other.
21926 (a) table with 4 cells, (b) table with 5 cells.
21934 \begin_layout Plain Layout
21936 \begin_inset Float table
21941 \begin_layout Plain Layout
21942 \begin_inset Caption
21944 \begin_layout Plain Layout
21953 \begin_layout Plain Layout
21955 \begin_inset Tabular
21956 <lyxtabular version="3" rows="1" columns="4">
21957 <features tabularvalignment="middle">
21958 <column alignment="center" valignment="top" width="0">
21959 <column alignment="center" valignment="top" width="0">
21960 <column alignment="center" valignment="top" width="0">
21961 <column alignment="center" valignment="top" width="0">
21963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21966 \begin_layout Plain Layout
21972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21975 \begin_layout Plain Layout
21981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21984 \begin_layout Plain Layout
21990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21993 \begin_layout Plain Layout
22012 \begin_layout Plain Layout
22014 \begin_inset Float table
22019 \begin_layout Plain Layout
22020 \begin_inset Caption
22022 \begin_layout Plain Layout
22031 \begin_layout Plain Layout
22033 \begin_inset Tabular
22034 <lyxtabular version="3" rows="1" columns="5">
22035 <features tabularvalignment="middle">
22036 <column alignment="center" valignment="top" width="0">
22037 <column alignment="center" valignment="top" width="0">
22038 <column alignment="center" valignment="top" width="0">
22039 <column alignment="center" valignment="top" width="0">
22040 <column alignment="center" valignment="top" width="0">
22042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22045 \begin_layout Plain Layout
22051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22054 \begin_layout Plain Layout
22060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22063 \begin_layout Plain Layout
22069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22072 \begin_layout Plain Layout
22078 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22081 \begin_layout Plain Layout
22105 \begin_layout Section
22106 Floats Side by Side
22107 \begin_inset Index idx
22110 \begin_layout Plain Layout
22111 Floats ! Side by side
22119 \begin_layout Standard
22120 To place floats side by side, as in Figures
22121 \begin_inset space ~
22125 \begin_inset CommandInset ref
22127 reference "fig:Float-left"
22132 \begin_inset CommandInset ref
22134 reference "fig:Float-right"
22143 In it two minipage boxes are inserted.
22147 \begin_layout Plain Layout
22148 Minipages are explained in section
22149 \begin_inset space ~
22153 \begin_inset CommandInset ref
22155 reference "sec:Minipages"
22164 The width is set to 45
22165 \begin_inset space \thinspace{}
22169 \begin_inset space \thinspace{}
22172 column% and the box alignment to
22177 The minipage boxes contain the image and the caption in the same way as
22178 they are in a float.
22179 The only difference is that the image unit
22182 \begin_inset space ~
22186 \begin_inset space ~
22191 is now calculated according to the width of the minipage boxes.
22194 \begin_layout Standard
22195 \begin_inset Float figure
22200 \begin_layout Plain Layout
22201 \begin_inset Box Frameless
22211 height_special "totalheight"
22214 \begin_layout Plain Layout
22216 \begin_inset Graphics
22217 filename clipart/mobius.eps
22220 scaleBeforeRotation
22227 \begin_layout Plain Layout
22228 \begin_inset Caption
22230 \begin_layout Plain Layout
22231 \begin_inset CommandInset label
22233 name "fig:Float-left"
22237 Float on the left side.
22248 \begin_inset space \hfill{}
22252 \begin_inset Box Frameless
22262 height_special "totalheight"
22265 \begin_layout Plain Layout
22267 \begin_inset Graphics
22268 filename clipart/platypus.eps
22271 scaleBeforeRotation
22278 \begin_layout Plain Layout
22279 \begin_inset Caption
22281 \begin_layout Plain Layout
22282 \begin_inset CommandInset label
22284 name "fig:Float-right"
22288 Float on the right side.
22301 \begin_layout Plain Layout
22310 \begin_layout Section
22312 \begin_inset Index idx
22315 \begin_layout Plain Layout
22316 Caption ! Formatting
22322 \begin_inset Index idx
22325 \begin_layout Plain Layout
22326 Floats ! Caption Formatting
22332 \begin_inset CommandInset label
22334 name "sec:Caption-Formatting"
22341 \begin_layout Standard
22346 environment is the default paragraph environment for
22351 On the LyX screen captions appear as label, e.
22352 \begin_inset space \thinspace{}
22356 \begin_inset space \space{}
22360 \begin_inset Quotes eld
22368 \begin_inset Quotes erd
22371 followed by the caption text.
22373 \begin_inset Quotes eld
22377 \begin_inset Quotes erd
22380 is the actual reference number.
22381 By default the label and the number are in the same font as the caption
22382 text and a colon follows the number to divide the label from the text.
22383 This caption format is not suitable for all document formats.
22387 \begin_layout Standard
22388 To change the default caption format, load the LaTeX-package
22393 \begin_inset Index idx
22396 \begin_layout Plain Layout
22397 LaTeX-packages ! caption
22402 in the document preamble with this line:
22405 \begin_layout Standard
22410 usepackage[format definition]{caption}
22413 \begin_layout Standard
22414 To have for example the label and the number in sans-serif bold font and
22415 the table captions always above the table as in this document, use the
22419 \begin_layout Standard
22424 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22427 \begin_layout Standard
22428 You can also define different caption formats for the different float types.
22429 In this case load the
22433 package without format specific options and define the different formats
22434 with the help of the command
22437 \begin_layout Standard
22442 captionsetup[float type]{format definition}
22445 \begin_layout Standard
22446 in the document preamble.
22447 For example the caption formats of Figure
22448 \begin_inset space ~
22452 \begin_inset CommandInset ref
22454 reference "fig:This-is-an-fig"
22459 \begin_inset space ~
22463 \begin_inset CommandInset ref
22465 reference "tab:This-is-an-tab"
22469 can be created using these commands in the document preamble:
22472 \begin_layout Standard
22477 usepackage[tableposition=top]{caption}
22480 \begin_inset Newline newline
22487 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22488 \begin_inset Newline newline
22492 \begin_inset Phantom HPhantom
22495 \begin_layout Plain Layout
22500 captionsetup[figure]{
22506 \begin_inset Newline newline
22511 captionsetup[table]{labelfont={bf,sf}}
22514 \begin_layout Standard
22515 \begin_inset Note Greyedout
22518 \begin_layout Plain Layout
22527 has no effect when a
22532 \begin_inset Index idx
22535 \begin_layout Plain Layout
22536 LaTeX-packages ! KOMA-Script
22541 document class is used.
22542 In this case the document class option
22544 captions=tableheading
22554 \begin_layout Standard
22555 For more information about the package
22559 we refer to its documentation
22560 \begin_inset CommandInset citation
22569 \begin_layout Standard
22570 To change the label name from e.
22571 \begin_inset space \thinspace{}
22575 \begin_inset space \space{}
22579 \begin_inset Quotes eld
22583 \begin_inset Quotes erd
22587 \begin_inset Quotes eld
22591 \begin_inset Quotes erd
22594 use this preamble command:
22597 \begin_layout Standard
22604 fnum@figure}{Image~
22609 \begin_layout Standard
22616 inserts the figure number and
22619 \begin_inset Quotes eld
22625 \begin_inset Quotes erd
22628 creates a protected space.
22631 \begin_layout Standard
22632 \begin_inset VSpace bigskip
22640 \begin_inset Index idx
22643 \begin_layout Plain Layout
22644 LaTeX-packages ! KOMA-Script
22651 article (KOMA-Script)
22659 letter (KOMA-Script)
22663 report (KOMA-Script)
22666 \begin_inset space \thinspace{}
22669 ), you can alternatively to the
22677 's built-in command
22684 For example, to have the caption label in bold, add this command to your
22688 \begin_layout Standard
22693 setkomafont{captionlabel}{
22698 \begin_layout Standard
22699 For more information about
22710 \begin_inset CommandInset citation
22719 \begin_layout Standard
22723 \begin_layout Plain Layout
22727 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22734 \begin_inset Note Note
22737 \begin_layout Plain Layout
22738 The caption format is changed only for this example.
22746 \begin_layout Standard
22747 \begin_inset Float figure
22753 \begin_layout Plain Layout
22755 \begin_inset Graphics
22756 filename clipart/mobius.eps
22759 scaleBeforeRotation
22766 \begin_layout Plain Layout
22767 \begin_inset Caption
22769 \begin_layout Plain Layout
22770 \begin_inset CommandInset label
22772 name "fig:This-is-an-fig"
22776 This is an example figure caption that is longer than one line to show the
22777 different caption format.
22778 Here a self-defined caption format is used.
22791 \begin_layout Standard
22795 \begin_layout Plain Layout
22799 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22808 \begin_layout Standard
22809 \begin_inset Float table
22815 \begin_layout Plain Layout
22816 \begin_inset Caption
22818 \begin_layout Plain Layout
22819 \begin_inset CommandInset label
22821 name "tab:This-is-an-tab"
22825 This is an example table caption that is longer than one line to show the
22826 different caption format.
22827 Here the standard caption format for tables in this document is used.
22835 \begin_layout Plain Layout
22837 \begin_inset Tabular
22838 <lyxtabular version="3" rows="1" columns="5">
22839 <features tabularvalignment="middle">
22840 <column alignment="center" valignment="top" width="0">
22841 <column alignment="center" valignment="top" width="0">
22842 <column alignment="center" valignment="top" width="0">
22843 <column alignment="center" valignment="top" width="0">
22844 <column alignment="center" valignment="top" width="0">
22846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22849 \begin_layout Plain Layout
22855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22858 \begin_layout Plain Layout
22864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22867 \begin_layout Plain Layout
22873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22876 \begin_layout Plain Layout
22882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22885 \begin_layout Plain Layout
22904 \begin_layout Section
22906 \begin_inset Index idx
22909 \begin_layout Plain Layout
22910 Caption ! Placement
22916 \begin_inset Index idx
22919 \begin_layout Plain Layout
22920 Floats ! Caption Placement
22926 \begin_inset CommandInset label
22928 name "sec:Caption-Placement"
22935 \begin_layout Standard
22936 The common caption placement rule is:
22939 \begin_layout Description
22940 Figure: Caption is set below the figure
22943 \begin_layout Description
22944 Table: Caption is set above the table
22947 \begin_layout Standard
22948 Having the caption above the table is unfortunately not supported in LaTeX's
22950 That means if you are using the document classes
22966 there will be no space between the caption and the table.
22967 To insert the necessary space, add the following option to the load command
22968 of the LaTeX-package
22972 in your document preamble
22976 \begin_layout Plain Layout
22978 \begin_inset space ~
22982 \begin_inset CommandInset ref
22984 reference "sec:Caption-Formatting"
22988 for more information of the package
23000 \begin_layout Standard
23006 \begin_layout Standard
23012 \begin_inset Index idx
23015 \begin_layout Plain Layout
23016 LaTeX-packages ! KOMA-Script
23023 article (KOMA-Script)
23031 letter (KOMA-Script)
23035 report (KOMA-Script)
23038 \begin_inset space \thinspace{}
23041 ), you can alternatively to the
23045 package set the document class option
23047 captions=tableheading
23052 \begin_layout Standard
23053 \begin_inset VSpace bigskip
23056 It is also possible to set the caption beside a figure or table.
23057 To get this the LaTeX-package
23062 \begin_inset Index idx
23065 \begin_layout Plain Layout
23066 LaTeX-packages ! sidecap
23071 has to be loaded in the document preamble with the line
23074 \begin_layout Standard
23079 usepackage[option]{sidecap}
23082 \begin_layout Standard
23083 If you set no option, the caption is placed on the side of the outer page
23084 margin – to the right on odd pages, to the left on even pages.
23085 You can change the placement to inner margin with the option
23090 To force the placement always to the right or left, use the option
23101 \begin_layout Standard
23105 \begin_layout Plain Layout
23115 \begin_inset Note Note
23118 \begin_layout Plain Layout
23119 The following section will only be displayed when the LaTeX-package
23131 \begin_layout Standard
23132 To place in LyX the caption of a float on the side, it is necessary to add
23133 these commands to the document preamble:
23136 \begin_layout Standard
23138 \begin_inset CommandInset line
23149 \begin_layout Standard
23157 \begin_inset Newline newline
23161 \begin_inset Phantom HPhantom
23164 \begin_layout Plain Layout
23167 \begin_inset space ~
23182 \begin_inset Newline newline
23186 \begin_inset Phantom HPhantom
23189 \begin_layout Plain Layout
23192 \begin_inset space ~
23207 \begin_inset Newline newline
23211 \begin_inset Phantom HPhantom
23214 \begin_layout Plain Layout
23217 \begin_inset space ~
23227 renewenvironment{table}{
23234 \begin_layout Standard
23242 \begin_inset Newline newline
23246 \begin_inset Phantom HPhantom
23249 \begin_layout Plain Layout
23252 \begin_inset space ~
23267 \begin_inset Newline newline
23271 \begin_inset Phantom HPhantom
23274 \begin_layout Plain Layout
23277 \begin_inset space ~
23294 \begin_layout Standard
23302 \begin_inset Newline newline
23306 \begin_inset Phantom HPhantom
23309 \begin_layout Plain Layout
23312 \begin_inset space ~
23327 \begin_inset Newline newline
23331 \begin_inset Phantom HPhantom
23334 \begin_layout Plain Layout
23337 \begin_inset space ~
23352 \begin_inset Newline newline
23356 \begin_inset Phantom HPhantom
23359 \begin_layout Plain Layout
23362 \begin_inset space ~
23372 renewenvironment{figure}{
23379 \begin_layout Standard
23387 \begin_inset Newline newline
23391 \begin_inset Phantom HPhantom
23394 \begin_layout Plain Layout
23397 \begin_inset space ~
23412 \begin_inset Newline newline
23416 \begin_inset Phantom HPhantom
23419 \begin_layout Plain Layout
23422 \begin_inset space ~
23439 \begin_layout Standard
23441 \begin_inset CommandInset line
23452 \begin_layout Standard
23453 The commands allow you to redefine the floats so that the caption is set
23455 For figure floats use the command
23458 \begin_layout Standard
23466 \begin_layout Standard
23467 in TeX-Code before the float.
23468 After the float insert the command
23471 \begin_layout Standard
23479 \begin_layout Standard
23480 in TeX-Code to get back to the original float definition.
23483 \begin_layout Standard
23484 For table floats use the corresponding commands
23487 \begin_layout Standard
23501 \begin_layout Standard
23503 \begin_inset space ~
23507 \begin_inset CommandInset ref
23509 reference "fig:cap-beside-fig"
23514 \begin_inset space ~
23518 \begin_inset CommandInset ref
23520 reference "tab:cap-beside-tab"
23524 are examples where the caption is set beside.
23527 \begin_layout Standard
23528 You can see in the examples that the caption text appears at the top of
23529 the floats for table floats and at the bottom for figure floats.
23530 To change this, you can use the command
23533 \begin_layout Standard
23538 sidecaptionvpos{float type}{placement}
23541 \begin_layout Standard
23542 in the document preamble or in TeX-Code before the float.
23543 The float type is either
23551 , the placement can be
23552 \begin_inset Quotes eld
23560 \begin_inset Quotes erd
23564 \begin_inset Quotes eld
23572 \begin_inset Quotes erd
23576 \begin_inset Quotes eld
23584 \begin_inset Quotes erd
23588 To have for example the caption of figure floats vertically centered, use
23592 \begin_layout Standard
23597 sidecaptionvpos{figure}{c}
23600 \begin_layout Standard
23601 This was used for Figure
23602 \begin_inset space ~
23606 \begin_inset CommandInset ref
23608 reference "fig:cap-beside-fig-2"
23615 \begin_layout Standard
23616 \begin_inset VSpace medskip
23619 For more information about the package
23623 we refer to its documentation
23624 \begin_inset CommandInset citation
23633 \begin_layout Standard
23634 \begin_inset Note Greyedout
23637 \begin_layout Plain Layout
23647 \begin_inset Index idx
23650 \begin_layout Plain Layout
23651 LaTeX-packages ! hypcap
23656 , described in section
23657 \begin_inset space ~
23661 \begin_inset CommandInset ref
23663 reference "sub:Reference-Position"
23667 , has no effect on floats with the caption set beside.
23675 \begin_layout Standard
23679 \begin_layout Plain Layout
23691 \begin_layout Standard
23692 \begin_inset Float figure
23697 \begin_layout Plain Layout
23698 \begin_inset Graphics
23699 filename clipart/escher-lsd.eps
23701 scaleBeforeRotation
23708 \begin_layout Plain Layout
23709 \begin_inset Caption
23711 \begin_layout Plain Layout
23712 \begin_inset CommandInset label
23714 name "fig:cap-beside-fig"
23718 This is a caption beside a figure.
23731 \begin_layout Standard
23735 \begin_layout Plain Layout
23747 \begin_layout Standard
23748 \begin_inset Float table
23753 \begin_layout Plain Layout
23754 \begin_inset Caption
23756 \begin_layout Plain Layout
23757 \begin_inset CommandInset label
23759 name "tab:cap-beside-tab"
23763 This is a caption beside a table.
23771 \begin_layout Plain Layout
23772 \begin_inset Tabular
23773 <lyxtabular version="3" rows="4" columns="5">
23774 <features tabularvalignment="middle">
23775 <column alignment="center" valignment="top" width="0">
23776 <column alignment="center" valignment="top" width="0">
23777 <column alignment="center" valignment="top" width="0">
23778 <column alignment="center" valignment="top" width="0">
23779 <column alignment="center" valignment="top" width="0">
23781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23784 \begin_layout Plain Layout
23790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23793 \begin_layout Plain Layout
23799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23802 \begin_layout Plain Layout
23808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23811 \begin_layout Plain Layout
23817 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23820 \begin_layout Plain Layout
23828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23831 \begin_layout Plain Layout
23837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23840 \begin_layout Plain Layout
23846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23849 \begin_layout Plain Layout
23855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23858 \begin_layout Plain Layout
23864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23867 \begin_layout Plain Layout
23875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23878 \begin_layout Plain Layout
23884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23887 \begin_layout Plain Layout
23893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23896 \begin_layout Plain Layout
23902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23905 \begin_layout Plain Layout
23911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23914 \begin_layout Plain Layout
23922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23925 \begin_layout Plain Layout
23931 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23934 \begin_layout Plain Layout
23940 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23943 \begin_layout Plain Layout
23949 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23952 \begin_layout Plain Layout
23958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23961 \begin_layout Plain Layout
23980 \begin_layout Standard
23984 \begin_layout Plain Layout
23996 \begin_layout Standard
24000 \begin_layout Plain Layout
24004 sidecaptionvpos{figure}{c}
24010 \begin_inset Float figure
24015 \begin_layout Plain Layout
24016 \begin_inset Graphics
24017 filename clipart/escher-lsd.eps
24019 scaleBeforeRotation
24026 \begin_layout Plain Layout
24027 \begin_inset Caption
24029 \begin_layout Plain Layout
24030 \begin_inset CommandInset label
24032 name "fig:cap-beside-fig-2"
24036 This is a vertically centered caption beside a figure.
24049 \begin_layout Standard
24053 \begin_layout Plain Layout
24065 \begin_layout Standard
24069 \begin_layout Plain Layout
24079 \begin_inset Note Note
24082 \begin_layout Plain Layout
24083 The following will be displayed when the LaTeX-package
24095 \begin_layout Standard
24096 You need to install the LaTeX-package
24100 to see the following part of this section in the output.
24103 \begin_layout Standard
24107 \begin_layout Plain Layout
24119 \begin_layout Section
24121 \begin_inset Index idx
24124 \begin_layout Plain Layout
24125 Floats ! Float Lists
24133 \begin_layout Standard
24134 Similar to the table of contents where the sections of the document are
24135 listed, there are listings for all float types, like the figures of the
24137 You can insert them via the
24139 Insert\SpecialChar \menuseparator
24141 \begin_inset space ~
24145 \begin_inset space ~
24153 \begin_layout Standard
24154 The list entries are the float captions or its short title, the float number,
24155 and the page number where they appear in the document.
24158 \begin_layout Standard
24159 You can find the list of figures and tables at the end of this document.
24162 \begin_layout Chapter
24166 \begin_layout Section
24168 \begin_inset Index idx
24171 \begin_layout Plain Layout
24180 \begin_layout Standard
24181 Notes are inserted with the toolbar button
24182 \begin_inset Graphics
24183 filename ../images/note-insert.png
24185 scaleBeforeRotation
24191 Insert\SpecialChar \menuseparator
24195 There are three types of notes:
24198 \begin_layout Description
24200 \begin_inset space ~
24203 Note This note type is for internal notes that won't appear in the output.
24204 Its note-box looks like this:
24205 \begin_inset Newline newline
24209 \begin_inset Newline newline
24213 \begin_inset Graphics
24214 filename clipart/LyXNoteImageQt4.png
24217 scaleBeforeRotation
24222 \begin_inset Note Note
24225 \begin_layout Plain Layout
24226 This is text in a note box that doesn't appear in the output.
24234 \begin_layout Description
24235 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24236 ent, when you export the document to LaTeX via the menu
24238 File\SpecialChar \menuseparator
24239 Export\SpecialChar \menuseparator
24240 LaTeX (pdflatex) / (plain)
24243 Its note-box looks like this:
24244 \begin_inset Newline newline
24248 \begin_inset Newline newline
24252 \begin_inset Graphics
24253 filename clipart/CommentNoteImageQt4.png
24256 scaleBeforeRotation
24261 \begin_inset Note Comment
24264 \begin_layout Plain Layout
24265 This is text in a note box that only appears as comment in LaTeX-files.
24273 \begin_layout Description
24275 \begin_inset space ~
24278 Out This note will appear in the output as grey text.
24279 Its note-box looks like this:
24280 \begin_inset Newline newline
24284 \begin_inset Newline newline
24288 \begin_inset Graphics
24289 filename clipart/GreyedOutNoteImageQt4.png
24292 scaleBeforeRotation
24297 \begin_inset Newline newline
24304 \begin_layout Plain Layout
24308 renewenvironment{lyxgreyedout}
24311 \begin_layout Plain Layout
24315 textcolor[gray]{0.8}
24325 \begin_inset Note Greyedout
24328 \begin_layout Plain Layout
24333 \begin_layout Plain Layout
24334 This is an example footnote within a greyed out note.
24339 of a comment that appears in the output as grey text.
24348 \begin_layout Plain Layout
24352 renewenvironment{lyxgreyedout}
24355 \begin_layout Plain Layout
24369 \begin_inset Note Note
24372 \begin_layout Plain Layout
24373 The greyed out note is here redefined to show it with the original LyX definitio
24374 n because greyed out notes are redefined in the preamble of this document,
24375 as described below, to have blue text.
24381 \begin_inset Newline newline
24385 \begin_inset Newline newline
24388 As you can see in the example, the first line of greyed out notes is a bit
24389 indented and greyed out notes can have footnotes.
24392 \begin_layout Standard
24393 \begin_inset VSpace bigskip
24396 When you use the toolbar button
24397 \begin_inset Graphics
24398 filename ../images/note-insert.png
24400 scaleBeforeRotation
24407 \begin_inset space ~
24413 You can switch between the five note types by right-clicking on the note-box.
24418 If you want to turn existing text into a note, mark it and click on the
24432 To change a note to text, press the backspace key when the cursor is in
24433 the first position of a note, or press the delete key when the cursor is
24434 in the very last position of the note, respectively.
24437 \begin_layout Standard
24438 \begin_inset VSpace bigskip
24441 You can change the text color of the greyed out notes in the preamble with
24442 the following command:
24445 \begin_layout Standard
24450 renewenvironment{lyxgreyedout}
24451 \begin_inset Newline newline
24455 \begin_inset Phantom HPhantom
24458 \begin_layout Plain Layout
24461 \begin_inset space ~
24478 \begin_layout Standard
24479 The available colors and the method to define colors is explained in section
24480 \begin_inset space ~
24484 \begin_inset CommandInset ref
24486 reference "sec:Colored-Tables"
24493 \begin_layout Standard
24494 Notes that appear in blue in this document are set using greyed out notes
24498 \begin_layout Section
24500 \begin_inset CommandInset label
24502 name "sec:Footnotes"
24507 \begin_inset Index idx
24510 \begin_layout Plain Layout
24517 \begin_inset Index idx
24520 \begin_layout Plain Layout
24529 \begin_layout Standard
24530 Footnotes can be inserted using the toolbar button
24531 \begin_inset Graphics
24532 filename ../images/footnote-insert.png
24534 scaleBeforeRotation
24540 Insert\SpecialChar \menuseparator
24552 then the following footnote-box:
24553 \begin_inset Graphics
24554 filename clipart/footnoteQt4.png
24556 scaleBeforeRotation
24564 where you can enter the footnote text.
24565 If you want to turn existing text into a footnote, mark it and click on
24587 to text, press the Backspace key when the cursor is in the first position
24596 , or press the Delete key when the cursor is in the very last position of
24608 \begin_layout Standard
24609 Here is an example footnote:
24617 \begin_layout Plain Layout
24618 \begin_inset CommandInset label
24620 name "foot:This-is-an"
24624 This is an example footnote.
24637 \begin_layout Plain Layout
24641 newcounter{MyRepeatFoot}
24644 \begin_layout Plain Layout
24648 setcounter{MyRepeatFoot}{
24658 \begin_layout Standard
24659 The footnote will appear in the output as a superscript number at the text
24660 position where the footnote box is placed.
24661 The footnote text is placed at the bottom of the current page.
24662 The footnote number is calculated by LaTeX; the numbers are consecutive.
24663 It depends on your document-class, whether the footnote number is reset
24667 \begin_layout Standard
24668 Footnotes can be referenced like floats: Insert a label into the footnote
24669 and cross-reference this label in the text as described in section
24670 \begin_inset space ~
24674 \begin_inset CommandInset ref
24676 reference "sec:Referencing-Floats"
24681 \begin_inset Newline newline
24684 This is a cross-reference of Footnote
24685 \begin_inset space ~
24689 \begin_inset CommandInset ref
24691 reference "foot:This-is-an"
24698 \begin_layout Standard
24699 \begin_inset VSpace defskip
24702 Footnotes in tables are not printed by LaTeX due to technical reasons.
24703 However there exists another method to print them: Instead of the footnote
24710 is inserted as TeX-code.
24711 The text of the footnote is entered as an argument of the TeX-code command
24719 \begin_inset Newline newline
24722 This was done for the following table with the command
24725 \begin_layout Standard
24732 Printed table footnote.
24737 \begin_layout Standard
24738 \begin_inset Tabular
24739 <lyxtabular version="3" rows="2" columns="1">
24740 <features tabularvalignment="middle">
24741 <column alignment="center" valignment="top" width="0">
24743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24746 \begin_layout Plain Layout
24747 This an example text.
24751 \begin_layout Plain Layout
24752 This footnote will not be printed!
24764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24767 \begin_layout Plain Layout
24768 This an example text.
24772 \begin_layout Plain Layout
24795 \begin_layout Plain Layout
24804 Printed table footnote.
24808 \begin_layout Plain Layout
24818 \begin_layout Standard
24819 Footnotes in longtables are described in section
24820 \begin_inset space ~
24824 \begin_inset CommandInset ref
24826 reference "sub:Footnotes-in-Longtables"
24833 \begin_layout Standard
24834 Footnotes in minipage boxes are printed, but inside the box and with a different
24835 numbering because a minipage box is like a page inside a page.
24836 (For more about minipages, see section
24837 \begin_inset space ~
24841 \begin_inset CommandInset ref
24843 reference "sec:Minipages"
24847 .) To get a footnote in the minipage that is output at the bottom of the
24848 page like normal footnotes, also use the method of
24863 \begin_layout Standard
24864 \begin_inset Box Frameless
24874 height_special "totalheight"
24877 \begin_layout Plain Layout
24878 This an example text in a minipage.
24882 \begin_layout Plain Layout
24883 Footnote in the minipage.
24891 \begin_layout Plain Layout
24892 This an example text in a minipage.
24896 \begin_layout Plain Layout
24913 \begin_layout Standard
24917 \begin_layout Plain Layout
24926 Footnote outside the minipage.
24930 \begin_layout Plain Layout
24940 \begin_layout Standard
24941 \begin_inset VSpace defskip
24947 \begin_layout Standard
24948 To refer to the same footnote several times without printing the footnote
24949 text every time, use the command
24953 footnotemark[number]
24956 \begin_inset Newline newline
24959 As you do not know the number of the repeating footnote while you are writing
24960 the text, you have to store its number.
24961 For the following footnote mark example, these commands were inserted in
24962 TeX-code after Footnote
24963 \begin_inset space ~
24967 \begin_inset CommandInset ref
24969 reference "foot:This-is-an"
24973 to store the footnote number:
24976 \begin_layout Standard
24981 newcounter{MyRepeatFoot}
24982 \begin_inset Newline newline
24987 setcounter{MyRepeatFoot}{
24992 \begin_layout Standard
24993 The footnote mark was then created with this command:
24996 \begin_layout Standard
25006 \begin_layout Standard
25007 Here is a repeated footnote:
25015 \begin_layout Plain Layout
25029 \begin_layout Standard
25030 If you want to repeat the previous footnote, you can omit the storage of
25031 the footnote number and just use this command instead:
25034 \begin_layout Standard
25044 \begin_layout Standard
25045 Here is another repeated footnote:
25053 \begin_layout Plain Layout
25067 \begin_layout Subsection
25069 \begin_inset CommandInset label
25071 name "sub:Footnote-Numbering"
25076 \begin_inset Index idx
25079 \begin_layout Plain Layout
25080 Footnotes ! Numbering
25088 \begin_layout Standard
25089 To reset the footnote number back to 1 after each section
25091 , add this command to your document preamble:
25094 \begin_layout Standard
25099 @addtoreset{footnote}{section}
25102 \begin_layout Standard
25103 \begin_inset VSpace bigskip
25106 The following preamble command changes the footnote numbering style to small
25110 \begin_layout Standard
25122 \begin_layout Standard
25126 \begin_layout Plain Layout
25139 This is a footnote with roman numbering:
25143 \begin_layout Plain Layout
25144 This is an example footnote with roman numbering.
25152 \begin_layout Standard
25153 To change the numbering style to capital roman numerals replace in the command
25168 \begin_inset Quotes eld
25172 \begin_inset Quotes erd
25175 footnotes with capital or small Latin letters use
25189 \begin_inset Quotes eld
25193 \begin_inset Quotes erd
25196 footnotes with symbols use
25205 \begin_layout Standard
25206 \begin_inset Note Greyedout
25209 \begin_layout Plain Layout
25214 You can only number 26 footnotes with Latin letters, because this numbering
25215 is limited to single letters.
25221 \begin_inset Newline newline
25225 \begin_inset Note Greyedout
25228 \begin_layout Plain Layout
25233 You can only number 9 footnotes with symbols.
25241 \begin_layout Standard
25242 To return to the default numbering style after you have changed to another
25255 in the command above.
25259 \begin_layout Plain Layout
25275 \begin_layout Standard
25276 \begin_inset VSpace bigskip
25282 \begin_layout Standard
25283 If you want to have footnotes numbered in the scheme
25284 \begin_inset Quotes eld
25288 \begin_inset Quotes erd
25291 , add the following command to your document preamble:
25294 \begin_layout Standard
25299 numberwithin{footnote}{chapter}
25302 \begin_layout Standard
25303 To be able to use the command
25312 \begin_inset space ~
25317 in the document settings the option
25320 \begin_inset space ~
25324 \begin_inset space ~
25328 \begin_inset space ~
25336 \begin_layout Standard
25340 \begin_layout Plain Layout
25344 numberwithin{footnote}{chapter}
25349 This is another example footnote:
25355 \begin_layout Plain Layout
25356 This is a footnote numbered in the scheme
25357 \begin_inset Quotes eld
25361 \begin_inset Quotes erd
25375 \begin_layout Plain Layout
25391 \begin_layout Standard
25392 \begin_inset Note Greyedout
25395 \begin_layout Plain Layout
25406 always prints out the footnote number as arabic number; previous redefinitions
25407 to get non-arabic numbers are overwritten.
25415 \begin_layout Standard
25416 So to get for example the scheme
25417 \begin_inset Quotes eld
25423 \begin_inset Quotes erd
25426 , use this command instead of
25435 \begin_layout Standard
25449 \begin_layout Subsection
25451 \begin_inset Index idx
25454 \begin_layout Plain Layout
25455 Footnotes ! Placement
25463 \begin_layout Standard
25464 If you have several footnotes in one page, they appear without vertical
25465 space between them at the bottom of the page.
25466 To make them more readable you can e.
25467 \begin_inset space \thinspace{}
25471 \begin_inset space \space{}
25475 \begin_inset space \thinspace{}
25478 mm space with the following preamble command:
25481 \begin_layout Standard
25491 \begin_inset Newline newline
25505 \begin_layout Standard
25506 \begin_inset VSpace bigskip
25509 In a two-column document the footnotes appear at the bottom of every column,
25511 \begin_inset space ~
25515 \begin_inset CommandInset ref
25517 reference "fig:Standard-footnote-placement"
25522 If the footnotes should only appear at the bottom of the right column,
25524 \begin_inset space ~
25528 \begin_inset CommandInset ref
25530 reference "fig:Footnote-placement-in"
25534 , use the LaTeX-package
25539 \begin_inset Index idx
25542 \begin_layout Plain Layout
25543 LaTeX-packages ! ftnright
25548 with this command in the document preamble:
25551 \begin_layout Standard
25556 usepackage{ftnright}
25559 \begin_layout Standard
25560 \begin_inset Float figure
25566 \begin_layout Plain Layout
25570 \begin_layout Plain Layout
25580 \begin_inset Graphics
25581 filename clipart/without_fntright.pdf
25583 scaleBeforeRotation
25591 \begin_layout Plain Layout
25601 \begin_layout Plain Layout
25602 \begin_inset Caption
25604 \begin_layout Plain Layout
25605 \begin_inset CommandInset label
25607 name "fig:Standard-footnote-placement"
25611 Standard footnote placement in two-column documents.
25624 \begin_layout Standard
25625 \begin_inset Float figure
25631 \begin_layout Plain Layout
25635 \begin_layout Plain Layout
25645 \begin_inset Graphics
25646 filename clipart/with_fntright.pdf
25648 scaleBeforeRotation
25656 \begin_layout Plain Layout
25666 \begin_layout Plain Layout
25667 \begin_inset Caption
25669 \begin_layout Plain Layout
25670 \begin_inset CommandInset label
25672 name "fig:Footnote-placement-in"
25676 Footnote placement in two-column documents when the LaTeX-package
25693 \begin_layout Standard
25694 \begin_inset VSpace bigskip
25697 In some scientific literature it is usual to collect the footnotes and print
25698 them in a separate paragraph at the end of a section, as in Figure
25699 \begin_inset space ~
25703 \begin_inset CommandInset ref
25705 reference "fig:Endnotes"
25710 They are then called
25711 \begin_inset Quotes eld
25715 \begin_inset Quotes erd
25719 \begin_inset Index idx
25722 \begin_layout Plain Layout
25728 To use endnotes instead of footnotes in your document, load in the menu
25731 Document\SpecialChar \menuseparator
25732 Settings\SpecialChar \menuseparator
25738 \begin_inset space ~
25742 \begin_inset space ~
25748 To insert the collected footnotes, insert the command
25751 \begin_layout Standard
25759 \begin_layout Standard
25760 in TeX-Code at the end of a section or chapter.
25763 \begin_layout Standard
25764 \begin_inset Float figure
25769 \begin_layout Plain Layout
25774 \begin_layout Plain Layout
25784 \begin_inset Graphics
25785 filename clipart/endnotes.pdf
25786 scaleBeforeRotation
25794 \begin_layout Plain Layout
25804 \begin_layout Plain Layout
25805 \begin_inset Caption
25807 \begin_layout Plain Layout
25808 \begin_inset CommandInset label
25810 name "fig:Endnotes"
25814 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25828 \begin_layout Standard
25829 \begin_inset VSpace medskip
25832 The paragraph heading for the endnotes isn't automatically translated into
25833 the document language, this must be done manually.
25834 The following preamble command translates the default English
25835 \begin_inset Quotes eld
25839 \begin_inset Quotes erd
25843 \begin_inset Quotes eld
25847 \begin_inset Quotes erd
25853 \begin_layout Standard
25860 notesname}{Anmerkungen}
25863 \begin_layout Standard
25864 \begin_inset VSpace medskip
25867 The numbering of endnotes can be changed like the footnote numbering as
25868 described in section
25869 \begin_inset space ~
25873 \begin_inset CommandInset ref
25875 reference "sub:Footnote-Numbering"
25879 ; just replace the command
25892 To reset the endnote number use the command
25898 as described in section
25899 \begin_inset space ~
25903 \begin_inset CommandInset ref
25905 reference "sub:Footnote-Numbering"
25909 and replace the command parameter
25920 \begin_layout Standard
25921 For endnotes there is the command
25925 endnotemark[number]
25927 similar to the command
25933 , that is described in section
25934 \begin_inset space ~
25938 \begin_inset CommandInset ref
25940 reference "sec:Footnotes"
25947 \begin_layout Standard
25948 \begin_inset VSpace bigskip
25951 Footnotes can also be placed in the page margin and the footnote text alignment
25952 can be changed, see the LaTeX-package
25957 \begin_inset Index idx
25960 \begin_layout Plain Layout
25961 LaTeX-packages ! footmisc
25967 \begin_inset CommandInset citation
25973 for more information about this.
25976 \begin_layout Standard
25977 For various further footnote formatting issues have a look at LaTeX-books,
25979 \begin_inset CommandInset citation
25981 key "latexcompanion,latexguide,latexbook"
25988 \begin_layout Section
25990 \begin_inset Index idx
25993 \begin_layout Plain Layout
25994 Notes ! Margin Notes
26002 \begin_layout Standard
26003 Margin notes look and behave in LyX like footnotes.
26004 They are inserted via the menu
26006 Insert\SpecialChar \menuseparator
26008 \begin_inset space ~
26013 or the toolbar button
26014 \begin_inset Graphics
26015 filename ../images/marginalnote-insert.png
26017 scaleBeforeRotation
26032 \begin_inset Quotes eld
26036 \begin_inset Quotes erd
26039 appears where you can enter the text of the margin note.
26042 \begin_layout Standard
26043 At the side is an example margin note.
26048 \begin_inset Marginal
26051 \begin_layout Plain Layout
26052 This is a margin note.
26060 \begin_layout Standard
26061 Margin notes appear at the right side in single-sided documents.
26062 In double-sided documents they appear in the outer margin – left on even
26063 pages, right on odd pages.
26064 The text of margin notes is aligned opposite to the outer margin – right-aligne
26065 d when the note appears in the left margin.
26066 The first line of the margin note is placed at the position of the text
26067 line where it is inserted in the document.
26070 \begin_layout Standard
26071 \begin_inset VSpace bigskip
26074 To place the margin note in the inner margin, add the command
26077 \begin_layout Standard
26085 \begin_layout Standard
26086 in TeX-Code before a margin note.
26087 The new placement is valid for all subsequent margin notes.
26092 \begin_layout Plain Layout
26102 \begin_inset Marginal
26105 \begin_layout Plain Layout
26106 This is a margin note in the inner margin.
26114 \begin_inset Newline newline
26120 \begin_inset Note Greyedout
26123 \begin_layout Plain Layout
26128 There is often not enough space in the inner margin so that the notes are
26129 not correctly displayed in the output.
26137 \begin_layout Standard
26138 To return to the default placement insert the command
26141 \begin_layout Standard
26149 \begin_layout Standard
26154 \begin_layout Plain Layout
26164 \begin_inset Note Greyedout
26167 \begin_layout Plain Layout
26172 The command is ignored when it is within a paragraph where also the command
26187 \begin_layout Standard
26188 \begin_inset VSpace bigskip
26195 \begin_inset Marginal
26198 \begin_layout Plain Layout
26199 AVeryLongMarginParWord that isn't hyphenated.
26207 Similar to the case described in section
26208 \begin_inset space ~
26212 \begin_inset CommandInset ref
26214 reference "sub:Multiple-Lines-in"
26218 , long words cannot be hyphenated when they are the first word in a margin
26220 To avoid this, insert 0
26221 \begin_inset space \thinspace{}
26224 pt horizontal space before the word
26229 \begin_inset Marginal
26232 \begin_layout Plain Layout
26233 \begin_inset space \hspace*{}
26237 AVeryLongMarginParWord that is hyphenated.
26245 \begin_layout Standard
26246 \begin_inset VSpace bigskip
26252 \begin_layout Standard
26253 \begin_inset Note Greyedout
26256 \begin_layout Plain Layout
26261 Margin notes can normally not be used inside tables, floats, and footnotes.
26269 \begin_layout Standard
26270 \begin_inset VSpace bigskip
26276 \begin_layout Standard
26280 \begin_layout Plain Layout
26290 \begin_inset Note Note
26293 \begin_layout Plain Layout
26294 The following section will only be displayed when the LaTeX-package
26306 \begin_layout Standard
26307 This restriction can be evaded by using the LaTeX-package
26312 \begin_inset Index idx
26315 \begin_layout Plain Layout
26316 LaTeX-packages ! marginnote
26322 By adding these two lines to your document preamble, the command used by
26323 LyX for margin notes is redefined to use the command provided by the
26330 \begin_layout Standard
26335 usepackage{marginnote}
26336 \begin_inset Newline newline
26348 \begin_layout Standard
26349 This is also used in this document because
26353 has another useful feature: You can set a vertical offset for the note.
26354 This is often needed when too many margin notes are too close together
26355 or for a better page layout.
26356 The offset is set in LyX as TeX-Code directly after the margin note in
26360 \begin_layout Standard
26366 \begin_layout Standard
26367 where the offset is a length with one of the units listed in Table
26368 \begin_inset space ~
26372 \begin_inset CommandInset ref
26374 reference "tab:Units"
26379 A negative value shifts the note up, a positive value shifts it down.
26383 For example the margin note beside this text line is shifted up 1.5
26384 \begin_inset space \thinspace{}
26387 cm with the TeX-Code-command
26388 \begin_inset Quotes eld
26398 \begin_inset Quotes erd
26402 \begin_inset Marginal
26405 \begin_layout Plain Layout
26406 This margin note is shifted up 1.5
26407 \begin_inset space \thinspace{}
26410 cm from its original position.
26422 \begin_layout Plain Layout
26432 \begin_layout Standard
26433 \begin_inset VSpace medskip
26440 you can also change the alignment of the text in the margin note.
26441 For example the commands
26444 \begin_layout Standard
26451 raggedleftmarginnote}{
26454 \begin_inset Newline newline
26461 raggedrightmarginnote}{
26466 \begin_layout Standard
26467 set the alignment to centered.
26472 raggedleftmarginnote
26474 denotes margin notes that appear at the left side.
26481 \begin_layout Plain Layout
26487 raggedleftmarginnote}{
26492 \begin_layout Plain Layout
26498 raggedrightmarginnote}{
26506 \begin_inset Marginal
26509 \begin_layout Plain Layout
26510 The text of this margin note is centered.
26521 \begin_layout Standard
26528 raggedleftmarginnote}{
26531 \begin_inset Newline newline
26538 raggedrightmarginnote}{
26547 \begin_layout Plain Layout
26553 raggedleftmarginnote}{
26558 \begin_layout Plain Layout
26564 raggedrightmarginnote}{
26574 \begin_layout Standard
26575 \begin_inset VSpace medskip
26578 For the other features of
26582 refer to its documentation
26583 \begin_inset CommandInset citation
26592 \begin_layout Standard
26593 \begin_inset VSpace bigskip
26596 You can adjust the layout of margin notes by changing its definition.
26597 To create for example a header for all margin notes with the underlined,
26598 sans-serif, and bold header text
26599 \begin_inset Quotes eld
26611 \begin_inset Quotes erd
26614 , add this to your document preamble:
26617 \begin_layout Standard
26627 \begin_inset Newline newline
26637 \begin_inset Newline newline
26641 \begin_inset Phantom HPhantom
26644 \begin_layout Plain Layout
26647 \begin_inset space ~
26663 underbar{Attention!}}}%
26664 \begin_inset Newline newline
26668 \begin_inset Phantom HPhantom
26671 \begin_layout Plain Layout
26674 \begin_inset space ~
26691 \begin_layout Standard
26698 \begin_layout Plain Layout
26709 \begin_layout Plain Layout
26720 \begin_layout Plain Layout
26728 underbar{Attention!}}}%
26731 \begin_layout Plain Layout
26745 \begin_inset Marginal
26748 \begin_layout Plain Layout
26749 This is a margin note with a defined heading.
26761 \begin_layout Plain Layout
26775 \begin_layout Plain Layout
26792 \begin_inset Note Note
26795 \begin_layout Plain Layout
26796 The margin note format is changed only for this example.
26804 \begin_layout Standard
26808 \begin_layout Plain Layout
26818 \begin_inset Note Note
26821 \begin_layout Plain Layout
26822 The following will be displayed when the LaTeX-package
26834 \begin_layout Standard
26835 You need to install the LaTeX-package
26839 to see the following part of this section in the output.
26842 \begin_layout Standard
26846 \begin_layout Plain Layout
26858 \begin_layout Chapter
26862 \begin_layout Section
26864 \begin_inset Index idx
26867 \begin_layout Plain Layout
26868 Boxes ! Introduction
26876 \begin_layout Standard
26877 Boxes are used to format a block of text.
26878 Boxes can be used to write documents with multiple languages, see section
26879 \begin_inset space ~
26883 \begin_inset CommandInset ref
26885 reference "sec:Minipages"
26889 , to frame texts, see section
26890 \begin_inset space ~
26894 \begin_inset CommandInset ref
26896 reference "sec:Decoration"
26900 , to prevent words from being hyphenated, see section
26901 \begin_inset space ~
26905 \begin_inset CommandInset ref
26907 reference "sec:Prevent-Hyphenation"
26911 , to align text, see section
26912 \begin_inset space ~
26916 \begin_inset CommandInset ref
26918 reference "sub:Vertical-Alignment"
26922 , or to set the background color of texts, see section
26923 \begin_inset space ~
26927 \begin_inset CommandInset ref
26929 reference "sec:Colored-Boxes"
26936 \begin_layout Standard
26937 Boxes can be inserted with the menu
26939 Insert\SpecialChar \menuseparator
26942 or the toolbar button
26943 \begin_inset Graphics
26944 filename ../images/box-insert.png
26946 scaleBeforeRotation
26951 A grey box with the label
26956 \begin_inset Graphics
26957 filename clipart/BoxInsetDefaultQt4.png
26959 scaleBeforeRotation
26964 The box type can be specified by right-clicking on the box and selecting
26970 The box dialog offers the
26973 \begin_inset space ~
26995 is the default for new boxes and is explained in section
26996 \begin_inset space ~
27000 \begin_inset CommandInset ref
27002 reference "sec:Minipages"
27010 is described in section
27011 \begin_inset space ~
27015 \begin_inset CommandInset ref
27017 reference "sec:Parboxes"
27026 \begin_inset CommandInset ref
27028 reference "sec:Prevent-Hyphenation"
27035 \begin_layout Standard
27036 Boxes are not numbered and can therefore not be referenced like floats or
27040 \begin_layout Standard
27041 \begin_inset Note Greyedout
27044 \begin_layout Plain Layout
27049 Boxes must not be the item in an
27065 \begin_layout Standard
27066 \begin_inset Note Greyedout
27069 \begin_layout Plain Layout
27074 For an unknown reason you can only set the
27077 \begin_inset space ~
27086 when you use a framed box.
27090 \begin_inset space ~
27095 type and without frames are explained in section
27096 \begin_inset space ~
27100 \begin_inset CommandInset ref
27102 reference "sec:Prevent-Hyphenation"
27114 \begin_layout Section
27116 \begin_inset CommandInset label
27118 name "sec:Box-Dialog"
27123 \begin_inset Index idx
27126 \begin_layout Plain Layout
27135 \begin_layout Subsection
27137 \begin_inset Index idx
27140 \begin_layout Plain Layout
27149 \begin_layout Standard
27150 In the box dialog you can adjust the box geometry in the fields
27159 The available units for the geometry are explained in Table
27160 \begin_inset space ~
27164 \begin_inset CommandInset ref
27166 reference "tab:Units"
27175 offers the following additional sizes:
27178 \begin_layout Description
27179 Depth This is the plain text
27180 \begin_inset Quotes eld
27184 \begin_inset Quotes erd
27188 It ignores the total depth when there are multiple text lines in the box:
27189 \begin_inset Newline newline
27193 \begin_inset Newline newline
27197 \begin_inset Newline newline
27201 \begin_inset Box Boxed
27211 height_special "depth"
27214 \begin_layout Plain Layout
27216 Box height set to 1
27217 \begin_inset space \thinspace{}
27226 \begin_inset Newline newline
27230 \begin_inset Newline newline
27236 \begin_layout Description
27237 Height This is the height of the text that is inside the box.
27239 \begin_inset space \thinspace{}
27243 \begin_inset space \space{}
27246 2 for this size will set the box height to 2
27247 \begin_inset space ~
27250 times the text height:
27251 \begin_inset Box Boxed
27261 height_special "height"
27264 \begin_layout Plain Layout
27266 Box height set to 2
27267 \begin_inset space \thinspace{}
27278 \begin_layout Description
27280 \begin_inset space ~
27283 Height This is the Height
27284 \begin_inset space \thinspace{}
27288 \begin_inset space \thinspace{}
27292 \begin_inset Box Boxed
27302 height_special "totalheight"
27305 \begin_layout Plain Layout
27307 Box height set to 1
27308 \begin_inset space \thinspace{}
27312 \begin_inset space ~
27323 \begin_layout Description
27324 Width This sets the width of the box as height:
27325 \begin_inset Box Boxed
27335 height_special "width"
27338 \begin_layout Plain Layout
27340 Box height set to 1
27341 \begin_inset space \thinspace{}
27352 \begin_layout Subsection
27354 \begin_inset Index idx
27357 \begin_layout Plain Layout
27366 \begin_layout Standard
27367 When you have chosen an
27370 \begin_inset space ~
27375 , the vertical box alignment can be:
27378 \begin_layout Description
27379 Top This is an example text line.
27381 \begin_inset Box Boxed
27391 height_special "totalheight"
27394 \begin_layout Plain Layout
27396 This box is top-aligned.
27401 This is an example text line.
27404 \begin_layout Description
27405 Middle This is an example text line.
27407 \begin_inset Box Boxed
27417 height_special "totalheight"
27420 \begin_layout Plain Layout
27422 This box is middle-aligned.
27427 This is an example text line.
27430 \begin_layout Description
27431 Bottom This is an example text line.
27433 \begin_inset Box Boxed
27443 height_special "totalheight"
27446 \begin_layout Plain Layout
27448 This box is bottom-aligned.
27453 This is an example text line.
27456 \begin_layout Standard
27457 \begin_inset Note Greyedout
27460 \begin_layout Plain Layout
27465 The vertical box alignment can be lost in the output when you have two
27466 boxes in a line and one has e.
27467 \begin_inset space \thinspace{}
27471 \begin_inset space \space{}
27474 a shadow and the other one not.
27482 \begin_layout Standard
27483 The horizontal box alignment can be set via LyX's paragraph dialog when
27484 you set the box into its own paragraph.
27487 \begin_layout Standard
27488 \begin_inset VSpace bigskip
27491 When you have chosen an
27494 \begin_inset space ~
27499 , the box content can be aligned vertically to:
27502 \begin_layout Description
27503 top This is an example text line.
27505 \begin_inset Box Boxed
27515 height_special "totalheight"
27518 \begin_layout Plain Layout
27520 This box text is top-aligned.
27525 This is an example text line.
27528 \begin_layout Description
27529 middle This is an example text line.
27531 \begin_inset Box Boxed
27541 height_special "totalheight"
27544 \begin_layout Plain Layout
27546 This box text is middle-aligned.
27551 This is an example text line.
27554 \begin_layout Description
27555 bottom This is an example text line.
27557 \begin_inset Box Boxed
27567 height_special "totalheight"
27570 \begin_layout Plain Layout
27572 This box text is bottom-aligned.
27577 This is an example text line.
27580 \begin_layout Description
27581 stretch This is an example text line.
27583 \begin_inset Box Boxed
27593 height_special "totalheight"
27596 \begin_layout Plain Layout
27601 \begin_layout Plain Layout
27606 \begin_layout Plain Layout
27613 This is an example text line.
27616 \begin_layout Standard
27617 To stretch the box content, it must consist of more than one paragraph.
27618 In the example above every text line is in an own paragraph.
27621 \begin_layout Standard
27622 \begin_inset VSpace bigskip
27625 To align the box content horizontally you can use LyX's paragraph dialog
27626 when you have chosen an
27629 \begin_inset space ~
27637 \begin_layout Standard
27639 \begin_inset Box Boxed
27649 height_special "totalheight"
27652 \begin_layout Plain Layout
27657 \begin_layout Plain Layout
27662 \begin_layout Plain Layout
27672 \begin_layout Standard
27673 If you have not set an
27676 \begin_inset space ~
27681 , you can align the box content horizontally in the box dialog.
27684 \begin_layout Standard
27686 \begin_inset Box Boxed
27696 height_special "totalheight"
27699 \begin_layout Plain Layout
27701 This box text is horizontally stretched.
27709 \begin_layout Subsection
27711 \begin_inset CommandInset label
27713 name "sec:Decoration"
27718 \begin_inset Index idx
27721 \begin_layout Plain Layout
27730 \begin_layout Standard
27731 The type of the box can be specified in the box dialog in the drop-down
27737 The following types are possible:
27740 \begin_layout Description
27742 \begin_inset space ~
27745 frame Nothing is drawn.
27748 \begin_layout Description
27750 \begin_inset space ~
27754 \begin_inset space ~
27757 frame This draws a rectangular frame around the box.
27758 The frame line thickness has the size of
27766 \begin_inset Box Boxed
27776 height_special "totalheight"
27779 \begin_layout Plain Layout
27789 \begin_layout Description
27791 \begin_inset space ~
27795 \begin_inset space ~
27798 thin This draws an oval frame around the box.
27799 The frame line thickness has the size 0.4
27800 \begin_inset space \thinspace{}
27805 \begin_inset Box ovalbox
27815 height_special "totalheight"
27818 \begin_layout Plain Layout
27828 \begin_layout Description
27830 \begin_inset space ~
27834 \begin_inset space ~
27837 thick This draws an oval frame around the box.
27838 The frame line thickness has the size 0.8
27839 \begin_inset space \thinspace{}
27844 \begin_inset Box Ovalbox
27854 height_special "totalheight"
27857 \begin_layout Plain Layout
27867 \begin_layout Description
27869 \begin_inset space ~
27872 shadow This draws a rectangular frame with a shadow around the box.
27873 The frame line thickness has the size of
27879 , the shadow has a width of 4
27880 \begin_inset space \thinspace{}
27885 \begin_inset Box Shadowbox
27895 height_special "totalheight"
27898 \begin_layout Plain Layout
27908 \begin_layout Description
27910 \begin_inset space ~
27913 background This draws a box with a red background.
27914 Unlike colored boxes
27918 \begin_layout Plain Layout
27920 \begin_inset space \thinspace{}
27924 \begin_inset CommandInset ref
27926 reference "sec:Colored-Boxes"
27935 , it always uses the whole column width and the box is set as its own paragraph.
27937 \begin_inset Box Shaded
27947 height_special "totalheight"
27950 \begin_layout Plain Layout
27951 Shaded background box
27959 \begin_layout Description
27961 \begin_inset space ~
27965 \begin_inset space ~
27968 frame This draws a double-line rectangular frame around the box.
27969 The line thickness of the inner frame is 0.75
27970 \begin_inset space \thinspace{}
27979 , the thickness of the outer frame is 1.5
27980 \begin_inset space \thinspace{}
27990 The distance between the lines is 1.5
27991 \begin_inset space \thinspace{}
28001 \begin_inset space \thinspace{}
28005 \begin_inset space \thinspace{}
28009 \begin_inset space \thinspace{}
28014 \begin_inset Box Doublebox
28024 height_special "totalheight"
28027 \begin_layout Plain Layout
28029 Double rectangular box
28037 \begin_layout Standard
28038 \begin_inset VSpace bigskip
28041 LyX's box label will reflect the different frame types.
28042 To be able to use all types, the LaTeX-package
28047 \begin_inset Index idx
28050 \begin_layout Plain Layout
28051 LaTeX-packages ! fancybox
28059 \begin_layout Standard
28060 \begin_inset VSpace bigskip
28063 When you use the decoration
28065 simple rectangular frame
28067 and no inner box, you can allow page breaks within a box.
28068 Note that then, unlike other framed boxes, the frame always uses the whole
28069 column width, the box is set as its own paragraph, and
28081 have no effect on this box type.
28082 The frame line thickness has the size of
28090 \begin_inset Box Framed
28100 height_special "totalheight"
28103 \begin_layout Plain Layout
28104 Allow page break box
28112 \begin_layout Section
28114 \begin_inset Index idx
28117 \begin_layout Plain Layout
28118 Boxes ! Customization
28126 \begin_layout Standard
28127 The default value for the size
28134 \begin_inset space \thinspace{}
28138 It can be changed with the following command in TeX-Code to e.
28139 \begin_inset space \thinspace{}
28143 \begin_inset space \space{}
28147 \begin_inset space \thinspace{}
28153 \begin_layout Standard
28163 \begin_layout Standard
28167 \begin_layout Plain Layout
28179 \begin_inset Box Boxed
28189 height_special "totalheight"
28192 \begin_layout Plain Layout
28194 Rectangular box with
28201 \begin_inset space \thinspace{}
28205 \begin_inset space \thinspace{}
28209 \begin_inset space \thinspace{}
28221 \begin_layout Plain Layout
28235 \begin_layout Standard
28236 \begin_inset VSpace bigskip
28239 The space between the frame and the box content is for all frame styles
28241 \begin_inset space \thinspace{}
28245 You can change it by setting the length
28252 For example the command
28255 \begin_layout Standard
28265 \begin_layout Standard
28266 sets the value to 10
28267 \begin_inset space \thinspace{}
28270 pt, as with the following box:
28273 \begin_layout Standard
28277 \begin_layout Plain Layout
28289 \begin_inset Box Boxed
28299 height_special "totalheight"
28302 \begin_layout Plain Layout
28304 Rectangular box with
28311 \begin_inset space \thinspace{}
28315 \begin_inset space \thinspace{}
28319 \begin_inset space \thinspace{}
28331 \begin_layout Plain Layout
28345 \begin_layout Standard
28346 \begin_inset VSpace bigskip
28349 The diameter of the round corners of the oval boxes can be set with the
28360 \begin_layout Standard
28368 \begin_layout Standard
28369 sets the diameter to 1
28370 \begin_inset space \thinspace{}
28377 \begin_layout Standard
28385 \begin_layout Standard
28386 sets the diameter to
28389 \begin_inset space \thinspace{}
28393 \begin_inset space \thinspace{}
28396 minimum(width and heigth of box)
28408 \begin_layout Standard
28412 \begin_layout Plain Layout
28422 \begin_inset Box Ovalbox
28432 height_special "totalheight"
28435 \begin_layout Plain Layout
28444 \begin_inset space \thinspace{}
28448 \begin_inset space \thinspace{}
28452 \begin_inset space \thinspace{}
28464 \begin_layout Plain Layout
28476 \begin_layout Standard
28477 \begin_inset VSpace bigskip
28480 The size of the shadow can be adjusted by changing the length
28488 \begin_inset space \thinspace{}
28491 pt for the following box by this command:
28494 \begin_layout Standard
28504 \begin_layout Standard
28508 \begin_layout Plain Layout
28520 \begin_inset Box Shadowbox
28530 height_special "totalheight"
28533 \begin_layout Plain Layout
28542 \begin_inset space \thinspace{}
28546 \begin_inset space \thinspace{}
28550 \begin_inset space \thinspace{}
28562 \begin_layout Plain Layout
28576 \begin_layout Standard
28577 \begin_inset VSpace bigskip
28583 \begin_layout Standard
28584 The default value for the size
28591 \begin_inset space \thinspace{}
28595 The default space between the note content and the frame is 9
28596 \begin_inset space \thinspace{}
28599 pt and can be changed with the value of
28606 For example the frame appearance of the following
28610 is set with the TeX-Code commands
28613 \begin_layout Standard
28621 \begin_inset Newline newline
28631 \begin_layout Standard
28635 \begin_layout Plain Layout
28644 \begin_layout Plain Layout
28656 \begin_inset Box Framed
28666 height_special "totalheight"
28669 \begin_layout Plain Layout
28683 \begin_layout Plain Layout
28692 \begin_layout Plain Layout
28706 \begin_layout Standard
28707 \begin_inset VSpace bigskip
28713 \begin_layout Standard
28718 boxes the default space between the box content and the box border is 3
28719 \begin_inset space \thinspace{}
28722 pt and can be changed with the value of
28729 The default background color red can either be changed locally with the
28734 definecolor{shadecolor}
28736 or globally with the menu
28738 Tools\SpecialChar \menuseparator
28739 Preferences\SpecialChar \menuseparator
28740 Colors\SpecialChar \menuseparator
28742 \begin_inset space ~
28754 command is explained in section
28755 \begin_inset space ~
28759 \begin_inset CommandInset ref
28761 reference "sec:Colored-Tables"
28769 \begin_layout Plain Layout
28776 requires the LaTeX-package
28780 in the preamble, see section
28781 \begin_inset space ~
28785 \begin_inset CommandInset ref
28787 reference "sec:Colored-Boxes"
28796 For example the appearance of the following shaded background box is set
28797 with the TeX-Code commands
28800 \begin_layout Standard
28810 \begin_inset Newline newline
28817 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28820 \begin_layout Standard
28824 \begin_layout Plain Layout
28833 \begin_layout Plain Layout
28837 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28843 \begin_inset Box Shaded
28853 height_special "totalheight"
28856 \begin_layout Plain Layout
28859 This is yellow text in a
28869 box with dark green background.
28878 \begin_layout Plain Layout
28887 \begin_layout Plain Layout
28891 definecolor{shadecolor}{rgb}{1,0,0}
28899 \begin_layout Standard
28900 \begin_inset VSpace bigskip
28903 Changed lengths and widths are valid for all boxes following the commands
28907 \begin_layout Section
28909 \begin_inset CommandInset label
28911 name "sec:Minipages"
28916 \begin_inset Index idx
28919 \begin_layout Plain Layout
28928 \begin_layout Standard
28929 Minipages are treated by LaTeX as pages within pages and can therefore for
28930 example have their own footnotes.
28933 \begin_layout Standard
28934 Minipages are useful when you write documents with different languages.
28937 \begin_layout Standard
28938 Below are two example minipages side by side.
28939 Their width is set to 45
28940 \begin_inset space \thinspace{}
28943 col% and they are separated by a horizontal fill, that was inserted via
28946 Insert\SpecialChar \menuseparator
28948 \begin_inset space ~
28951 Formatting\SpecialChar \menuseparator
28953 \begin_inset space ~
28959 \begin_inset Newpage newpage
28965 \begin_layout Standard
28966 \begin_inset Box Frameless
28976 height_special "totalheight"
28979 \begin_layout Plain Layout
28982 Dies ist ein deutscher Text.
28983 Dies ist ein deutscher Text.
28984 Dies ist ein deutscher Text.
28985 Dies ist ein deutscher Text.
28986 Dies ist ein deutscher Text.
28987 Dies ist ein deutscher Text.
28988 Dies ist ein deutscher Text.
28989 Dies ist ein deutscher Text.
28990 Dies ist ein deutscher Text.
28991 Dies ist ein deutscher Text.
28992 Dies ist ein deutscher Text.
28993 Dies ist ein deutscher Text.
28994 Dies ist ein deutscher Text
28998 \begin_layout Plain Layout
29001 Dies ist eine deutsche Fußnote.
29007 Dies ist ein deutscher Text.
29008 Dies ist ein deutscher Text.
29014 \begin_inset space \hfill{}
29018 \begin_inset Box Frameless
29028 height_special "totalheight"
29031 \begin_layout Plain Layout
29032 This is an English Text.
29033 This is an English Text.
29034 This is an English Text.
29035 This is an English Text.
29036 This is an English Text.
29037 This is an English Text.
29038 This is an English Text.
29039 This is an English Text.
29040 This is an English Text.
29041 This is an English Text.
29042 This is an English Text.
29043 This is an English Text.
29044 This is an English Text.
29045 This is an English Text.
29046 This is an English Text.
29047 This is an English Text.
29051 \begin_layout Plain Layout
29052 This is an English footnote.
29057 This is an English Text.
29066 \begin_layout Standard
29067 \begin_inset VSpace bigskip
29070 The document-wide paragraph settings are ignored within minipages.
29071 That means that there will be no space between paragraphs in minipages
29072 although you set it to e.
29073 \begin_inset space \thinspace{}
29077 \begin_inset space \space{}
29084 in the document settings.
29087 \begin_layout Standard
29088 Minipages can also be used to set a background color for text parts, see
29090 \begin_inset space ~
29094 \begin_inset CommandInset ref
29096 reference "sub:Color-for-Paragraphs"
29103 \begin_layout Standard
29104 \begin_inset Note Greyedout
29107 \begin_layout Plain Layout
29112 You cannot have floats or margin notes inside minipages but minipages can
29113 be used inside tables, floats, and other boxes.
29121 \begin_layout Section
29123 \begin_inset CommandInset label
29125 name "sec:Parboxes"
29130 \begin_inset Index idx
29133 \begin_layout Plain Layout
29142 \begin_layout Standard
29143 Parboxes are very similar to minipages with the difference that they cannot
29147 \begin_layout Standard
29149 \begin_inset Box Frameless
29159 height_special "totalheight"
29162 \begin_layout Plain Layout
29163 This a text within a parbox.
29164 This a text within a parbox.
29167 \begin_layout Plain Layout
29168 This footnote won't appear:
29172 \begin_layout Plain Layout
29173 This footnote is inside a parbox and will therefore not appear.
29186 \begin_layout Section
29187 Boxes for Words and Characters
29188 \begin_inset Index idx
29191 \begin_layout Plain Layout
29192 Boxes ! for Characters
29200 \begin_layout Subsection
29201 Prevent Hyphenation
29202 \begin_inset CommandInset label
29204 name "sec:Prevent-Hyphenation"
29209 \begin_inset Index idx
29212 \begin_layout Plain Layout
29213 Boxes ! to Prevent Hyphenation
29221 \begin_layout Standard
29222 You can use the box type
29226 to prevent words or text from being hyphenated.
29227 \begin_inset Newline newline
29230 Here is an example text:
29233 \begin_layout Standard
29234 This line is an example to show how you can prevent the hyphenation of
29235 \begin_inset Quotes eld
29239 \begin_inset Quotes erd
29245 \begin_layout Standard
29246 To prevent the hyphenation of the word
29247 \begin_inset Quotes eld
29251 \begin_inset Quotes erd
29254 , put the word into a box, set the
29257 \begin_inset space ~
29267 \begin_inset space \thinspace{}
29273 \begin_layout Standard
29274 This is the result:
29277 \begin_layout Standard
29278 This line is an example to show how you can prevent the hyphenation of
29279 \begin_inset Box Frameless
29289 height_special "totalheight"
29292 \begin_layout Plain Layout
29293 \begin_inset Quotes eld
29297 \begin_inset Quotes erd
29308 \begin_layout Standard
29309 You can alternatively set the command
29310 \begin_inset Quotes eld
29320 \begin_inset Quotes grd
29323 as TeX-Code directly before the word:
29326 \begin_layout Standard
29327 This line is an example to show how you can prevent the hyphenation of
29328 \begin_inset Quotes eld
29335 \begin_layout Plain Layout
29345 \begin_inset Quotes erd
29351 \begin_layout Standard
29352 Of course the word now protrudes over the side margin.
29353 To avoid this, add via the menu
29355 Insert\SpecialChar \menuseparator
29357 \begin_inset space ~
29360 Formatting\SpecialChar \menuseparator
29362 \begin_inset space ~
29370 arg "newline-insert newline"
29373 ) a line break before the word:
29376 \begin_layout Standard
29377 This line is an example to show how you can prevent the hyphenation of
29378 \begin_inset Newline newline
29382 \begin_inset Box Frameless
29392 height_special "totalheight"
29395 \begin_layout Plain Layout
29396 \begin_inset Quotes eld
29400 \begin_inset Quotes erd
29411 \begin_layout Subsection
29413 \begin_inset CommandInset label
29415 name "sub:Vertical-Alignment"
29420 \begin_inset Index idx
29423 \begin_layout Plain Layout
29424 Boxes ! for Vertical Alignment
29430 \begin_inset Index idx
29433 \begin_layout Plain Layout
29442 \begin_layout Standard
29443 With the help of the command
29449 you can align words, characters or other boxes vertically relative to the
29457 is used with the following scheme:
29460 \begin_layout Standard
29465 raisebox{lift}[height][depth]{box content}
29468 \begin_layout Standard
29469 The lift can be a positive value to raise the box or a negative value to
29473 \begin_layout Standard
29474 To align for example the word
29475 \begin_inset Quotes eld
29479 \begin_inset Quotes erd
29482 so that the bottom of the
29483 \begin_inset Quotes eld
29487 \begin_inset Quotes erd
29491 \begin_inset Quotes eld
29495 \begin_inset Quotes erd
29498 is at the baseline, insert the command
29501 \begin_layout Standard
29511 \begin_layout Standard
29512 in TeX-Code before the word.
29513 After the word insert a closing brace
29514 \begin_inset Quotes eld
29522 \begin_inset Quotes erd
29526 \begin_inset Newline newline
29529 This is the result:
29532 \begin_layout Standard
29533 This is a text line with the word
29537 \begin_layout Plain Layout
29549 \begin_inset Quotes eld
29553 \begin_inset Quotes erd
29560 \begin_layout Plain Layout
29570 \begin_layout Standard
29571 \begin_inset VSpace bigskip
29574 When you raise or lower characters in a line, the line distance will be
29578 \begin_layout Standard
29579 This is a text line with the word
29583 \begin_layout Plain Layout
29595 \begin_inset Quotes eld
29599 \begin_inset Quotes erd
29606 \begin_layout Plain Layout
29614 \begin_inset Newline newline
29617 This is a text line with the word
29621 \begin_layout Plain Layout
29631 \begin_inset Quotes eld
29635 \begin_inset Quotes erd
29642 \begin_layout Plain Layout
29652 \begin_layout Standard
29653 If you want to prevent this for a certain reason, set the box height to
29658 \begin_layout Standard
29668 \begin_layout Standard
29669 This is a text line with the word
29673 \begin_layout Plain Layout
29685 \begin_inset Quotes eld
29689 \begin_inset Quotes erd
29696 \begin_layout Plain Layout
29704 \begin_inset Newline newline
29707 This is a text line with the word
29711 \begin_layout Plain Layout
29715 raisebox{0.5cm}[0pt]{
29721 \begin_inset Quotes eld
29725 \begin_inset Quotes erd
29732 \begin_layout Plain Layout
29742 \begin_layout Section
29744 \begin_inset CommandInset label
29746 name "sec:Colored-Boxes"
29751 \begin_inset Index idx
29754 \begin_layout Plain Layout
29763 \begin_layout Subsection
29765 \begin_inset Index idx
29768 \begin_layout Plain Layout
29777 \begin_layout Standard
29778 To color the background of text the text must be put into a so called
29779 \begin_inset Quotes eld
29783 \begin_inset Quotes erd
29787 This requires that the LaTeX-package
29792 \begin_inset Index idx
29795 \begin_layout Plain Layout
29796 LaTeX-packages ! color
29801 is loaded in the document preamble with the command
29804 \begin_layout Standard
29809 @ifundefined{textcolor}
29810 \begin_inset Newline newline
29814 \begin_inset Phantom HPhantom
29817 \begin_layout Plain Layout
29820 \begin_inset space ~
29830 usepackage{color}}{}
29833 \begin_layout Standard
29838 will be loaded automatically by LyX when you color text.
29842 \begin_layout Plain Layout
29843 To avoid it being loaded twice the command
29857 \begin_layout Standard
29858 \begin_inset VSpace medskip
29861 Colorboxes are created with the command
29868 This will be used with the following scheme:
29871 \begin_layout Standard
29876 colorbox{color}{box content}
29879 \begin_layout Standard
29880 The box content can also be a box and colorboxes can also be within other
29884 \begin_layout Standard
29885 The following colors are predefined:
29886 \begin_inset Newline newline
29925 \begin_inset Newline newline
29928 You can also define your own color as described in section
29929 \begin_inset space ~
29933 \begin_inset CommandInset ref
29935 reference "sec:Colored-Tables"
29942 \begin_layout Standard
29944 \begin_inset space \thinspace{}
29948 \begin_inset space \space{}
29951 a red background for a word, insert the command
29954 \begin_layout Standard
29962 \begin_layout Standard
29963 before the word in TeX-Code.
29964 After the word insert a closing brace
29965 \begin_inset Quotes eld
29973 \begin_inset Quotes erd
29977 \begin_inset Newline newline
29980 This is the result:
29983 \begin_layout Standard
29984 This is a line where the word
29988 \begin_layout Plain Layout
29998 \begin_inset Quotes eld
30002 \begin_inset Quotes erd
30009 \begin_layout Plain Layout
30016 has a red background.
30019 \begin_layout Standard
30020 \begin_inset VSpace bigskip
30023 If you would like the box frame in a different color, you can use the command
30030 with the following scheme:
30033 \begin_layout Standard
30038 fcolorbox{frame color}{box color}{box content}
30041 \begin_layout Standard
30055 The frame thickness and the space between the frame and the box content
30056 can be adjusted with the lengths
30068 , respectively, as described in section
30069 \begin_inset space ~
30073 \begin_inset CommandInset ref
30075 reference "sec:Decoration"
30082 \begin_layout Standard
30083 For the following example the command
30086 \begin_layout Standard
30091 fcolorbox{cyan}{magenta}{
30094 \begin_layout Standard
30098 \begin_layout Standard
30099 Here is an example where the frame line thickness was set to 1
30100 \begin_inset space \thinspace{}
30104 \begin_inset Newline newline
30111 \begin_layout Plain Layout
30126 \begin_layout Plain Layout
30130 fcolorbox{cyan}{magenta}{
30135 This is text within a colored, framed box.
30139 \begin_layout Plain Layout
30149 \begin_layout Standard
30150 \begin_inset VSpace bigskip
30153 Of course you can also have colored text inside a colorbox:
30154 \begin_inset Newline newline
30161 \begin_layout Plain Layout
30165 fcolorbox{cyan}{magenta}{
30172 This is colored text within a colored, framed box.
30178 \begin_layout Plain Layout
30189 \begin_layout Plain Layout
30203 \begin_layout Standard
30206 \begin_inset VSpace medskip
30212 \begin_layout Standard
30213 \begin_inset Note Greyedout
30216 \begin_layout Plain Layout
30221 Text in colorboxes cannot have line breaks.
30222 To color multiple text lines or paragraphs, use a box inside a colorbox
30223 as described in the following.
30231 \begin_layout Subsection
30232 Color for Paragraphs
30233 \begin_inset CommandInset label
30235 name "sub:Color-for-Paragraphs"
30240 \begin_inset Index idx
30243 \begin_layout Plain Layout
30244 Color ! for Paragraphs
30252 \begin_layout Standard
30253 To set the background color for more than one text line, put the text into
30255 Before the minipage insert the
30264 \begin_layout Standard
30272 \begin_layout Standard
30274 After the minipage insert a closing brace
30275 \begin_inset Quotes eld
30283 \begin_inset Quotes erd
30289 \begin_layout Standard
30293 \begin_layout Plain Layout
30297 colorbox{lightgrey}{
30303 \begin_inset Box Frameless
30313 height_special "totalheight"
30316 \begin_layout Plain Layout
30317 This is text with background color.
30318 This is text with background color.
30321 \begin_layout Plain Layout
30322 \begin_inset VSpace defskip
30325 The text can have footnotes
30329 \begin_layout Plain Layout
30330 Another example footnote
30335 and can include tables and figures.
30338 \begin_layout Plain Layout
30340 \begin_inset Tabular
30341 <lyxtabular version="3" rows="3" columns="3">
30342 <features tabularvalignment="middle">
30343 <column alignment="center" valignment="top" width="0">
30344 <column alignment="center" valignment="top" width="0">
30345 <column alignment="center" valignment="top" width="0">
30347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30350 \begin_layout Plain Layout
30356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30359 \begin_layout Plain Layout
30365 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30368 \begin_layout Plain Layout
30376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30379 \begin_layout Plain Layout
30385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30388 \begin_layout Plain Layout
30390 \begin_inset Quotes erd
30398 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30401 \begin_layout Plain Layout
30409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30412 \begin_layout Plain Layout
30418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30421 \begin_layout Plain Layout
30427 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30430 \begin_layout Plain Layout
30450 \begin_layout Plain Layout
30460 \begin_layout Section
30461 Rotated and Scaled Boxes
30464 \begin_layout Standard
30465 To use the commands described in this section, the LaTeX-package
30470 \begin_inset Index idx
30473 \begin_layout Plain Layout
30474 LaTeX-packages ! graphicx
30479 needs to be loaded in the document preamble with the command
30482 \begin_layout Standard
30487 @ifundefined{rotatebox}
30488 \begin_inset Newline newline
30492 \begin_inset Phantom HPhantom
30495 \begin_layout Plain Layout
30498 \begin_inset space ~
30508 usepackage{graphicx}}{}
30511 \begin_layout Standard
30512 \begin_inset Note Greyedout
30515 \begin_layout Plain Layout
30520 Some DVI-viewers can't display rotated or scaled material.
30528 \begin_layout Standard
30529 \begin_inset Note Greyedout
30532 \begin_layout Plain Layout
30537 Floats mustn't be inside a rotated or scaled box.
30545 \begin_layout Subsection
30547 \begin_inset Index idx
30550 \begin_layout Plain Layout
30557 \begin_inset Index idx
30560 \begin_layout Plain Layout
30567 \begin_inset Index idx
30570 \begin_layout Plain Layout
30577 \begin_inset Index idx
30580 \begin_layout Plain Layout
30581 Table Customization ! Rotating
30589 \begin_layout Standard
30590 To rotate material, you can put it into a rotated box.
30591 Such a box is created using the command
30597 in TeX-Code with the following scheme:
30600 \begin_layout Standard
30605 rotatebox[rotation origin]{rotation angle}{box content}
30608 \begin_layout Standard
30609 The rotation origin is specified in the form
30614 The following positions are possible:
30634 (top), along with meaningful combinations of the four base positions.
30639 means that the rotation origin is at the top left corner of the box.
30640 When no rotation origin is specified, the position
30645 The rotation angle is a number that can be negative that specifies the
30647 The rotation direction is counterclockwise.
30650 \begin_layout Standard
30651 In the following example the command
30655 rotatebox[origin=c]{60}{
30657 was inserted as TeX-Code before the text
30658 \begin_inset Quotes eld
30662 \begin_inset Quotes erd
30665 ; after the text the box was closed by a closing brace
30672 \begin_layout Standard
30677 \begin_layout Plain Layout
30681 rotatebox[origin=c]{60}{
30690 \begin_layout Plain Layout
30700 \begin_layout Standard
30701 The box content can also be another box or an inline formula:
30704 \begin_layout Standard
30709 \begin_layout Plain Layout
30713 rotatebox[origin=r]{-60}{
30719 \begin_inset Box Doublebox
30729 height_special "totalheight"
30732 \begin_layout Plain Layout
30742 \begin_layout Plain Layout
30753 \begin_layout Plain Layout
30757 rotatebox[origin=lb]{60}{
30763 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30770 \begin_layout Plain Layout
30780 \begin_layout Standard
30781 or an image or table:
30784 \begin_layout Standard
30789 \begin_layout Plain Layout
30793 rotatebox[origin=lb]{90}{
30799 \begin_inset Graphics
30800 filename clipart/platypus.eps
30810 \begin_layout Plain Layout
30817 with a rotated image
30821 \begin_layout Plain Layout
30825 rotatebox[origin=l]{-90}{
30831 \begin_inset Tabular
30832 <lyxtabular version="3" rows="2" columns="2">
30833 <features tabularvalignment="middle">
30834 <column alignment="center" valignment="top" width="0">
30835 <column alignment="center" valignment="top" width="0">
30837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30840 \begin_layout Plain Layout
30846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30849 \begin_layout Plain Layout
30857 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30860 \begin_layout Plain Layout
30866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30869 \begin_layout Plain Layout
30884 \begin_layout Plain Layout
30894 \begin_layout Subsection
30896 \begin_inset Index idx
30899 \begin_layout Plain Layout
30906 \begin_inset Index idx
30909 \begin_layout Plain Layout
30916 \begin_inset Index idx
30919 \begin_layout Plain Layout
30926 \begin_inset Index idx
30929 \begin_layout Plain Layout
30930 Table Customization ! Scaling
30938 \begin_layout Standard
30939 To scale material the commands
30951 can be used as TeX-Code.
30954 \begin_layout Standard
30961 is used with the following scheme:
30964 \begin_layout Standard
30969 scalebox{horizontal}[vertical]{box content}
30972 \begin_layout Standard
30973 Horizontal and vertical are the corresponding scaling factors.
30974 If no vertical scaling factor is given, the horizontal factor will also
30975 be used as the vertical one.
30978 \begin_layout Standard
30985 creates for example a double size
30989 \begin_layout Plain Layout
31002 \begin_layout Plain Layout
31009 , compared with the document text size.
31012 \begin_layout Standard
31017 scalebox{2}[1]{Hello}
31019 on the other hand distorts the
31023 \begin_layout Plain Layout
31036 \begin_layout Plain Layout
31046 \begin_layout Standard
31047 If the scaling factor is negative, the box content will be mirrored.
31048 Therefore the command
31052 scalebox{-1}[1]{Hello}
31054 can be used to create mirror writing:
31058 \begin_layout Plain Layout
31071 \begin_layout Plain Layout
31081 \begin_layout Standard
31086 scalebox{1}[-1]{Hello}
31092 \begin_layout Plain Layout
31105 \begin_layout Plain Layout
31115 \begin_layout Standard
31120 scalebox{-1}[1]{box content}
31122 there exists the command
31123 \begin_inset Newline newline
31130 reflectbox{box content}
31135 \begin_layout Standard
31136 \begin_inset VSpace bigskip
31145 is used to scale the box to a defined width and height.
31146 The command scheme is:
31149 \begin_layout Standard
31154 resizebox{width}{height}{box content}
31157 \begin_layout Standard
31158 If one of the two command arguments given is an exclamation mark
31162 , the size is set so that the aspect ratio of the box content is kept.
31165 \begin_layout Standard
31170 resizebox{2cm}{1cm}{Hello}
31176 \begin_layout Plain Layout
31180 resizebox{2cm}{1cm}{
31189 \begin_layout Plain Layout
31197 \begin_inset Newline newline
31204 resizebox{2cm}{!}{Hello}
31210 \begin_layout Plain Layout
31223 \begin_layout Plain Layout
31233 \begin_layout Standard
31234 \begin_inset VSpace bigskip
31238 \begin_inset Note Greyedout
31241 \begin_layout Plain Layout
31258 are set to zero, no LaTeX-errors occur when exporting the document but
31259 the exported files can not or only partly be displayed.
31267 \begin_layout Standard
31268 \begin_inset VSpace bigskip
31274 \begin_layout Standard
31275 The boxes can be combined in any order.
31277 \begin_inset space \thinspace{}
31281 \begin_inset space \space{}
31285 \begin_inset Newline newline
31292 rotatebox[origin=c]{-45}{
31296 reflectbox{Hello}}}
31297 \begin_inset Newline newline
31305 \begin_layout Standard
31310 \begin_layout Plain Layout
31314 rotatebox[origin=c]{-45}{
31327 \begin_layout Plain Layout
31337 \begin_layout Standard
31339 Images, tables, and inline formulas are allowed as box content:
31342 \begin_layout Standard
31347 \begin_layout Plain Layout
31351 rotatebox[origin=c]{-30}{
31361 \begin_inset Graphics
31362 filename clipart/platypus.eps
31372 \begin_layout Plain Layout
31383 \begin_layout Plain Layout
31387 rotatebox[origin=c]{-45}{
31397 \begin_inset Tabular
31398 <lyxtabular version="3" rows="2" columns="2">
31399 <features tabularvalignment="middle">
31400 <column alignment="center" valignment="top" width="0">
31401 <column alignment="center" valignment="top" width="0">
31403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31406 \begin_layout Plain Layout
31412 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31415 \begin_layout Plain Layout
31423 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31426 \begin_layout Plain Layout
31432 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31435 \begin_layout Plain Layout
31450 \begin_layout Plain Layout
31461 \begin_layout Plain Layout
31465 rotatebox[origin=c]{-45}{
31475 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31482 \begin_layout Plain Layout
31492 \begin_layout Standard
31493 When the global formula style
31497 is used in the document
31501 \begin_layout Plain Layout
31503 \begin_inset Quotes eld
31507 \begin_inset Quotes erd
31510 is added to the document class options.
31515 , display style formulas can also be scaled.
31518 \begin_layout Chapter
31519 External Document Parts
31520 \begin_inset Index idx
31523 \begin_layout Plain Layout
31524 External Document Parts
31532 \begin_layout Standard
31535 Insert\SpecialChar \menuseparator
31538 you can insert external material to your document.
31542 \begin_layout Description
31544 \begin_inset space ~
31547 Document Another LyX document; its content is directly inserted to your
31551 \begin_layout Description
31553 \begin_inset space ~
31556 Text A text document; each line is inserted in your document as a separate
31560 \begin_layout Description
31562 \begin_inset space ~
31566 \begin_inset space ~
31570 \begin_inset space ~
31573 Lines A text document; text lines are inserted in your document continuously
31574 but an empty text line creates a new paragraph.
31577 \begin_layout Description
31579 \begin_inset space ~
31582 Material Files in various formats.
31585 \begin_layout Description
31587 \begin_inset space ~
31590 Document LyX or LaTeX-documents.
31593 \begin_layout Section
31595 \begin_inset Index idx
31598 \begin_layout Plain Layout
31599 External Document Parts ! External Material
31607 \begin_layout Standard
31608 The external material feature allows you to insert files in to your document
31609 without converting them to a format that can be read by the document output
31611 LyX takes care of the necessary conversions.
31612 This is similar to images that can be inserted in various image formats
31614 When you have enabled Instant Preview in LyX's preferences under
31617 \begin_inset space ~
31621 \begin_inset space ~
31624 feel\SpecialChar \menuseparator
31627 , the external material types Dia and Xfig are directly shown in LyX.
31630 \begin_layout Standard
31631 External material can be inserted via the
31635 dialog that is accessible with the menu
31637 Insert\SpecialChar \menuseparator
31638 File\SpecialChar \menuseparator
31640 \begin_inset space ~
31646 Currently the following file types (
31653 \begin_layout Description
31654 ChessDiagram This template supports chess position diagrams made with the
31658 \begin_inset CommandInset href
31661 target "http://en.wikipedia.org/wiki/XBoard"
31670 \begin_layout Description
31671 Date This inserts the date in the form
31676 This is a date inserted as external material:
31677 \begin_inset External
31684 \begin_inset space ~
31688 \begin_inset Note Note
31691 \begin_layout Plain Layout
31692 Remove the protected space when bug 4398 is fixed!
31698 \begin_inset Newline newline
31701 The date is not shown within LyX, only in the output.
31702 There are two other methods of inserting a date: Via menu
31704 Insert\SpecialChar \menuseparator
31707 and with the LaTeX command
31714 The different methods are compared in Table
31715 \begin_inset space ~
31719 \begin_inset CommandInset ref
31721 reference "tab:Comparison-of-the"
31728 \begin_layout Description
31729 Dia This template supports diagrams created with the program
31732 \begin_inset CommandInset href
31735 target "http://en.wikipedia.org/wiki/Dia_(software)"
31744 \begin_layout Description
31745 LilyPond This template is used for music notation typeset with the program
31746 \begin_inset Newline linebreak
31752 \begin_inset CommandInset href
31755 target "http://en.wikipedia.org/wiki/LilyPond"
31764 \begin_layout Description
31765 PDFPages With this template you can insert PDF documents to your document.
31766 To insert certain or all pages of a PDF, use the
31776 LaTeX and LyX options
31778 tab according to the template description in the dialog.
31783 option is given, only the first page of the PDF will be inserted.
31786 \begin_layout Description
31787 RasterImage This can be used for bitmap images.
31788 Nearly all popular image formats are supported.
31789 The image can be treated in the
31793 dialog like the images that are usually included via the
31797 dialog as described in section
31798 \begin_inset space ~
31802 \begin_inset CommandInset ref
31804 reference "sec:Graphics-Dialog"
31809 The difference is that only raster images are allowed; that means that
31810 PDF and EPS-images are not supported.
31813 \begin_layout Description
31814 XFig This template supports images created with the program
31817 \begin_inset CommandInset href
31820 target "http://en.wikipedia.org/wiki/Xfig"
31829 \begin_layout Standard
31830 \begin_inset Float table
31836 \begin_layout Plain Layout
31837 \begin_inset Caption
31839 \begin_layout Plain Layout
31840 \begin_inset CommandInset label
31842 name "tab:Comparison-of-the"
31846 Comparison of the date input methods.
31854 \begin_layout Plain Layout
31856 \begin_inset Tabular
31857 <lyxtabular version="3" rows="4" columns="4">
31858 <features tabularvalignment="middle">
31859 <column alignment="center" valignment="top" width="0">
31860 <column alignment="center" valignment="top" width="0">
31861 <column alignment="center" valignment="top" width="0">
31862 <column alignment="center" valignment="top" width="0">
31864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31867 \begin_layout Plain Layout
31873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31876 \begin_layout Plain Layout
31879 External Material\SpecialChar \menuseparator
31885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31888 \begin_layout Plain Layout
31891 Insert\SpecialChar \menuseparator
31897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31900 \begin_layout Plain Layout
31912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31915 \begin_layout Plain Layout
31921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31924 \begin_layout Plain Layout
31930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31933 \begin_layout Plain Layout
31939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31942 \begin_layout Plain Layout
31943 as TeX-Code inset box
31950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31953 \begin_layout Plain Layout
31959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31962 \begin_layout Plain Layout
31968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31971 \begin_layout Plain Layout
31977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31980 \begin_layout Plain Layout
31988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31991 \begin_layout Plain Layout
31997 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32000 \begin_layout Plain Layout
32006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32009 \begin_layout Plain Layout
32015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32018 \begin_layout Plain Layout
32037 \begin_layout Standard
32038 When you use the option
32050 dialog, only the path to the inserted file is shown in the output.
32051 \begin_inset Newline newline
32054 External material is displayed in LyX either as a box like this:
32055 \begin_inset Graphics
32056 filename clipart/ExternalMaterialQt4.png
32058 scaleBeforeRotation
32062 or as image, depending on the option
32068 LaTeX and LyX options
32073 \begin_layout Standard
32080 manual explains how you can define your own templates.
32083 \begin_layout Section
32085 \begin_inset CommandInset label
32087 name "sec:Child-Documents"
32092 \begin_inset Index idx
32095 \begin_layout Plain Layout
32096 External Document Parts ! Child Documents
32102 \begin_inset Index idx
32105 \begin_layout Plain Layout
32114 \begin_layout Standard
32115 Child documents are used when you have a long document consisting of several
32116 larger parts or sections.
32117 For maintenance it is often useful and sometimes even required to split
32118 the document in several files that can be revised separately.
32119 The different documents are then the so called child documents and a master
32120 document connects them to print the full document or parts of it.
32121 A child documents inherits elements of its master, for example the LaTeX
32122 preamble, the bibliography, and labels for cross-references.
32125 \begin_layout Standard
32126 To be able to work on child documents without the need to open their master,
32127 specify in the child document the master in the menu
32129 Document\SpecialChar \menuseparator
32130 Settings\SpecialChar \menuseparator
32132 \begin_inset space ~
32138 This master document will then be used in the background by LyX when you
32139 edit the child document.
32142 \begin_layout Standard
32143 Included documents are displayed in LyX as a box like this:
32144 \begin_inset Graphics
32145 filename clipart/ChildDocumentQt4.png
32147 scaleBeforeRotation
32151 To include child documents in a master document use the menu
32153 Insert\SpecialChar \menuseparator
32154 File\SpecialChar \menuseparator
32156 \begin_inset space ~
32162 A dialog pops up where you can choose between four include methods:
32165 \begin_layout Description
32166 Include You can include LyX and LaTeX-documents.
32175 dialog, the included documents will be opened in LyX in a new file tab
32176 so that you can modify them.
32177 \begin_inset Newline newline
32183 \begin_layout Standard
32184 Here is a child document inserted using
32189 \begin_inset CommandInset include
32190 LatexCommand include
32191 filename "DummyDocument1.lyx"
32198 \begin_layout Standard
32199 The section numbering includes the sections of the included files in the
32200 order they are inserted in the master document.
32201 The included example document has for example a subsection that is numbered
32202 as a subsection of this section.
32203 Labels of included documents can be referenced: Subsection
32204 \begin_inset space ~
32208 \begin_inset CommandInset ref
32210 reference "sub:External-Subsection-1"
32217 \begin_layout Standard
32218 The preamble of the child document is ignored; only the preamble of the
32219 master document is used.
32220 Branches in child documents will be ignored by the master document when
32221 the master document does not have a branch with the same name.
32222 Included documents are inserted starting on a new page and ending with
32226 \begin_layout Standard
32227 If you are only working on a certain chapter of a large document and want
32228 to save compiling time, you can put each included file into a branch.
32232 \begin_layout Plain Layout
32233 Branches are described in section
32246 By enabling/disabling branches you can decide what included files will
32247 appear in the output.
32250 \begin_layout Standard
32251 \begin_inset Note Greyedout
32254 \begin_layout Plain Layout
32259 Due to a bug in LyX the LaTeX command
32265 can currently not be used as an alternative to decide what files should
32274 \begin_layout Standard
32275 \begin_inset Note Greyedout
32278 \begin_layout Plain Layout
32283 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32284 w the document in case the child document uses another document class than
32285 the master document as this will lead to unexpected outputs.
32293 \begin_layout Description
32294 Input This method is very similar to the Include method.
32295 The differences are:
32299 \begin_layout Itemize
32300 Input files don't start with a new page and don't end with a page break.
32303 \begin_layout Itemize
32304 Input files can be previewed in LyX when
32307 \begin_inset space ~
32312 is enabled in LyX's preferences under
32315 \begin_inset space ~
32319 \begin_inset space ~
32322 feel\SpecialChar \menuseparator
32328 \begin_layout Itemize
32339 \begin_layout Standard
32340 Here is a child document inserted using
32345 \begin_inset CommandInset include
32347 filename "DummyDocument2.lyx"
32354 \begin_layout Description
32355 Verbatim With this method every text file can be included.
32356 The file is shown in the output with its source code; no command used in
32357 the text is invoked.
32358 You can use the option
32360 Mark spaces in output
32362 that displays the character
32363 \begin_inset Quotes eld
32370 \begin_layout Plain Layout
32380 \begin_inset Quotes erd
32383 for every space character in the source code.
32384 The difference from the method via the menu
32386 Insert\SpecialChar \menuseparator
32387 File\SpecialChar \menuseparator
32389 \begin_inset space ~
32394 is that the document content is not shown in LyX.
32397 \begin_layout Standard
32398 Here is a child document inserted as Verbatim:
32399 \begin_inset CommandInset include
32400 LatexCommand verbatiminput
32401 filename "DummyTextDocument.txt"
32406 \begin_inset VSpace bigskip
32409 Here is a child document inserted as Verbatim using the
32411 Mark spaces in output
32414 \begin_inset CommandInset include
32415 LatexCommand verbatiminput*
32416 filename "DummyTextDocument.txt"
32423 \begin_layout Standard
32424 \begin_inset VSpace bigskip
32430 \begin_layout Standard
32431 \begin_inset Note Greyedout
32434 \begin_layout Plain Layout
32439 As you can see in the examples above, the text of the documents included
32444 is not broken at the end of the document lines.
32452 \begin_layout Description
32453 Listings This type is described in chapter
32454 \begin_inset space ~
32458 \begin_inset CommandInset ref
32460 reference "cha:Program-Code-Listings"
32467 \begin_layout Standard
32468 \begin_inset Note Greyedout
32471 \begin_layout Plain Layout
32476 Including the same document twice in a document using different methods
32477 could cause LaTeX-problems.
32485 \begin_layout Chapter
32486 Program Code Listings
32487 \begin_inset CommandInset label
32489 name "cha:Program-Code-Listings"
32494 \begin_inset Index idx
32497 \begin_layout Plain Layout
32504 \begin_inset Index idx
32507 \begin_layout Plain Layout
32514 \begin_inset Index idx
32517 \begin_layout Plain Layout
32526 \begin_layout Standard
32527 To include and typeset program code you can use the
32531 inset that can be inserted via the menu
32533 Insert\SpecialChar \menuseparator
32542 \begin_inset Index idx
32545 \begin_layout Plain Layout
32546 LaTeX-packages ! listings
32551 provides a powerful and flexible way to insert program source code into
32555 \begin_layout Standard
32556 Right-clicking on a listings inset opens the context menu containing where
32557 you can set the listings format.
32560 \begin_layout Standard
32561 By default, a listing starts a new paragraph in the output.
32562 The placement option
32565 \begin_inset space ~
32570 prints the listing inline like this:
32571 \begin_inset listings
32572 lstparams "language={C++}"
32576 \begin_layout Plain Layout
32584 \begin_inset Newline newline
32591 creates a listings float where you can specify the placement options
32592 \begin_inset Quotes eld
32600 \begin_inset Quotes erd
32604 \begin_inset Quotes eld
32612 \begin_inset Quotes erd
32616 \begin_inset Quotes eld
32624 \begin_inset Quotes erd
32628 \begin_inset Quotes eld
32636 \begin_inset Quotes erd
32639 corresponding to the float placement options described in section
32640 \begin_inset space ~
32644 \begin_inset CommandInset ref
32646 reference "sec:Float-Placement"
32651 The placement options can be mixed and are inserted without any separation,
32653 \begin_inset space \thinspace{}
32657 \begin_inset space \space{}
32661 \begin_inset Quotes eld
32669 \begin_inset Quotes erd
32674 \begin_inset Quotes eld
32678 \begin_inset Quotes erd
32681 has sometimes no effect, but you don't need to use the
32685 option in this case as also non-float listings can have captions and be
32689 \begin_layout Standard
32690 You can add captions to listings with the menu
32692 Insert\SpecialChar \menuseparator
32696 Listings can be referenced like floats: Listing
32697 \begin_inset space ~
32701 \begin_inset CommandInset ref
32703 reference "lst:Example-Listing"
32710 \begin_layout Standard
32711 \begin_inset listings
32712 lstparams "language=Python"
32716 \begin_layout Plain Layout
32718 \begin_inset Caption
32720 \begin_layout Plain Layout
32721 \begin_inset CommandInset label
32723 name "lst:Example-Listing"
32727 Example Listing float
32732 # Example listing float
32735 \begin_layout Plain Layout
32740 \begin_layout Plain Layout
32742 'this is a python function'
32745 \begin_layout Plain Layout
32755 \begin_layout Standard
32756 When you have set a programming language in the listings dialog, the keywords
32757 of this language will be recognized and specially typeset in the output.
32758 In the example listings the Python keyword
32759 \begin_inset Quotes eld
32763 \begin_inset Quotes erd
32766 is recognized and printed bold in the output.
32769 \begin_layout Standard
32770 \begin_inset Note Greyedout
32773 \begin_layout Plain Layout
32778 If you don't get bold keywords when using typewriter fonts, your
32782 font probably doesn't provide a bold shape.
32783 In this case select a different one in the menu
32785 Document\SpecialChar \menuseparator
32786 Settings\SpecialChar \menuseparator
32798 provide bold shapes.)
32806 \begin_layout Standard
32810 \begin_inset space ~
32815 of the listings dialog you can specify the line numbering style.
32816 You can insert a number to specify which lines are numbered in the field
32823 \begin_inset space \thinspace{}
32827 \begin_inset space \space{}
32831 \begin_inset Quotes eld
32835 \begin_inset Quotes erd
32838 , only every 3rd line will be numbered.
32841 \begin_layout Standard
32842 You can furthermore specify a range of lines; only these will then appear
32846 Extended character table
32848 should be used when you use national characters like the German umlauts
32850 \begin_inset Newline newline
32853 Here is an example listing with left line numbering, step
32854 \begin_inset Quotes eld
32858 \begin_inset Quotes erd
32862 \begin_inset Quotes eld
32866 \begin_inset Quotes erd
32870 \begin_inset Quotes eld
32873 Extended character table
32874 \begin_inset Quotes erd
32878 \begin_inset Quotes eld
32882 \begin_inset space ~
32886 \begin_inset space ~
32890 \begin_inset Quotes erd
32894 \begin_inset space \thinspace{}
32898 \begin_inset space \thinspace{}
32904 \begin_layout Standard
32905 \begin_inset listings
32906 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32910 \begin_layout Plain Layout
32915 \begin_layout Plain Layout
32917 'this is a python function'
32920 \begin_layout Plain Layout
32925 \begin_layout Plain Layout
32930 \begin_layout Plain Layout
32932 'This is a German word: Tschüß'
32935 \begin_layout Plain Layout
32940 \begin_layout Plain Layout
32945 \begin_layout Plain Layout
32947 'this is a python function'
32950 \begin_layout Plain Layout
32960 \begin_layout Standard
32961 When you have tabulators in your listing, you can specify the number of
32962 characters that are spanned by a tabulator in the field
32965 \begin_inset space ~
32973 \begin_layout Standard
32974 \begin_inset Note Greyedout
32977 \begin_layout Plain Layout
32982 Due to a bug in the
32986 package the line numbering is shifted by a line by every previous listing.
32987 That's the reason why the lines 2 and 5 are numbered in the above listing
32988 and not the lines 3 and 6.
32996 \begin_layout Standard
32997 \begin_inset VSpace bigskip
33003 \begin_layout Standard
33004 It is also possible to print lines from a file as listing.
33005 To do this, use the menu
33007 Insert\SpecialChar \menuseparator
33008 File\SpecialChar \menuseparator
33011 and choose the type
33019 \begin_layout Plain Layout
33020 The other child document types are described in section
33021 \begin_inset space ~
33025 \begin_inset CommandInset ref
33027 reference "sec:Child-Documents"
33036 In the child document dialog you can specify the listing parameters in
33038 To show a list of all available parameters, type in a question mark
33039 \begin_inset Quotes eld
33043 \begin_inset Quotes erd
33049 \begin_layout Standard
33050 To reference child document listings, write a label text into the corresponding
33051 field of the child document dialog.
33052 The label can then be referenced using the menu
33054 Insert\SpecialChar \menuseparator
33060 \begin_layout Standard
33062 \begin_inset space ~
33066 \begin_inset CommandInset ref
33068 reference "lst:file-listing"
33072 is an example for a listing of a file; there the lines 10
33073 \begin_inset space \thinspace{}
33077 \begin_inset space \thinspace{}
33080 15 of this LyX file are listed.
33083 \begin_layout Standard
33084 \begin_inset CommandInset include
33085 LatexCommand lstinputlisting
33086 filename "EmbeddedObjects.lyx"
33087 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33094 \begin_layout Standard
33095 \begin_inset VSpace bigskip
33101 \begin_layout Standard
33102 Inserting a formula into a listing can be done the following way:
33105 \begin_layout Enumerate
33106 Open the listings dialog and add
33107 \begin_inset Newline newline
33115 \begin_inset Newline newline
33118 to the field of the
33125 \begin_layout Enumerate
33126 Create a formula outside the listing
33129 \begin_layout Enumerate
33130 Copy the content of the formula (not the formula inset) to the clipboard
33140 \begin_layout Enumerate
33141 In the listing write
33142 \begin_inset Quotes eld
33150 \begin_inset Quotes erd
33153 and copy from the clipboard between the dollar-signs (shortcut
33162 \begin_layout Standard
33163 \begin_inset listings
33164 lstparams "language=Python,mathescape=true"
33168 \begin_layout Plain Layout
33170 \begin_inset Caption
33172 \begin_layout Plain Layout
33173 Example Listing float containing a formula
33178 # Example listing float
33181 \begin_layout Plain Layout
33186 \begin_layout Plain Layout
33199 \begin_layout Plain Layout
33209 \begin_layout Standard
33210 \begin_inset VSpace bigskip
33216 \begin_layout Standard
33217 Global listings settings can be set in the
33219 Document\SpecialChar \menuseparator
33220 Settings\SpecialChar \menuseparator
33224 To get there a list of available options, type in a question mark
33225 \begin_inset Quotes eld
33229 \begin_inset Quotes erd
33235 \begin_inset space ~
33243 \begin_layout Standard
33244 For more information about the
33248 package, we refer to its documentation
33249 \begin_inset CommandInset citation
33258 \begin_layout Standard
33259 \begin_inset Newpage newpage
33265 \begin_layout Chapter
33267 Units available in LyX
33268 \begin_inset Index idx
33271 \begin_layout Plain Layout
33278 \begin_inset CommandInset label
33280 name "cha:Units-available-in"
33287 \begin_layout Standard
33288 To understand the units described in this documentation, Table
33289 \begin_inset space ~
33293 \begin_inset CommandInset ref
33295 reference "tab:Units"
33299 explains all units available in LyX.
33302 \begin_layout Standard
33303 \begin_inset Float table
33309 \begin_layout Plain Layout
33310 \begin_inset Caption
33312 \begin_layout Plain Layout
33313 \begin_inset CommandInset label
33327 \begin_layout Plain Layout
33328 \begin_inset VSpace medskip
33334 \begin_layout Plain Layout
33336 \begin_inset Tabular
33337 <lyxtabular version="3" rows="20" columns="2">
33338 <features tabularvalignment="middle">
33339 <column alignment="center" valignment="top" width="0">
33340 <column alignment="center" valignment="top" width="0">
33342 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33345 \begin_layout Plain Layout
33351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33354 \begin_layout Plain Layout
33362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33365 \begin_layout Plain Layout
33371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33374 \begin_layout Plain Layout
33382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33385 \begin_layout Plain Layout
33391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33394 \begin_layout Plain Layout
33402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33405 \begin_layout Plain Layout
33411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33414 \begin_layout Plain Layout
33422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33425 \begin_layout Plain Layout
33431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33434 \begin_layout Plain Layout
33436 \begin_inset space \thinspace{}
33440 \begin_inset space \thinspace{}
33450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33453 \begin_layout Plain Layout
33459 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33462 \begin_layout Plain Layout
33464 \begin_inset space \thinspace{}
33468 \begin_inset space \thinspace{}
33478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33481 \begin_layout Plain Layout
33487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33490 \begin_layout Plain Layout
33491 scaled point (65536
33492 \begin_inset space \thinspace{}
33496 \begin_inset space \thinspace{}
33506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33509 \begin_layout Plain Layout
33515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33518 \begin_layout Plain Layout
33520 \begin_inset space \thinspace{}
33524 \begin_inset space \thinspace{}
33534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33537 \begin_layout Plain Layout
33543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33546 \begin_layout Plain Layout
33548 \begin_inset space \thinspace{}
33552 \begin_inset Formula $\approx$
33556 \begin_inset space \thinspace{}
33566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33569 \begin_layout Plain Layout
33575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33578 \begin_layout Plain Layout
33580 \begin_inset space \thinspace{}
33584 \begin_inset space \thinspace{}
33594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33597 \begin_layout Plain Layout
33603 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33606 \begin_layout Plain Layout
33607 % of original image width
33614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33617 \begin_layout Plain Layout
33623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33626 \begin_layout Plain Layout
33634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33637 \begin_layout Plain Layout
33643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33646 \begin_layout Plain Layout
33654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33657 \begin_layout Plain Layout
33663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33666 \begin_layout Plain Layout
33674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33677 \begin_layout Plain Layout
33683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33686 \begin_layout Plain Layout
33694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33697 \begin_layout Plain Layout
33703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33706 \begin_layout Plain Layout
33714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33717 \begin_layout Plain Layout
33723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33726 \begin_layout Plain Layout
33734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33737 \begin_layout Plain Layout
33743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33746 \begin_layout Plain Layout
33758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33761 \begin_layout Plain Layout
33767 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33770 \begin_layout Plain Layout
33782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33785 \begin_layout Plain Layout
33791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33794 \begin_layout Plain Layout
33796 \begin_inset space \thinspace{}
33800 \begin_inset space \thinspace{}
33821 \begin_layout Chapter
33822 Output File Formats with Graphics
33823 \begin_inset CommandInset label
33825 name "cha:Output-File-Formats"
33832 \begin_layout Section
33834 \begin_inset Index idx
33837 \begin_layout Plain Layout
33844 \begin_inset Index idx
33847 \begin_layout Plain Layout
33852 \begin_layout Plain Layout
33863 \begin_layout Plain Layout
33878 \begin_layout Standard
33879 This file type has the extension
33880 \begin_inset Quotes eld
33888 \begin_inset Quotes erd
33893 \begin_inset Quotes eld
33897 \begin_inset Quotes erd
33900 (DVI), because it is completely portable; you can move them from one machine
33901 to another without needing to do any sort of conversion.
33902 At the time when this file-format was developed, this was no matter of
33904 DVIs are used for quick previews and as pre-stage for other output formats,
33908 \begin_layout Standard
33909 \begin_inset Note Greyedout
33912 \begin_layout Plain Layout
33917 DVI-files do not contain images; they will only be a linked.
33922 So don't forget this, if you move your
33926 file to another computer.
33927 This property can also slow down your computer when you view the DVI, because
33928 the DVI-viewer has to convert the image in the background to make it visible
33929 when you scroll in the DVI.
33930 So it is recommended that you use PDF for files with many images.
33933 \begin_layout Standard
33934 You can export your document to DVI by using the menu
33936 File\SpecialChar \menuseparator
33937 Export\SpecialChar \menuseparator
33941 You can view your document as DVI via the
33945 menu or by using the toolbar button
33946 \begin_inset Graphics
33947 filename ../images/buffer-view_dvi.png
33949 scaleBeforeRotation
33956 \begin_layout Section
33958 \begin_inset CommandInset label
33960 name "sec:PostScript"
33965 \begin_inset Index idx
33968 \begin_layout Plain Layout
33969 File Formats ! PostScript
33975 \begin_inset Index idx
33978 \begin_layout Plain Layout
33983 \begin_layout Plain Layout
33994 \begin_layout Plain Layout
34009 \begin_layout Standard
34010 This file type has the extension
34011 \begin_inset Quotes eld
34019 \begin_inset Quotes erd
34023 PostScript was developed by the company
34027 as a printer language.
34028 The file therefore contains commands that the printer uses to print the
34030 PostScript can be seen as a
34031 \begin_inset Quotes eld
34034 programming language
34035 \begin_inset Quotes erd
34038 ; you can calculate with it and draw diagrams and images
34042 \begin_layout Plain Layout
34043 If you are interested to learn more about this, have a look at the LaTeX-package
34049 \begin_inset CommandInset citation
34061 Due to this ability, the files are often bigger than PDFs.
34064 \begin_layout Standard
34065 PostScript can only contain images in the format
34066 \begin_inset Quotes eld
34069 Encapsulated PostScript
34070 \begin_inset Quotes erd
34073 (EPS, file extension
34074 \begin_inset Quotes eld
34082 \begin_inset Quotes erd
34086 As LyX allows you to use any known image format in your document, it has
34087 to convert images in the background to EPS.
34089 \begin_inset space ~
34093 \begin_inset space ~
34096 images in your document, LyX has to do 50
34097 \begin_inset space ~
34100 conversions whenever you view or export your document.
34101 This will slow down your work flow with LyX drastically.
34102 So if you plan to use PostScript, you can insert your images directly as
34103 EPS to avoid this problem.
34106 \begin_layout Standard
34107 You can export your document to PostScript using the menu
34109 File\SpecialChar \menuseparator
34110 Export\SpecialChar \menuseparator
34114 You can view your document as PostScript via the
34118 menu or by using the toolbar button
34119 \begin_inset Graphics
34120 filename ../images/buffer-view_ps.png
34122 scaleBeforeRotation
34129 \begin_layout Section
34131 \begin_inset Index idx
34134 \begin_layout Plain Layout
34141 \begin_inset Index idx
34144 \begin_layout Plain Layout
34153 \begin_layout Standard
34154 This file type has the extension
34155 \begin_inset Quotes eld
34163 \begin_inset Quotes erd
34168 \begin_inset Quotes eld
34171 Portable Document Format
34172 \begin_inset Quotes erd
34175 (PDF) was developed by
34179 as a derivative of PostScript.
34180 It is more compressed and it uses fewer commands than PostScript.
34182 \begin_inset Quotes eld
34186 \begin_inset Quotes erd
34189 implies, it can be processed at any computer system and the printed output
34190 looks exactly the same.
34193 \begin_layout Standard
34194 PDF can contain images in its own PDF format, in the format
34195 \begin_inset Quotes eld
34198 Joint Photographic Experts Group
34199 \begin_inset Quotes erd
34202 (JPG, file extension
34203 \begin_inset Quotes eld
34211 \begin_inset Quotes erd
34215 \begin_inset Quotes eld
34223 \begin_inset Quotes erd
34226 ), and in the format
34227 \begin_inset Quotes eld
34230 Portable Network Graphics
34231 \begin_inset Quotes erd
34234 (PNG, file extension
34235 \begin_inset Quotes eld
34243 \begin_inset Quotes erd
34247 Nevertheless you can use any other image format, because LyX converts them
34248 in the background to one of these formats.
34249 But as described in the section about PostScript, the image conversion
34250 will slow down your work flow.
34251 So it is recommended that you use images in one of the three mentioned
34255 \begin_layout Standard
34256 You can export your document to PDF via the menu
34258 File\SpecialChar \menuseparator
34261 in three different ways:
34264 \begin_layout Description
34266 \begin_inset space ~
34269 (ps2pdf) This uses the program
34273 that creates a PDF from a PostScript-version of your file.
34274 The PostScript-version is produced by the program
34278 which uses a DVI-version as intermediate step.
34279 So this export variant consists of three conversions.
34282 \begin_layout Description
34284 \begin_inset space ~
34287 (dvipdfm) This uses the program
34291 that converts your file in the background to DVI and in a second step to
34295 \begin_layout Description
34297 \begin_inset space ~
34300 (pdflatex) This uses the program
34304 that converts your file directly to PDF.
34307 \begin_layout Standard
34308 It is recommended that you use
34311 \begin_inset space ~
34320 supports all features of actual PDF-versions, is quick and works stable.
34325 is not under development and therefore a bit outdated.
34328 \begin_layout Standard
34329 You can view your document as PDF via the
34333 menu or by using the toolbar button
34334 \begin_inset Graphics
34335 filename ../images/buffer-view_pdf2.png
34337 scaleBeforeRotation
34348 \begin_inset space ~
34356 \begin_layout Chapter
34357 Explanation of Equation
34358 \begin_inset space ~
34362 \begin_inset CommandInset ref
34369 \begin_inset CommandInset label
34371 name "cha:Explanation-of-Equation"
34378 \begin_layout Standard
34379 We can calculate the total width of
34384 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34390 \begin_layout Standard
34391 \begin_inset Formula \begin{equation}
34392 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
34397 \begin_inset Formula $W_{g\, n}$
34400 is the given width of all cells,
34406 is the LaTeX-length between the cell text and the cell border (its default
34408 \begin_inset space \thinspace{}
34418 is the thickness of the cell border line, the default is 0.4
34419 \begin_inset space \thinspace{}
34425 \begin_layout Standard
34427 \begin_inset space ~
34431 \begin_inset CommandInset ref
34433 reference "eq:Wtot_n"
34437 , the total width of a multicolumn
34438 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34444 \begin_layout Standard
34445 \begin_inset Formula \begin{equation}
34446 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34453 \begin_layout Standard
34454 By setting equation
34455 \begin_inset space ~
34459 \begin_inset CommandInset ref
34461 reference "eq:Wtot_n"
34466 \begin_inset CommandInset ref
34468 reference "eq:Wtot_mult"
34472 equal we can calculate the needed given width
34473 \begin_inset Formula $W_{g\, n}$
34480 columns are spanned, so that each column has a total width of
34481 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34487 \begin_layout Standard
34488 \begin_inset Formula \begin{equation}
34489 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34496 \begin_layout Bibliography
34497 \labelwidthstring Bibliography
34498 \begin_inset CommandInset bibitem
34499 LatexCommand bibitem
34500 key "latexcompanion"
34504 Frank Mittelbach and Michel Goossens:
34506 The LaTeX Companion Second Edition.
34509 Addison-Wesley, 2004
34512 \begin_layout Bibliography
34513 \labelwidthstring Bibliography
34514 \begin_inset CommandInset bibitem
34515 LatexCommand bibitem
34520 Helmut Kopka and Patrick W.
34523 A Guide to LaTeX Fourth Edition.
34526 Addison-Wesley, 2003
34529 \begin_layout Bibliography
34530 \labelwidthstring Bibliography
34531 \begin_inset CommandInset bibitem
34532 LatexCommand bibitem
34539 LaTeX: A Document Preparation System.
34542 Addison-Wesley, second edition, 1994
34545 \begin_layout Bibliography
34546 \labelwidthstring Bibliography
34547 \begin_inset CommandInset bibitem
34548 LatexCommand bibitem
34553 Documentation of the LaTeX-package
34556 \begin_inset CommandInset href
34559 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34566 \begin_inset Index idx
34569 \begin_layout Plain Layout
34570 LaTeX-packages ! booktabs
34578 \begin_layout Bibliography
34579 \labelwidthstring Bibliography
34580 \begin_inset CommandInset bibitem
34581 LatexCommand bibitem
34586 Documentation of the LaTeX-package
34589 \begin_inset CommandInset href
34592 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34599 \begin_inset Index idx
34602 \begin_layout Plain Layout
34603 LaTeX-packages ! caption
34611 \begin_layout Bibliography
34612 \labelwidthstring Bibliography
34613 \begin_inset CommandInset bibitem
34614 LatexCommand bibitem
34619 Documentation of the LaTeX-package
34622 \begin_inset CommandInset href
34625 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34632 \begin_inset Index idx
34635 \begin_layout Plain Layout
34636 LaTeX-packages ! endfloat
34644 \begin_layout Bibliography
34645 \labelwidthstring Bibliography
34646 \begin_inset CommandInset bibitem
34647 LatexCommand bibitem
34652 Documentation of the LaTeX-package
34655 \begin_inset CommandInset href
34658 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34665 \begin_inset Index idx
34668 \begin_layout Plain Layout
34669 LaTeX-packages ! wrapfig
34673 \begin_layout Plain Layout
34690 \begin_layout Bibliography
34691 \labelwidthstring Bibliography
34692 \begin_inset CommandInset bibitem
34693 LatexCommand bibitem
34698 Documentation of the LaTeX-package
34701 \begin_inset CommandInset href
34704 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34711 \begin_inset Index idx
34714 \begin_layout Plain Layout
34715 LaTeX-packages ! footmisc
34723 \begin_layout Bibliography
34724 \labelwidthstring Bibliography
34725 \begin_inset CommandInset bibitem
34726 LatexCommand bibitem
34731 Documentation of the LaTeX-package
34734 \begin_inset CommandInset href
34737 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34744 \begin_inset Index idx
34747 \begin_layout Plain Layout
34748 LaTeX-packages ! hyperref
34756 \begin_layout Bibliography
34757 \labelwidthstring Bibliography
34758 \begin_inset CommandInset bibitem
34759 LatexCommand bibitem
34764 Documentation of the LaTeX-package
34767 \begin_inset CommandInset href
34770 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34777 \begin_inset Index idx
34780 \begin_layout Plain Layout
34781 LaTeX-packages ! hyperref
34789 \begin_layout Bibliography
34790 \labelwidthstring Bibliography
34791 \begin_inset CommandInset bibitem
34792 LatexCommand bibitem
34797 Documentation of the LaTeX-package
34800 \begin_inset CommandInset href
34803 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34810 \begin_inset Index idx
34813 \begin_layout Plain Layout
34814 LaTeX-packages ! KOMA-Script
34822 \begin_layout Bibliography
34823 \labelwidthstring Bibliography
34824 \begin_inset CommandInset bibitem
34825 LatexCommand bibitem
34830 Documentation of the LaTeX-package
34833 \begin_inset CommandInset href
34836 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34843 \begin_inset Index idx
34846 \begin_layout Plain Layout
34847 LaTeX-packages ! listings
34855 \begin_layout Bibliography
34856 \labelwidthstring Bibliography
34857 \begin_inset CommandInset bibitem
34858 LatexCommand bibitem
34863 Documentation of the LaTeX-package
34866 \begin_inset CommandInset href
34869 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34876 \begin_inset Index idx
34879 \begin_layout Plain Layout
34880 LaTeX-packages ! marginnote
34888 \begin_layout Bibliography
34889 \labelwidthstring Bibliography
34890 \begin_inset CommandInset bibitem
34891 LatexCommand bibitem
34896 Web page of the LaTeX-package
34899 \begin_inset CommandInset href
34902 target "http://tug.org/PSTricks/"
34909 \begin_inset Index idx
34912 \begin_layout Plain Layout
34913 LaTeX-packages ! PSTricks
34921 \begin_layout Bibliography
34922 \labelwidthstring Bibliography
34923 \begin_inset CommandInset bibitem
34924 LatexCommand bibitem
34929 Documentation of the LaTeX-package
34932 \begin_inset CommandInset href
34935 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34942 \begin_inset Index idx
34945 \begin_layout Plain Layout
34946 LaTeX-packages ! sidecap
34954 \begin_layout Bibliography
34955 \labelwidthstring Bibliography
34956 \begin_inset CommandInset bibitem
34957 LatexCommand bibitem
34962 Documentation of the LaTeX-package
34965 \begin_inset CommandInset href
34968 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
34975 \begin_inset Index idx
34978 \begin_layout Plain Layout
34979 LaTeX-packages ! prettyref
34987 \begin_layout Bibliography
34988 \labelwidthstring Bibliography
34989 \begin_inset CommandInset bibitem
34990 LatexCommand bibitem
34995 Documentation of the LaTeX-package
34998 \begin_inset CommandInset href
35001 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
35008 \begin_inset Index idx
35011 \begin_layout Plain Layout
35012 LaTeX-packages ! refstyle
35020 \begin_layout Bibliography
35021 \labelwidthstring Bibliography
35022 \begin_inset CommandInset bibitem
35023 LatexCommand bibitem
35029 \begin_inset CommandInset href
35032 target "http://wiki.lyx.org/LyX/NewInLyX20"
35036 about new features in
35043 \begin_layout Standard
35044 \begin_inset CommandInset index_print
35045 LatexCommand printindex