1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
5 \origin /systemlyxdir/doc/
12 % set fonts for nicer pdf view
13 \IfFileExists{lmodern.sty}
14 {\usepackage{lmodern}}{}
16 \fi % end if pdflatex is used
18 % that links to image floats jumps
19 % to the beginning of the float and
21 \usepackage[figure]{hypcap}
23 % the pages of the TOC is numbered roman
24 % and a PDF-bookmark for the TOC is added
25 \let\myTOC\tableofcontents
26 \renewcommand\tableofcontents{%
28 \pdfbookmark[1]{\contentsname}{}
32 % provides caption formatting
33 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
35 % provides commands to set caption
36 % beside tables/images
37 \newcommand{\TabBesBeg}[1][1.0]{%
39 \let\MyEndtable\endtable
40 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
42 \newcommand{\TabBesEnd}{%
44 \let\endtable\MyEndtable}
46 \newcommand{\FigBesBeg}[1][1.0]{%
48 \let\MyEndfigure\endfigure
49 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
51 \newcommand{\FigBesEnd}{%
53 \let\endfigure\MyEndfigure}
55 % enables calculation of values,
58 % increase the bottom float placement fraction
59 \renewcommand{\bottomfraction}{0.5}
61 % avoids that floats are placed before their
62 % corresponding section starts
63 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
65 % speed up the longtable calculation
66 \setcounter{LTchunksize}{100}
68 % used for scaled and rotated boxes
69 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
71 % used for colored tables
72 \@ifundefined{textcolor}
73 {\usepackage{color}}{}
74 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
75 \definecolor{lightgrey}{gray}{0.8}
77 % check for package colortbl
78 % used for colored table cells
80 \IfFileExists{colortbl.sty}
81 {\usepackage{colortbl}
82 \setboolean{colortbl}{true}}
83 {\setboolean{colortbl}{false}}
85 % used to have extra space in table cells
86 \@ifundefined{extrarowheight}
87 {\usepackage{array}}{}
88 \setlength{\extrarowheight}{2pt}
90 % used for customized tables
93 {>{\centering\hspace{0pt}}m{#1}}
96 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
99 {>{\columncolor{#1}\hspace{0pt}}c}
101 \newcolumntype{V}{!{\vrule width 1.5pt}}
103 \newcolumntype{W}{!{\color{green}\vline}}
106 % insert additional vertical space of
107 % 1.5 mm between footnotes
109 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
111 % number algorithm floats within chapters
112 \numberwithin{algorithm}{chapter}
114 % ------------------------------------
115 % used to check for needed LaTeX packages
118 % check for package arydshln
119 % used for tables with dashed lines
120 \newboolean{arydshln}
121 \IfFileExists{arydshln.sty}
122 {\usepackage{arydshln}
123 \setboolean{arydshln}{true}}
124 {\setboolean{arydshln}{false}}
126 % check for package marginnote
127 % used for margin notes
128 \newboolean{marginnote}
129 \IfFileExists{marginnote.sty}
130 {\usepackage{marginnote}
131 \let\marginpar\marginnote
132 \setboolean{marginnote}{true}}
133 {\setboolean{marginnote}{false}}
135 % check for package sidecap
136 % used for captions on the side
138 \IfFileExists{sidecap.sty}
139 {\usepackage{sidecap}
140 \setboolean{sidecap}{true}}
141 {\setboolean{sidecap}{false}}
144 % used for surrounded fixed objects
145 \newboolean{picinpar}
146 \IfFileExists{picinpar.sty}
147 {\usepackage{picinpar}
148 \setboolean{picinpar}{true}}
149 {\setboolean{picinpar}{false}}
152 \newboolean{lettrine}
153 \IfFileExists{lettrine.sty}
154 {\usepackage{lettrine}
155 \setboolean{lettrine}{true}}
156 {\setboolean{lettrine}{false}}
160 \IfFileExists{diagbox.sty}
161 {\usepackage{diagbox}
162 \setboolean{diagbox}{true}}
163 {\setboolean{diagbox}{false}}
165 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,usenames,dvipsnames,table
166 \use_default_options false
170 \maintain_unincluded_children false
172 \language_package default
177 \font_typewriter default
179 \font_default_family default
180 \use_non_tex_fonts false
186 \default_output_format default
188 \bibtex_command default
189 \index_command default
193 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
194 \pdf_author "LyX Team, Uwe Stöhr"
195 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
196 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
198 \pdf_bookmarksnumbered true
199 \pdf_bookmarksopen true
200 \pdf_bookmarksopenlevel 1
201 \pdf_breaklinks false
205 \pdf_pdfusetitle false
206 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
209 \use_package amsmath 2
210 \use_package amssymb 2
211 \use_package cancel 0
213 \use_package mathdots 1
214 \use_package mathtools 0
215 \use_package mhchem 1
216 \use_package stackrel 0
217 \use_package stmaryrd 0
218 \use_package undertilde 0
220 \cite_engine_type default
224 \paperorientation portrait
228 \notefontcolor #0000ff
235 \paragraph_separation skip
237 \quotes_language english
240 \paperpagestyle default
241 \tracking_changes false
242 \output_changes false
245 \html_be_strict false
252 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
256 by the \SpecialChar LyX
261 \begin_layout Plain Layout
263 If you have comments or error corrections, please send them to the \SpecialChar LyX
266 \begin_inset CommandInset href
268 name "lyx-docs@lists.lyx.org"
269 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
280 \begin_inset Note Note
283 \begin_layout Plain Layout
290 \begin_inset Newline newline
294 \begin_inset Newline newline
302 \begin_layout Standard
303 \begin_inset CommandInset toc
304 LatexCommand tableofcontents
311 \begin_layout Standard
312 \begin_inset Note Note
315 \begin_layout Plain Layout
316 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
327 diagbox, lettrine, marginnote, picinpar
334 If they are not installed you can export the document anyway but the sections
335 where the packages are required won't appear in the output.
338 \begin_layout Plain Layout
339 The latest PDF-version of this document can be found here:
340 \begin_inset Newline newline
345 http://wiki.lyx.org/\SpecialChar LyX
346 /DocumentationDevelopment#EmbeddedObjects
354 \begin_layout Chapter
356 \begin_inset Index idx
359 \begin_layout Plain Layout
366 \begin_inset Index idx
369 \begin_layout Plain Layout
374 \begin_layout Plain Layout
385 \begin_layout Plain Layout
400 \begin_layout Section
402 \begin_inset Index idx
405 \begin_layout Plain Layout
406 Figures ! Graphics Dialog
412 \begin_inset CommandInset label
414 name "sec:Graphics-Dialog"
421 \begin_layout Standard
422 To insert an image into your document, place the cursor at the text position
423 you want and click on the toolbar icon
426 arg "dialog-show-new-inset graphics"
431 Insert\SpecialChar menuseparator
435 Then a dialog will appear to choose the file to load.
436 The image will appear in the output exactly at the position where it is
440 \begin_layout Standard
441 The graphics dialog can be called at any time by clicking on an image.
442 This dialog has three tabs:
445 \begin_layout Description
450 Here you can choose an image file and adjust its appearance in the output.
451 The available units for the image size are explained in appendix
456 \begin_inset CommandInset ref
458 reference "cha:Units-available-in"
463 \begin_inset Newline newline
467 \begin_inset Index idx
470 \begin_layout Plain Layout
476 You can rotate images counter-clockwise by setting a rotation angle and
478 The image will also be rotated inside \SpecialChar LyX
480 \begin_inset Newline newline
484 \begin_inset Index idx
487 \begin_layout Plain Layout
493 Images can be scaled by using a percentage value or by setting the width
494 and height explicitly.
495 If you set only the width or only the height, the other size will be determined
497 If you set both, then the image will be transformed to the given size,
498 possibly distorting it.
499 To prevent the image from distortion, use the option
501 Maintain aspect ratio
504 The image will then be scaled so that its width and height don't exceed
505 the specified dimensions.
506 \begin_inset Newline newline
509 Images can be opened in a program of your choice by right-clicking on it
510 and choosing the entry
519 The program can be set for every image format in the file format settings
524 \begin_layout Description
529 Alternatively to the usage of scaling units it is possible to set image
530 coordinates to adjust the height and width of the image in the output.
531 The coordinates can also be calculated automatically by pressing the button
561 will only print the image region within the given coordinates.
562 Normally you don't need to worry about image coordinates and can ignore
566 \begin_layout Description
585 In this tab you can modify the appearance of the image within \SpecialChar LyX
586 and \SpecialChar LaTeX
588 can specify additional \SpecialChar LaTeX
590 \begin_inset Newline newline
601 makes the image appear in the output only as a frame with the size of the
603 \begin_inset Newline newline
614 you can define or join an image settings group.
615 \begin_inset Index idx
618 \begin_layout Plain Layout
619 Figures ! Settings grouping
624 Images within such a group share their settings, so adjusting one image
625 of the group automatically also adjusts all other images of the group in
627 So you can for example change the size for a bunch of images without the
628 need to manually change each of them.
629 Joining an existing group can also be done using the context menu of the
630 image by checking the name of the desired group.
633 \begin_layout Standard
634 \begin_inset VSpace bigskip
640 \begin_layout Standard
641 This is an example image in EPS format
645 \begin_layout Plain Layout
646 Image formats are explained in section
651 \begin_inset CommandInset ref
653 reference "sec:Image-Formats"
662 within a separate, horizontally centered paragraph:
663 \begin_inset Separator parbreak
669 \begin_layout Standard
671 \begin_inset Graphics
672 filename clipart/mobius.eps
682 \begin_layout Standard
683 This is the same image like the one above but in draft mode:
684 \begin_inset Separator parbreak
690 \begin_layout Standard
692 \begin_inset Graphics
693 filename clipart/mobius.eps
704 \begin_layout Standard
705 \begin_inset Newpage newpage
711 \begin_layout Section
713 \begin_inset CommandInset label
715 name "sec:Figure-Floats"
720 \begin_inset Index idx
723 \begin_layout Plain Layout
730 \begin_inset Index idx
733 \begin_layout Plain Layout
742 \begin_layout Standard
743 For general explanations about floats, have a look at section
748 \begin_inset CommandInset ref
750 reference "sec:FloatIntroduction"
757 \begin_layout Standard
761 arg "float-insert figure"
766 Insert\SpecialChar menuseparator
767 Float\SpecialChar menuseparator
770 inserts a float with a caption that has the label
771 \begin_inset Quotes eld
779 \begin_inset Quotes erd
782 (# is the actual number).
783 You can insert the image above the caption, like in Figure
788 \begin_inset CommandInset ref
790 reference "fig:kill-plat"
794 or below the caption, like in Figure
799 \begin_inset CommandInset ref
801 reference "fig:escher"
806 More about caption placement is described in section
811 \begin_inset CommandInset ref
813 reference "sec:Caption-Placement"
820 \begin_layout Standard
821 \begin_inset Float figure
826 \begin_layout Plain Layout
828 \begin_inset Graphics
829 filename clipart/platypus.eps
839 \begin_layout Plain Layout
840 \begin_inset Caption Standard
842 \begin_layout Plain Layout
843 \begin_inset CommandInset label
849 A severely distorted platypus in a float.
862 \begin_layout Standard
863 \begin_inset Float figure
868 \begin_layout Plain Layout
869 \begin_inset Caption Standard
871 \begin_layout Plain Layout
872 \begin_inset CommandInset label
887 \begin_layout Plain Layout
889 \begin_inset Graphics
890 filename clipart/escher-lsd.eps
905 \begin_layout Standard
906 \begin_inset Index idx
909 \begin_layout Plain Layout
910 References ! to Figures
920 \begin_inset CommandInset ref
922 reference "fig:kill-plat"
927 \begin_inset CommandInset ref
929 reference "fig:escher"
933 are examples of referenced figures.
934 Figures can be referenced in the text by referencing their label.
935 To do this insert a label in the caption using the menu
937 Insert\SpecialChar menuseparator
940 or the toolbar button
947 You can now refer to the label using the menu
949 Insert\SpecialChar menuseparator
956 or the toolbar button
959 arg "dialog-show-new-inset ref"
963 It is important to use references to floats, rather than using vague references
965 \begin_inset Quotes eld
969 \begin_inset Quotes erd
972 , because \SpecialChar LaTeX
973 will reposition the floats in the final document and it might
975 \begin_inset Quotes eld
979 \begin_inset Quotes erd
983 \begin_inset Newline newline
986 Referencing is explained in detail in section
991 \begin_inset CommandInset ref
993 reference "sec:Referencing-Floats"
1000 \begin_layout Standard
1001 Normally only one image is inserted to a figure float, but sometimes you
1002 might want to use two images with separate subcaptions.
1003 This can be done by inserting image floats into existing image floats.
1004 Note that only the main caption of the float is added to the List of Figures.
1006 \begin_inset space ~
1010 \begin_inset CommandInset ref
1012 reference "fig:Two-distorted-images"
1016 is an example of a figure float with two images set side by side.
1017 You can also set the images one below the other.
1019 \begin_inset space ~
1023 \begin_inset CommandInset ref
1025 reference "fig:Undefinable-structure"
1030 \begin_inset CommandInset ref
1032 reference "fig:A-Platypus"
1039 \begin_layout Standard
1040 \begin_inset Float figure
1045 \begin_layout Plain Layout
1046 \begin_inset space \hfill{}
1050 \begin_inset Float figure
1055 \begin_layout Plain Layout
1056 \begin_inset Caption Standard
1058 \begin_layout Plain Layout
1059 \begin_inset CommandInset label
1061 name "fig:Undefinable-structure"
1065 Undefinable structure.
1073 \begin_layout Plain Layout
1074 \begin_inset Graphics
1075 filename clipart/escher-lsd.eps
1088 \begin_inset space \hfill{}
1092 \begin_inset Float figure
1097 \begin_layout Plain Layout
1098 \begin_inset Caption Standard
1100 \begin_layout Plain Layout
1101 \begin_inset CommandInset label
1103 name "fig:A-Platypus"
1115 \begin_layout Plain Layout
1116 \begin_inset Graphics
1117 filename clipart/platypus.eps
1130 \begin_inset space \hfill{}
1136 \begin_layout Plain Layout
1137 \begin_inset Caption Standard
1139 \begin_layout Plain Layout
1140 \begin_inset CommandInset label
1142 name "fig:Two-distorted-images"
1146 Two distorted images.
1147 Both images are in the image settings group named
1148 \begin_inset Quotes eld
1152 \begin_inset Quotes erd
1168 \begin_layout Standard
1169 \begin_inset Newpage newpage
1175 \begin_layout Section
1177 \begin_inset CommandInset label
1179 name "sec:Image-Formats"
1184 \begin_inset Index idx
1187 \begin_layout Plain Layout
1194 \begin_inset Index idx
1197 \begin_layout Plain Layout
1198 Figures ! Image Formats
1206 \begin_layout Standard
1207 You can insert images in any known file format.
1208 But as explained in appendix
1209 \begin_inset space ~
1213 \begin_inset CommandInset ref
1215 reference "cha:Output-File-Formats"
1219 , each output document format allows only a few image formats.
1221 uses therefore the program
1225 in the background to convert the images to the right format.
1226 To increase your work flow by avoiding these conversions in the background,
1227 you could choose to use only the image formats that can directly be embedded
1228 in the output file format.
1229 The output file formats are explained in appendix
1230 \begin_inset space ~
1234 \begin_inset CommandInset ref
1236 reference "cha:Output-File-Formats"
1243 \begin_layout Standard
1244 Similar to fonts there are two types of image formats:
1247 \begin_layout Description
1249 \begin_inset space ~
1252 images consist of pixel values, often in a compressed form.
1253 They are therefore not fully scalable and look pixelated in large zooms.
1254 Well-known bitmap image formats are
1255 \begin_inset Quotes eld
1258 Graphics Interchange Format
1259 \begin_inset Quotes erd
1262 (GIF, file extension
1263 \begin_inset Quotes eld
1271 \begin_inset Quotes erd
1275 \begin_inset Index idx
1278 \begin_layout Plain Layout
1283 \begin_layout Plain Layout
1294 \begin_layout Plain Layout
1307 \begin_inset Quotes eld
1310 Portable Network Graphics
1311 \begin_inset Quotes erd
1314 (PNG, file extension
1315 \begin_inset Quotes eld
1323 \begin_inset Quotes erd
1327 \begin_inset Index idx
1330 \begin_layout Plain Layout
1335 \begin_layout Plain Layout
1346 \begin_layout Plain Layout
1359 \begin_inset Quotes eld
1362 Joint Photographic Experts Group
1363 \begin_inset Quotes erd
1366 (JPG, file extension
1367 \begin_inset Quotes eld
1375 \begin_inset Quotes erd
1379 \begin_inset Quotes eld
1387 \begin_inset Quotes erd
1391 \begin_inset Index idx
1394 \begin_layout Plain Layout
1399 \begin_layout Plain Layout
1410 \begin_layout Plain Layout
1425 \begin_layout Description
1427 \begin_inset space ~
1430 images consist of vectors and can therefore be scaled to any size without
1432 The scaling ability is necessary if you want to create presentations, because
1433 presentations are always scaled by the video projector.
1434 Scaling is also useful for online documents to let the user zoom into diagrams.
1435 \begin_inset Newline newline
1438 Well-known scalable image formats are
1439 \begin_inset Quotes eld
1442 Scalable Vector Graphics
1443 \begin_inset Quotes erd
1446 (SVG, file extension
1447 \begin_inset Quotes eld
1455 \begin_inset Quotes erd
1459 \begin_inset Index idx
1462 \begin_layout Plain Layout
1467 \begin_layout Plain Layout
1478 \begin_layout Plain Layout
1491 \begin_inset Quotes eld
1494 Encapsulated PostScript
1495 \begin_inset Quotes erd
1498 (EPS, file extension
1499 \begin_inset Quotes eld
1507 \begin_inset Quotes erd
1511 \begin_inset Index idx
1514 \begin_layout Plain Layout
1519 \begin_layout Plain Layout
1530 \begin_layout Plain Layout
1543 \begin_inset Quotes eld
1546 Portable Document Format
1547 \begin_inset Quotes erd
1550 (PDF, file extension
1551 \begin_inset Quotes eld
1559 \begin_inset Quotes erd
1563 \begin_inset Index idx
1566 \begin_layout Plain Layout
1573 \begin_inset Quotes eld
1577 \begin_inset Quotes erd
1580 (WMF, file extension
1581 \begin_inset Quotes eld
1589 \begin_inset Quotes erd
1593 \begin_inset Index idx
1596 \begin_layout Plain Layout
1601 \begin_layout Plain Layout
1612 \begin_layout Plain Layout
1626 \begin_inset Quotes eld
1630 \begin_inset Quotes erd
1633 , because you can convert any bitmap image to a PDF or EPS-image and the
1634 result will still be a bitmap image.
1635 In such cases only a header with the image properties is added to the original
1640 \begin_layout Plain Layout
1641 In the case of PDF, the original image is additionally compressed.
1647 The PDF-files generated by
1651 are for example bitmap images.
1654 \begin_layout Standard
1655 Normally it is not possible to convert a bitmap image into a scalable one,
1657 Only the image formats PDF and EPS can directly be embedded to PDF and
1658 PostScript output files, respectively.
1659 SVG and WMF-images are recalculated to bitmaps when the output file is
1660 generated because there is currently no adequate WMF/SVG
1661 \begin_inset Formula $\to$
1664 PDF/EPS converter available.
1667 \begin_layout Chapter
1669 \begin_inset Index idx
1672 \begin_layout Plain Layout
1681 \begin_layout Section
1683 \begin_inset Index idx
1686 \begin_layout Plain Layout
1687 Table ! Introduction
1695 \begin_layout Standard
1696 You can insert a table using either the toolbar button
1699 arg "tabular-insert"
1704 Insert\SpecialChar menuseparator
1708 The toolbar button offers you a graphical selection: move the mouse to
1709 set the column/row number of the table that should be created and then
1710 press a mouse button.
1711 When you use the menu to create a table, a dialog will appear, asking you
1712 for the number of rows and columns.
1713 \begin_inset Newline newline
1716 The default table has lines around any cell and the first row appears separated
1717 from the rest of the table.
1718 This separation occurs due to a double line: The cells of the first row
1719 have a line below them and the cells of the second row have a line above
1721 Here is an example table:
1722 \begin_inset Separator parbreak
1728 \begin_layout Standard
1730 \begin_inset Tabular
1731 <lyxtabular version="3" rows="4" columns="4">
1732 <features tabularvalignment="middle">
1733 <column alignment="center" valignment="top">
1734 <column alignment="center" valignment="top">
1735 <column alignment="center" valignment="top">
1736 <column alignment="center" valignment="top">
1738 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1741 \begin_layout Plain Layout
1747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1750 \begin_layout Plain Layout
1765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1768 \begin_layout Plain Layout
1774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1777 \begin_layout Plain Layout
1785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1788 \begin_layout Plain Layout
1803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1806 \begin_layout Plain Layout
1812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1815 \begin_layout Plain Layout
1821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1824 \begin_layout Plain Layout
1832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1835 \begin_layout Plain Layout
1850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1853 \begin_layout Plain Layout
1859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1862 \begin_layout Plain Layout
1868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1871 \begin_layout Plain Layout
1879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1882 \begin_layout Plain Layout
1897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1900 \begin_layout Plain Layout
1906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1909 \begin_layout Plain Layout
1915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1918 \begin_layout Plain Layout
1932 \begin_layout Section
1934 \begin_inset Index idx
1937 \begin_layout Plain Layout
1946 \begin_layout Standard
1947 You can alter a table by clicking on it with the right mouse button, which
1948 brings up the context menu.
1949 Under the menu entry
1953 you can adjust the settings of that cell and row/column respectively where
1954 the cursor is currently placed.
1957 More\SpecialChar menuseparator
1960 opens the table dialog where you can adjust more things.
1961 Most of the dialog options also work on selections.
1962 This means if you select more cells, columns or rows, the action is done
1963 for the whole selection.
1964 Note that there is a difference between selecting the
1968 of the cell, and the cell itself.
1969 \begin_inset Newline newline
1972 With the dialog option
1975 \begin_inset space ~
1980 every change you make in the dialog is directly applied.
1981 If you move the cursor to another table cell the dialog will then also
1982 be updated with the parameters of the new cell.
1983 If you change length values in the dialog you must press
1987 to get the change applied.
1988 \begin_inset Newline newline
1991 You can alter tables with the following tabs of the table dialog:
1994 \begin_layout Description
1998 \begin_inset space ~
2003 Here you can set the table width
2004 \begin_inset Index idx
2007 \begin_layout Plain Layout
2013 , and the horizontal alignment and the width of the current column.
2017 \begin_inset space ~
2021 \begin_inset space ~
2026 is described in section
2027 \begin_inset space ~
2031 \begin_inset CommandInset ref
2033 reference "subsec:Special-Cell-Alignment"
2038 When you have set a width you can also adjust the vertical alignment of
2040 A given width will allow the cell to have line breaks and multiple paragraphs
2042 \begin_inset space \thinspace{}
2046 \begin_inset CommandInset ref
2048 reference "subsec:Multiple-Lines-in"
2053 If you set no width, the column is as wide as the content of its widest
2055 \begin_inset Newline newline
2058 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2060 \begin_inset space \thinspace{}
2064 \begin_inset CommandInset ref
2066 reference "subsec:Multicolumns"
2070 or the cells of one column as multirow cell, see sec.
2071 \begin_inset space \thinspace{}
2075 \begin_inset CommandInset ref
2077 reference "subsec:Multirows"
2082 \begin_inset Newline newline
2085 The rotate check boxes rotate the current cell, a selection, or the whole
2086 table counter-clockwise by 90
2087 \begin_inset space \thinspace{}
2091 The rotation is not shown within \SpecialChar LyX
2092 , only in the output.
2093 For more information see sec.
2094 \begin_inset space \thinspace{}
2098 \begin_inset CommandInset ref
2100 reference "sec:Rotated-Table-Cells"
2105 \begin_inset Newline newline
2109 \begin_inset Note Greyedout
2112 \begin_layout Plain Layout
2117 Not all DVI-viewers are able to display rotations.
2123 \begin_inset Newline newline
2126 The table-wide vertical alignment is used for tables within text lines:
2127 \begin_inset Newline newline
2130 A line with tables with different alignments:
2131 \begin_inset Tabular
2132 <lyxtabular version="3" rows="2" columns="2">
2133 <features tabularvalignment="top">
2134 <column alignment="center" valignment="top" width="0pt">
2135 <column alignment="center" valignment="top">
2137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2140 \begin_layout Plain Layout
2146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2149 \begin_layout Plain Layout
2166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2169 \begin_layout Plain Layout
2184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2187 \begin_layout Plain Layout
2199 \begin_inset Tabular
2200 <lyxtabular version="3" rows="2" columns="2">
2201 <features tabularvalignment="middle">
2202 <column alignment="center" valignment="top">
2203 <column alignment="center" valignment="top">
2205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2208 \begin_layout Plain Layout
2214 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2217 \begin_layout Plain Layout
2234 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2237 \begin_layout Plain Layout
2252 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2255 \begin_layout Plain Layout
2267 \begin_inset Tabular
2268 <lyxtabular version="3" rows="2" columns="2">
2269 <features tabularvalignment="bottom">
2270 <column alignment="center" valignment="top" width="0pt">
2271 <column alignment="center" valignment="top">
2273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2276 \begin_layout Plain Layout
2282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2285 \begin_layout Plain Layout
2302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2305 \begin_layout Plain Layout
2320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2323 \begin_layout Plain Layout
2335 \begin_inset Newline newline
2338 It is also possible to enter a \SpecialChar LaTeX
2339 -argument which is needed for special table
2340 formattings, see sec.
2341 \begin_inset space \thinspace{}
2345 \begin_inset CommandInset ref
2347 reference "subsec:Multicolumn-Calculations"
2352 \begin_inset CommandInset ref
2354 reference "sec:Colored-Tables"
2361 \begin_layout Description
2366 In this tab you can add and delete border lines for the current row/column.
2367 \begin_inset Newline newline
2370 Using the style option
2374 will convert the table to a formal table as described in sec.
2375 \begin_inset space \thinspace{}
2379 \begin_inset CommandInset ref
2381 reference "sec:Formal-Tables"
2386 \begin_inset Newline newline
2389 You can also add space here to table rows as described in sec.
2390 \begin_inset space \thinspace{}
2394 \begin_inset CommandInset ref
2396 reference "subsec:Row-Spacing"
2403 \begin_layout Description
2408 This tab is to make a table a so called
2409 \begin_inset Quotes eld
2417 \begin_inset Quotes erd
2420 that can run over several pages.
2422 \begin_inset space ~
2426 \begin_inset CommandInset ref
2428 reference "sec:Longtables"
2433 \begin_inset CommandInset ref
2435 reference "sec:Special-Longtable-Issues"
2439 describe the longtable features in detail.
2442 \begin_layout Section
2444 \begin_inset Index idx
2447 \begin_layout Plain Layout
2456 \begin_layout Standard
2457 The table toolbar is an alternative to the table dialog to be able to alter
2459 It should normally appear at the bottom of \SpecialChar LyX
2460 's main window when the cursor
2462 You can alternatively switch it on to appear always, by right-clicking
2467 \begin_layout Standard
2468 The toolbar has the following icons:
2471 \begin_layout Labeling
2472 \labelwidthstring 00.00.0000
2475 arg "inset-modify tabular append-row"
2478 adds a row below the current cell or selection
2481 \begin_layout Labeling
2482 \labelwidthstring 00.00.0000
2485 arg "inset-modify tabular append-column"
2488 adds a column right beside the current cell or selection
2491 \begin_layout Labeling
2492 \labelwidthstring 00.00.0000
2495 arg "inset-modify tabular delete-row"
2498 deletes the current row or selection
2501 \begin_layout Labeling
2502 \labelwidthstring 00.00.0000
2505 arg "inset-modify tabular delete-column"
2508 deletes the current column or selection
2511 \begin_layout Labeling
2512 \labelwidthstring 00.00.0000
2515 arg "inset-modify tabular move-row-up"
2521 \begin_layout Labeling
2522 \labelwidthstring 00.00.0000
2525 arg "inset-modify tabular move-column-left"
2528 moves the column to the left
2531 \begin_layout Labeling
2532 \labelwidthstring 00.00.0000
2535 arg "inset-modify tabular move-row-down"
2541 \begin_layout Labeling
2542 \labelwidthstring 00.00.0000
2545 arg "inset-modify tabular move-column-right"
2548 moves the column to the right
2551 \begin_layout Labeling
2552 \labelwidthstring 00.00.0000
2555 arg "inset-modify tabular toggle-line-top"
2558 adds a line at the top of the current cell / row or of a selection
2561 \begin_layout Labeling
2562 \labelwidthstring 00.00.0000
2565 arg "inset-modify tabular toggle-line-bottom"
2568 adds a line at the bottom of the current cell / row or of a selection
2571 \begin_layout Labeling
2572 \labelwidthstring 00.00.0000
2575 arg "inset-modify tabular toggle-line-left"
2578 adds a line at the left side of the current cell / row or of a selection
2581 \begin_layout Labeling
2582 \labelwidthstring 00.00.0000
2585 arg "inset-modify tabular toggle-line-right"
2588 adds a line at the right side of the current cell / row or of a selection
2591 \begin_layout Labeling
2592 \labelwidthstring 00.00.0000
2595 arg "inset-modify tabular set-all-lines"
2598 adds lines around the current or selected cells - if the current cell no
2599 multicolumn cell this also affects the current row and column
2602 \begin_layout Labeling
2603 \labelwidthstring 00.00.0000
2606 arg "inset-modify tabular unset-all-lines"
2609 deletes all lines of the current or selected cells - if the current cell
2610 no multicolumn cell this also affects the current row and column
2613 \begin_layout Labeling
2614 \labelwidthstring 00.00.0000
2617 arg "inset-modify tabular m-align-left"
2620 left-aligns the content of the current cell / column
2623 \begin_layout Labeling
2624 \labelwidthstring 00.00.0000
2627 arg "inset-modify tabular m-align-center"
2630 centers the content of the current cell / column horizontally
2633 \begin_layout Labeling
2634 \labelwidthstring 00.00.0000
2637 arg "inset-modify tabular m-align-right"
2640 right-aligns the content of the current cell / column
2643 \begin_layout Labeling
2644 \labelwidthstring 00.00.0000
2647 arg "inset-modify tabular align-decimal"
2650 aligns the content of the current column at a character
2653 \begin_layout Labeling
2654 \labelwidthstring 00.00.0000
2657 arg "inset-modify tabular m-valign-top"
2660 aligns the content of the current cell vertically to the top
2663 \begin_layout Labeling
2664 \labelwidthstring 00.00.0000
2667 arg "inset-modify tabular m-valign-middle"
2670 centers the content of the current cell vertically
2673 \begin_layout Labeling
2674 \labelwidthstring 00.00.0000
2677 arg "inset-modify tabular m-valign-bottom"
2680 aligns the content of the current cell vertically to the bottom
2683 \begin_layout Labeling
2684 \labelwidthstring 00.00.0000
2687 arg "inset-modify tabular set-rotate-cell"
2690 rotates the current cell or selection counter-clockwise by 90°
2693 \begin_layout Labeling
2694 \labelwidthstring 00.00.0000
2697 arg "inset-modify tabular set-rotate-tabular"
2700 rotates the whole table counter-clockwise by 90°
2703 \begin_layout Labeling
2704 \labelwidthstring 00.00.0000
2707 arg "inset-modify tabular multicolumn"
2710 sets the current cell or selection as a multicolumn
2713 \begin_layout Labeling
2714 \labelwidthstring 00.00.0000
2717 arg "inset-modify tabular multirow"
2720 sets the current cell or selection as a multirow
2723 \begin_layout Standard
2724 \begin_inset Note Greyedout
2727 \begin_layout Plain Layout
2732 For the output the vertical alignment of the first cell in a row is used
2733 for all following cells in the row.
2741 \begin_layout Section
2743 \begin_inset Index idx
2746 \begin_layout Plain Layout
2755 \begin_layout Standard
2756 In addition to the table dialog and toolbar, the menu
2758 Edit\SpecialChar menuseparator
2761 allows you to add and delete border lines for the current row/column and
2762 to set the current selection as multicolumn.
2763 The menu is only available when the cursor is inside a table.
2766 \begin_layout Section
2768 \begin_inset CommandInset label
2770 name "sec:Table-Floats"
2775 \begin_inset Index idx
2778 \begin_layout Plain Layout
2785 \begin_inset Index idx
2788 \begin_layout Plain Layout
2797 \begin_layout Standard
2798 For general explanations about floats, have a look at section
2799 \begin_inset space ~
2803 \begin_inset CommandInset ref
2805 reference "sec:FloatIntroduction"
2812 \begin_layout Standard
2813 \begin_inset Float table
2819 \begin_layout Plain Layout
2820 \begin_inset Caption Standard
2822 \begin_layout Plain Layout
2823 \begin_inset CommandInset label
2825 name "tab:a table float"
2837 \begin_layout Plain Layout
2839 \begin_inset Tabular
2840 <lyxtabular version="3" rows="3" columns="3">
2841 <features tabularvalignment="middle">
2842 <column alignment="center" valignment="top" width="0pt">
2843 <column alignment="center" valignment="top" width="0pt">
2844 <column alignment="center" valignment="top" width="0pt">
2846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2849 \begin_layout Plain Layout
2864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2867 \begin_layout Plain Layout
2882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2885 \begin_layout Plain Layout
2902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2905 \begin_layout Plain Layout
2920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2923 \begin_layout Plain Layout
2938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2941 \begin_layout Plain Layout
2958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2961 \begin_layout Plain Layout
2971 \begin_inset Formula $\int x^{2}dx$
2979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2982 \begin_layout Plain Layout
2992 \begin_inset Formula $\left[\begin{array}{cc}
3003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3006 \begin_layout Plain Layout
3016 \begin_inset Formula $1+1=2$
3037 \begin_layout Standard
3038 Table floats can be inserted using the menu
3040 Insert\SpecialChar menuseparator
3041 Float\SpecialChar menuseparator
3044 or the toolbar button
3047 arg "float-insert table"
3053 \begin_layout Standard
3054 The float appears as a collapsible box with a caption that has the label
3056 \begin_inset Quotes eld
3060 \begin_inset space ~
3064 \begin_inset Quotes erd
3067 (# is the actual table number).
3068 You can insert tables in the float above or below the caption.
3071 \begin_layout Standard
3073 \begin_inset space ~
3077 \begin_inset CommandInset ref
3079 reference "tab:a table float"
3083 is an example table within a table float.
3086 \begin_layout Standard
3087 Having the caption above the table is the common rule that is unfortunately
3088 not supported in \SpecialChar LaTeX
3089 's standard classes.
3090 This means that, if you are using the document classes
3106 , there will be no space between the caption and the table.
3107 To insert the needed space, add the following option to the load command
3108 of the \SpecialChar LaTeX
3114 \begin_inset Index idx
3117 \begin_layout Plain Layout
3124 in your document preamble
3128 \begin_layout Plain Layout
3129 For more information have a look at section
3130 \begin_inset space ~
3134 \begin_inset CommandInset ref
3136 reference "sec:Caption-Placement"
3148 \begin_layout Standard
3154 \begin_layout Standard
3159 , which is described in section
3160 \begin_inset space ~
3164 \begin_inset CommandInset ref
3166 reference "sec:Caption-Formatting"
3170 , is used to adjust the caption format.
3173 \begin_layout Standard
3174 \begin_inset Index idx
3177 \begin_layout Plain Layout
3178 References ! to Tables
3183 Tables can be cross-referenced in the text by referencing their label.
3184 To do this insert a label in the caption using the menu
3186 Insert\SpecialChar menuseparator
3189 or the toolbar button
3196 You can now refer to the label using the menu
3198 Insert\SpecialChar menuseparator
3200 \begin_inset space ~
3205 or the toolbar button
3208 arg "dialog-show-new-inset ref"
3212 \begin_inset Newline newline
3215 Referencing is explained in detail in section
3216 \begin_inset space ~
3220 \begin_inset CommandInset ref
3222 reference "sec:Referencing-Floats"
3229 \begin_layout Section
3231 \begin_inset CommandInset label
3233 name "sec:Longtables"
3238 \begin_inset Index idx
3241 \begin_layout Plain Layout
3248 \begin_inset Index idx
3251 \begin_layout Plain Layout
3260 \begin_layout Standard
3261 If the table is too long to fit on one page, you can use the option
3264 \begin_inset space ~
3268 \begin_inset space ~
3277 of the table dialog to split the table automatically over more pages.
3278 Doing this enables the following options:
3281 \begin_layout Description
3282 Header: The current row is defined to be a header row that appears on all
3283 pages of the longtable; except for the first page, if
3286 \begin_inset space ~
3292 This is therefore called the main header.
3295 \begin_layout Description
3297 \begin_inset space ~
3300 header: The current row is defined to be a header row that appears on the
3301 first page of the longtable.
3304 \begin_layout Description
3305 Footer: The current row is defined to be a footer row that appears on all
3306 pages of the longtable; except for the last page, if
3309 \begin_inset space ~
3317 \begin_layout Description
3319 \begin_inset space ~
3322 footer: The current row is defined to be a footer row that appears on the
3323 last page of the longtable.
3326 \begin_layout Description
3327 Caption: The current row contains the table caption.
3328 The row is reset as single column and a caption is inserted.
3329 More about longtable captions is explained in sec.
3330 \begin_inset space \thinspace{}
3334 \begin_inset CommandInset ref
3336 reference "subsec:Longtable-Captions"
3343 \begin_layout Standard
3344 You can also specify a row where the table is split.
3345 See the following longtable to see how it works:
3346 \begin_inset Separator parbreak
3352 \begin_layout Standard
3354 \begin_inset Tabular
3355 <lyxtabular version="3" rows="69" columns="3">
3356 <features islongtable="true" longtabularalignment="center">
3357 <column alignment="left" valignment="top" width="0cm">
3358 <column alignment="left" valignment="top" width="0pt">
3359 <column alignment="center" valignment="top" width="0pt">
3360 <row endfirsthead="true">
3361 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3364 \begin_layout Plain Layout
3367 Example Phone List (ignore the names)
3372 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3375 \begin_layout Plain Layout
3381 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3384 \begin_layout Plain Layout
3391 <row endfirsthead="true">
3392 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3395 \begin_layout Plain Layout
3403 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3406 \begin_layout Plain Layout
3412 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3415 \begin_layout Plain Layout
3424 <row endhead="true">
3425 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3428 \begin_layout Plain Layout
3436 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3439 \begin_layout Plain Layout
3445 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3448 \begin_layout Plain Layout
3455 <row endhead="true">
3456 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3459 \begin_layout Plain Layout
3467 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3470 \begin_layout Plain Layout
3476 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3479 \begin_layout Plain Layout
3488 <row endfoot="true">
3489 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3492 \begin_layout Plain Layout
3493 continued on next page
3498 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3501 \begin_layout Plain Layout
3507 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3510 \begin_layout Plain Layout
3518 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3521 \begin_layout Plain Layout
3529 <cell alignment="center" valignment="top" usebox="none">
3532 \begin_layout Plain Layout
3538 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3541 \begin_layout Plain Layout
3549 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3552 \begin_layout Plain Layout
3560 <cell alignment="center" valignment="top" usebox="none">
3563 \begin_layout Plain Layout
3569 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3572 \begin_layout Plain Layout
3580 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3583 \begin_layout Plain Layout
3591 <cell alignment="center" valignment="top" usebox="none">
3594 \begin_layout Plain Layout
3600 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3603 \begin_layout Plain Layout
3611 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3614 \begin_layout Plain Layout
3622 <cell alignment="center" valignment="top" usebox="none">
3625 \begin_layout Plain Layout
3631 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3634 \begin_layout Plain Layout
3642 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3645 \begin_layout Plain Layout
3653 <cell alignment="center" valignment="top" usebox="none">
3656 \begin_layout Plain Layout
3662 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3665 \begin_layout Plain Layout
3673 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3676 \begin_layout Plain Layout
3684 <cell alignment="center" valignment="top" usebox="none">
3687 \begin_layout Plain Layout
3693 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3696 \begin_layout Plain Layout
3704 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3707 \begin_layout Plain Layout
3715 <cell alignment="center" valignment="top" usebox="none">
3718 \begin_layout Plain Layout
3724 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3727 \begin_layout Plain Layout
3735 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3738 \begin_layout Plain Layout
3746 <cell alignment="center" valignment="top" usebox="none">
3749 \begin_layout Plain Layout
3755 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3758 \begin_layout Plain Layout
3766 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3769 \begin_layout Plain Layout
3777 <cell alignment="center" valignment="top" usebox="none">
3780 \begin_layout Plain Layout
3786 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3789 \begin_layout Plain Layout
3797 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3800 \begin_layout Plain Layout
3808 <cell alignment="center" valignment="top" usebox="none">
3811 \begin_layout Plain Layout
3817 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3820 \begin_layout Plain Layout
3828 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3831 \begin_layout Plain Layout
3839 <cell alignment="center" valignment="top" usebox="none">
3842 \begin_layout Plain Layout
3848 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3851 \begin_layout Plain Layout
3859 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3862 \begin_layout Plain Layout
3870 <cell alignment="center" valignment="top" usebox="none">
3873 \begin_layout Plain Layout
3879 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3882 \begin_layout Plain Layout
3890 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3893 \begin_layout Plain Layout
3901 <cell alignment="center" valignment="top" usebox="none">
3904 \begin_layout Plain Layout
3910 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3913 \begin_layout Plain Layout
3921 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3924 \begin_layout Plain Layout
3932 <cell alignment="center" valignment="top" usebox="none">
3935 \begin_layout Plain Layout
3941 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3944 \begin_layout Plain Layout
3952 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3955 \begin_layout Plain Layout
3963 <cell alignment="center" valignment="top" usebox="none">
3966 \begin_layout Plain Layout
3972 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3975 \begin_layout Plain Layout
3983 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3986 \begin_layout Plain Layout
3994 <cell alignment="center" valignment="top" usebox="none">
3997 \begin_layout Plain Layout
4003 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4006 \begin_layout Plain Layout
4014 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4017 \begin_layout Plain Layout
4025 <cell alignment="center" valignment="top" usebox="none">
4028 \begin_layout Plain Layout
4034 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4037 \begin_layout Plain Layout
4045 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4048 \begin_layout Plain Layout
4056 <cell alignment="center" valignment="top" usebox="none">
4059 \begin_layout Plain Layout
4065 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4068 \begin_layout Plain Layout
4076 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4079 \begin_layout Plain Layout
4087 <cell alignment="center" valignment="top" usebox="none">
4090 \begin_layout Plain Layout
4096 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4099 \begin_layout Plain Layout
4107 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4110 \begin_layout Plain Layout
4118 <cell alignment="center" valignment="top" usebox="none">
4121 \begin_layout Plain Layout
4127 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4130 \begin_layout Plain Layout
4138 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4141 \begin_layout Plain Layout
4149 <cell alignment="center" valignment="top" usebox="none">
4152 \begin_layout Plain Layout
4158 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4161 \begin_layout Plain Layout
4169 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4172 \begin_layout Plain Layout
4180 <cell alignment="center" valignment="top" usebox="none">
4183 \begin_layout Plain Layout
4189 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4192 \begin_layout Plain Layout
4200 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4203 \begin_layout Plain Layout
4211 <cell alignment="center" valignment="top" usebox="none">
4214 \begin_layout Plain Layout
4220 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4223 \begin_layout Plain Layout
4231 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4234 \begin_layout Plain Layout
4242 <cell alignment="center" valignment="top" usebox="none">
4245 \begin_layout Plain Layout
4251 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4254 \begin_layout Plain Layout
4262 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4265 \begin_layout Plain Layout
4273 <cell alignment="center" valignment="top" usebox="none">
4276 \begin_layout Plain Layout
4282 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4285 \begin_layout Plain Layout
4293 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4296 \begin_layout Plain Layout
4304 <cell alignment="center" valignment="top" usebox="none">
4307 \begin_layout Plain Layout
4313 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4316 \begin_layout Plain Layout
4324 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4327 \begin_layout Plain Layout
4335 <cell alignment="center" valignment="top" usebox="none">
4338 \begin_layout Plain Layout
4344 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4347 \begin_layout Plain Layout
4355 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4358 \begin_layout Plain Layout
4366 <cell alignment="center" valignment="top" usebox="none">
4369 \begin_layout Plain Layout
4375 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4378 \begin_layout Plain Layout
4386 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4389 \begin_layout Plain Layout
4397 <cell alignment="center" valignment="top" usebox="none">
4400 \begin_layout Plain Layout
4406 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4409 \begin_layout Plain Layout
4417 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4420 \begin_layout Plain Layout
4428 <cell alignment="center" valignment="top" usebox="none">
4431 \begin_layout Plain Layout
4437 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4440 \begin_layout Plain Layout
4448 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4451 \begin_layout Plain Layout
4459 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4462 \begin_layout Plain Layout
4468 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4471 \begin_layout Plain Layout
4479 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4482 \begin_layout Plain Layout
4488 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4491 \begin_layout Plain Layout
4497 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4500 \begin_layout Plain Layout
4508 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4511 \begin_layout Plain Layout
4519 <cell alignment="center" valignment="top" usebox="none">
4522 \begin_layout Plain Layout
4528 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4531 \begin_layout Plain Layout
4539 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4542 \begin_layout Plain Layout
4550 <cell alignment="center" valignment="top" usebox="none">
4553 \begin_layout Plain Layout
4559 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4562 \begin_layout Plain Layout
4570 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4573 \begin_layout Plain Layout
4581 <cell alignment="center" valignment="top" usebox="none">
4584 \begin_layout Plain Layout
4590 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4593 \begin_layout Plain Layout
4601 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4604 \begin_layout Plain Layout
4612 <cell alignment="center" valignment="top" usebox="none">
4615 \begin_layout Plain Layout
4621 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4624 \begin_layout Plain Layout
4632 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4635 \begin_layout Plain Layout
4643 <cell alignment="center" valignment="top" usebox="none">
4646 \begin_layout Plain Layout
4652 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4655 \begin_layout Plain Layout
4663 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4666 \begin_layout Plain Layout
4674 <cell alignment="center" valignment="top" usebox="none">
4677 \begin_layout Plain Layout
4683 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4686 \begin_layout Plain Layout
4694 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4697 \begin_layout Plain Layout
4705 <cell alignment="center" valignment="top" usebox="none">
4708 \begin_layout Plain Layout
4714 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4717 \begin_layout Plain Layout
4725 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4728 \begin_layout Plain Layout
4736 <cell alignment="center" valignment="top" usebox="none">
4739 \begin_layout Plain Layout
4745 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4748 \begin_layout Plain Layout
4756 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4759 \begin_layout Plain Layout
4767 <cell alignment="center" valignment="top" usebox="none">
4770 \begin_layout Plain Layout
4776 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4779 \begin_layout Plain Layout
4787 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4790 \begin_layout Plain Layout
4798 <cell alignment="center" valignment="top" usebox="none">
4801 \begin_layout Plain Layout
4807 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4810 \begin_layout Plain Layout
4818 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4821 \begin_layout Plain Layout
4829 <cell alignment="center" valignment="top" usebox="none">
4832 \begin_layout Plain Layout
4838 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4841 \begin_layout Plain Layout
4849 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4852 \begin_layout Plain Layout
4860 <cell alignment="center" valignment="top" usebox="none">
4863 \begin_layout Plain Layout
4869 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4872 \begin_layout Plain Layout
4880 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4883 \begin_layout Plain Layout
4891 <cell alignment="center" valignment="top" usebox="none">
4894 \begin_layout Plain Layout
4900 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4903 \begin_layout Plain Layout
4911 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4914 \begin_layout Plain Layout
4922 <cell alignment="center" valignment="top" usebox="none">
4925 \begin_layout Plain Layout
4931 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4934 \begin_layout Plain Layout
4942 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4945 \begin_layout Plain Layout
4953 <cell alignment="center" valignment="top" usebox="none">
4956 \begin_layout Plain Layout
4962 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4965 \begin_layout Plain Layout
4973 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4976 \begin_layout Plain Layout
4984 <cell alignment="center" valignment="top" usebox="none">
4987 \begin_layout Plain Layout
4993 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4996 \begin_layout Plain Layout
5004 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5007 \begin_layout Plain Layout
5015 <cell alignment="center" valignment="top" usebox="none">
5018 \begin_layout Plain Layout
5024 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5027 \begin_layout Plain Layout
5035 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5038 \begin_layout Plain Layout
5046 <cell alignment="center" valignment="top" usebox="none">
5049 \begin_layout Plain Layout
5055 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5058 \begin_layout Plain Layout
5066 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5069 \begin_layout Plain Layout
5077 <cell alignment="center" valignment="top" usebox="none">
5080 \begin_layout Plain Layout
5086 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5089 \begin_layout Plain Layout
5097 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5100 \begin_layout Plain Layout
5108 <cell alignment="center" valignment="top" usebox="none">
5111 \begin_layout Plain Layout
5117 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5120 \begin_layout Plain Layout
5128 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5131 \begin_layout Plain Layout
5139 <cell alignment="center" valignment="top" usebox="none">
5142 \begin_layout Plain Layout
5148 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5151 \begin_layout Plain Layout
5159 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5162 \begin_layout Plain Layout
5170 <cell alignment="center" valignment="top" usebox="none">
5173 \begin_layout Plain Layout
5179 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5182 \begin_layout Plain Layout
5190 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5193 \begin_layout Plain Layout
5201 <cell alignment="center" valignment="top" usebox="none">
5204 \begin_layout Plain Layout
5210 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5213 \begin_layout Plain Layout
5221 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5224 \begin_layout Plain Layout
5232 <cell alignment="center" valignment="top" usebox="none">
5235 \begin_layout Plain Layout
5241 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5244 \begin_layout Plain Layout
5252 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5255 \begin_layout Plain Layout
5263 <cell alignment="center" valignment="top" usebox="none">
5266 \begin_layout Plain Layout
5272 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5275 \begin_layout Plain Layout
5283 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5286 \begin_layout Plain Layout
5294 <cell alignment="center" valignment="top" usebox="none">
5297 \begin_layout Plain Layout
5303 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5306 \begin_layout Plain Layout
5314 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5317 \begin_layout Plain Layout
5325 <cell alignment="center" valignment="top" usebox="none">
5328 \begin_layout Plain Layout
5334 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5337 \begin_layout Plain Layout
5345 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5348 \begin_layout Plain Layout
5356 <cell alignment="center" valignment="top" usebox="none">
5359 \begin_layout Plain Layout
5365 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5368 \begin_layout Plain Layout
5376 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5379 \begin_layout Plain Layout
5387 <cell alignment="center" valignment="top" usebox="none">
5390 \begin_layout Plain Layout
5396 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5399 \begin_layout Plain Layout
5407 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5410 \begin_layout Plain Layout
5418 <cell alignment="center" valignment="top" usebox="none">
5421 \begin_layout Plain Layout
5427 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5430 \begin_layout Plain Layout
5438 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5441 \begin_layout Plain Layout
5449 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5452 \begin_layout Plain Layout
5458 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5461 \begin_layout Plain Layout
5468 <row endlastfoot="true">
5469 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5472 \begin_layout Plain Layout
5478 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5481 \begin_layout Plain Layout
5487 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5490 \begin_layout Plain Layout
5505 \begin_layout Plain Layout
5509 addtocounter{table}{-1}
5515 \begin_inset Note Note
5518 \begin_layout Plain Layout
5519 See the first greyed-out note in section
5520 \begin_inset space ~
5524 \begin_inset CommandInset ref
5526 reference "subsec:Longtable-Captions"
5530 for an explanation of this command.
5538 \begin_layout Subsection
5539 Footnotes in Longtables
5540 \begin_inset CommandInset label
5542 name "subsec:Footnotes-in-Longtables"
5547 \begin_inset Index idx
5550 \begin_layout Plain Layout
5551 Longtables ! Footnotes
5559 \begin_layout Standard
5560 Footnotes can be inserted to every longtable cell.
5561 They appear at the bottom of the page where the table cell with the footnote
5564 \begin_inset space ~
5568 \begin_inset CommandInset ref
5570 reference "tab:DiffCaptions"
5574 has for example a footnote.
5577 \begin_layout Subsection
5579 \begin_inset Index idx
5582 \begin_layout Plain Layout
5583 Longtables ! Alignment
5591 \begin_layout Standard
5592 The horizontal alignment of longtables can be set in the table settings
5594 For left- and right-alignment the table will be directly at the page border.
5595 To add space between the table and the border one has to set the alignment
5596 to center and change the value of the \SpecialChar LaTeX
5609 by inserting this line as \SpecialChar TeX
5610 -Code before the longtable:
5613 \begin_layout Standard
5623 \begin_layout Standard
5624 The value can have any of the units listed in Table
5625 \begin_inset space ~
5629 \begin_inset CommandInset ref
5631 reference "tab:Units"
5642 controls the horizontal distance from the left page border to the longtable,
5649 the distance from the right side.
5650 The default value for both lengths is
5656 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5660 \begin_layout Standard
5661 The following longtable was centered and
5677 \begin_layout Plain Layout
5693 \begin_layout Standard
5694 \begin_inset Tabular
5695 <lyxtabular version="3" rows="5" columns="5">
5696 <features islongtable="true" longtabularalignment="center">
5697 <column alignment="center" valignment="top">
5698 <column alignment="center" valignment="top" width="0pt">
5699 <column alignment="center" valignment="top">
5700 <column alignment="center" valignment="top">
5701 <column alignment="center" valignment="top">
5703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5706 \begin_layout Plain Layout
5712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5715 \begin_layout Plain Layout
5721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5724 \begin_layout Plain Layout
5730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5733 \begin_layout Plain Layout
5739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5742 \begin_layout Plain Layout
5750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5753 \begin_layout Plain Layout
5759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5762 \begin_layout Plain Layout
5768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5771 \begin_layout Plain Layout
5777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5780 \begin_layout Plain Layout
5786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5789 \begin_layout Plain Layout
5797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5800 \begin_layout Plain Layout
5806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5809 \begin_layout Plain Layout
5815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5818 \begin_layout Plain Layout
5824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5827 \begin_layout Plain Layout
5833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5836 \begin_layout Plain Layout
5844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5847 \begin_layout Plain Layout
5853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5856 \begin_layout Plain Layout
5862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5865 \begin_layout Plain Layout
5871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5874 \begin_layout Plain Layout
5880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5883 \begin_layout Plain Layout
5891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5894 \begin_layout Plain Layout
5900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5903 \begin_layout Plain Layout
5909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5912 \begin_layout Plain Layout
5918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5921 \begin_layout Plain Layout
5927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5930 \begin_layout Plain Layout
5945 \begin_layout Plain Layout
5962 \begin_layout Plain Layout
5966 addtocounter{table}{-1}
5972 \begin_inset Note Note
5975 \begin_layout Plain Layout
5976 See the first greyed-out note in section
5977 \begin_inset space ~
5981 \begin_inset CommandInset ref
5983 reference "subsec:Longtable-Captions"
5987 for an explanation of this command.
5995 \begin_layout Subsection
5997 \begin_inset Index idx
6000 \begin_layout Plain Layout
6001 Longtables ! Captions
6007 \begin_inset CommandInset label
6009 name "subsec:Longtable-Captions"
6016 \begin_layout Standard
6017 A longtable cannot be put into a table float because floats can only be
6019 But the caption environment of floats can also be used for longtables when
6020 you use the longtable option
6024 as described in sec.
6025 \begin_inset space \thinspace{}
6029 \begin_inset CommandInset ref
6031 reference "sec:Longtables"
6036 Only one table row should contain a caption, either a header or a footer
6040 \begin_layout Standard
6041 Here is a short longtable to see how it works:
6044 \begin_layout Standard
6045 \begin_inset Tabular
6046 <lyxtabular version="3" rows="6" columns="5">
6047 <features islongtable="true" longtabularalignment="center">
6048 <column alignment="center" valignment="top">
6049 <column alignment="center" valignment="top">
6050 <column alignment="center" valignment="top">
6051 <column alignment="center" valignment="top">
6052 <column alignment="center" valignment="top">
6053 <row endfirsthead="true" caption="true">
6054 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6057 \begin_layout Plain Layout
6058 \begin_inset Caption Standard
6060 \begin_layout Plain Layout
6061 Longtable with caption
6062 \begin_inset Argument 1
6065 \begin_layout Plain Layout
6081 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6084 \begin_layout Plain Layout
6090 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6093 \begin_layout Plain Layout
6099 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6102 \begin_layout Plain Layout
6108 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6111 \begin_layout Plain Layout
6119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6122 \begin_layout Plain Layout
6128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6131 \begin_layout Plain Layout
6137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6140 \begin_layout Plain Layout
6146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6149 \begin_layout Plain Layout
6155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6158 \begin_layout Plain Layout
6166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6169 \begin_layout Plain Layout
6175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6178 \begin_layout Plain Layout
6184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6187 \begin_layout Plain Layout
6193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6196 \begin_layout Plain Layout
6202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6205 \begin_layout Plain Layout
6213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6216 \begin_layout Plain Layout
6222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6225 \begin_layout Plain Layout
6231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6234 \begin_layout Plain Layout
6240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6243 \begin_layout Plain Layout
6249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6252 \begin_layout Plain Layout
6260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6263 \begin_layout Plain Layout
6269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6272 \begin_layout Plain Layout
6278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6281 \begin_layout Plain Layout
6287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6290 \begin_layout Plain Layout
6296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6299 \begin_layout Plain Layout
6307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6310 \begin_layout Plain Layout
6316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6319 \begin_layout Plain Layout
6325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6328 \begin_layout Plain Layout
6334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6337 \begin_layout Plain Layout
6343 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6346 \begin_layout Plain Layout
6360 \begin_layout Standard
6361 \begin_inset VSpace medskip
6365 \begin_inset Note Greyedout
6368 \begin_layout Plain Layout
6372 \begin_inset space ~
6377 The table number is increased for every longtable, even if you did not
6378 set a caption for it.
6379 For this reason you could have the case that e.
6380 \begin_inset space \thinspace{}
6384 \begin_inset space \space{}
6388 \begin_inset space ~
6392 \begin_inset space ~
6395 2.1 in the list of tables if there are two longtables without captions.
6396 To avoid this you can add the following command in \SpecialChar TeX
6397 -Code after every longtable
6401 \begin_layout Plain Layout
6406 addtocounter{table}{-1}
6409 \begin_layout Plain Layout
6410 This is not needed when none of your longtables has a caption and you add
6411 the following code to the document preamble:
6414 \begin_layout Plain Layout
6424 \begin_inset Newline newline
6435 addtocounter{table}{-1}}
6443 \begin_layout Standard
6444 \begin_inset Note Greyedout
6447 \begin_layout Plain Layout
6451 \begin_inset space ~
6461 \begin_inset Index idx
6464 \begin_layout Plain Layout
6466 -packages ! hyperref
6479 dialog to link cross-references, the link to a longtable caption will always
6480 point to the beginning of the document.
6488 \begin_layout Subsubsection
6489 References to Longtables
6490 \begin_inset Index idx
6493 \begin_layout Plain Layout
6494 Longtables ! References
6502 \begin_layout Standard
6503 \begin_inset Tabular
6504 <lyxtabular version="3" rows="6" columns="5">
6505 <features islongtable="true" longtabularalignment="center">
6506 <column alignment="center" valignment="top">
6507 <column alignment="center" valignment="top">
6508 <column alignment="center" valignment="top">
6509 <column alignment="center" valignment="top">
6510 <column alignment="center" valignment="top">
6511 <row endfirsthead="true" caption="true">
6512 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6515 \begin_layout Plain Layout
6516 \begin_inset Caption Standard
6518 \begin_layout Plain Layout
6519 Referenced longtable
6520 \begin_inset CommandInset label
6522 name "tab:RefExample"
6536 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6539 \begin_layout Plain Layout
6545 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6548 \begin_layout Plain Layout
6554 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6557 \begin_layout Plain Layout
6563 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6566 \begin_layout Plain Layout
6574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6577 \begin_layout Plain Layout
6583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6586 \begin_layout Plain Layout
6592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6595 \begin_layout Plain Layout
6601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6604 \begin_layout Plain Layout
6610 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6613 \begin_layout Plain Layout
6621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6624 \begin_layout Plain Layout
6630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6633 \begin_layout Plain Layout
6639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6642 \begin_layout Plain Layout
6648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6651 \begin_layout Plain Layout
6657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6660 \begin_layout Plain Layout
6668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6671 \begin_layout Plain Layout
6677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6680 \begin_layout Plain Layout
6686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6689 \begin_layout Plain Layout
6695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6698 \begin_layout Plain Layout
6704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6707 \begin_layout Plain Layout
6715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6718 \begin_layout Plain Layout
6724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6727 \begin_layout Plain Layout
6733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6736 \begin_layout Plain Layout
6742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6745 \begin_layout Plain Layout
6751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6754 \begin_layout Plain Layout
6762 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6765 \begin_layout Plain Layout
6771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6774 \begin_layout Plain Layout
6780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6783 \begin_layout Plain Layout
6789 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6792 \begin_layout Plain Layout
6798 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6801 \begin_layout Plain Layout
6815 \begin_layout Standard
6816 To reference a longtable, insert a label into the caption.
6819 \begin_layout Standard
6820 This is a reference to Table
6821 \begin_inset space ~
6825 \begin_inset CommandInset ref
6827 reference "tab:RefExample"
6834 \begin_layout Standard
6835 The caption layout can be set together with all other captions of your document
6836 using the \SpecialChar LaTeX
6842 \begin_inset Index idx
6845 \begin_layout Plain Layout
6853 \begin_inset space ~
6857 \begin_inset CommandInset ref
6859 reference "sec:Caption-Formatting"
6866 \begin_layout Subsubsection
6868 \begin_inset Index idx
6871 \begin_layout Plain Layout
6872 Longtables ! Caption Width
6880 \begin_layout Standard
6881 The maximal width of caption lines is defined by the length
6888 Its default value is 4
6889 \begin_inset space \thinspace{}
6893 To change it add the following command to your document preamble or as
6895 -Code into your document before the longtable that should be affected
6898 \begin_layout Standard
6908 \begin_layout Standard
6909 where the width could have one of the units listed in appendix
6910 \begin_inset space ~
6914 \begin_inset CommandInset ref
6916 reference "cha:Units-available-in"
6923 \begin_layout Standard
6924 The following tables show the difference:
6927 \begin_layout Standard
6928 \begin_inset Tabular
6929 <lyxtabular version="3" rows="6" columns="5">
6930 <features islongtable="true" longtabularalignment="center">
6931 <column alignment="center" valignment="top">
6932 <column alignment="center" valignment="top">
6933 <column alignment="center" valignment="top">
6934 <column alignment="center" valignment="top">
6935 <column alignment="center" valignment="top">
6936 <row endfirsthead="true" caption="true">
6937 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6940 \begin_layout Plain Layout
6941 \begin_inset Caption Standard
6943 \begin_layout Plain Layout
6944 long full title with default width long full title with default width long
6945 full title with default width
6946 \begin_inset Argument 1
6949 \begin_layout Plain Layout
6950 caption with default width
6965 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6968 \begin_layout Plain Layout
6974 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6977 \begin_layout Plain Layout
6983 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6986 \begin_layout Plain Layout
6992 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6995 \begin_layout Plain Layout
7003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7006 \begin_layout Plain Layout
7012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7015 \begin_layout Plain Layout
7021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7024 \begin_layout Plain Layout
7030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7033 \begin_layout Plain Layout
7039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7042 \begin_layout Plain Layout
7050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7053 \begin_layout Plain Layout
7059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7062 \begin_layout Plain Layout
7068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7071 \begin_layout Plain Layout
7077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7080 \begin_layout Plain Layout
7086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7089 \begin_layout Plain Layout
7097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7100 \begin_layout Plain Layout
7106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7109 \begin_layout Plain Layout
7115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7118 \begin_layout Plain Layout
7124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7127 \begin_layout Plain Layout
7133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7136 \begin_layout Plain Layout
7144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7147 \begin_layout Plain Layout
7153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7156 \begin_layout Plain Layout
7162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7165 \begin_layout Plain Layout
7171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7174 \begin_layout Plain Layout
7180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7183 \begin_layout Plain Layout
7191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7194 \begin_layout Plain Layout
7200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7203 \begin_layout Plain Layout
7209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7212 \begin_layout Plain Layout
7218 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7221 \begin_layout Plain Layout
7227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7230 \begin_layout Plain Layout
7244 \begin_layout Standard
7248 \begin_layout Plain Layout
7260 \begin_inset Tabular
7261 <lyxtabular version="3" rows="6" columns="5">
7262 <features islongtable="true" longtabularalignment="center">
7263 <column alignment="center" valignment="top">
7264 <column alignment="center" valignment="top">
7265 <column alignment="center" valignment="top">
7266 <column alignment="center" valignment="top">
7267 <column alignment="center" valignment="top">
7268 <row endfirsthead="true" caption="true">
7269 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7272 \begin_layout Plain Layout
7273 \begin_inset Caption Standard
7275 \begin_layout Plain Layout
7276 long full title with width set to 5
7277 \begin_inset space \thinspace{}
7280 cm long full title with width set to 5
7281 \begin_inset space \thinspace{}
7284 cm long full title with width set to 5
7285 \begin_inset space \thinspace{}
7289 \begin_inset Argument 1
7292 \begin_layout Plain Layout
7294 \begin_inset space \thinspace{}
7298 \begin_inset space \thinspace{}
7302 \begin_inset space \thinspace{}
7320 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7323 \begin_layout Plain Layout
7329 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7332 \begin_layout Plain Layout
7338 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7341 \begin_layout Plain Layout
7347 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7350 \begin_layout Plain Layout
7358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7361 \begin_layout Plain Layout
7367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7370 \begin_layout Plain Layout
7376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7379 \begin_layout Plain Layout
7385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7388 \begin_layout Plain Layout
7394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7397 \begin_layout Plain Layout
7405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7408 \begin_layout Plain Layout
7414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7417 \begin_layout Plain Layout
7423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7426 \begin_layout Plain Layout
7432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7435 \begin_layout Plain Layout
7441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7444 \begin_layout Plain Layout
7452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7455 \begin_layout Plain Layout
7461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7464 \begin_layout Plain Layout
7470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7473 \begin_layout Plain Layout
7479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7482 \begin_layout Plain Layout
7488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7491 \begin_layout Plain Layout
7499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7502 \begin_layout Plain Layout
7508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7511 \begin_layout Plain Layout
7517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7520 \begin_layout Plain Layout
7526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7529 \begin_layout Plain Layout
7535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7538 \begin_layout Plain Layout
7546 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7549 \begin_layout Plain Layout
7555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7558 \begin_layout Plain Layout
7564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7567 \begin_layout Plain Layout
7573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7576 \begin_layout Plain Layout
7582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7585 \begin_layout Plain Layout
7599 \begin_layout Standard
7603 \begin_layout Plain Layout
7617 \begin_layout Standard
7618 \begin_inset Note Greyedout
7621 \begin_layout Plain Layout
7626 When the \SpecialChar LaTeX
7632 \begin_inset Index idx
7635 \begin_layout Plain Layout
7642 is used, as in this document, the full page width is used for the caption
7643 when you use the default value of 4
7644 \begin_inset space \thinspace{}
7654 To get in this case exactly a 4
7655 \begin_inset space \thinspace{}
7658 in wide caption, you can either use a value slightly different from 4.0
7659 \begin_inset space \thinspace{}
7663 \begin_inset space \thinspace{}
7667 \begin_inset space \space{}
7671 \begin_inset space \thinspace{}
7674 in, or the \SpecialChar LaTeX
7679 captionsetup{width=value}
7681 that is provided by the
7693 \begin_layout Subsubsection
7694 Different Captions for Table Pages
7695 \begin_inset Index idx
7698 \begin_layout Plain Layout
7699 Longtables ! Different Captions for Pages
7707 \begin_layout Standard
7708 When the table captions for the following pages should differ from the one
7709 of the first table page, mark a empty row as header which contains a caption.
7710 Then right-click on the caption and select in the context menu
7713 \begin_inset space ~
7720 \begin_inset space ~
7724 \begin_inset CommandInset ref
7726 reference "tab:DiffCaptions"
7730 is an example of a longtable with different heading where the second caption
7731 does not include the table number.
7732 \begin_inset Separator parbreak
7738 \begin_layout Standard
7740 \begin_inset Tabular
7741 <lyxtabular version="3" rows="59" columns="3">
7742 <features islongtable="true" longtabularalignment="center">
7743 <column alignment="left" valignment="top" width="0cm">
7744 <column alignment="left" valignment="top" width="0pt">
7745 <column alignment="center" valignment="top" width="0pt">
7746 <row endfirsthead="true" caption="true">
7747 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7750 \begin_layout Plain Layout
7751 \begin_inset Caption Standard
7753 \begin_layout Plain Layout
7755 \begin_inset CommandInset label
7757 name "tab:DiffCaptions"
7762 \begin_inset Argument 1
7765 \begin_layout Plain Layout
7781 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7784 \begin_layout Plain Layout
7790 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7793 \begin_layout Plain Layout
7800 <row endfirsthead="true">
7801 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7804 \begin_layout Plain Layout
7807 Example Phone List (ignore the names)
7812 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7815 \begin_layout Plain Layout
7821 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7824 \begin_layout Plain Layout
7831 <row endfirsthead="true">
7832 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7835 \begin_layout Plain Layout
7843 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7846 \begin_layout Plain Layout
7852 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7855 \begin_layout Plain Layout
7864 <row endhead="true" caption="true">
7865 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7868 \begin_layout Plain Layout
7869 \begin_inset Caption LongTableNoNumber
7871 \begin_layout Plain Layout
7872 Continued Example Phone List
7882 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7885 \begin_layout Plain Layout
7891 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7894 \begin_layout Plain Layout
7901 <row endhead="true">
7902 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7905 \begin_layout Plain Layout
7913 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7916 \begin_layout Plain Layout
7922 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7925 \begin_layout Plain Layout
7932 <row endhead="true">
7933 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7936 \begin_layout Plain Layout
7944 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7947 \begin_layout Plain Layout
7953 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7956 \begin_layout Plain Layout
7965 <row endfoot="true">
7966 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7969 \begin_layout Plain Layout
7970 continued on next page
7975 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7978 \begin_layout Plain Layout
7984 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7987 \begin_layout Plain Layout
7995 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7998 \begin_layout Plain Layout
8006 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8009 \begin_layout Plain Layout
8015 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8018 \begin_layout Plain Layout
8026 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8029 \begin_layout Plain Layout
8037 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8040 \begin_layout Plain Layout
8046 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8049 \begin_layout Plain Layout
8057 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8060 \begin_layout Plain Layout
8068 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8071 \begin_layout Plain Layout
8077 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8080 \begin_layout Plain Layout
8088 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8091 \begin_layout Plain Layout
8099 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8102 \begin_layout Plain Layout
8108 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8111 \begin_layout Plain Layout
8119 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8122 \begin_layout Plain Layout
8130 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8133 \begin_layout Plain Layout
8139 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8142 \begin_layout Plain Layout
8150 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8153 \begin_layout Plain Layout
8161 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8164 \begin_layout Plain Layout
8170 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8173 \begin_layout Plain Layout
8181 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8184 \begin_layout Plain Layout
8192 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8195 \begin_layout Plain Layout
8201 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8204 \begin_layout Plain Layout
8212 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8215 \begin_layout Plain Layout
8223 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8226 \begin_layout Plain Layout
8232 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8235 \begin_layout Plain Layout
8243 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8246 \begin_layout Plain Layout
8254 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8257 \begin_layout Plain Layout
8263 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8266 \begin_layout Plain Layout
8274 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8277 \begin_layout Plain Layout
8285 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8288 \begin_layout Plain Layout
8294 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8297 \begin_layout Plain Layout
8305 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8308 \begin_layout Plain Layout
8316 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8319 \begin_layout Plain Layout
8325 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8328 \begin_layout Plain Layout
8336 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8339 \begin_layout Plain Layout
8347 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8350 \begin_layout Plain Layout
8356 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8359 \begin_layout Plain Layout
8367 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8370 \begin_layout Plain Layout
8378 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8381 \begin_layout Plain Layout
8387 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8390 \begin_layout Plain Layout
8398 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8401 \begin_layout Plain Layout
8409 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8412 \begin_layout Plain Layout
8418 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8421 \begin_layout Plain Layout
8429 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8432 \begin_layout Plain Layout
8441 \begin_layout Plain Layout
8452 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8455 \begin_layout Plain Layout
8461 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8464 \begin_layout Plain Layout
8472 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8475 \begin_layout Plain Layout
8483 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8486 \begin_layout Plain Layout
8492 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8495 \begin_layout Plain Layout
8503 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8506 \begin_layout Plain Layout
8514 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8517 \begin_layout Plain Layout
8523 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8526 \begin_layout Plain Layout
8534 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8537 \begin_layout Plain Layout
8545 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8548 \begin_layout Plain Layout
8554 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8557 \begin_layout Plain Layout
8565 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8568 \begin_layout Plain Layout
8576 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8579 \begin_layout Plain Layout
8585 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8588 \begin_layout Plain Layout
8596 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8599 \begin_layout Plain Layout
8607 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8610 \begin_layout Plain Layout
8616 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8619 \begin_layout Plain Layout
8627 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8630 \begin_layout Plain Layout
8638 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8641 \begin_layout Plain Layout
8647 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8650 \begin_layout Plain Layout
8658 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8661 \begin_layout Plain Layout
8669 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8672 \begin_layout Plain Layout
8678 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8681 \begin_layout Plain Layout
8689 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8692 \begin_layout Plain Layout
8700 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8703 \begin_layout Plain Layout
8709 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8712 \begin_layout Plain Layout
8720 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8723 \begin_layout Plain Layout
8731 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8734 \begin_layout Plain Layout
8740 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8743 \begin_layout Plain Layout
8751 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8754 \begin_layout Plain Layout
8762 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8765 \begin_layout Plain Layout
8771 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8774 \begin_layout Plain Layout
8782 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8785 \begin_layout Plain Layout
8793 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8796 \begin_layout Plain Layout
8802 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8805 \begin_layout Plain Layout
8813 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8816 \begin_layout Plain Layout
8824 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8827 \begin_layout Plain Layout
8833 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8836 \begin_layout Plain Layout
8844 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8847 \begin_layout Plain Layout
8855 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8858 \begin_layout Plain Layout
8864 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8867 \begin_layout Plain Layout
8875 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8878 \begin_layout Plain Layout
8886 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8889 \begin_layout Plain Layout
8895 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8898 \begin_layout Plain Layout
8906 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8909 \begin_layout Plain Layout
8917 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8920 \begin_layout Plain Layout
8926 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8929 \begin_layout Plain Layout
8937 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8940 \begin_layout Plain Layout
8948 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8951 \begin_layout Plain Layout
8957 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8960 \begin_layout Plain Layout
8968 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8971 \begin_layout Plain Layout
8977 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8980 \begin_layout Plain Layout
8986 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8989 \begin_layout Plain Layout
8997 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9000 \begin_layout Plain Layout
9008 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9011 \begin_layout Plain Layout
9017 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9020 \begin_layout Plain Layout
9028 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9031 \begin_layout Plain Layout
9039 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9042 \begin_layout Plain Layout
9048 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9051 \begin_layout Plain Layout
9059 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9062 \begin_layout Plain Layout
9070 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9073 \begin_layout Plain Layout
9079 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9082 \begin_layout Plain Layout
9090 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9093 \begin_layout Plain Layout
9101 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9104 \begin_layout Plain Layout
9110 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9113 \begin_layout Plain Layout
9121 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9124 \begin_layout Plain Layout
9132 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9135 \begin_layout Plain Layout
9141 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9144 \begin_layout Plain Layout
9152 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9155 \begin_layout Plain Layout
9163 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9166 \begin_layout Plain Layout
9172 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9175 \begin_layout Plain Layout
9183 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9186 \begin_layout Plain Layout
9194 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9197 \begin_layout Plain Layout
9203 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9206 \begin_layout Plain Layout
9214 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9217 \begin_layout Plain Layout
9225 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9228 \begin_layout Plain Layout
9234 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9237 \begin_layout Plain Layout
9245 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9248 \begin_layout Plain Layout
9256 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9259 \begin_layout Plain Layout
9265 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9268 \begin_layout Plain Layout
9276 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9279 \begin_layout Plain Layout
9287 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9290 \begin_layout Plain Layout
9296 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9299 \begin_layout Plain Layout
9307 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9310 \begin_layout Plain Layout
9318 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9321 \begin_layout Plain Layout
9327 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9330 \begin_layout Plain Layout
9338 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9341 \begin_layout Plain Layout
9349 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9352 \begin_layout Plain Layout
9358 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9361 \begin_layout Plain Layout
9369 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9372 \begin_layout Plain Layout
9380 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9383 \begin_layout Plain Layout
9389 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9392 \begin_layout Plain Layout
9400 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9403 \begin_layout Plain Layout
9411 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9414 \begin_layout Plain Layout
9420 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9423 \begin_layout Plain Layout
9431 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9434 \begin_layout Plain Layout
9442 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9445 \begin_layout Plain Layout
9451 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9454 \begin_layout Plain Layout
9462 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9465 \begin_layout Plain Layout
9473 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9476 \begin_layout Plain Layout
9482 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9485 \begin_layout Plain Layout
9493 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9496 \begin_layout Plain Layout
9504 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9507 \begin_layout Plain Layout
9513 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9516 \begin_layout Plain Layout
9524 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9527 \begin_layout Plain Layout
9535 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9538 \begin_layout Plain Layout
9544 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9547 \begin_layout Plain Layout
9555 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9558 \begin_layout Plain Layout
9566 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9569 \begin_layout Plain Layout
9575 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9578 \begin_layout Plain Layout
9586 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9589 \begin_layout Plain Layout
9597 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9600 \begin_layout Plain Layout
9606 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9609 \begin_layout Plain Layout
9623 \begin_layout Section
9624 Special Longtable Issues
9625 \begin_inset CommandInset label
9627 name "sec:Special-Longtable-Issues"
9634 \begin_layout Subsection
9635 Longtable Calculation
9636 \begin_inset Index idx
9639 \begin_layout Plain Layout
9640 Longtables ! Calculation
9648 \begin_layout Standard
9650 calculates the height of table pages and their page breaks using so called
9652 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9654 The default value was historically set to only 20 table rows.
9655 If you are using longtables with many pages this may slow down the creation
9657 You can safely increase the chunk size to values of 100-1000 by adding
9658 this command line to your document preamble:
9661 \begin_layout Standard
9666 setcounter{LTchunksize}{100}
9669 \begin_layout Subsection
9670 Floats and Longtables
9671 \begin_inset Index idx
9674 \begin_layout Plain Layout
9683 \begin_layout Standard
9684 There might be problems when a float appears on the same page where a longtable
9686 To avoid such a situation, insert a
9687 \begin_inset Quotes eld
9691 \begin_inset Quotes erd
9696 Insert\SpecialChar menuseparator
9697 Formatting\SpecialChar menuseparator
9699 \begin_inset space ~
9704 ) before your longtable.
9707 \begin_layout Subsection
9709 \begin_inset Index idx
9712 \begin_layout Plain Layout
9713 Longtables ! Forced Page Breaks
9721 \begin_layout Standard
9722 By default tables are only broken between rows.
9723 If you have a cell with multiples lines and want to have a page break within
9724 the cell, insert the new line command
9725 \begin_inset Quotes eld
9737 \begin_inset Quotes erd
9741 -Code at the point of the cell where it can be broken.
9750 command you have to insert in \SpecialChar TeX
9752 \begin_inset Quotes eld
9760 \begin_inset Quotes erd
9763 characters as the number of the following table columns.
9768 is the character to separate table cells.
9769 Write in \SpecialChar TeX
9774 the content of the corresponding following cell and delete the content
9776 \begin_inset Newline newline
9787 command, insert as many
9791 characters as the number of table columns before the current column.
9793 \begin_inset space ~
9797 \begin_inset CommandInset ref
9799 reference "tab:ForcedPagebreak"
9803 the cell that should be broken is in the second column followed by another
9805 Therefore the following command was inserted in the cell as \SpecialChar TeX
9808 \begin_inset Quotes eld
9816 \begin_inset Quotes erd
9822 \begin_layout Standard
9832 \begin_inset Newline newline
9838 \begin_layout Standard
9840 \begin_inset Quotes eld
9844 \begin_inset Quotes erd
9847 in the third column of the row was deleted.
9854 is only needed when a page break should definitely occur at this position,
9855 otherwise it would be a conditional break.
9856 If your footer row of the longtable has for a certain reason no upper line
9857 but you would have a horizontal line where the cell is broken, use this
9861 \begin_layout Standard
9869 \begin_inset Newline newline
9877 \begin_layout Standard
9878 When the cell to be broken is in the last column, the command
9881 \begin_layout Standard
9891 \begin_layout Standard
9892 must be inserted as \SpecialChar TeX
9893 -Code at the beginning of the cell.
9894 This ensures that the part of the cell that will be displayed on the new
9895 page appears with the full width.
9896 \begin_inset Separator parbreak
9902 \begin_layout Standard
9904 \begin_inset Tabular
9905 <lyxtabular version="3" rows="38" columns="3">
9906 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9907 <column alignment="left" valignment="top" width="0cm">
9908 <column alignment="left" valignment="top" width="3cm">
9909 <column alignment="center" valignment="top" width="0pt">
9910 <row endfirsthead="true" caption="true">
9911 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9914 \begin_layout Plain Layout
9915 \begin_inset Caption Standard
9917 \begin_layout Plain Layout
9918 Table with forced page break in table cell
9919 \begin_inset CommandInset label
9921 name "tab:ForcedPagebreak"
9926 \begin_inset Argument 1
9929 \begin_layout Plain Layout
9930 Table with forced page break in table cell
9945 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9948 \begin_layout Plain Layout
9954 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9957 \begin_layout Plain Layout
9964 <row endfirsthead="true">
9965 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9968 \begin_layout Plain Layout
9971 Example Phone List (ignore the names)
9976 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9979 \begin_layout Plain Layout
9985 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9988 \begin_layout Plain Layout
9995 <row endfirsthead="true">
9996 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9999 \begin_layout Plain Layout
10007 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10010 \begin_layout Plain Layout
10016 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10019 \begin_layout Plain Layout
10028 <row endhead="true">
10029 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10032 \begin_layout Plain Layout
10036 \begin_layout Plain Layout
10040 caption*{Continued Example Phone List}
10054 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10057 \begin_layout Plain Layout
10063 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10066 \begin_layout Plain Layout
10073 <row endhead="true">
10074 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10077 \begin_layout Plain Layout
10085 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10088 \begin_layout Plain Layout
10094 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10097 \begin_layout Plain Layout
10104 <row endhead="true">
10105 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10108 \begin_layout Plain Layout
10116 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10119 \begin_layout Plain Layout
10125 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10128 \begin_layout Plain Layout
10137 <row endfoot="true">
10138 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10141 \begin_layout Plain Layout
10142 continued on next page
10147 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10150 \begin_layout Plain Layout
10156 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10159 \begin_layout Plain Layout
10167 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10170 \begin_layout Plain Layout
10178 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10181 \begin_layout Plain Layout
10187 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10190 \begin_layout Plain Layout
10198 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10201 \begin_layout Plain Layout
10209 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10212 \begin_layout Plain Layout
10218 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10221 \begin_layout Plain Layout
10229 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10232 \begin_layout Plain Layout
10240 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10243 \begin_layout Plain Layout
10249 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10252 \begin_layout Plain Layout
10260 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10263 \begin_layout Plain Layout
10271 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10274 \begin_layout Plain Layout
10280 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10283 \begin_layout Plain Layout
10291 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10294 \begin_layout Plain Layout
10302 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10305 \begin_layout Plain Layout
10311 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10314 \begin_layout Plain Layout
10322 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10325 \begin_layout Plain Layout
10333 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10336 \begin_layout Plain Layout
10342 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10345 \begin_layout Plain Layout
10353 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10356 \begin_layout Plain Layout
10364 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10367 \begin_layout Plain Layout
10373 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10376 \begin_layout Plain Layout
10384 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10387 \begin_layout Plain Layout
10395 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10398 \begin_layout Plain Layout
10404 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10407 \begin_layout Plain Layout
10415 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10418 \begin_layout Plain Layout
10426 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10429 \begin_layout Plain Layout
10435 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10438 \begin_layout Plain Layout
10446 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10449 \begin_layout Plain Layout
10457 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10460 \begin_layout Plain Layout
10466 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10469 \begin_layout Plain Layout
10477 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10480 \begin_layout Plain Layout
10488 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10491 \begin_layout Plain Layout
10497 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10500 \begin_layout Plain Layout
10508 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10511 \begin_layout Plain Layout
10519 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10522 \begin_layout Plain Layout
10528 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10531 \begin_layout Plain Layout
10539 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10542 \begin_layout Plain Layout
10550 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10553 \begin_layout Plain Layout
10559 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10562 \begin_layout Plain Layout
10570 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10573 \begin_layout Plain Layout
10581 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10584 \begin_layout Plain Layout
10590 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10593 \begin_layout Plain Layout
10601 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10604 \begin_layout Plain Layout
10612 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10615 \begin_layout Plain Layout
10621 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10624 \begin_layout Plain Layout
10632 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10635 \begin_layout Plain Layout
10643 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10646 \begin_layout Plain Layout
10652 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10655 \begin_layout Plain Layout
10663 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10666 \begin_layout Plain Layout
10674 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10677 \begin_layout Plain Layout
10683 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10686 \begin_layout Plain Layout
10694 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10697 \begin_layout Plain Layout
10705 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10708 \begin_layout Plain Layout
10714 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10717 \begin_layout Plain Layout
10725 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10728 \begin_layout Plain Layout
10736 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10739 \begin_layout Plain Layout
10745 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10748 \begin_layout Plain Layout
10756 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10759 \begin_layout Plain Layout
10767 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10770 \begin_layout Plain Layout
10776 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10779 \begin_layout Plain Layout
10787 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10790 \begin_layout Plain Layout
10798 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10801 \begin_layout Plain Layout
10807 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10810 \begin_layout Plain Layout
10818 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10821 \begin_layout Plain Layout
10829 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10832 \begin_layout Plain Layout
10838 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10841 \begin_layout Plain Layout
10849 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10852 \begin_layout Plain Layout
10860 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10863 \begin_layout Plain Layout
10865 Fürst von Montecompatri, 11.
10866 Fürst von Sulmona und Vivaro, 10.
10867 Fürst von Rossano, 5.
10868 Herzog von Canemorte, 11.
10869 Herzog von Palombara, 5.
10870 Herzog von Castelchiodato,
10874 \begin_layout Plain Layout
10885 \begin_layout Plain Layout
10893 Herzog von Poggionativo, 11.
10894 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10895 Graf von Valinfreda, 11.
10896 Baron von Cropalati, 11.
10897 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10902 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10905 \begin_layout Plain Layout
10913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10916 \begin_layout Plain Layout
10924 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10927 \begin_layout Plain Layout
10933 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10936 \begin_layout Plain Layout
10944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10947 \begin_layout Plain Layout
10955 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10958 \begin_layout Plain Layout
10964 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10967 \begin_layout Plain Layout
10975 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10978 \begin_layout Plain Layout
10986 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10989 \begin_layout Plain Layout
10995 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10998 \begin_layout Plain Layout
11006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11009 \begin_layout Plain Layout
11017 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11020 \begin_layout Plain Layout
11026 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11029 \begin_layout Plain Layout
11037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11040 \begin_layout Plain Layout
11048 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11051 \begin_layout Plain Layout
11057 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11060 \begin_layout Plain Layout
11068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11071 \begin_layout Plain Layout
11079 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11082 \begin_layout Plain Layout
11088 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11091 \begin_layout Plain Layout
11099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11102 \begin_layout Plain Layout
11110 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11113 \begin_layout Plain Layout
11119 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11122 \begin_layout Plain Layout
11130 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11133 \begin_layout Plain Layout
11141 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11144 \begin_layout Plain Layout
11150 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11153 \begin_layout Plain Layout
11167 \begin_layout Section
11168 Multiple Lines, Columns and Rows
11171 \begin_layout Subsection
11172 Multiple Lines in Table Cells
11173 \begin_inset CommandInset label
11175 name "subsec:Multiple-Lines-in"
11180 \begin_inset Index idx
11183 \begin_layout Plain Layout
11184 Multiple Lines in Table Cells
11190 \begin_inset Index idx
11193 \begin_layout Plain Layout
11202 \begin_layout Standard
11204 \begin_inset Float table
11210 \begin_layout Plain Layout
11211 \begin_inset Caption Standard
11213 \begin_layout Plain Layout
11214 \begin_inset CommandInset label
11216 name "tab:Table-with-multiple"
11220 Table with multiple lines in cells
11228 \begin_layout Plain Layout
11230 \begin_inset Tabular
11231 <lyxtabular version="3" rows="3" columns="3">
11232 <features tabularvalignment="middle">
11233 <column alignment="center" valignment="middle" width="2.5cm">
11234 <column alignment="center" valignment="middle">
11235 <column alignment="center" valignment="middle">
11237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11240 \begin_layout Plain Layout
11242 \begin_inset Newline linebreak
11250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11253 \begin_layout Plain Layout
11259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11262 \begin_layout Plain Layout
11270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11273 \begin_layout Plain Layout
11279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11282 \begin_layout Plain Layout
11288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11291 \begin_layout Plain Layout
11299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11302 \begin_layout Plain Layout
11308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11311 \begin_layout Plain Layout
11317 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11320 \begin_layout Plain Layout
11339 \begin_layout Standard
11340 Setting a fixed width for a column enables you to enter text as a paragraph
11341 with multiple lines and hyphenation.
11344 \begin_layout Standard
11346 \begin_inset space ~
11350 \begin_inset CommandInset ref
11352 reference "tab:Table-with-multiple"
11356 , create a 3×3 table, mark the first cell and right-click on it.
11357 In the appearing table dialog we set a cell width of 2.5
11358 \begin_inset space \thinspace{}
11361 cm and choose centered for the vertical and horizontal alignment.
11362 The vertical alignment is used for all cells of the row.
11363 As our text is smaller than 2.5
11364 \begin_inset space \thinspace{}
11367 cm, only one line will appear.
11368 To get two lines, a justified line break (shortcut
11371 arg "newline-insert linebreak"
11375 If the text is wider than the set cell width, it will automatically be
11376 broken to several lines.
11379 \begin_layout Standard
11380 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11381 by \SpecialChar LaTeX
11382 if it is the first entry.
11383 Therefore you need to insert something to prevent the word not being the
11385 So add a horizontal space of 0
11386 \begin_inset space \thinspace{}
11389 pt before the word.
11390 As the space is zero, it doesn't change the output.
11392 \begin_inset space ~
11396 \begin_inset CommandInset ref
11398 reference "tab:Table-with-and"
11405 \begin_layout Standard
11406 \begin_inset Float table
11412 \begin_layout Plain Layout
11413 \begin_inset Caption Standard
11415 \begin_layout Plain Layout
11416 \begin_inset CommandInset label
11418 name "tab:Table-with-and"
11422 Table with and without hyphenation
11430 \begin_layout Plain Layout
11431 \begin_inset space \hfill{}
11435 \begin_inset Tabular
11436 <lyxtabular version="3" rows="3" columns="3">
11437 <features tabularvalignment="middle">
11438 <column alignment="center" valignment="middle" width="2.5cm">
11439 <column alignment="center" valignment="middle">
11440 <column alignment="center" valignment="middle">
11442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11445 \begin_layout Plain Layout
11446 verylongtablecellword
11451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11454 \begin_layout Plain Layout
11460 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11463 \begin_layout Plain Layout
11471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11474 \begin_layout Plain Layout
11480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11483 \begin_layout Plain Layout
11489 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11492 \begin_layout Plain Layout
11500 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11503 \begin_layout Plain Layout
11509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11512 \begin_layout Plain Layout
11518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11521 \begin_layout Plain Layout
11533 \begin_inset space \hfill{}
11537 \begin_inset Tabular
11538 <lyxtabular version="3" rows="3" columns="3">
11539 <features tabularvalignment="middle">
11540 <column alignment="center" valignment="middle" width="2.5cm">
11541 <column alignment="center" valignment="middle">
11542 <column alignment="center" valignment="middle">
11544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11547 \begin_layout Plain Layout
11548 \begin_inset space \hspace{}
11552 verylongtablecellword
11557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11560 \begin_layout Plain Layout
11566 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11569 \begin_layout Plain Layout
11577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11580 \begin_layout Plain Layout
11586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11589 \begin_layout Plain Layout
11595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11598 \begin_layout Plain Layout
11606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11609 \begin_layout Plain Layout
11615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11618 \begin_layout Plain Layout
11624 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11627 \begin_layout Plain Layout
11639 \begin_inset space \hfill{}
11650 \begin_layout Subsection
11652 \begin_inset CommandInset label
11654 name "subsec:Multicolumns"
11659 \begin_inset Index idx
11662 \begin_layout Plain Layout
11669 \begin_inset Index idx
11672 \begin_layout Plain Layout
11673 Table ! Multicolumns
11681 \begin_layout Subsubsection
11685 \begin_layout Standard
11686 To merge cells over multiple columns, select as many cells within a row
11687 as you want to merge and use either the table-toolbar button
11690 arg "inset-modify tabular multicolumn"
11695 Edit\SpecialChar menuseparator
11696 Table\SpecialChar menuseparator
11699 , or right click on the marked cells and choose
11703 in the context menu.
11706 \begin_layout Standard
11707 Multicolumns have there own cell settings.
11708 That means changing cell borders, cell alignment, and the width only affects
11710 Here is an example table with a multicolumn cell in the first row and one
11711 in the last row without the upper border:
11712 \begin_inset Separator parbreak
11718 \begin_layout Standard
11720 \begin_inset Tabular
11721 <lyxtabular version="3" rows="3" columns="4">
11722 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11723 <column alignment="center" valignment="top" width="0pt">
11724 <column alignment="center" valignment="middle">
11725 <column alignment="center" valignment="top" width="0in">
11726 <column alignment="center" valignment="top" width="0pt">
11728 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11731 \begin_layout Plain Layout
11737 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11740 \begin_layout Plain Layout
11746 <cell multicolumn="2" 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
11766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11769 \begin_layout Plain Layout
11784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11787 \begin_layout Plain Layout
11793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11796 \begin_layout Plain Layout
11802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11805 \begin_layout Plain Layout
11813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11816 \begin_layout Plain Layout
11822 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11825 \begin_layout Plain Layout
11831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11834 \begin_layout Plain Layout
11840 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11843 \begin_layout Plain Layout
11857 \begin_layout Subsubsection
11858 Multicolumn Calculations
11859 \begin_inset CommandInset label
11861 name "subsec:Multicolumn-Calculations"
11866 \begin_inset Index idx
11869 \begin_layout Plain Layout
11870 Multicolumns ! Calculations
11878 \begin_layout Standard
11880 supports multicolumns directly, but we have to take account of the cell
11881 width of the columns spanned by the multicolumn cell.
11884 \begin_layout Standard
11885 \begin_inset Float table
11891 \begin_layout Plain Layout
11892 \begin_inset Caption Standard
11894 \begin_layout Plain Layout
11895 \begin_inset CommandInset label
11897 name "tab:Table-with-centered"
11901 Table with centered multicolumn text above two columns that have exactly
11902 half the width of the multicolumn cell
11903 \begin_inset Argument 1
11906 \begin_layout Plain Layout
11907 Perfect multicolumn table
11920 \begin_layout Plain Layout
11922 \begin_inset Tabular
11923 <lyxtabular version="3" rows="3" columns="3">
11924 <features tabularvalignment="middle">
11925 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11926 <column alignment="center" valignment="middle">
11927 <column alignment="center" valignment="top">
11929 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11932 \begin_layout Plain Layout
11933 multiple lines multicolumn
11938 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11941 \begin_layout Plain Layout
11947 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11950 \begin_layout Plain Layout
11958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11961 \begin_layout Plain Layout
11967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11970 \begin_layout Plain Layout
11976 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11979 \begin_layout Plain Layout
11987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11990 \begin_layout Plain Layout
11996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11999 \begin_layout Plain Layout
12005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12008 \begin_layout Plain Layout
12027 \begin_layout Standard
12028 To create for example Table
12029 \begin_inset space ~
12033 \begin_inset CommandInset ref
12035 reference "tab:Table-with-centered"
12039 , mark the first two cells in the first row of a 3×3 table and right-click
12041 Now choose for this cell
12050 \begin_inset space \thinspace{}
12053 cm in the table dialog.
12054 The merged columns should have exactly half the width of the multicolumn
12055 cell, so that you would set a width of 1.25
12056 \begin_inset space \thinspace{}
12059 cm for the first column.
12060 The second column has then automatically a width of 1.25
12061 \begin_inset space \thinspace{}
12064 cm (multicolumn width - width of first column).
12065 This was done for Table
12066 \begin_inset space ~
12070 \begin_inset CommandInset ref
12072 reference "tab:Table-without-half"
12079 \begin_layout Standard
12080 \begin_inset Float table
12085 \begin_layout Plain Layout
12086 \begin_inset Caption Standard
12088 \begin_layout Plain Layout
12089 \begin_inset CommandInset label
12091 name "tab:Table-without-half"
12095 Table where the spanned table columns are not exactly half the width of
12096 the multicolumn cell
12097 \begin_inset Argument 1
12100 \begin_layout Plain Layout
12101 Imperfect multicolumn table
12114 \begin_layout Plain Layout
12116 \begin_inset Tabular
12117 <lyxtabular version="3" rows="3" columns="3">
12118 <features tabularvalignment="middle">
12119 <column alignment="center" valignment="top" width="1.25cm">
12120 <column alignment="center" valignment="top">
12121 <column alignment="center" valignment="top">
12123 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12126 \begin_layout Plain Layout
12127 multiple lines multicolumn
12132 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12135 \begin_layout Plain Layout
12141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12144 \begin_layout Plain Layout
12152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12155 \begin_layout Plain Layout
12161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12164 \begin_layout Plain Layout
12170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12173 \begin_layout Plain Layout
12181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12184 \begin_layout Plain Layout
12190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12193 \begin_layout Plain Layout
12199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12202 \begin_layout Plain Layout
12221 \begin_layout Standard
12222 You can see that the first column is not half the width of the multicolumn
12223 cell, it is a bit bigger.
12224 The reason is that the specified width of a cell
12225 \begin_inset Formula $W_{g}$
12228 is not its total width
12229 \begin_inset Formula $W_{\mathrm{tot}}$
12232 because a cell is always a bit larger than specified.
12234 \begin_inset space ~
12238 \begin_inset CommandInset ref
12240 reference "cha:Explanation-of-Equation"
12244 explains this in detail.
12247 \begin_layout Standard
12249 \begin_inset Formula $W_{g\,n}$
12252 which the user needs to set when
12256 columns are spanned can be calculated, so that each column has a total
12258 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12262 \begin_inset Formula
12264 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12272 \begin_layout Standard
12273 In our case we have
12274 \begin_inset Formula $n=2$
12278 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12281 cm and the default values for the lengths, so that equation
12282 \begin_inset CommandInset ref
12289 \begin_inset Formula
12291 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12299 \begin_layout Standard
12300 To enable calculations in \SpecialChar LaTeX
12301 , the \SpecialChar LaTeX
12306 must be loaded with the document preamble line
12307 \begin_inset Index idx
12310 \begin_layout Plain Layout
12320 \begin_layout Standard
12328 \begin_layout Standard
12330 does not allow you to calculate lengths in the
12334 field of the table dialog.
12335 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12338 Here is an overview about the arguments:
12341 \begin_layout Itemize
12346 creates cell with a fixed width, its text is vertically top-aligned
12349 \begin_layout Itemize
12354 creates cell with a fixed width, its text is vertically centered
12357 \begin_layout Itemize
12362 creates cell with a fixed width, its text is vertically bottom-aligned
12365 \begin_layout Standard
12366 By entering a \SpecialChar LaTeX
12367 -argument, all cell settings set in the table dialog are overwritt
12371 \begin_layout Standard
12372 \begin_inset Note Greyedout
12375 \begin_layout Plain Layout
12380 Due to a bug, \SpecialChar LyX
12381 shows the overwritten settings anyway.
12389 \begin_layout Standard
12390 As the text should be horizontally centered, the command
12397 You can now enter the following \SpecialChar LaTeX
12398 -argument for the first spanned column:
12401 \begin_layout Standard
12406 centering}m{1.25cm-6.2pt}
12409 \begin_layout Standard
12414 means, that the commands inside the braces are applied before the cell
12418 \begin_layout Standard
12419 Although we have chosen centered alignment for the text of the multicolumn
12420 cell, it is still left aligned.
12421 This is because \SpecialChar LyX
12422 only applies the alignment to single columns.
12423 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12427 \begin_layout Standard
12435 \begin_layout Subsection
12437 \begin_inset CommandInset label
12439 name "subsec:Multirows"
12444 \begin_inset Index idx
12447 \begin_layout Plain Layout
12454 \begin_inset Index idx
12457 \begin_layout Plain Layout
12466 \begin_layout Standard
12467 To merge cells over multiple rows, select as many cells within a column
12468 as you want to merge and use either the table-toolbar button
12471 arg "inset-modify tabular multirow"
12476 Edit\SpecialChar menuseparator
12477 Table\SpecialChar menuseparator
12480 , or right click on the marked cells and choose
12484 in the context menu.
12487 \begin_layout Standard
12488 Here is an example table with a multirow in the first column:
12489 \begin_inset Separator parbreak
12495 \begin_layout Standard
12497 \begin_inset Tabular
12498 <lyxtabular version="3" rows="3" columns="3">
12499 <features tabularvalignment="middle">
12500 <column alignment="center" valignment="top" width="0pt">
12501 <column alignment="center" valignment="top">
12502 <column alignment="center" valignment="top">
12504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12507 \begin_layout Plain Layout
12513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12516 \begin_layout Plain Layout
12522 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12525 \begin_layout Plain Layout
12533 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12536 \begin_layout Plain Layout
12542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12545 \begin_layout Plain Layout
12551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12554 \begin_layout Plain Layout
12562 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12565 \begin_layout Plain Layout
12571 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12574 \begin_layout Plain Layout
12580 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12583 \begin_layout Plain Layout
12597 \begin_layout Standard
12598 The width of multirow cells is set by setting the width and alignment for
12604 shifts the content of the multirow up/down if the offset is positive/negative.
12607 \begin_layout Standard
12608 If the column of a multirow cell has no explicit width, the multirow cell
12609 inherits the alignment of the column.
12610 Otherwise it is by default left-aligned.
12611 To override the default, renew the command
12620 \begin_layout Standard
12632 \begin_layout Standard
12633 in the document preamble.
12634 Then all entries of multirow cells in the document are centered.
12635 If centering is only needed for several tables, you can renew the command
12636 in a \SpecialChar TeX
12637 -Code box just before the table instead of the preamble.
12638 If the text should be right-aligned, replace
12651 To return to left-alignment
12660 \begin_layout Standard
12661 This is an example table with a right-aligned multirow cell that has a vertical
12663 \begin_inset space \thinspace{}
12667 \begin_inset space \thinspace{}
12671 \begin_inset Separator parbreak
12677 \begin_layout Standard
12683 \begin_layout Plain Layout
12697 \begin_inset Tabular
12698 <lyxtabular version="3" rows="4" columns="3">
12699 <features tabularvalignment="middle">
12700 <column alignment="center" valignment="top" width="3cm">
12701 <column alignment="center" valignment="top">
12702 <column alignment="center" valignment="top">
12704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12707 \begin_layout Plain Layout
12713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12716 \begin_layout Plain Layout
12722 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12725 \begin_layout Plain Layout
12733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12736 \begin_layout Plain Layout
12742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12745 \begin_layout Plain Layout
12751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12754 \begin_layout Plain Layout
12762 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12765 \begin_layout Plain Layout
12771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12774 \begin_layout Plain Layout
12780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12783 \begin_layout Plain Layout
12791 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12794 \begin_layout Plain Layout
12800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12803 \begin_layout Plain Layout
12809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12812 \begin_layout Plain Layout
12827 \begin_layout Plain Layout
12843 \begin_layout Standard
12844 To start a new line in a multirow you can use a forced line break (shortcut
12848 arg "newline-insert newline"
12851 ) but this will not respect the cell lines as demonstrated in this table:
12852 \begin_inset Separator parbreak
12858 \begin_layout Standard
12861 \begin_inset Tabular
12862 <lyxtabular version="3" rows="3" columns="2">
12863 <features tabularvalignment="middle">
12864 <column alignment="left" valignment="middle" width="2cm">
12865 <column alignment="center" valignment="top">
12867 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12870 \begin_layout Plain Layout
12872 \begin_inset Newline newline
12876 \begin_inset Newline newline
12884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12887 \begin_layout Plain Layout
12895 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12898 \begin_layout Plain Layout
12904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12907 \begin_layout Plain Layout
12915 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12918 \begin_layout Plain Layout
12924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12927 \begin_layout Plain Layout
12941 \begin_layout Standard
12942 Therefore be careful with forced line breaks.
12945 \begin_layout Subsection
12946 Cells with diagonal line(s)
12949 \begin_layout Standard
12950 To tell the reader what is meant by column and row headings in a table,
12951 it is helpful to split the first cell of the table by one or two diagonal
12953 This can be achieved by loading the \SpecialChar LaTeX
12959 \begin_inset Index idx
12962 \begin_layout Plain Layout
12964 -packages ! picinpar
12969 in the document preamble.
12970 The package provides the command
12976 that is inserted as \SpecialChar TeX
12977 -Code and that can take 2 or 3
12978 \begin_inset space ~
12984 \begin_layout Standard
12989 diagbox[options]{lower left}{upper right}
12992 \begin_layout Standard
12997 diagbox[options]{lower left}{upper left}{upper right}
13000 \begin_layout Standard
13001 The first scheme divides the cell by a single diagonal line and the arguments
13002 are placed below and above this line.
13003 The second scheme divides the cell by 2
13004 \begin_inset space ~
13010 \begin_layout Standard
13014 \begin_layout Plain Layout
13024 \begin_inset Note Note
13027 \begin_layout Plain Layout
13028 The following section will only be displayed when the \SpecialChar LaTeX
13041 \begin_layout Standard
13042 Here is an example table where
13048 is used in the 2-argument scheme in the first cell:
13049 \begin_inset VSpace medskip
13055 \begin_layout Standard
13057 \begin_inset Tabular
13058 <lyxtabular version="3" rows="4" columns="4">
13059 <features tabularvalignment="middle">
13060 <column alignment="center" valignment="top">
13061 <column alignment="center" valignment="top">
13062 <column alignment="center" valignment="top">
13063 <column alignment="center" valignment="top">
13065 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13068 \begin_layout Plain Layout
13072 \begin_layout Plain Layout
13085 \begin_layout Plain Layout
13096 \begin_layout Plain Layout
13108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13111 \begin_layout Plain Layout
13117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13120 \begin_layout Plain Layout
13126 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13129 \begin_layout Plain Layout
13137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13140 \begin_layout Plain Layout
13146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13149 \begin_layout Plain Layout
13155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13158 \begin_layout Plain Layout
13164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13167 \begin_layout Plain Layout
13175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13178 \begin_layout Plain Layout
13184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13187 \begin_layout Plain Layout
13193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13196 \begin_layout Plain Layout
13202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13205 \begin_layout Plain Layout
13213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13216 \begin_layout Plain Layout
13222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13225 \begin_layout Plain Layout
13231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13234 \begin_layout Plain Layout
13240 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13243 \begin_layout Plain Layout
13255 \begin_inset VSpace medskip
13261 \begin_layout Standard
13262 The 3-argument scheme is for example useful for cross-tables of sports leagues
13264 \begin_inset Separator parbreak
13270 \begin_layout Standard
13273 \begin_inset Tabular
13274 <lyxtabular version="3" rows="4" columns="4">
13275 <features tabularvalignment="middle">
13276 <column alignment="center" valignment="top" width="0pt">
13277 <column alignment="center" valignment="top">
13278 <column alignment="center" valignment="top">
13279 <column alignment="center" valignment="top">
13281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13284 \begin_layout Plain Layout
13288 \begin_layout Plain Layout
13301 \begin_layout Plain Layout
13312 \begin_layout Plain Layout
13323 \begin_layout Plain Layout
13335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13338 \begin_layout Plain Layout
13344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13347 \begin_layout Plain Layout
13353 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13356 \begin_layout Plain Layout
13364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13367 \begin_layout Plain Layout
13373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13376 \begin_layout Plain Layout
13382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13385 \begin_layout Plain Layout
13391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13394 \begin_layout Plain Layout
13402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13405 \begin_layout Plain Layout
13411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13414 \begin_layout Plain Layout
13420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13423 \begin_layout Plain Layout
13429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13432 \begin_layout Plain Layout
13440 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13443 \begin_layout Plain Layout
13449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13452 \begin_layout Plain Layout
13458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13461 \begin_layout Plain Layout
13467 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13470 \begin_layout Plain Layout
13484 \begin_layout Standard
13485 For larger cross-tables one might use split cells in 2 or every corner of
13486 the table like in this example:
13487 \begin_inset Separator parbreak
13493 \begin_layout Standard
13496 \begin_inset Tabular
13497 <lyxtabular version="3" rows="5" columns="5">
13498 <features tabularvalignment="middle">
13499 <column alignment="center" valignment="top" width="0pt">
13500 <column alignment="center" valignment="top">
13501 <column alignment="center" valignment="top">
13502 <column alignment="center" valignment="top">
13503 <column alignment="center" valignment="top">
13505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13508 \begin_layout Plain Layout
13512 \begin_layout Plain Layout
13525 \begin_layout Plain Layout
13536 \begin_layout Plain Layout
13547 \begin_layout Plain Layout
13559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13562 \begin_layout Plain Layout
13568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13571 \begin_layout Plain Layout
13577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13580 \begin_layout Plain Layout
13586 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13589 \begin_layout Plain Layout
13593 \begin_layout Plain Layout
13606 \begin_layout Plain Layout
13617 \begin_layout Plain Layout
13628 \begin_layout Plain Layout
13642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13645 \begin_layout Plain Layout
13651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13654 \begin_layout Plain Layout
13660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13663 \begin_layout Plain Layout
13669 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13672 \begin_layout Plain Layout
13678 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13681 \begin_layout Plain Layout
13689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13692 \begin_layout Plain Layout
13698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13701 \begin_layout Plain Layout
13707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13710 \begin_layout Plain Layout
13716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13719 \begin_layout Plain Layout
13725 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13728 \begin_layout Plain Layout
13736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13739 \begin_layout Plain Layout
13745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13748 \begin_layout Plain Layout
13754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13757 \begin_layout Plain Layout
13763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13766 \begin_layout Plain Layout
13772 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13775 \begin_layout Plain Layout
13783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13786 \begin_layout Plain Layout
13790 \begin_layout Plain Layout
13803 \begin_layout Plain Layout
13814 \begin_layout Plain Layout
13825 \begin_layout Plain Layout
13837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13840 \begin_layout Plain Layout
13846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13849 \begin_layout Plain Layout
13855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13858 \begin_layout Plain Layout
13864 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13867 \begin_layout Plain Layout
13871 \begin_layout Plain Layout
13884 \begin_layout Plain Layout
13895 \begin_layout Plain Layout
13906 \begin_layout Plain Layout
13926 \begin_layout Standard
13927 To rotate the diagonal lines, the command option
13952 and represent a point of a compass.
13957 is for example the south-west corner.
13958 Thus in the lower left cell of the above table the command
13961 \begin_layout Standard
13966 diagbox[dir=SW]{Team home}{Result}{Team away}
13969 \begin_layout Standard
13971 If no direction is given, it will be NW.
13974 \begin_layout Standard
13975 The necessary width of split cells is automatically calculated.
13976 Thus if you set a fixed column width smaller than the calculated one, the
13977 cell's content will protrude the cell borders:
13978 \begin_inset Separator parbreak
13984 \begin_layout Standard
13987 \begin_inset Tabular
13988 <lyxtabular version="3" rows="2" columns="2">
13989 <features tabularvalignment="middle">
13990 <column alignment="center" valignment="top" width="3cm">
13991 <column alignment="center" valignment="top">
13993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13996 \begin_layout Plain Layout
14000 \begin_layout Plain Layout
14013 \begin_layout Plain Layout
14024 \begin_layout Plain Layout
14036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14039 \begin_layout Plain Layout
14047 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14050 \begin_layout Plain Layout
14056 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14059 \begin_layout Plain Layout
14073 \begin_layout Standard
14074 If you need a certain width for columns with a split cell, use the command
14079 (replace '3cm' by the width you need).
14080 In the following table the width of the first column is set to 4
14081 \begin_inset space \thinspace{}
14092 \begin_inset space \thinspace{}
14096 \begin_inset space \thinspace{}
14101 tabcolsep is necessary because the overall width is the width for the text
14102 (in this case the 4
14103 \begin_inset space \thinspace{}
14106 cm) plus two times the separation of the text and the cell border.
14107 The calculation of the width cannot be done in the command option of
14113 so one needs to create a new length which can be used later.
14114 This is done with the \SpecialChar TeX
14118 \begin_layout Standard
14126 \begin_inset Newline newline
14138 \begin_layout Standard
14142 \begin_layout Plain Layout
14151 \begin_layout Plain Layout
14167 \begin_layout Standard
14168 To enable calculations in \SpecialChar LaTeX
14169 one needs to load the package
14174 \begin_inset Index idx
14177 \begin_layout Plain Layout
14184 in the document preamble.
14187 \begin_layout Standard
14188 In this table you can now use the command
14191 \begin_layout Standard
14201 \begin_layout Standard
14203 \begin_inset Separator parbreak
14209 \begin_layout Standard
14212 \begin_inset Tabular
14213 <lyxtabular version="3" rows="2" columns="2">
14214 <features tabularvalignment="middle">
14215 <column alignment="center" valignment="top" width="4cm">
14216 <column alignment="center" valignment="top">
14218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14221 \begin_layout Plain Layout
14225 \begin_layout Plain Layout
14240 \begin_layout Plain Layout
14251 \begin_layout Plain Layout
14263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14266 \begin_layout Plain Layout
14274 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14277 \begin_layout Plain Layout
14283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14286 \begin_layout Plain Layout
14300 \begin_layout Standard
14301 Note that the split cell needs to be the widest one in the column.
14302 Otherwise the length of the diagonal line cannot be calculated correctly
14303 like in this table:
14304 \begin_inset Separator parbreak
14310 \begin_layout Standard
14313 \begin_inset Tabular
14314 <lyxtabular version="3" rows="2" columns="2">
14315 <features tabularvalignment="middle">
14316 <column alignment="center" valignment="top" width="0pt">
14317 <column alignment="center" valignment="top">
14319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14322 \begin_layout Plain Layout
14326 \begin_layout Plain Layout
14339 \begin_layout Plain Layout
14350 \begin_layout Plain Layout
14362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14365 \begin_layout Plain Layout
14373 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14376 \begin_layout Plain Layout
14382 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14385 \begin_layout Plain Layout
14399 \begin_layout Standard
14400 In this case use the
14411 It is then not necessary to add 2
14413 tabcolsep because the cell width is now the width of the column.
14414 In this table a width of 3
14415 \begin_inset space \thinspace{}
14419 \begin_inset Separator parbreak
14425 \begin_layout Standard
14428 \begin_inset Tabular
14429 <lyxtabular version="3" rows="2" columns="2">
14430 <features tabularvalignment="middle">
14431 <column alignment="center" valignment="top" width="0pt">
14432 <column alignment="center" valignment="top">
14434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14437 \begin_layout Plain Layout
14441 \begin_layout Plain Layout
14445 diagbox[width=3cm]{
14454 \begin_layout Plain Layout
14465 \begin_layout Plain Layout
14477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14480 \begin_layout Plain Layout
14488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14491 \begin_layout Plain Layout
14497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14500 \begin_layout Plain Layout
14514 \begin_layout Standard
14515 For multiple text lines in split cells one needs some extra height to fit
14516 the text to the cell.
14517 This can be achieved with the
14527 (replace '3cm' by the height you need).
14528 In the following table the command
14531 \begin_layout Standard
14536 diagbox[width=3cm,height=1.4cm]{A
14547 \begin_layout Standard
14548 is used in the first cell.
14557 creates hereby the line break.
14561 \begin_layout Plain Layout
14562 Breaking lines with
14566 is only possible when the column has a fixed width.
14572 \begin_inset Separator parbreak
14578 \begin_layout Standard
14581 \begin_inset Tabular
14582 <lyxtabular version="3" rows="2" columns="2">
14583 <features tabularvalignment="middle">
14584 <column alignment="center" valignment="top">
14585 <column alignment="center" valignment="top">
14587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14590 \begin_layout Plain Layout
14594 \begin_layout Plain Layout
14598 diagbox[width=3cm,height=1.4cm]{
14607 \begin_layout Plain Layout
14622 \begin_layout Plain Layout
14633 \begin_layout Plain Layout
14648 \begin_layout Plain Layout
14660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14663 \begin_layout Plain Layout
14671 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14674 \begin_layout Plain Layout
14680 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14683 \begin_layout Plain Layout
14697 \begin_layout Standard
14701 \begin_layout Plain Layout
14711 \begin_inset Note Note
14714 \begin_layout Plain Layout
14715 The following will be displayed when the \SpecialChar LaTeX
14728 \begin_layout Standard
14729 You need to install the \SpecialChar LaTeX
14734 to see the following part of this section in the output.
14737 \begin_layout Standard
14741 \begin_layout Plain Layout
14753 \begin_layout Standard
14754 For more info about the \SpecialChar LaTeX
14759 , see its documentation,
14760 \begin_inset CommandInset citation
14769 \begin_layout Section
14771 \begin_inset CommandInset label
14773 name "sec:Formal-Tables"
14778 \begin_inset Index idx
14781 \begin_layout Plain Layout
14790 \begin_layout Standard
14791 Tables are often typeset in books similar to Table
14792 \begin_inset space ~
14796 \begin_inset CommandInset ref
14798 reference "tab:Example-booktabs-table"
14803 This kind of tables is called
14804 \begin_inset Quotes eld
14812 \begin_inset Quotes erd
14816 To make a table a formal table use the option
14824 tab of the table dialog.
14827 \begin_layout Standard
14828 \begin_inset Float table
14834 \begin_layout Plain Layout
14835 \begin_inset Caption Standard
14837 \begin_layout Plain Layout
14838 \begin_inset CommandInset label
14840 name "tab:Example-booktabs-table"
14844 Example booktabs-table
14852 \begin_layout Plain Layout
14854 \begin_inset Tabular
14855 <lyxtabular version="3" rows="8" columns="4">
14856 <features booktabs="true" tabularvalignment="middle">
14857 <column alignment="center" valignment="top">
14858 <column alignment="center" valignment="top">
14859 <column alignment="center" valignment="top">
14860 <column alignment="center" valignment="top">
14862 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14865 \begin_layout Plain Layout
14871 <cell alignment="center" valignment="top" topline="true" usebox="none">
14874 \begin_layout Plain Layout
14876 \begin_inset space \thinspace{}
14884 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14887 \begin_layout Plain Layout
14889 \begin_inset space \thinspace{}
14897 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14900 \begin_layout Plain Layout
14908 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14911 \begin_layout Plain Layout
14915 \begin_layout Plain Layout
14928 \begin_layout Plain Layout
14937 Detector thickness in µm
14942 <cell alignment="center" valignment="top" usebox="none">
14945 \begin_layout Plain Layout
14951 <cell alignment="center" valignment="top" usebox="none">
14954 \begin_layout Plain Layout
14960 <cell alignment="center" valignment="top" usebox="none">
14963 \begin_layout Plain Layout
14971 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14974 \begin_layout Plain Layout
14980 <cell alignment="center" valignment="top" topline="true" usebox="none">
14983 \begin_layout Plain Layout
14989 <cell alignment="center" valignment="top" topline="true" usebox="none">
14992 \begin_layout Plain Layout
14998 <cell alignment="center" valignment="top" topline="true" usebox="none">
15001 \begin_layout Plain Layout
15008 <row topspace="default">
15009 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15012 \begin_layout Plain Layout
15013 Spatial resolution in µm
15018 <cell alignment="center" valignment="top" usebox="none">
15021 \begin_layout Plain Layout
15027 <cell alignment="center" valignment="top" usebox="none">
15030 \begin_layout Plain Layout
15036 <cell alignment="center" valignment="top" usebox="none">
15039 \begin_layout Plain Layout
15046 <row topspace="default">
15047 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15050 \begin_layout Plain Layout
15052 \begin_inset Formula $f_{\mathrm{max}}$
15060 <cell alignment="center" valignment="top" usebox="none">
15063 \begin_layout Plain Layout
15069 <cell alignment="center" valignment="top" usebox="none">
15072 \begin_layout Plain Layout
15078 <cell alignment="center" valignment="top" usebox="none">
15081 \begin_layout Plain Layout
15088 <row topspace="default">
15089 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15092 \begin_layout Plain Layout
15096 \begin_layout Plain Layout
15100 cmidrule[2pt](l{10pt}){1-1}
15105 LSF-spatial resolution
15110 <cell alignment="center" valignment="top" usebox="none">
15113 \begin_layout Plain Layout
15119 <cell alignment="center" valignment="top" usebox="none">
15122 \begin_layout Plain Layout
15128 <cell alignment="center" valignment="top" usebox="none">
15131 \begin_layout Plain Layout
15139 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15142 \begin_layout Plain Layout
15148 <cell alignment="center" valignment="top" usebox="none">
15151 \begin_layout Plain Layout
15157 <cell alignment="center" valignment="top" usebox="none">
15160 \begin_layout Plain Layout
15166 <cell alignment="center" valignment="top" usebox="none">
15169 \begin_layout Plain Layout
15177 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15180 \begin_layout Plain Layout
15186 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15189 \begin_layout Plain Layout
15195 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15198 \begin_layout Plain Layout
15204 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15207 \begin_layout Plain Layout
15226 \begin_layout Standard
15227 Spaces to table rows can be added using the
15231 tab of the table dialog as described in section
15232 \begin_inset space ~
15236 \begin_inset CommandInset ref
15238 reference "subsec:Row-Spacing"
15245 \begin_layout Standard
15246 Unlike normal tables, formal tables have no vertical table lines.
15247 The horizontal table lines can be set as for normal tables but they appear
15248 with different widths in the output:
15249 \begin_inset Newline newline
15252 The first and the last table line have a default width of 0.08
15253 \begin_inset space \thinspace{}
15256 em while the other lines have a default width of 0.05
15257 \begin_inset space \thinspace{}
15263 \begin_layout Standard
15264 The default widths can be changed with the following preamble lines
15267 \begin_layout Standard
15277 \begin_inset Newline newline
15289 \begin_layout Standard
15290 This example is for the first line, the so called
15295 If you want to change the width for the last line, replace
15304 To change the width for the other lines replace
15313 You can use all units listed in appendix
15314 \begin_inset space ~
15318 \begin_inset CommandInset ref
15320 reference "cha:Units-available-in"
15327 \begin_layout Standard
15328 Lines that do not span all table columns can be created by setting a table
15329 line for multicolumn cells.
15331 will then internally use the command
15337 to create this line.
15341 \begin_layout Standard
15346 cmidrule[height](trim){startcol-endcol}
15349 \begin_layout Standard
15356 are currently not supported by \SpecialChar LyX
15357 so you have to use \SpecialChar TeX
15358 -Code to be able to
15366 s can manually be created by inserting the command as \SpecialChar TeX
15368 cell entry of the first cell of a row.
15369 The line is then drawn in the output above the current row.
15372 \begin_layout Standard
15373 The default for the optional
15378 \begin_inset space \thinspace{}
15386 is the number of the column where the line starts and
15390 the column number where the line ends.
15395 always needs to be specified, also when the line should span only one column.
15396 The optional parameter
15413 Using for example the parameter
15417 means that the line is trimmed from its left end by 2
15418 \begin_inset space \thinspace{}
15422 If you don't specify the
15426 the line is trimmed by the default of 0.5
15427 \begin_inset space \thinspace{}
15433 \begin_layout Standard
15434 \begin_inset VSpace bigskip
15438 \begin_inset space ~
15442 \begin_inset CommandInset ref
15444 reference "tab:Example-booktabs-table"
15448 was created using the commands
15451 \begin_layout Standard
15461 \begin_layout Standard
15462 at the beginning of the second row and
15465 \begin_layout Standard
15470 cmidrule[2pt](l{10pt}){1-1}
15473 \begin_layout Standard
15477 \begin_layout Standard
15478 \begin_inset VSpace bigskip
15484 \begin_layout Standard
15485 You might want to have overlapping
15492 \begin_inset space ~
15496 \begin_inset CommandInset ref
15498 reference "tab:Special-booktabs-table"
15503 This can be achieved with the \SpecialChar TeX
15507 \begin_layout Standard
15515 \begin_layout Standard
15516 The command that was used for the second row of Table
15517 \begin_inset space ~
15521 \begin_inset CommandInset ref
15523 reference "tab:Special-booktabs-table"
15530 \begin_layout Standard
15544 \begin_layout Standard
15545 The command for the sixth row is
15548 \begin_layout Standard
15560 \begin_layout Standard
15561 \begin_inset VSpace bigskip
15567 \begin_layout Standard
15568 If you are in any way not satisfied with the border line spacing, you can
15569 use the following command to produce lines that span over all table columns
15574 \begin_layout Standard
15579 specialrule{width}{space above}{space below}
15582 \begin_layout Standard
15583 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15590 \begin_inset CommandInset citation
15597 \begin_inset Index idx
15600 \begin_layout Plain Layout
15602 -packages ! booktabs
15610 \begin_layout Standard
15611 \begin_inset Float table
15617 \begin_layout Plain Layout
15618 \begin_inset Caption Standard
15620 \begin_layout Plain Layout
15621 \begin_inset CommandInset label
15623 name "tab:Special-booktabs-table"
15627 Special booktabs-table
15635 \begin_layout Plain Layout
15637 \begin_inset Tabular
15638 <lyxtabular version="3" rows="8" columns="4">
15639 <features booktabs="true" tabularvalignment="middle">
15640 <column alignment="center" valignment="top">
15641 <column alignment="center" valignment="top">
15642 <column alignment="center" valignment="top">
15643 <column alignment="center" valignment="top">
15645 <cell alignment="center" valignment="top" topline="true" usebox="none">
15648 \begin_layout Plain Layout
15654 <cell alignment="center" valignment="top" topline="true" usebox="none">
15657 \begin_layout Plain Layout
15659 \begin_inset space \thinspace{}
15667 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15670 \begin_layout Plain Layout
15672 \begin_inset space \thinspace{}
15680 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15683 \begin_layout Plain Layout
15691 <cell alignment="center" valignment="top" usebox="none">
15694 \begin_layout Plain Layout
15698 \begin_layout Plain Layout
15711 \begin_layout Plain Layout
15724 \begin_layout Plain Layout
15737 \begin_layout Plain Layout
15746 Detector thickness in µm
15751 <cell alignment="center" valignment="top" usebox="none">
15754 \begin_layout Plain Layout
15760 <cell alignment="center" valignment="top" usebox="none">
15763 \begin_layout Plain Layout
15769 <cell alignment="center" valignment="top" usebox="none">
15772 \begin_layout Plain Layout
15780 <cell alignment="center" valignment="top" topline="true" usebox="none">
15783 \begin_layout Plain Layout
15789 <cell alignment="center" valignment="top" topline="true" usebox="none">
15792 \begin_layout Plain Layout
15798 <cell alignment="center" valignment="top" topline="true" usebox="none">
15801 \begin_layout Plain Layout
15807 <cell alignment="center" valignment="top" topline="true" usebox="none">
15810 \begin_layout Plain Layout
15817 <row topspace="default">
15818 <cell alignment="center" valignment="top" usebox="none">
15821 \begin_layout Plain Layout
15822 Spatial resolution in µm
15827 <cell alignment="center" valignment="top" usebox="none">
15830 \begin_layout Plain Layout
15836 <cell alignment="center" valignment="top" usebox="none">
15839 \begin_layout Plain Layout
15845 <cell alignment="center" valignment="top" usebox="none">
15848 \begin_layout Plain Layout
15855 <row topspace="default">
15856 <cell alignment="center" valignment="top" usebox="none">
15859 \begin_layout Plain Layout
15861 \begin_inset Formula $f_{\mathrm{max}}$
15869 <cell alignment="center" valignment="top" usebox="none">
15872 \begin_layout Plain Layout
15878 <cell alignment="center" valignment="top" usebox="none">
15881 \begin_layout Plain Layout
15887 <cell alignment="center" valignment="top" usebox="none">
15890 \begin_layout Plain Layout
15898 <cell alignment="center" valignment="top" topline="true" usebox="none">
15901 \begin_layout Plain Layout
15905 \begin_layout Plain Layout
15918 \begin_layout Plain Layout
15927 LSF-spatial resolution
15932 <cell alignment="center" valignment="top" topline="true" usebox="none">
15935 \begin_layout Plain Layout
15941 <cell alignment="center" valignment="top" topline="true" usebox="none">
15944 \begin_layout Plain Layout
15950 <cell alignment="center" valignment="top" topline="true" usebox="none">
15953 \begin_layout Plain Layout
15961 <cell alignment="center" valignment="top" usebox="none">
15964 \begin_layout Plain Layout
15970 <cell alignment="center" valignment="top" usebox="none">
15973 \begin_layout Plain Layout
15979 <cell alignment="center" valignment="top" usebox="none">
15982 \begin_layout Plain Layout
15988 <cell alignment="center" valignment="top" usebox="none">
15991 \begin_layout Plain Layout
15999 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16002 \begin_layout Plain Layout
16008 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16011 \begin_layout Plain Layout
16017 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16020 \begin_layout Plain Layout
16026 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16029 \begin_layout Plain Layout
16048 \begin_layout Section
16049 Vertical Table Alignment
16050 \begin_inset Index idx
16053 \begin_layout Plain Layout
16062 \begin_layout Standard
16063 To align tables vertically in a text line, the table must be inside a box.
16064 The box can then be vertically aligned as described in section
16065 \begin_inset space ~
16069 \begin_inset CommandInset ref
16071 reference "sec:Box-Dialog"
16078 \begin_layout Standard
16079 In the following example the tables are inside a minipage
16083 \begin_layout Plain Layout
16084 Minipages are described in section
16085 \begin_inset space ~
16089 \begin_inset CommandInset ref
16091 reference "sec:Minipages"
16100 box that has a width of 15
16101 \begin_inset space \thinspace{}
16107 \begin_layout Itemize
16109 \begin_inset Box Frameless
16119 height_special "totalheight"
16124 backgroundcolor "none"
16127 \begin_layout Plain Layout
16128 \begin_inset Tabular
16129 <lyxtabular version="3" rows="3" columns="3">
16130 <features tabularvalignment="middle">
16131 <column alignment="center" valignment="top">
16132 <column alignment="center" valignment="top">
16133 <column alignment="center" valignment="top">
16135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16138 \begin_layout Plain Layout
16144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16147 \begin_layout Plain Layout
16153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16156 \begin_layout Plain Layout
16164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16167 \begin_layout Plain Layout
16173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16176 \begin_layout Plain Layout
16182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16185 \begin_layout Plain Layout
16193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16196 \begin_layout Plain Layout
16202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16205 \begin_layout Plain Layout
16211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16214 \begin_layout Plain Layout
16234 \begin_layout Plain Layout
16246 \begin_inset Box Frameless
16256 height_special "totalheight"
16261 backgroundcolor "none"
16264 \begin_layout Plain Layout
16265 \begin_inset Tabular
16266 <lyxtabular version="3" rows="3" columns="3">
16267 <features tabularvalignment="middle">
16268 <column alignment="center" valignment="top">
16269 <column alignment="center" valignment="top">
16270 <column alignment="center" valignment="top">
16272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16275 \begin_layout Plain Layout
16281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16284 \begin_layout Plain Layout
16290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16293 \begin_layout Plain Layout
16301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16304 \begin_layout Plain Layout
16310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16313 \begin_layout Plain Layout
16319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16322 \begin_layout Plain Layout
16330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16333 \begin_layout Plain Layout
16339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16342 \begin_layout Plain Layout
16348 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16351 \begin_layout Plain Layout
16371 \begin_layout Plain Layout
16381 \begin_layout Itemize
16383 \begin_inset Box Frameless
16393 height_special "totalheight"
16398 backgroundcolor "none"
16401 \begin_layout Plain Layout
16402 \begin_inset Tabular
16403 <lyxtabular version="3" rows="3" columns="3">
16404 <features tabularvalignment="middle">
16405 <column alignment="center" valignment="top">
16406 <column alignment="center" valignment="top">
16407 <column alignment="center" valignment="top">
16409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16412 \begin_layout Plain Layout
16418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16421 \begin_layout Plain Layout
16427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16430 \begin_layout Plain Layout
16438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16441 \begin_layout Plain Layout
16447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16450 \begin_layout Plain Layout
16456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16459 \begin_layout Plain Layout
16467 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16470 \begin_layout Plain Layout
16476 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16479 \begin_layout Plain Layout
16485 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16488 \begin_layout Plain Layout
16507 \begin_layout Itemize
16509 \begin_inset Box Frameless
16519 height_special "totalheight"
16524 backgroundcolor "none"
16527 \begin_layout Plain Layout
16528 \begin_inset Tabular
16529 <lyxtabular version="3" rows="3" columns="3">
16530 <features tabularvalignment="middle">
16531 <column alignment="center" valignment="top">
16532 <column alignment="center" valignment="top">
16533 <column alignment="center" valignment="top">
16535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16538 \begin_layout Plain Layout
16544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16547 \begin_layout Plain Layout
16553 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16556 \begin_layout Plain Layout
16564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16567 \begin_layout Plain Layout
16573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16576 \begin_layout Plain Layout
16582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16585 \begin_layout Plain Layout
16593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16596 \begin_layout Plain Layout
16602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16605 \begin_layout Plain Layout
16611 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16614 \begin_layout Plain Layout
16634 \begin_layout Plain Layout
16646 \begin_inset Box Frameless
16656 height_special "totalheight"
16661 backgroundcolor "none"
16664 \begin_layout Plain Layout
16665 \begin_inset Tabular
16666 <lyxtabular version="3" rows="3" columns="3">
16667 <features tabularvalignment="middle">
16668 <column alignment="center" valignment="top">
16669 <column alignment="center" valignment="top">
16670 <column alignment="center" valignment="top">
16672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16675 \begin_layout Plain Layout
16681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16684 \begin_layout Plain Layout
16690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16693 \begin_layout Plain Layout
16701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16704 \begin_layout Plain Layout
16710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16713 \begin_layout Plain Layout
16719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16722 \begin_layout Plain Layout
16730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16733 \begin_layout Plain Layout
16739 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16742 \begin_layout Plain Layout
16748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16751 \begin_layout Plain Layout
16771 \begin_layout Plain Layout
16781 \begin_layout Standard
16782 As you will see, the content of the first and last table row is not correctly
16784 To get this alignment, the minipage box must be set into a raisebox
16788 \begin_layout Plain Layout
16789 Raiseboxes are described in section
16790 \begin_inset space ~
16794 \begin_inset CommandInset ref
16796 reference "subsec:Vertical-Alignment"
16806 In the example above the second table in the first item is aligned using
16807 the \SpecialChar TeX
16811 \begin_layout Standard
16821 \begin_layout Standard
16823 After the box the closing brace
16827 is inserted as \SpecialChar TeX
16829 For the second table in the last item the command
16832 \begin_layout Standard
16842 \begin_layout Standard
16846 \begin_layout Standard
16847 \begin_inset Note Greyedout
16850 \begin_layout Plain Layout
16855 The alignment of the table row content to the surrounding text line is
16857 The required value for the
16863 command for this alignment depends on the document font, the font size,
16864 and the table line thickness.
16872 \begin_layout Section
16874 \begin_inset CommandInset label
16876 name "sec:Colored-Tables"
16881 \begin_inset Index idx
16884 \begin_layout Plain Layout
16893 \begin_layout Subsection
16895 \begin_inset Index idx
16898 \begin_layout Plain Layout
16899 Table Color ! for Cells
16905 \begin_inset Index idx
16908 \begin_layout Plain Layout
16909 Color ! for Table Cells
16917 \begin_layout Standard
16918 \begin_inset Float table
16924 \begin_layout Plain Layout
16925 \begin_inset Caption Standard
16927 \begin_layout Plain Layout
16928 \begin_inset CommandInset label
16930 name "tab:Table-colored-without"
16934 Table colored without using the package
16939 \begin_inset Argument 1
16942 \begin_layout Plain Layout
16943 Table without colortbl
16956 \begin_layout Plain Layout
16958 \begin_inset Tabular
16959 <lyxtabular version="3" rows="3" columns="3">
16960 <features tabularvalignment="middle">
16961 <column alignment="center" valignment="top">
16962 <column alignment="center" valignment="top">
16963 <column alignment="center" valignment="top">
16965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16968 \begin_layout Plain Layout
16976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16979 \begin_layout Plain Layout
16987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16990 \begin_layout Plain Layout
17000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17003 \begin_layout Plain Layout
17011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17014 \begin_layout Plain Layout
17022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17025 \begin_layout Plain Layout
17035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17038 \begin_layout Plain Layout
17046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17049 \begin_layout Plain Layout
17057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17060 \begin_layout Plain Layout
17081 \begin_layout Standard
17082 If you only need colored text, mark the cells and choose a color in the
17086 \begin_inset space ~
17091 dialog (toolbar button
17094 arg "dialog-show character"
17098 This was used to create Table
17099 \begin_inset space ~
17103 \begin_inset CommandInset ref
17105 reference "tab:Table-colored-without"
17110 In any other case you have to use the \SpecialChar LaTeX
17116 \begin_inset Index idx
17119 \begin_layout Plain Layout
17121 -packages ! colortbl
17129 \begin_layout Standard
17133 \begin_layout Plain Layout
17143 \begin_inset Note Note
17146 \begin_layout Plain Layout
17147 The following section part will only be displayed when the \SpecialChar LaTeX
17160 \begin_layout Standard
17161 To create colored tables,
17165 must be loaded in the preamble with the line
17168 \begin_layout Standard
17173 usepackage{colortbl}
17176 \begin_layout Standard
17177 The color of a column is adjusted with the command
17180 \begin_layout Standard
17185 columncolor{name of color}
17188 \begin_layout Standard
17194 More about the command
17198 is contained in section
17199 \begin_inset space ~
17203 \begin_inset CommandInset ref
17205 reference "subsec:Multicolumn-Calculations"
17212 \begin_layout Standard
17213 The following color names are predefined:
17216 \begin_layout Standard
17250 \begin_layout Standard
17251 \begin_inset VSpace medskip
17257 \begin_layout Standard
17258 If you add the options
17261 \begin_layout Standard
17264 usenames,dvipsnames
17267 \begin_layout Standard
17268 to the document class options in the document settings, you can additionally
17270 \begin_inset space ~
17274 These colors are listed in appendix
17275 \begin_inset space ~
17279 \begin_inset CommandInset ref
17281 reference "chap:List-of-dvips-colornames"
17286 One of these colors,
17290 , is used as example in Table
17291 \begin_inset space ~
17295 \begin_inset CommandInset ref
17297 reference "tab:Table-colored-using"
17304 \begin_layout Standard
17305 \begin_inset VSpace medskip
17311 \begin_layout Standard
17312 You can also define your own color with the command
17315 \begin_layout Standard
17320 definecolor{color name}{color model}{color values}
17323 \begin_layout Standard
17324 The color model can be
17327 \begin_layout Labeling
17328 \labelwidthstring 00.00.0000
17329 cmyk: cyan, magenta, yellow, black
17332 \begin_layout Labeling
17333 \labelwidthstring 00.00.0000
17334 rgb: red, green blue
17337 \begin_layout Labeling
17338 \labelwidthstring 00.00.0000
17342 \begin_layout Standard
17343 and the color values are comma separated numbers between 0 and 1 describing
17344 the factor for the corresponding color of the color model.
17347 \begin_layout Standard
17349 \begin_inset space \thinspace{}
17353 \begin_inset space \space{}
17360 " in the preamble with
17363 \begin_layout Standard
17368 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17371 \begin_layout Standard
17379 \begin_layout Standard
17384 definecolor{lightgray}{gray}{0.8}
17387 \begin_layout Standard
17388 \begin_inset VSpace medskip
17394 \begin_layout Standard
17395 Lines are colored with the command
17398 \begin_layout Standard
17403 rowcolor{name of color}
17406 \begin_layout Standard
17407 and cells are colored with the command
17410 \begin_layout Standard
17415 cellcolor{name of color}
17418 \begin_layout Standard
17419 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17423 \begin_layout Standard
17424 To color characters in the table, mark the cells and use the
17427 \begin_inset space ~
17433 If a cell contains \SpecialChar TeX
17434 -Code mark only the characters, otherwise the colored
17436 -Code will cause \SpecialChar LaTeX
17440 \begin_layout Standard
17441 \begin_inset Note Greyedout
17444 \begin_layout Plain Layout
17449 Not all DVI-viewers are able to display self-defined colors.
17457 \begin_layout Standard
17458 \begin_inset VSpace bigskip
17464 \begin_layout Standard
17466 \begin_inset space ~
17470 \begin_inset CommandInset ref
17472 reference "tab:Table-colored-using"
17476 do the following: The color of the first column should be
17484 \begin_layout Standard
17489 columncolor{darkgreen}
17494 \begin_layout Standard
17495 as \SpecialChar LaTeX
17496 -argument for this column.
17497 The first row should be light blue, therefore the \SpecialChar TeX
17501 \begin_layout Standard
17509 \begin_layout Standard
17510 is inserted to the first cell of this row.
17511 Note that this overwrites the column color for the first cell.
17512 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17517 \begin_layout Standard
17525 \begin_layout Standard
17526 The characters could now be colored using the menu
17528 Edit\SpecialChar menuseparator
17530 \begin_inset space ~
17538 \begin_layout Standard
17539 \begin_inset Float table
17545 \begin_layout Plain Layout
17546 \begin_inset Caption Standard
17548 \begin_layout Plain Layout
17549 \begin_inset CommandInset label
17551 name "tab:Table-colored-using"
17555 Table colored using the package
17560 \begin_inset Argument 1
17563 \begin_layout Plain Layout
17564 Table with colortbl
17577 \begin_layout Plain Layout
17579 \begin_inset Tabular
17580 <lyxtabular version="3" rows="3" columns="3">
17581 <features tabularvalignment="middle">
17582 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17583 <column alignment="center" valignment="top">
17584 <column alignment="center" valignment="top">
17586 <cell alignment="center" valignment="top" usebox="none">
17589 \begin_layout Plain Layout
17593 \begin_layout Plain Layout
17609 <cell alignment="center" valignment="top" usebox="none">
17612 \begin_layout Plain Layout
17620 <cell alignment="center" valignment="top" usebox="none">
17623 \begin_layout Plain Layout
17633 <cell alignment="center" valignment="top" usebox="none">
17636 \begin_layout Plain Layout
17644 <cell alignment="center" valignment="top" usebox="none">
17647 \begin_layout Plain Layout
17655 <cell alignment="center" valignment="top" usebox="none">
17658 \begin_layout Plain Layout
17668 <cell alignment="center" valignment="top" usebox="none">
17671 \begin_layout Plain Layout
17679 <cell alignment="center" valignment="top" usebox="none">
17682 \begin_layout Plain Layout
17690 <cell alignment="center" valignment="top" usebox="none">
17693 \begin_layout Plain Layout
17697 \begin_layout Plain Layout
17726 \begin_layout Standard
17730 \begin_layout Plain Layout
17740 \begin_inset Note Note
17743 \begin_layout Plain Layout
17744 The following will be displayed when the \SpecialChar LaTeX
17757 \begin_layout Standard
17758 You need to install the package
17762 to see the content of this section in the output.
17765 \begin_layout Standard
17769 \begin_layout Plain Layout
17781 \begin_layout Subsection
17783 \begin_inset Index idx
17786 \begin_layout Plain Layout
17787 Table Color ! for Rows
17793 \begin_inset Index idx
17796 \begin_layout Plain Layout
17797 Color ! for Table Rows
17805 \begin_layout Standard
17806 In case every second table row needs to be colored there is an alternative
17807 to the method described in the previous section: One loads the package
17813 \begin_inset Index idx
17816 \begin_layout Plain Layout
17822 \begin_layout Plain Layout
17836 in the document preamble with the command
17839 \begin_layout Standard
17844 usepackage[table]{xcolor}
17847 \begin_layout Standard
17852 automatically loads also the package
17857 \begin_inset Index idx
17860 \begin_layout Plain Layout
17862 -packages ! colortbl
17871 must be installed in your \SpecialChar LaTeX
17872 -distribution, otherwise you get \SpecialChar LaTeX
17876 \begin_layout Standard
17880 \begin_layout Plain Layout
17890 \begin_inset Note Note
17893 \begin_layout Plain Layout
17894 The following section part will only be displayed when the \SpecialChar LaTeX
17907 \begin_layout Standard
17908 The table rows are colored with the command
17911 \begin_layout Standard
17916 rowcolors[commands]{row number}{odd row color}{even row color}
17919 \begin_layout Standard
17920 that is either inserted in the document preamble or as \SpecialChar TeX
17922 first table to be colored.
17924 \begin_inset space ~
17927 number is the number of the first row which should be colored according
17928 to the odd row color.
17929 commands can be additional commands that are executed before every table
17931 So for example the command
17934 \begin_layout Standard
17939 rowcolors{1}{white}{lightgray}
17942 \begin_layout Standard
17943 leads to the coloring scheme of Table
17944 \begin_inset space ~
17948 \begin_inset CommandInset ref
17950 reference "tab:Table-rowcolors"
17958 \begin_layout Standard
17965 hline]{1}{lightgray}{cyan}
17968 \begin_layout Standard
17969 leads to the coloring scheme of Table
17970 \begin_inset space ~
17974 \begin_inset CommandInset ref
17976 reference "tab:Table-rowcolors-2"
17982 \begin_inset space ~
17986 \begin_inset space ~
17990 \begin_inset space ~
17994 \begin_inset space ~
17997 color are left empty, no color will be used so that the command
18000 \begin_layout Standard
18008 \begin_layout Standard
18009 deletes all colors.
18016 affects all tables following that command.
18019 \begin_layout Standard
18023 \begin_layout Plain Layout
18027 rowcolors{1}{white}{lightgray}
18035 \begin_layout Standard
18036 \begin_inset Float table
18042 \begin_layout Plain Layout
18043 \begin_inset Caption Standard
18045 \begin_layout Plain Layout
18046 \begin_inset CommandInset label
18048 name "tab:Table-rowcolors"
18052 Table where every second row is colored light gray.
18060 \begin_layout Plain Layout
18062 \begin_inset Tabular
18063 <lyxtabular version="3" rows="4" columns="3">
18064 <features tabularvalignment="middle">
18065 <column alignment="center" valignment="top">
18066 <column alignment="center" valignment="top" width="0pt">
18067 <column alignment="center" valignment="top" width="0pt">
18069 <cell alignment="center" valignment="top" usebox="none">
18072 \begin_layout Plain Layout
18078 <cell alignment="center" valignment="top" usebox="none">
18081 \begin_layout Plain Layout
18087 <cell alignment="center" valignment="top" usebox="none">
18090 \begin_layout Plain Layout
18098 <cell alignment="center" valignment="top" usebox="none">
18101 \begin_layout Plain Layout
18107 <cell alignment="center" valignment="top" usebox="none">
18110 \begin_layout Plain Layout
18116 <cell alignment="center" valignment="top" usebox="none">
18119 \begin_layout Plain Layout
18127 <cell alignment="center" valignment="top" usebox="none">
18130 \begin_layout Plain Layout
18136 <cell alignment="center" valignment="top" usebox="none">
18139 \begin_layout Plain Layout
18145 <cell alignment="center" valignment="top" usebox="none">
18148 \begin_layout Plain Layout
18156 <cell alignment="center" valignment="top" usebox="none">
18159 \begin_layout Plain Layout
18165 <cell alignment="center" valignment="top" usebox="none">
18168 \begin_layout Plain Layout
18174 <cell alignment="center" valignment="top" usebox="none">
18177 \begin_layout Plain Layout
18196 \begin_layout Standard
18200 \begin_layout Plain Layout
18206 hline]{1}{lightgray}{cyan}
18214 \begin_layout Standard
18215 \begin_inset Float table
18221 \begin_layout Plain Layout
18222 \begin_inset Caption Standard
18224 \begin_layout Plain Layout
18225 \begin_inset CommandInset label
18227 name "tab:Table-rowcolors-2"
18231 Table where every second row is colored cyan and at which there is a line
18240 \begin_layout Plain Layout
18242 \begin_inset Tabular
18243 <lyxtabular version="3" rows="4" columns="3">
18244 <features tabularvalignment="middle">
18245 <column alignment="center" valignment="top">
18246 <column alignment="center" valignment="top">
18247 <column alignment="center" valignment="top" width="0pt">
18249 <cell alignment="center" valignment="top" usebox="none">
18252 \begin_layout Plain Layout
18258 <cell alignment="center" valignment="top" usebox="none">
18261 \begin_layout Plain Layout
18267 <cell alignment="center" valignment="top" usebox="none">
18270 \begin_layout Plain Layout
18278 <cell alignment="center" valignment="top" usebox="none">
18281 \begin_layout Plain Layout
18287 <cell alignment="center" valignment="top" usebox="none">
18290 \begin_layout Plain Layout
18296 <cell alignment="center" valignment="top" usebox="none">
18299 \begin_layout Plain Layout
18307 <cell alignment="center" valignment="top" usebox="none">
18310 \begin_layout Plain Layout
18316 <cell alignment="center" valignment="top" usebox="none">
18319 \begin_layout Plain Layout
18325 <cell alignment="center" valignment="top" usebox="none">
18328 \begin_layout Plain Layout
18336 <cell alignment="center" valignment="top" usebox="none">
18339 \begin_layout Plain Layout
18345 <cell alignment="center" valignment="top" usebox="none">
18348 \begin_layout Plain Layout
18354 <cell alignment="center" valignment="top" usebox="none">
18357 \begin_layout Plain Layout
18376 \begin_layout Standard
18380 \begin_layout Plain Layout
18390 \begin_inset Note Note
18393 \begin_layout Plain Layout
18394 turns off the row coloring
18402 \begin_layout Standard
18406 \begin_layout Plain Layout
18416 \begin_inset Note Note
18419 \begin_layout Plain Layout
18420 The following will be displayed when the \SpecialChar LaTeX
18433 \begin_layout Standard
18434 You need to install the package
18438 to see the content of this section in the output.
18441 \begin_layout Standard
18445 \begin_layout Plain Layout
18457 \begin_layout Subsection
18459 \begin_inset Index idx
18462 \begin_layout Plain Layout
18463 Table Color ! for Lines
18469 \begin_inset Index idx
18472 \begin_layout Plain Layout
18473 Color ! for Table Lines
18481 \begin_layout Standard
18482 As described in section
18483 \begin_inset space ~
18487 \begin_inset CommandInset ref
18489 reference "subsec:Line-Thickness"
18493 , the line thickness for all lines in a table can be adjusted with the length
18502 \begin_inset space \thinspace{}
18505 pt for all tables of this section.
18509 \begin_layout Plain Layout
18515 arrayrulewidth}{1.5pt}
18523 \begin_layout Standard
18524 To color vertical lines for example with green, create the following column
18525 format in the document preamble, according to the description in section
18526 \begin_inset space ~
18530 \begin_inset CommandInset ref
18532 reference "subsec:Customized-Format"
18539 \begin_layout Standard
18544 newcolumntype{W}{!{
18551 \begin_layout Standard
18553 \begin_inset space ~
18557 \begin_inset CommandInset ref
18559 reference "tab:Table-with-vertical-colored"
18563 the \SpecialChar LaTeX
18568 was used for the last column and
18572 for the other columns.
18575 \begin_layout Standard
18576 If you want to have several colors, define more column formats.
18579 \begin_layout Standard
18580 \begin_inset Float table
18586 \begin_layout Plain Layout
18587 \begin_inset Caption Standard
18589 \begin_layout Plain Layout
18590 \begin_inset CommandInset label
18592 name "tab:Table-with-vertical-colored"
18596 Table with colored vertical lines
18604 \begin_layout Plain Layout
18606 \begin_inset Tabular
18607 <lyxtabular version="3" rows="3" columns="3">
18608 <features tabularvalignment="middle">
18609 <column alignment="center" valignment="top" special="Wc">
18610 <column alignment="center" valignment="top" special="Wc">
18611 <column alignment="center" valignment="top" special="WcW">
18613 <cell alignment="center" valignment="top" topline="true" usebox="none">
18616 \begin_layout Plain Layout
18622 <cell alignment="center" valignment="top" topline="true" usebox="none">
18625 \begin_layout Plain Layout
18631 <cell alignment="center" valignment="top" topline="true" usebox="none">
18634 \begin_layout Plain Layout
18642 <cell alignment="center" valignment="top" topline="true" usebox="none">
18645 \begin_layout Plain Layout
18651 <cell alignment="center" valignment="top" topline="true" usebox="none">
18654 \begin_layout Plain Layout
18660 <cell alignment="center" valignment="top" topline="true" usebox="none">
18663 \begin_layout Plain Layout
18671 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18674 \begin_layout Plain Layout
18680 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18683 \begin_layout Plain Layout
18689 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18692 \begin_layout Plain Layout
18711 \begin_layout Standard
18712 \begin_inset VSpace bigskip
18715 To color horizontal lines for example with red, as in Table
18716 \begin_inset space ~
18720 \begin_inset CommandInset ref
18722 reference "tab:Table-with-horizontal-colored"
18726 , insert these commands in \SpecialChar TeX
18727 -Code before the table or table float:
18730 \begin_layout Standard
18740 \begin_inset Newline newline
18748 \begin_inset Newline newline
18752 \begin_inset Phantom HPhantom
18755 \begin_layout Plain Layout
18758 \begin_inset space ~
18768 arrayrulecolor{red}
18772 arrayrulecolor{black}}
18775 \begin_layout Standard
18779 \begin_layout Plain Layout
18790 \begin_layout Plain Layout
18799 \begin_layout Plain Layout
18803 arrayrulecolor{red}
18807 arrayrulecolor{black}}
18813 \begin_inset Float table
18819 \begin_layout Plain Layout
18820 \begin_inset Caption Standard
18822 \begin_layout Plain Layout
18823 \begin_inset CommandInset label
18825 name "tab:Table-with-horizontal-colored"
18829 Table with colored horizontal lines
18837 \begin_layout Plain Layout
18839 \begin_inset Tabular
18840 <lyxtabular version="3" rows="3" columns="3">
18841 <features tabularvalignment="middle">
18842 <column alignment="center" valignment="top">
18843 <column alignment="center" valignment="top">
18844 <column alignment="center" valignment="top">
18846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18849 \begin_layout Plain Layout
18855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18858 \begin_layout Plain Layout
18864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18867 \begin_layout Plain Layout
18875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18878 \begin_layout Plain Layout
18884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18887 \begin_layout Plain Layout
18893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18896 \begin_layout Plain Layout
18904 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18907 \begin_layout Plain Layout
18913 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18916 \begin_layout Plain Layout
18922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18925 \begin_layout Plain Layout
18944 \begin_layout Standard
18945 To return to the default line color black, insert this command in \SpecialChar TeX
18947 after the table or table float:
18950 \begin_layout Standard
18962 \begin_layout Standard
18964 \begin_inset space ~
18968 \begin_inset CommandInset ref
18970 reference "tab:Table-with-colored"
18974 is an example with colored vertical and horizontal lines.
18977 \begin_layout Standard
18978 \begin_inset Float table
18984 \begin_layout Plain Layout
18985 \begin_inset Caption Standard
18987 \begin_layout Plain Layout
18988 \begin_inset CommandInset label
18990 name "tab:Table-with-colored"
18994 Table with colored lines
19002 \begin_layout Plain Layout
19004 \begin_inset Tabular
19005 <lyxtabular version="3" rows="3" columns="3">
19006 <features tabularvalignment="middle">
19007 <column alignment="center" valignment="top" special="Wc">
19008 <column alignment="center" valignment="top" special="Wc">
19009 <column alignment="center" valignment="top" special="WcW">
19011 <cell alignment="center" valignment="top" topline="true" usebox="none">
19014 \begin_layout Plain Layout
19020 <cell alignment="center" valignment="top" topline="true" usebox="none">
19023 \begin_layout Plain Layout
19029 <cell alignment="center" valignment="top" topline="true" usebox="none">
19032 \begin_layout Plain Layout
19040 <cell alignment="center" valignment="top" topline="true" usebox="none">
19043 \begin_layout Plain Layout
19049 <cell alignment="center" valignment="top" topline="true" usebox="none">
19052 \begin_layout Plain Layout
19058 <cell alignment="center" valignment="top" topline="true" usebox="none">
19061 \begin_layout Plain Layout
19068 <row topspace="default">
19069 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19072 \begin_layout Plain Layout
19078 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19081 \begin_layout Plain Layout
19087 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19090 \begin_layout Plain Layout
19109 \begin_layout Standard
19113 \begin_layout Plain Layout
19129 \begin_layout Standard
19133 \begin_layout Plain Layout
19139 arrayrulewidth}{0.4pt}
19147 \begin_layout Section
19148 Rotated Table Cells
19149 \begin_inset CommandInset label
19151 name "sec:Rotated-Table-Cells"
19156 \begin_inset Index idx
19159 \begin_layout Plain Layout
19160 Table ! Rotated Cells
19166 \begin_inset Index idx
19169 \begin_layout Plain Layout
19178 \begin_layout Standard
19179 \begin_inset Note Greyedout
19182 \begin_layout Plain Layout
19187 Not all DVI-viewers are able to display rotations.
19195 \begin_layout Standard
19197 \begin_inset space ~
19201 \begin_inset CommandInset ref
19203 reference "tab:Table-with-rotated-multi"
19207 is an example where 3
19208 \begin_inset space ~
19211 cells were rotated by 45
19212 \begin_inset space \thinspace{}
19218 \begin_layout Standard
19219 \begin_inset Float table
19225 \begin_layout Plain Layout
19226 \begin_inset Caption Standard
19228 \begin_layout Plain Layout
19229 \begin_inset CommandInset label
19231 name "tab:Table-with-rotated"
19235 Table with rotated cells in the first row.
19243 \begin_layout Plain Layout
19246 \begin_inset Tabular
19247 <lyxtabular version="3" rows="2" columns="3">
19248 <features tabularvalignment="middle">
19249 <column alignment="center" valignment="top" width="0pt">
19250 <column alignment="center" valignment="top" width="0pt">
19251 <column alignment="center" valignment="top" width="0pt">
19253 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19256 \begin_layout Plain Layout
19262 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19265 \begin_layout Plain Layout
19271 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19274 \begin_layout Plain Layout
19282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19285 \begin_layout Plain Layout
19291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19294 \begin_layout Plain Layout
19300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19303 \begin_layout Plain Layout
19322 \begin_layout Standard
19323 \begin_inset Note Greyedout
19326 \begin_layout Plain Layout
19331 Line breaks (shortcut
19334 arg "newline-insert newline"
19337 ) are not allowed in rotated cells.
19345 \begin_layout Standard
19346 If you want to rotate table cells containing line breaks, you have to put
19347 the cell content into a minipage or a parbox.
19351 \begin_layout Plain Layout
19352 For more about these boxes see sec.
19353 \begin_inset space \thinspace{}
19357 \begin_inset CommandInset ref
19359 reference "sec:Minipages"
19364 \begin_inset CommandInset ref
19366 reference "sec:Parboxes"
19375 If you rotate this cell by 90
19376 \begin_inset space \thinspace{}
19379 ° the width of the box is the height of the cell.
19381 \begin_inset space ~
19385 \begin_inset CommandInset ref
19387 reference "tab:Table-with-rotated-multi"
19391 is an example for a rotated multiline cell where the box width was set
19393 \begin_inset space \thinspace{}
19399 \begin_layout Standard
19400 \begin_inset Float table
19405 \begin_layout Plain Layout
19406 \begin_inset Caption Standard
19408 \begin_layout Plain Layout
19409 \begin_inset CommandInset label
19411 name "tab:Table-with-rotated-multi"
19415 Table with rotated multiline cell.
19423 \begin_layout Plain Layout
19426 \begin_inset Tabular
19427 <lyxtabular version="3" rows="2" columns="3">
19428 <features tabularvalignment="middle">
19429 <column alignment="center" valignment="top">
19430 <column alignment="center" valignment="top" width="0pt">
19431 <column alignment="center" valignment="top">
19433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19436 \begin_layout Plain Layout
19442 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19445 \begin_layout Plain Layout
19446 \begin_inset Box Frameless
19456 height_special "totalheight"
19461 backgroundcolor "none"
19464 \begin_layout Plain Layout
19466 \begin_inset Newline newline
19479 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19482 \begin_layout Plain Layout
19490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19493 \begin_layout Plain Layout
19499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19502 \begin_layout Plain Layout
19508 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19511 \begin_layout Plain Layout
19530 \begin_layout Section
19531 Table Width Calculation
19532 \begin_inset CommandInset label
19534 name "sec:Table-Width-Calculation"
19541 \begin_layout Standard
19542 For wide tables it is sometimes difficult to assure that the table does
19543 not protrude over the page margin.
19544 Setting a fixed width for every column of the table is the solution, but
19545 what amount of space is needed for each column?
19548 \begin_layout Standard
19550 \begin_inset Formula $W_{\mathrm{table}}$
19553 can be calculated: Every column has the width of the specified column width
19555 \begin_inset Formula $W_{\mathrm{column}}$
19558 (that the content of the column can consume) plus two times the separation
19559 between the column content and the column border (\SpecialChar LaTeX
19567 \begin_inset space \thinspace{}
19570 pt) plus the width of a border line (\SpecialChar LaTeX
19578 \begin_inset space \thinspace{}
19582 \begin_inset Formula $n$
19586 \begin_inset space ~
19589 columns have the same width, the table width is
19590 \begin_inset Formula
19592 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19600 \begin_layout Standard
19601 The available width for a table is the space between the page margins or
19602 the width of a text column (for a two-column document) (\SpecialChar LaTeX
19610 If all table columns should have the same width and
19611 \begin_inset Formula $W_{\mathrm{table}}$
19615 \begin_inset space \thinspace{}
19621 \begin_inset Formula $W_{\mathrm{column}}$
19624 can easily be calculated.
19627 \begin_layout Standard
19628 To be able to perform calculations you need to load the \SpecialChar LaTeX
19634 \begin_inset Index idx
19637 \begin_layout Plain Layout
19644 in the document preamble.
19645 To set the width in the table dialog you have to use the field
19651 The command scheme for this field is the same that is explained in section
19652 \begin_inset space ~
19656 \begin_inset CommandInset ref
19658 reference "subsec:Multicolumn-Calculations"
19664 \begin_inset space \thinspace{}
19667 columns with an uniform width and centered text, enter there for each column
19671 \begin_layout Standard
19678 columnwidth-62.4pt)/5}
19681 \begin_layout Standard
19683 \begin_inset space \thinspace{}
19686 columns where 2 should have 0.75
19687 \begin_inset space ~
19690 times the width than the 3 others, the calculation is
19691 \begin_inset Formula
19693 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19694 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19695 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19696 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19704 \begin_layout Standard
19705 In the table therefore the command
19708 \begin_layout Standard
19715 columnwidth-62.4pt)/
19720 \begin_layout Standard
19721 is used for the wider columns and
19724 \begin_layout Standard
19731 columnwidth-62.4pt)/
19738 \begin_layout Standard
19739 for the smaller ones:
19742 \begin_layout Standard
19743 \begin_inset Tabular
19744 <lyxtabular version="3" rows="2" columns="5">
19745 <features tabularvalignment="middle">
19746 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19747 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19748 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19749 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19750 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19752 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19755 \begin_layout Plain Layout
19761 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19764 \begin_layout Plain Layout
19770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19773 \begin_layout Plain Layout
19779 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19782 \begin_layout Plain Layout
19788 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19791 \begin_layout Plain Layout
19799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19802 \begin_layout Plain Layout
19803 111111 1111111 111111 111111111 11111 11111 1111
19808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19811 \begin_layout Plain Layout
19817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19820 \begin_layout Plain Layout
19821 2222 22222 222222 222222222 2222222 22 22222
19826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19829 \begin_layout Plain Layout
19835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19838 \begin_layout Plain Layout
19839 333333 333333 333333 33333 3333333 333
19852 \begin_layout Section
19853 Table Customization
19854 \begin_inset Index idx
19857 \begin_layout Plain Layout
19858 Table Customization
19864 \begin_inset Index idx
19867 \begin_layout Plain Layout
19868 Table ! Customization
19876 \begin_layout Subsection
19878 \begin_inset CommandInset label
19880 name "subsec:Row-Spacing"
19885 \begin_inset Index idx
19888 \begin_layout Plain Layout
19889 Table Customization ! Row Spacing
19897 \begin_layout Standard
19898 You can add vertical space to table rows in the
19902 tab of the table dialog.
19903 You find there three possibilities:
19906 \begin_layout Description
19908 \begin_inset space ~
19912 \begin_inset space ~
19915 row will add space above the characters of the table row.
19916 If the table is a formal table
19920 \begin_layout Plain Layout
19921 Formal tables are explained in section
19922 \begin_inset space ~
19926 \begin_inset CommandInset ref
19928 reference "sec:Formal-Tables"
19938 will insert as default 0.5
19939 \begin_inset space \thinspace{}
19943 For normal tables the inserted space will unfortunately destroy the vertical
19944 table lines as in the following table:
19945 \begin_inset VSpace medskip
19949 \begin_inset Newline newline
19953 \begin_inset space \hspace*{}
19958 \begin_inset space \hfill{}
19962 \begin_inset Tabular
19963 <lyxtabular version="3" rows="3" columns="1">
19964 <features tabularvalignment="middle">
19965 <column alignment="center" valignment="top">
19967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19970 \begin_layout Plain Layout
19977 <row topspace="3mm">
19978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19981 \begin_layout Plain Layout
19983 \begin_inset space \thinspace{}
19986 mm space top of row
19993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19996 \begin_layout Plain Layout
20008 \begin_inset space \hfill{}
20012 \begin_inset space \hspace*{}
20017 \begin_inset VSpace medskip
20021 \begin_inset Newline newline
20024 So inserting space in the top of row for normal tables is only useful when
20025 you don't have vertical lines.
20028 \begin_layout Description
20030 \begin_inset space ~
20034 \begin_inset space ~
20037 row will add space below the characters of the table row.
20038 If the table is a formal table \SpecialChar LyX
20039 will insert as default 0.5
20040 \begin_inset space \thinspace{}
20043 em space, for normal tables the default size is 2
20044 \begin_inset space \thinspace{}
20050 \begin_layout Description
20052 \begin_inset space ~
20055 rows adds space between the current and the following row.
20056 If the table is a formal table \SpecialChar LyX
20057 will insert as default 0.5
20058 \begin_inset space \thinspace{}
20062 For normal tables the inserted space will unfortunately destroy the vertical
20063 table lines as in the following table:
20064 \begin_inset VSpace medskip
20068 \begin_inset Newline newline
20072 \begin_inset space \hspace*{}
20077 \begin_inset space \hfill{}
20081 \begin_inset Tabular
20082 <lyxtabular version="3" rows="3" columns="1">
20083 <features tabularvalignment="middle">
20084 <column alignment="center" valignment="top">
20086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20089 \begin_layout Plain Layout
20096 <row interlinespace="3mm">
20097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20100 \begin_layout Plain Layout
20101 \begin_inset Formula $\downarrow$
20105 \begin_inset space \thinspace{}
20108 mm space between row
20109 \begin_inset Formula $\downarrow$
20119 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20122 \begin_layout Plain Layout
20123 \begin_inset Formula $\uparrow$
20127 \begin_inset space \thinspace{}
20130 mm space between row
20131 \begin_inset Formula $\uparrow$
20145 \begin_inset space \hfill{}
20149 \begin_inset space \hspace*{}
20154 \begin_inset VSpace medskip
20158 \begin_inset Newline newline
20161 So inserting space between rows for normal tables is only useful when you
20162 don't have vertical lines.
20165 \begin_layout Standard
20166 \begin_inset VSpace bigskip
20169 When you want to add extra height to all cells of all tables, you can do
20170 this with the following preamble lines:
20173 \begin_layout Standard
20178 @ifundefined{extrarowheight}
20179 \begin_inset Newline newline
20183 \begin_inset Phantom HPhantom
20186 \begin_layout Plain Layout
20189 \begin_inset space ~
20199 usepackage{array}}{}
20200 \begin_inset Newline newline
20207 extrarowheight}{height}
20210 \begin_layout Standard
20211 But this has the disadvantage that the cell texts are no longer exactly
20212 vertically centered.
20217 will be loaded automatically by \SpecialChar LyX
20218 when you use self defined table formats.
20219 To avoid that it being loaded twice the command
20225 is used in the above command.)
20228 \begin_layout Standard
20229 If you are using font sizes larger than the normal size, the table borders
20230 are often too close to the letters.
20231 This can be corrected by inserting the command
20237 in \SpecialChar TeX
20238 -Code at the beginning of a table row.
20240 \begin_inset space ~
20244 \begin_inset CommandInset ref
20246 reference "tab:Vertical-alignment-of"
20250 illustrates the effect.
20253 \begin_layout Standard
20255 \begin_inset Float table
20261 \begin_layout Plain Layout
20262 \begin_inset Caption Standard
20264 \begin_layout Plain Layout
20265 \begin_inset CommandInset label
20267 name "tab:Vertical-alignment-of"
20271 Vertical alignment of text with large font sizes.
20279 \begin_layout Plain Layout
20280 \begin_inset space \hfill{}
20284 \begin_inset Float table
20289 \begin_layout Plain Layout
20290 \begin_inset Caption Standard
20292 \begin_layout Plain Layout
20301 \begin_layout Plain Layout
20304 \begin_inset Tabular
20305 <lyxtabular version="3" rows="6" columns="1">
20306 <features tabularvalignment="middle">
20307 <column alignment="left" valignment="top">
20309 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20312 \begin_layout Plain Layout
20320 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20323 \begin_layout Plain Layout
20333 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20336 \begin_layout Plain Layout
20346 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20349 \begin_layout Plain Layout
20359 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20362 \begin_layout Plain Layout
20372 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20375 \begin_layout Plain Layout
20394 \begin_inset space \hfill{}
20398 \begin_inset Float table
20403 \begin_layout Plain Layout
20404 \begin_inset Caption Standard
20406 \begin_layout Plain Layout
20407 Table using the command
20421 \begin_layout Plain Layout
20424 \begin_inset Tabular
20425 <lyxtabular version="3" rows="6" columns="1">
20426 <features tabularvalignment="middle">
20427 <column alignment="left" valignment="top">
20429 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20432 \begin_layout Plain Layout
20440 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20443 \begin_layout Plain Layout
20449 \begin_layout Plain Layout
20465 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20468 \begin_layout Plain Layout
20474 \begin_layout Plain Layout
20490 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20493 \begin_layout Plain Layout
20499 \begin_layout Plain Layout
20515 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20518 \begin_layout Plain Layout
20524 \begin_layout Plain Layout
20540 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20543 \begin_layout Plain Layout
20549 \begin_layout Plain Layout
20576 \begin_inset space \hfill{}
20587 \begin_layout Subsection
20588 Special Cell Alignment
20589 \begin_inset CommandInset label
20591 name "subsec:Special-Cell-Alignment"
20596 \begin_inset Index idx
20599 \begin_layout Plain Layout
20600 Table Customization ! Special Cell Alignment
20608 \begin_layout Standard
20609 Sometimes it looks better when the cell entries of a column are aligned
20610 with a special character, e.
20611 \begin_inset space \thinspace{}
20615 \begin_inset space \space{}
20618 with the decimal separator as in Table
20619 \begin_inset space ~
20623 \begin_inset CommandInset ref
20625 reference "tab:Table-cells-align"
20630 This alignment is achieved by setting the cursor into the column and then
20631 either pressing the toolbar button
20634 arg "inset-modify tabular align-decimal"
20637 or setting the alignment in the table settings to
20640 \begin_inset space ~
20644 \begin_inset space ~
20650 The alignment character can be a character of your choice and is specified
20651 in the table settings.
20654 \begin_layout Standard
20655 \begin_inset Float table
20661 \begin_layout Plain Layout
20662 \begin_inset Caption Standard
20664 \begin_layout Plain Layout
20665 \begin_inset CommandInset label
20667 name "tab:Table-cells-align"
20671 Table cells of a column aligned with the decimal separator.
20679 \begin_layout Plain Layout
20681 \begin_inset Tabular
20682 <lyxtabular version="3" rows="4" columns="1">
20683 <features booktabs="true" tabularvalignment="middle">
20684 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20686 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20689 \begin_layout Plain Layout
20697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20700 \begin_layout Plain Layout
20708 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20711 \begin_layout Plain Layout
20719 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20722 \begin_layout Plain Layout
20741 \begin_layout Standard
20742 \begin_inset Float table
20748 \begin_layout Plain Layout
20749 \begin_inset Caption Standard
20751 \begin_layout Plain Layout
20752 \begin_inset CommandInset label
20754 name "tab:Table-align-operator"
20758 Table cells of a column aligned with the operators.
20766 \begin_layout Plain Layout
20768 \begin_inset Tabular
20769 <lyxtabular version="3" rows="4" columns="2">
20770 <features booktabs="true" tabularvalignment="middle">
20771 <column alignment="right" valignment="top" width="0pt">
20772 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20774 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20777 \begin_layout Plain Layout
20783 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20786 \begin_layout Plain Layout
20794 <cell alignment="center" valignment="top" usebox="none">
20797 \begin_layout Plain Layout
20798 \begin_inset Formula $12\,+$
20806 <cell alignment="center" valignment="top" usebox="none">
20809 \begin_layout Plain Layout
20810 \begin_inset Formula $\,6$
20820 <cell alignment="center" valignment="top" usebox="none">
20823 \begin_layout Plain Layout
20824 \begin_inset Formula $0\,-$
20832 <cell alignment="center" valignment="top" usebox="none">
20835 \begin_layout Plain Layout
20836 \begin_inset Formula $\,68$
20846 <cell alignment="center" valignment="top" usebox="none">
20849 \begin_layout Plain Layout
20850 \begin_inset Formula $-123\,/$
20858 <cell alignment="center" valignment="top" usebox="none">
20861 \begin_layout Plain Layout
20862 \begin_inset Formula $\,0$
20883 \begin_layout Standard
20884 For alignments at characters in formulas this method does not work because
20885 the field to specify the alignment character does not allow formulas.
20886 In this case one need to use the method from Table
20887 \begin_inset space ~
20891 \begin_inset CommandInset ref
20893 reference "tab:Table-align-operator"
20898 This table was created with a 4×2 table.
20899 The heading is a centered multicolumn.
20900 The first column is right-aligned and contains the first part including
20902 The second column is left aligned and contains the rest.
20903 A small space was added at the beginning of each cell of the second column
20904 to get the space that is usually around operators.
20905 To omit the space that is normally between two table columns, the following
20907 -argument was used for the second column:
20910 \begin_layout Standard
20916 \begin_layout Standard
20918 \begin_inset space ~
20922 \begin_inset CommandInset ref
20924 reference "tab:Several-table-cell"
20928 shows some example alignments.
20929 For the alignment with the relation sign, a small space was added like
20930 for the second column of Table
20931 \begin_inset space ~
20935 \begin_inset CommandInset ref
20937 reference "tab:Table-align-operator"
20944 \begin_layout Standard
20945 \begin_inset Float table
20951 \begin_layout Plain Layout
20952 \begin_inset Caption Standard
20954 \begin_layout Plain Layout
20955 \begin_inset CommandInset label
20957 name "tab:Several-table-cell"
20961 Several table cell alignments.
20969 \begin_layout Plain Layout
20971 \begin_inset Tabular
20972 <lyxtabular version="3" rows="4" columns="6">
20973 <features tabularvalignment="middle">
20974 <column alignment="right" valignment="top">
20975 <column alignment="left" valignment="top" special="@{}l">
20976 <column alignment="right" valignment="top">
20977 <column alignment="left" valignment="top" special="@{}l">
20978 <column alignment="right" valignment="top">
20979 <column alignment="left" valignment="top" special="@{}l">
20981 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20984 \begin_layout Plain Layout
20990 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20993 \begin_layout Plain Layout
20999 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
21002 \begin_layout Plain Layout
21008 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21011 \begin_layout Plain Layout
21017 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21020 \begin_layout Plain Layout
21026 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21029 \begin_layout Plain Layout
21037 <cell alignment="center" valignment="top" usebox="none">
21040 \begin_layout Plain Layout
21046 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21049 \begin_layout Plain Layout
21051 \begin_inset space \thinspace{}
21059 <cell alignment="center" valignment="top" usebox="none">
21062 \begin_layout Plain Layout
21063 \begin_inset Formula $10\cdot$
21071 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21074 \begin_layout Plain Layout
21075 \begin_inset Formula $10^{\mbox{-}17}$
21083 <cell alignment="center" valignment="top" usebox="none">
21086 \begin_layout Plain Layout
21087 \begin_inset Formula $\Gamma(t)\propto$
21095 <cell alignment="center" valignment="top" usebox="none">
21098 \begin_layout Plain Layout
21099 \begin_inset Formula $\:\Upsilon(t)$
21109 <cell alignment="center" valignment="top" usebox="none">
21112 \begin_layout Plain Layout
21118 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21121 \begin_layout Plain Layout
21123 \begin_inset space \thinspace{}
21131 <cell alignment="center" valignment="top" usebox="none">
21134 \begin_layout Plain Layout
21135 \begin_inset Formula $5.78\cdot$
21143 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21146 \begin_layout Plain Layout
21147 \begin_inset Formula $10^{7}$
21155 <cell alignment="center" valignment="top" usebox="none">
21158 \begin_layout Plain Layout
21159 \begin_inset Formula $A\ne$
21167 <cell alignment="center" valignment="top" usebox="none">
21170 \begin_layout Plain Layout
21171 \begin_inset Formula $\:B_{\mathrm{red}}$
21181 <cell alignment="center" valignment="top" usebox="none">
21184 \begin_layout Plain Layout
21190 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21193 \begin_layout Plain Layout
21195 \begin_inset space \thinspace{}
21203 <cell alignment="center" valignment="top" usebox="none">
21206 \begin_layout Plain Layout
21208 \begin_inset Formula $33.5\cdot$
21216 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21219 \begin_layout Plain Layout
21220 \begin_inset Formula $10^{4}$
21228 <cell alignment="center" valignment="top" usebox="none">
21231 \begin_layout Plain Layout
21232 \begin_inset Formula $\sin(\alpha)\ge$
21240 <cell alignment="center" valignment="top" usebox="none">
21243 \begin_layout Plain Layout
21244 \begin_inset Formula $\:\sin(\beta)$
21265 \begin_layout Subsection
21266 Customized Cell/Column Format
21267 \begin_inset CommandInset label
21269 name "subsec:Customized-Format"
21274 \begin_inset Index idx
21277 \begin_layout Plain Layout
21278 Table Customization ! Cell/Column Format
21286 \begin_layout Standard
21287 Calculating the required width for normal columns as described in section
21288 \begin_inset space ~
21292 \begin_inset CommandInset ref
21294 reference "sec:Table-Width-Calculation"
21298 or for spanned columns as described in section
21299 \begin_inset space ~
21303 \begin_inset CommandInset ref
21305 reference "subsec:Multicolumn-Calculations"
21309 is very annoying if you have several tables where a calculation is necessary.
21310 To make life easier, you can define a cell/column format in the preamble,
21311 that can be used in all tables of the document.
21312 The format is defined with the command
21315 \begin_layout Standard
21320 newcolumntype{name of format}[number of arguments]{commands}
21323 \begin_layout Standard
21324 The format name may only consist of one letter.
21349 are predefined and cannot be used.
21350 But all letters are allowed as capitals.
21353 \begin_layout Standard
21354 \begin_inset VSpace medskip
21360 \begin_layout Standard
21361 For vertically and horizontally centered multicolumn cells with a fixed
21362 width you can define the cell format
21365 \begin_layout Standard
21370 newcolumntype{M}[1]{>{
21377 \begin_layout Standard
21384 avoids the problem of hyphenating the first word, as described in section
21385 \begin_inset space ~
21389 \begin_inset CommandInset ref
21391 reference "subsec:Multiple-Lines-in"
21396 Now you can simply enter
21399 \begin_layout Standard
21405 \begin_layout Standard
21411 in the table dialog to create a multicolumn.
21414 \begin_layout Standard
21415 \begin_inset VSpace bigskip
21421 \begin_layout Standard
21422 For cells spanned by a multicolumn cell, you can define the format
21425 \begin_layout Standard
21430 newcolumntype{S}[2]{>{
21435 \begin_inset Newline newline
21439 \begin_inset Phantom HPhantom
21442 \begin_layout Plain Layout
21456 arrayrulewidth)*(1-#2))/#2}}
21459 \begin_layout Standard
21460 This format uses equation
21461 \begin_inset CommandInset ref
21467 to calculate the required width so that each spanned cell has the same
21471 \begin_layout Standard
21475 \begin_layout Standard
21478 S{width of multicolumn cell}{number of spanned columns}
21481 \begin_layout Standard
21482 as \SpecialChar LaTeX
21483 -argument of the column.
21486 \begin_layout Standard
21487 \begin_inset VSpace bigskip
21493 \begin_layout Standard
21494 For colored columns, you can define
21497 \begin_layout Standard
21502 newcolumntype{K}[1]{>{
21509 \begin_layout Standard
21511 \begin_inset Quotes eld
21515 \begin_inset Quotes erd
21518 at the end creates a column with a flexible width whose text is horizontally
21523 \begin_layout Standard
21529 \begin_layout Standard
21530 as \SpecialChar LaTeX
21534 \begin_layout Standard
21535 \begin_inset VSpace bigskip
21541 \begin_layout Standard
21543 \begin_inset space ~
21547 \begin_inset CommandInset ref
21549 reference "tab:Table-using-user-defined"
21553 use the \SpecialChar LaTeX
21557 \begin_layout Standard
21563 \begin_layout Standard
21564 for the first column and the multicolumn,
21567 \begin_layout Standard
21573 \begin_layout Standard
21574 for the last column, and
21577 \begin_layout Standard
21583 \begin_layout Standard
21584 for the cells in the second column.
21587 \begin_layout Standard
21588 \begin_inset Float table
21594 \begin_layout Plain Layout
21595 \begin_inset Caption Standard
21597 \begin_layout Plain Layout
21598 \begin_inset CommandInset label
21600 name "tab:Table-using-user-defined"
21604 Table using user-defined table formats
21612 \begin_layout Plain Layout
21614 \begin_inset Tabular
21615 <lyxtabular version="3" rows="3" columns="4">
21616 <features tabularvalignment="middle">
21617 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21618 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21619 <column alignment="center" valignment="middle">
21620 <column alignment="center" valignment="middle" special="K{red}">
21622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21625 \begin_layout Plain Layout
21626 verylongtablecellword
21631 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21634 \begin_layout Plain Layout
21635 multiple lines multicolumn
21640 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21643 \begin_layout Plain Layout
21649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21652 \begin_layout Plain Layout
21660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21663 \begin_layout Plain Layout
21669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21672 \begin_layout Plain Layout
21678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21681 \begin_layout Plain Layout
21687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21690 \begin_layout Plain Layout
21698 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21701 \begin_layout Plain Layout
21707 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21710 \begin_layout Plain Layout
21716 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21719 \begin_layout Plain Layout
21725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21728 \begin_layout Plain Layout
21747 \begin_layout Subsection
21749 \begin_inset CommandInset label
21751 name "subsec:Line-Thickness"
21756 \begin_inset Index idx
21759 \begin_layout Plain Layout
21760 Table Customization ! Line Thickness
21768 \begin_layout Standard
21769 The line thickness for all lines in a table can be adjusted with the length
21777 To set for example a line thickness of 1.5
21778 \begin_inset space \thinspace{}
21782 \begin_inset space ~
21786 \begin_inset CommandInset ref
21788 reference "tab:Table-with-1.5"
21792 , insert the command
21795 \begin_layout Standard
21802 arrayrulewidth}{1.5pt}
21805 \begin_layout Standard
21806 in \SpecialChar TeX
21807 -Code before the table or table float.
21808 The changed thickness is valid for all subsequent tables.
21809 To use the default value again, set
21816 \begin_inset space \thinspace{}
21819 pt in \SpecialChar TeX
21820 -Code after the table or table float.
21823 \begin_layout Standard
21827 \begin_layout Plain Layout
21833 arrayrulewidth}{1.5pt}
21839 \begin_inset Float table
21844 \begin_layout Plain Layout
21845 \begin_inset Caption Standard
21847 \begin_layout Plain Layout
21848 \begin_inset CommandInset label
21850 name "tab:Table-with-1.5"
21855 \begin_inset space \thinspace{}
21866 \begin_layout Plain Layout
21868 \begin_inset Tabular
21869 <lyxtabular version="3" rows="3" columns="3">
21870 <features tabularvalignment="middle">
21871 <column alignment="center" valignment="top">
21872 <column alignment="center" valignment="top">
21873 <column alignment="center" valignment="top">
21875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21878 \begin_layout Plain Layout
21884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21887 \begin_layout Plain Layout
21893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21896 \begin_layout Plain Layout
21904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21907 \begin_layout Plain Layout
21913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21916 \begin_layout Plain Layout
21922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21925 \begin_layout Plain Layout
21933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21936 \begin_layout Plain Layout
21942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21945 \begin_layout Plain Layout
21951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21954 \begin_layout Plain Layout
21974 \begin_layout Plain Layout
21980 arrayrulewidth}{0.4pt}
21988 \begin_layout Standard
21989 \begin_inset VSpace bigskip
21992 To set the line thickness to 1.5
21993 \begin_inset space \thinspace{}
21996 pt only for horizontal lines, as in Table
21997 \begin_inset space ~
22001 \begin_inset CommandInset ref
22003 reference "tab:Table-with-horizontal"
22007 , insert these commands in \SpecialChar TeX
22008 -Code before the table or table float:
22011 \begin_layout Standard
22021 \begin_inset Newline newline
22029 \begin_inset Newline newline
22038 arrayrulewidth 1.5pt}
22039 \begin_inset Newline newline
22050 arrayrulewidth 0.4pt}}
22053 \begin_layout Standard
22054 To return to the default line thickness, insert this command in \SpecialChar TeX
22056 the table or table float:
22059 \begin_layout Standard
22071 \begin_layout Standard
22075 \begin_layout Plain Layout
22086 \begin_layout Plain Layout
22095 \begin_layout Plain Layout
22103 arrayrulewidth 1.5pt}
22106 \begin_layout Plain Layout
22116 arrayrulewidth 0.4pt}}
22122 \begin_inset Float table
22127 \begin_layout Plain Layout
22128 \begin_inset Caption Standard
22130 \begin_layout Plain Layout
22131 \begin_inset CommandInset label
22133 name "tab:Table-with-horizontal"
22138 \begin_inset space \thinspace{}
22141 pt thick horizontal lines
22149 \begin_layout Plain Layout
22151 \begin_inset Tabular
22152 <lyxtabular version="3" rows="3" columns="3">
22153 <features tabularvalignment="middle">
22154 <column alignment="center" valignment="top">
22155 <column alignment="center" valignment="top">
22156 <column alignment="center" valignment="top">
22158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22161 \begin_layout Plain Layout
22167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22170 \begin_layout Plain Layout
22176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22179 \begin_layout Plain Layout
22187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22190 \begin_layout Plain Layout
22196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22199 \begin_layout Plain Layout
22205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22208 \begin_layout Plain Layout
22216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22219 \begin_layout Plain Layout
22225 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22228 \begin_layout Plain Layout
22234 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22237 \begin_layout Plain Layout
22257 \begin_layout Plain Layout
22273 \begin_layout Standard
22274 \begin_inset VSpace bigskip
22277 To set the line thickness to 1.5
22278 \begin_inset space \thinspace{}
22281 pt only for vertical lines, create the following column format in the document
22282 preamble, according to the description in section
22283 \begin_inset space ~
22287 \begin_inset CommandInset ref
22289 reference "subsec:Customized-Format"
22296 \begin_layout Standard
22301 newcolumntype{V}{!{
22303 vrule width 1.5pt}}
22306 \begin_layout Standard
22308 \begin_inset space ~
22312 \begin_inset CommandInset ref
22314 reference "tab:Table-with-vertical"
22318 the \SpecialChar LaTeX
22322 \begin_layout Standard
22328 \begin_layout Standard
22329 was used for the last column and
22332 \begin_layout Standard
22338 \begin_layout Standard
22339 for the other columns.
22342 \begin_layout Standard
22343 \begin_inset Float table
22348 \begin_layout Plain Layout
22349 \begin_inset Caption Standard
22351 \begin_layout Plain Layout
22352 \begin_inset CommandInset label
22354 name "tab:Table-with-vertical"
22359 \begin_inset space \thinspace{}
22362 pt thick vertical lines
22370 \begin_layout Plain Layout
22372 \begin_inset Tabular
22373 <lyxtabular version="3" rows="3" columns="3">
22374 <features tabularvalignment="middle">
22375 <column alignment="center" valignment="top" special="Vc">
22376 <column alignment="center" valignment="top" special="Vc">
22377 <column alignment="center" valignment="top" special="VcV">
22379 <cell alignment="center" valignment="top" topline="true" usebox="none">
22382 \begin_layout Plain Layout
22388 <cell alignment="center" valignment="top" topline="true" usebox="none">
22391 \begin_layout Plain Layout
22397 <cell alignment="center" valignment="top" topline="true" usebox="none">
22400 \begin_layout Plain Layout
22408 <cell alignment="center" valignment="top" topline="true" usebox="none">
22411 \begin_layout Plain Layout
22417 <cell alignment="center" valignment="top" topline="true" usebox="none">
22420 \begin_layout Plain Layout
22426 <cell alignment="center" valignment="top" topline="true" usebox="none">
22429 \begin_layout Plain Layout
22437 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22440 \begin_layout Plain Layout
22446 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22449 \begin_layout Plain Layout
22455 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22458 \begin_layout Plain Layout
22477 \begin_layout Subsection
22479 \begin_inset Index idx
22482 \begin_layout Plain Layout
22483 Table Customization ! Dashed Lines
22491 \begin_layout Standard
22495 \begin_layout Plain Layout
22505 \begin_inset Note Note
22508 \begin_layout Plain Layout
22509 The following section will only be displayed when the \SpecialChar LaTeX
22522 \begin_layout Standard
22523 \begin_inset Float table
22529 \begin_layout Plain Layout
22530 \begin_inset Caption Standard
22532 \begin_layout Plain Layout
22533 \begin_inset CommandInset label
22535 name "tab:Table-with-dashed"
22539 Table with dashed lines
22547 \begin_layout Plain Layout
22549 \begin_inset Tabular
22550 <lyxtabular version="3" rows="5" columns="5">
22551 <features tabularvalignment="middle">
22552 <column alignment="center" valignment="top">
22553 <column alignment="center" valignment="top">
22554 <column alignment="center" valignment="top" special=":c">
22555 <column alignment="center" valignment="top">
22556 <column alignment="center" valignment="top">
22558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22561 \begin_layout Plain Layout
22567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22570 \begin_layout Plain Layout
22576 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22579 \begin_layout Plain Layout
22585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22588 \begin_layout Plain Layout
22594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22597 \begin_layout Plain Layout
22605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22608 \begin_layout Plain Layout
22614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22617 \begin_layout Plain Layout
22623 <cell alignment="center" valignment="top" topline="true" usebox="none">
22626 \begin_layout Plain Layout
22632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22635 \begin_layout Plain Layout
22641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22644 \begin_layout Plain Layout
22652 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22655 \begin_layout Plain Layout
22659 \begin_layout Plain Layout
22673 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22676 \begin_layout Plain Layout
22682 <cell alignment="center" valignment="top" usebox="none">
22685 \begin_layout Plain Layout
22691 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22694 \begin_layout Plain Layout
22700 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22703 \begin_layout Plain Layout
22711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22714 \begin_layout Plain Layout
22718 \begin_layout Plain Layout
22732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22735 \begin_layout Plain Layout
22741 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22744 \begin_layout Plain Layout
22750 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22753 \begin_layout Plain Layout
22759 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22762 \begin_layout Plain Layout
22770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22773 \begin_layout Plain Layout
22779 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22782 \begin_layout Plain Layout
22788 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22791 \begin_layout Plain Layout
22797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22800 \begin_layout Plain Layout
22806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22809 \begin_layout Plain Layout
22828 \begin_layout Standard
22830 does not natively support dashed lines, so you have to use \SpecialChar TeX
22832 As a prerequisite the \SpecialChar LaTeX
22838 \begin_inset Index idx
22841 \begin_layout Plain Layout
22843 -packages ! arydshln
22848 must be loaded in the document preamble with the command
22851 \begin_layout Standard
22856 usepackage{arydshln}
22859 \begin_layout Standard
22860 To make a vertical line dashed, enter the colon
22861 \begin_inset Quotes eld
22865 \begin_inset Quotes erd
22868 together with the character for the horizontal alignment as \SpecialChar LaTeX
22870 the table cell dialog.
22873 \begin_layout Standard
22874 For a horizontal dashed line add the command
22877 \begin_layout Standard
22885 \begin_layout Standard
22886 in \SpecialChar TeX
22887 -Code as first element of the first cell in the table row.
22890 \begin_layout Standard
22891 For dashed multicolumn lines use the command
22894 \begin_layout Standard
22899 cdashline{line number
22904 \begin_layout Standard
22905 in \SpecialChar TeX
22906 -Code as the first element of the first cell in the table row.
22907 If you have for example a multicolumn spanning columns 2 to 4 and you want
22908 to have a dashed line above, add the command
22911 \begin_layout Standard
22919 \begin_layout Standard
22920 as the first element of the first cell in the row of the multicolumn.
22923 \begin_layout Standard
22924 \begin_inset VSpace bigskip
22930 \begin_layout Standard
22932 \begin_inset space ~
22936 \begin_inset CommandInset ref
22938 reference "tab:Table-with-dashed"
22943 \begin_inset Quotes eld
22951 \begin_inset Quotes erd
22954 as \SpecialChar LaTeX
22955 -argument of the third column.
22956 The \SpecialChar TeX
22963 was inserted in the first cell of the third row and the \SpecialChar TeX
22965 \begin_inset Newline newline
22974 was inserted in the first cell of the fourth row.
22977 \begin_layout Standard
22978 \begin_inset VSpace bigskip
22984 \begin_layout Standard
22985 Tables with dashed lines can also be colored as shown by Table
22986 \begin_inset space ~
22990 \begin_inset CommandInset ref
22992 reference "tab:Colored-table-with"
22999 \begin_layout Standard
23003 \begin_layout Plain Layout
23009 arrayrulewidth}{1pt}
23015 \begin_inset Note Note
23018 \begin_layout Plain Layout
23019 thicker lines for better visualization of the line color
23027 \begin_layout Standard
23031 \begin_layout Plain Layout
23035 dashgapcolor{green}
23041 \begin_inset Note Note
23044 \begin_layout Plain Layout
23045 color gaps between dashes green
23053 \begin_layout Standard
23057 \begin_layout Plain Layout
23068 \begin_layout Plain Layout
23077 \begin_layout Plain Layout
23081 arrayrulecolor{red}
23085 arrayrulecolor{black}}
23091 \begin_inset Note Note
23094 \begin_layout Plain Layout
23095 color horizontal, dashed lines red
23103 \begin_layout Standard
23107 \begin_layout Plain Layout
23118 \begin_layout Plain Layout
23127 \begin_layout Plain Layout
23131 arrayrulecolor{yellow}
23135 arrayrulecolor{black}}
23141 \begin_inset Note Note
23144 \begin_layout Plain Layout
23145 color partial horizontal, dashed lines yellow
23153 \begin_layout Standard
23154 \begin_inset Float table
23160 \begin_layout Plain Layout
23161 \begin_inset Caption Standard
23163 \begin_layout Plain Layout
23164 \begin_inset CommandInset label
23166 name "tab:Colored-table-with"
23170 Colored table with dashed lines
23178 \begin_layout Plain Layout
23180 \begin_inset Tabular
23181 <lyxtabular version="3" rows="5" columns="5">
23182 <features tabularvalignment="middle">
23183 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23184 <column alignment="center" valignment="top" width="0pt">
23185 <column alignment="center" valignment="top" width="0pt" special=":c">
23186 <column alignment="center" valignment="top">
23187 <column alignment="center" valignment="top">
23189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23192 \begin_layout Plain Layout
23198 <cell alignment="center" valignment="top" topline="true" usebox="none">
23201 \begin_layout Plain Layout
23207 <cell alignment="center" valignment="top" topline="true" usebox="none">
23210 \begin_layout Plain Layout
23216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23219 \begin_layout Plain Layout
23225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23228 \begin_layout Plain Layout
23236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23239 \begin_layout Plain Layout
23245 <cell alignment="center" valignment="top" topline="true" usebox="none">
23248 \begin_layout Plain Layout
23254 <cell alignment="center" valignment="top" topline="true" usebox="none">
23257 \begin_layout Plain Layout
23263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23266 \begin_layout Plain Layout
23272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23275 \begin_layout Plain Layout
23283 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23286 \begin_layout Plain Layout
23290 \begin_layout Plain Layout
23303 \begin_layout Plain Layout
23317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23320 \begin_layout Plain Layout
23326 <cell alignment="center" valignment="top" usebox="none">
23329 \begin_layout Plain Layout
23335 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23338 \begin_layout Plain Layout
23344 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23347 \begin_layout Plain Layout
23355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23358 \begin_layout Plain Layout
23362 \begin_layout Plain Layout
23376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23379 \begin_layout Plain Layout
23385 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23388 \begin_layout Plain Layout
23394 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23397 \begin_layout Plain Layout
23403 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23406 \begin_layout Plain Layout
23414 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23417 \begin_layout Plain Layout
23423 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23426 \begin_layout Plain Layout
23432 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23435 \begin_layout Plain Layout
23441 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23444 \begin_layout Plain Layout
23450 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23453 \begin_layout Plain Layout
23457 \begin_layout Plain Layout
23484 \begin_layout Standard
23488 \begin_layout Plain Layout
23502 \begin_inset Note Note
23505 \begin_layout Plain Layout
23514 \begin_layout Standard
23518 \begin_layout Plain Layout
23532 \begin_inset Note Note
23535 \begin_layout Plain Layout
23544 \begin_layout Standard
23548 \begin_layout Plain Layout
23558 \begin_inset Note Note
23561 \begin_layout Plain Layout
23570 \begin_layout Standard
23574 \begin_layout Plain Layout
23580 arrayrulewidth}{0.4pt}
23586 \begin_inset Note Note
23589 \begin_layout Plain Layout
23598 \begin_layout Standard
23599 The coloring of lines, columns and lines works as decribed in section
23600 \begin_inset space ~
23604 \begin_inset CommandInset ref
23606 reference "sec:Colored-Tables"
23611 Coloring horizontal lines works analogically as described there as well,
23612 one only needs to replace in the commands
23636 ; so one uses the command
23639 \begin_layout Standard
23649 \begin_inset Newline newline
23657 \begin_inset Newline newline
23661 \begin_inset Phantom HPhantom
23664 \begin_layout Plain Layout
23665 \begin_inset space ~
23675 arrayrulecolor{red}
23679 arrayrulecolor{black}}
23682 \begin_layout Standard
23692 \begin_layout Standard
23702 \begin_inset Newline newline
23710 \begin_inset Newline newline
23714 \begin_inset Phantom HPhantom
23717 \begin_layout Plain Layout
23718 \begin_inset space ~
23728 arrayrulecolor{red}
23732 arrayrulecolor{black}}
23735 \begin_layout Standard
23736 To get back the black line color, one needs to insert the following commands
23737 as \SpecialChar TeX
23738 -Code behind the table:
23741 \begin_layout Standard
23749 \begin_layout Standard
23761 \begin_layout Standard
23769 \begin_layout Standard
23781 \begin_layout Standard
23782 To color the gaps between the dashes the command
23785 \begin_layout Standard
23790 dashgapcolor{color}
23793 \begin_layout Standard
23794 can be used in front of a table as \SpecialChar TeX
23796 color is hereby the name of a defined color.
23800 \begin_layout Standard
23808 \begin_layout Standard
23809 unsets the changes made by
23818 \begin_layout Standard
23819 \begin_inset Note Greyedout
23822 \begin_layout Plain Layout
23828 : If there are multiple commands in a cell, the command of
23832 needs to be the first one in the cell.
23838 \begin_inset space ~
23842 \begin_inset CommandInset ref
23844 reference "tab:Colored-table-with"
23868 \begin_layout Standard
23869 \begin_inset Note Greyedout
23872 \begin_layout Plain Layout
23878 The \SpecialChar LaTeX
23883 must be loaded in the document preamble before the \SpecialChar LaTeX
23889 \begin_inset Index idx
23892 \begin_layout Plain Layout
23894 -packages ! colortbl
23907 \begin_layout Standard
23911 \begin_layout Plain Layout
23921 \begin_inset Note Note
23924 \begin_layout Plain Layout
23925 The following will be displayed when the \SpecialChar LaTeX
23938 \begin_layout Standard
23939 You need to install the package
23943 to see the content of this section in the output.
23946 \begin_layout Standard
23950 \begin_layout Plain Layout
23962 \begin_layout Standard
23963 For more information about dashed lines see the documentation of
23968 \begin_inset CommandInset citation
23977 \begin_layout Chapter
23979 \begin_inset CommandInset label
23986 \begin_inset Index idx
23989 \begin_layout Plain Layout
23998 \begin_layout Section
24000 \begin_inset CommandInset label
24002 name "sec:FloatIntroduction"
24007 \begin_inset Index idx
24010 \begin_layout Plain Layout
24011 Floats ! Introduction
24019 \begin_layout Standard
24020 A float is a block of text associated with some sort of label, which doesn't
24021 have a fixed location.
24023 \begin_inset Quotes eld
24027 \begin_inset Quotes erd
24030 forward or backward a page or two, to wherever it fits best.
24038 \begin_inset space ~
24043 are also floats because they can float to the next page when there are
24044 too many notes on the page.
24047 \begin_layout Standard
24048 Floats allow a high quality layout.
24049 Images and tables can be spread evenly among the pages to avoid white space
24050 and pages without text.
24051 As the floating often destroys the context between the text and the image/table
24052 , every float can be referenced in the text.
24053 Floats are therefore numbered.
24054 Referencing is described in section
24055 \begin_inset space ~
24059 \begin_inset CommandInset ref
24061 reference "sec:Referencing-Floats"
24068 \begin_layout Standard
24069 To insert a float, use the menu
24071 Insert\SpecialChar menuseparator
24077 arg "float-insert figure"
24083 arg "float-insert table"
24091 inset, a box with a label.
24092 The label will automatically be translated to the document language in
24094 After the label you can insert the caption text.
24095 The image or table is inserted above or below the caption in a separate
24096 paragraph within the float.
24097 More about the caption placement is contained in section
24098 \begin_inset space ~
24102 \begin_inset CommandInset ref
24104 reference "sec:Caption-Placement"
24109 To keep your \SpecialChar LyX
24110 -document readable, you can open and close the float box by
24111 left-clicking on the box label.
24112 A closed float box looks like this:
24113 \begin_inset Graphics
24114 filename clipart/floatQt4.png
24116 scaleBeforeRotation
24120 – a gray button with a red label.
24123 \begin_layout Standard
24124 It is recommended that you insert floats as separate standard paragraphs
24125 to avoid possible \SpecialChar LaTeX
24126 -errors that can occur when the surrounding text is specially
24130 \begin_layout Standard
24131 Existing figures or tables can be put into a float by highlighting them
24132 and then pressing the corresponding toolbar button for a new float.
24135 \begin_layout Section
24139 \begin_layout Standard
24140 Besides figure and table floats that are described in sections
24141 \begin_inset space ~
24145 \begin_inset CommandInset ref
24147 reference "sec:Figure-Floats"
24152 \begin_inset CommandInset ref
24154 reference "sec:Table-Floats"
24158 respectively, \SpecialChar LyX
24159 offers the float types
24168 The latter are explained in sec.
24169 \begin_inset space \thinspace{}
24173 \begin_inset CommandInset ref
24175 reference "sec:Wrap-Floats"
24182 \begin_layout Subsection
24184 \begin_inset Index idx
24187 \begin_layout Plain Layout
24188 Floats ! Algorithms
24196 \begin_layout Standard
24197 \begin_inset Float algorithm
24203 \begin_layout Plain Layout
24204 \begin_inset Caption Standard
24206 \begin_layout Plain Layout
24207 \begin_inset CommandInset label
24209 name "alg:Example-Algorithm-float"
24213 Example Algorithm float
24221 \begin_layout LyX-Code
24223 \begin_inset Newline newline
24226 Sum:= Sum + A(I); /*comment*/
24227 \begin_inset Newline newline
24231 \begin_inset VSpace -4mm
24242 \begin_layout Standard
24243 This float type is inserted with the menu
24245 Insert\SpecialChar menuseparator
24246 Float\SpecialChar menuseparator
24250 It is used for program codes and descriptions of algorithms and can be
24251 seen as an alternative to program code listings that are explained in chapter
24252 \begin_inset space ~
24256 \begin_inset CommandInset ref
24258 reference "cha:Program-Code-Listings"
24263 A possible environment for algorithms is the
24268 , described in \SpecialChar LyX
24275 \begin_inset space ~
24279 \begin_inset CommandInset ref
24281 reference "alg:Example-Algorithm-float"
24285 is an example of an algorithm float where -4
24286 \begin_inset space \thinspace{}
24289 mm vertical space was added at the end of the float to have the bottom rule
24290 exactly below the last text line.
24293 \begin_layout Standard
24294 The float label is not automatically translated into the document language.
24295 If your document is not in English, you have to do this manually by adding
24296 the following line to the document preamble
24301 \begin_layout Standard
24306 floatname{algorithm}{your
24307 \begin_inset space ~
24313 \begin_layout Standard
24317 \begin_inset space ~
24323 \begin_inset Quotes eld
24331 \begin_inset Quotes erd
24337 \begin_layout Standard
24338 To insert the list of algorithms you can use the menu
24340 Insert\SpecialChar menuseparator
24342 \begin_inset space \thinspace{}
24346 \begin_inset space \thinspace{}
24349 TOC\SpecialChar menuseparator
24352 when your document has the same language as \SpecialChar LyX
24354 In other cases use this command in \SpecialChar TeX
24358 \begin_layout Standard
24363 listof{algorithm}{your
24364 \begin_inset space ~
24370 \begin_layout Standard
24374 \begin_inset space ~
24380 \begin_inset Quotes eld
24388 \begin_inset Quotes erd
24394 \begin_layout Standard
24395 Algorithm floats are not by default numbered in the scheme
24396 \begin_inset Quotes eld
24400 \begin_inset Quotes erd
24403 as is the case for table and figure floats in many document-classes.
24404 To number algorithm floats in the same scheme, add this command to your
24408 \begin_layout Standard
24413 numberwithin{algorithm}{chapter}
24416 \begin_layout Standard
24417 To be able to use the command
24426 \begin_inset space ~
24431 in the document settings the option
24434 \begin_inset space ~
24438 \begin_inset space ~
24442 \begin_inset space ~
24450 \begin_layout Section
24452 \begin_inset Index idx
24455 \begin_layout Plain Layout
24464 \begin_layout Standard
24465 Floats are usually numbered either independently from the sections the floats
24466 are in, or in the scheme
24467 \begin_inset Quotes eld
24471 \begin_inset Quotes erd
24475 \begin_inset Quotes eld
24479 \begin_inset Quotes erd
24483 This depends on the document class used.
24486 \begin_layout Standard
24487 To change section-independent numbering, you can use this command in the
24491 \begin_layout Standard
24503 \begin_layout Standard
24510 is the command that prints the table number.
24511 For figure floats, the command would be
24524 in the command above prints the table number as a small roman number.
24527 \begin_layout Standard
24528 To change the numbering scheme for example to
24529 \begin_inset Quotes eld
24533 \begin_inset Quotes erd
24536 , use this command in the preamble:
24539 \begin_layout Standard
24544 numberwithin{table}{subsection}
24547 \begin_layout Standard
24548 To be able to use the command
24557 \begin_inset space ~
24562 in the document settings the option
24565 \begin_inset space ~
24569 \begin_inset space ~
24573 \begin_inset space ~
24581 \begin_layout Standard
24582 Please also have a look at section
24583 \begin_inset space ~
24587 \begin_inset CommandInset ref
24589 reference "subsec:Footnote-Numbering"
24593 for the details and important notes about the numbering commands.
24596 \begin_layout Section
24598 \begin_inset CommandInset label
24600 name "sec:Referencing-Floats"
24605 \begin_inset Index idx
24608 \begin_layout Plain Layout
24609 Floats ! References
24615 \begin_inset Index idx
24618 \begin_layout Plain Layout
24619 References ! to Floats
24627 \begin_layout Standard
24628 To reference a float, insert a label into its caption using the menu
24630 Insert\SpecialChar menuseparator
24633 or the toolbar button
24640 A grey label box like this one:
24641 \begin_inset Graphics
24642 filename clipart/labelQt4.png
24644 scaleBeforeRotation
24648 will be inserted and the label window pops up asking for the label text.
24650 offers as text the first words of the caption with a prefix.
24651 The prefix depends on the float type, e.
24652 \begin_inset space \thinspace{}
24656 \begin_inset space \space{}
24659 for figure floats the prefix will be "
24666 \begin_layout Standard
24667 The label is used as anchor and name for the reference.
24668 You can refer to the label using the menu
24670 Insert\SpecialChar menuseparator
24673 or the toolbar button
24676 arg "dialog-show-new-inset ref"
24680 The cross-reference window appears showing all labels of the document.
24681 If you have multiple \SpecialChar LyX
24682 -documents opened, choose the one you are working
24683 on from the drop-list at the top of the dialog.
24684 You can now sort the labels alphabetically and then choose one.
24685 A grey cross-reference box like this one:
24686 \begin_inset Graphics
24687 filename clipart/referenceQt4.png
24689 scaleBeforeRotation
24694 At the position of the cross-reference box the float number will appear
24698 \begin_layout Standard
24699 It is recommended that you use a protected space between the cross-reference
24700 name and its number to avoid line breaks between them.
24701 If a cross-reference refers to a non-existing label, you will see two question
24702 marks in the output instead of the reference.
24705 \begin_layout Standard
24706 You can change labels at any time by clicking on the label box.
24707 References to the changed label will automatically update their links to
24708 the new label text.
24711 \begin_layout Standard
24715 \begin_inset space ~
24719 \begin_inset space ~
24724 in the cross-reference window sets the cursor before the referred label.
24725 The button text changes then to Go
24726 \begin_inset space ~
24729 Back and you can use it to set the cursor back to the cross-reference.
24732 \begin_layout Subsection
24733 Cross-Reference Formats
24734 \begin_inset CommandInset label
24736 name "subsec:Cross-Reference-Formats"
24741 \begin_inset Index idx
24744 \begin_layout Plain Layout
24745 References ! Formats
24753 \begin_layout Standard
24754 There are six varieties of cross-references:
24757 \begin_layout Description
24758 <reference>: prints the float number, this is the default:
24759 \begin_inset CommandInset ref
24761 reference "fig:Two-distorted-images"
24768 \begin_layout Description
24769 (<reference>): prints the float number within two parentheses, this is the
24770 style normally used to reference formulas, especially when the reference
24772 \begin_inset Quotes eld
24776 \begin_inset Quotes erd
24780 \begin_inset CommandInset ref
24789 \begin_layout Description
24790 <page>: prints the page number: Page
24791 \begin_inset space ~
24795 \begin_inset CommandInset ref
24796 LatexCommand pageref
24797 reference "fig:Two-distorted-images"
24804 \begin_layout Description
24806 \begin_inset space ~
24810 \begin_inset space ~
24813 <page>: prints the text "on page" and the page number:
24814 \begin_inset CommandInset ref
24815 LatexCommand vpageref
24816 reference "fig:Two-distorted-images"
24823 \begin_layout Description
24825 \begin_inset space ~
24829 \begin_inset space ~
24833 \begin_inset space ~
24836 <page>: prints the float number, the text "on page", and the page number:
24838 \begin_inset CommandInset ref
24840 reference "fig:Two-distorted-images"
24847 \begin_layout Description
24849 \begin_inset space ~
24852 reference: prints a self-defined cross-reference format.
24853 \begin_inset Newline newline
24857 \begin_inset Note Greyedout
24860 \begin_layout Plain Layout
24865 This feature is only available when you have the \SpecialChar LaTeX
24875 \begin_inset Index idx
24878 \begin_layout Plain Layout
24880 -packages ! prettyref
24886 \begin_inset Index idx
24889 \begin_layout Plain Layout
24891 -packages ! refstyle
24902 \begin_inset Newline newline
24905 You can select which \SpecialChar LaTeX
24906 -package should be used for this feature by setting
24909 Use refstyle (not prettyref) for cross-references
24913 Document\SpecialChar menuseparator
24914 Settings\SpecialChar menuseparator
24918 The format is specified by adding the command
24930 (refstyle) to the preamble of the document.
24931 For example redefining all references to figures (which have the label
24933 \begin_inset Quotes eld
24941 \begin_inset Quotes erd
24944 ) can be done with this command
24945 \begin_inset Newline newline
24952 newref{fig}{refcmd={Image on page
24957 \begin_inset Newline newline
24960 For more information about the format, have a look at the package documentations
24962 \begin_inset CommandInset citation
24964 key "prettyref,refstyle"
24971 \begin_layout Description
24973 \begin_inset space ~
24976 reference: prints the caption of the reference:
24977 \begin_inset CommandInset ref
24978 LatexCommand nameref
24979 reference "fig:Two-distorted-images"
24986 \begin_layout Standard
24991 will not print the page number if the label is on the previous, the same,
24994 \begin_inset space \thinspace{}
24998 \begin_inset space \space{}
25002 \begin_inset Quotes eld
25010 \begin_inset Quotes erd
25016 <reference> on page <page>
25018 will not print anything about the page if the label is on the same page.
25021 \begin_layout Standard
25022 The number and current page of the part of the document referred to in the
25023 output is automatically calculated by \SpecialChar LaTeX
25025 The varieties are adjusted in the field
25029 of the cross-reference window that appears when you click on the cross-referenc
25033 \begin_layout Standard
25034 \begin_inset Note Greyedout
25037 \begin_layout Plain Layout
25042 It is recommended to use the \SpecialChar LaTeX
25048 \begin_inset Index idx
25051 \begin_layout Plain Layout
25053 -packages ! refstyle
25063 \begin_inset Index idx
25066 \begin_layout Plain Layout
25068 -packages ! prettyref
25073 does not know all of \SpecialChar LyX
25074 's possible label shortcuts
25078 \begin_layout Plain Layout
25079 \begin_inset Quotes eld
25083 \begin_inset Quotes erd
25086 is for example \SpecialChar LyX
25087 's shortcut for labels in figure captions.
25092 and is not internationalized.
25100 \begin_layout Standard
25101 \begin_inset Note Greyedout
25104 \begin_layout Plain Layout
25109 Due to a bug in the \SpecialChar LaTeX
25114 version 1.4w, some cross-reference formats will cause \SpecialChar LaTeX
25115 errors for document
25116 languages that make the period character active (like French).
25117 For a workaround, see
25118 \begin_inset Newline newline
25122 \begin_inset CommandInset href
25124 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
25136 \begin_layout Subsection
25137 Automatic Reference Naming
25138 \begin_inset Index idx
25141 \begin_layout Plain Layout
25142 References ! Automatic Reference Naming
25150 \begin_layout Standard
25151 The \SpecialChar LaTeX
25157 \begin_inset Index idx
25160 \begin_layout Plain Layout
25162 -packages ! hyperref
25167 , that is enabled in the
25175 dialog, provides a very useful feature that cross-references automatically
25176 include the name of the referenced floats (or text parts like
25181 So you will save having to write e.
25182 \begin_inset space \thinspace{}
25186 \begin_inset space \space{}
25190 \begin_inset Quotes eld
25194 \begin_inset Quotes erd
25197 before every reference to a figure.
25198 To use this feature, enable
25202 and insert this line to the \SpecialChar LaTeX
25206 \begin_layout Standard
25222 \begin_layout Standard
25223 When you prefer other reference names than the default ones, for example
25224 you want instead of
25225 \begin_inset Quotes eld
25229 \begin_inset Quotes erd
25233 \begin_inset Quotes eld
25237 \begin_inset space \thinspace{}
25241 \begin_inset Quotes eld
25244 , you can redefine the name by inserting this in the preamble:
25247 \begin_layout Standard
25258 sectionautorefname}
25259 \begin_inset Newline newline
25263 \begin_inset Phantom HPhantom
25266 \begin_layout Plain Layout
25269 \begin_inset space ~
25282 \begin_layout Standard
25283 When you are using another document language than English, replace
25284 \begin_inset Newline newline
25299 , where *** is the name of the language used.
25302 \begin_layout Standard
25303 To get automatic names, but not for certain reference types, for example
25304 not for equations, use this preamble code:
25307 \begin_layout Standard
25318 equationautorefname}[1]{}}
25321 \begin_layout Standard
25322 More about this topic can be found in
25327 \begin_inset CommandInset citation
25336 \begin_layout Standard
25337 \begin_inset Note Greyedout
25340 \begin_layout Plain Layout
25345 Automatic reference naming cannot be used when you use cross-references
25349 \begin_inset space ~
25354 style, as described in section
25355 \begin_inset space ~
25359 \begin_inset CommandInset ref
25361 reference "subsec:Cross-Reference-Formats"
25373 \begin_layout Standard
25378 manual is an example where automatic reference naming is used.
25381 \begin_layout Subsection
25383 \begin_inset CommandInset label
25385 name "subsec:Reference-Position"
25390 \begin_inset Index idx
25393 \begin_layout Plain Layout
25394 References ! Reference Position
25402 \begin_layout Standard
25408 \begin_inset Index idx
25411 \begin_layout Plain Layout
25413 -packages ! hyperref
25426 dialog to link cross-references in the output, you will see that clicking
25427 on an image float reference jumps to the image label.
25428 The caption will be the first text part on the screen, so that you cannot
25429 see the image without scrolling.
25430 This is because the reference link anchor is placed at the position of
25432 With the use of the package
25437 \begin_inset Index idx
25440 \begin_layout Plain Layout
25447 , which is part of the \SpecialChar LaTeX
25453 \begin_inset Index idx
25456 \begin_layout Plain Layout
25458 -packages ! oberdiek
25463 , the link anchor is placed at the beginning of a float.
25464 To use this feature for figure floats, load
25468 in the document preamble with the line
25471 \begin_layout Standard
25476 usepackage[figure]{hypcap}
25479 \begin_layout Standard
25484 for all float types but this is not recommended for stability reasons.
25485 For more information, have a look at
25490 \begin_inset CommandInset citation
25499 \begin_layout Standard
25500 \begin_inset Note Greyedout
25503 \begin_layout Plain Layout
25512 has no effect on references to subfigures.
25520 \begin_layout Section
25522 \begin_inset CommandInset label
25524 name "sec:Float-Placement"
25529 \begin_inset Index idx
25532 \begin_layout Plain Layout
25541 \begin_layout Standard
25542 Right-clicking on a float-box and clicking on
25546 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25548 positioning the float.
25549 \begin_inset Newline newline
25555 \begin_inset space ~
25560 is only useful for two-column documents: If you select it, the float will
25561 span both columns on the page instead of being confined to just one.
25562 \begin_inset Newline newline
25568 \begin_inset space ~
25573 is used to rotate floats, see section
25574 \begin_inset CommandInset ref
25576 reference "sec:Rotated-Floats"
25583 \begin_layout Standard
25584 You can use one or more of the following options in the float dialog to
25585 set the placement for a particular float when you uncheck the option
25588 \begin_inset space ~
25592 \begin_inset space ~
25600 \begin_layout Description
25602 \begin_inset space ~
25606 \begin_inset space ~
25609 possible try to place the float on the position where it has been inserted
25612 \begin_layout Description
25614 \begin_inset space ~
25618 \begin_inset space ~
25621 page try to place the float at the top of the current page
25624 \begin_layout Description
25626 \begin_inset space ~
25630 \begin_inset space ~
25633 page try to place the float at the bottom of the current page
25636 \begin_layout Description
25638 \begin_inset space ~
25642 \begin_inset space ~
25645 floats try to place the float on its own page
25648 \begin_layout Standard
25649 The order of the above option is
25653 used by \SpecialChar LaTeX
25655 That means, if you use the default placement, \SpecialChar LaTeX
25659 \begin_inset space ~
25663 \begin_inset space ~
25671 \begin_inset space ~
25675 \begin_inset space ~
25680 , and then the others.
25681 If you do not use the default, \SpecialChar LaTeX
25682 will try only the checked options but in
25685 \begin_inset space ~
25688 placements is possible the procedure is internally repeated trying to put
25689 the float on the following page.
25692 \begin_layout Standard
25693 By default, each option has its own rules:
25696 \begin_layout Labeling
25697 \labelwidthstring 00.00.0000
25701 \begin_inset space ~
25705 \begin_inset space ~
25710 only floats occupying less than 70
25711 \begin_inset space \thinspace{}
25714 % of the page can be placed at the top of a page (
25723 \begin_layout Labeling
25724 \labelwidthstring 00.00.0000
25728 \begin_inset space ~
25732 \begin_inset space ~
25737 : only floats occupying less than 30
25738 \begin_inset space \thinspace{}
25741 % of the page can be placed at the bottom of a page.
25751 \begin_layout Labeling
25752 \labelwidthstring 00.00.0000
25756 \begin_inset space ~
25760 \begin_inset space ~
25765 : only if more than 50
25766 \begin_inset space \thinspace{}
25769 % of the page is occupied by floats, several floats can be set together
25780 \begin_layout Standard
25781 If you don't like these rules, you can ignore them by using the additional
25785 \begin_inset space ~
25790 \begin_inset space ~
25796 \begin_inset Newline newline
25799 You can also redefine the rules with \SpecialChar LaTeX
25800 -commands that are given in parentheses
25801 after the rules description above.
25802 To increase for example the often too small default of the bottom-rule
25804 \begin_inset space \thinspace{}
25807 % of the page, add this line to your document preamble:
25810 \begin_layout Standard
25817 bottomfraction}{0.5}
25820 \begin_layout Standard
25821 Sometimes you might need, under all circumstances, a float to be placed
25822 exactly at the position where it is inserted.
25823 For this case you can use the option
25826 \begin_inset space ~
25832 Use this option very rarely and only if the document is almost ready to
25833 be printed, because the float is then no longer able to
25834 \begin_inset Quotes eld
25838 \begin_inset Quotes erd
25841 when you change your document and this will often destroy the page layout.
25844 \begin_layout Standard
25845 There are no placement options for text wrap floats, because they are always
25846 surrounded by the text of a certain paragraph.
25847 \begin_inset VSpace bigskip
25853 \begin_layout Standard
25854 Sometimes you have the problem that a float is placed at the top of a page
25855 while its corresponding section starts at the middle of the page, so that
25856 the reader could think the float is part of the previous section.
25857 To avoid this the \SpecialChar LaTeX
25865 It suppresses a given float placement for the page where it is inserted
25866 and can therefore be used to avoid floats being set before a section starts.
25867 To get this, add these commands to your document preamble:
25870 \begin_layout Standard
25880 \begin_inset Newline newline
25894 \begin_layout Standard
25895 You can define the same for all section headings, like chapters and subsections.
25896 This definition is not recommended to be used for small text parts like
25897 subsubsections because \SpecialChar LaTeX
25898 may then have problems finding a suitable placement.
25901 \begin_layout Standard
25902 \begin_inset VSpace bigskip
25905 In some cases it is required to have all figures/tables at the end of the
25907 For this purpose the \SpecialChar LaTeX
25913 \begin_inset Index idx
25916 \begin_layout Plain Layout
25918 -packages ! endfloat
25924 It puts all figure and table floats at the end of the document into their
25926 At the original float position a text hint like
25927 \begin_inset Quotes eld
25933 \begin_inset space ~
25939 \begin_inset Quotes erd
25943 The endfloat-package is loaded in the preamble with the line
25946 \begin_layout Standard
25951 usepackage[options]{endfloat}
25954 \begin_layout Standard
25955 There are various package options to format the created figure/table sections.
25956 For more information we refer you to the
25961 \begin_inset CommandInset citation
25968 \begin_inset Newline newline
25972 \begin_inset Note Greyedout
25975 \begin_layout Plain Layout
25980 doesn't provide an automatic translation for the text hint, you have to
25981 do this manually, see section
25982 \begin_inset space ~
25986 \begin_inset CommandInset citation
25998 \begin_inset Newline newline
26002 \begin_inset Note Greyedout
26005 \begin_layout Plain Layout
26010 There is currently a bug in
26014 when the caption contains a German
26015 \begin_inset Quotes eld
26019 \begin_inset Quotes erd
26023 Use in this case the command
26024 \begin_inset Quotes eld
26034 \begin_inset Quotes erd
26037 in \SpecialChar TeX
26039 \begin_inset Quotes eld
26043 \begin_inset Quotes erd
26054 \begin_layout Standard
26055 \begin_inset VSpace bigskip
26058 For more details about float placements, have a look at \SpecialChar LaTeX
26060 \begin_inset CommandInset citation
26062 key "latexcompanion,latexguide,latexbook"
26069 \begin_layout Section
26071 \begin_inset CommandInset label
26073 name "sec:Rotated-Floats"
26078 \begin_inset Index idx
26081 \begin_layout Plain Layout
26090 \begin_layout Standard
26091 Especially for wide tables you might have floats rotated.
26092 To rotate a whole float including the caption, right-click on the float-box
26096 \begin_inset space ~
26104 \begin_layout Standard
26105 Rotated floats are always placed on a page of their own (or column of their
26106 own; in case you have a multi-column document).
26107 You can let them span several columns using the float settings option
26110 \begin_inset space ~
26116 Floats are rotated so that you can read them from the outside margin.
26117 To force a certain rotation direction for all pages, you can add either
26126 to the document class options.
26129 \begin_layout Standard
26130 Referencing rotated floats is the same as for normal floats, the caption
26131 format is also the same: Table
26132 \begin_inset space ~
26136 \begin_inset CommandInset ref
26138 reference "tab:Rotated-table"
26142 is an example of a rotated table float.
26145 \begin_layout Standard
26146 \begin_inset Note Greyedout
26149 \begin_layout Plain Layout
26154 Not all DVI-viewers are able to display rotated floats.
26162 \begin_layout Standard
26163 \begin_inset Float table
26168 \begin_layout Plain Layout
26169 \begin_inset Caption Standard
26171 \begin_layout Plain Layout
26172 \begin_inset CommandInset label
26174 name "tab:Rotated-table"
26186 \begin_layout Plain Layout
26188 \begin_inset Tabular
26189 <lyxtabular version="3" rows="1" columns="5">
26190 <features tabularvalignment="middle">
26191 <column alignment="center" valignment="top">
26192 <column alignment="center" valignment="top">
26193 <column alignment="center" valignment="top">
26194 <column alignment="center" valignment="top">
26195 <column alignment="center" valignment="top">
26197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26200 \begin_layout Plain Layout
26206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26209 \begin_layout Plain Layout
26215 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26218 \begin_layout Plain Layout
26224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26227 \begin_layout Plain Layout
26233 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26236 \begin_layout Plain Layout
26255 \begin_layout Section
26257 \begin_inset Index idx
26260 \begin_layout Plain Layout
26269 \begin_layout Standard
26270 Subfloats are for example used when a figure consists of several images.
26271 They are created by inserting a float into an existing float.
26272 The placement of the subfloats can be controlled in the same way as for
26273 paragraphs as shown in table
26274 \begin_inset space ~
26278 \begin_inset CommandInset ref
26280 reference "tab:Two-subtables-side"
26285 \begin_inset CommandInset ref
26287 reference "tab:Two-subtables-upon"
26294 \begin_layout Standard
26295 Referencing subfloats works as for normal floats: Table
26296 \begin_inset space ~
26300 \begin_inset CommandInset ref
26302 reference "tab:This-is-subtable-a"
26307 \begin_inset CommandInset ref
26309 reference "tab:This-is-subtable-b"
26313 are subtables of table
26314 \begin_inset space ~
26318 \begin_inset CommandInset ref
26320 reference "tab:Two-subtables-side"
26327 \begin_layout Standard
26328 \begin_inset Float table
26333 \begin_layout Plain Layout
26334 \begin_inset Caption Standard
26336 \begin_layout Plain Layout
26337 \begin_inset CommandInset label
26339 name "tab:Two-subtables-side"
26343 Two subtables placed side by side.
26351 \begin_layout Plain Layout
26353 \begin_inset space \hfill{}
26357 \begin_inset Float table
26362 \begin_layout Plain Layout
26363 \begin_inset Caption Standard
26365 \begin_layout Plain Layout
26366 \begin_inset CommandInset label
26368 name "tab:This-is-subtable-a"
26372 This is subtable a.
26380 \begin_layout Plain Layout
26382 \begin_inset Tabular
26383 <lyxtabular version="3" rows="1" columns="5">
26384 <features tabularvalignment="middle">
26385 <column alignment="center" valignment="top">
26386 <column alignment="center" valignment="top">
26387 <column alignment="center" valignment="top">
26388 <column alignment="center" valignment="top">
26389 <column alignment="center" valignment="top">
26391 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26394 \begin_layout Plain Layout
26400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26403 \begin_layout Plain Layout
26409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26412 \begin_layout Plain Layout
26418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26421 \begin_layout Plain Layout
26427 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26430 \begin_layout Plain Layout
26447 \begin_inset space \hfill{}
26451 \begin_inset Float table
26456 \begin_layout Plain Layout
26457 \begin_inset Caption Standard
26459 \begin_layout Plain Layout
26460 \begin_inset CommandInset label
26462 name "tab:This-is-subtable-b"
26466 This is subtable b.
26474 \begin_layout Plain Layout
26476 \begin_inset Tabular
26477 <lyxtabular version="3" rows="1" columns="5">
26478 <features tabularvalignment="middle">
26479 <column alignment="center" valignment="top">
26480 <column alignment="center" valignment="top">
26481 <column alignment="center" valignment="top">
26482 <column alignment="center" valignment="top">
26483 <column alignment="center" valignment="top">
26485 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26488 \begin_layout Plain Layout
26494 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26497 \begin_layout Plain Layout
26503 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26506 \begin_layout Plain Layout
26512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26515 \begin_layout Plain Layout
26521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26524 \begin_layout Plain Layout
26541 \begin_inset space \hfill{}
26552 \begin_layout Standard
26553 \begin_inset Float table
26558 \begin_layout Plain Layout
26559 \begin_inset Caption Standard
26561 \begin_layout Plain Layout
26562 \begin_inset CommandInset label
26564 name "tab:Two-subtables-upon"
26568 Two subtables placed one above the other.
26569 (a) table with 4 cells, (b) table with 5 cells.
26577 \begin_layout Plain Layout
26579 \begin_inset Float table
26584 \begin_layout Plain Layout
26585 \begin_inset Caption Standard
26587 \begin_layout Plain Layout
26596 \begin_layout Plain Layout
26598 \begin_inset Tabular
26599 <lyxtabular version="3" rows="1" columns="4">
26600 <features tabularvalignment="middle">
26601 <column alignment="center" valignment="top">
26602 <column alignment="center" valignment="top">
26603 <column alignment="center" valignment="top">
26604 <column alignment="center" valignment="top">
26606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26609 \begin_layout Plain Layout
26615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26618 \begin_layout Plain Layout
26624 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26627 \begin_layout Plain Layout
26633 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26636 \begin_layout Plain Layout
26655 \begin_layout Plain Layout
26657 \begin_inset Float table
26662 \begin_layout Plain Layout
26663 \begin_inset Caption Standard
26665 \begin_layout Plain Layout
26674 \begin_layout Plain Layout
26676 \begin_inset Tabular
26677 <lyxtabular version="3" rows="1" columns="5">
26678 <features tabularvalignment="middle">
26679 <column alignment="center" valignment="top">
26680 <column alignment="center" valignment="top">
26681 <column alignment="center" valignment="top">
26682 <column alignment="center" valignment="top">
26683 <column alignment="center" valignment="top">
26685 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26688 \begin_layout Plain Layout
26694 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26697 \begin_layout Plain Layout
26703 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26706 \begin_layout Plain Layout
26712 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26715 \begin_layout Plain Layout
26721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26724 \begin_layout Plain Layout
26748 \begin_layout Section
26749 Floats Side by Side
26750 \begin_inset Index idx
26753 \begin_layout Plain Layout
26754 Floats ! Side by side
26762 \begin_layout Standard
26763 To place floats side by side, as in Figures
26764 \begin_inset space ~
26768 \begin_inset CommandInset ref
26770 reference "fig:Float-left"
26775 \begin_inset CommandInset ref
26777 reference "fig:Float-right"
26786 In it two minipage boxes are inserted.
26790 \begin_layout Plain Layout
26791 Minipages are explained in section
26792 \begin_inset space ~
26796 \begin_inset CommandInset ref
26798 reference "sec:Minipages"
26807 The width is set to 45
26808 \begin_inset space \thinspace{}
26812 \begin_inset space \thinspace{}
26815 column% and the box alignment to
26820 The minipage boxes contain the image and the caption in the same way as
26821 they are in a float.
26822 The only difference is that the image unit
26825 \begin_inset space ~
26829 \begin_inset space ~
26834 is now calculated according to the width of the minipage boxes.
26837 \begin_layout Standard
26838 \begin_inset Float figure
26843 \begin_layout Plain Layout
26844 \begin_inset Box Frameless
26854 height_special "totalheight"
26859 backgroundcolor "none"
26862 \begin_layout Plain Layout
26864 \begin_inset Graphics
26865 filename clipart/mobius.eps
26868 scaleBeforeRotation
26875 \begin_layout Plain Layout
26876 \begin_inset Caption Standard
26878 \begin_layout Plain Layout
26879 \begin_inset CommandInset label
26881 name "fig:Float-left"
26885 Float on the left side.
26896 \begin_inset space \hfill{}
26900 \begin_inset Box Frameless
26910 height_special "totalheight"
26915 backgroundcolor "none"
26918 \begin_layout Plain Layout
26920 \begin_inset Graphics
26921 filename clipart/platypus.eps
26924 scaleBeforeRotation
26931 \begin_layout Plain Layout
26932 \begin_inset Caption Standard
26934 \begin_layout Plain Layout
26935 \begin_inset CommandInset label
26937 name "fig:Float-right"
26941 Float on the right side.
26954 \begin_layout Plain Layout
26963 \begin_layout Section
26965 \begin_inset Index idx
26968 \begin_layout Plain Layout
26969 Caption ! Formatting
26975 \begin_inset Index idx
26978 \begin_layout Plain Layout
26979 Floats ! Caption Formatting
26985 \begin_inset CommandInset label
26987 name "sec:Caption-Formatting"
26994 \begin_layout Standard
26999 environment is the default paragraph environment for
27004 On the \SpecialChar LyX
27005 screen captions appear as a label, e.
27006 \begin_inset space \thinspace{}
27010 \begin_inset space \space{}
27014 \begin_inset Quotes eld
27022 \begin_inset Quotes erd
27025 followed by the caption text.
27027 \begin_inset Quotes eld
27031 \begin_inset Quotes erd
27034 is the actual reference number.
27035 By default the label and the number are in the same font as the caption
27036 text and a colon follows the number to divide the label from the text.
27037 This caption format is suitable for many but not all documents.
27041 \begin_layout Standard
27042 To change the default caption format, load the \SpecialChar LaTeX
27048 \begin_inset Index idx
27051 \begin_layout Plain Layout
27053 -packages ! caption
27058 in the document preamble with this line:
27061 \begin_layout Standard
27066 usepackage[format definition]{caption}
27069 \begin_layout Standard
27070 To have for example the label and the number in sans-serif, bold font and
27071 the table captions always above the table as in this document, use the
27075 \begin_layout Standard
27080 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27083 \begin_layout Standard
27084 You can also define different caption formats for the different float types.
27085 In this case load the
27089 package without format specific options and define the different formats
27090 with the help of the command
27093 \begin_layout Standard
27098 captionsetup[float type]{format definition}
27101 \begin_layout Standard
27102 in the document preamble.
27103 For example the caption formats of Figure
27104 \begin_inset space ~
27108 \begin_inset CommandInset ref
27110 reference "fig:This-is-an-fig"
27115 \begin_inset space ~
27119 \begin_inset CommandInset ref
27121 reference "tab:This-is-an-tab"
27125 can be created using these commands in the document preamble:
27128 \begin_layout Standard
27133 usepackage[tableposition=top]{caption}
27136 \begin_inset Newline newline
27143 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27144 \begin_inset Newline newline
27148 \begin_inset Phantom HPhantom
27151 \begin_layout Plain Layout
27156 captionsetup[figure]{
27162 \begin_inset Newline newline
27167 captionsetup[table]{labelfont={bf,sf}}
27170 \begin_layout Standard
27171 \begin_inset Note Greyedout
27174 \begin_layout Plain Layout
27183 has no effect when a
27188 \begin_inset Index idx
27191 \begin_layout Plain Layout
27193 -packages ! KOMA-Script
27198 document class is used.
27199 In this case the document class option
27201 captions=tableheading
27211 \begin_layout Standard
27212 For more information about the package
27216 we refer to its documentation
27217 \begin_inset CommandInset citation
27226 \begin_layout Standard
27227 To change the label name from e.
27228 \begin_inset space \thinspace{}
27232 \begin_inset space \space{}
27236 \begin_inset Quotes eld
27240 \begin_inset Quotes erd
27244 \begin_inset Quotes eld
27248 \begin_inset Quotes erd
27251 use this preamble command:
27254 \begin_layout Standard
27261 fnum@figure}{Image~
27266 \begin_layout Standard
27273 inserts the figure number and
27276 \begin_inset Quotes eld
27282 \begin_inset Quotes erd
27285 creates a protected space.
27288 \begin_layout Standard
27289 \begin_inset VSpace bigskip
27297 \begin_inset Index idx
27300 \begin_layout Plain Layout
27302 -packages ! KOMA-Script
27309 article (KOMA-Script)
27317 letter (KOMA-Script)
27321 report (KOMA-Script)
27324 \begin_inset space \thinspace{}
27327 ), you can alternatively to the
27335 's built-in command
27342 For example, to have the caption label in bold, add this command to your
27346 \begin_layout Standard
27351 setkomafont{captionlabel}{
27356 \begin_layout Standard
27357 For more information about
27368 \begin_inset CommandInset citation
27377 \begin_layout Standard
27381 \begin_layout Plain Layout
27385 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27392 \begin_inset Note Note
27395 \begin_layout Plain Layout
27396 The caption format is changed only for this example.
27404 \begin_layout Standard
27405 \begin_inset Float figure
27411 \begin_layout Plain Layout
27413 \begin_inset Graphics
27414 filename clipart/mobius.eps
27417 scaleBeforeRotation
27424 \begin_layout Plain Layout
27425 \begin_inset Caption Standard
27427 \begin_layout Plain Layout
27428 \begin_inset CommandInset label
27430 name "fig:This-is-an-fig"
27434 This is an example figure caption that is longer than one line to show the
27435 different caption format.
27436 Here a self-defined caption format is used.
27449 \begin_layout Standard
27453 \begin_layout Plain Layout
27457 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27466 \begin_layout Standard
27467 \begin_inset Float table
27473 \begin_layout Plain Layout
27474 \begin_inset Caption Standard
27476 \begin_layout Plain Layout
27477 \begin_inset CommandInset label
27479 name "tab:This-is-an-tab"
27483 This is an example table caption that is longer than one line to show the
27484 different caption format.
27485 Here the standard caption format for tables in this document is used.
27493 \begin_layout Plain Layout
27495 \begin_inset Tabular
27496 <lyxtabular version="3" rows="1" columns="5">
27497 <features tabularvalignment="middle">
27498 <column alignment="center" valignment="top">
27499 <column alignment="center" valignment="top">
27500 <column alignment="center" valignment="top">
27501 <column alignment="center" valignment="top">
27502 <column alignment="center" valignment="top">
27504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27507 \begin_layout Plain Layout
27513 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27516 \begin_layout Plain Layout
27522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27525 \begin_layout Plain Layout
27531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27534 \begin_layout Plain Layout
27540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27543 \begin_layout Plain Layout
27562 \begin_layout Section
27564 \begin_inset Index idx
27567 \begin_layout Plain Layout
27568 Caption ! Placement
27574 \begin_inset Index idx
27577 \begin_layout Plain Layout
27578 Floats ! Caption Placement
27584 \begin_inset CommandInset label
27586 name "sec:Caption-Placement"
27593 \begin_layout Standard
27594 The common caption placement rule is:
27597 \begin_layout Description
27598 Figure: Caption is set below the figure
27601 \begin_layout Description
27602 Table: Caption is set above the table
27605 \begin_layout Standard
27606 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27609 That means if you are using the document classes
27625 there will be no space between the caption and the table.
27626 To insert the necessary space, load the \SpecialChar LaTeX
27632 \begin_inset Index idx
27635 \begin_layout Plain Layout
27637 -packages ! caption
27642 in your document preamble with the option
27646 \begin_layout Plain Layout
27648 \begin_inset space ~
27652 \begin_inset CommandInset ref
27654 reference "sec:Caption-Formatting"
27658 for more information of the package
27670 \begin_layout Standard
27676 \begin_layout Standard
27682 \begin_inset Index idx
27685 \begin_layout Plain Layout
27687 -packages ! KOMA-Script
27694 article (KOMA-Script)
27702 letter (KOMA-Script)
27706 report (KOMA-Script)
27709 \begin_inset space \thinspace{}
27712 ), you can alternatively to the
27716 package set the document class option
27720 \begin_layout Plain Layout
27721 That option is used in this document.
27729 \begin_layout Standard
27732 captions=tableheading
27735 \begin_layout Standard
27736 In documents with a KOMA-Script document class you can also right-click
27737 on a caption and mark in the context menu if this should be a caption above
27738 or below the table/figure.
27739 This way you can override the document-wide caption placement for certain
27742 \begin_inset space ~
27746 \begin_inset CommandInset ref
27748 reference "tab:A-caption-marked"
27752 is an example where the caption is marked a being below the table while
27754 For comparison the caption in Table
27755 \begin_inset space ~
27759 \begin_inset CommandInset ref
27761 reference "tab:A-standard-table"
27768 \begin_layout Standard
27769 \begin_inset Float table
27774 \begin_layout Plain Layout
27775 \begin_inset Caption Below
27777 \begin_layout Plain Layout
27778 \begin_inset CommandInset label
27780 name "tab:A-caption-marked"
27784 A caption marked as being below the table.
27792 \begin_layout Plain Layout
27794 \begin_inset Tabular
27795 <lyxtabular version="3" rows="3" columns="3">
27796 <features tabularvalignment="middle">
27797 <column alignment="center" valignment="top" width="0pt">
27798 <column alignment="center" valignment="top" width="0pt">
27799 <column alignment="center" valignment="top" width="0pt">
27801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27804 \begin_layout Plain Layout
27810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27813 \begin_layout Plain Layout
27819 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27822 \begin_layout Plain Layout
27830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27833 \begin_layout Plain Layout
27839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27842 \begin_layout Plain Layout
27848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27851 \begin_layout Plain Layout
27859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27862 \begin_layout Plain Layout
27863 \begin_inset Formula $\int x^{2}dx$
27871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27874 \begin_layout Plain Layout
27875 \begin_inset Formula $\left[\begin{array}{cc}
27878 \end{array}\right]$
27886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27889 \begin_layout Plain Layout
27890 \begin_inset Formula $1+1=2$
27911 \begin_layout Standard
27912 \begin_inset Float table
27917 \begin_layout Plain Layout
27918 \begin_inset Caption Standard
27920 \begin_layout Plain Layout
27921 \begin_inset CommandInset label
27923 name "tab:A-standard-table"
27927 A standard table caption.
27935 \begin_layout Plain Layout
27937 \begin_inset Tabular
27938 <lyxtabular version="3" rows="3" columns="3">
27939 <features tabularvalignment="middle">
27940 <column alignment="center" valignment="top" width="0pt">
27941 <column alignment="center" valignment="top" width="0pt">
27942 <column alignment="center" valignment="top" width="0pt">
27944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27947 \begin_layout Plain Layout
27953 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27956 \begin_layout Plain Layout
27962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27965 \begin_layout Plain Layout
27973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27976 \begin_layout Plain Layout
27982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27985 \begin_layout Plain Layout
27991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27994 \begin_layout Plain Layout
28002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28005 \begin_layout Plain Layout
28006 \begin_inset Formula $\int x^{2}dx$
28014 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28017 \begin_layout Plain Layout
28018 \begin_inset Formula $\left[\begin{array}{cc}
28021 \end{array}\right]$
28029 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28032 \begin_layout Plain Layout
28033 \begin_inset Formula $1+1=2$
28054 \begin_layout Standard
28055 \begin_inset VSpace bigskip
28058 It is also possible to set the caption beside a figure or table.
28059 To get this the \SpecialChar LaTeX
28065 \begin_inset Index idx
28068 \begin_layout Plain Layout
28070 -packages ! sidecap
28075 has to be loaded in the document preamble with the line
28078 \begin_layout Standard
28083 usepackage[option]{sidecap}
28086 \begin_layout Standard
28087 If you set no option, the caption is placed on the side of the outer page
28088 margin – to the right on odd pages, to the left on even pages.
28089 You can change the placement to inner margin with the option
28094 To force the placement always to the right or left, use the option
28105 \begin_layout Standard
28109 \begin_layout Plain Layout
28119 \begin_inset Note Note
28122 \begin_layout Plain Layout
28123 The following section will only be displayed when the \SpecialChar LaTeX
28136 \begin_layout Standard
28137 To place in \SpecialChar LyX
28138 the caption of a float on the side, it is necessary to add
28139 these commands to the document preamble:
28142 \begin_layout Standard
28144 \begin_inset CommandInset line
28155 \begin_layout Standard
28162 TabBesBeg}[1][1.0]{%
28163 \begin_inset Newline newline
28167 \begin_inset Phantom HPhantom
28170 \begin_layout Plain Layout
28171 \begin_inset space ~
28186 \begin_inset Newline newline
28190 \begin_inset Phantom HPhantom
28193 \begin_layout Plain Layout
28196 \begin_inset space ~
28211 \begin_inset Newline newline
28215 \begin_inset Phantom HPhantom
28218 \begin_layout Plain Layout
28221 \begin_inset space ~
28231 renewenvironment{table}[1]{
28233 begin{SCtable}[#1]##1}{
28238 \begin_layout Standard
28246 \begin_inset Newline newline
28250 \begin_inset Phantom HPhantom
28253 \begin_layout Plain Layout
28254 \begin_inset space ~
28269 \begin_inset Newline newline
28273 \begin_inset Phantom HPhantom
28276 \begin_layout Plain Layout
28277 \begin_inset space ~
28294 \begin_layout Standard
28301 FigBesBeg}[1][1.0]{%
28302 \begin_inset Newline newline
28306 \begin_inset Phantom HPhantom
28309 \begin_layout Plain Layout
28310 \begin_inset space ~
28325 \begin_inset Newline newline
28329 \begin_inset Phantom HPhantom
28332 \begin_layout Plain Layout
28333 \begin_inset space ~
28348 \begin_inset Newline newline
28352 \begin_inset Phantom HPhantom
28355 \begin_layout Plain Layout
28356 \begin_inset space ~
28366 renewenvironment{figure}[1]{
28368 begin{SCfigure}[#1]##1}{
28373 \begin_layout Standard
28381 \begin_inset Newline newline
28385 \begin_inset Phantom HPhantom
28388 \begin_layout Plain Layout
28389 \begin_inset space ~
28404 \begin_inset Newline newline
28408 \begin_inset Phantom HPhantom
28411 \begin_layout Plain Layout
28412 \begin_inset space ~
28429 \begin_layout Standard
28431 \begin_inset CommandInset line
28442 \begin_layout Standard
28443 The commands allow you to redefine the floats so that the caption is set
28445 For figure floats use the command
28448 \begin_layout Standard
28456 \begin_layout Standard
28457 in \SpecialChar TeX
28458 -Code before the float.
28459 And insert the command
28462 \begin_layout Standard
28470 \begin_layout Standard
28471 in \SpecialChar TeX
28472 -Code at the point where you want to get back to the original float definitio
28476 \begin_layout Standard
28477 For table floats use the corresponding commands
28480 \begin_layout Standard
28494 \begin_layout Standard
28496 \begin_inset space ~
28500 \begin_inset CommandInset ref
28502 reference "fig:cap-beside-fig"
28507 \begin_inset space ~
28511 \begin_inset CommandInset ref
28513 reference "tab:cap-beside-tab"
28517 are examples where the caption is set beside.
28520 \begin_layout Standard
28521 You can see in the examples that the caption text appears at the top of
28522 the floats for table floats and at the bottom for figure floats.
28523 To change this, you can use the command
28526 \begin_layout Standard
28531 sidecaptionvpos{float type}{placement}
28534 \begin_layout Standard
28535 in the document preamble or in \SpecialChar TeX
28536 -Code before the float.
28537 The float type is either
28545 , the placement can be
28546 \begin_inset Quotes eld
28554 \begin_inset Quotes erd
28558 \begin_inset Quotes eld
28566 \begin_inset Quotes erd
28570 \begin_inset Quotes eld
28578 \begin_inset Quotes erd
28582 To have for example the caption of figure floats vertically centered, use
28586 \begin_layout Standard
28591 sidecaptionvpos{figure}{c}
28594 \begin_layout Standard
28595 This was used for Figure
28596 \begin_inset space ~
28600 \begin_inset CommandInset ref
28602 reference "fig:cap-beside-fig-2"
28609 \begin_layout Standard
28610 \begin_inset VSpace medskip
28616 \begin_layout Standard
28617 The default caption width is the width of the image/table.
28618 For thin image/tables, like in Table
28619 \begin_inset space ~
28623 \begin_inset CommandInset ref
28625 reference "tab:cap-beside-tab"
28629 , this leads to captions that are too thin.
28630 You can increase the width by specifying a factor that will be multiplied
28631 with the image/table width to get the caption width.
28632 The caption width will automatically be recalculated in case it would protrude
28633 over the page or column margin due to the specified width.
28638 can either be given as optional argument for
28647 \begin_layout Standard
28655 \begin_layout Standard
28656 or in the definition of
28666 with another value.
28667 If you do the latter, your factor will be the default if
28673 is used without an argument.
28675 \begin_inset space ~
28679 \begin_inset CommandInset ref
28681 reference "tab:cap-beside-tab-wider"
28685 the factor 5 was used.
28688 \begin_layout Standard
28689 \begin_inset Note Greyedout
28692 \begin_layout Plain Layout
28697 For floats with captions set beside, you cannot use the float placement
28701 \begin_inset space ~
28706 because it is not supported by
28718 \begin_layout Standard
28719 \begin_inset VSpace medskip
28722 For more information about the package
28726 we refer to its documentation
28727 \begin_inset CommandInset citation
28736 \begin_layout Standard
28737 \begin_inset Note Greyedout
28740 \begin_layout Plain Layout
28745 The \SpecialChar LaTeX
28751 \begin_inset Index idx
28754 \begin_layout Plain Layout
28761 , described in section
28762 \begin_inset space ~
28766 \begin_inset CommandInset ref
28768 reference "subsec:Reference-Position"
28772 , has no effect on floats with the caption set beside.
28780 \begin_layout Standard
28784 \begin_layout Plain Layout
28796 \begin_layout Standard
28797 \begin_inset Float figure
28802 \begin_layout Plain Layout
28803 \begin_inset Graphics
28804 filename clipart/escher-lsd.eps
28806 scaleBeforeRotation
28813 \begin_layout Plain Layout
28814 \begin_inset Caption Standard
28816 \begin_layout Plain Layout
28817 \begin_inset CommandInset label
28819 name "fig:cap-beside-fig"
28823 This is a caption beside a figure.
28836 \begin_layout Standard
28840 \begin_layout Plain Layout
28852 \begin_layout Standard
28856 \begin_layout Plain Layout
28868 \begin_layout Standard
28869 \begin_inset Float table
28874 \begin_layout Plain Layout
28875 \begin_inset Caption Standard
28877 \begin_layout Plain Layout
28878 \begin_inset CommandInset label
28880 name "tab:cap-beside-tab"
28884 This is a caption beside a table.
28892 \begin_layout Plain Layout
28893 \begin_inset Tabular
28894 <lyxtabular version="3" rows="4" columns="5">
28895 <features tabularvalignment="middle">
28896 <column alignment="center" valignment="top">
28897 <column alignment="center" valignment="top">
28898 <column alignment="center" valignment="top">
28899 <column alignment="center" valignment="top">
28900 <column alignment="center" valignment="top">
28902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28905 \begin_layout Plain Layout
28911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28914 \begin_layout Plain Layout
28920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28923 \begin_layout Plain Layout
28929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28932 \begin_layout Plain Layout
28938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28941 \begin_layout Plain Layout
28949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28952 \begin_layout Plain Layout
28958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28961 \begin_layout Plain Layout
28967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28970 \begin_layout Plain Layout
28976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28979 \begin_layout Plain Layout
28985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28988 \begin_layout Plain Layout
28996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28999 \begin_layout Plain Layout
29005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29008 \begin_layout Plain Layout
29014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29017 \begin_layout Plain Layout
29023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29026 \begin_layout Plain Layout
29032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29035 \begin_layout Plain Layout
29043 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29046 \begin_layout Plain Layout
29052 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29055 \begin_layout Plain Layout
29061 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29064 \begin_layout Plain Layout
29070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29073 \begin_layout Plain Layout
29079 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29082 \begin_layout Plain Layout
29101 \begin_layout Standard
29105 \begin_layout Plain Layout
29117 \begin_layout Standard
29121 \begin_layout Plain Layout
29134 \begin_layout Plain Layout
29138 sidecaptionvpos{figure}{c}
29144 \begin_inset Float figure
29149 \begin_layout Plain Layout
29150 \begin_inset Graphics
29151 filename clipart/escher-lsd.eps
29153 scaleBeforeRotation
29160 \begin_layout Plain Layout
29161 \begin_inset Caption Standard
29163 \begin_layout Plain Layout
29164 \begin_inset CommandInset label
29166 name "fig:cap-beside-fig-2"
29170 This is a vertically centered caption beside a figure.
29183 \begin_layout Standard
29187 \begin_layout Plain Layout
29199 \begin_layout Standard
29203 \begin_layout Plain Layout
29215 \begin_layout Standard
29216 \begin_inset Float table
29221 \begin_layout Plain Layout
29222 \begin_inset Caption Standard
29224 \begin_layout Plain Layout
29225 \begin_inset CommandInset label
29227 name "tab:cap-beside-tab-wider"
29231 This caption is wider than the one in Table
29232 \begin_inset space ~
29236 \begin_inset CommandInset ref
29238 reference "tab:cap-beside-tab"
29250 \begin_layout Plain Layout
29251 \begin_inset Tabular
29252 <lyxtabular version="3" rows="4" columns="5">
29253 <features tabularvalignment="middle">
29254 <column alignment="center" valignment="top">
29255 <column alignment="center" valignment="top">
29256 <column alignment="center" valignment="top">
29257 <column alignment="center" valignment="top">
29258 <column alignment="center" valignment="top">
29260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29263 \begin_layout Plain Layout
29269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29272 \begin_layout Plain Layout
29278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29281 \begin_layout Plain Layout
29287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29290 \begin_layout Plain Layout
29296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29299 \begin_layout Plain Layout
29307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29310 \begin_layout Plain Layout
29316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29319 \begin_layout Plain Layout
29325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29328 \begin_layout Plain Layout
29334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29337 \begin_layout Plain Layout
29343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29346 \begin_layout Plain Layout
29354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29357 \begin_layout Plain Layout
29363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29366 \begin_layout Plain Layout
29372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29375 \begin_layout Plain Layout
29381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29384 \begin_layout Plain Layout
29390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29393 \begin_layout Plain Layout
29401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29404 \begin_layout Plain Layout
29410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29413 \begin_layout Plain Layout
29419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29422 \begin_layout Plain Layout
29428 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29431 \begin_layout Plain Layout
29437 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29440 \begin_layout Plain Layout
29459 \begin_layout Standard
29463 \begin_layout Plain Layout
29475 \begin_layout Standard
29479 \begin_layout Plain Layout
29489 \begin_inset Note Note
29492 \begin_layout Plain Layout
29493 The following will be displayed when the \SpecialChar LaTeX
29506 \begin_layout Standard
29507 You need to install the \SpecialChar LaTeX
29512 to see the following part of this section in the output.
29515 \begin_layout Standard
29519 \begin_layout Plain Layout
29531 \begin_layout Section
29533 \begin_inset Index idx
29536 \begin_layout Plain Layout
29537 Floats ! Float Lists
29545 \begin_layout Standard
29546 Similar to the table of contents where the sections of the document are
29547 listed, there are listings for all float types, like the figures of the
29549 You can insert them via the
29551 Insert\SpecialChar menuseparator
29553 \begin_inset space ~
29557 \begin_inset space ~
29565 \begin_layout Standard
29566 The list entries are the float captions or its short title, the float number,
29567 and the page number where they appear in the document.
29570 \begin_layout Standard
29571 You can find the list of figures and tables at the end of this document.
29574 \begin_layout Chapter
29578 \begin_layout Section
29581 \begin_inset Index idx
29584 \begin_layout Plain Layout
29585 Notes ! \SpecialChar LyX
29594 \begin_layout Standard
29595 Notes are inserted with the toolbar button
29603 Insert\SpecialChar menuseparator
29607 There are three types of notes:
29610 \begin_layout Description
29613 \begin_inset space ~
29616 Note This note type is for internal notes that won't appear in the output.
29617 Its note-box looks like this:
29618 \begin_inset Newline newline
29622 \begin_inset Newline newline
29626 \begin_inset Graphics
29627 filename clipart/LyXNoteImageQt4.png
29630 scaleBeforeRotation
29635 \begin_inset Note Note
29638 \begin_layout Plain Layout
29639 This is text in a note box that doesn't appear in the output.
29647 \begin_layout Description
29648 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29650 when you export the document to \SpecialChar LaTeX
29653 File\SpecialChar menuseparator
29654 Export\SpecialChar menuseparator
29656 (pdflatex) / (plain)
29659 Its note-box looks like this:
29660 \begin_inset Newline newline
29664 \begin_inset Newline newline
29668 \begin_inset Graphics
29669 filename clipart/CommentNoteImageQt4.png
29672 scaleBeforeRotation
29677 \begin_inset Note Comment
29680 \begin_layout Plain Layout
29681 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29690 \begin_layout Description
29692 \begin_inset space ~
29695 Out This note will appear in the output as grey text.
29696 Its note-box looks like this:
29697 \begin_inset Newline newline
29701 \begin_inset Newline newline
29705 \begin_inset Graphics
29706 filename clipart/GreyedOutNoteImageQt4.png
29709 scaleBeforeRotation
29714 \begin_inset Newline newline
29721 \begin_layout Plain Layout
29725 renewenvironment{lyxgreyedout}
29728 \begin_layout Plain Layout
29732 textcolor[gray]{0.8}
29742 \begin_inset Note Greyedout
29745 \begin_layout Plain Layout
29750 \begin_layout Plain Layout
29751 This is an example footnote within a greyed out note.
29756 of a comment that appears in the output as grey text.
29765 \begin_layout Plain Layout
29769 renewenvironment{lyxgreyedout}
29772 \begin_layout Plain Layout
29786 \begin_inset Note Note
29789 \begin_layout Plain Layout
29790 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29792 because greyed out notes are redefined in the preamble of this document,
29793 as described below, to have blue text.
29799 \begin_inset Newline newline
29803 \begin_inset Newline newline
29806 As you can see in the example, the first line of greyed out notes is a bit
29807 indented and greyed out notes can have footnotes.
29810 \begin_layout Standard
29811 \begin_inset VSpace bigskip
29814 When you use the toolbar button
29824 \begin_inset space ~
29830 You can switch between the three note types by right-clicking on the note-box.
29835 If you want to turn existing text into a note, mark it and click on the
29849 To change a note to text, press the backspace key when the cursor is in
29850 the first position of a note, or press the delete key when the cursor is
29851 in the very last position of the note, respectively.
29854 \begin_layout Standard
29855 \begin_inset VSpace bigskip
29858 You can change the text color of the greyed out notes in the menu
29860 Document\SpecialChar menuseparator
29861 Settings\SpecialChar menuseparator
29867 \begin_layout Section
29869 \begin_inset CommandInset label
29871 name "sec:Footnotes"
29876 \begin_inset Index idx
29879 \begin_layout Plain Layout
29886 \begin_inset Index idx
29889 \begin_layout Plain Layout
29898 \begin_layout Standard
29899 Footnotes can be inserted using the toolbar button
29902 arg "footnote-insert"
29907 Insert\SpecialChar menuseparator
29911 You will then see the following footnote-box:
29912 \begin_inset Graphics
29913 filename clipart/footnoteQt4.png
29915 scaleBeforeRotation
29923 where you can enter the footnote text.
29924 If you want to turn existing text into a footnote, mark it and click on
29950 key when the cursor is in the first position of a
29962 key when the cursor is in the very last position of the
29973 \begin_layout Standard
29974 Here is an example footnote:
29982 \begin_layout Plain Layout
29983 \begin_inset CommandInset label
29985 name "foot:This-is-an"
29989 This is an example footnote.
30002 \begin_layout Plain Layout
30006 newcounter{MyRepeatFoot}
30009 \begin_layout Plain Layout
30013 setcounter{MyRepeatFoot}{
30023 \begin_layout Standard
30024 The footnote will appear in the output as a superscript number at the text
30025 position where the footnote box is placed.
30026 The footnote text is placed at the bottom of the current page.
30027 The footnote number is calculated by \SpecialChar LaTeX
30028 ; the numbers are consecutive.
30029 Whether the footnote number is reset for every chapter depends on your
30033 \begin_layout Standard
30034 Footnotes can be referenced like floats: Insert a label into the footnote
30035 and cross-reference this label in the text as described in section
30036 \begin_inset space ~
30040 \begin_inset CommandInset ref
30042 reference "sec:Referencing-Floats"
30047 \begin_inset Newline newline
30050 This is a cross-reference of Footnote
30051 \begin_inset space ~
30055 \begin_inset CommandInset ref
30057 reference "foot:This-is-an"
30064 \begin_layout Standard
30065 \begin_inset VSpace defskip
30068 Footnotes in title environments are usually not numbered with symbols and
30069 they cannot contain several paragraphs.
30070 See for example the footnote in the titling of this document.
30073 \begin_layout Standard
30074 \begin_inset VSpace defskip
30077 Footnotes in tables are not printed by \SpecialChar LaTeX
30078 due to technical reasons.
30079 However there exists another method to print them: Instead of the footnote
30086 is inserted as \SpecialChar TeX
30088 The text of the footnote is entered as an argument of the \SpecialChar TeX
30097 \begin_inset Newline newline
30100 This was done for the following table with the command
30103 \begin_layout Standard
30110 Printed table footnote.
30115 \begin_layout Standard
30116 \begin_inset Tabular
30117 <lyxtabular version="3" rows="2" columns="1">
30118 <features tabularvalignment="middle">
30119 <column alignment="center" valignment="top">
30121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30124 \begin_layout Plain Layout
30125 This an example text.
30129 \begin_layout Plain Layout
30130 This footnote will not be printed!
30142 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30145 \begin_layout Plain Layout
30146 This an example text.
30150 \begin_layout Plain Layout
30173 \begin_layout Plain Layout
30182 Printed table footnote.
30186 \begin_layout Plain Layout
30196 \begin_layout Standard
30197 Footnotes in longtables are described in section
30198 \begin_inset space ~
30202 \begin_inset CommandInset ref
30204 reference "subsec:Footnotes-in-Longtables"
30211 \begin_layout Standard
30212 Footnotes in minipage boxes are printed, but inside the box and with a different
30213 numbering because a minipage box is like a page inside a page.
30214 (For more about minipages, see section
30215 \begin_inset space ~
30219 \begin_inset CommandInset ref
30221 reference "sec:Minipages"
30225 .) To get a footnote in the minipage that is output at the bottom of the
30226 page like normal footnotes, also use the method of
30241 \begin_layout Standard
30242 \begin_inset Box Frameless
30252 height_special "totalheight"
30257 backgroundcolor "none"
30260 \begin_layout Plain Layout
30261 This an example text in a minipage.
30265 \begin_layout Plain Layout
30266 Footnote in the minipage.
30274 \begin_layout Plain Layout
30275 This an example text in a minipage.
30279 \begin_layout Plain Layout
30296 \begin_layout Standard
30300 \begin_layout Plain Layout
30309 Footnote outside the minipage.
30313 \begin_layout Plain Layout
30323 \begin_layout Standard
30324 \begin_inset VSpace defskip
30330 \begin_layout Standard
30331 To refer to the same footnote several times without printing the footnote
30332 text every time, use the command
30336 footnotemark[number]
30338 in \SpecialChar TeX
30340 \begin_inset Newline newline
30343 As you do not know the number of the repeating footnote while you are writing
30344 the text, you have to store its number.
30345 For the following footnote mark example, these commands were inserted in
30347 -code after Footnote
30348 \begin_inset space ~
30352 \begin_inset CommandInset ref
30354 reference "foot:This-is-an"
30358 to store the footnote number:
30361 \begin_layout Standard
30366 newcounter{MyRepeatFoot}
30367 \begin_inset Newline newline
30372 setcounter{MyRepeatFoot}{
30377 \begin_layout Standard
30378 The footnote mark was then created with this command:
30381 \begin_layout Standard
30391 \begin_layout Standard
30392 Here is a repeated footnote:
30400 \begin_layout Plain Layout
30414 \begin_layout Standard
30415 If you want to repeat the previous footnote, you can omit the storage of
30416 the footnote number and just use this command instead:
30419 \begin_layout Standard
30429 \begin_layout Standard
30430 Here is another repeated footnote:
30438 \begin_layout Plain Layout
30452 \begin_layout Subsection
30454 \begin_inset CommandInset label
30456 name "subsec:Footnote-Numbering"
30461 \begin_inset Index idx
30464 \begin_layout Plain Layout
30465 Footnotes ! Numbering
30473 \begin_layout Standard
30474 To reset the footnote number back to 1 after each section
30476 , add this command to your document preamble:
30479 \begin_layout Standard
30484 @addtoreset{footnote}{section}
30487 \begin_layout Standard
30488 \begin_inset VSpace bigskip
30491 The following preamble command changes the footnote numbering style to small
30495 \begin_layout Standard
30507 \begin_layout Standard
30511 \begin_layout Plain Layout
30524 This is a footnote with roman numbering:
30528 \begin_layout Plain Layout
30529 This is an example footnote with roman numbering.
30537 \begin_layout Standard
30538 To change the numbering style to capital roman numerals replace in the command
30553 \begin_inset Quotes eld
30557 \begin_inset Quotes erd
30560 footnotes with capital or small Latin letters use
30574 \begin_inset Quotes eld
30578 \begin_inset Quotes erd
30581 footnotes with symbols use
30590 \begin_layout Standard
30591 \begin_inset Note Greyedout
30594 \begin_layout Plain Layout
30599 You can only number 26 footnotes with Latin letters, because this numbering
30600 is limited to single letters.
30606 \begin_inset Newline newline
30610 \begin_inset Note Greyedout
30613 \begin_layout Plain Layout
30618 You can only number 9 footnotes with symbols.
30626 \begin_layout Standard
30627 To return to the default numbering style after you have changed to another
30640 in the command above.
30644 \begin_layout Plain Layout
30660 \begin_layout Standard
30661 \begin_inset VSpace bigskip
30667 \begin_layout Standard
30668 If you want to have footnotes numbered in the scheme
30669 \begin_inset Quotes eld
30673 \begin_inset Quotes erd
30676 , add the following command to your document preamble:
30679 \begin_layout Standard
30684 numberwithin{footnote}{chapter}
30687 \begin_layout Standard
30688 To be able to use the command
30697 \begin_inset space ~
30702 in the document settings the option
30705 \begin_inset space ~
30709 \begin_inset space ~
30713 \begin_inset space ~
30721 \begin_layout Standard
30725 \begin_layout Plain Layout
30729 numberwithin{footnote}{chapter}
30734 This is another example footnote:
30740 \begin_layout Plain Layout
30741 This is a footnote numbered in the scheme
30742 \begin_inset Quotes eld
30746 \begin_inset Quotes erd
30760 \begin_layout Plain Layout
30776 \begin_layout Standard
30777 \begin_inset Note Greyedout
30780 \begin_layout Plain Layout
30791 always prints out the footnote number as arabic number; previous redefinitions
30792 to get non-arabic numbers are overwritten.
30800 \begin_layout Standard
30801 So to get for example the scheme
30802 \begin_inset Quotes eld
30808 \begin_inset Quotes erd
30811 , use this command instead of
30820 \begin_layout Standard
30834 \begin_layout Subsection
30836 \begin_inset Index idx
30839 \begin_layout Plain Layout
30840 Footnotes ! Placement
30848 \begin_layout Standard
30849 If you have several footnotes in one page, they appear without vertical
30850 space between them at the bottom of the page.
30851 To make them more readable you can e.
30852 \begin_inset space \thinspace{}
30856 \begin_inset space \space{}
30860 \begin_inset space \thinspace{}
30863 mm space with the following preamble command:
30866 \begin_layout Standard
30876 \begin_inset Newline newline
30890 \begin_layout Standard
30891 \begin_inset VSpace bigskip
30894 In a two-column document the footnotes appear at the bottom of every column,
30896 \begin_inset space ~
30900 \begin_inset CommandInset ref
30902 reference "fig:Standard-footnote-placement"
30907 If the footnotes should only appear at the bottom of the right column,
30909 \begin_inset space ~
30913 \begin_inset CommandInset ref
30915 reference "fig:Footnote-placement-in"
30919 , use the \SpecialChar LaTeX
30925 \begin_inset Index idx
30928 \begin_layout Plain Layout
30930 -packages ! ftnright
30935 with this command in the document preamble:
30938 \begin_layout Standard
30943 usepackage{ftnright}
30946 \begin_layout Standard
30947 \begin_inset Float figure
30953 \begin_layout Plain Layout
30957 \begin_layout Plain Layout
30967 \begin_inset Graphics
30968 filename clipart/without_fntright.pdf
30970 scaleBeforeRotation
30978 \begin_layout Plain Layout
30988 \begin_layout Plain Layout
30989 \begin_inset Caption Standard
30991 \begin_layout Plain Layout
30992 \begin_inset CommandInset label
30994 name "fig:Standard-footnote-placement"
30998 Standard footnote placement in two-column documents.
31011 \begin_layout Standard
31012 \begin_inset Float figure
31018 \begin_layout Plain Layout
31022 \begin_layout Plain Layout
31032 \begin_inset Graphics
31033 filename clipart/with_fntright.pdf
31035 scaleBeforeRotation
31043 \begin_layout Plain Layout
31053 \begin_layout Plain Layout
31054 \begin_inset Caption Standard
31056 \begin_layout Plain Layout
31057 \begin_inset CommandInset label
31059 name "fig:Footnote-placement-in"
31063 Footnote placement in two-column documents when the \SpecialChar LaTeX
31081 \begin_layout Standard
31082 \begin_inset VSpace bigskip
31085 In some scientific literature it is usual to collect the footnotes and print
31086 them in a separate paragraph at the end of a section, as in Figure
31087 \begin_inset space ~
31091 \begin_inset CommandInset ref
31093 reference "fig:Endnotes"
31098 They are then called
31099 \begin_inset Quotes eld
31103 \begin_inset Quotes erd
31107 \begin_inset Index idx
31110 \begin_layout Plain Layout
31116 To use endnotes instead of footnotes in your document, load in the menu
31119 Document\SpecialChar menuseparator
31120 Settings\SpecialChar menuseparator
31126 \begin_inset space ~
31130 \begin_inset space ~
31136 To insert the collected footnotes, insert the command
31139 \begin_layout Standard
31147 \begin_layout Standard
31148 in \SpecialChar TeX
31149 -Code at the end of a section or chapter.
31152 \begin_layout Standard
31153 \begin_inset Float figure
31158 \begin_layout Plain Layout
31163 \begin_layout Plain Layout
31173 \begin_inset Graphics
31174 filename clipart/endnotes.pdf
31175 scaleBeforeRotation
31183 \begin_layout Plain Layout
31193 \begin_layout Plain Layout
31194 \begin_inset Caption Standard
31196 \begin_layout Plain Layout
31197 \begin_inset CommandInset label
31199 name "fig:Endnotes"
31203 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31217 \begin_layout Standard
31218 \begin_inset VSpace medskip
31221 The paragraph heading for the endnotes isn't automatically translated into
31222 the document language, this must be done manually.
31223 The following preamble command translates the default English
31224 \begin_inset Quotes eld
31228 \begin_inset Quotes erd
31232 \begin_inset Quotes eld
31236 \begin_inset Quotes erd
31242 \begin_layout Standard
31249 notesname}{Anmerkungen}
31252 \begin_layout Standard
31253 \begin_inset VSpace medskip
31256 The numbering of endnotes can be changed like the footnote numbering as
31257 described in section
31258 \begin_inset space ~
31262 \begin_inset CommandInset ref
31264 reference "subsec:Footnote-Numbering"
31268 ; just replace the command
31281 To reset the endnote number use the command
31287 as described in section
31288 \begin_inset space ~
31292 \begin_inset CommandInset ref
31294 reference "subsec:Footnote-Numbering"
31298 and replace the command parameter
31309 \begin_layout Standard
31310 For endnotes there is the command
31314 endnotemark[number]
31316 similar to the command
31322 , that is described in section
31323 \begin_inset space ~
31327 \begin_inset CommandInset ref
31329 reference "sec:Footnotes"
31336 \begin_layout Standard
31337 \begin_inset VSpace bigskip
31340 Footnotes can also be placed in the page margin and the footnote text alignment
31341 can be changed, see the \SpecialChar LaTeX
31347 \begin_inset Index idx
31350 \begin_layout Plain Layout
31352 -packages ! footmisc
31358 \begin_inset CommandInset citation
31364 for more information about this.
31367 \begin_layout Standard
31368 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31370 \begin_inset CommandInset citation
31372 key "latexcompanion,latexguide,latexbook"
31382 \begin_inset Index idx
31385 \begin_layout Plain Layout
31387 -packages ! KOMA-Script
31392 document class, you can adjust all footnote settings using class-specific
31394 \begin_inset CommandInset citation
31403 \begin_layout Section
31405 \begin_inset Index idx
31408 \begin_layout Plain Layout
31409 Notes ! Margin Notes
31417 \begin_layout Standard
31418 Margin notes look and behave in \SpecialChar LyX
31420 They are inserted via the menu
31422 Insert\SpecialChar menuseparator
31424 \begin_inset space ~
31429 or the toolbar button
31432 arg "marginalnote-insert"
31446 \begin_inset Quotes eld
31450 \begin_inset Quotes erd
31453 appears where you can enter the text of the margin note.
31456 \begin_layout Standard
31457 At the side is an example margin note.
31462 \begin_inset Marginal
31465 \begin_layout Plain Layout
31466 This is a margin note.
31474 \begin_layout Standard
31475 Margin notes appear at the right side in single-sided documents.
31476 In double-sided documents they appear in the outer margin – left on even
31477 pages, right on odd pages.
31478 The text of margin notes is aligned opposite to the outer margin – right-aligne
31479 d when the note appears in the left margin.
31480 The first line of the margin note is placed at the position of the text
31481 line where it is inserted in the document.
31484 \begin_layout Standard
31485 \begin_inset VSpace bigskip
31488 To place the margin note in the inner margin, add the command
31491 \begin_layout Standard
31499 \begin_layout Standard
31500 in \SpecialChar TeX
31501 -Code before a margin note.
31502 The new placement is valid for all subsequent margin notes.
31507 \begin_layout Plain Layout
31517 \begin_inset Marginal
31520 \begin_layout Plain Layout
31521 This is a margin note in the inner margin.
31529 \begin_inset Newline newline
31535 \begin_inset Note Greyedout
31538 \begin_layout Plain Layout
31543 There is often not enough space in the inner margin so that the notes are
31544 not correctly displayed in the output.
31552 \begin_layout Standard
31553 To return to the default placement insert the command
31556 \begin_layout Standard
31564 \begin_layout Standard
31565 in \SpecialChar TeX
31570 \begin_layout Plain Layout
31580 \begin_inset Note Greyedout
31583 \begin_layout Plain Layout
31588 The command is ignored when it is within a paragraph where also the command
31603 \begin_layout Standard
31604 \begin_inset VSpace bigskip
31611 \begin_inset Marginal
31614 \begin_layout Plain Layout
31615 AVeryLongMarginParWord that isn't hyphenated.
31623 Similar to the case described in section
31624 \begin_inset space ~
31628 \begin_inset CommandInset ref
31630 reference "subsec:Multiple-Lines-in"
31634 , long words cannot be hyphenated when they are the first word in a margin
31636 To avoid this, insert 0
31637 \begin_inset space \thinspace{}
31640 pt horizontal space before the word
31645 \begin_inset Marginal
31648 \begin_layout Plain Layout
31649 \begin_inset space \hspace*{}
31653 AVeryLongMarginParWord that is hyphenated.
31661 \begin_layout Standard
31662 \begin_inset VSpace bigskip
31668 \begin_layout Standard
31669 \begin_inset Note Greyedout
31672 \begin_layout Plain Layout
31677 Margin notes can normally not be used inside tables, floats, and footnotes.
31685 \begin_layout Standard
31686 \begin_inset VSpace bigskip
31692 \begin_layout Standard
31696 \begin_layout Plain Layout
31706 \begin_inset Note Note
31709 \begin_layout Plain Layout
31710 The following section will only be displayed when the \SpecialChar LaTeX
31723 \begin_layout Standard
31724 This restriction can be evaded by using the \SpecialChar LaTeX
31730 \begin_inset Index idx
31733 \begin_layout Plain Layout
31735 -packages ! marginnote
31741 By adding these two lines to your document preamble, the command used by
31743 for margin notes is redefined to use the command provided by the
31750 \begin_layout Standard
31755 usepackage{marginnote}
31756 \begin_inset Newline newline
31768 \begin_layout Standard
31769 This is also used in this document because
31773 has another useful feature: You can set a vertical offset for the note.
31774 This is often needed when too many margin notes are too close together
31775 or for a better page layout.
31776 The offset is set in \SpecialChar LyX
31777 as \SpecialChar TeX
31778 -Code directly after the margin note in the scheme
31781 \begin_layout Standard
31787 \begin_layout Standard
31788 where the offset is a length with one of the units listed in Table
31789 \begin_inset space ~
31793 \begin_inset CommandInset ref
31795 reference "tab:Units"
31800 A negative value shifts the note up, a positive value shifts it down.
31804 For example the margin note beside this text line is shifted up 1.5
31805 \begin_inset space \thinspace{}
31808 cm with the \SpecialChar TeX
31810 \begin_inset Quotes eld
31820 \begin_inset Quotes erd
31824 \begin_inset Marginal
31827 \begin_layout Plain Layout
31828 This margin note is shifted up 1.5
31829 \begin_inset space \thinspace{}
31832 cm from its original position.
31844 \begin_layout Plain Layout
31854 \begin_layout Standard
31855 \begin_inset VSpace medskip
31862 you can also change the alignment of the text in the margin note.
31863 For example the commands
31866 \begin_layout Standard
31873 raggedleftmarginnote}{
31876 \begin_inset Newline newline
31883 raggedrightmarginnote}{
31888 \begin_layout Standard
31889 set the alignment to centered.
31894 raggedleftmarginnote
31896 denotes margin notes that appear at the left side.
31903 \begin_layout Plain Layout
31909 raggedleftmarginnote}{
31914 \begin_layout Plain Layout
31920 raggedrightmarginnote}{
31928 \begin_inset Marginal
31931 \begin_layout Plain Layout
31932 The text of this margin note is centered.
31943 \begin_layout Standard
31950 raggedleftmarginnote}{
31953 \begin_inset Newline newline
31960 raggedrightmarginnote}{
31969 \begin_layout Plain Layout
31975 raggedleftmarginnote}{
31980 \begin_layout Plain Layout
31986 raggedrightmarginnote}{
31996 \begin_layout Standard
31997 \begin_inset VSpace medskip
32000 For the other features of
32004 refer to its documentation
32005 \begin_inset CommandInset citation
32014 \begin_layout Standard
32015 \begin_inset VSpace bigskip
32018 You can adjust the layout of margin notes by changing its definition.
32019 To create for example a header for all margin notes with the underlined,
32020 sans-serif, and bold header text
32021 \begin_inset Quotes eld
32033 \begin_inset Quotes erd
32036 , add this to your document preamble:
32039 \begin_layout Standard
32049 \begin_inset Newline newline
32059 \begin_inset Newline newline
32063 \begin_inset Phantom HPhantom
32066 \begin_layout Plain Layout
32069 \begin_inset space ~
32085 underbar{Attention!}}}%
32086 \begin_inset Newline newline
32090 \begin_inset Phantom HPhantom
32093 \begin_layout Plain Layout
32096 \begin_inset space ~
32113 \begin_layout Standard
32120 \begin_layout Plain Layout
32131 \begin_layout Plain Layout
32142 \begin_layout Plain Layout
32150 underbar{Attention!}}}%
32153 \begin_layout Plain Layout
32167 \begin_inset Marginal
32170 \begin_layout Plain Layout
32171 This is a margin note with a defined heading.
32183 \begin_layout Plain Layout
32197 \begin_layout Plain Layout
32214 \begin_inset Note Note
32217 \begin_layout Plain Layout
32218 The margin note format is changed only for this example.
32226 \begin_layout Standard
32230 \begin_layout Plain Layout
32240 \begin_inset Note Note
32243 \begin_layout Plain Layout
32244 The following will be displayed when the \SpecialChar LaTeX
32257 \begin_layout Standard
32258 You need to install the \SpecialChar LaTeX
32263 to see the following part of this section in the output.
32266 \begin_layout Standard
32270 \begin_layout Plain Layout
32282 \begin_layout Chapter
32286 \begin_layout Section
32288 \begin_inset Index idx
32291 \begin_layout Plain Layout
32292 Boxes ! Introduction
32300 \begin_layout Standard
32301 Boxes are used to format a block of text.
32302 Boxes can be used to write documents with multiple languages, see section
32303 \begin_inset space ~
32307 \begin_inset CommandInset ref
32309 reference "sec:Minipages"
32313 , to frame texts, see section
32314 \begin_inset space ~
32318 \begin_inset CommandInset ref
32320 reference "sec:Decoration"
32324 , to prevent words from being hyphenated, see section
32325 \begin_inset space ~
32329 \begin_inset CommandInset ref
32331 reference "sec:Prevent-Hyphenation"
32335 , to align text, see section
32336 \begin_inset space ~
32340 \begin_inset CommandInset ref
32342 reference "subsec:Vertical-Alignment"
32346 , or to set the background color of texts, see section
32347 \begin_inset space ~
32351 \begin_inset CommandInset ref
32353 reference "sec:Colored-Boxes"
32360 \begin_layout Standard
32361 Boxes can be inserted with the menu
32363 Insert\SpecialChar menuseparator
32366 or the toolbar button
32369 arg "box-insert Frameless"
32373 A grey box with the label
32378 \begin_inset Graphics
32379 filename clipart/BoxInsetDefaultQt4.png
32381 scaleBeforeRotation
32386 The box type can be specified by right-clicking on the box and selecting
32392 The box dialog offers the
32395 \begin_inset space ~
32417 is the default for new boxes and is explained in section
32418 \begin_inset space ~
32422 \begin_inset CommandInset ref
32424 reference "sec:Minipages"
32432 is described in section
32433 \begin_inset space ~
32437 \begin_inset CommandInset ref
32439 reference "sec:Parboxes"
32448 \begin_inset CommandInset ref
32450 reference "sec:Prevent-Hyphenation"
32457 \begin_layout Standard
32458 Boxes are not numbered and can therefore not be referenced like floats or
32462 \begin_layout Standard
32463 \begin_inset Note Greyedout
32466 \begin_layout Plain Layout
32471 Boxes must not be the item in an
32487 \begin_layout Standard
32488 \begin_inset Note Greyedout
32491 \begin_layout Plain Layout
32496 For an unknown reason you can only set the
32499 \begin_inset space ~
32508 when you use a framed box.
32512 \begin_inset space ~
32517 type and without frames are explained in section
32518 \begin_inset space ~
32522 \begin_inset CommandInset ref
32524 reference "sec:Prevent-Hyphenation"
32536 \begin_layout Section
32538 \begin_inset CommandInset label
32540 name "sec:Box-Dialog"
32545 \begin_inset Index idx
32548 \begin_layout Plain Layout
32557 \begin_layout Subsection
32559 \begin_inset Index idx
32562 \begin_layout Plain Layout
32571 \begin_layout Standard
32572 In the box dialog you can adjust the box geometry in the fields
32581 The available units for the geometry are explained in Table
32582 \begin_inset space ~
32586 \begin_inset CommandInset ref
32588 reference "tab:Units"
32597 offers the following additional sizes:
32600 \begin_layout Description
32601 Depth This is the plain text
32602 \begin_inset Quotes eld
32606 \begin_inset Quotes erd
32610 It ignores the total depth when there are multiple text lines in the box:
32611 \begin_inset Newline newline
32615 \begin_inset Newline newline
32619 \begin_inset Newline newline
32623 \begin_inset Box Boxed
32633 height_special "depth"
32638 backgroundcolor "none"
32641 \begin_layout Plain Layout
32643 Box height set to 1
32644 \begin_inset space \thinspace{}
32653 \begin_inset Newline newline
32657 \begin_inset Newline newline
32663 \begin_layout Description
32664 Height This is the height of the text that is inside the box.
32666 \begin_inset space \thinspace{}
32670 \begin_inset space \space{}
32673 2 for this size will set the box height to 2
32674 \begin_inset space ~
32677 times the text height:
32678 \begin_inset Box Boxed
32688 height_special "height"
32693 backgroundcolor "none"
32696 \begin_layout Plain Layout
32698 Box height set to 2
32699 \begin_inset space \thinspace{}
32710 \begin_layout Description
32712 \begin_inset space ~
32715 Height This is the Height
32716 \begin_inset space \thinspace{}
32720 \begin_inset space \thinspace{}
32724 \begin_inset Box Boxed
32734 height_special "totalheight"
32739 backgroundcolor "none"
32742 \begin_layout Plain Layout
32744 Box height set to 1
32745 \begin_inset space \thinspace{}
32749 \begin_inset space ~
32760 \begin_layout Description
32761 Width This sets the width of the box as height:
32762 \begin_inset Box Boxed
32772 height_special "width"
32777 backgroundcolor "none"
32780 \begin_layout Plain Layout
32782 Box height set to 1
32783 \begin_inset space \thinspace{}
32794 \begin_layout Subsection
32796 \begin_inset Index idx
32799 \begin_layout Plain Layout
32808 \begin_layout Standard
32809 When you have chosen an
32812 \begin_inset space ~
32817 , the vertical box alignment can be:
32820 \begin_layout Description
32821 Top This is an example text line.
32823 \begin_inset Box Boxed
32833 height_special "totalheight"
32838 backgroundcolor "none"
32841 \begin_layout Plain Layout
32843 This box is top-aligned.
32848 This is an example text line.
32851 \begin_layout Description
32852 Middle This is an example text line.
32854 \begin_inset Box Boxed
32864 height_special "totalheight"
32869 backgroundcolor "none"
32872 \begin_layout Plain Layout
32874 This box is middle-aligned.
32879 This is an example text line.
32882 \begin_layout Description
32883 Bottom This is an example text line.
32885 \begin_inset Box Boxed
32895 height_special "totalheight"
32900 backgroundcolor "none"
32903 \begin_layout Plain Layout
32905 This box is bottom-aligned.
32910 This is an example text line.
32913 \begin_layout Standard
32914 \begin_inset Note Greyedout
32917 \begin_layout Plain Layout
32922 The vertical box alignment can be lost in the output when you have two
32923 boxes in a line and one has e.
32924 \begin_inset space \thinspace{}
32928 \begin_inset space \space{}
32931 a shadow and the other one not.
32939 \begin_layout Standard
32940 The horizontal box alignment can be set via \SpecialChar LyX
32941 's paragraph dialog when you
32942 set the box into its own paragraph.
32945 \begin_layout Standard
32946 \begin_inset VSpace bigskip
32949 When you have chosen an
32952 \begin_inset space ~
32957 , the box content can be aligned vertically to:
32960 \begin_layout Description
32961 top This is an example text line.
32963 \begin_inset Box Boxed
32973 height_special "totalheight"
32978 backgroundcolor "none"
32981 \begin_layout Plain Layout
32983 This box text is top-aligned.
32988 This is an example text line.
32991 \begin_layout Description
32992 middle This is an example text line.
32994 \begin_inset Box Boxed
33004 height_special "totalheight"
33009 backgroundcolor "none"
33012 \begin_layout Plain Layout
33014 This box text is middle-aligned.
33019 This is an example text line.
33022 \begin_layout Description
33023 bottom This is an example text line.
33025 \begin_inset Box Boxed
33035 height_special "totalheight"
33040 backgroundcolor "none"
33043 \begin_layout Plain Layout
33045 This box text is bottom-aligned.
33050 This is an example text line.
33053 \begin_layout Description
33054 stretch This is an example text line.
33056 \begin_inset Box Boxed
33066 height_special "totalheight"
33071 backgroundcolor "none"
33074 \begin_layout Plain Layout
33079 \begin_layout Plain Layout
33084 \begin_layout Plain Layout
33091 This is an example text line.
33094 \begin_layout Standard
33095 To stretch the box content, it must consist of more than one paragraph.
33096 In the example above every text line is in an own paragraph.
33099 \begin_layout Standard
33100 \begin_inset VSpace bigskip
33103 To align the box content horizontally you can use \SpecialChar LyX
33104 's paragraph dialog when
33108 \begin_inset space ~
33116 \begin_layout Standard
33118 \begin_inset Box Boxed
33128 height_special "totalheight"
33133 backgroundcolor "none"
33136 \begin_layout Plain Layout
33141 \begin_layout Plain Layout
33146 \begin_layout Plain Layout
33156 \begin_layout Standard
33157 If you have not set an
33160 \begin_inset space ~
33165 , you can align the box content horizontally in the box dialog.
33166 \begin_inset Separator parbreak
33172 \begin_layout Standard
33174 \begin_inset Box Boxed
33184 height_special "totalheight"
33189 backgroundcolor "none"
33192 \begin_layout Plain Layout
33193 This box text is horizontally stretched.
33201 \begin_layout Subsection
33203 \begin_inset CommandInset label
33205 name "sec:Decoration"
33210 \begin_inset Index idx
33213 \begin_layout Plain Layout
33222 \begin_layout Standard
33223 The type of the box can be specified in the box dialog in the drop-down
33229 The following types are possible:
33232 \begin_layout Description
33234 \begin_inset space ~
33237 frame Nothing is drawn.
33240 \begin_layout Description
33242 \begin_inset space ~
33246 \begin_inset space ~
33249 frame This draws a rectangular frame around the box.
33250 The frame line thickness can be specified.
33252 \begin_inset Box Boxed
33262 height_special "totalheight"
33267 backgroundcolor "none"
33270 \begin_layout Plain Layout
33280 \begin_layout Description
33282 \begin_inset space ~
33286 \begin_inset space ~
33289 thin This draws an oval frame around the box.
33290 The frame line thickness has the size 0.4
33291 \begin_inset space \thinspace{}
33296 \begin_inset Box ovalbox
33306 height_special "totalheight"
33311 backgroundcolor "none"
33314 \begin_layout Plain Layout
33324 \begin_layout Description
33326 \begin_inset space ~
33330 \begin_inset space ~
33333 thick This draws an oval frame around the box.
33334 The frame line thickness has the size 0.8
33335 \begin_inset space \thinspace{}
33340 \begin_inset Box Ovalbox
33350 height_special "totalheight"
33355 backgroundcolor "none"
33358 \begin_layout Plain Layout
33368 \begin_layout Description
33370 \begin_inset space ~
33373 shadow This draws a rectangular frame with a shadow around the box.
33374 The frame line thickness and the shadow can be specified.
33376 \begin_inset Box Shadowbox
33386 height_special "totalheight"
33391 backgroundcolor "none"
33394 \begin_layout Plain Layout
33404 \begin_layout Description
33406 \begin_inset space ~
33409 background This draws a box with a red background.
33410 Unlike colored boxes
33414 \begin_layout Plain Layout
33416 \begin_inset space \thinspace{}
33420 \begin_inset CommandInset ref
33422 reference "sec:Colored-Boxes"
33431 , it always uses the whole column width and the box is set as its own paragraph.
33433 \begin_inset Box Shaded
33443 height_special "totalheight"
33448 backgroundcolor "none"
33451 \begin_layout Plain Layout
33452 Shaded background box
33460 \begin_layout Description
33462 \begin_inset space ~
33466 \begin_inset space ~
33469 frame This draws a double-line rectangular frame around the box.
33470 The line thickness of the inner frame is 0.75
33471 \begin_inset space \thinspace{}
33475 \begin_inset space ~
33478 thickness, the thickness of the outer frame is 1.5
33479 \begin_inset space \thinspace{}
33483 \begin_inset space ~
33487 The distance between the lines is 1.5
33488 \begin_inset space \thinspace{}
33492 \begin_inset space ~
33496 \begin_inset space \thinspace{}
33500 \begin_inset space \thinspace{}
33504 \begin_inset space \thinspace{}
33509 \begin_inset Box Doublebox
33519 height_special "totalheight"
33524 backgroundcolor "none"
33527 \begin_layout Plain Layout
33529 Double rectangular box
33537 \begin_layout Standard
33538 \begin_inset VSpace bigskip
33542 's box label will reflect the different frame types.
33543 To be able to use all types, the \SpecialChar LaTeX
33549 \begin_inset Index idx
33552 \begin_layout Plain Layout
33554 -packages ! fancybox
33562 \begin_layout Standard
33563 \begin_inset VSpace bigskip
33566 When you use the decoration
33568 simple rectangular frame
33570 and no inner box, you can allow page breaks within a box.
33571 Note that then, unlike other framed boxes, the frame always uses the whole
33572 column width and the box is set as its own paragraph:
33573 \begin_inset Box Framed
33583 height_special "totalheight"
33588 backgroundcolor "none"
33591 \begin_layout Plain Layout
33592 Allow page break box
33600 \begin_layout Section
33602 \begin_inset Index idx
33605 \begin_layout Plain Layout
33606 Boxes ! Customization
33614 \begin_layout Standard
33615 The diameter of the round corners of the oval boxes can be set with the
33626 \begin_layout Standard
33634 \begin_layout Standard
33635 sets the diameter to 1
33636 \begin_inset space \thinspace{}
33643 \begin_layout Standard
33651 \begin_layout Standard
33652 sets the diameter to
33655 \begin_inset space \thinspace{}
33659 \begin_inset space \thinspace{}
33662 minimum(width and height of box)
33674 \begin_layout Standard
33678 \begin_layout Plain Layout
33688 \begin_inset Box Ovalbox
33698 height_special "totalheight"
33703 backgroundcolor "none"
33706 \begin_layout Plain Layout
33715 \begin_inset space \thinspace{}
33719 \begin_inset space \thinspace{}
33723 \begin_inset space \thinspace{}
33735 \begin_layout Plain Layout
33747 \begin_layout Standard
33748 \begin_inset VSpace bigskip
33754 \begin_layout Standard
33755 The default background color red of
33759 boxes can either be changed locally with the command
33763 definecolor{shadecolor}
33765 or globally with the menu
33767 Tools\SpecialChar menuseparator
33768 Preferences\SpecialChar menuseparator
33769 Colors\SpecialChar menuseparator
33771 \begin_inset space ~
33783 command is explained in section
33784 \begin_inset space ~
33788 \begin_inset CommandInset ref
33790 reference "sec:Colored-Tables"
33798 \begin_layout Plain Layout
33805 requires the \SpecialChar LaTeX
33810 in the preamble, see section
33811 \begin_inset space ~
33815 \begin_inset CommandInset ref
33817 reference "sec:Colored-Boxes"
33826 For example the appearance of the following shaded background box is set
33827 with the \SpecialChar TeX
33831 \begin_layout Standard
33836 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33839 \begin_layout Standard
33843 \begin_layout Plain Layout
33847 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33853 \begin_inset Box Shaded
33863 height_special "totalheight"
33868 backgroundcolor "none"
33871 \begin_layout Plain Layout
33874 This is yellow text in a
33884 box with dark green background.
33893 \begin_layout Plain Layout
33897 definecolor{shadecolor}{rgb}{1,0,0}
33905 \begin_layout Standard
33906 \begin_inset VSpace bigskip
33909 Manually changed sizes and colors are valid for all boxes following the
33910 commands that change them.
33913 \begin_layout Section
33915 \begin_inset CommandInset label
33917 name "sec:Minipages"
33922 \begin_inset Index idx
33925 \begin_layout Plain Layout
33934 \begin_layout Standard
33935 Minipages are treated by \SpecialChar LaTeX
33936 as pages within pages and can therefore for example
33937 have their own footnotes.
33940 \begin_layout Standard
33941 Minipages are useful when you write documents with different languages.
33944 \begin_layout Standard
33945 Below are two example minipages side by side.
33946 Their width is set to 45
33947 \begin_inset space \thinspace{}
33950 col% and they are separated by a horizontal fill, that was inserted via
33953 Insert\SpecialChar menuseparator
33955 \begin_inset space ~
33958 Formatting\SpecialChar menuseparator
33960 \begin_inset space ~
33966 \begin_inset Newpage newpage
33972 \begin_layout Standard
33973 \begin_inset Box Frameless
33983 height_special "totalheight"
33988 backgroundcolor "none"
33991 \begin_layout Plain Layout
33994 Dies ist ein deutscher Text.
33995 Dies ist ein deutscher Text.
33996 Dies ist ein deutscher Text.
33997 Dies ist ein deutscher Text.
33998 Dies ist ein deutscher Text.
33999 Dies ist ein deutscher Text.
34000 Dies ist ein deutscher Text.
34001 Dies ist ein deutscher Text.
34002 Dies ist ein deutscher Text.
34003 Dies ist ein deutscher Text.
34004 Dies ist ein deutscher Text.
34005 Dies ist ein deutscher Text.
34006 Dies ist ein deutscher Text
34010 \begin_layout Plain Layout
34013 Dies ist eine deutsche Fußnote.
34019 Dies ist ein deutscher Text.
34020 Dies ist ein deutscher Text.
34026 \begin_inset space \hfill{}
34030 \begin_inset Box Frameless
34040 height_special "totalheight"
34045 backgroundcolor "none"
34048 \begin_layout Plain Layout
34049 This is an English Text.
34050 This is an English Text.
34051 This is an English Text.
34052 This is an English Text.
34053 This is an English Text.
34054 This is an English Text.
34055 This is an English Text.
34056 This is an English Text.
34057 This is an English Text.
34058 This is an English Text.
34059 This is an English Text.
34060 This is an English Text.
34061 This is an English Text.
34062 This is an English Text.
34063 This is an English Text.
34064 This is an English Text.
34068 \begin_layout Plain Layout
34069 This is an English footnote.
34074 This is an English Text.
34082 \begin_layout Standard
34083 \begin_inset VSpace bigskip
34086 The document-wide paragraph settings are ignored within minipages.
34087 That means that there will be no space between paragraphs in minipages
34088 although you set it to e.
34089 \begin_inset space \thinspace{}
34093 \begin_inset space \space{}
34100 in the document settings.
34103 \begin_layout Standard
34104 Minipages can also be used to set a background color for text parts, see
34106 \begin_inset space ~
34110 \begin_inset CommandInset ref
34112 reference "sec:Colored-Boxes"
34119 \begin_layout Standard
34120 \begin_inset Note Greyedout
34123 \begin_layout Plain Layout
34128 You cannot have floats or margin notes inside minipages but minipages can
34129 be used inside tables, floats, and other boxes.
34137 \begin_layout Section
34139 \begin_inset CommandInset label
34141 name "sec:Parboxes"
34146 \begin_inset Index idx
34149 \begin_layout Plain Layout
34158 \begin_layout Standard
34159 Parboxes are very similar to minipages with the difference that they cannot
34161 \begin_inset Separator parbreak
34167 \begin_layout Standard
34169 \begin_inset Box Frameless
34179 height_special "totalheight"
34184 backgroundcolor "none"
34187 \begin_layout Plain Layout
34188 This a text within a parbox.
34189 This a text within a parbox.
34192 \begin_layout Plain Layout
34193 This footnote won't appear:
34197 \begin_layout Plain Layout
34198 This footnote is inside a parbox and will therefore not appear.
34211 \begin_layout Section
34212 Boxes for Words and Characters
34213 \begin_inset Index idx
34216 \begin_layout Plain Layout
34217 Boxes ! for Characters
34225 \begin_layout Subsection
34226 Prevent Hyphenation
34227 \begin_inset CommandInset label
34229 name "sec:Prevent-Hyphenation"
34234 \begin_inset Index idx
34237 \begin_layout Plain Layout
34238 Boxes ! to Prevent Hyphenation
34246 \begin_layout Standard
34247 You can use the box type
34251 to prevent words or text from being hyphenated.
34252 \begin_inset Newline newline
34255 Here is an example text:
34258 \begin_layout Standard
34259 This line is an example to show how you can prevent the hyphenation of
34260 \begin_inset Quotes eld
34264 \begin_inset Quotes erd
34270 \begin_layout Standard
34271 To prevent the hyphenation of the word
34272 \begin_inset Quotes eld
34276 \begin_inset Quotes erd
34279 , put the word into a box, set the
34282 \begin_inset space ~
34291 and use no explicit width.
34294 \begin_layout Standard
34295 This is the result:
34298 \begin_layout Standard
34299 This line is an example to show how you can prevent the hyphenation of
34300 \begin_inset Box Frameless
34310 height_special "totalheight"
34315 backgroundcolor "none"
34318 \begin_layout Plain Layout
34319 \begin_inset Quotes eld
34323 \begin_inset Quotes erd
34334 \begin_layout Standard
34335 You can alternatively set the command
34336 \begin_inset Quotes eld
34346 \begin_inset Quotes grd
34349 as \SpecialChar TeX
34350 -Code directly before the word:
34353 \begin_layout Standard
34354 This line is an example to show how you can prevent the hyphenation of
34355 \begin_inset Quotes eld
34362 \begin_layout Plain Layout
34372 \begin_inset Quotes erd
34378 \begin_layout Standard
34379 Of course the word now protrudes over the side margin.
34380 To avoid this, add via the menu
34382 Insert\SpecialChar menuseparator
34383 Formatting\SpecialChar menuseparator
34385 \begin_inset space ~
34389 \begin_inset space ~
34397 arg "newline-insert newline"
34400 ) a line break before the word:
34403 \begin_layout Standard
34404 This line is an example to show how you can prevent the hyphenation of
34405 \begin_inset Newline newline
34409 \begin_inset Box Frameless
34419 height_special "totalheight"
34424 backgroundcolor "none"
34427 \begin_layout Plain Layout
34428 \begin_inset Quotes eld
34432 \begin_inset Quotes erd
34443 \begin_layout Subsection
34445 \begin_inset CommandInset label
34447 name "subsec:Vertical-Alignment"
34452 \begin_inset Index idx
34455 \begin_layout Plain Layout
34456 Boxes ! for Vertical Alignment
34462 \begin_inset Index idx
34465 \begin_layout Plain Layout
34474 \begin_layout Standard
34475 With the help of the command
34481 you can align words, characters or other boxes vertically relative to the
34489 is used with the following scheme:
34492 \begin_layout Standard
34497 raisebox{lift}[height][depth]{box content}
34500 \begin_layout Standard
34501 The lift can be a positive value to raise the box or a negative value to
34505 \begin_layout Standard
34506 To align for example the word
34507 \begin_inset Quotes eld
34511 \begin_inset Quotes erd
34514 so that the bottom of the
34515 \begin_inset Quotes eld
34519 \begin_inset Quotes erd
34523 \begin_inset Quotes eld
34527 \begin_inset Quotes erd
34530 is at the baseline, insert the command
34533 \begin_layout Standard
34543 \begin_layout Standard
34544 in \SpecialChar TeX
34545 -Code before the word.
34546 After the word insert a closing brace
34547 \begin_inset Quotes eld
34555 \begin_inset Quotes erd
34558 in \SpecialChar TeX
34560 \begin_inset Newline newline
34563 This is the result:
34566 \begin_layout Standard
34567 This is a text line with the word
34571 \begin_layout Plain Layout
34583 \begin_inset Quotes eld
34587 \begin_inset Quotes erd
34594 \begin_layout Plain Layout
34604 \begin_layout Standard
34605 \begin_inset VSpace bigskip
34608 When you raise or lower characters in a line, the line distance will be
34612 \begin_layout Standard
34613 This is a text line with the word
34617 \begin_layout Plain Layout
34629 \begin_inset Quotes eld
34633 \begin_inset Quotes erd
34640 \begin_layout Plain Layout
34648 \begin_inset Newline newline
34651 This is a text line with the word
34655 \begin_layout Plain Layout
34665 \begin_inset Quotes eld
34669 \begin_inset Quotes erd
34676 \begin_layout Plain Layout
34686 \begin_layout Standard
34687 If you want to prevent this for a certain reason, set the box height to
34692 \begin_layout Standard
34702 \begin_layout Standard
34703 This is a text line with the word
34707 \begin_layout Plain Layout
34719 \begin_inset Quotes eld
34723 \begin_inset Quotes erd
34730 \begin_layout Plain Layout
34738 \begin_inset Newline newline
34742 \begin_inset Newline newline
34745 This is a text line with the word
34749 \begin_layout Plain Layout
34753 raisebox{0.5cm}[0pt]{
34759 \begin_inset Quotes eld
34763 \begin_inset Quotes erd
34770 \begin_layout Plain Layout
34780 \begin_layout Section
34782 \begin_inset CommandInset label
34784 name "sec:Colored-Boxes"
34789 \begin_inset Index idx
34792 \begin_layout Plain Layout
34801 \begin_layout Standard
34802 To color the background of a box just select the color you like in the box
34804 This is for example a box with orange background:
34805 \begin_inset Box Frameless
34815 height_special "totalheight"
34820 backgroundcolor "orange"
34823 \begin_layout Plain Layout
34824 Box with orange background
34832 \begin_layout Standard
34833 If you use the decoration
34836 \begin_inset space ~
34840 \begin_inset space ~
34845 you can set a frame color.
34846 In this case you must also specify a background color (LyX sets white as
34848 Here is an example:
34849 \begin_inset Box Boxed
34859 height_special "totalheight"
34864 backgroundcolor "yellow"
34867 \begin_layout Plain Layout
34868 Box with teal frame color and yellow background color
34876 \begin_layout Standard
34877 \begin_inset VSpace bigskip
34880 Of course you can also have colored text inside a colored box:
34881 \begin_inset Newline newline
34885 \begin_inset Box Boxed
34895 height_special "totalheight"
34900 backgroundcolor "magenta"
34903 \begin_layout Plain Layout
34906 This is colored text within a colored, framed box
34914 \begin_layout Standard
34915 \begin_inset VSpace bigskip
34921 \begin_layout Standard
34922 If you need another color than the predefined ones, you can define your
34923 own color as described in section
34924 \begin_inset space ~
34928 \begin_inset CommandInset ref
34930 reference "sec:Colored-Tables"
34935 To use your own color you must typeset the box by using TeX code:
34938 \begin_layout Standard
34939 Colored boxes without frame are created with the command
34946 It has the following scheme:
34949 \begin_layout Standard
34954 colorbox{color}{box content}
34957 \begin_layout Standard
34958 The box content can also be a box and colored boxes can also be within other
34961 \begin_inset space \thinspace{}
34965 \begin_inset space \space{}
34968 a darkgreen background for a word, insert the command
34971 \begin_layout Standard
34976 colorbox{darkgreen}{
34979 \begin_layout Standard
34980 before the word in \SpecialChar TeX
34982 After the word insert a closing brace
34983 \begin_inset Quotes eld
34991 \begin_inset Quotes erd
34994 in \SpecialChar TeX
34996 \begin_inset Newline newline
34999 This is the result:
35002 \begin_layout Standard
35003 This is a line where the word
35007 \begin_layout Plain Layout
35011 colorbox{darkgreen}{
35017 \begin_inset Quotes eld
35021 \begin_inset Quotes erd
35028 \begin_layout Plain Layout
35035 has a darkgreen background.
35038 \begin_layout Standard
35039 Framed, colored boxes are created with the command
35046 It has the following scheme:
35049 \begin_layout Standard
35054 fcolorbox{frame color}{box color}{box content}
35057 \begin_layout Section
35058 Rotated and Scaled Boxes
35061 \begin_layout Standard
35062 To use the commands described in this section, the \SpecialChar LaTeX
35068 \begin_inset Index idx
35071 \begin_layout Plain Layout
35073 -packages ! graphicx
35078 needs to be loaded in the document preamble with the command
35081 \begin_layout Standard
35086 @ifundefined{rotatebox}
35087 \begin_inset Newline newline
35091 \begin_inset Phantom HPhantom
35094 \begin_layout Plain Layout
35097 \begin_inset space ~
35107 usepackage{graphicx}}{}
35110 \begin_layout Standard
35111 \begin_inset Note Greyedout
35114 \begin_layout Plain Layout
35119 Not all DVI-viewers are able to display rotated or scaled material.
35127 \begin_layout Standard
35128 \begin_inset Note Greyedout
35131 \begin_layout Plain Layout
35136 Floats are not allowed inside a rotated or scaled box.
35144 \begin_layout Subsection
35146 \begin_inset Index idx
35149 \begin_layout Plain Layout
35156 \begin_inset Index idx
35159 \begin_layout Plain Layout
35168 \begin_layout Standard
35169 To rotate material, you can put it into a rotated box.
35170 Such a box is created using the command
35176 in \SpecialChar TeX
35177 -Code with the following scheme:
35180 \begin_layout Standard
35185 rotatebox[rotation origin]{rotation angle}{box content}
35188 \begin_layout Standard
35189 The rotation origin is specified in the form
35194 The following positions are possible:
35214 (top), along with meaningful combinations of the four base positions.
35219 means that the rotation origin is at the top left corner of the box.
35220 When no rotation origin is specified, the position
35225 The rotation angle is a number that can be negative that specifies the
35227 The rotation direction is counterclockwise.
35230 \begin_layout Standard
35231 In the following example the command
35235 rotatebox[origin=c]{60}{
35237 was inserted as \SpecialChar TeX
35238 -Code before the text
35239 \begin_inset Quotes eld
35243 \begin_inset Quotes erd
35246 ; after the text the box was closed by a closing brace
35250 in \SpecialChar TeX
35254 \begin_layout Standard
35259 \begin_layout Plain Layout
35263 rotatebox[origin=c]{60}{
35272 \begin_layout Plain Layout
35282 \begin_layout Standard
35283 The box content can also be another box or an inline formula:
35286 \begin_layout Standard
35291 \begin_layout Plain Layout
35295 rotatebox[origin=r]{-60}{
35301 \begin_inset Box Doublebox
35311 height_special "totalheight"
35316 backgroundcolor "none"
35319 \begin_layout Plain Layout
35329 \begin_layout Plain Layout
35340 \begin_layout Plain Layout
35344 rotatebox[origin=lb]{60}{
35350 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35357 \begin_layout Plain Layout
35367 \begin_layout Standard
35368 or an image or table:
35371 \begin_layout Standard
35376 \begin_layout Plain Layout
35380 rotatebox[origin=lb]{90}{
35386 \begin_inset Graphics
35387 filename clipart/platypus.eps
35397 \begin_layout Plain Layout
35404 with a rotated image
35408 \begin_layout Plain Layout
35412 rotatebox[origin=l]{-90}{
35418 \begin_inset Tabular
35419 <lyxtabular version="3" rows="2" columns="2">
35420 <features tabularvalignment="middle">
35421 <column alignment="center" valignment="top">
35422 <column alignment="center" valignment="top">
35424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35427 \begin_layout Plain Layout
35433 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35436 \begin_layout Plain Layout
35444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35447 \begin_layout Plain Layout
35453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35456 \begin_layout Plain Layout
35471 \begin_layout Plain Layout
35479 \begin_inset Index idx
35482 \begin_layout Plain Layout
35489 \begin_inset Index idx
35492 \begin_layout Plain Layout
35493 Table Customization ! Rotating
35501 \begin_layout Subsection
35503 \begin_inset Index idx
35506 \begin_layout Plain Layout
35513 \begin_inset Index idx
35516 \begin_layout Plain Layout
35525 \begin_layout Standard
35526 To scale material the commands
35538 can be used as \SpecialChar TeX
35542 \begin_layout Standard
35549 is used with the following scheme:
35552 \begin_layout Standard
35557 scalebox{horizontal}[vertical]{box content}
35560 \begin_layout Standard
35561 Horizontal and vertical are the corresponding scaling factors.
35562 If no vertical scaling factor is given, the horizontal factor will also
35563 be used as the vertical one.
35566 \begin_layout Standard
35573 creates for example a double size
35577 \begin_layout Plain Layout
35590 \begin_layout Plain Layout
35597 , compared with the document text size.
35600 \begin_layout Standard
35605 scalebox{2}[1]{Hello}
35607 on the other hand distorts the
35611 \begin_layout Plain Layout
35624 \begin_layout Plain Layout
35634 \begin_layout Standard
35635 If the scaling factor is negative, the box content will be mirrored.
35636 Therefore the command
35640 scalebox{-1}[1]{Hello}
35642 can be used to create mirror writing:
35646 \begin_layout Plain Layout
35659 \begin_layout Plain Layout
35669 \begin_layout Standard
35674 scalebox{1}[-1]{Hello}
35680 \begin_layout Plain Layout
35693 \begin_layout Plain Layout
35703 \begin_layout Standard
35708 scalebox{-1}[1]{box content}
35710 there exists the command
35711 \begin_inset Newline newline
35718 reflectbox{box content}
35723 \begin_layout Standard
35724 \begin_inset VSpace bigskip
35733 is used to scale the box to a defined width and height.
35734 The command scheme is:
35737 \begin_layout Standard
35742 resizebox{width}{height}{box content}
35745 \begin_layout Standard
35746 If one of the two command arguments given is an exclamation mark
35750 , the size is set so that the aspect ratio of the box content is kept.
35753 \begin_layout Standard
35758 resizebox{2cm}{1cm}{Hello}
35764 \begin_layout Plain Layout
35768 resizebox{2cm}{1cm}{
35777 \begin_layout Plain Layout
35785 \begin_inset Newline newline
35792 resizebox{2cm}{!}{Hello}
35798 \begin_layout Plain Layout
35811 \begin_layout Plain Layout
35821 \begin_layout Standard
35822 \begin_inset VSpace bigskip
35826 \begin_inset Note Greyedout
35829 \begin_layout Plain Layout
35846 are set to zero, no \SpecialChar LaTeX
35847 -errors occur when exporting the document but the exported
35848 files can not or only partly be displayed.
35856 \begin_layout Standard
35857 \begin_inset VSpace bigskip
35863 \begin_layout Standard
35864 The boxes can be combined in any order.
35866 \begin_inset space \thinspace{}
35870 \begin_inset space \space{}
35874 \begin_inset Newline newline
35881 rotatebox[origin=c]{-45}{
35885 reflectbox{Hello}}}
35886 \begin_inset Newline newline
35892 \begin_inset Separator parbreak
35898 \begin_layout Standard
35903 \begin_layout Plain Layout
35907 rotatebox[origin=c]{-45}{
35920 \begin_layout Plain Layout
35930 \begin_layout Standard
35932 Images, tables, and inline formulas are allowed as box content:
35933 \begin_inset Separator parbreak
35939 \begin_layout Standard
35944 \begin_layout Plain Layout
35948 rotatebox[origin=c]{-30}{
35958 \begin_inset Graphics
35959 filename clipart/platypus.eps
35969 \begin_layout Plain Layout
35980 \begin_layout Plain Layout
35984 rotatebox[origin=c]{-45}{
35994 \begin_inset Tabular
35995 <lyxtabular version="3" rows="2" columns="2">
35996 <features tabularvalignment="middle">
35997 <column alignment="center" valignment="top">
35998 <column alignment="center" valignment="top">
36000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36003 \begin_layout Plain Layout
36009 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36012 \begin_layout Plain Layout
36020 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36023 \begin_layout Plain Layout
36029 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36032 \begin_layout Plain Layout
36047 \begin_layout Plain Layout
36058 \begin_layout Plain Layout
36062 rotatebox[origin=c]{-45}{
36072 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36079 \begin_layout Plain Layout
36087 \begin_inset Index idx
36090 \begin_layout Plain Layout
36097 \begin_inset Index idx
36100 \begin_layout Plain Layout
36101 Table Customization ! Scaling
36109 \begin_layout Standard
36110 When the global formula style
36114 is used in the document
36118 \begin_layout Plain Layout
36120 \begin_inset Quotes eld
36124 \begin_inset Quotes erd
36127 is added to the document class options.
36132 , display style formulas can also be scaled.
36135 \begin_layout Chapter
36136 Objects Surrounded by Text
36137 \begin_inset Index idx
36140 \begin_layout Plain Layout
36149 \begin_layout Section
36151 \begin_inset CommandInset label
36153 name "sec:Wrap-Floats"
36158 \begin_inset Index idx
36161 \begin_layout Plain Layout
36162 Floats ! Wrap Floats
36168 \begin_inset Index idx
36171 \begin_layout Plain Layout
36172 Surrounded by text ! Wrap Floats
36180 \begin_layout Standard
36181 \begin_inset Wrap figure
36188 \begin_layout Plain Layout
36189 \begin_inset Graphics
36190 filename clipart/mobius.eps
36192 scaleBeforeRotation
36193 rotateOrigin center
36200 \begin_layout Plain Layout
36201 \begin_inset Caption Standard
36203 \begin_layout Plain Layout
36204 \begin_inset CommandInset label
36206 name "fig:This-is-a"
36210 This is a figure wrap float.
36220 This float type is used if you want to wrap text around a figure or table
36221 so that it only occupies some fraction of the column width.
36222 It can be inserted using the menu
36224 Insert\SpecialChar menuseparator
36225 Floats\SpecialChar menuseparator
36227 \begin_inset space ~
36231 \begin_inset space ~
36239 \begin_inset space ~
36243 \begin_inset space ~
36248 if the \SpecialChar LaTeX
36254 \begin_inset Index idx
36257 \begin_layout Plain Layout
36259 -packages ! wrapfig
36268 \begin_layout Plain Layout
36269 Installing a \SpecialChar LaTeX
36270 -package is explained it in the
36274 \begin_inset space ~
36284 The settings of the float can be modified by right-clicking on the float
36286 The mandatory settings are the float
36299 that specifies how much the float is set into the paragraph
36300 \begin_inset space \thinspace{}
36304 \begin_inset space \thinspace{}
36307 page margin, and the
36310 \begin_inset space ~
36315 that specifies how many text lines the float will approximately need.
36316 The line span is often hard to approximate; so it is better only to use
36317 it when you encounter float placement problems.
36318 You can furthermore decide if \SpecialChar LaTeX
36319 is allowed to let the float float within
36320 the paragraph or to surrounding paragraphs.
36322 \begin_inset space ~
36326 \begin_inset CommandInset ref
36328 reference "fig:This-is-a"
36332 is an example text wrap float with a width of 40
36333 \begin_inset space \thinspace{}
36337 \begin_inset space \thinspace{}
36340 cm overhang, set to the left.
36343 \begin_layout Standard
36344 \begin_inset Note Greyedout
36347 \begin_layout Plain Layout
36353 \begin_inset space ~
36356 wrap float floats are fragile! E.
36357 \begin_inset space \thinspace{}
36361 \begin_inset space \space{}
36364 having a figure too close to the bottom of the page can mess things up in
36365 such a way that the float does not appear in the output or that it is placed
36366 over some other text.
36374 \begin_layout Standard
36375 In general, the following applies for wrap floats:
36378 \begin_layout Itemize
36379 They should not be placed in paragraphs that run over a page break.
36380 That means that wrap floats are better inserted in their exact place when
36381 the document is almost finished and you are able to estimate where page
36382 breaks will appear.
36385 \begin_layout Itemize
36386 They should either be placed in their own paragraph before the paragraph
36387 where they should wrap into or within a paragraph.
36390 \begin_layout Itemize
36391 In consecutive paragraphs they may cause troubles, so ensure that there
36392 is a text paragraph between them as separator.
36395 \begin_layout Itemize
36396 They are not allowed in section headings or tables.
36399 \begin_layout Itemize
36400 Their numbering and referencing works as described in chap.
36401 \begin_inset space \thinspace{}
36405 \begin_inset CommandInset ref
36407 reference "chap:Floats"
36414 \begin_layout Section
36415 Surrounded Fixed Objects
36416 \begin_inset Index idx
36419 \begin_layout Plain Layout
36420 Surrounded by text ! Fixed objects
36428 \begin_layout Standard
36429 The wrap floats described in sec.
36430 \begin_inset space \thinspace{}
36434 \begin_inset CommandInset ref
36436 reference "sec:Wrap-Floats"
36440 have these positions in the paragraph:
36441 \begin_inset Separator parbreak
36447 \begin_layout Standard
36450 \begin_inset Tabular
36451 <lyxtabular version="3" rows="2" columns="2">
36452 <features tabularvalignment="middle">
36453 <column alignment="center" valignment="top">
36454 <column alignment="center" valignment="top">
36456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36459 \begin_layout Plain Layout
36460 \begin_inset Graphics
36461 filename ../images/dialog-show-new-inset_graphics.png
36463 scaleBeforeRotation
36472 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36475 \begin_layout Plain Layout
36483 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36486 \begin_layout Plain Layout
36492 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36495 \begin_layout Plain Layout
36507 \begin_inset Tabular
36508 <lyxtabular version="3" rows="2" columns="2">
36509 <features tabularvalignment="middle">
36510 <column alignment="center" valignment="top">
36511 <column alignment="center" valignment="top">
36513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36516 \begin_layout Plain Layout
36522 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36525 \begin_layout Plain Layout
36526 \begin_inset Graphics
36527 filename ../images/dialog-show-new-inset_graphics.png
36529 scaleBeforeRotation
36540 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36543 \begin_layout Plain Layout
36549 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36552 \begin_layout Plain Layout
36566 \begin_layout Standard
36567 To get an object exactly at the position where it is inserted, for example
36568 to get one of these positions:
36569 \begin_inset VSpace defskip
36575 \begin_layout Standard
36578 \begin_inset Tabular
36579 <lyxtabular version="3" rows="2" columns="2">
36580 <features tabularvalignment="middle">
36581 <column alignment="center" valignment="top">
36582 <column alignment="center" valignment="top">
36584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36587 \begin_layout Plain Layout
36593 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36596 \begin_layout Plain Layout
36604 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36607 \begin_layout Plain Layout
36608 \begin_inset Graphics
36609 filename ../images/dialog-show-new-inset_graphics.png
36611 scaleBeforeRotation
36620 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36623 \begin_layout Plain Layout
36635 \begin_inset Tabular
36636 <lyxtabular version="3" rows="2" columns="2">
36637 <features tabularvalignment="middle">
36638 <column alignment="center" valignment="top">
36639 <column alignment="center" valignment="top">
36641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36644 \begin_layout Plain Layout
36650 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36653 \begin_layout Plain Layout
36661 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36664 \begin_layout Plain Layout
36670 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36673 \begin_layout Plain Layout
36674 \begin_inset Graphics
36675 filename ../images/dialog-show-new-inset_graphics.png
36677 scaleBeforeRotation
36692 \begin_inset Tabular
36693 <lyxtabular version="3" rows="2" columns="3">
36694 <features tabularvalignment="middle">
36695 <column alignment="center" valignment="top">
36696 <column alignment="center" valignment="top">
36697 <column alignment="center" valignment="top">
36699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36702 \begin_layout Plain Layout
36708 <cell alignment="center" valignment="top" topline="true" usebox="none">
36711 \begin_layout Plain Layout
36712 \begin_inset Graphics
36713 filename ../images/dialog-show-new-inset_graphics.png
36715 scaleBeforeRotation
36724 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36727 \begin_layout Plain Layout
36735 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36738 \begin_layout Plain Layout
36744 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36747 \begin_layout Plain Layout
36753 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36756 \begin_layout Plain Layout
36768 \begin_inset Tabular
36769 <lyxtabular version="3" rows="2" columns="3">
36770 <features tabularvalignment="middle">
36771 <column alignment="center" valignment="top">
36772 <column alignment="center" valignment="top">
36773 <column alignment="center" valignment="top">
36775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36778 \begin_layout Plain Layout
36784 <cell alignment="center" valignment="top" topline="true" usebox="none">
36787 \begin_layout Plain Layout
36793 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36796 \begin_layout Plain Layout
36804 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36807 \begin_layout Plain Layout
36813 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36816 \begin_layout Plain Layout
36817 \begin_inset Graphics
36818 filename ../images/dialog-show-new-inset_graphics.png
36820 scaleBeforeRotation
36829 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36832 \begin_layout Plain Layout
36846 \begin_layout Standard
36849 \begin_inset Tabular
36850 <lyxtabular version="3" rows="3" columns="2">
36851 <features tabularvalignment="middle">
36852 <column alignment="center" valignment="top">
36853 <column alignment="center" valignment="top">
36855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36858 \begin_layout Plain Layout
36864 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36867 \begin_layout Plain Layout
36875 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36878 \begin_layout Plain Layout
36879 \begin_inset Graphics
36880 filename ../images/dialog-show-new-inset_graphics.png
36882 scaleBeforeRotation
36891 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36894 \begin_layout Plain Layout
36902 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36905 \begin_layout Plain Layout
36911 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36914 \begin_layout Plain Layout
36926 \begin_inset Tabular
36927 <lyxtabular version="3" rows="3" columns="3">
36928 <features tabularvalignment="middle">
36929 <column alignment="center" valignment="top">
36930 <column alignment="center" valignment="top">
36931 <column alignment="center" valignment="top">
36933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36936 \begin_layout Plain Layout
36942 <cell alignment="center" valignment="top" topline="true" usebox="none">
36945 \begin_layout Plain Layout
36951 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36954 \begin_layout Plain Layout
36962 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36965 \begin_layout Plain Layout
36971 <cell alignment="center" valignment="top" usebox="none">
36974 \begin_layout Plain Layout
36975 \begin_inset Graphics
36976 filename ../images/dialog-show-new-inset_graphics.png
36978 scaleBeforeRotation
36987 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36990 \begin_layout Plain Layout
36998 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37001 \begin_layout Plain Layout
37007 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37010 \begin_layout Plain Layout
37016 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37019 \begin_layout Plain Layout
37031 \begin_inset Tabular
37032 <lyxtabular version="3" rows="3" columns="2">
37033 <features tabularvalignment="middle">
37034 <column alignment="center" valignment="top">
37035 <column alignment="center" valignment="top">
37037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37040 \begin_layout Plain Layout
37046 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37049 \begin_layout Plain Layout
37057 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37060 \begin_layout Plain Layout
37066 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37069 \begin_layout Plain Layout
37070 \begin_inset Graphics
37071 filename ../images/dialog-show-new-inset_graphics.png
37073 scaleBeforeRotation
37084 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37087 \begin_layout Plain Layout
37093 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37096 \begin_layout Plain Layout
37110 \begin_layout Standard
37112 you can use the \SpecialChar LaTeX
37118 \begin_inset Index idx
37121 \begin_layout Plain Layout
37123 -packages ! picinpar
37129 Here is an example:
37132 \begin_layout Standard
37136 \begin_layout Plain Layout
37146 \begin_inset Note Note
37149 \begin_layout Plain Layout
37150 The following section will only be displayed when the \SpecialChar LaTeX
37163 \begin_layout Standard
37167 \begin_layout Plain Layout
37171 begin{window}[2,c,{
37177 \begin_inset Graphics
37178 filename clipart/mobius.eps
37181 scaleBeforeRotation
37182 rotateOrigin center
37190 \begin_layout Plain Layout
37195 \begin_layout Plain Layout
37204 It was in the spring of the year 1894 that all London was interested, and
37205 the fashionable world dismayed, by the murder of the Honourable Ronald
37206 Adair under most unusual and inexplicable circumstances.
37207 The public has already learned those particulars of the crime which
37213 \begin_layout Plain Layout
37224 came out in the police investigation, but a good deal was suppressed upon
37225 that occasion, since the case for the prosecution was so overwhelmingly
37226 strong that it was not necessary to bring forward all the facts.
37227 Only now, at the end of nearly ten years, am I allowed to supply those
37228 missing links which make up the whole of that remarkable chain.
37234 \begin_layout Plain Layout
37246 \begin_layout Standard
37250 \begin_layout Plain Layout
37259 Footnote of the paragraph with the fixed object.
37263 \begin_layout Plain Layout
37273 \begin_layout Standard
37274 Surrounded fixed objects are used to let text float around them, at which
37275 the object's position in the paragraph can be determined by the number
37277 In contrary to floats is it not possible to have a numbered caption.
37280 \begin_layout Standard
37281 A fixed object is inserted by adding the command
37284 \begin_layout Standard
37289 begin{window}[2,c,{
37292 \begin_layout Standard
37293 as \SpecialChar TeX
37294 -Code at the beginning of the paragraph.
37295 The first parameter in the bracket, here '2', defines the number of lines
37296 above the object, the second, here 'c', the position of the object.
37297 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37298 Behind the command you insert the object.
37299 In this example an image with a width of 40
37300 \begin_inset space \thinspace{}
37303 % of the text column width was inserted.
37304 The object can also be a table, a box or an equation.
37305 Behind the object the command
37308 \begin_layout Standard
37311 },description text]
37312 \begin_inset Newline newline
37318 \begin_layout Standard
37321 \begin_inset Quotes eld
37329 \begin_inset Quotes erd
37332 is in the second line.
37333 The description text is optional.
37334 The text surrounding the object must be in the same paragraph as the object,
37335 so it must begin directly after the
37340 At the end of the paragraph insert the command:
37343 \begin_layout Standard
37351 \begin_layout Standard
37352 Within a paragraph with a fixed object, you cannot insert footnotes in the
37354 You have to use instead the command
37360 inside the paragraph and outside the command
37366 as described in sec.
37367 \begin_inset space \thinspace{}
37371 \begin_inset CommandInset ref
37373 reference "sec:Footnotes"
37380 \begin_layout Standard
37384 \begin_layout Plain Layout
37394 \begin_inset Note Note
37397 \begin_layout Plain Layout
37398 The following will be displayed when the \SpecialChar LaTeX
37411 \begin_layout Standard
37412 You need to install the \SpecialChar LaTeX
37417 to see the following part of this section in the output.
37420 \begin_layout Standard
37424 \begin_layout Plain Layout
37436 \begin_layout Section
37438 \begin_inset Index idx
37441 \begin_layout Plain Layout
37448 \begin_inset Index idx
37451 \begin_layout Plain Layout
37452 Surrounded by text ! Initials
37460 \begin_layout Standard
37461 To use initials, you must have the \SpecialChar LaTeX
37467 \begin_inset Index idx
37470 \begin_layout Plain Layout
37472 -packages ! lettrine
37477 installed and use the module
37481 in your document (menu
37483 Document\SpecialChar menuseparator
37484 Settings\SpecialChar menuseparator
37488 To insert an initial, use the style
37493 This style has a mandatory and two optional arguments.
37494 The arguments are inserted via the
37499 The mandatory argument
37503 contains the letter(s) that is the initial, the argument
37506 \begin_inset space ~
37510 \begin_inset space ~
37515 contains the rest of the word or text of the initial letter(s).
37520 contains parameters to modify the initial.
37521 For more information about the possible parameters see the documentation
37527 \begin_inset CommandInset citation
37534 The style itself contains the text that is surrounding the initial.
37535 The usual style is hereby that the word whose first letter is the initial,
37543 \begin_layout Standard
37544 Here are some examples:
37547 \begin_layout Standard
37551 \begin_layout Plain Layout
37561 \begin_inset Note Note
37564 \begin_layout Plain Layout
37565 The following section will only be displayed when the \SpecialChar LaTeX
37578 \begin_layout Enumerate
37579 No optional argument, the initial is the letter 'I' in the math font
37580 \begin_inset Formula $\mathfrak{Fraktur}$
37584 \begin_inset Separator parbreak
37591 \begin_layout Initial
37592 \begin_inset Argument 2
37595 \begin_layout Plain Layout
37596 \begin_inset Formula $\mathfrak{I}$
37605 \begin_inset Argument 3
37608 \begin_layout Plain Layout
37614 was in the spring of the year 1894 that all London was interested, and
37615 the fashionable world dismayed, by the murder of the Honourable Ronald
37616 Adair under most unusual and inexplicable circumstances.
37617 The public has already learned those particulars of the crime which came
37618 out in the police investigation, but a good deal was suppressed upon that
37619 occasion, since the case for the prosecution was so overwhelmingly strong
37620 that it was not necessary to bring forward all the facts.
37621 \begin_inset Newpage newpage
37628 \begin_layout Enumerate
37629 Only one line is surrounding the initial, which is formed by two letters
37630 in standard font and no text is printed in small caps:
37631 \begin_inset Separator parbreak
37638 \begin_layout Initial
37639 \begin_inset Argument 1
37642 \begin_layout Plain Layout
37649 \begin_inset Argument 2
37652 \begin_layout Plain Layout
37658 was in the spring of the year 1894 that all London was interested, and
37659 the fashionable world dismayed, by the murder of the Honourable Ronald
37660 Adair under most unusual and inexplicable circumstances.
37661 The public has already learned those particulars of the crime which came
37662 out in the police investigation, but a good deal was suppressed upon that
37663 occasion, since the case for the prosecution was so overwhelmingly strong
37664 that it was not necessary to bring forward all the facts.
37668 \begin_layout Enumerate
37669 Magenta, hanging initial over 3
37670 \begin_inset space ~
37673 lines in the math font
37674 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37678 \begin_inset Quotes eld
37681 t was in the spring
37682 \begin_inset Quotes erd
37689 ; to color the initial, you must insert this command before the initial:
37690 \begin_inset Newline newline
37704 \begin_inset Newline newline
37712 \begin_inset Quotes eld
37716 \begin_inset Quotes erd
37720 \begin_inset Quotes eld
37724 \begin_inset Quotes erd
37728 \begin_inset Quotes eld
37732 \begin_inset Quotes erd
37736 \begin_inset Quotes eld
37740 \begin_inset Quotes erd
37744 \begin_inset Quotes eld
37748 \begin_inset Quotes erd
37752 \begin_inset Quotes eld
37756 \begin_inset Quotes erd
37760 \begin_inset Quotes eld
37764 \begin_inset Quotes erd
37768 \begin_inset Quotes eld
37772 \begin_inset Quotes erd
37775 , and add this command to the document preamble:
37776 \begin_inset Newline newline
37783 @ifundefined{textcolor}
37784 \begin_inset Newline newline
37788 \begin_inset space ~
37793 usepackage{color}}{}
37796 \begin_inset Separator parbreak
37803 \begin_layout Standard
37807 \begin_layout Plain Layout
37821 \begin_inset Note Note
37824 \begin_layout Plain Layout
37825 makes the initial magenta
37833 \begin_layout Initial
37834 \begin_inset Argument 1
37837 \begin_layout Plain Layout
37838 lines=3, lhang=0.33, loversize=0.25
37844 \begin_inset Argument 2
37847 \begin_layout Plain Layout
37848 \begin_inset Formula $\mathcal{I}$
37857 \begin_inset Argument 3
37860 \begin_layout Plain Layout
37861 t was in the spring
37866 of the year 1894 that all London was interested, and the fashionable world
37867 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37868 and inexplicable circumstances.
37869 The public has already learned those particulars of the crime which came
37870 out in the police investigation, but a good deal was suppressed upon that
37871 occasion, since the case for the prosecution was so overwhelmingly strong
37872 that it was not necessary to bring forward all the facts.
37876 \begin_layout Standard
37880 \begin_layout Plain Layout
37890 \begin_inset Note Note
37893 \begin_layout Plain Layout
37894 The following will be displayed when the \SpecialChar LaTeX
37907 \begin_layout Standard
37908 You need to install the \SpecialChar LaTeX
37913 to see the following part of this section in the output.
37916 \begin_layout Standard
37920 \begin_layout Plain Layout
37932 \begin_layout Chapter
37933 External Document Parts
37934 \begin_inset Index idx
37937 \begin_layout Plain Layout
37938 External Document Parts
37946 \begin_layout Standard
37949 Insert\SpecialChar menuseparator
37952 you can insert external material into your document.
37956 \begin_layout Description
37959 \begin_inset space ~
37962 Document Another \SpecialChar LyX
37963 document; its content is directly inserted to your document.
37966 \begin_layout Description
37968 \begin_inset space ~
37971 Text A text document; each line is inserted in your document as a separate
37975 \begin_layout Description
37977 \begin_inset space ~
37981 \begin_inset space ~
37985 \begin_inset space ~
37988 Lines A text document; text lines are inserted in your document continuously
37989 but an empty text line creates a new paragraph.
37992 \begin_layout Description
37994 \begin_inset space ~
37997 Material Files in various formats.
38000 \begin_layout Description
38002 \begin_inset space ~
38005 Document \SpecialChar LyX
38006 or \SpecialChar LaTeX
38010 \begin_layout Section
38012 \begin_inset Index idx
38015 \begin_layout Plain Layout
38016 External Document Parts ! External Material
38024 \begin_layout Standard
38025 The external material feature allows you to insert files into your document
38026 without converting them to a format that can be read by the document output
38029 takes care of the necessary conversions.
38030 This is similar to images that can be inserted in various image formats
38031 in \SpecialChar LyX
38033 When you have enabled Instant Preview in \SpecialChar LyX
38034 's preferences under
38037 \begin_inset space ~
38041 \begin_inset space ~
38044 feel\SpecialChar menuseparator
38047 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38051 \begin_layout Standard
38052 External material can be inserted via the
38056 dialog that is accessible with the menu
38058 Insert\SpecialChar menuseparator
38059 File\SpecialChar menuseparator
38061 \begin_inset space ~
38067 Currently the following file types (
38074 \begin_layout Description
38075 ChessDiagram This template supports chess position diagrams made with the
38079 \begin_inset CommandInset href
38082 target "http://en.wikipedia.org/wiki/XBoard"
38091 \begin_layout Description
38092 Date This inserts the date in the form
38097 This is a date inserted as external material:
38098 \begin_inset External
38105 \begin_inset space ~
38109 \begin_inset Note Note
38112 \begin_layout Plain Layout
38113 Remove the protected space when bug 4398 is fixed!
38119 \begin_inset Newline newline
38122 The date is not shown within \SpecialChar LyX
38123 , only in the output.
38124 There are two other methods of inserting a date: Via menu
38126 Insert\SpecialChar menuseparator
38129 and with the \SpecialChar LaTeX
38136 as \SpecialChar TeX
38138 The different methods are compared in Table
38139 \begin_inset space ~
38143 \begin_inset CommandInset ref
38145 reference "tab:Comparison-of-the"
38152 \begin_layout Description
38153 Dia This template supports diagrams created with the program
38156 \begin_inset CommandInset href
38159 target "http://en.wikipedia.org/wiki/Dia_(software)"
38168 \begin_layout Description
38169 GnumericSpreadsheet With this template you can insert spreadsheets
38170 \begin_inset space \thinspace{}
38174 \begin_inset space \thinspace{}
38177 tables in the format of
38180 \begin_inset CommandInset href
38183 target "http://en.wikipedia.org/wiki/Gnumeric"
38190 \begin_inset CommandInset href
38192 name "OpenDocument"
38193 target "http://en.wikipedia.org/wiki/OpenDocument"
38198 \begin_inset CommandInset href
38200 name "Microsoft Office XML"
38201 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38206 \begin_inset CommandInset href
38208 name "Office Open XML"
38209 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38214 For this feature \SpecialChar LyX
38215 must have found the program
38219 during its configuration.
38220 This program is part of Gnumeric, so that you must have Gnumeric installed,
38221 also if you don't have tables in the Gnumeric format.
38222 For examples and possible limitations have a look at \SpecialChar LyX
38230 \begin_layout Description
38231 LilyPond This template is used for music notation typeset with the program
38232 \begin_inset Newline linebreak
38238 \begin_inset CommandInset href
38241 target "http://en.wikipedia.org/wiki/LilyPond"
38248 For \SpecialChar LyX
38249 's extended support for LilyPond have a look at \SpecialChar LyX
38257 \begin_layout Description
38258 PDFPages With this template you can insert PDF documents to your document.
38259 To specify the range of pages that should be included, use the option
38270 and \SpecialChar LyX
38274 The argument of this option is a comma separated list, containing page
38275 numbers (insert as option
38279 ), ranges of page numbers (
38283 ) or any combination.
38284 To insert empty pages use {}.
38286 \begin_inset space \thinspace{}
38290 \begin_inset space ~
38295 pages={3,{},8-11,15}
38297 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38298 Page ranges are specified in the syntax
38307 This selects all pages from
38320 defaults to the first page; omitting
38324 defaults to the last page of the document.
38325 The last page can also be selected with the keyword
38330 (This is only permitted in a page range.) So
38334 will insert all pages of the document and
38338 will insert all pages in reverse order.
38339 If the pages option is not specified, only the first page of the PDF is
38341 \begin_inset Newline newline
38348 inserts the pages with their original size, if this option is not given,
38349 the pages will be resized to fith the width of the page of your document.
38354 you can specify the width and height of the input pages and their rotation.
38355 If another width than 100
38356 \begin_inset space \thinspace{}
38359 Scale% is used, the option
38363 will be overwritten.
38364 For more info and possible options, have a look into the documentation
38365 of the \SpecialChar LaTeX
38371 \begin_inset CommandInset citation
38378 \begin_inset Index idx
38381 \begin_layout Plain Layout
38383 -packages ! pdfpages
38389 \begin_inset Newline newline
38392 To use this template in a
38396 presentation you need to first insert an
38400 environment and in a subsequent paragraph a \SpecialChar TeX
38401 -Code box containing the command
38406 setbeamertemplate{background canvas}{}
38409 Then you can insert as many paragraphs containing the PDFPages template
38411 Behind the included PDF pages you can resume the Beamer presentation by
38412 beginning a new frame or by starting a new section.
38413 To avoid stray blank pages prior to the PDF pages, make sure to use the
38418 alignment for the paragraph containing the template.
38419 \begin_inset Newline newline
38422 Here is an included PDF which is rotated by -5°:
38423 \begin_inset External
38425 filename clipart/Abstract.pdf
38426 extra LaTeX "noautoscale, pages=-"
38428 rotateOrigin bottomleft
38435 \begin_layout Description
38436 RasterImage This can be used for bitmap images.
38437 The image can be treated in the
38441 dialog like the images that are usually included via the
38445 dialog as described in section
38446 \begin_inset space ~
38450 \begin_inset CommandInset ref
38452 reference "sec:Graphics-Dialog"
38457 The difference to the normal image input is that only raster images are
38458 allowed; that means that PDF and EPS-images are not supported.
38459 Here is an inserted raster image:
38460 \begin_inset External
38461 template RasterImage
38462 filename clipart/ToolbarEnvBox.png
38469 \begin_layout Description
38470 XFig This template supports images created with the program
38473 \begin_inset CommandInset href
38476 target "http://en.wikipedia.org/wiki/Xfig"
38485 \begin_layout Standard
38486 \begin_inset Float table
38492 \begin_layout Plain Layout
38493 \begin_inset Caption Standard
38495 \begin_layout Plain Layout
38496 \begin_inset CommandInset label
38498 name "tab:Comparison-of-the"
38502 Comparison of the date input methods.
38510 \begin_layout Plain Layout
38512 \begin_inset Tabular
38513 <lyxtabular version="3" rows="4" columns="4">
38514 <features tabularvalignment="middle">
38515 <column alignment="center" valignment="top">
38516 <column alignment="center" valignment="top">
38517 <column alignment="center" valignment="top">
38518 <column alignment="center" valignment="top">
38520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38523 \begin_layout Plain Layout
38529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38532 \begin_layout Plain Layout
38535 External Material\SpecialChar menuseparator
38541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38544 \begin_layout Plain Layout
38547 Insert\SpecialChar menuseparator
38553 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38556 \begin_layout Plain Layout
38568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38571 \begin_layout Plain Layout
38578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38581 \begin_layout Plain Layout
38587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38590 \begin_layout Plain Layout
38596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38599 \begin_layout Plain Layout
38600 as \SpecialChar TeX
38608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38611 \begin_layout Plain Layout
38618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38621 \begin_layout Plain Layout
38627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38630 \begin_layout Plain Layout
38636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38639 \begin_layout Plain Layout
38647 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38650 \begin_layout Plain Layout
38656 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38659 \begin_layout Plain Layout
38665 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38668 \begin_layout Plain Layout
38674 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38677 \begin_layout Plain Layout
38696 \begin_layout Standard
38697 When you use the option
38709 dialog, only the path to the inserted file is shown in the output.
38710 \begin_inset Newline newline
38713 External material is displayed in \SpecialChar LyX
38714 either as a box like this:
38715 \begin_inset Graphics
38716 filename clipart/ExternalMaterialQt4.png
38718 scaleBeforeRotation
38722 or as image, depending on the option
38724 Show in \SpecialChar LyX
38730 and \SpecialChar LyX
38736 \begin_layout Standard
38743 manual explains how you can define your own templates.
38746 \begin_layout Section
38748 \begin_inset CommandInset label
38750 name "sec:Child-Documents"
38755 \begin_inset Index idx
38758 \begin_layout Plain Layout
38759 External Document Parts ! Child Documents
38765 \begin_inset Index idx
38768 \begin_layout Plain Layout
38777 \begin_layout Standard
38778 Child documents are used if you have a long document consisting of several
38779 larger parts or sections.
38780 For maintenance it is often useful and sometimes even required to split
38781 the document into several files that can be revised separately.
38782 The different documents are then the so called
38783 \begin_inset Quotes eld
38787 \begin_inset Quotes erd
38790 , and a master document connects them to print the full document or parts
38792 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38794 the bibliography, and labels for cross-references.
38797 \begin_layout Standard
38798 To be able to work on child documents without the need to open their master,
38799 specify in the child document the master in the menu
38801 Document\SpecialChar menuseparator
38802 Settings\SpecialChar menuseparator
38804 \begin_inset space ~
38810 This master document will then be used in the background by \SpecialChar LyX
38812 the child document.
38815 \begin_layout Standard
38816 Included documents are displayed in \SpecialChar LyX
38817 as a box like this:
38818 \begin_inset Graphics
38819 filename clipart/ChildDocumentQt4.png
38821 scaleBeforeRotation
38825 To include child documents in a master document use the menu
38827 Insert\SpecialChar menuseparator
38828 File\SpecialChar menuseparator
38830 \begin_inset space ~
38836 A dialog pops up where you can choose between four include methods:
38839 \begin_layout Description
38840 Include You can include \SpecialChar LyX
38841 - and \SpecialChar LaTeX
38851 dialog, the included document will be opened in \SpecialChar LyX
38852 in a new file tab so that
38854 \begin_inset Newline newline
38860 \begin_layout Standard
38861 Here is a child document inserted using
38866 \begin_inset CommandInset include
38867 LatexCommand include
38868 filename "DummyDocument1.lyx"
38875 \begin_layout Standard
38876 The section numbering includes the sections of the included files in the
38877 order they are inserted in the master document.
38878 The included example document has for example a subsection that is numbered
38879 as a subsection of this section.
38880 Labels of included documents can be referenced: Subsection
38881 \begin_inset space ~
38885 \begin_inset CommandInset ref
38887 reference "subsec:External-Subsection-1"
38894 \begin_layout Standard
38895 The preamble of the child document is ignored; only the preamble of the
38896 master document is used.
38897 Branches in child documents will be ignored by the master document when
38898 the master document does not have a branch with the same name.
38899 Included documents are inserted starting on a new page and ending with
38903 \begin_layout Standard
38904 \begin_inset Note Greyedout
38907 \begin_layout Plain Layout
38912 If you have included a \SpecialChar LyX
38913 - or \SpecialChar LaTeX
38914 -file, you are warned when you export/view
38915 the document in case the child document uses another document class than
38916 the master document as this will lead to unexpected outputs.
38924 \begin_layout Description
38925 Input This method is very similar to the Include method.
38926 The differences are:
38927 \begin_inset Separator parbreak
38934 \begin_layout Itemize
38935 Input files don't start with a new page and don't end with a page break.
38938 \begin_layout Itemize
38939 Input files can be previewed in \SpecialChar LyX
38943 \begin_inset space ~
38948 is enabled in \SpecialChar LyX
38949 's preferences under
38952 \begin_inset space ~
38956 \begin_inset space ~
38959 feel\SpecialChar menuseparator
38965 \begin_layout Itemize
38966 You cannot exclude Input files via the menu
38968 Document\SpecialChar menuseparator
38969 Settings\SpecialChar menuseparator
38976 \begin_layout Standard
38977 Here is a child document inserted using
38982 \begin_inset CommandInset include
38984 filename "DummyDocument2.lyx"
38991 \begin_layout Description
38992 Verbatim With this method any text file can be included.
38993 The file is shown in the output with its source code; no command used in
38994 the text is invoked.
38995 You can use the option
38997 Mark spaces in output
38999 that displays the character
39000 \begin_inset Quotes eld
39007 \begin_layout Plain Layout
39017 \begin_inset Quotes erd
39020 for every space character in the source code.
39021 The difference from the method via the menu
39023 Insert\SpecialChar menuseparator
39024 File\SpecialChar menuseparator
39026 \begin_inset space ~
39031 is that the document content is not shown in \SpecialChar LyX
39035 \begin_layout Standard
39036 Here is a child document inserted as Verbatim:
39037 \begin_inset CommandInset include
39038 LatexCommand verbatiminput
39039 filename "DummyTextDocument.txt"
39044 \begin_inset VSpace bigskip
39047 Here is a child document inserted as Verbatim using the
39049 Mark spaces in output
39052 \begin_inset CommandInset include
39053 LatexCommand verbatiminput*
39054 filename "DummyTextDocument.txt"
39061 \begin_layout Standard
39062 \begin_inset VSpace bigskip
39068 \begin_layout Standard
39069 \begin_inset Note Greyedout
39072 \begin_layout Plain Layout
39077 As you can see in the examples above, the text of the documents included
39082 is not broken at the end of the document lines.
39090 \begin_layout Description
39091 Listings This type is described in chapter
39092 \begin_inset space ~
39096 \begin_inset CommandInset ref
39098 reference "cha:Program-Code-Listings"
39105 \begin_layout Standard
39106 \begin_inset Note Greyedout
39109 \begin_layout Plain Layout
39114 Including the same document twice in a document using different methods
39115 could cause \SpecialChar LaTeX
39124 \begin_layout Standard
39125 If you want to view/export only selected children of your master document,
39126 either because you want to save compiling time or because you want to distribut
39127 e single chapters of the book you are just writing, you can exclude children
39129 This is done via the menu
39131 Document\SpecialChar menuseparator
39132 Settings\SpecialChar menuseparator
39136 You can exclude\SpecialChar breakableslash
39137 include children by double-clicking on the
39141 column of the respective child document in the list (note that this only
39142 works for documents embedded via
39143 \begin_inset Quotes eld
39147 \begin_inset Quotes erd
39151 \begin_inset Quotes eld
39155 \begin_inset Quotes erd
39161 Maintain counters and references
39163 is enabled, \SpecialChar LyX
39164 will assure that all page numbers, references etc.
39165 \begin_inset space ~
39168 are correct as if the whole document was processed.
39169 This is useful if you want the selected sub-documents to look exactly as
39170 in the context of the whole document.
39171 However, \SpecialChar LyX
39172 needs to process the whole document in the background for this
39174 So if you want to save compile time and if counters and references do not
39175 need to be correct, disable this checkbox.
39178 \begin_layout Standard
39179 Alternatively, you can put each included file into a branch.
39183 \begin_layout Plain Layout
39184 Branches are described in section
39188 of the \SpecialChar LyX
39198 By enabling\SpecialChar breakableslash
39199 disabling branches you can decide which included files will
39200 appear in the output.
39201 This has the advantage that it also works with Input'ed sub-documents.
39202 However, counters and references will not be maintained with this approach.
39205 \begin_layout Chapter
39206 Program Code Listings
39207 \begin_inset CommandInset label
39209 name "cha:Program-Code-Listings"
39214 \begin_inset Index idx
39217 \begin_layout Plain Layout
39224 \begin_inset Index idx
39227 \begin_layout Plain Layout
39234 \begin_inset Index idx
39237 \begin_layout Plain Layout
39246 \begin_layout Standard
39247 To include and typeset program code you can use the
39251 inset that can be inserted via the menu
39253 Insert\SpecialChar menuseparator
39257 The \SpecialChar LaTeX
39263 \begin_inset Index idx
39266 \begin_layout Plain Layout
39268 -packages ! listings
39273 provides a powerful and flexible way to insert program source code into
39277 \begin_layout Standard
39278 Right-clicking on a listings inset opens the context menu containing where
39279 you can set the listings format.
39282 \begin_layout Standard
39283 By default, a listing starts a new paragraph in the output.
39284 The placement option
39287 \begin_inset space ~
39292 prints the listing inline like this:
39293 \begin_inset listings
39294 lstparams "language={C++}"
39298 \begin_layout Plain Layout
39306 \begin_inset Newline newline
39313 creates a listings float where you can specify the placement options
39314 \begin_inset Quotes eld
39322 \begin_inset Quotes erd
39326 \begin_inset Quotes eld
39334 \begin_inset Quotes erd
39338 \begin_inset Quotes eld
39346 \begin_inset Quotes erd
39350 \begin_inset Quotes eld
39358 \begin_inset Quotes erd
39361 corresponding to the float placement options described in section
39362 \begin_inset space ~
39366 \begin_inset CommandInset ref
39368 reference "sec:Float-Placement"
39373 The placement options can be mixed and are inserted without any separation,
39375 \begin_inset space \thinspace{}
39379 \begin_inset space \space{}
39383 \begin_inset Quotes eld
39391 \begin_inset Quotes erd
39396 \begin_inset Quotes eld
39400 \begin_inset Quotes erd
39403 has sometimes no effect, but you don't need to use the
39407 option in this case as also non-float listings can have captions and be
39411 \begin_layout Standard
39412 You can add captions to listings with the menu
39414 Insert\SpecialChar menuseparator
39418 Listings can be referenced like floats: Listing
39419 \begin_inset space ~
39423 \begin_inset CommandInset ref
39425 reference "lst:Example-Listing"
39430 A list of listings which contains all listings with captions can be created
39433 Insert\SpecialChar menuseparator
39435 \begin_inset space ~
39439 \begin_inset space ~
39442 TOC\SpecialChar menuseparator
39446 The list entries are the listing caption and the listing number.
39449 \begin_layout Standard
39450 \begin_inset listings
39451 lstparams "language=Python"
39455 \begin_layout Plain Layout
39457 \begin_inset Caption Standard
39459 \begin_layout Plain Layout
39460 \begin_inset CommandInset label
39462 name "lst:Example-Listing"
39466 Example Listing float
39471 # Example listing float
39474 \begin_layout Plain Layout
39479 \begin_layout Plain Layout
39481 'this is a python function'
39484 \begin_layout Plain Layout
39494 \begin_layout Standard
39495 When you have set a programming language in the listings dialog, the keywords
39496 of this language will be recognized and specially typeset in the output.
39497 In the example listings the Python keyword
39498 \begin_inset Quotes eld
39502 \begin_inset Quotes erd
39505 is recognized and printed bold in the output.
39508 \begin_layout Standard
39509 \begin_inset Note Greyedout
39512 \begin_layout Plain Layout
39517 If you don't get bold keywords when using typewriter fonts, your
39521 font probably doesn't provide a bold shape.
39522 In this case select a different one in the menu
39524 Document\SpecialChar menuseparator
39525 Settings\SpecialChar menuseparator
39537 provide bold shapes.)
39545 \begin_layout Standard
39549 \begin_inset space ~
39554 of the listings dialog you can specify the line numbering style.
39555 You can insert a number to specify which lines are numbered in the field
39562 \begin_inset space \thinspace{}
39566 \begin_inset space \space{}
39570 \begin_inset Quotes eld
39574 \begin_inset Quotes erd
39577 , only every 3rd line will be numbered.
39580 \begin_layout Standard
39581 You can furthermore specify a range of lines; only these will then appear
39585 Extended character table
39587 should be used when you use national characters like the German umlauts
39589 \begin_inset Newline newline
39592 Here is an example listing with left line numbering, step
39593 \begin_inset Quotes eld
39597 \begin_inset Quotes erd
39601 \begin_inset Quotes eld
39605 \begin_inset Quotes erd
39609 \begin_inset Quotes eld
39612 Extended character table
39613 \begin_inset Quotes erd
39617 \begin_inset Quotes eld
39621 \begin_inset space ~
39625 \begin_inset space ~
39629 \begin_inset Quotes erd
39633 \begin_inset space \thinspace{}
39637 \begin_inset space \thinspace{}
39643 \begin_layout Standard
39644 \begin_inset listings
39645 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39649 \begin_layout Plain Layout
39654 \begin_layout Plain Layout
39656 'this is a python function'
39659 \begin_layout Plain Layout
39664 \begin_layout Plain Layout
39669 \begin_layout Plain Layout
39671 'This is a German word: Tschüß'
39674 \begin_layout Plain Layout
39679 \begin_layout Plain Layout
39684 \begin_layout Plain Layout
39686 'this is a python function'
39689 \begin_layout Plain Layout
39699 \begin_layout Standard
39700 When you have tabulators in your listing, you can specify the number of
39701 characters that are spanned by a tabulator in the field
39704 \begin_inset space ~
39712 \begin_layout Standard
39713 \begin_inset Note Greyedout
39716 \begin_layout Plain Layout
39721 Due to a bug in the
39725 package the line numbering is shifted by a line by every previous listing.
39726 That's the reason why the lines 2 and 5 are numbered in the above listing
39727 and not the lines 3 and 6.
39735 \begin_layout Standard
39736 \begin_inset VSpace bigskip
39742 \begin_layout Standard
39743 It is also possible to print lines from a file as listing.
39744 To do this, use the menu
39746 Insert\SpecialChar menuseparator
39747 File\SpecialChar menuseparator
39750 and choose the type
39758 \begin_layout Plain Layout
39759 The other child document types are described in section
39760 \begin_inset space ~
39764 \begin_inset CommandInset ref
39766 reference "sec:Child-Documents"
39775 In the child document dialog you can specify the listing parameters in
39777 To show a list of all available parameters, type in a question mark
39778 \begin_inset Quotes eld
39782 \begin_inset Quotes erd
39788 \begin_layout Standard
39789 To reference child document listings, write a label text into the corresponding
39790 field of the child document dialog.
39791 The label can then be referenced using the menu
39793 Insert\SpecialChar menuseparator
39799 \begin_layout Standard
39801 \begin_inset space ~
39805 \begin_inset CommandInset ref
39807 reference "lst:file-listing"
39811 is an example for a listing of a file; there the lines 10
39812 \begin_inset space \thinspace{}
39816 \begin_inset space \thinspace{}
39819 15 of this \SpecialChar LyX
39823 \begin_layout Standard
39824 \begin_inset CommandInset include
39825 LatexCommand lstinputlisting
39826 filename "EmbeddedObjects.lyx"
39827 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39834 \begin_layout Standard
39835 \begin_inset VSpace bigskip
39841 \begin_layout Standard
39842 Inserting a formula into a listing can be done the following way:
39845 \begin_layout Enumerate
39846 Open the listings dialog and add
39847 \begin_inset Newline newline
39855 \begin_inset Newline newline
39858 to the field of the
39865 \begin_layout Enumerate
39866 Create a formula outside the listing
39869 \begin_layout Enumerate
39870 Copy the content of the formula (not the formula inset) to the clipboard
39880 \begin_layout Enumerate
39881 In the listing write
39882 \begin_inset Quotes eld
39890 \begin_inset Quotes erd
39893 and copy from the clipboard between the dollar-signs (shortcut
39902 \begin_layout Standard
39903 \begin_inset listings
39904 lstparams "language=Python,mathescape=true"
39908 \begin_layout Plain Layout
39910 \begin_inset Caption Standard
39912 \begin_layout Plain Layout
39913 Example Listing float containing a formula
39918 # Example listing float
39921 \begin_layout Plain Layout
39926 \begin_layout Plain Layout
39939 \begin_layout Plain Layout
39949 \begin_layout Standard
39950 \begin_inset VSpace bigskip
39956 \begin_layout Standard
39957 Global listings settings can be set in the
39959 Document\SpecialChar menuseparator
39960 Settings\SpecialChar menuseparator
39964 To get there a list of available options, type in a question mark
39965 \begin_inset Quotes eld
39969 \begin_inset Quotes erd
39975 \begin_layout Standard
39976 For more information about the
39980 package, we refer to its documentation
39981 \begin_inset CommandInset citation
39990 \begin_layout Standard
39991 \begin_inset Newpage newpage
39997 \begin_layout Chapter
39999 Units available in \SpecialChar LyX
40001 \begin_inset Index idx
40004 \begin_layout Plain Layout
40011 \begin_inset CommandInset label
40013 name "cha:Units-available-in"
40020 \begin_layout Standard
40021 To understand the units described in this documentation, Table
40022 \begin_inset space ~
40026 \begin_inset CommandInset ref
40028 reference "tab:Units"
40032 explains all units available in \SpecialChar LyX
40036 \begin_layout Standard
40037 \begin_inset Float table
40043 \begin_layout Plain Layout
40044 \begin_inset Caption Standard
40046 \begin_layout Plain Layout
40047 \begin_inset CommandInset label
40061 \begin_layout Plain Layout
40062 \begin_inset VSpace medskip
40068 \begin_layout Plain Layout
40070 \begin_inset Tabular
40071 <lyxtabular version="3" rows="20" columns="2">
40072 <features tabularvalignment="middle">
40073 <column alignment="center" valignment="top">
40074 <column alignment="center" valignment="top">
40076 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40079 \begin_layout Plain Layout
40085 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40088 \begin_layout Plain Layout
40096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40099 \begin_layout Plain Layout
40105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40108 \begin_layout Plain Layout
40116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40119 \begin_layout Plain Layout
40125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40128 \begin_layout Plain Layout
40136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40139 \begin_layout Plain Layout
40145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40148 \begin_layout Plain Layout
40156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40159 \begin_layout Plain Layout
40165 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40168 \begin_layout Plain Layout
40170 \begin_inset space \thinspace{}
40174 \begin_inset space \thinspace{}
40184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40187 \begin_layout Plain Layout
40193 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40196 \begin_layout Plain Layout
40198 \begin_inset space \thinspace{}
40202 \begin_inset space \thinspace{}
40212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40215 \begin_layout Plain Layout
40221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40224 \begin_layout Plain Layout
40225 scaled point (65536
40226 \begin_inset space \thinspace{}
40230 \begin_inset space \thinspace{}
40240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40243 \begin_layout Plain Layout
40249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40252 \begin_layout Plain Layout
40254 \begin_inset space \thinspace{}
40258 \begin_inset space \thinspace{}
40268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40271 \begin_layout Plain Layout
40277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40280 \begin_layout Plain Layout
40282 \begin_inset space \thinspace{}
40286 \begin_inset Formula $\approx$
40290 \begin_inset space \thinspace{}
40300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40303 \begin_layout Plain Layout
40309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40312 \begin_layout Plain Layout
40314 \begin_inset space \thinspace{}
40318 \begin_inset space \thinspace{}
40328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40331 \begin_layout Plain Layout
40337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40340 \begin_layout Plain Layout
40341 % of original image width
40348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40351 \begin_layout Plain Layout
40357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40360 \begin_layout Plain Layout
40368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40371 \begin_layout Plain Layout
40377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40380 \begin_layout Plain Layout
40388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40391 \begin_layout Plain Layout
40397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40400 \begin_layout Plain Layout
40408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40411 \begin_layout Plain Layout
40417 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40420 \begin_layout Plain Layout
40428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40431 \begin_layout Plain Layout
40437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40440 \begin_layout Plain Layout
40448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40451 \begin_layout Plain Layout
40457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40460 \begin_layout Plain Layout
40468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40471 \begin_layout Plain Layout
40477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40480 \begin_layout Plain Layout
40492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40495 \begin_layout Plain Layout
40501 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40504 \begin_layout Plain Layout
40516 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40519 \begin_layout Plain Layout
40525 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40528 \begin_layout Plain Layout
40530 \begin_inset space \thinspace{}
40534 \begin_inset space \thinspace{}
40555 \begin_layout Chapter
40556 Output File Formats with Graphics
40557 \begin_inset CommandInset label
40559 name "cha:Output-File-Formats"
40566 \begin_layout Section
40568 \begin_inset Index idx
40571 \begin_layout Plain Layout
40578 \begin_inset Index idx
40581 \begin_layout Plain Layout
40586 \begin_layout Plain Layout
40597 \begin_layout Plain Layout
40612 \begin_layout Standard
40613 This file type has the extension
40614 \begin_inset Quotes eld
40622 \begin_inset Quotes erd
40627 \begin_inset Quotes eld
40631 \begin_inset Quotes erd
40634 (DVI), because it is completely portable; you can move them from one machine
40635 to another without needing to do any sort of conversion.
40636 At the time when this file-format was developed, this was no matter of
40638 DVIs are used for quick previews and as pre-stage for other output formats,
40642 \begin_layout Standard
40643 \begin_inset Note Greyedout
40646 \begin_layout Plain Layout
40651 DVI-files do not contain images; they will only be a linked.
40656 So don't forget this, if you move your
40660 file to another computer.
40661 This property can also slow down your computer when you view the DVI, because
40662 the DVI-viewer has to convert the image in the background to make it visible
40663 when you scroll in the DVI.
40664 So it is recommended that you use PDF for files with many images.
40667 \begin_layout Standard
40668 You can export your document to DVI by using the menu
40670 File\SpecialChar menuseparator
40671 Export\SpecialChar menuseparator
40675 You can view your document as DVI via the
40682 \begin_layout Section
40684 \begin_inset Index idx
40687 \begin_layout Plain Layout
40688 File Formats ! PostScript
40694 \begin_inset Index idx
40697 \begin_layout Plain Layout
40702 \begin_layout Plain Layout
40713 \begin_layout Plain Layout
40728 \begin_layout Standard
40729 This file type has the extension
40730 \begin_inset Quotes eld
40738 \begin_inset Quotes erd
40742 PostScript was developed by the company
40746 as a printer language.
40747 The file therefore contains commands that the printer uses to print the
40749 PostScript can be seen as a
40750 \begin_inset Quotes eld
40753 programming language
40754 \begin_inset Quotes erd
40757 ; you can calculate with it and draw diagrams and images
40761 \begin_layout Plain Layout
40762 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
40769 \begin_inset CommandInset citation
40781 Due to this ability, the files are often bigger than PDFs.
40784 \begin_layout Standard
40785 PostScript can only contain images in the format
40786 \begin_inset Quotes eld
40789 Encapsulated PostScript
40790 \begin_inset Quotes erd
40793 (EPS, file extension
40794 \begin_inset Quotes eld
40802 \begin_inset Quotes erd
40806 As \SpecialChar LyX
40807 allows you to use any known image format in your document, it has to
40808 convert images in the background to EPS.
40810 \begin_inset space ~
40814 \begin_inset space ~
40817 images in your document, \SpecialChar LyX
40819 \begin_inset space ~
40822 conversions whenever you view or export your document.
40823 This will slow down your work flow with \SpecialChar LyX
40825 So if you plan to use PostScript, you can insert your images directly as
40826 EPS to avoid this problem.
40829 \begin_layout Standard
40830 You can export your document to PostScript using the menu
40832 File\SpecialChar menuseparator
40833 Export\SpecialChar menuseparator
40837 You can view your document as PostScript via the
40844 \begin_layout Section
40846 \begin_inset Index idx
40849 \begin_layout Plain Layout
40856 \begin_inset Index idx
40859 \begin_layout Plain Layout
40868 \begin_layout Standard
40869 This file type has the extension
40870 \begin_inset Quotes eld
40878 \begin_inset Quotes erd
40883 \begin_inset Quotes eld
40886 Portable Document Format
40887 \begin_inset Quotes erd
40890 (PDF) was developed by
40894 as a derivative of PostScript.
40895 It is more compressed and it uses fewer commands than PostScript.
40897 \begin_inset Quotes eld
40901 \begin_inset Quotes erd
40904 implies, it can be processed at any computer system and the printed output
40905 looks exactly the same.
40908 \begin_layout Standard
40909 PDF can contain images in its own PDF format, in the format
40910 \begin_inset Quotes eld
40913 Joint Photographic Experts Group
40914 \begin_inset Quotes erd
40917 (JPG, file extension
40918 \begin_inset Quotes eld
40926 \begin_inset Quotes erd
40930 \begin_inset Quotes eld
40938 \begin_inset Quotes erd
40941 ), and in the format
40942 \begin_inset Quotes eld
40945 Portable Network Graphics
40946 \begin_inset Quotes erd
40949 (PNG, file extension
40950 \begin_inset Quotes eld
40958 \begin_inset Quotes erd
40962 Nevertheless you can use any other image format, because \SpecialChar LyX
40964 in the background to one of these formats.
40965 But as described in the section about PostScript, the image conversion
40966 will slow down your work flow.
40967 So it is recommended that you use images in one of the three mentioned
40971 \begin_layout Standard
40972 You can export your document to PDF via the menu
40974 File\SpecialChar menuseparator
40977 in three different ways:
40980 \begin_layout Description
40982 \begin_inset space ~
40985 (ps2pdf) This uses the program
40989 that creates a PDF from a PostScript-version of your file.
40990 The PostScript-version is produced by the program
40994 which uses a DVI-version as intermediate step.
40995 So this export variant consists of three conversions.
40998 \begin_layout Description
41000 \begin_inset space ~
41003 (dvipdfm) This uses the program
41007 that converts your file in the background to DVI and in a second step to
41011 \begin_layout Description
41013 \begin_inset space ~
41016 (pdflatex) This uses the program
41020 that converts your file directly to PDF.
41023 \begin_layout Standard
41024 It is recommended that you use
41027 \begin_inset space ~
41036 supports all features of actual PDF-versions, is quick and works stable.
41041 is not under development and therefore a bit outdated.
41044 \begin_layout Standard
41045 You can view your document as PDF via the
41049 menu or by using a toolbar button.
41052 \begin_layout Chapter
41053 List of dvips color names
41054 \begin_inset CommandInset label
41056 name "chap:List-of-dvips-colornames"
41063 \begin_layout Standard
41064 \begin_inset Tabular
41065 <lyxtabular version="3" rows="17" columns="4">
41066 <features tabularvalignment="middle">
41067 <column alignment="left" valignment="top" width="0pt">
41068 <column alignment="left" valignment="top" width="0pt">
41069 <column alignment="left" valignment="top" width="0pt">
41070 <column alignment="left" valignment="top" width="0pt">
41072 <cell alignment="left" valignment="top" usebox="none">
41075 \begin_layout Plain Layout
41079 \begin_layout Plain Layout
41092 \begin_layout Plain Layout
41103 \begin_layout Plain Layout
41115 <cell alignment="left" valignment="top" usebox="none">
41118 \begin_layout Plain Layout
41122 \begin_layout Plain Layout
41135 \begin_layout Plain Layout
41146 \begin_layout Plain Layout
41158 <cell alignment="left" valignment="top" usebox="none">
41161 \begin_layout Plain Layout
41165 \begin_layout Plain Layout
41178 \begin_layout Plain Layout
41189 \begin_layout Plain Layout
41201 <cell alignment="left" valignment="top" usebox="none">
41204 \begin_layout Plain Layout
41208 \begin_layout Plain Layout
41221 \begin_layout Plain Layout
41232 \begin_layout Plain Layout
41246 <cell alignment="center" valignment="top" usebox="none">
41249 \begin_layout Plain Layout
41253 \begin_layout Plain Layout
41266 \begin_layout Plain Layout
41274 \begin_inset Phantom Phantom
41277 \begin_layout Plain Layout
41287 \begin_layout Plain Layout
41299 <cell alignment="center" valignment="top" usebox="none">
41302 \begin_layout Plain Layout
41306 \begin_layout Plain Layout
41319 \begin_layout Plain Layout
41327 \begin_inset Phantom Phantom
41330 \begin_layout Plain Layout
41340 \begin_layout Plain Layout
41352 <cell alignment="center" valignment="top" usebox="none">
41355 \begin_layout Plain Layout
41359 \begin_layout Plain Layout
41372 \begin_layout Plain Layout
41380 \begin_inset Phantom Phantom
41383 \begin_layout Plain Layout
41393 \begin_layout Plain Layout
41405 <cell alignment="center" valignment="top" usebox="none">
41408 \begin_layout Plain Layout
41412 \begin_layout Plain Layout
41425 \begin_layout Plain Layout
41433 \begin_inset Phantom Phantom
41436 \begin_layout Plain Layout
41446 \begin_layout Plain Layout
41460 <cell alignment="left" valignment="top" usebox="none">
41463 \begin_layout Plain Layout
41467 \begin_layout Plain Layout
41480 \begin_layout Plain Layout
41488 \begin_inset Phantom Phantom
41491 \begin_layout Plain Layout
41501 \begin_layout Plain Layout
41513 <cell alignment="left" valignment="top" usebox="none">
41516 \begin_layout Plain Layout
41520 \begin_layout Plain Layout
41533 \begin_layout Plain Layout
41541 \begin_inset Phantom Phantom
41544 \begin_layout Plain Layout
41554 \begin_layout Plain Layout
41566 <cell alignment="left" valignment="top" usebox="none">
41569 \begin_layout Plain Layout
41573 \begin_layout Plain Layout
41586 \begin_layout Plain Layout
41594 \begin_inset Phantom Phantom
41597 \begin_layout Plain Layout
41607 \begin_layout Plain Layout
41619 <cell alignment="left" valignment="top" usebox="none">
41622 \begin_layout Plain Layout
41626 \begin_layout Plain Layout
41639 \begin_layout Plain Layout
41647 \begin_inset Phantom Phantom
41650 \begin_layout Plain Layout
41660 \begin_layout Plain Layout
41674 <cell alignment="left" valignment="top" usebox="none">
41677 \begin_layout Plain Layout
41681 \begin_layout Plain Layout
41694 \begin_layout Plain Layout
41702 \begin_inset Phantom Phantom
41705 \begin_layout Plain Layout
41715 \begin_layout Plain Layout
41727 <cell alignment="left" valignment="top" usebox="none">
41730 \begin_layout Plain Layout
41734 \begin_layout Plain Layout
41747 \begin_layout Plain Layout
41755 \begin_inset Phantom Phantom
41758 \begin_layout Plain Layout
41768 \begin_layout Plain Layout
41780 <cell alignment="left" valignment="top" usebox="none">
41783 \begin_layout Plain Layout
41787 \begin_layout Plain Layout
41800 \begin_layout Plain Layout
41808 \begin_inset Phantom Phantom
41811 \begin_layout Plain Layout
41821 \begin_layout Plain Layout
41833 <cell alignment="left" valignment="top" usebox="none">
41836 \begin_layout Plain Layout
41840 \begin_layout Plain Layout
41853 \begin_layout Plain Layout
41861 \begin_inset Phantom Phantom
41864 \begin_layout Plain Layout
41874 \begin_layout Plain Layout
41888 <cell alignment="left" valignment="top" usebox="none">
41891 \begin_layout Plain Layout
41895 \begin_layout Plain Layout
41908 \begin_layout Plain Layout
41916 \begin_inset Phantom Phantom
41919 \begin_layout Plain Layout
41929 \begin_layout Plain Layout
41941 <cell alignment="left" valignment="top" usebox="none">
41944 \begin_layout Plain Layout
41948 \begin_layout Plain Layout
41961 \begin_layout Plain Layout
41969 \begin_inset Phantom Phantom
41972 \begin_layout Plain Layout
41982 \begin_layout Plain Layout
41994 <cell alignment="left" valignment="top" usebox="none">
41997 \begin_layout Plain Layout
42001 \begin_layout Plain Layout
42014 \begin_layout Plain Layout
42022 \begin_inset Phantom Phantom
42025 \begin_layout Plain Layout
42035 \begin_layout Plain Layout
42047 <cell alignment="left" valignment="top" usebox="none">
42050 \begin_layout Plain Layout
42054 \begin_layout Plain Layout
42067 \begin_layout Plain Layout
42075 \begin_inset Phantom Phantom
42078 \begin_layout Plain Layout
42088 \begin_layout Plain Layout
42102 <cell alignment="left" valignment="top" usebox="none">
42105 \begin_layout Plain Layout
42109 \begin_layout Plain Layout
42122 \begin_layout Plain Layout
42130 \begin_inset Phantom Phantom
42133 \begin_layout Plain Layout
42143 \begin_layout Plain Layout
42155 <cell alignment="left" valignment="top" usebox="none">
42158 \begin_layout Plain Layout
42162 \begin_layout Plain Layout
42175 \begin_layout Plain Layout
42183 \begin_inset Phantom Phantom
42186 \begin_layout Plain Layout
42196 \begin_layout Plain Layout
42208 <cell alignment="left" valignment="top" usebox="none">
42211 \begin_layout Plain Layout
42215 \begin_layout Plain Layout
42228 \begin_layout Plain Layout
42236 \begin_inset Phantom Phantom
42239 \begin_layout Plain Layout
42249 \begin_layout Plain Layout
42261 <cell alignment="left" valignment="top" usebox="none">
42264 \begin_layout Plain Layout
42268 \begin_layout Plain Layout
42281 \begin_layout Plain Layout
42289 \begin_inset Phantom Phantom
42292 \begin_layout Plain Layout
42302 \begin_layout Plain Layout
42316 <cell alignment="center" valignment="top" usebox="none">
42319 \begin_layout Plain Layout
42323 \begin_layout Plain Layout
42336 \begin_layout Plain Layout
42344 \begin_inset Phantom Phantom
42347 \begin_layout Plain Layout
42357 \begin_layout Plain Layout
42369 <cell alignment="center" valignment="top" usebox="none">
42372 \begin_layout Plain Layout
42376 \begin_layout Plain Layout
42389 \begin_layout Plain Layout
42397 \begin_inset Phantom Phantom
42400 \begin_layout Plain Layout
42410 \begin_layout Plain Layout
42422 <cell alignment="center" valignment="top" usebox="none">
42425 \begin_layout Plain Layout
42429 \begin_layout Plain Layout
42442 \begin_layout Plain Layout
42450 \begin_inset Phantom Phantom
42453 \begin_layout Plain Layout
42463 \begin_layout Plain Layout
42475 <cell alignment="center" valignment="top" usebox="none">
42478 \begin_layout Plain Layout
42482 \begin_layout Plain Layout
42495 \begin_layout Plain Layout
42503 \begin_inset Phantom Phantom
42506 \begin_layout Plain Layout
42516 \begin_layout Plain Layout
42530 <cell alignment="left" valignment="top" usebox="none">
42533 \begin_layout Plain Layout
42537 \begin_layout Plain Layout
42550 \begin_layout Plain Layout
42558 \begin_inset Phantom Phantom
42561 \begin_layout Plain Layout
42571 \begin_layout Plain Layout
42583 <cell alignment="left" valignment="top" usebox="none">
42586 \begin_layout Plain Layout
42590 \begin_layout Plain Layout
42603 \begin_layout Plain Layout
42611 \begin_inset Phantom Phantom
42614 \begin_layout Plain Layout
42624 \begin_layout Plain Layout
42636 <cell alignment="left" valignment="top" usebox="none">
42639 \begin_layout Plain Layout
42643 \begin_layout Plain Layout
42656 \begin_layout Plain Layout
42664 \begin_inset Phantom Phantom
42667 \begin_layout Plain Layout
42677 \begin_layout Plain Layout
42689 <cell alignment="left" valignment="top" usebox="none">
42692 \begin_layout Plain Layout
42696 \begin_layout Plain Layout
42709 \begin_layout Plain Layout
42717 \begin_inset Phantom Phantom
42720 \begin_layout Plain Layout
42730 \begin_layout Plain Layout
42744 <cell alignment="left" valignment="top" usebox="none">
42747 \begin_layout Plain Layout
42751 \begin_layout Plain Layout
42764 \begin_layout Plain Layout
42772 \begin_inset Phantom Phantom
42775 \begin_layout Plain Layout
42785 \begin_layout Plain Layout
42797 <cell alignment="left" valignment="top" usebox="none">
42800 \begin_layout Plain Layout
42804 \begin_layout Plain Layout
42817 \begin_layout Plain Layout
42825 \begin_inset Phantom Phantom
42828 \begin_layout Plain Layout
42838 \begin_layout Plain Layout
42850 <cell alignment="left" valignment="top" usebox="none">
42853 \begin_layout Plain Layout
42857 \begin_layout Plain Layout
42870 \begin_layout Plain Layout
42878 \begin_inset Phantom Phantom
42881 \begin_layout Plain Layout
42891 \begin_layout Plain Layout
42903 <cell alignment="left" valignment="top" usebox="none">
42906 \begin_layout Plain Layout
42910 \begin_layout Plain Layout
42923 \begin_layout Plain Layout
42931 \begin_inset Phantom Phantom
42934 \begin_layout Plain Layout
42944 \begin_layout Plain Layout
42958 <cell alignment="left" valignment="top" usebox="none">
42961 \begin_layout Plain Layout
42965 \begin_layout Plain Layout
42978 \begin_layout Plain Layout
42986 \begin_inset Phantom Phantom
42989 \begin_layout Plain Layout
42999 \begin_layout Plain Layout
43011 <cell alignment="left" valignment="top" usebox="none">
43014 \begin_layout Plain Layout
43018 \begin_layout Plain Layout
43031 \begin_layout Plain Layout
43039 \begin_inset Phantom Phantom
43042 \begin_layout Plain Layout
43052 \begin_layout Plain Layout
43064 <cell alignment="left" valignment="top" usebox="none">
43067 \begin_layout Plain Layout
43071 \begin_layout Plain Layout
43084 \begin_layout Plain Layout
43092 \begin_inset Phantom Phantom
43095 \begin_layout Plain Layout
43105 \begin_layout Plain Layout
43117 <cell alignment="left" valignment="top" usebox="none">
43120 \begin_layout Plain Layout
43124 \begin_layout Plain Layout
43137 \begin_layout Plain Layout
43145 \begin_inset Phantom Phantom
43148 \begin_layout Plain Layout
43158 \begin_layout Plain Layout
43172 <cell alignment="left" valignment="top" usebox="none">
43175 \begin_layout Plain Layout
43179 \begin_layout Plain Layout
43192 \begin_layout Plain Layout
43200 \begin_inset Phantom Phantom
43203 \begin_layout Plain Layout
43213 \begin_layout Plain Layout
43225 <cell alignment="left" valignment="top" usebox="none">
43228 \begin_layout Plain Layout
43232 \begin_layout Plain Layout
43245 \begin_layout Plain Layout
43253 \begin_inset Phantom Phantom
43256 \begin_layout Plain Layout
43266 \begin_layout Plain Layout
43278 <cell alignment="left" valignment="top" usebox="none">
43281 \begin_layout Plain Layout
43285 \begin_layout Plain Layout
43298 \begin_layout Plain Layout
43306 \begin_inset Phantom Phantom
43309 \begin_layout Plain Layout
43319 \begin_layout Plain Layout
43331 <cell alignment="left" valignment="top" usebox="none">
43334 \begin_layout Plain Layout
43338 \begin_layout Plain Layout
43351 \begin_layout Plain Layout
43359 \begin_inset Phantom Phantom
43362 \begin_layout Plain Layout
43372 \begin_layout Plain Layout
43386 <cell alignment="left" valignment="top" usebox="none">
43389 \begin_layout Plain Layout
43393 \begin_layout Plain Layout
43406 \begin_layout Plain Layout
43414 \begin_inset Phantom Phantom
43417 \begin_layout Plain Layout
43427 \begin_layout Plain Layout
43439 <cell alignment="left" valignment="top" usebox="none">
43442 \begin_layout Plain Layout
43446 \begin_layout Plain Layout
43459 \begin_layout Plain Layout
43467 \begin_inset Phantom Phantom
43470 \begin_layout Plain Layout
43480 \begin_layout Plain Layout
43492 <cell alignment="left" valignment="top" usebox="none">
43495 \begin_layout Plain Layout
43499 \begin_layout Plain Layout
43512 \begin_layout Plain Layout
43520 \begin_inset Phantom Phantom
43523 \begin_layout Plain Layout
43533 \begin_layout Plain Layout
43545 <cell alignment="left" valignment="top" usebox="none">
43548 \begin_layout Plain Layout
43552 \begin_layout Plain Layout
43565 \begin_layout Plain Layout
43573 \begin_inset Phantom Phantom
43576 \begin_layout Plain Layout
43586 \begin_layout Plain Layout
43600 <cell alignment="left" valignment="top" usebox="none">
43603 \begin_layout Plain Layout
43607 \begin_layout Plain Layout
43620 \begin_layout Plain Layout
43628 \begin_inset Phantom Phantom
43631 \begin_layout Plain Layout
43641 \begin_layout Plain Layout
43653 <cell alignment="left" valignment="top" usebox="none">
43656 \begin_layout Plain Layout
43660 \begin_layout Plain Layout
43673 \begin_layout Plain Layout
43681 \begin_inset Phantom Phantom
43684 \begin_layout Plain Layout
43694 \begin_layout Plain Layout
43706 <cell alignment="left" valignment="top" usebox="none">
43709 \begin_layout Plain Layout
43713 \begin_layout Plain Layout
43726 \begin_layout Plain Layout
43734 \begin_inset Phantom Phantom
43737 \begin_layout Plain Layout
43747 \begin_layout Plain Layout
43759 <cell alignment="left" valignment="top" usebox="none">
43762 \begin_layout Plain Layout
43766 \begin_layout Plain Layout
43779 \begin_layout Plain Layout
43787 \begin_inset Phantom Phantom
43790 \begin_layout Plain Layout
43800 \begin_layout Plain Layout
43814 <cell alignment="left" valignment="top" usebox="none">
43817 \begin_layout Plain Layout
43821 \begin_layout Plain Layout
43834 \begin_layout Plain Layout
43842 \begin_inset Phantom Phantom
43845 \begin_layout Plain Layout
43855 \begin_layout Plain Layout
43867 <cell alignment="left" valignment="top" usebox="none">
43870 \begin_layout Plain Layout
43874 \begin_layout Plain Layout
43887 \begin_layout Plain Layout
43895 \begin_inset Phantom Phantom
43898 \begin_layout Plain Layout
43908 \begin_layout Plain Layout
43920 <cell alignment="left" valignment="top" usebox="none">
43923 \begin_layout Plain Layout
43927 \begin_layout Plain Layout
43940 \begin_layout Plain Layout
43948 \begin_inset Phantom Phantom
43951 \begin_layout Plain Layout
43961 \begin_layout Plain Layout
43973 <cell alignment="left" valignment="top" usebox="none">
43976 \begin_layout Plain Layout
43980 \begin_layout Plain Layout
43993 \begin_layout Plain Layout
44001 \begin_inset Phantom Phantom
44004 \begin_layout Plain Layout
44014 \begin_layout Plain Layout
44028 <cell alignment="left" valignment="top" usebox="none">
44031 \begin_layout Plain Layout
44035 \begin_layout Plain Layout
44048 \begin_layout Plain Layout
44056 \begin_inset Phantom Phantom
44059 \begin_layout Plain Layout
44069 \begin_layout Plain Layout
44081 <cell alignment="left" valignment="top" usebox="none">
44084 \begin_layout Plain Layout
44088 \begin_layout Plain Layout
44101 \begin_layout Plain Layout
44109 \begin_inset Phantom Phantom
44112 \begin_layout Plain Layout
44122 \begin_layout Plain Layout
44134 <cell alignment="left" valignment="top" usebox="none">
44137 \begin_layout Plain Layout
44141 \begin_layout Plain Layout
44154 \begin_layout Plain Layout
44162 \begin_inset Phantom Phantom
44165 \begin_layout Plain Layout
44175 \begin_layout Plain Layout
44187 <cell alignment="left" valignment="top" usebox="none">
44190 \begin_layout Plain Layout
44194 \begin_layout Plain Layout
44207 \begin_layout Plain Layout
44215 \begin_inset Phantom Phantom
44218 \begin_layout Plain Layout
44228 \begin_layout Plain Layout
44242 <cell alignment="left" valignment="top" usebox="none">
44245 \begin_layout Plain Layout
44249 \begin_layout Plain Layout
44262 \begin_layout Plain Layout
44270 \begin_inset Phantom Phantom
44273 \begin_layout Plain Layout
44283 \begin_layout Plain Layout
44295 <cell alignment="left" valignment="top" usebox="none">
44298 \begin_layout Plain Layout
44302 \begin_layout Plain Layout
44315 \begin_layout Plain Layout
44323 \begin_inset Phantom Phantom
44326 \begin_layout Plain Layout
44336 \begin_layout Plain Layout
44348 <cell alignment="left" valignment="top" usebox="none">
44351 \begin_layout Plain Layout
44355 \begin_layout Plain Layout
44368 \begin_layout Plain Layout
44376 \begin_inset Phantom Phantom
44379 \begin_layout Plain Layout
44389 \begin_layout Plain Layout
44401 <cell alignment="left" valignment="top" usebox="none">
44404 \begin_layout Plain Layout
44408 \begin_layout Plain Layout
44421 \begin_layout Plain Layout
44429 \begin_inset Phantom Phantom
44432 \begin_layout Plain Layout
44442 \begin_layout Plain Layout
44456 <cell alignment="left" valignment="top" usebox="none">
44459 \begin_layout Plain Layout
44463 \begin_layout Plain Layout
44476 \begin_layout Plain Layout
44484 \begin_inset Phantom Phantom
44487 \begin_layout Plain Layout
44497 \begin_layout Plain Layout
44509 <cell alignment="left" valignment="top" usebox="none">
44512 \begin_layout Plain Layout
44518 <cell alignment="left" valignment="top" usebox="none">
44521 \begin_layout Plain Layout
44527 <cell alignment="left" valignment="top" usebox="none">
44530 \begin_layout Plain Layout
44544 \begin_layout Chapter
44545 Explanation of Equation
44546 \begin_inset space ~
44550 \begin_inset CommandInset ref
44557 \begin_inset CommandInset label
44559 name "cha:Explanation-of-Equation"
44566 \begin_layout Standard
44567 We can calculate the total width of
44572 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44576 \begin_inset Formula
44578 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44584 \begin_inset Formula $W_{g\,n}$
44587 is the given width of all cells,
44593 is the \SpecialChar LaTeX
44594 -length between the cell text and the cell border (its default value
44596 \begin_inset space \thinspace{}
44606 is the thickness of the cell border line, the default is 0.4
44607 \begin_inset space \thinspace{}
44613 \begin_layout Standard
44615 \begin_inset space ~
44619 \begin_inset CommandInset ref
44621 reference "eq:Wtot_n"
44625 , the total width of a multicolumn
44626 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
44630 \begin_inset Formula
44632 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44640 \begin_layout Standard
44641 By setting equation
44642 \begin_inset space ~
44646 \begin_inset CommandInset ref
44648 reference "eq:Wtot_n"
44653 \begin_inset CommandInset ref
44655 reference "eq:Wtot_mult"
44659 equal we can calculate the needed given width
44660 \begin_inset Formula $W_{g\,n}$
44667 columns are spanned, so that each column has a total width of
44668 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
44672 \begin_inset Formula
44674 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
44682 \begin_layout Bibliography
44683 \begin_inset CommandInset bibitem
44684 LatexCommand bibitem
44685 key "latexcompanion"
44689 Frank Mittelbach and Michel Goossens:
44691 The \SpecialChar LaTeX
44692 Companion Second Edition.
44695 Addison-Wesley, 2004
44698 \begin_layout Bibliography
44699 \begin_inset CommandInset bibitem
44700 LatexCommand bibitem
44705 Helmut Kopka and Patrick W.
44708 A Guide to \SpecialChar LaTeX
44712 Addison-Wesley, 2003
44715 \begin_layout Bibliography
44716 \begin_inset CommandInset bibitem
44717 LatexCommand bibitem
44725 : A Document Preparation System.
44728 Addison-Wesley, second edition, 1994
44731 \begin_layout Bibliography
44732 \begin_inset CommandInset bibitem
44733 LatexCommand bibitem
44738 Documentation of the \SpecialChar LaTeX
44742 \begin_inset CommandInset href
44745 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
44752 \begin_inset Index idx
44755 \begin_layout Plain Layout
44757 -packages ! arydshln
44765 \begin_layout Bibliography
44766 \begin_inset CommandInset bibitem
44767 LatexCommand bibitem
44772 Documentation of the \SpecialChar LaTeX
44776 \begin_inset CommandInset href
44779 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
44786 \begin_inset Index idx
44789 \begin_layout Plain Layout
44791 -packages ! booktabs
44799 \begin_layout Bibliography
44800 \begin_inset CommandInset bibitem
44801 LatexCommand bibitem
44806 Documentation of the \SpecialChar LaTeX
44810 \begin_inset CommandInset href
44813 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
44820 \begin_inset Index idx
44823 \begin_layout Plain Layout
44825 -packages ! caption
44833 \begin_layout Bibliography
44834 \begin_inset CommandInset bibitem
44835 LatexCommand bibitem
44840 Documentation of the \SpecialChar LaTeX
44844 \begin_inset CommandInset href
44847 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
44854 \begin_inset Index idx
44857 \begin_layout Plain Layout
44859 -packages ! diagbox
44867 \begin_layout Bibliography
44868 \begin_inset CommandInset bibitem
44869 LatexCommand bibitem
44874 Documentation of the \SpecialChar LaTeX
44878 \begin_inset CommandInset href
44881 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
44888 \begin_inset Index idx
44891 \begin_layout Plain Layout
44893 -packages ! endfloat
44901 \begin_layout Bibliography
44902 \begin_inset CommandInset bibitem
44903 LatexCommand bibitem
44908 Documentation of the \SpecialChar LaTeX
44912 \begin_inset CommandInset href
44915 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
44922 \begin_inset Index idx
44925 \begin_layout Plain Layout
44927 -packages ! footmisc
44935 \begin_layout Bibliography
44936 \begin_inset CommandInset bibitem
44937 LatexCommand bibitem
44942 Documentation of the \SpecialChar LaTeX
44946 \begin_inset CommandInset href
44949 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
44956 \begin_inset Index idx
44959 \begin_layout Plain Layout
44961 -packages ! hyperref
44969 \begin_layout Bibliography
44970 \begin_inset CommandInset bibitem
44971 LatexCommand bibitem
44976 Documentation of the \SpecialChar LaTeX
44980 \begin_inset CommandInset href
44983 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
44990 \begin_inset Index idx
44993 \begin_layout Plain Layout
44995 -packages ! hyperref
45003 \begin_layout Bibliography
45004 \begin_inset CommandInset bibitem
45005 LatexCommand bibitem
45010 Documentation of the \SpecialChar LaTeX
45014 \begin_inset CommandInset href
45017 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45024 \begin_inset Index idx
45027 \begin_layout Plain Layout
45029 -packages ! KOMA-Script
45037 \begin_layout Bibliography
45038 \begin_inset CommandInset bibitem
45039 LatexCommand bibitem
45044 Documentation of the \SpecialChar LaTeX
45048 \begin_inset CommandInset href
45051 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45058 \begin_inset CommandInset href
45061 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45066 \begin_inset Index idx
45069 \begin_layout Plain Layout
45071 -packages ! lettrine
45079 \begin_layout Bibliography
45080 \begin_inset CommandInset bibitem
45081 LatexCommand bibitem
45086 Documentation of the \SpecialChar LaTeX
45090 \begin_inset CommandInset href
45093 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45100 \begin_inset Index idx
45103 \begin_layout Plain Layout
45105 -packages ! listings
45113 \begin_layout Bibliography
45114 \begin_inset CommandInset bibitem
45115 LatexCommand bibitem
45120 Documentation of the \SpecialChar LaTeX
45124 \begin_inset CommandInset href
45127 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45134 \begin_inset Index idx
45137 \begin_layout Plain Layout
45139 -packages ! marginnote
45147 \begin_layout Bibliography
45148 \begin_inset CommandInset bibitem
45149 LatexCommand bibitem
45154 Documentation of the \SpecialChar LaTeX
45158 \begin_inset CommandInset href
45161 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45168 \begin_inset Index idx
45171 \begin_layout Plain Layout
45173 -packages ! pdfpages
45181 \begin_layout Bibliography
45182 \begin_inset CommandInset bibitem
45183 LatexCommand bibitem
45188 Documentation of the \SpecialChar LaTeX
45192 \begin_inset CommandInset href
45195 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45202 \begin_inset Index idx
45205 \begin_layout Plain Layout
45207 -packages ! prettyref
45215 \begin_layout Bibliography
45216 \begin_inset CommandInset bibitem
45217 LatexCommand bibitem
45222 Web page of the \SpecialChar LaTeX
45226 \begin_inset CommandInset href
45229 target "http://tug.org/PSTricks/"
45236 \begin_inset Index idx
45239 \begin_layout Plain Layout
45241 -packages ! PSTricks
45249 \begin_layout Bibliography
45250 \begin_inset CommandInset bibitem
45251 LatexCommand bibitem
45256 Documentation of the \SpecialChar LaTeX
45260 \begin_inset CommandInset href
45263 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45270 \begin_inset Index idx
45273 \begin_layout Plain Layout
45275 -packages ! refstyle
45283 \begin_layout Bibliography
45284 \begin_inset CommandInset bibitem
45285 LatexCommand bibitem
45290 Documentation of the \SpecialChar LaTeX
45294 \begin_inset CommandInset href
45297 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45304 \begin_inset Index idx
45307 \begin_layout Plain Layout
45309 -packages ! sidecap
45317 \begin_layout Bibliography
45318 \begin_inset CommandInset bibitem
45319 LatexCommand bibitem
45325 \begin_inset CommandInset href
45328 target "http://wiki.lyx.org/LyX/NewInLyX20"
45332 about new features in
45340 \begin_layout Standard
45341 \begin_inset CommandInset index_print
45342 LatexCommand printindex