1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
9 % that links to image floats jumps
10 % to the beginning of the float and
12 \usepackage[figure]{hypcap}
14 % the pages of the TOC is numbered roman
15 % and a PDF-bookmark for the TOC is added
16 \let\myTOC\tableofcontents
17 \renewcommand\tableofcontents{%
19 \pdfbookmark[1]{\contentsname}{}
23 % provides caption formatting
24 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
26 % provides commands to set caption
27 % beside tables/images
28 \newcommand{\TabBesBeg}[1][1.0]{%
30 \let\MyEndtable\endtable
31 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
33 \newcommand{\TabBesEnd}{%
35 \let\endtable\MyEndtable}
37 \newcommand{\FigBesBeg}[1][1.0]{%
39 \let\MyEndfigure\endfigure
40 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
42 \newcommand{\FigBesEnd}{%
44 \let\endfigure\MyEndfigure}
46 % enables calculation of values,
49 % increase the bottom float placement fraction
50 \renewcommand{\bottomfraction}{0.5}
52 % avoids that floats are placed before their
53 % corresponding section starts
54 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
56 % speed up the longtable calculation
57 \setcounter{LTchunksize}{100}
59 % used for colored tables
60 \@ifundefined{textcolor}
61 {\usepackage{color}}{}
62 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
63 \definecolor{lightgrey}{gray}{0.8}
65 % check for package colortbl
66 % used for colored table cells
68 \IfFileExists{colortbl.sty}
69 {\usepackage{colortbl}
70 \setboolean{colortbl}{true}}
71 {\setboolean{colortbl}{false}}
73 % used to have extra space in table cells
74 \@ifundefined{extrarowheight}
75 {\usepackage{array}}{}
76 \setlength{\extrarowheight}{2pt}
78 % used for customized tables
81 {>{\centering\hspace{0pt}}m{#1}}
84 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
87 {>{\columncolor{#1}\hspace{0pt}}c}
89 \newcolumntype{V}{!{\vrule width 1.5pt}}
91 \newcolumntype{W}{!{\color{green}\vline}}
94 % insert additional vertical space of
95 % 1.5 mm between footnotes
97 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
99 % number algorithm floats within chapters
100 \numberwithin{algorithm}{chapter}
102 % ------------------------------------
103 % used to check for needed LaTeX packages
106 % check for package arydshln
107 % used for tables with dashed lines
108 \newboolean{arydshln}
109 \IfFileExists{arydshln.sty}
110 {\usepackage{arydshln}
111 \setboolean{arydshln}{true}}
112 {\setboolean{arydshln}{false}}
114 % check for package marginnote
115 % used for margin notes
116 \newboolean{marginnote}
117 \IfFileExists{marginnote.sty}
118 {\usepackage{marginnote}
119 \let\marginpar\marginnote
120 \setboolean{marginnote}{true}}
121 {\setboolean{marginnote}{false}}
123 % check for package sidecap
124 % used for captions on the side
126 \IfFileExists{sidecap.sty}
127 {\usepackage{sidecap}
128 \setboolean{sidecap}{true}}
129 {\setboolean{sidecap}{false}}
132 % used for surrounded fixed objects
133 \newboolean{picinpar}
134 \IfFileExists{picinpar.sty}
135 {\usepackage{picinpar}
136 \setboolean{picinpar}{true}}
137 {\setboolean{picinpar}{false}}
140 \newboolean{lettrine}
141 \IfFileExists{lettrine.sty}
142 {\usepackage{lettrine}
143 \setboolean{lettrine}{true}}
144 {\setboolean{lettrine}{false}}
148 \IfFileExists{diagbox.sty}
149 {\usepackage{diagbox}
150 \setboolean{diagbox}{true}}
151 {\setboolean{diagbox}{false}}
153 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,dvipsnames,table
154 \use_default_options false
159 \maintain_unincluded_children false
161 \language_package default
164 \font_roman "lmodern" "default"
165 \font_sans "lmss" "default"
166 \font_typewriter "lmtt" "default"
167 \font_math "auto" "auto"
168 \font_default_family default
169 \use_non_tex_fonts false
172 \font_sf_scale 100 100
173 \font_tt_scale 100 100
175 \default_output_format pdf2
177 \bibtex_command default
178 \index_command default
182 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
183 \pdf_author "LyX Team, Uwe Stöhr"
184 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
185 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
187 \pdf_bookmarksnumbered true
188 \pdf_bookmarksopen true
189 \pdf_bookmarksopenlevel 1
190 \pdf_breaklinks false
194 \pdf_pdfusetitle false
195 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
198 \use_package amsmath 2
199 \use_package amssymb 2
200 \use_package cancel 0
202 \use_package mathdots 1
203 \use_package mathtools 0
204 \use_package mhchem 1
205 \use_package stackrel 0
206 \use_package stmaryrd 0
207 \use_package undertilde 0
209 \cite_engine_type default
213 \paperorientation portrait
217 \notefontcolor #0000ff
224 \paragraph_separation skip
226 \quotes_language english
229 \paperpagestyle default
230 \tracking_changes false
231 \output_changes false
234 \html_be_strict false
241 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
245 by the \SpecialChar LyX
250 \begin_layout Plain Layout
252 If you have comments or error corrections, please send them to the \SpecialChar LyX
255 \begin_inset CommandInset href
257 name "lyx-docs@lists.lyx.org"
258 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
269 \begin_inset Note Note
272 \begin_layout Plain Layout
279 \begin_inset Newline newline
283 \begin_inset Newline newline
291 \begin_layout Standard
292 \begin_inset CommandInset toc
293 LatexCommand tableofcontents
300 \begin_layout Standard
301 \begin_inset Note Note
304 \begin_layout Plain Layout
305 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
316 diagbox, lettrine, marginnote, picinpar
323 If they are not installed you can export the document anyway but the sections
324 where the packages are required won't appear in the output.
327 \begin_layout Plain Layout
328 The latest PDF-version of this document can be found here:
329 \begin_inset Newline newline
334 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
342 \begin_layout Chapter
344 \begin_inset Index idx
347 \begin_layout Plain Layout
354 \begin_inset Index idx
357 \begin_layout Plain Layout
362 \begin_layout Plain Layout
373 \begin_layout Plain Layout
388 \begin_layout Section
390 \begin_inset Index idx
393 \begin_layout Plain Layout
394 Figures ! Graphics Dialog
400 \begin_inset CommandInset label
402 name "sec:Graphics-Dialog"
409 \begin_layout Standard
410 To insert an image into your document, place the cursor at the text position
411 you want and click on the toolbar icon
414 arg "dialog-show-new-inset graphics"
419 Insert\SpecialChar menuseparator
423 Then a dialog will appear to choose the file to load.
424 The image will appear in the output exactly at the position where it is
428 \begin_layout Standard
429 The graphics dialog can be called at any time by clicking on an image.
430 This dialog has three tabs:
433 \begin_layout Description
438 Here you can choose an image file and adjust its appearance in the output.
439 The available units for the image size are explained in appendix
444 \begin_inset CommandInset ref
446 reference "cha:Units-available-in"
451 \begin_inset Newline newline
455 \begin_inset Index idx
458 \begin_layout Plain Layout
464 You can rotate images counter-clockwise by setting a rotation angle and
466 The image will also be rotated inside \SpecialChar LyX
468 \begin_inset Newline newline
472 \begin_inset Index idx
475 \begin_layout Plain Layout
481 Images can be scaled by using a percentage value or by setting the width
482 and height explicitly.
483 If you set only the width or only the height, the other size will be determined
485 If you set both, then the image will be transformed to the given size,
486 possibly distorting it.
487 To prevent the image from distortion, use the option
489 Maintain aspect ratio
492 The image will then be scaled so that its width and height don't exceed
493 the specified dimensions.
494 \begin_inset Newline newline
497 Images can be opened in a program of your choice by right-clicking on it
498 and choosing the entry
507 The program can be set for every image format in the file format settings
512 \begin_layout Description
517 Alternatively to the usage of scaling units it is possible to set image
518 coordinates to adjust the height and width of the image in the output.
519 The coordinates can also be calculated automatically by pressing the button
549 will only print the image region within the given coordinates.
550 Normally you don't need to worry about image coordinates and can ignore
554 \begin_layout Description
571 In this tab you can modify the appearance of the image within \SpecialChar LyX
572 and \SpecialChar LaTeX
574 can specify additional \SpecialChar LaTeX
576 \begin_inset Newline newline
587 makes the image appear in the output only as a frame with the size of the
589 \begin_inset Newline newline
600 you can define or join an image settings group.
601 \begin_inset Index idx
604 \begin_layout Plain Layout
605 Figures ! Settings grouping
610 Images within such a group share their settings, so adjusting one image
611 of the group automatically also adjusts all other images of the group in
613 So you can for example change the size for a bunch of images without the
614 need to manually change each of them.
615 Joining an existing group can also be done using the context menu of the
616 image by checking the name of the desired group.
619 \begin_layout Standard
620 \begin_inset VSpace bigskip
626 \begin_layout Standard
627 This is an example image in EPS format
631 \begin_layout Plain Layout
632 Image formats are explained in section
637 \begin_inset CommandInset ref
639 reference "sec:Image-Formats"
648 within a separate, horizontally centered paragraph:
651 \begin_layout Standard
653 \begin_inset Graphics
654 filename clipart/mobius.eps
664 \begin_layout Standard
665 This is the same image like the one above but in draft mode:
668 \begin_layout Standard
670 \begin_inset Graphics
671 filename clipart/mobius.eps
682 \begin_layout Standard
683 \begin_inset Newpage newpage
689 \begin_layout Section
691 \begin_inset CommandInset label
693 name "sec:Figure-Floats"
698 \begin_inset Index idx
701 \begin_layout Plain Layout
708 \begin_inset Index idx
711 \begin_layout Plain Layout
720 \begin_layout Standard
721 For general explanations about floats, have a look at section
726 \begin_inset CommandInset ref
728 reference "sec:FloatIntroduction"
735 \begin_layout Standard
739 arg "float-insert figure"
744 Insert\SpecialChar menuseparator
745 Float\SpecialChar menuseparator
748 inserts a float with a caption that has the label
749 \begin_inset Quotes eld
757 \begin_inset Quotes erd
760 (# is the actual number).
761 You can insert the image above the caption, like in Figure
766 \begin_inset CommandInset ref
768 reference "fig:kill-plat"
772 or below the caption, like in Figure
777 \begin_inset CommandInset ref
779 reference "fig:escher"
784 More about caption placement is described in section
789 \begin_inset CommandInset ref
791 reference "sec:Caption-Placement"
798 \begin_layout Standard
799 \begin_inset Float figure
804 \begin_layout Plain Layout
806 \begin_inset Graphics
807 filename clipart/platypus.eps
817 \begin_layout Plain Layout
818 \begin_inset Caption Standard
820 \begin_layout Plain Layout
821 \begin_inset CommandInset label
827 A severely distorted platypus in a float.
840 \begin_layout Standard
841 \begin_inset Float figure
846 \begin_layout Plain Layout
847 \begin_inset Caption Standard
849 \begin_layout Plain Layout
850 \begin_inset CommandInset label
865 \begin_layout Plain Layout
867 \begin_inset Graphics
868 filename clipart/escher-lsd.eps
883 \begin_layout Standard
884 \begin_inset Index idx
887 \begin_layout Plain Layout
888 References ! to Figures
898 \begin_inset CommandInset ref
900 reference "fig:kill-plat"
905 \begin_inset CommandInset ref
907 reference "fig:escher"
911 are examples of referenced figures.
912 Figures can be referenced in the text by referencing their label.
913 To do this insert a label in the caption using the menu
915 Insert\SpecialChar menuseparator
918 or the toolbar button
925 You can now refer to the label using the menu
927 Insert\SpecialChar menuseparator
934 or the toolbar button
937 arg "dialog-show-new-inset ref"
941 It is important to use references to floats, rather than using vague references
943 \begin_inset Quotes eld
947 \begin_inset Quotes erd
950 , because \SpecialChar LaTeX
951 will reposition the floats in the final document and it might
953 \begin_inset Quotes eld
957 \begin_inset Quotes erd
961 \begin_inset Newline newline
964 Referencing is explained in detail in section
969 \begin_inset CommandInset ref
971 reference "sec:Referencing-Floats"
978 \begin_layout Standard
979 Normally only one image is inserted to a figure float, but sometimes you
980 might want to use two images with separate subcaptions.
981 This can be done by inserting image floats into existing image floats.
982 Note that only the main caption of the float is added to the List of Figures.
988 \begin_inset CommandInset ref
990 reference "fig:Two-distorted-images"
994 is an example of a figure float with two images set side by side.
995 You can also set the images one below the other.
1001 \begin_inset CommandInset ref
1003 reference "fig:Undefinable-structure"
1008 \begin_inset CommandInset ref
1010 reference "fig:A-Platypus"
1017 \begin_layout Standard
1018 \begin_inset Float figure
1023 \begin_layout Plain Layout
1024 \begin_inset space \hfill{}
1028 \begin_inset Float figure
1033 \begin_layout Plain Layout
1034 \begin_inset Caption Standard
1036 \begin_layout Plain Layout
1037 \begin_inset CommandInset label
1039 name "fig:Undefinable-structure"
1043 Undefinable structure.
1051 \begin_layout Plain Layout
1052 \begin_inset Graphics
1053 filename clipart/escher-lsd.eps
1066 \begin_inset space \hfill{}
1070 \begin_inset Float figure
1075 \begin_layout Plain Layout
1076 \begin_inset Caption Standard
1078 \begin_layout Plain Layout
1079 \begin_inset CommandInset label
1081 name "fig:A-Platypus"
1093 \begin_layout Plain Layout
1094 \begin_inset Graphics
1095 filename clipart/platypus.eps
1108 \begin_inset space \hfill{}
1114 \begin_layout Plain Layout
1115 \begin_inset Caption Standard
1117 \begin_layout Plain Layout
1118 \begin_inset CommandInset label
1120 name "fig:Two-distorted-images"
1124 Two distorted images.
1125 Both images are in the image settings group named
1126 \begin_inset Quotes eld
1130 \begin_inset Quotes erd
1146 \begin_layout Standard
1147 \begin_inset Newpage newpage
1153 \begin_layout Section
1155 \begin_inset CommandInset label
1157 name "sec:Image-Formats"
1162 \begin_inset Index idx
1165 \begin_layout Plain Layout
1172 \begin_inset Index idx
1175 \begin_layout Plain Layout
1176 Figures ! Image Formats
1184 \begin_layout Standard
1185 You can insert images in any known file format.
1186 But as explained in appendix
1187 \begin_inset space ~
1191 \begin_inset CommandInset ref
1193 reference "cha:Output-File-Formats"
1197 , each output document format allows only a few image formats.
1199 uses therefore the program
1203 in the background to convert the images to the right format.
1204 To increase your work flow by avoiding these conversions in the background,
1205 you could choose to use only the image formats that can directly be embedded
1206 in the output file format.
1207 The output file formats are explained in appendix
1208 \begin_inset space ~
1212 \begin_inset CommandInset ref
1214 reference "cha:Output-File-Formats"
1221 \begin_layout Standard
1222 Similar to fonts there are two types of image formats:
1225 \begin_layout Description
1227 \begin_inset space ~
1230 images consist of pixel values, often in a compressed form.
1231 They are therefore not fully scalable and look pixelated in large zooms.
1232 Well-known bitmap image formats are
1233 \begin_inset Quotes eld
1236 Graphics Interchange Format
1237 \begin_inset Quotes erd
1240 (GIF, file extension
1241 \begin_inset Quotes eld
1249 \begin_inset Quotes erd
1253 \begin_inset Index idx
1256 \begin_layout Plain Layout
1261 \begin_layout Plain Layout
1272 \begin_layout Plain Layout
1285 \begin_inset Quotes eld
1288 Portable Network Graphics
1289 \begin_inset Quotes erd
1292 (PNG, file extension
1293 \begin_inset Quotes eld
1301 \begin_inset Quotes erd
1305 \begin_inset Index idx
1308 \begin_layout Plain Layout
1313 \begin_layout Plain Layout
1324 \begin_layout Plain Layout
1337 \begin_inset Quotes eld
1340 Joint Photographic Experts Group
1341 \begin_inset Quotes erd
1344 (JPG, file extension
1345 \begin_inset Quotes eld
1353 \begin_inset Quotes erd
1357 \begin_inset Quotes eld
1365 \begin_inset Quotes erd
1369 \begin_inset Index idx
1372 \begin_layout Plain Layout
1377 \begin_layout Plain Layout
1388 \begin_layout Plain Layout
1403 \begin_layout Description
1405 \begin_inset space ~
1408 images consist of vectors and can therefore be scaled to any size without
1410 The scaling ability is necessary if you want to create presentations, because
1411 presentations are always scaled by the video projector.
1412 Scaling is also useful for online documents to let the user zoom into diagrams.
1413 \begin_inset Newline newline
1416 Well-known scalable image formats are
1417 \begin_inset Quotes eld
1420 Scalable Vector Graphics
1421 \begin_inset Quotes erd
1424 (SVG, file extension
1425 \begin_inset Quotes eld
1433 \begin_inset Quotes erd
1437 \begin_inset Index idx
1440 \begin_layout Plain Layout
1445 \begin_layout Plain Layout
1456 \begin_layout Plain Layout
1469 \begin_inset Quotes eld
1472 Encapsulated PostScript
1473 \begin_inset Quotes erd
1476 (EPS, file extension
1477 \begin_inset Quotes eld
1485 \begin_inset Quotes erd
1489 \begin_inset Index idx
1492 \begin_layout Plain Layout
1497 \begin_layout Plain Layout
1508 \begin_layout Plain Layout
1521 \begin_inset Quotes eld
1524 Portable Document Format
1525 \begin_inset Quotes erd
1528 (PDF, file extension
1529 \begin_inset Quotes eld
1537 \begin_inset Quotes erd
1541 \begin_inset Index idx
1544 \begin_layout Plain Layout
1551 \begin_inset Quotes eld
1555 \begin_inset Quotes erd
1558 (WMF, file extension
1559 \begin_inset Quotes eld
1567 \begin_inset Quotes erd
1571 \begin_inset Index idx
1574 \begin_layout Plain Layout
1579 \begin_layout Plain Layout
1590 \begin_layout Plain Layout
1604 \begin_inset Quotes eld
1608 \begin_inset Quotes erd
1611 , because you can convert any bitmap image to a PDF or EPS-image and the
1612 result will still be a bitmap image.
1613 In such cases only a header with the image properties is added to the original
1618 \begin_layout Plain Layout
1619 In the case of PDF, the original image is additionally compressed.
1625 The PDF-files generated by
1629 are for example bitmap images.
1632 \begin_layout Standard
1633 Normally it is not possible to convert a bitmap image into a scalable one,
1635 Only the image formats PDF and EPS can directly be embedded to PDF and
1636 PostScript output files, respectively.
1637 SVG and WMF-images are recalculated to bitmaps when the output file is
1638 generated because there is currently no adequate WMF/SVG
1639 \begin_inset Formula $\to$
1642 PDF/EPS converter available.
1645 \begin_layout Chapter
1647 \begin_inset Index idx
1650 \begin_layout Plain Layout
1659 \begin_layout Section
1661 \begin_inset Index idx
1664 \begin_layout Plain Layout
1665 Table ! Introduction
1673 \begin_layout Standard
1674 You can insert a table using either the toolbar button
1677 arg "tabular-insert"
1682 Insert\SpecialChar menuseparator
1686 The toolbar button offers you a graphical selection: move the mouse to
1687 set the column/row number of the table that should be created and then
1688 press a mouse button.
1689 When you use the menu to create a table, a dialog will appear, asking you
1690 for the number of rows and columns.
1691 \begin_inset Newline newline
1694 The default table has lines around any cell and the first row appears separated
1695 from the rest of the table.
1696 This separation occurs due to a double line: The cells of the first row
1697 have a line below them and the cells of the second row have a line above
1699 Here is an example table:
1702 \begin_layout Standard
1704 \begin_inset Tabular
1705 <lyxtabular version="3" rows="4" columns="4">
1706 <features tabularvalignment="middle">
1707 <column alignment="center" valignment="top">
1708 <column alignment="center" valignment="top">
1709 <column alignment="center" valignment="top">
1710 <column alignment="center" valignment="top">
1712 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1715 \begin_layout Plain Layout
1721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1724 \begin_layout Plain Layout
1739 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1742 \begin_layout Plain Layout
1748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1751 \begin_layout Plain Layout
1759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1762 \begin_layout Plain Layout
1777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1780 \begin_layout Plain Layout
1786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1789 \begin_layout Plain Layout
1795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1798 \begin_layout Plain Layout
1806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1809 \begin_layout Plain Layout
1824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1827 \begin_layout Plain Layout
1833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1836 \begin_layout Plain Layout
1842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1845 \begin_layout Plain Layout
1853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1856 \begin_layout Plain Layout
1871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1874 \begin_layout Plain Layout
1880 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1883 \begin_layout Plain Layout
1889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1892 \begin_layout Plain Layout
1906 \begin_layout Section
1908 \begin_inset Index idx
1911 \begin_layout Plain Layout
1920 \begin_layout Standard
1921 You can alter a table by clicking on it with the right mouse button, which
1922 brings up the context menu.
1923 Under the menu entry
1927 you can adjust the settings of that cell and row/column respectively where
1928 the cursor is currently placed.
1931 More\SpecialChar menuseparator
1934 opens the table dialog where you can adjust more things.
1935 Most of the dialog options also work on selections.
1936 This means if you select more cells, columns or rows, the action is done
1937 for the whole selection.
1938 Note that there is a difference between selecting the
1942 of the cell, and the cell itself.
1943 \begin_inset Newline newline
1946 With the dialog option
1949 \begin_inset space ~
1954 every change you make in the dialog is directly applied.
1955 If you move the cursor to another table cell the dialog will then also
1956 be updated with the parameters of the new cell.
1957 If you change length values in the dialog you must press
1961 to get the change applied.
1962 \begin_inset Newline newline
1965 You can alter tables with the following tabs of the table dialog:
1968 \begin_layout Description
1970 \begin_inset space ~
1973 Settings Here you can set the table width
1974 \begin_inset Index idx
1977 \begin_layout Plain Layout
1983 , and the horizontal alignment and the width of the current column.
1987 \begin_inset space ~
1991 \begin_inset space ~
1996 is described in section
1997 \begin_inset space ~
2001 \begin_inset CommandInset ref
2003 reference "subsec:Special-Cell-Alignment"
2008 When you have set a width you can also adjust the vertical alignment of
2010 A given width will allow the cell to have line breaks and multiple paragraphs
2012 \begin_inset space \thinspace{}
2016 \begin_inset CommandInset ref
2018 reference "subsec:Multiple-Lines-in"
2023 If you set no width, the column is as wide as the content of its widest
2025 \begin_inset Newline newline
2028 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2030 \begin_inset space \thinspace{}
2034 \begin_inset CommandInset ref
2036 reference "subsec:Multicolumns"
2040 or the cells of one column as multirow cell, see sec.
2041 \begin_inset space \thinspace{}
2045 \begin_inset CommandInset ref
2047 reference "subsec:Multirows"
2052 \begin_inset Newline newline
2055 The rotate check boxes rotate the current cell, a selection, or the whole
2056 table counter-clockwise by 90
2057 \begin_inset space \thinspace{}
2061 The rotation is not shown within \SpecialChar LyX
2062 , only in the output.
2063 For more information see sec.
2064 \begin_inset space \thinspace{}
2068 \begin_inset CommandInset ref
2070 reference "sec:Rotated-Table-Cells"
2075 \begin_inset Newline newline
2079 \begin_inset Note Greyedout
2082 \begin_layout Plain Layout
2087 Not all DVI-viewers are able to display rotations.
2093 \begin_inset Newline newline
2096 The table-wide vertical alignment is used for tables within text lines:
2097 \begin_inset Newline newline
2100 A line with tables with different alignments:
2101 \begin_inset Tabular
2102 <lyxtabular version="3" rows="2" columns="2">
2103 <features tabularvalignment="top">
2104 <column alignment="center" valignment="top" width="0pt">
2105 <column alignment="center" valignment="top">
2107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2110 \begin_layout Plain Layout
2116 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2119 \begin_layout Plain Layout
2136 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2139 \begin_layout Plain Layout
2154 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2157 \begin_layout Plain Layout
2169 \begin_inset Tabular
2170 <lyxtabular version="3" rows="2" columns="2">
2171 <features tabularvalignment="middle">
2172 <column alignment="center" valignment="top">
2173 <column alignment="center" valignment="top">
2175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2178 \begin_layout Plain Layout
2184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2187 \begin_layout Plain Layout
2204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2207 \begin_layout Plain Layout
2222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2225 \begin_layout Plain Layout
2237 \begin_inset Tabular
2238 <lyxtabular version="3" rows="2" columns="2">
2239 <features tabularvalignment="bottom">
2240 <column alignment="center" valignment="top" width="0pt">
2241 <column alignment="center" valignment="top">
2243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2246 \begin_layout Plain Layout
2252 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2255 \begin_layout Plain Layout
2272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2275 \begin_layout Plain Layout
2290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2293 \begin_layout Plain Layout
2305 \begin_inset Newline newline
2308 It is also possible to enter a \SpecialChar LaTeX
2309 -argument which is needed for special table
2310 formattings, see sec.
2311 \begin_inset space \thinspace{}
2315 \begin_inset CommandInset ref
2317 reference "subsec:Multicolumn-Calculations"
2322 \begin_inset CommandInset ref
2324 reference "sec:Colored-Tables"
2331 \begin_layout Description
2332 Borders In this tab you can add and delete border lines for the current
2334 \begin_inset Newline newline
2337 Using the style option
2341 will convert the table to a formal table as described in sec.
2342 \begin_inset space \thinspace{}
2346 \begin_inset CommandInset ref
2348 reference "sec:Formal-Tables"
2353 \begin_inset Newline newline
2356 You can also add space here to table rows as described in sec.
2357 \begin_inset space \thinspace{}
2361 \begin_inset CommandInset ref
2363 reference "subsec:Row-Spacing"
2370 \begin_layout Description
2372 \begin_inset space ~
2375 table This tab is to make a table a multi-page table that can run over several
2378 \begin_inset space ~
2382 \begin_inset CommandInset ref
2384 reference "sec:Multi-page-Tables"
2389 \begin_inset CommandInset ref
2391 reference "sec:Special-Longtable-Issues"
2395 describe the multi-page table features in detail.
2398 \begin_layout Section
2400 \begin_inset Index idx
2403 \begin_layout Plain Layout
2412 \begin_layout Standard
2413 The table toolbar is an alternative to the table dialog to be able to alter
2415 It should normally appear at the bottom of \SpecialChar LyX
2416 's main window when the cursor
2418 You can alternatively switch it on to appear always, by right-clicking
2423 \begin_layout Standard
2424 The toolbar has the following icons:
2427 \begin_layout Labeling
2428 \labelwidthstring 00.00.0000
2431 arg "tabular-feature append-row"
2434 adds a row below the current cell or selection
2437 \begin_layout Labeling
2438 \labelwidthstring 00.00.0000
2441 arg "tabular-feature append-column"
2444 adds a column right beside the current cell or selection
2447 \begin_layout Labeling
2448 \labelwidthstring 00.00.0000
2451 arg "tabular-feature delete-row"
2454 deletes the current row or selection
2457 \begin_layout Labeling
2458 \labelwidthstring 00.00.0000
2461 arg "tabular-feature delete-column"
2464 deletes the current column or selection
2467 \begin_layout Labeling
2468 \labelwidthstring 00.00.0000
2471 arg "tabular-feature move-row-up"
2477 \begin_layout Labeling
2478 \labelwidthstring 00.00.0000
2481 arg "tabular-feature move-column-left"
2484 moves the column to the left
2487 \begin_layout Labeling
2488 \labelwidthstring 00.00.0000
2491 arg "tabular-feature move-row-down"
2497 \begin_layout Labeling
2498 \labelwidthstring 00.00.0000
2501 arg "tabular-feature move-column-right"
2504 moves the column to the right
2507 \begin_layout Labeling
2508 \labelwidthstring 00.00.0000
2511 arg "tabular-feature toggle-line-top"
2514 adds a line at the top of the current cell / row or of a selection
2517 \begin_layout Labeling
2518 \labelwidthstring 00.00.0000
2521 arg "tabular-feature toggle-line-bottom"
2524 adds a line at the bottom of the current cell / row or of a selection
2527 \begin_layout Labeling
2528 \labelwidthstring 00.00.0000
2531 arg "tabular-feature toggle-line-left"
2534 adds a line at the left side of the current cell / row or of a selection
2537 \begin_layout Labeling
2538 \labelwidthstring 00.00.0000
2541 arg "tabular-feature toggle-line-right"
2544 adds a line at the right side of the current cell / row or of a selection
2547 \begin_layout Labeling
2548 \labelwidthstring 00.00.0000
2551 arg "tabular-feature set-all-lines"
2554 adds lines around the current or selected cells - if the current cell no
2555 multicolumn cell this also affects the current row and column
2558 \begin_layout Labeling
2559 \labelwidthstring 00.00.0000
2562 arg "tabular-feature unset-all-lines"
2565 deletes all lines of the current or selected cells - if the current cell
2566 no multicolumn cell this also affects the current row and column
2569 \begin_layout Labeling
2570 \labelwidthstring 00.00.0000
2573 arg "tabular-feature m-align-left"
2576 left-aligns the content of the current cell / column
2579 \begin_layout Labeling
2580 \labelwidthstring 00.00.0000
2583 arg "tabular-feature m-align-center"
2586 centers the content of the current cell / column horizontally
2589 \begin_layout Labeling
2590 \labelwidthstring 00.00.0000
2593 arg "tabular-feature m-align-right"
2596 right-aligns the content of the current cell / column
2599 \begin_layout Labeling
2600 \labelwidthstring 00.00.0000
2603 arg "tabular-feature align-decimal"
2606 aligns the content of the current column at a character
2609 \begin_layout Labeling
2610 \labelwidthstring 00.00.0000
2613 arg "tabular-feature m-valign-top"
2616 aligns the content of the current cell vertically to the top
2619 \begin_layout Labeling
2620 \labelwidthstring 00.00.0000
2623 arg "tabular-feature m-valign-middle"
2626 centers the content of the current cell vertically
2629 \begin_layout Labeling
2630 \labelwidthstring 00.00.0000
2633 arg "tabular-feature m-valign-bottom"
2636 aligns the content of the current cell vertically to the bottom
2639 \begin_layout Labeling
2640 \labelwidthstring 00.00.0000
2643 arg "tabular-feature set-rotate-cell"
2646 rotates the current cell or selection counter-clockwise by 90°
2649 \begin_layout Labeling
2650 \labelwidthstring 00.00.0000
2653 arg "tabular-feature set-rotate-tabular"
2656 rotates the whole table counter-clockwise by 90°
2659 \begin_layout Labeling
2660 \labelwidthstring 00.00.0000
2663 arg "tabular-feature multicolumn"
2666 sets the current cell or selection as a multicolumn
2669 \begin_layout Labeling
2670 \labelwidthstring 00.00.0000
2673 arg "tabular-feature multirow"
2676 sets the current cell or selection as a multirow
2679 \begin_layout Standard
2680 \begin_inset Note Greyedout
2683 \begin_layout Plain Layout
2688 For the output the vertical alignment of the first cell in a row is used
2689 for all following cells in the row.
2697 \begin_layout Section
2699 \begin_inset Index idx
2702 \begin_layout Plain Layout
2711 \begin_layout Standard
2712 In addition to the table dialog and toolbar, the menu
2714 Edit\SpecialChar menuseparator
2717 allows you to add and delete border lines for the current row/column and
2718 to set the current selection as multicolumn.
2719 The menu is only available when the cursor is inside a table.
2722 \begin_layout Section
2724 \begin_inset CommandInset label
2726 name "sec:Table-Floats"
2731 \begin_inset Index idx
2734 \begin_layout Plain Layout
2741 \begin_inset Index idx
2744 \begin_layout Plain Layout
2753 \begin_layout Standard
2754 For general explanations about floats, have a look at section
2755 \begin_inset space ~
2759 \begin_inset CommandInset ref
2761 reference "sec:FloatIntroduction"
2768 \begin_layout Standard
2769 \begin_inset Float table
2775 \begin_layout Plain Layout
2776 \begin_inset Caption Standard
2778 \begin_layout Plain Layout
2779 \begin_inset CommandInset label
2781 name "tab:a table float"
2793 \begin_layout Plain Layout
2795 \begin_inset Tabular
2796 <lyxtabular version="3" rows="3" columns="3">
2797 <features tabularvalignment="middle">
2798 <column alignment="center" valignment="top" width="0pt">
2799 <column alignment="center" valignment="top" width="0pt">
2800 <column alignment="center" valignment="top" width="0pt">
2802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2805 \begin_layout Plain Layout
2820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2823 \begin_layout Plain Layout
2838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2841 \begin_layout Plain Layout
2858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2861 \begin_layout Plain Layout
2876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2879 \begin_layout Plain Layout
2894 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2897 \begin_layout Plain Layout
2914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2917 \begin_layout Plain Layout
2927 \begin_inset Formula $\int x^{2}dx$
2935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2938 \begin_layout Plain Layout
2948 \begin_inset Formula $\left[\begin{array}{cc}
2959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2962 \begin_layout Plain Layout
2972 \begin_inset Formula $1+1=2$
2993 \begin_layout Standard
2994 Table floats can be inserted using the menu
2996 Insert\SpecialChar menuseparator
2997 Float\SpecialChar menuseparator
3000 or the toolbar button
3003 arg "float-insert table"
3009 \begin_layout Standard
3010 The float appears as a collapsible box with a caption that has the label
3012 \begin_inset Quotes eld
3016 \begin_inset space ~
3020 \begin_inset Quotes erd
3023 (# is the actual table number).
3024 You can insert tables in the float above or below the caption.
3027 \begin_layout Standard
3029 \begin_inset space ~
3033 \begin_inset CommandInset ref
3035 reference "tab:a table float"
3039 is an example table within a table float.
3042 \begin_layout Standard
3043 Having the caption above the table is the common rule that is unfortunately
3044 not supported in \SpecialChar LaTeX
3045 's standard classes.
3046 This means that, if you are using the document classes
3062 , there will be no space between the caption and the table.
3063 To insert the needed space, add the following option to the load command
3064 of the \SpecialChar LaTeX
3070 \begin_inset Index idx
3073 \begin_layout Plain Layout
3080 in your document preamble:
3084 \begin_layout Plain Layout
3085 For more information have a look at section
3086 \begin_inset space ~
3090 \begin_inset CommandInset ref
3092 reference "sec:Caption-Placement"
3104 \begin_layout Standard
3110 \begin_layout Standard
3115 , which is described in section
3116 \begin_inset space ~
3120 \begin_inset CommandInset ref
3122 reference "sec:Caption-Formatting"
3126 , is used to adjust the caption format.
3129 \begin_layout Standard
3130 \begin_inset Index idx
3133 \begin_layout Plain Layout
3134 References ! to Tables
3139 Tables can be cross-referenced in the text by referencing their label.
3140 To do this insert a label in the caption using the menu
3142 Insert\SpecialChar menuseparator
3145 or the toolbar button
3152 You can now refer to the label using the menu
3154 Insert\SpecialChar menuseparator
3156 \begin_inset space ~
3161 or the toolbar button
3164 arg "dialog-show-new-inset ref"
3168 \begin_inset Newline newline
3171 Referencing is explained in detail in section
3172 \begin_inset space ~
3176 \begin_inset CommandInset ref
3178 reference "sec:Referencing-Floats"
3185 \begin_layout Section
3191 \begin_inset CommandInset label
3193 name "sec:Multi-page-Tables"
3198 \begin_inset Index idx
3201 \begin_layout Plain Layout
3208 \begin_inset Index idx
3211 \begin_layout Plain Layout
3212 Table ! Multi-page Table
3220 \begin_layout Standard
3221 If the table is too long to fit on one page, you can use the option
3224 \begin_inset space ~
3232 \begin_inset space ~
3237 of the table dialog to split the table automatically over more pages.
3238 Doing this enables the following options:
3241 \begin_layout Description
3242 Header: The current row is defined to be a header row that appears on all
3243 pages of the multi-page table; except for the first page, if
3246 \begin_inset space ~
3252 This is therefore called the main header.
3255 \begin_layout Description
3257 \begin_inset space ~
3260 header: The current row is defined to be a header row that appears on the
3261 first page of the multi-page table.
3264 \begin_layout Description
3265 Footer: The current row is defined to be a footer row that appears on all
3266 pages of the multi-page table; except for the last page, if
3269 \begin_inset space ~
3277 \begin_layout Description
3279 \begin_inset space ~
3282 footer: The current row is defined to be a footer row that appears on the
3283 last page of the multi-page table.
3286 \begin_layout Description
3287 Caption: The current row contains the table caption.
3288 The row is reset as single column and a caption is inserted.
3289 More about multi-page table captions is explained in sec.
3290 \begin_inset space \thinspace{}
3294 \begin_inset CommandInset ref
3296 reference "subsec:Multi-page-Table-Captions"
3303 \begin_layout Standard
3304 You can also specify a row where the table is split.
3305 See the following multi-page table to see how it works:
3308 \begin_layout Standard
3310 \begin_inset Tabular
3311 <lyxtabular version="3" rows="69" columns="3">
3312 <features islongtable="true" longtabularalignment="center">
3313 <column alignment="left" valignment="top" width="0cm">
3314 <column alignment="left" valignment="top" width="0pt">
3315 <column alignment="center" valignment="top" width="0pt">
3316 <row endfirsthead="true">
3317 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3320 \begin_layout Plain Layout
3323 Example Phone List (ignore the names)
3328 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3331 \begin_layout Plain Layout
3337 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3340 \begin_layout Plain Layout
3347 <row endfirsthead="true">
3348 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3351 \begin_layout Plain Layout
3359 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3362 \begin_layout Plain Layout
3368 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3371 \begin_layout Plain Layout
3380 <row endhead="true">
3381 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3384 \begin_layout Plain Layout
3392 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3395 \begin_layout Plain Layout
3401 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3404 \begin_layout Plain Layout
3411 <row endhead="true">
3412 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3415 \begin_layout Plain Layout
3423 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3426 \begin_layout Plain Layout
3432 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3435 \begin_layout Plain Layout
3444 <row endfoot="true">
3445 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3448 \begin_layout Plain Layout
3449 continued on next page
3454 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3457 \begin_layout Plain Layout
3463 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3466 \begin_layout Plain Layout
3474 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3477 \begin_layout Plain Layout
3485 <cell alignment="center" valignment="top" usebox="none">
3488 \begin_layout Plain Layout
3494 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3497 \begin_layout Plain Layout
3505 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3508 \begin_layout Plain Layout
3516 <cell alignment="center" valignment="top" usebox="none">
3519 \begin_layout Plain Layout
3525 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3528 \begin_layout Plain Layout
3536 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3539 \begin_layout Plain Layout
3547 <cell alignment="center" valignment="top" usebox="none">
3550 \begin_layout Plain Layout
3556 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3559 \begin_layout Plain Layout
3567 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3570 \begin_layout Plain Layout
3578 <cell alignment="center" valignment="top" usebox="none">
3581 \begin_layout Plain Layout
3587 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3590 \begin_layout Plain Layout
3598 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3601 \begin_layout Plain Layout
3609 <cell alignment="center" valignment="top" usebox="none">
3612 \begin_layout Plain Layout
3618 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3621 \begin_layout Plain Layout
3629 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3632 \begin_layout Plain Layout
3640 <cell alignment="center" valignment="top" usebox="none">
3643 \begin_layout Plain Layout
3649 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3652 \begin_layout Plain Layout
3660 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3663 \begin_layout Plain Layout
3671 <cell alignment="center" valignment="top" usebox="none">
3674 \begin_layout Plain Layout
3680 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3683 \begin_layout Plain Layout
3691 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3694 \begin_layout Plain Layout
3702 <cell alignment="center" valignment="top" usebox="none">
3705 \begin_layout Plain Layout
3711 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3714 \begin_layout Plain Layout
3722 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3725 \begin_layout Plain Layout
3733 <cell alignment="center" valignment="top" usebox="none">
3736 \begin_layout Plain Layout
3742 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3745 \begin_layout Plain Layout
3753 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3756 \begin_layout Plain Layout
3764 <cell alignment="center" valignment="top" usebox="none">
3767 \begin_layout Plain Layout
3773 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3776 \begin_layout Plain Layout
3784 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3787 \begin_layout Plain Layout
3795 <cell alignment="center" valignment="top" usebox="none">
3798 \begin_layout Plain Layout
3804 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3807 \begin_layout Plain Layout
3815 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3818 \begin_layout Plain Layout
3826 <cell alignment="center" valignment="top" usebox="none">
3829 \begin_layout Plain Layout
3835 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3838 \begin_layout Plain Layout
3846 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3849 \begin_layout Plain Layout
3857 <cell alignment="center" valignment="top" usebox="none">
3860 \begin_layout Plain Layout
3866 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3869 \begin_layout Plain Layout
3877 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3880 \begin_layout Plain Layout
3888 <cell alignment="center" valignment="top" usebox="none">
3891 \begin_layout Plain Layout
3897 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3900 \begin_layout Plain Layout
3908 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3911 \begin_layout Plain Layout
3919 <cell alignment="center" valignment="top" usebox="none">
3922 \begin_layout Plain Layout
3928 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3931 \begin_layout Plain Layout
3939 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3942 \begin_layout Plain Layout
3950 <cell alignment="center" valignment="top" usebox="none">
3953 \begin_layout Plain Layout
3959 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3962 \begin_layout Plain Layout
3970 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3973 \begin_layout Plain Layout
3981 <cell alignment="center" valignment="top" usebox="none">
3984 \begin_layout Plain Layout
3990 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3993 \begin_layout Plain Layout
4001 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4004 \begin_layout Plain Layout
4012 <cell alignment="center" valignment="top" usebox="none">
4015 \begin_layout Plain Layout
4021 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4024 \begin_layout Plain Layout
4032 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4035 \begin_layout Plain Layout
4043 <cell alignment="center" valignment="top" usebox="none">
4046 \begin_layout Plain Layout
4052 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4055 \begin_layout Plain Layout
4063 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4066 \begin_layout Plain Layout
4074 <cell alignment="center" valignment="top" usebox="none">
4077 \begin_layout Plain Layout
4083 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4086 \begin_layout Plain Layout
4094 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4097 \begin_layout Plain Layout
4105 <cell alignment="center" valignment="top" usebox="none">
4108 \begin_layout Plain Layout
4114 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4117 \begin_layout Plain Layout
4125 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4128 \begin_layout Plain Layout
4136 <cell alignment="center" valignment="top" usebox="none">
4139 \begin_layout Plain Layout
4145 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4148 \begin_layout Plain Layout
4156 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4159 \begin_layout Plain Layout
4167 <cell alignment="center" valignment="top" usebox="none">
4170 \begin_layout Plain Layout
4176 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4179 \begin_layout Plain Layout
4187 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4190 \begin_layout Plain Layout
4198 <cell alignment="center" valignment="top" usebox="none">
4201 \begin_layout Plain Layout
4207 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4210 \begin_layout Plain Layout
4218 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4221 \begin_layout Plain Layout
4229 <cell alignment="center" valignment="top" usebox="none">
4232 \begin_layout Plain Layout
4238 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4241 \begin_layout Plain Layout
4249 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4252 \begin_layout Plain Layout
4260 <cell alignment="center" valignment="top" usebox="none">
4263 \begin_layout Plain Layout
4269 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4272 \begin_layout Plain Layout
4280 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4283 \begin_layout Plain Layout
4291 <cell alignment="center" valignment="top" usebox="none">
4294 \begin_layout Plain Layout
4300 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4303 \begin_layout Plain Layout
4311 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4314 \begin_layout Plain Layout
4322 <cell alignment="center" valignment="top" usebox="none">
4325 \begin_layout Plain Layout
4331 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4334 \begin_layout Plain Layout
4342 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4345 \begin_layout Plain Layout
4353 <cell alignment="center" valignment="top" usebox="none">
4356 \begin_layout Plain Layout
4362 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4365 \begin_layout Plain Layout
4373 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4376 \begin_layout Plain Layout
4384 <cell alignment="center" valignment="top" usebox="none">
4387 \begin_layout Plain Layout
4393 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4396 \begin_layout Plain Layout
4404 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4407 \begin_layout Plain Layout
4415 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4418 \begin_layout Plain Layout
4424 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4427 \begin_layout Plain Layout
4435 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4438 \begin_layout Plain Layout
4444 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4447 \begin_layout Plain Layout
4453 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4456 \begin_layout Plain Layout
4464 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4467 \begin_layout Plain Layout
4475 <cell alignment="center" valignment="top" usebox="none">
4478 \begin_layout Plain Layout
4484 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4487 \begin_layout Plain Layout
4495 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4498 \begin_layout Plain Layout
4506 <cell alignment="center" valignment="top" usebox="none">
4509 \begin_layout Plain Layout
4515 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4518 \begin_layout Plain Layout
4526 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4529 \begin_layout Plain Layout
4537 <cell alignment="center" valignment="top" usebox="none">
4540 \begin_layout Plain Layout
4546 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4549 \begin_layout Plain Layout
4557 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4560 \begin_layout Plain Layout
4568 <cell alignment="center" valignment="top" usebox="none">
4571 \begin_layout Plain Layout
4577 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4580 \begin_layout Plain Layout
4588 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4591 \begin_layout Plain Layout
4599 <cell alignment="center" valignment="top" usebox="none">
4602 \begin_layout Plain Layout
4608 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4611 \begin_layout Plain Layout
4619 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4622 \begin_layout Plain Layout
4630 <cell alignment="center" valignment="top" usebox="none">
4633 \begin_layout Plain Layout
4639 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4642 \begin_layout Plain Layout
4650 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4653 \begin_layout Plain Layout
4661 <cell alignment="center" valignment="top" usebox="none">
4664 \begin_layout Plain Layout
4670 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4673 \begin_layout Plain Layout
4681 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4684 \begin_layout Plain Layout
4692 <cell alignment="center" valignment="top" usebox="none">
4695 \begin_layout Plain Layout
4701 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4704 \begin_layout Plain Layout
4712 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4715 \begin_layout Plain Layout
4723 <cell alignment="center" valignment="top" usebox="none">
4726 \begin_layout Plain Layout
4732 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4735 \begin_layout Plain Layout
4743 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4746 \begin_layout Plain Layout
4754 <cell alignment="center" valignment="top" usebox="none">
4757 \begin_layout Plain Layout
4763 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4766 \begin_layout Plain Layout
4774 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4777 \begin_layout Plain Layout
4785 <cell alignment="center" valignment="top" usebox="none">
4788 \begin_layout Plain Layout
4794 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4797 \begin_layout Plain Layout
4805 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4808 \begin_layout Plain Layout
4816 <cell alignment="center" valignment="top" usebox="none">
4819 \begin_layout Plain Layout
4825 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4828 \begin_layout Plain Layout
4836 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4839 \begin_layout Plain Layout
4847 <cell alignment="center" valignment="top" usebox="none">
4850 \begin_layout Plain Layout
4856 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4859 \begin_layout Plain Layout
4867 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4870 \begin_layout Plain Layout
4878 <cell alignment="center" valignment="top" usebox="none">
4881 \begin_layout Plain Layout
4887 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4890 \begin_layout Plain Layout
4898 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4901 \begin_layout Plain Layout
4909 <cell alignment="center" valignment="top" usebox="none">
4912 \begin_layout Plain Layout
4918 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4921 \begin_layout Plain Layout
4929 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4932 \begin_layout Plain Layout
4940 <cell alignment="center" valignment="top" usebox="none">
4943 \begin_layout Plain Layout
4949 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4952 \begin_layout Plain Layout
4960 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4963 \begin_layout Plain Layout
4971 <cell alignment="center" valignment="top" usebox="none">
4974 \begin_layout Plain Layout
4980 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4983 \begin_layout Plain Layout
4991 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4994 \begin_layout Plain Layout
5002 <cell alignment="center" valignment="top" usebox="none">
5005 \begin_layout Plain Layout
5011 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5014 \begin_layout Plain Layout
5022 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5025 \begin_layout Plain Layout
5033 <cell alignment="center" valignment="top" usebox="none">
5036 \begin_layout Plain Layout
5042 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5045 \begin_layout Plain Layout
5053 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5056 \begin_layout Plain Layout
5064 <cell alignment="center" valignment="top" usebox="none">
5067 \begin_layout Plain Layout
5073 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5076 \begin_layout Plain Layout
5084 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5087 \begin_layout Plain Layout
5095 <cell alignment="center" valignment="top" usebox="none">
5098 \begin_layout Plain Layout
5104 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5107 \begin_layout Plain Layout
5115 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5118 \begin_layout Plain Layout
5126 <cell alignment="center" valignment="top" usebox="none">
5129 \begin_layout Plain Layout
5135 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5138 \begin_layout Plain Layout
5146 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5149 \begin_layout Plain Layout
5157 <cell alignment="center" valignment="top" usebox="none">
5160 \begin_layout Plain Layout
5166 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5169 \begin_layout Plain Layout
5177 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5180 \begin_layout Plain Layout
5188 <cell alignment="center" valignment="top" usebox="none">
5191 \begin_layout Plain Layout
5197 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5200 \begin_layout Plain Layout
5208 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5211 \begin_layout Plain Layout
5219 <cell alignment="center" valignment="top" usebox="none">
5222 \begin_layout Plain Layout
5228 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5231 \begin_layout Plain Layout
5239 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5242 \begin_layout Plain Layout
5250 <cell alignment="center" valignment="top" usebox="none">
5253 \begin_layout Plain Layout
5259 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5262 \begin_layout Plain Layout
5270 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5273 \begin_layout Plain Layout
5281 <cell alignment="center" valignment="top" usebox="none">
5284 \begin_layout Plain Layout
5290 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5293 \begin_layout Plain Layout
5301 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5304 \begin_layout Plain Layout
5312 <cell alignment="center" valignment="top" usebox="none">
5315 \begin_layout Plain Layout
5321 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5324 \begin_layout Plain Layout
5332 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5335 \begin_layout Plain Layout
5343 <cell alignment="center" valignment="top" usebox="none">
5346 \begin_layout Plain Layout
5352 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5355 \begin_layout Plain Layout
5363 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5366 \begin_layout Plain Layout
5374 <cell alignment="center" valignment="top" usebox="none">
5377 \begin_layout Plain Layout
5383 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5386 \begin_layout Plain Layout
5394 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5397 \begin_layout Plain Layout
5405 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5408 \begin_layout Plain Layout
5414 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5417 \begin_layout Plain Layout
5424 <row endlastfoot="true">
5425 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5428 \begin_layout Plain Layout
5434 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5437 \begin_layout Plain Layout
5443 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5446 \begin_layout Plain Layout
5461 \begin_layout Plain Layout
5465 addtocounter{table}{-1}
5471 \begin_inset Note Note
5474 \begin_layout Plain Layout
5475 See the first greyed-out note in section
5476 \begin_inset space ~
5480 \begin_inset CommandInset ref
5482 reference "subsec:Multi-page-Table-Captions"
5486 for an explanation of this command.
5494 \begin_layout Subsection
5495 Footnotes in Multi-page tables
5496 \begin_inset CommandInset label
5498 name "subsec:Footnotes-in-Multi-page"
5503 \begin_inset Index idx
5506 \begin_layout Plain Layout
5507 Table ! Multi-page Table ! Footnotes
5515 \begin_layout Standard
5516 Footnotes can be inserted to every Multi-page table cell.
5517 They appear at the bottom of the page where the table cell with the footnote
5520 \begin_inset space ~
5524 \begin_inset CommandInset ref
5526 reference "tab:DiffCaptions"
5530 has for example a footnote.
5533 \begin_layout Subsection
5534 Multi-page Table Alignment
5535 \begin_inset Index idx
5538 \begin_layout Plain Layout
5539 Table ! Multi-page Table ! Alignment
5547 \begin_layout Standard
5548 The horizontal alignment of multi-page tables can be set in the table settings
5550 For left- and right-alignment the table will be directly at the page border.
5551 To add space between the table and the border one has to set the alignment
5552 to center and change the value of the \SpecialChar LaTeX
5565 by inserting this line as \SpecialChar TeX
5566 Code before the multi-page table:
5569 \begin_layout Standard
5579 \begin_layout Standard
5580 The value can have any of the units listed in Table
5581 \begin_inset space ~
5585 \begin_inset CommandInset ref
5587 reference "tab:Units"
5598 controls the horizontal distance from the left page border to the multi-page
5605 the distance from the right side.
5606 The default value for both lengths is
5612 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5616 \begin_layout Standard
5617 The following multi-page table was centered and
5633 \begin_layout Plain Layout
5649 \begin_layout Standard
5650 \begin_inset Tabular
5651 <lyxtabular version="3" rows="5" columns="5">
5652 <features islongtable="true" longtabularalignment="center">
5653 <column alignment="center" valignment="top">
5654 <column alignment="center" valignment="top" width="0pt">
5655 <column alignment="center" valignment="top">
5656 <column alignment="center" valignment="top">
5657 <column alignment="center" valignment="top">
5659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5662 \begin_layout Plain Layout
5668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5671 \begin_layout Plain Layout
5677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5680 \begin_layout Plain Layout
5686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5689 \begin_layout Plain Layout
5695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5698 \begin_layout Plain Layout
5706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5709 \begin_layout Plain Layout
5715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5718 \begin_layout Plain Layout
5724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5727 \begin_layout Plain Layout
5733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5736 \begin_layout Plain Layout
5742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5745 \begin_layout Plain Layout
5753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5756 \begin_layout Plain Layout
5762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5765 \begin_layout Plain Layout
5771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5774 \begin_layout Plain Layout
5780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5783 \begin_layout Plain Layout
5789 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5792 \begin_layout Plain Layout
5800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5803 \begin_layout Plain Layout
5809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5812 \begin_layout Plain Layout
5818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5821 \begin_layout Plain Layout
5827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5830 \begin_layout Plain Layout
5836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5839 \begin_layout Plain Layout
5847 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5850 \begin_layout Plain Layout
5856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5859 \begin_layout Plain Layout
5865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5868 \begin_layout Plain Layout
5874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5877 \begin_layout Plain Layout
5883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5886 \begin_layout Plain Layout
5901 \begin_layout Plain Layout
5918 \begin_layout Plain Layout
5922 addtocounter{table}{-1}
5928 \begin_inset Note Note
5931 \begin_layout Plain Layout
5932 See the first greyed-out note in section
5933 \begin_inset space ~
5937 \begin_inset CommandInset ref
5939 reference "subsec:Multi-page-Table-Captions"
5943 for an explanation of this command.
5951 \begin_layout Subsection
5952 Multi-page Table Captions
5953 \begin_inset Index idx
5956 \begin_layout Plain Layout
5957 Table ! Multi-page Table ! Captions
5963 \begin_inset CommandInset label
5965 name "subsec:Multi-page-Table-Captions"
5972 \begin_layout Standard
5973 A multi-page table cannot be put into a table float because floats can only
5975 But the caption environment of floats can also be used for multi-page tables
5976 when you use the multi-page table option
5980 as described in sec.
5981 \begin_inset space \thinspace{}
5985 \begin_inset CommandInset ref
5987 reference "sec:Multi-page-Tables"
5992 Only one table row should contain a caption, either a header or a footer
5996 \begin_layout Standard
5997 Here is a short multi-page table to see how it works:
6000 \begin_layout Standard
6001 \begin_inset Tabular
6002 <lyxtabular version="3" rows="6" columns="5">
6003 <features islongtable="true" longtabularalignment="center">
6004 <column alignment="center" valignment="top">
6005 <column alignment="center" valignment="top">
6006 <column alignment="center" valignment="top">
6007 <column alignment="center" valignment="top">
6008 <column alignment="center" valignment="top">
6009 <row endfirsthead="true" caption="true">
6010 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6013 \begin_layout Plain Layout
6014 \begin_inset Caption Standard
6016 \begin_layout Plain Layout
6017 Multi-page table with caption
6018 \begin_inset Argument 1
6021 \begin_layout Plain Layout
6037 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6040 \begin_layout Plain Layout
6046 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6049 \begin_layout Plain Layout
6055 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6058 \begin_layout Plain Layout
6064 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6067 \begin_layout Plain Layout
6075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6078 \begin_layout Plain Layout
6084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6087 \begin_layout Plain Layout
6093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6096 \begin_layout Plain Layout
6102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6105 \begin_layout Plain Layout
6111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6114 \begin_layout Plain Layout
6122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6125 \begin_layout Plain Layout
6131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6134 \begin_layout Plain Layout
6140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6143 \begin_layout Plain Layout
6149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6152 \begin_layout Plain Layout
6158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6161 \begin_layout Plain Layout
6169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6172 \begin_layout Plain Layout
6178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6181 \begin_layout Plain Layout
6187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6190 \begin_layout Plain Layout
6196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6199 \begin_layout Plain Layout
6205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6208 \begin_layout Plain Layout
6216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6219 \begin_layout Plain Layout
6225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6228 \begin_layout Plain Layout
6234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6237 \begin_layout Plain Layout
6243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6246 \begin_layout Plain Layout
6252 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6255 \begin_layout Plain Layout
6263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6266 \begin_layout Plain Layout
6272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6275 \begin_layout Plain Layout
6281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6284 \begin_layout Plain Layout
6290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6293 \begin_layout Plain Layout
6299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6302 \begin_layout Plain Layout
6316 \begin_layout Standard
6317 \begin_inset VSpace medskip
6321 \begin_inset Note Greyedout
6324 \begin_layout Plain Layout
6328 \begin_inset space ~
6333 The table number is increased for every multi-page table, even if you did
6334 not set a caption for it.
6335 For this reason you could have the case that e.
6336 \begin_inset space \thinspace{}
6340 \begin_inset space \space{}
6344 \begin_inset space ~
6348 \begin_inset space ~
6351 2.1 in the list of tables if there are two multi-page tables without captions.
6352 To avoid this you can add the following command in \SpecialChar TeX
6353 Code after every multi-page
6354 table without a caption:
6357 \begin_layout Plain Layout
6362 addtocounter{table}{-1}
6365 \begin_layout Plain Layout
6366 This is not needed when none of your multi-page tables has a caption and
6367 you add the following code to the document preamble:
6370 \begin_layout Plain Layout
6380 \begin_inset Newline newline
6391 addtocounter{table}{-1}}
6399 \begin_layout Standard
6400 \begin_inset Note Greyedout
6403 \begin_layout Plain Layout
6407 \begin_inset space ~
6417 \begin_inset Index idx
6420 \begin_layout Plain Layout
6422 -packages ! hyperref
6435 dialog to link cross-references, the link to a multi-page table caption
6436 will always point to the beginning of the document.
6444 \begin_layout Subsubsection
6445 References to multi-page tables
6446 \begin_inset Index idx
6449 \begin_layout Plain Layout
6450 Table ! Multi-page Table ! References
6458 \begin_layout Standard
6459 \begin_inset Tabular
6460 <lyxtabular version="3" rows="6" columns="5">
6461 <features islongtable="true" longtabularalignment="center">
6462 <column alignment="center" valignment="top">
6463 <column alignment="center" valignment="top">
6464 <column alignment="center" valignment="top">
6465 <column alignment="center" valignment="top">
6466 <column alignment="center" valignment="top">
6467 <row endfirsthead="true" caption="true">
6468 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6471 \begin_layout Plain Layout
6472 \begin_inset Caption Standard
6474 \begin_layout Plain Layout
6475 Referenced multi-page table
6476 \begin_inset CommandInset label
6478 name "tab:Referenced-multi-page-table"
6492 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6495 \begin_layout Plain Layout
6501 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6504 \begin_layout Plain Layout
6510 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6513 \begin_layout Plain Layout
6519 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6522 \begin_layout Plain Layout
6530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6533 \begin_layout Plain Layout
6539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6542 \begin_layout Plain Layout
6548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6551 \begin_layout Plain Layout
6557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6560 \begin_layout Plain Layout
6566 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6569 \begin_layout Plain Layout
6577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6580 \begin_layout Plain Layout
6586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6589 \begin_layout Plain Layout
6595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6598 \begin_layout Plain Layout
6604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6607 \begin_layout Plain Layout
6613 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6616 \begin_layout Plain Layout
6624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6627 \begin_layout Plain Layout
6633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6636 \begin_layout Plain Layout
6642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6645 \begin_layout Plain Layout
6651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6654 \begin_layout Plain Layout
6660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6663 \begin_layout Plain Layout
6671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6674 \begin_layout Plain Layout
6680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6683 \begin_layout Plain Layout
6689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6692 \begin_layout Plain Layout
6698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6701 \begin_layout Plain Layout
6707 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6710 \begin_layout Plain Layout
6718 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6721 \begin_layout Plain Layout
6727 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6730 \begin_layout Plain Layout
6736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6739 \begin_layout Plain Layout
6745 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6748 \begin_layout Plain Layout
6754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6757 \begin_layout Plain Layout
6771 \begin_layout Standard
6772 To reference a multi-page table, insert a label into the caption.
6775 \begin_layout Standard
6776 This is a reference to Table
6777 \begin_inset space ~
6781 \begin_inset CommandInset ref
6783 reference "tab:Referenced-multi-page-table"
6790 \begin_layout Standard
6791 The caption layout can be set together with all other captions of your document
6792 using the \SpecialChar LaTeX
6798 \begin_inset Index idx
6801 \begin_layout Plain Layout
6809 \begin_inset space ~
6813 \begin_inset CommandInset ref
6815 reference "sec:Caption-Formatting"
6822 \begin_layout Subsubsection
6824 \begin_inset Index idx
6827 \begin_layout Plain Layout
6828 Table ! Multi-page Table ! Caption Width
6836 \begin_layout Standard
6837 The maximal width of caption lines is defined by the length
6844 Its default value is 4
6845 \begin_inset space \thinspace{}
6849 To change it add the following command to your document preamble or as
6851 Code into your document before the multi-page table that should be affected
6854 \begin_layout Standard
6864 \begin_layout Standard
6869 can have one of the units listed in appendix
6870 \begin_inset space ~
6874 \begin_inset CommandInset ref
6876 reference "cha:Units-available-in"
6883 \begin_layout Standard
6884 The following tables show the difference:
6887 \begin_layout Standard
6888 \begin_inset Tabular
6889 <lyxtabular version="3" rows="6" columns="5">
6890 <features islongtable="true" longtabularalignment="center">
6891 <column alignment="center" valignment="top">
6892 <column alignment="center" valignment="top">
6893 <column alignment="center" valignment="top">
6894 <column alignment="center" valignment="top">
6895 <column alignment="center" valignment="top">
6896 <row endfirsthead="true" caption="true">
6897 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6900 \begin_layout Plain Layout
6901 \begin_inset Caption Standard
6903 \begin_layout Plain Layout
6904 Long full title with default width long full title with default width long
6905 full title with default width
6906 \begin_inset Argument 1
6909 \begin_layout Plain Layout
6910 caption with default width
6925 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6928 \begin_layout Plain Layout
6934 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6937 \begin_layout Plain Layout
6943 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6946 \begin_layout Plain Layout
6952 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6955 \begin_layout Plain Layout
6963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6966 \begin_layout Plain Layout
6972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6975 \begin_layout Plain Layout
6981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6984 \begin_layout Plain Layout
6990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6993 \begin_layout Plain Layout
6999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7002 \begin_layout Plain Layout
7010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7013 \begin_layout Plain Layout
7019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7022 \begin_layout Plain Layout
7028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7031 \begin_layout Plain Layout
7037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7040 \begin_layout Plain Layout
7046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7049 \begin_layout Plain Layout
7057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7060 \begin_layout Plain Layout
7066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7069 \begin_layout Plain Layout
7075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7078 \begin_layout Plain Layout
7084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7087 \begin_layout Plain Layout
7093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7096 \begin_layout Plain Layout
7104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7107 \begin_layout Plain Layout
7113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7116 \begin_layout Plain Layout
7122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7125 \begin_layout Plain Layout
7131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7134 \begin_layout Plain Layout
7140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7143 \begin_layout Plain Layout
7151 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7154 \begin_layout Plain Layout
7160 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7163 \begin_layout Plain Layout
7169 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7172 \begin_layout Plain Layout
7178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7181 \begin_layout Plain Layout
7187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7190 \begin_layout Plain Layout
7204 \begin_layout Standard
7208 \begin_layout Plain Layout
7220 \begin_inset Tabular
7221 <lyxtabular version="3" rows="6" columns="5">
7222 <features islongtable="true" longtabularalignment="center">
7223 <column alignment="center" valignment="top">
7224 <column alignment="center" valignment="top">
7225 <column alignment="center" valignment="top">
7226 <column alignment="center" valignment="top">
7227 <column alignment="center" valignment="top">
7228 <row endfirsthead="true" caption="true">
7229 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7232 \begin_layout Plain Layout
7233 \begin_inset Caption Standard
7235 \begin_layout Plain Layout
7236 Long full title with width set to 5
7237 \begin_inset space \thinspace{}
7240 cm long full title with width set to 5
7241 \begin_inset space \thinspace{}
7244 cm long full title with width set to 5
7245 \begin_inset space \thinspace{}
7249 \begin_inset Argument 1
7252 \begin_layout Plain Layout
7254 \begin_inset space \thinspace{}
7258 \begin_inset space \thinspace{}
7262 \begin_inset space \thinspace{}
7280 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7283 \begin_layout Plain Layout
7289 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7292 \begin_layout Plain Layout
7298 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7301 \begin_layout Plain Layout
7307 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7310 \begin_layout Plain Layout
7318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7321 \begin_layout Plain Layout
7327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7330 \begin_layout Plain Layout
7336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7339 \begin_layout Plain Layout
7345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7348 \begin_layout Plain Layout
7354 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7357 \begin_layout Plain Layout
7365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7368 \begin_layout Plain Layout
7374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7377 \begin_layout Plain Layout
7383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7386 \begin_layout Plain Layout
7392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7395 \begin_layout Plain Layout
7401 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7404 \begin_layout Plain Layout
7412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7415 \begin_layout Plain Layout
7421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7424 \begin_layout Plain Layout
7430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7433 \begin_layout Plain Layout
7439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7442 \begin_layout Plain Layout
7448 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7451 \begin_layout Plain Layout
7459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7462 \begin_layout Plain Layout
7468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7471 \begin_layout Plain Layout
7477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7480 \begin_layout Plain Layout
7486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7489 \begin_layout Plain Layout
7495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7498 \begin_layout Plain Layout
7506 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7509 \begin_layout Plain Layout
7515 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7518 \begin_layout Plain Layout
7524 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7527 \begin_layout Plain Layout
7533 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7536 \begin_layout Plain Layout
7542 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7545 \begin_layout Plain Layout
7559 \begin_layout Standard
7563 \begin_layout Plain Layout
7577 \begin_layout Standard
7578 \begin_inset Note Greyedout
7581 \begin_layout Plain Layout
7586 When the \SpecialChar LaTeX
7592 \begin_inset Index idx
7595 \begin_layout Plain Layout
7602 is used, as in this document, the full page width is used for the caption
7603 when you use the default value of 4
7604 \begin_inset space \thinspace{}
7614 To get in this case exactly a 4
7615 \begin_inset space \thinspace{}
7618 in wide caption, you can either use a value slightly different from 4.0
7619 \begin_inset space \thinspace{}
7623 \begin_inset space \thinspace{}
7627 \begin_inset space \space{}
7631 \begin_inset space \thinspace{}
7634 in, or the \SpecialChar LaTeX
7639 captionsetup{width=value}
7641 that is provided by the
7653 \begin_layout Subsubsection
7654 Different Captions for Table Pages
7655 \begin_inset Index idx
7658 \begin_layout Plain Layout
7659 Table ! Multi-page Table ! Different Captions for Pages
7667 \begin_layout Standard
7668 When the table captions for the following pages should differ from the one
7669 of the first table page, mark a empty row as header which contains a caption.
7670 Then right-click on the caption and select in the context menu
7673 \begin_inset space ~
7680 \begin_inset space ~
7684 \begin_inset CommandInset ref
7686 reference "tab:DiffCaptions"
7690 is an example of a multi-page table with different heading where the second
7691 caption does not include the table number.
7694 \begin_layout Standard
7696 \begin_inset Tabular
7697 <lyxtabular version="3" rows="59" columns="3">
7698 <features islongtable="true" longtabularalignment="center">
7699 <column alignment="left" valignment="top" width="0cm">
7700 <column alignment="left" valignment="top" width="0pt">
7701 <column alignment="center" valignment="top" width="0pt">
7702 <row endfirsthead="true" caption="true">
7703 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7706 \begin_layout Plain Layout
7707 \begin_inset Caption Standard
7709 \begin_layout Plain Layout
7711 \begin_inset CommandInset label
7713 name "tab:DiffCaptions"
7718 \begin_inset Argument 1
7721 \begin_layout Plain Layout
7737 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7740 \begin_layout Plain Layout
7746 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7749 \begin_layout Plain Layout
7756 <row endfirsthead="true">
7757 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7760 \begin_layout Plain Layout
7763 Example Phone List (ignore the names)
7768 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7771 \begin_layout Plain Layout
7777 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7780 \begin_layout Plain Layout
7787 <row endfirsthead="true">
7788 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7791 \begin_layout Plain Layout
7799 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7802 \begin_layout Plain Layout
7808 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7811 \begin_layout Plain Layout
7820 <row endhead="true" caption="true">
7821 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7824 \begin_layout Plain Layout
7825 \begin_inset Caption Unnumbered
7827 \begin_layout Plain Layout
7828 Continued Example Phone List
7838 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7841 \begin_layout Plain Layout
7847 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7850 \begin_layout Plain Layout
7857 <row endhead="true">
7858 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7861 \begin_layout Plain Layout
7869 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7872 \begin_layout Plain Layout
7878 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7881 \begin_layout Plain Layout
7888 <row endhead="true">
7889 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7892 \begin_layout Plain Layout
7900 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7903 \begin_layout Plain Layout
7909 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7912 \begin_layout Plain Layout
7921 <row endfoot="true">
7922 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7925 \begin_layout Plain Layout
7926 continued on next page
7931 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7934 \begin_layout Plain Layout
7940 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7943 \begin_layout Plain Layout
7951 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7954 \begin_layout Plain Layout
7962 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7965 \begin_layout Plain Layout
7971 <cell alignment="center" valignment="top" rightline="true" usebox="none">
7974 \begin_layout Plain Layout
7982 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7985 \begin_layout Plain Layout
7993 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7996 \begin_layout Plain Layout
8002 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8005 \begin_layout Plain Layout
8013 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8016 \begin_layout Plain Layout
8024 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8027 \begin_layout Plain Layout
8033 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8036 \begin_layout Plain Layout
8044 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8047 \begin_layout Plain Layout
8055 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8058 \begin_layout Plain Layout
8064 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8067 \begin_layout Plain Layout
8075 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8078 \begin_layout Plain Layout
8086 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8089 \begin_layout Plain Layout
8095 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8098 \begin_layout Plain Layout
8106 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8109 \begin_layout Plain Layout
8117 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8120 \begin_layout Plain Layout
8126 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8129 \begin_layout Plain Layout
8137 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8140 \begin_layout Plain Layout
8148 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8151 \begin_layout Plain Layout
8157 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8160 \begin_layout Plain Layout
8168 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8171 \begin_layout Plain Layout
8179 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8182 \begin_layout Plain Layout
8188 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8191 \begin_layout Plain Layout
8199 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8202 \begin_layout Plain Layout
8210 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8213 \begin_layout Plain Layout
8219 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8222 \begin_layout Plain Layout
8230 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8233 \begin_layout Plain Layout
8241 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8244 \begin_layout Plain Layout
8250 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8253 \begin_layout Plain Layout
8261 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8264 \begin_layout Plain Layout
8272 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8275 \begin_layout Plain Layout
8281 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8284 \begin_layout Plain Layout
8292 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8295 \begin_layout Plain Layout
8303 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8306 \begin_layout Plain Layout
8312 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8315 \begin_layout Plain Layout
8323 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8326 \begin_layout Plain Layout
8334 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8337 \begin_layout Plain Layout
8343 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8346 \begin_layout Plain Layout
8354 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8357 \begin_layout Plain Layout
8365 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8368 \begin_layout Plain Layout
8374 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8377 \begin_layout Plain Layout
8385 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8388 \begin_layout Plain Layout
8397 \begin_layout Plain Layout
8408 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8411 \begin_layout Plain Layout
8417 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8420 \begin_layout Plain Layout
8428 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8431 \begin_layout Plain Layout
8439 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8442 \begin_layout Plain Layout
8448 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8451 \begin_layout Plain Layout
8459 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8462 \begin_layout Plain Layout
8470 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8473 \begin_layout Plain Layout
8479 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8482 \begin_layout Plain Layout
8490 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8493 \begin_layout Plain Layout
8501 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8504 \begin_layout Plain Layout
8510 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8513 \begin_layout Plain Layout
8521 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8524 \begin_layout Plain Layout
8532 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8535 \begin_layout Plain Layout
8541 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8544 \begin_layout Plain Layout
8552 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8555 \begin_layout Plain Layout
8563 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8566 \begin_layout Plain Layout
8572 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8575 \begin_layout Plain Layout
8583 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8586 \begin_layout Plain Layout
8594 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8597 \begin_layout Plain Layout
8603 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8606 \begin_layout Plain Layout
8614 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8617 \begin_layout Plain Layout
8625 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8628 \begin_layout Plain Layout
8634 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8637 \begin_layout Plain Layout
8645 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8648 \begin_layout Plain Layout
8656 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8659 \begin_layout Plain Layout
8665 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8668 \begin_layout Plain Layout
8676 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8679 \begin_layout Plain Layout
8687 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8690 \begin_layout Plain Layout
8696 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8699 \begin_layout Plain Layout
8707 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8710 \begin_layout Plain Layout
8718 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8721 \begin_layout Plain Layout
8727 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8730 \begin_layout Plain Layout
8738 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8741 \begin_layout Plain Layout
8749 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8752 \begin_layout Plain Layout
8758 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8761 \begin_layout Plain Layout
8769 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8772 \begin_layout Plain Layout
8780 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8783 \begin_layout Plain Layout
8789 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8792 \begin_layout Plain Layout
8800 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8803 \begin_layout Plain Layout
8811 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8814 \begin_layout Plain Layout
8820 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8823 \begin_layout Plain Layout
8831 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8834 \begin_layout Plain Layout
8842 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8845 \begin_layout Plain Layout
8851 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8854 \begin_layout Plain Layout
8862 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8865 \begin_layout Plain Layout
8873 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8876 \begin_layout Plain Layout
8882 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8885 \begin_layout Plain Layout
8893 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8896 \begin_layout Plain Layout
8904 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8907 \begin_layout Plain Layout
8913 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8916 \begin_layout Plain Layout
8924 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8927 \begin_layout Plain Layout
8933 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8936 \begin_layout Plain Layout
8942 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8945 \begin_layout Plain Layout
8953 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8956 \begin_layout Plain Layout
8964 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8967 \begin_layout Plain Layout
8973 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8976 \begin_layout Plain Layout
8984 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8987 \begin_layout Plain Layout
8995 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8998 \begin_layout Plain Layout
9004 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9007 \begin_layout Plain Layout
9015 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9018 \begin_layout Plain Layout
9026 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9029 \begin_layout Plain Layout
9035 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9038 \begin_layout Plain Layout
9046 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9049 \begin_layout Plain Layout
9057 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9060 \begin_layout Plain Layout
9066 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9069 \begin_layout Plain Layout
9077 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9080 \begin_layout Plain Layout
9088 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9091 \begin_layout Plain Layout
9097 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9100 \begin_layout Plain Layout
9108 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9111 \begin_layout Plain Layout
9119 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9122 \begin_layout Plain Layout
9128 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9131 \begin_layout Plain Layout
9139 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9142 \begin_layout Plain Layout
9150 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9153 \begin_layout Plain Layout
9159 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9162 \begin_layout Plain Layout
9170 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9173 \begin_layout Plain Layout
9181 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9184 \begin_layout Plain Layout
9190 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9193 \begin_layout Plain Layout
9201 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9204 \begin_layout Plain Layout
9212 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9215 \begin_layout Plain Layout
9221 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9224 \begin_layout Plain Layout
9232 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9235 \begin_layout Plain Layout
9243 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9246 \begin_layout Plain Layout
9252 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9255 \begin_layout Plain Layout
9263 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9266 \begin_layout Plain Layout
9274 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9277 \begin_layout Plain Layout
9283 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9286 \begin_layout Plain Layout
9294 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9297 \begin_layout Plain Layout
9305 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9308 \begin_layout Plain Layout
9314 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9317 \begin_layout Plain Layout
9325 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9328 \begin_layout Plain Layout
9336 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9339 \begin_layout Plain Layout
9345 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9348 \begin_layout Plain Layout
9356 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9359 \begin_layout Plain Layout
9367 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9370 \begin_layout Plain Layout
9376 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9379 \begin_layout Plain Layout
9387 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9390 \begin_layout Plain Layout
9398 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9401 \begin_layout Plain Layout
9407 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9410 \begin_layout Plain Layout
9418 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9421 \begin_layout Plain Layout
9429 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9432 \begin_layout Plain Layout
9438 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9441 \begin_layout Plain Layout
9449 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9452 \begin_layout Plain Layout
9460 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9463 \begin_layout Plain Layout
9469 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9472 \begin_layout Plain Layout
9480 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9483 \begin_layout Plain Layout
9491 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9494 \begin_layout Plain Layout
9500 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9503 \begin_layout Plain Layout
9511 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9514 \begin_layout Plain Layout
9522 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9525 \begin_layout Plain Layout
9531 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9534 \begin_layout Plain Layout
9542 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9545 \begin_layout Plain Layout
9553 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9556 \begin_layout Plain Layout
9562 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9565 \begin_layout Plain Layout
9579 \begin_layout Section
9580 Special Multi-page Table Issues
9581 \begin_inset CommandInset label
9583 name "sec:Special-Longtable-Issues"
9590 \begin_layout Subsection
9591 Multi-page Table Calculation
9592 \begin_inset Index idx
9595 \begin_layout Plain Layout
9596 Table ! Multi-page Table ! Calculation
9604 \begin_layout Standard
9606 calculates the height of table pages and their page breaks using so called
9608 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9610 The default value was historically set to only 20
9611 \begin_inset space ~
9615 If you are using multi-page tables with many pages this may slow down the
9616 creation of your document.
9617 You can safely increase the chunk size to values of 100
9618 \begin_inset space \thinspace{}
9622 \begin_inset space \thinspace{}
9625 1000 by adding this command line to your document preamble:
9628 \begin_layout Standard
9633 setcounter{LTchunksize}{100}
9636 \begin_layout Subsection
9637 Floats and Multi-page Tables
9638 \begin_inset Index idx
9641 \begin_layout Plain Layout
9642 Table ! Multi-page Table ! Floats
9650 \begin_layout Standard
9651 There might be problems when a float appears on the same page where a multi-page
9653 To avoid such a situation, insert a
9654 \begin_inset Quotes eld
9658 \begin_inset Quotes erd
9663 Insert\SpecialChar menuseparator
9664 Formatting\SpecialChar menuseparator
9666 \begin_inset space ~
9671 ) before your multi-page table.
9674 \begin_layout Subsection
9676 \begin_inset Index idx
9679 \begin_layout Plain Layout
9680 Table ! Multi-page Table ! Forced Page Breaks
9688 \begin_layout Standard
9689 By default tables are only broken between rows.
9690 If you have a cell with multiples lines and want to have a page break within
9691 the cell, insert the new line command
9692 \begin_inset Quotes eld
9704 \begin_inset Quotes erd
9708 Code at the point of the cell where it can be broken.
9717 command you have to insert in \SpecialChar TeX
9719 \begin_inset Quotes eld
9727 \begin_inset Quotes erd
9730 characters as the number of the following table columns.
9735 is the character to separate table cells.
9736 Write in \SpecialChar TeX
9741 the content of the corresponding following cell and delete the content
9743 \begin_inset Newline newline
9754 command, insert as many
9758 characters as the number of table columns before the current column.
9760 \begin_inset space ~
9764 \begin_inset CommandInset ref
9766 reference "tab:ForcedPagebreak"
9770 the cell that should be broken is in the second column followed by another
9772 Therefore the following command was inserted in the cell as \SpecialChar TeX
9775 \begin_inset Quotes eld
9783 \begin_inset Quotes erd
9789 \begin_layout Standard
9799 \begin_inset Newline newline
9805 \begin_layout Standard
9807 \begin_inset Quotes eld
9811 \begin_inset Quotes erd
9814 in the third column of the row was deleted.
9821 is only needed when a page break should definitely occur at this position,
9822 otherwise it would be a conditional break.
9823 If your footer row of the multi-page table has for a certain reason no
9824 upper line but you would have a horizontal line where the cell is broken,
9825 use this command instead:
9828 \begin_layout Standard
9836 \begin_inset Newline newline
9844 \begin_layout Standard
9845 When the cell to be broken is in the last column, the command
9848 \begin_layout Standard
9858 \begin_layout Standard
9859 must be inserted as \SpecialChar TeX
9860 Code at the beginning of the cell.
9861 This ensures that the part of the cell that will be displayed on the new
9862 page appears with the full width.
9865 \begin_layout Standard
9867 \begin_inset Tabular
9868 <lyxtabular version="3" rows="38" columns="3">
9869 <features islongtable="true" longtabularalignment="center">
9870 <column alignment="left" valignment="top" width="0cm">
9871 <column alignment="left" valignment="top" width="3cm">
9872 <column alignment="center" valignment="top" width="0pt">
9873 <row endfirsthead="true" caption="true">
9874 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9877 \begin_layout Plain Layout
9878 \begin_inset Caption Standard
9880 \begin_layout Plain Layout
9881 Table with forced page break in table cell
9882 \begin_inset CommandInset label
9884 name "tab:ForcedPagebreak"
9889 \begin_inset Argument 1
9892 \begin_layout Plain Layout
9893 Table with forced page break in table cell
9908 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9911 \begin_layout Plain Layout
9917 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9920 \begin_layout Plain Layout
9927 <row endfirsthead="true">
9928 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9931 \begin_layout Plain Layout
9934 Example Phone List (ignore the names)
9939 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9942 \begin_layout Plain Layout
9948 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9951 \begin_layout Plain Layout
9958 <row endfirsthead="true">
9959 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9962 \begin_layout Plain Layout
9970 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9973 \begin_layout Plain Layout
9979 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9982 \begin_layout Plain Layout
9991 <row endhead="true" caption="true">
9992 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9995 \begin_layout Plain Layout
9996 \begin_inset Caption Unnumbered
9998 \begin_layout Plain Layout
9999 Continued Example Phone List
10009 <cell multicolumn="2" alignment="left" valignment="top" rightline="true" usebox="none">
10012 \begin_layout Plain Layout
10018 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10021 \begin_layout Plain Layout
10028 <row endhead="true">
10029 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10032 \begin_layout Plain Layout
10040 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10043 \begin_layout Plain Layout
10049 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10052 \begin_layout Plain Layout
10059 <row endhead="true">
10060 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10063 \begin_layout Plain Layout
10071 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10074 \begin_layout Plain Layout
10080 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10083 \begin_layout Plain Layout
10092 <row endfoot="true">
10093 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10096 \begin_layout Plain Layout
10097 continued on next page
10102 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10105 \begin_layout Plain Layout
10111 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10114 \begin_layout Plain Layout
10122 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10125 \begin_layout Plain Layout
10133 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10136 \begin_layout Plain Layout
10142 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10145 \begin_layout Plain Layout
10153 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10156 \begin_layout Plain Layout
10164 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10167 \begin_layout Plain Layout
10173 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10176 \begin_layout Plain Layout
10184 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10187 \begin_layout Plain Layout
10195 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10198 \begin_layout Plain Layout
10204 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10207 \begin_layout Plain Layout
10215 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10218 \begin_layout Plain Layout
10226 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10229 \begin_layout Plain Layout
10235 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10238 \begin_layout Plain Layout
10246 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10249 \begin_layout Plain Layout
10257 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10260 \begin_layout Plain Layout
10266 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10269 \begin_layout Plain Layout
10277 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10280 \begin_layout Plain Layout
10288 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10291 \begin_layout Plain Layout
10297 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10300 \begin_layout Plain Layout
10308 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10311 \begin_layout Plain Layout
10319 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10322 \begin_layout Plain Layout
10328 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10331 \begin_layout Plain Layout
10339 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10342 \begin_layout Plain Layout
10350 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10353 \begin_layout Plain Layout
10359 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10362 \begin_layout Plain Layout
10370 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10373 \begin_layout Plain Layout
10381 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10384 \begin_layout Plain Layout
10390 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10393 \begin_layout Plain Layout
10401 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10404 \begin_layout Plain Layout
10412 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10415 \begin_layout Plain Layout
10421 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10424 \begin_layout Plain Layout
10432 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10435 \begin_layout Plain Layout
10443 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10446 \begin_layout Plain Layout
10452 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10455 \begin_layout Plain Layout
10463 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10466 \begin_layout Plain Layout
10474 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10477 \begin_layout Plain Layout
10483 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10486 \begin_layout Plain Layout
10494 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10497 \begin_layout Plain Layout
10505 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10508 \begin_layout Plain Layout
10514 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10517 \begin_layout Plain Layout
10525 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10528 \begin_layout Plain Layout
10536 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10539 \begin_layout Plain Layout
10545 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10548 \begin_layout Plain Layout
10556 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10559 \begin_layout Plain Layout
10567 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10570 \begin_layout Plain Layout
10576 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10579 \begin_layout Plain Layout
10587 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10590 \begin_layout Plain Layout
10598 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10601 \begin_layout Plain Layout
10607 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10610 \begin_layout Plain Layout
10618 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10621 \begin_layout Plain Layout
10629 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10632 \begin_layout Plain Layout
10638 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10641 \begin_layout Plain Layout
10649 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10652 \begin_layout Plain Layout
10660 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10663 \begin_layout Plain Layout
10669 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10672 \begin_layout Plain Layout
10680 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10683 \begin_layout Plain Layout
10691 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10694 \begin_layout Plain Layout
10700 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10703 \begin_layout Plain Layout
10711 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10714 \begin_layout Plain Layout
10722 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10725 \begin_layout Plain Layout
10731 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10734 \begin_layout Plain Layout
10742 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10745 \begin_layout Plain Layout
10753 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10756 \begin_layout Plain Layout
10762 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10765 \begin_layout Plain Layout
10773 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10776 \begin_layout Plain Layout
10784 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10787 \begin_layout Plain Layout
10793 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10796 \begin_layout Plain Layout
10804 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10807 \begin_layout Plain Layout
10815 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10818 \begin_layout Plain Layout
10820 Fürst von Montecompatri, 11.
10821 Fürst von Sulmona und Vivaro, 10.
10822 Fürst von Rossano, 5.
10823 Herzog von Canemorte, 11.
10824 Herzog von Palombara, 5.
10825 Herzog von Castelchiodato,
10829 \begin_layout Plain Layout
10840 \begin_layout Plain Layout
10848 Herzog von Poggionativo, 11.
10849 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10850 Graf von Valinfreda, 11.
10851 Baron von Cropalati, 11.
10852 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10857 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10860 \begin_layout Plain Layout
10868 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10871 \begin_layout Plain Layout
10879 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10882 \begin_layout Plain Layout
10888 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10891 \begin_layout Plain Layout
10899 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10902 \begin_layout Plain Layout
10910 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10913 \begin_layout Plain Layout
10919 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10922 \begin_layout Plain Layout
10930 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10933 \begin_layout Plain Layout
10941 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10944 \begin_layout Plain Layout
10950 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10953 \begin_layout Plain Layout
10961 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10964 \begin_layout Plain Layout
10972 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10975 \begin_layout Plain Layout
10981 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10984 \begin_layout Plain Layout
10992 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10995 \begin_layout Plain Layout
11003 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11006 \begin_layout Plain Layout
11012 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11015 \begin_layout Plain Layout
11023 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11026 \begin_layout Plain Layout
11034 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11037 \begin_layout Plain Layout
11043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11046 \begin_layout Plain Layout
11054 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11057 \begin_layout Plain Layout
11065 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11068 \begin_layout Plain Layout
11074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11077 \begin_layout Plain Layout
11085 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11088 \begin_layout Plain Layout
11096 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
11099 \begin_layout Plain Layout
11105 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11108 \begin_layout Plain Layout
11122 \begin_layout Section
11123 Multiple Lines, Columns and Rows
11126 \begin_layout Subsection
11127 Multiple Lines in Table Cells
11128 \begin_inset CommandInset label
11130 name "subsec:Multiple-Lines-in"
11135 \begin_inset Index idx
11138 \begin_layout Plain Layout
11139 Multiple Lines in Table Cells
11145 \begin_inset Index idx
11148 \begin_layout Plain Layout
11157 \begin_layout Standard
11159 \begin_inset Float table
11165 \begin_layout Plain Layout
11166 \begin_inset Caption Standard
11168 \begin_layout Plain Layout
11169 \begin_inset CommandInset label
11171 name "tab:Table-with-multiple"
11175 Table with multiple lines in cells
11183 \begin_layout Plain Layout
11185 \begin_inset Tabular
11186 <lyxtabular version="3" rows="3" columns="3">
11187 <features tabularvalignment="middle">
11188 <column alignment="center" valignment="middle" width="2.5cm">
11189 <column alignment="center" valignment="middle">
11190 <column alignment="center" valignment="middle">
11192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11195 \begin_layout Plain Layout
11197 \begin_inset Newline linebreak
11205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11208 \begin_layout Plain Layout
11214 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11217 \begin_layout Plain Layout
11225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11228 \begin_layout Plain Layout
11234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11237 \begin_layout Plain Layout
11243 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11246 \begin_layout Plain Layout
11254 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11257 \begin_layout Plain Layout
11263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11266 \begin_layout Plain Layout
11272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11275 \begin_layout Plain Layout
11294 \begin_layout Standard
11295 Setting a fixed width for a column enables you to enter text as a paragraph
11296 with multiple lines and hyphenation.
11299 \begin_layout Standard
11301 \begin_inset space ~
11305 \begin_inset CommandInset ref
11307 reference "tab:Table-with-multiple"
11311 , create a 3×3 table, mark the first cell and right-click on it.
11312 In the appearing table dialog we set a cell width of 2.5
11313 \begin_inset space \thinspace{}
11316 cm and choose centered for the vertical and horizontal alignment.
11317 The vertical alignment is used for all cells of the row.
11318 As our text is smaller than 2.5
11319 \begin_inset space \thinspace{}
11322 cm, only one line will appear.
11323 To get two lines, a justified line break (shortcut
11326 arg "newline-insert linebreak"
11330 If the text is wider than the set cell width, it will automatically be
11331 broken to several lines.
11334 \begin_layout Standard
11335 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11336 by \SpecialChar LaTeX
11337 if it is the first entry.
11338 Therefore you need to insert something to prevent the word not being the
11340 So add a horizontal space of 0
11341 \begin_inset space \thinspace{}
11344 pt before the word.
11345 As the space is zero, it doesn't change the output.
11347 \begin_inset space ~
11351 \begin_inset CommandInset ref
11353 reference "tab:Table-with-and"
11360 \begin_layout Standard
11361 \begin_inset Float table
11367 \begin_layout Plain Layout
11368 \begin_inset Caption Standard
11370 \begin_layout Plain Layout
11371 \begin_inset CommandInset label
11373 name "tab:Table-with-and"
11377 Table with and without hyphenation
11385 \begin_layout Plain Layout
11386 \begin_inset space \hfill{}
11390 \begin_inset Tabular
11391 <lyxtabular version="3" rows="3" columns="3">
11392 <features tabularvalignment="middle">
11393 <column alignment="center" valignment="middle" width="2.5cm">
11394 <column alignment="center" valignment="middle">
11395 <column alignment="center" valignment="middle">
11397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11400 \begin_layout Plain Layout
11401 verylongtablecellword
11406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11409 \begin_layout Plain Layout
11415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11418 \begin_layout Plain Layout
11426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11429 \begin_layout Plain Layout
11435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11438 \begin_layout Plain Layout
11444 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11447 \begin_layout Plain Layout
11455 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11458 \begin_layout Plain Layout
11464 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11467 \begin_layout Plain Layout
11473 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11476 \begin_layout Plain Layout
11488 \begin_inset space \hfill{}
11492 \begin_inset Tabular
11493 <lyxtabular version="3" rows="3" columns="3">
11494 <features tabularvalignment="middle">
11495 <column alignment="center" valignment="middle" width="2.5cm">
11496 <column alignment="center" valignment="middle">
11497 <column alignment="center" valignment="middle">
11499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11502 \begin_layout Plain Layout
11503 \begin_inset space \hspace{}
11507 verylongtablecellword
11512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11515 \begin_layout Plain Layout
11521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11524 \begin_layout Plain Layout
11532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11535 \begin_layout Plain Layout
11541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11544 \begin_layout Plain Layout
11550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11553 \begin_layout Plain Layout
11561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11564 \begin_layout Plain Layout
11570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11573 \begin_layout Plain Layout
11579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11582 \begin_layout Plain Layout
11594 \begin_inset space \hfill{}
11605 \begin_layout Subsection
11607 \begin_inset CommandInset label
11609 name "subsec:Multicolumns"
11614 \begin_inset Index idx
11617 \begin_layout Plain Layout
11624 \begin_inset Index idx
11627 \begin_layout Plain Layout
11628 Table ! Multicolumns
11636 \begin_layout Subsubsection
11640 \begin_layout Standard
11641 To merge cells over multiple columns, select as many cells within a row
11642 as you want to merge and use either the table-toolbar button
11645 arg "tabular-feature multicolumn"
11650 Edit\SpecialChar menuseparator
11651 Table\SpecialChar menuseparator
11654 , or right click on the marked cells and choose
11658 in the context menu.
11661 \begin_layout Standard
11662 Multicolumns have their own cell settings.
11663 That means changing cell borders, cell alignment, and the width only affects
11665 Here is an example table with a multicolumn cell in the first row and one
11666 in the last row without the upper border:
11669 \begin_layout Standard
11671 \begin_inset Tabular
11672 <lyxtabular version="3" rows="3" columns="4">
11673 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11674 <column alignment="center" valignment="top" width="0pt">
11675 <column alignment="center" valignment="middle">
11676 <column alignment="center" valignment="top" width="0in">
11677 <column alignment="center" valignment="top" width="0pt">
11679 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11682 \begin_layout Plain Layout
11688 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11691 \begin_layout Plain Layout
11697 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11700 \begin_layout Plain Layout
11706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11709 \begin_layout Plain Layout
11717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11720 \begin_layout Plain Layout
11735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11738 \begin_layout Plain Layout
11744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11747 \begin_layout Plain Layout
11753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11756 \begin_layout Plain Layout
11764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11767 \begin_layout Plain Layout
11773 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11776 \begin_layout Plain Layout
11782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11785 \begin_layout Plain Layout
11791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11794 \begin_layout Plain Layout
11808 \begin_layout Subsubsection
11809 Multicolumn Calculations
11810 \begin_inset CommandInset label
11812 name "subsec:Multicolumn-Calculations"
11817 \begin_inset Index idx
11820 \begin_layout Plain Layout
11821 Multicolumns ! Calculations
11829 \begin_layout Standard
11831 supports multicolumns directly, but we have to take account of the cell
11832 width of the columns spanned by the multicolumn cell.
11835 \begin_layout Standard
11836 \begin_inset Float table
11842 \begin_layout Plain Layout
11843 \begin_inset Caption Standard
11845 \begin_layout Plain Layout
11846 \begin_inset CommandInset label
11848 name "tab:Table-with-centered"
11852 Table with centered multicolumn text above two columns that have exactly
11853 half the width of the multicolumn cell
11854 \begin_inset Argument 1
11857 \begin_layout Plain Layout
11858 Perfect multicolumn table
11871 \begin_layout Plain Layout
11873 \begin_inset Tabular
11874 <lyxtabular version="3" rows="3" columns="3">
11875 <features tabularvalignment="middle">
11876 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11877 <column alignment="center" valignment="middle">
11878 <column alignment="center" valignment="top">
11880 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11883 \begin_layout Plain Layout
11884 multiple lines multicolumn
11889 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11892 \begin_layout Plain Layout
11898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11901 \begin_layout Plain Layout
11909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11912 \begin_layout Plain Layout
11918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11921 \begin_layout Plain Layout
11927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11930 \begin_layout Plain Layout
11938 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11941 \begin_layout Plain Layout
11947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11950 \begin_layout Plain Layout
11956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11959 \begin_layout Plain Layout
11978 \begin_layout Standard
11979 To create for example Table
11980 \begin_inset space ~
11984 \begin_inset CommandInset ref
11986 reference "tab:Table-with-centered"
11990 , mark the first two cells in the first row of a 3×3 table and right-click
11992 Now choose for this cell
12001 \begin_inset space \thinspace{}
12004 cm in the table dialog.
12005 The merged columns should have exactly half the width of the multicolumn
12006 cell, so that you would set a width of 1.25
12007 \begin_inset space \thinspace{}
12010 cm for the first column.
12011 The second column has then automatically a width of 1.25
12012 \begin_inset space \thinspace{}
12015 cm (multicolumn width - width of first column).
12016 This was done for Table
12017 \begin_inset space ~
12021 \begin_inset CommandInset ref
12023 reference "tab:Table-without-half"
12030 \begin_layout Standard
12031 \begin_inset Float table
12036 \begin_layout Plain Layout
12037 \begin_inset Caption Standard
12039 \begin_layout Plain Layout
12040 \begin_inset CommandInset label
12042 name "tab:Table-without-half"
12046 Table where the spanned table columns are not exactly half the width of
12047 the multicolumn cell
12048 \begin_inset Argument 1
12051 \begin_layout Plain Layout
12052 Imperfect multicolumn table
12065 \begin_layout Plain Layout
12067 \begin_inset Tabular
12068 <lyxtabular version="3" rows="3" columns="3">
12069 <features tabularvalignment="middle">
12070 <column alignment="center" valignment="top" width="1.25cm">
12071 <column alignment="center" valignment="top">
12072 <column alignment="center" valignment="top">
12074 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12077 \begin_layout Plain Layout
12078 multiple lines multicolumn
12083 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12086 \begin_layout Plain Layout
12092 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12095 \begin_layout Plain Layout
12103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12106 \begin_layout Plain Layout
12112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12115 \begin_layout Plain Layout
12121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12124 \begin_layout Plain Layout
12132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12135 \begin_layout Plain Layout
12141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12144 \begin_layout Plain Layout
12150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12153 \begin_layout Plain Layout
12172 \begin_layout Standard
12173 You can see that the first column is not half the width of the multicolumn
12174 cell, it is a bit bigger.
12175 The reason is that the specified width of a cell
12176 \begin_inset Formula $W_{g}$
12179 is not its total width
12180 \begin_inset Formula $W_{\mathrm{tot}}$
12183 because a cell is always a bit larger than specified.
12185 \begin_inset space ~
12189 \begin_inset CommandInset ref
12191 reference "cha:Explanation-of-Equation"
12195 explains this in detail.
12198 \begin_layout Standard
12200 \begin_inset Formula $W_{g\,n}$
12203 which the user needs to set when
12207 columns are spanned can be calculated, so that each column has a total
12209 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12213 \begin_inset Formula
12215 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12223 \begin_layout Standard
12224 In our case we have
12225 \begin_inset Formula $n=2$
12229 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12232 cm and the default values for the lengths, so that equation
12233 \begin_inset CommandInset ref
12240 \begin_inset Formula
12242 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12250 \begin_layout Standard
12251 To enable calculations in \SpecialChar LaTeX
12252 , the \SpecialChar LaTeX
12257 must be loaded with the document preamble line
12258 \begin_inset Index idx
12261 \begin_layout Plain Layout
12271 \begin_layout Standard
12279 \begin_layout Standard
12281 does not allow you to calculate lengths in the
12285 field of the table dialog.
12286 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12289 Here is an overview about the arguments:
12292 \begin_layout Itemize
12297 creates cell with a fixed width, its text is vertically top-aligned
12300 \begin_layout Itemize
12305 creates cell with a fixed width, its text is vertically centered
12308 \begin_layout Itemize
12313 creates cell with a fixed width, its text is vertically bottom-aligned
12316 \begin_layout Standard
12317 By entering a \SpecialChar LaTeX
12318 -argument, all cell settings set in the table dialog are overwritt
12322 \begin_layout Standard
12323 \begin_inset Note Greyedout
12326 \begin_layout Plain Layout
12331 Due to a bug, \SpecialChar LyX
12332 shows the overwritten settings anyway.
12340 \begin_layout Standard
12341 As the text should be horizontally centered, the command
12348 You can now enter the following \SpecialChar LaTeX
12349 -argument for the first spanned column:
12352 \begin_layout Standard
12357 centering}m{1.25cm-6.2pt}
12360 \begin_layout Standard
12365 means, that the commands inside the braces are applied before the cell
12369 \begin_layout Standard
12370 Although we have chosen centered alignment for the text of the multicolumn
12371 cell, it is still left aligned.
12372 This is because \SpecialChar LyX
12373 only applies the alignment to single columns.
12374 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12378 \begin_layout Standard
12386 \begin_layout Subsection
12388 \begin_inset CommandInset label
12390 name "subsec:Multirows"
12395 \begin_inset Index idx
12398 \begin_layout Plain Layout
12405 \begin_inset Index idx
12408 \begin_layout Plain Layout
12417 \begin_layout Standard
12418 To merge cells over multiple rows, select as many cells within a column
12419 as you want to merge and use either the table-toolbar button
12422 arg "tabular-feature multirow"
12427 Edit\SpecialChar menuseparator
12428 Table\SpecialChar menuseparator
12431 , or right click on the marked cells and choose
12435 in the context menu.
12438 \begin_layout Standard
12439 Here is an example table with a multirow in the first column:
12442 \begin_layout Standard
12444 \begin_inset Tabular
12445 <lyxtabular version="3" rows="3" columns="3">
12446 <features tabularvalignment="middle">
12447 <column alignment="center" valignment="top" width="0pt">
12448 <column alignment="center" valignment="top">
12449 <column alignment="center" valignment="top">
12451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12454 \begin_layout Plain Layout
12460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12463 \begin_layout Plain Layout
12469 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12472 \begin_layout Plain Layout
12480 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12483 \begin_layout Plain Layout
12489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12492 \begin_layout Plain Layout
12498 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12501 \begin_layout Plain Layout
12509 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12512 \begin_layout Plain Layout
12518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12521 \begin_layout Plain Layout
12527 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12530 \begin_layout Plain Layout
12544 \begin_layout Standard
12545 The width of multirow cells is set by setting the width and alignment for
12551 shifts the content of the multirow up/down if the offset is positive/negative.
12554 \begin_layout Standard
12555 If the column of a multirow cell has no explicit width, the multirow cell
12556 inherits the alignment of the column.
12557 Otherwise it is by default left-aligned.
12558 To override the default, renew the command
12567 \begin_layout Standard
12579 \begin_layout Standard
12580 in the document preamble.
12581 Then all entries of multirow cells in the document are centered.
12582 If centering is only needed for several tables, you can renew the command
12583 in a \SpecialChar TeX
12584 Code box just before the table instead of the preamble.
12585 If the text should be right-aligned, replace
12598 To return to left-alignment
12607 \begin_layout Standard
12608 This is an example table with a right-aligned multirow cell that has a vertical
12610 \begin_inset space \thinspace{}
12614 \begin_inset space \thinspace{}
12620 \begin_layout Standard
12626 \begin_layout Plain Layout
12640 \begin_inset Tabular
12641 <lyxtabular version="3" rows="4" columns="3">
12642 <features tabularvalignment="middle">
12643 <column alignment="center" valignment="top" width="3cm">
12644 <column alignment="center" valignment="top">
12645 <column alignment="center" valignment="top">
12647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12650 \begin_layout Plain Layout
12656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12659 \begin_layout Plain Layout
12665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12668 \begin_layout Plain Layout
12676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12679 \begin_layout Plain Layout
12685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12688 \begin_layout Plain Layout
12694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12697 \begin_layout Plain Layout
12705 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12708 \begin_layout Plain Layout
12714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12717 \begin_layout Plain Layout
12723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12726 \begin_layout Plain Layout
12734 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12737 \begin_layout Plain Layout
12743 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12746 \begin_layout Plain Layout
12752 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12755 \begin_layout Plain Layout
12770 \begin_layout Plain Layout
12786 \begin_layout Standard
12787 To start a new line in a multirow you can use a forced line break (shortcut
12791 arg "newline-insert newline"
12794 ) but this will not respect the cell lines as demonstrated in this table:
12797 \begin_layout Standard
12800 \begin_inset Tabular
12801 <lyxtabular version="3" rows="3" columns="2">
12802 <features tabularvalignment="middle">
12803 <column alignment="left" valignment="middle" width="2cm">
12804 <column alignment="center" valignment="top">
12806 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12809 \begin_layout Plain Layout
12811 \begin_inset Newline newline
12815 \begin_inset Newline newline
12823 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12826 \begin_layout Plain Layout
12834 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12837 \begin_layout Plain Layout
12843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12846 \begin_layout Plain Layout
12854 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12857 \begin_layout Plain Layout
12863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12866 \begin_layout Plain Layout
12880 \begin_layout Standard
12881 Therefore be careful with forced line breaks.
12884 \begin_layout Subsection
12885 Cells with diagonal line(s)
12888 \begin_layout Standard
12889 To tell the reader what is meant by column and row headings in a table,
12890 it is helpful to split the first cell of the table by one or two diagonal
12892 This can be achieved by loading the \SpecialChar LaTeX
12898 \begin_inset Index idx
12901 \begin_layout Plain Layout
12903 -packages ! picinpar
12908 in the document preamble.
12909 The package provides the command
12915 that is inserted as \SpecialChar TeX
12916 Code and that can take 2 or 3
12917 \begin_inset space ~
12923 \begin_layout Standard
12928 diagbox[options]{lower left}{upper right}
12931 \begin_layout Standard
12936 diagbox[options]{lower left}{upper left}{upper right}
12939 \begin_layout Standard
12940 The first scheme divides the cell by a single diagonal line and the arguments
12941 are placed below and above this line.
12942 The second scheme divides the cell by 2
12943 \begin_inset space ~
12949 \begin_layout Standard
12953 \begin_layout Plain Layout
12963 \begin_inset Note Note
12966 \begin_layout Plain Layout
12967 The following section will only be displayed when the \SpecialChar LaTeX
12980 \begin_layout Standard
12981 Here is an example table where
12987 is used in the 2-argument scheme in the first cell:
12988 \begin_inset VSpace medskip
12994 \begin_layout Standard
12996 \begin_inset Tabular
12997 <lyxtabular version="3" rows="4" columns="4">
12998 <features tabularvalignment="middle">
12999 <column alignment="center" valignment="top">
13000 <column alignment="center" valignment="top">
13001 <column alignment="center" valignment="top">
13002 <column alignment="center" valignment="top">
13004 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13007 \begin_layout Plain Layout
13011 \begin_layout Plain Layout
13024 \begin_layout Plain Layout
13035 \begin_layout Plain Layout
13047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13050 \begin_layout Plain Layout
13056 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13059 \begin_layout Plain Layout
13065 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13068 \begin_layout Plain Layout
13076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13079 \begin_layout Plain Layout
13085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13088 \begin_layout Plain Layout
13094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13097 \begin_layout Plain Layout
13103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13106 \begin_layout Plain Layout
13114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13117 \begin_layout Plain Layout
13123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13126 \begin_layout Plain Layout
13132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13135 \begin_layout Plain Layout
13141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13144 \begin_layout Plain Layout
13152 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13155 \begin_layout Plain Layout
13161 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13164 \begin_layout Plain Layout
13170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13173 \begin_layout Plain Layout
13179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13182 \begin_layout Plain Layout
13194 \begin_inset VSpace medskip
13200 \begin_layout Standard
13201 The 3-argument scheme is for example useful for cross-tables of sports leagues
13205 \begin_layout Standard
13208 \begin_inset Tabular
13209 <lyxtabular version="3" rows="4" columns="4">
13210 <features tabularvalignment="middle">
13211 <column alignment="center" valignment="top" width="0pt">
13212 <column alignment="center" valignment="top">
13213 <column alignment="center" valignment="top">
13214 <column alignment="center" valignment="top">
13216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13219 \begin_layout Plain Layout
13223 \begin_layout Plain Layout
13236 \begin_layout Plain Layout
13247 \begin_layout Plain Layout
13258 \begin_layout Plain Layout
13270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13273 \begin_layout Plain Layout
13279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13282 \begin_layout Plain Layout
13288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13291 \begin_layout Plain Layout
13299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13302 \begin_layout Plain Layout
13308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13311 \begin_layout Plain Layout
13317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13320 \begin_layout Plain Layout
13326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13329 \begin_layout Plain Layout
13337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13340 \begin_layout Plain Layout
13346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13349 \begin_layout Plain Layout
13355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13358 \begin_layout Plain Layout
13364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13367 \begin_layout Plain Layout
13375 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13378 \begin_layout Plain Layout
13384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13387 \begin_layout Plain Layout
13393 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13396 \begin_layout Plain Layout
13402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13405 \begin_layout Plain Layout
13419 \begin_layout Standard
13420 For larger cross-tables one might use split cells in 2 or every corner of
13421 the table like in this example:
13424 \begin_layout Standard
13427 \begin_inset Tabular
13428 <lyxtabular version="3" rows="5" columns="5">
13429 <features tabularvalignment="middle">
13430 <column alignment="center" valignment="top" width="0pt">
13431 <column alignment="center" valignment="top">
13432 <column alignment="center" valignment="top">
13433 <column alignment="center" valignment="top">
13434 <column alignment="center" valignment="top">
13436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13439 \begin_layout Plain Layout
13443 \begin_layout Plain Layout
13456 \begin_layout Plain Layout
13467 \begin_layout Plain Layout
13478 \begin_layout Plain Layout
13490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13493 \begin_layout Plain Layout
13499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13502 \begin_layout Plain Layout
13508 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13511 \begin_layout Plain Layout
13517 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13520 \begin_layout Plain Layout
13524 \begin_layout Plain Layout
13537 \begin_layout Plain Layout
13548 \begin_layout Plain Layout
13559 \begin_layout Plain Layout
13573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13576 \begin_layout Plain Layout
13582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13585 \begin_layout Plain Layout
13591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13594 \begin_layout Plain Layout
13600 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13603 \begin_layout Plain Layout
13609 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13612 \begin_layout Plain Layout
13620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13623 \begin_layout Plain Layout
13629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13632 \begin_layout Plain Layout
13638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13641 \begin_layout Plain Layout
13647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13650 \begin_layout Plain Layout
13656 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13659 \begin_layout Plain Layout
13667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13670 \begin_layout Plain Layout
13676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13679 \begin_layout Plain Layout
13685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13688 \begin_layout Plain Layout
13694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13697 \begin_layout Plain Layout
13703 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13706 \begin_layout Plain Layout
13714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13717 \begin_layout Plain Layout
13721 \begin_layout Plain Layout
13734 \begin_layout Plain Layout
13745 \begin_layout Plain Layout
13756 \begin_layout Plain Layout
13768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13771 \begin_layout Plain Layout
13777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13780 \begin_layout Plain Layout
13786 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13789 \begin_layout Plain Layout
13795 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13798 \begin_layout Plain Layout
13802 \begin_layout Plain Layout
13815 \begin_layout Plain Layout
13826 \begin_layout Plain Layout
13837 \begin_layout Plain Layout
13857 \begin_layout Standard
13858 To rotate the diagonal lines, the command option
13883 and represent a point of a compass.
13888 is for example the south-west corner.
13889 Thus in the lower left cell of the above table the command
13892 \begin_layout Standard
13897 diagbox[dir=SW]{Team home}{Result}{Team away}
13900 \begin_layout Standard
13902 If no direction is given, it will be NW.
13905 \begin_layout Standard
13906 The necessary width of split cells is automatically calculated.
13907 Thus if you set a fixed column width smaller than the calculated one, the
13908 cell's content will protrude the cell borders:
13911 \begin_layout Standard
13914 \begin_inset Tabular
13915 <lyxtabular version="3" rows="2" columns="2">
13916 <features tabularvalignment="middle">
13917 <column alignment="center" valignment="top" width="3cm">
13918 <column alignment="center" valignment="top">
13920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13923 \begin_layout Plain Layout
13927 \begin_layout Plain Layout
13940 \begin_layout Plain Layout
13951 \begin_layout Plain Layout
13963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13966 \begin_layout Plain Layout
13974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13977 \begin_layout Plain Layout
13983 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13986 \begin_layout Plain Layout
14000 \begin_layout Standard
14001 If you need a certain width for columns with a split cell, use the command
14006 (replace '3cm' by the width you need).
14007 In the following table the width of the first column is set to 4
14008 \begin_inset space \thinspace{}
14019 \begin_inset space \thinspace{}
14023 \begin_inset space \thinspace{}
14028 tabcolsep is necessary because the overall width is the width for the text
14029 (in this case the 4
14030 \begin_inset space \thinspace{}
14033 cm) plus two times the separation of the text and the cell border.
14034 The calculation of the width cannot be done in the command option of
14040 so one needs to create a new length which can be used later.
14041 This is done with the \SpecialChar TeX
14045 \begin_layout Standard
14053 \begin_inset Newline newline
14065 \begin_layout Standard
14069 \begin_layout Plain Layout
14078 \begin_layout Plain Layout
14094 \begin_layout Standard
14095 To enable calculations in \SpecialChar LaTeX
14096 one needs to load the package
14101 \begin_inset Index idx
14104 \begin_layout Plain Layout
14111 in the document preamble.
14114 \begin_layout Standard
14115 In this table you can now use the command
14118 \begin_layout Standard
14128 \begin_layout Standard
14132 \begin_layout Standard
14135 \begin_inset Tabular
14136 <lyxtabular version="3" rows="2" columns="2">
14137 <features tabularvalignment="middle">
14138 <column alignment="center" valignment="top" width="4cm">
14139 <column alignment="center" valignment="top">
14141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14144 \begin_layout Plain Layout
14148 \begin_layout Plain Layout
14163 \begin_layout Plain Layout
14174 \begin_layout Plain Layout
14186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14189 \begin_layout Plain Layout
14197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14200 \begin_layout Plain Layout
14206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14209 \begin_layout Plain Layout
14223 \begin_layout Standard
14224 Note that the split cell needs to be the widest one in the column.
14225 Otherwise the length of the diagonal line cannot be calculated correctly
14226 like in this table:
14229 \begin_layout Standard
14232 \begin_inset Tabular
14233 <lyxtabular version="3" rows="2" columns="2">
14234 <features tabularvalignment="middle">
14235 <column alignment="center" valignment="top" width="0pt">
14236 <column alignment="center" valignment="top">
14238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14241 \begin_layout Plain Layout
14245 \begin_layout Plain Layout
14258 \begin_layout Plain Layout
14269 \begin_layout Plain Layout
14281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14284 \begin_layout Plain Layout
14292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14295 \begin_layout Plain Layout
14301 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14304 \begin_layout Plain Layout
14318 \begin_layout Standard
14319 In this case use the
14330 It is then not necessary to add 2
14332 tabcolsep because the cell width is now the width of the column.
14333 In this table a width of 3
14334 \begin_inset space \thinspace{}
14340 \begin_layout Standard
14343 \begin_inset Tabular
14344 <lyxtabular version="3" rows="2" columns="2">
14345 <features tabularvalignment="middle">
14346 <column alignment="center" valignment="top" width="0pt">
14347 <column alignment="center" valignment="top">
14349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14352 \begin_layout Plain Layout
14356 \begin_layout Plain Layout
14360 diagbox[width=3cm]{
14369 \begin_layout Plain Layout
14380 \begin_layout Plain Layout
14392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14395 \begin_layout Plain Layout
14403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14406 \begin_layout Plain Layout
14412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14415 \begin_layout Plain Layout
14429 \begin_layout Standard
14430 For multiple text lines in split cells one needs some extra height to fit
14431 the text to the cell.
14432 This can be achieved with the
14442 (replace '3cm' by the height you need).
14443 In the following table the command
14446 \begin_layout Standard
14451 diagbox[width=3cm,height=1.4cm]{A
14462 \begin_layout Standard
14463 is used in the first cell.
14472 creates hereby the line break.
14476 \begin_layout Plain Layout
14477 Breaking lines with
14481 is only possible when the column has a fixed width.
14489 \begin_layout Standard
14492 \begin_inset Tabular
14493 <lyxtabular version="3" rows="2" columns="2">
14494 <features tabularvalignment="middle">
14495 <column alignment="center" valignment="top">
14496 <column alignment="center" valignment="top">
14498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14501 \begin_layout Plain Layout
14505 \begin_layout Plain Layout
14509 diagbox[width=3cm,height=1.4cm]{
14518 \begin_layout Plain Layout
14533 \begin_layout Plain Layout
14544 \begin_layout Plain Layout
14559 \begin_layout Plain Layout
14571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14574 \begin_layout Plain Layout
14582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14585 \begin_layout Plain Layout
14591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14594 \begin_layout Plain Layout
14608 \begin_layout Standard
14612 \begin_layout Plain Layout
14622 \begin_inset Note Note
14625 \begin_layout Plain Layout
14626 The following will be displayed when the \SpecialChar LaTeX
14639 \begin_layout Standard
14640 You need to install the \SpecialChar LaTeX
14645 to see the following part of this section in the output.
14648 \begin_layout Standard
14652 \begin_layout Plain Layout
14664 \begin_layout Standard
14665 For more info about the \SpecialChar LaTeX
14670 , see its documentation,
14671 \begin_inset CommandInset citation
14680 \begin_layout Section
14682 \begin_inset CommandInset label
14684 name "sec:Formal-Tables"
14689 \begin_inset Index idx
14692 \begin_layout Plain Layout
14701 \begin_layout Standard
14702 Tables are often typeset in books similar to Table
14703 \begin_inset space ~
14707 \begin_inset CommandInset ref
14709 reference "tab:Example-booktabs-table"
14714 This kind of tables is called
14715 \begin_inset Quotes eld
14723 \begin_inset Quotes erd
14727 To make a table a formal table use the option
14735 tab of the table dialog.
14738 \begin_layout Standard
14739 \begin_inset Float table
14745 \begin_layout Plain Layout
14746 \begin_inset Caption Standard
14748 \begin_layout Plain Layout
14749 \begin_inset CommandInset label
14751 name "tab:Example-booktabs-table"
14755 Example booktabs-table
14763 \begin_layout Plain Layout
14765 \begin_inset Tabular
14766 <lyxtabular version="3" rows="8" columns="4">
14767 <features booktabs="true" tabularvalignment="middle">
14768 <column alignment="center" valignment="top">
14769 <column alignment="center" valignment="top">
14770 <column alignment="center" valignment="top">
14771 <column alignment="center" valignment="top">
14773 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14776 \begin_layout Plain Layout
14782 <cell alignment="center" valignment="top" topline="true" usebox="none">
14785 \begin_layout Plain Layout
14787 \begin_inset space \thinspace{}
14795 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14798 \begin_layout Plain Layout
14800 \begin_inset space \thinspace{}
14808 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14811 \begin_layout Plain Layout
14819 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14822 \begin_layout Plain Layout
14826 \begin_layout Plain Layout
14839 \begin_layout Plain Layout
14848 Detector thickness in µm
14853 <cell alignment="center" valignment="top" usebox="none">
14856 \begin_layout Plain Layout
14862 <cell alignment="center" valignment="top" usebox="none">
14865 \begin_layout Plain Layout
14871 <cell alignment="center" valignment="top" usebox="none">
14874 \begin_layout Plain Layout
14882 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14885 \begin_layout Plain Layout
14891 <cell alignment="center" valignment="top" topline="true" usebox="none">
14894 \begin_layout Plain Layout
14900 <cell alignment="center" valignment="top" topline="true" usebox="none">
14903 \begin_layout Plain Layout
14909 <cell alignment="center" valignment="top" topline="true" usebox="none">
14912 \begin_layout Plain Layout
14919 <row topspace="default">
14920 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14923 \begin_layout Plain Layout
14924 Spatial resolution in µm
14929 <cell alignment="center" valignment="top" usebox="none">
14932 \begin_layout Plain Layout
14938 <cell alignment="center" valignment="top" usebox="none">
14941 \begin_layout Plain Layout
14947 <cell alignment="center" valignment="top" usebox="none">
14950 \begin_layout Plain Layout
14957 <row topspace="default">
14958 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14961 \begin_layout Plain Layout
14963 \begin_inset Formula $f_{\mathrm{max}}$
14971 <cell alignment="center" valignment="top" usebox="none">
14974 \begin_layout Plain Layout
14980 <cell alignment="center" valignment="top" usebox="none">
14983 \begin_layout Plain Layout
14989 <cell alignment="center" valignment="top" usebox="none">
14992 \begin_layout Plain Layout
14999 <row topspace="default">
15000 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15003 \begin_layout Plain Layout
15007 \begin_layout Plain Layout
15011 cmidrule[2pt](l{10pt}){1-1}
15016 LSF-spatial resolution
15021 <cell alignment="center" valignment="top" usebox="none">
15024 \begin_layout Plain Layout
15030 <cell alignment="center" valignment="top" usebox="none">
15033 \begin_layout Plain Layout
15039 <cell alignment="center" valignment="top" usebox="none">
15042 \begin_layout Plain Layout
15050 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15053 \begin_layout Plain Layout
15059 <cell alignment="center" valignment="top" usebox="none">
15062 \begin_layout Plain Layout
15068 <cell alignment="center" valignment="top" usebox="none">
15071 \begin_layout Plain Layout
15077 <cell alignment="center" valignment="top" usebox="none">
15080 \begin_layout Plain Layout
15088 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15091 \begin_layout Plain Layout
15097 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15100 \begin_layout Plain Layout
15106 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15109 \begin_layout Plain Layout
15115 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15118 \begin_layout Plain Layout
15137 \begin_layout Standard
15138 Spaces to table rows can be added using the
15142 tab of the table dialog as described in section
15143 \begin_inset space ~
15147 \begin_inset CommandInset ref
15149 reference "subsec:Row-Spacing"
15156 \begin_layout Standard
15157 Unlike normal tables, formal tables have no vertical table lines.
15158 The horizontal table lines can be set as for normal tables but they appear
15159 with different widths in the output:
15160 \begin_inset Newline newline
15163 The first and the last table line have a default width of 0.08
15164 \begin_inset space \thinspace{}
15167 em while the other lines have a default width of 0.05
15168 \begin_inset space \thinspace{}
15174 \begin_layout Standard
15175 The default widths can be changed with the following preamble lines
15178 \begin_layout Standard
15188 \begin_inset Newline newline
15200 \begin_layout Standard
15201 This example is for the first line, the so called
15206 If you want to change the width for the last line, replace
15215 To change the width for the other lines replace
15224 You can use all units listed in appendix
15225 \begin_inset space ~
15229 \begin_inset CommandInset ref
15231 reference "cha:Units-available-in"
15238 \begin_layout Standard
15239 Lines that do not span all table columns can be created by setting a table
15240 line for multicolumn cells.
15242 will then internally use the command
15248 to create this line.
15252 \begin_layout Standard
15257 cmidrule[height](trim){startcol-endcol}
15260 \begin_layout Standard
15267 are currently not supported by \SpecialChar LyX
15268 so you have to use \SpecialChar TeX
15277 s can manually be created by inserting the command as \SpecialChar TeX
15279 cell entry of the first cell of a row.
15280 The line is then drawn in the output above the current row.
15283 \begin_layout Standard
15284 The default for the optional
15289 \begin_inset space \thinspace{}
15297 is the number of the column where the line starts and
15301 the column number where the line ends.
15306 always needs to be specified, also when the line should span only one column.
15307 The optional parameter
15324 Using for example the parameter
15328 means that the line is trimmed from its left end by 2
15329 \begin_inset space \thinspace{}
15333 If you don't specify the
15337 the line is trimmed by the default of 0.5
15338 \begin_inset space \thinspace{}
15344 \begin_layout Standard
15345 \begin_inset VSpace bigskip
15349 \begin_inset space ~
15353 \begin_inset CommandInset ref
15355 reference "tab:Example-booktabs-table"
15359 was created using the commands
15362 \begin_layout Standard
15372 \begin_layout Standard
15373 at the beginning of the second row and
15376 \begin_layout Standard
15381 cmidrule[2pt](l{10pt}){1-1}
15384 \begin_layout Standard
15388 \begin_layout Standard
15389 \begin_inset VSpace bigskip
15395 \begin_layout Standard
15396 You might want to have overlapping
15403 \begin_inset space ~
15407 \begin_inset CommandInset ref
15409 reference "tab:Special-booktabs-table"
15414 This can be achieved with the \SpecialChar TeX
15418 \begin_layout Standard
15426 \begin_layout Standard
15427 The command that was used for the second row of Table
15428 \begin_inset space ~
15432 \begin_inset CommandInset ref
15434 reference "tab:Special-booktabs-table"
15441 \begin_layout Standard
15455 \begin_layout Standard
15456 The command for the sixth row is
15459 \begin_layout Standard
15471 \begin_layout Standard
15472 \begin_inset VSpace bigskip
15478 \begin_layout Standard
15479 If you are in any way not satisfied with the border line spacing, you can
15480 use the following command to produce lines that span over all table columns
15485 \begin_layout Standard
15490 specialrule{width}{space above}{space below}
15493 \begin_layout Standard
15494 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15501 \begin_inset CommandInset citation
15508 \begin_inset Index idx
15511 \begin_layout Plain Layout
15513 -packages ! booktabs
15521 \begin_layout Standard
15522 \begin_inset Float table
15528 \begin_layout Plain Layout
15529 \begin_inset Caption Standard
15531 \begin_layout Plain Layout
15532 \begin_inset CommandInset label
15534 name "tab:Special-booktabs-table"
15538 Special booktabs-table
15546 \begin_layout Plain Layout
15548 \begin_inset Tabular
15549 <lyxtabular version="3" rows="8" columns="4">
15550 <features booktabs="true" tabularvalignment="middle">
15551 <column alignment="center" valignment="top">
15552 <column alignment="center" valignment="top">
15553 <column alignment="center" valignment="top">
15554 <column alignment="center" valignment="top">
15556 <cell alignment="center" valignment="top" topline="true" usebox="none">
15559 \begin_layout Plain Layout
15565 <cell alignment="center" valignment="top" topline="true" usebox="none">
15568 \begin_layout Plain Layout
15570 \begin_inset space \thinspace{}
15578 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15581 \begin_layout Plain Layout
15583 \begin_inset space \thinspace{}
15591 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15594 \begin_layout Plain Layout
15602 <cell alignment="center" valignment="top" usebox="none">
15605 \begin_layout Plain Layout
15609 \begin_layout Plain Layout
15622 \begin_layout Plain Layout
15635 \begin_layout Plain Layout
15648 \begin_layout Plain Layout
15657 Detector thickness in µm
15662 <cell alignment="center" valignment="top" usebox="none">
15665 \begin_layout Plain Layout
15671 <cell alignment="center" valignment="top" usebox="none">
15674 \begin_layout Plain Layout
15680 <cell alignment="center" valignment="top" usebox="none">
15683 \begin_layout Plain Layout
15691 <cell alignment="center" valignment="top" topline="true" usebox="none">
15694 \begin_layout Plain Layout
15700 <cell alignment="center" valignment="top" topline="true" usebox="none">
15703 \begin_layout Plain Layout
15709 <cell alignment="center" valignment="top" topline="true" usebox="none">
15712 \begin_layout Plain Layout
15718 <cell alignment="center" valignment="top" topline="true" usebox="none">
15721 \begin_layout Plain Layout
15728 <row topspace="default">
15729 <cell alignment="center" valignment="top" usebox="none">
15732 \begin_layout Plain Layout
15733 Spatial resolution in µm
15738 <cell alignment="center" valignment="top" usebox="none">
15741 \begin_layout Plain Layout
15747 <cell alignment="center" valignment="top" usebox="none">
15750 \begin_layout Plain Layout
15756 <cell alignment="center" valignment="top" usebox="none">
15759 \begin_layout Plain Layout
15766 <row topspace="default">
15767 <cell alignment="center" valignment="top" usebox="none">
15770 \begin_layout Plain Layout
15772 \begin_inset Formula $f_{\mathrm{max}}$
15780 <cell alignment="center" valignment="top" usebox="none">
15783 \begin_layout Plain Layout
15789 <cell alignment="center" valignment="top" usebox="none">
15792 \begin_layout Plain Layout
15798 <cell alignment="center" valignment="top" usebox="none">
15801 \begin_layout Plain Layout
15809 <cell alignment="center" valignment="top" topline="true" usebox="none">
15812 \begin_layout Plain Layout
15816 \begin_layout Plain Layout
15829 \begin_layout Plain Layout
15838 LSF-spatial resolution
15843 <cell alignment="center" valignment="top" topline="true" usebox="none">
15846 \begin_layout Plain Layout
15852 <cell alignment="center" valignment="top" topline="true" usebox="none">
15855 \begin_layout Plain Layout
15861 <cell alignment="center" valignment="top" topline="true" usebox="none">
15864 \begin_layout Plain Layout
15872 <cell alignment="center" valignment="top" usebox="none">
15875 \begin_layout Plain Layout
15881 <cell alignment="center" valignment="top" usebox="none">
15884 \begin_layout Plain Layout
15890 <cell alignment="center" valignment="top" usebox="none">
15893 \begin_layout Plain Layout
15899 <cell alignment="center" valignment="top" usebox="none">
15902 \begin_layout Plain Layout
15910 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15913 \begin_layout Plain Layout
15919 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15922 \begin_layout Plain Layout
15928 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15931 \begin_layout Plain Layout
15937 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15940 \begin_layout Plain Layout
15959 \begin_layout Section
15960 Vertical Table Alignment
15961 \begin_inset Index idx
15964 \begin_layout Plain Layout
15973 \begin_layout Standard
15974 To align tables vertically in a text line, the table must be inside a box.
15975 The box can then be vertically aligned as described in section
15976 \begin_inset space ~
15980 \begin_inset CommandInset ref
15982 reference "sec:Box-Dialog"
15989 \begin_layout Standard
15990 In the following example the tables are inside a minipage
15994 \begin_layout Plain Layout
15995 Minipages are described in section
15996 \begin_inset space ~
16000 \begin_inset CommandInset ref
16002 reference "sec:Minipages"
16011 box that has a width of 15
16012 \begin_inset space \thinspace{}
16018 \begin_layout Itemize
16020 \begin_inset Box Frameless
16030 height_special "totalheight"
16035 backgroundcolor "none"
16038 \begin_layout Plain Layout
16039 \begin_inset Tabular
16040 <lyxtabular version="3" rows="3" columns="3">
16041 <features tabularvalignment="middle">
16042 <column alignment="center" valignment="top">
16043 <column alignment="center" valignment="top">
16044 <column alignment="center" valignment="top">
16046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16049 \begin_layout Plain Layout
16055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16058 \begin_layout Plain Layout
16064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16067 \begin_layout Plain Layout
16075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16078 \begin_layout Plain Layout
16084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16087 \begin_layout Plain Layout
16093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16096 \begin_layout Plain Layout
16104 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16107 \begin_layout Plain Layout
16113 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16116 \begin_layout Plain Layout
16122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16125 \begin_layout Plain Layout
16145 \begin_layout Plain Layout
16157 \begin_inset Box Frameless
16167 height_special "totalheight"
16172 backgroundcolor "none"
16175 \begin_layout Plain Layout
16176 \begin_inset Tabular
16177 <lyxtabular version="3" rows="3" columns="3">
16178 <features tabularvalignment="middle">
16179 <column alignment="center" valignment="top">
16180 <column alignment="center" valignment="top">
16181 <column alignment="center" valignment="top">
16183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16186 \begin_layout Plain Layout
16192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16195 \begin_layout Plain Layout
16201 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16204 \begin_layout Plain Layout
16212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16215 \begin_layout Plain Layout
16221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16224 \begin_layout Plain Layout
16230 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16233 \begin_layout Plain Layout
16241 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16244 \begin_layout Plain Layout
16250 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16253 \begin_layout Plain Layout
16259 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16262 \begin_layout Plain Layout
16282 \begin_layout Plain Layout
16292 \begin_layout Itemize
16294 \begin_inset Box Frameless
16304 height_special "totalheight"
16309 backgroundcolor "none"
16312 \begin_layout Plain Layout
16313 \begin_inset Tabular
16314 <lyxtabular version="3" rows="3" columns="3">
16315 <features tabularvalignment="middle">
16316 <column alignment="center" valignment="top">
16317 <column alignment="center" valignment="top">
16318 <column alignment="center" valignment="top">
16320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16323 \begin_layout Plain Layout
16329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16332 \begin_layout Plain Layout
16338 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16341 \begin_layout Plain Layout
16349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16352 \begin_layout Plain Layout
16358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16361 \begin_layout Plain Layout
16367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16370 \begin_layout Plain Layout
16378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16381 \begin_layout Plain Layout
16387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16390 \begin_layout Plain Layout
16396 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16399 \begin_layout Plain Layout
16418 \begin_layout Itemize
16420 \begin_inset Box Frameless
16430 height_special "totalheight"
16435 backgroundcolor "none"
16438 \begin_layout Plain Layout
16439 \begin_inset Tabular
16440 <lyxtabular version="3" rows="3" columns="3">
16441 <features tabularvalignment="middle">
16442 <column alignment="center" valignment="top">
16443 <column alignment="center" valignment="top">
16444 <column alignment="center" valignment="top">
16446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16449 \begin_layout Plain Layout
16455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16458 \begin_layout Plain Layout
16464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16467 \begin_layout Plain Layout
16475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16478 \begin_layout Plain Layout
16484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16487 \begin_layout Plain Layout
16493 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16496 \begin_layout Plain Layout
16504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16507 \begin_layout Plain Layout
16513 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16516 \begin_layout Plain Layout
16522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16525 \begin_layout Plain Layout
16545 \begin_layout Plain Layout
16557 \begin_inset Box Frameless
16567 height_special "totalheight"
16572 backgroundcolor "none"
16575 \begin_layout Plain Layout
16576 \begin_inset Tabular
16577 <lyxtabular version="3" rows="3" columns="3">
16578 <features tabularvalignment="middle">
16579 <column alignment="center" valignment="top">
16580 <column alignment="center" valignment="top">
16581 <column alignment="center" valignment="top">
16583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16586 \begin_layout Plain Layout
16592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16595 \begin_layout Plain Layout
16601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16604 \begin_layout Plain Layout
16612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16615 \begin_layout Plain Layout
16621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16624 \begin_layout Plain Layout
16630 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16633 \begin_layout Plain Layout
16641 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16644 \begin_layout Plain Layout
16650 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16653 \begin_layout Plain Layout
16659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16662 \begin_layout Plain Layout
16682 \begin_layout Plain Layout
16692 \begin_layout Standard
16693 As you will see, the content of the first and last table row is not correctly
16695 To get this alignment, the minipage box must be set into a raisebox.
16699 \begin_layout Plain Layout
16700 Raiseboxes are described in section
16701 \begin_inset space ~
16705 \begin_inset CommandInset ref
16707 reference "subsec:Vertical-Alignment"
16716 In the example above the second table in the first item is aligned using
16717 the \SpecialChar TeX
16721 \begin_layout Standard
16731 \begin_layout Standard
16733 After the box the closing brace
16737 is inserted as \SpecialChar TeX
16739 For the second table in the last item the command
16742 \begin_layout Standard
16752 \begin_layout Standard
16756 \begin_layout Standard
16757 \begin_inset Note Greyedout
16760 \begin_layout Plain Layout
16765 The alignment of the table row content to the surrounding text line is
16767 The required value for the
16773 command for this alignment depends on the document font, the font size,
16774 and the table line thickness.
16782 \begin_layout Section
16784 \begin_inset CommandInset label
16786 name "sec:Colored-Tables"
16791 \begin_inset Index idx
16794 \begin_layout Plain Layout
16803 \begin_layout Subsection
16805 \begin_inset Index idx
16808 \begin_layout Plain Layout
16809 Table Color ! for Cells
16815 \begin_inset Index idx
16818 \begin_layout Plain Layout
16819 Color ! for Table Cells
16827 \begin_layout Standard
16828 \begin_inset Float table
16834 \begin_layout Plain Layout
16835 \begin_inset Caption Standard
16837 \begin_layout Plain Layout
16838 \begin_inset CommandInset label
16840 name "tab:Table-colored-without"
16844 Table colored without using the package
16849 \begin_inset Argument 1
16852 \begin_layout Plain Layout
16853 Table without colortbl
16866 \begin_layout Plain Layout
16868 \begin_inset Tabular
16869 <lyxtabular version="3" rows="3" columns="3">
16870 <features tabularvalignment="middle">
16871 <column alignment="center" valignment="top">
16872 <column alignment="center" valignment="top">
16873 <column alignment="center" valignment="top">
16875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16878 \begin_layout Plain Layout
16886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16889 \begin_layout Plain Layout
16897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16900 \begin_layout Plain Layout
16910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16913 \begin_layout Plain Layout
16921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16924 \begin_layout Plain Layout
16932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16935 \begin_layout Plain Layout
16945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16948 \begin_layout Plain Layout
16956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16959 \begin_layout Plain Layout
16967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16970 \begin_layout Plain Layout
16991 \begin_layout Standard
16992 If you only need colored text, mark the cells and choose a color in the
16996 \begin_inset space ~
17001 dialog (toolbar button
17004 arg "dialog-show character"
17008 This was used to create Table
17009 \begin_inset space ~
17013 \begin_inset CommandInset ref
17015 reference "tab:Table-colored-without"
17020 In any other case you have to use the \SpecialChar LaTeX
17026 \begin_inset Index idx
17029 \begin_layout Plain Layout
17031 -packages ! colortbl
17039 \begin_layout Standard
17043 \begin_layout Plain Layout
17053 \begin_inset Note Note
17056 \begin_layout Plain Layout
17057 The following section part will only be displayed when the \SpecialChar LaTeX
17070 \begin_layout Standard
17071 To create colored tables,
17075 must be loaded in the preamble with the line
17078 \begin_layout Standard
17083 usepackage{colortbl}
17086 \begin_layout Standard
17087 The color of a column is adjusted with the command
17090 \begin_layout Standard
17095 columncolor{name of color}
17098 \begin_layout Standard
17104 More about the command
17108 is contained in section
17109 \begin_inset space ~
17113 \begin_inset CommandInset ref
17115 reference "subsec:Multicolumn-Calculations"
17122 \begin_layout Standard
17123 The following color names are predefined:
17126 \begin_layout Standard
17160 \begin_layout Standard
17161 \begin_inset VSpace medskip
17167 \begin_layout Standard
17168 If you add the option
17171 \begin_layout Standard
17177 \begin_layout Standard
17178 to the document class options in the document settings, you can additionally
17180 \begin_inset space ~
17184 These colors are listed in appendix
17185 \begin_inset space ~
17189 \begin_inset CommandInset ref
17191 reference "chap:List-of-dvips-colornames"
17196 One of these colors,
17200 , is used as example in Table
17201 \begin_inset space ~
17205 \begin_inset CommandInset ref
17207 reference "tab:Table-colored-using"
17214 \begin_layout Standard
17215 \begin_inset VSpace medskip
17221 \begin_layout Standard
17222 You can also define your own color with the command
17225 \begin_layout Standard
17230 definecolor{color name}{color model}{color values}
17233 \begin_layout Standard
17234 The color model can be
17237 \begin_layout Labeling
17238 \labelwidthstring 00.00.0000
17239 cmyk: cyan, magenta, yellow, black
17242 \begin_layout Labeling
17243 \labelwidthstring 00.00.0000
17244 rgb: red, green blue
17247 \begin_layout Labeling
17248 \labelwidthstring 00.00.0000
17252 \begin_layout Standard
17253 and the color values are comma separated numbers between 0 and 1 describing
17254 the factor for the corresponding color of the color model.
17257 \begin_layout Standard
17259 \begin_inset space \thinspace{}
17263 \begin_inset space \space{}
17270 " in the preamble with
17273 \begin_layout Standard
17278 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17281 \begin_layout Standard
17289 \begin_layout Standard
17294 definecolor{lightgray}{gray}{0.8}
17297 \begin_layout Standard
17298 \begin_inset VSpace medskip
17304 \begin_layout Standard
17305 Lines are colored with the command
17308 \begin_layout Standard
17313 rowcolor{name of color}
17316 \begin_layout Standard
17317 and cells are colored with the command
17320 \begin_layout Standard
17325 cellcolor{name of color}
17328 \begin_layout Standard
17329 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17333 \begin_layout Standard
17334 To color characters in the table, mark the cells and use the
17337 \begin_inset space ~
17343 If a cell contains \SpecialChar TeX
17344 Code mark only the characters, otherwise the colored
17346 Code will cause \SpecialChar LaTeX
17350 \begin_layout Standard
17351 \begin_inset Note Greyedout
17354 \begin_layout Plain Layout
17359 Not all DVI-viewers are able to display self-defined colors.
17367 \begin_layout Standard
17368 \begin_inset VSpace bigskip
17374 \begin_layout Standard
17376 \begin_inset space ~
17380 \begin_inset CommandInset ref
17382 reference "tab:Table-colored-using"
17386 do the following: The color of the first column should be
17394 \begin_layout Standard
17399 columncolor{darkgreen}
17404 \begin_layout Standard
17405 as \SpecialChar LaTeX
17406 -argument for this column.
17407 The first row should be light blue, therefore the \SpecialChar TeX
17411 \begin_layout Standard
17419 \begin_layout Standard
17420 is inserted to the first cell of this row.
17421 Note that this overwrites the column color for the first cell.
17422 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17427 \begin_layout Standard
17435 \begin_layout Standard
17436 The characters could now be colored using the menu
17438 Edit\SpecialChar menuseparator
17440 \begin_inset space ~
17448 \begin_layout Standard
17449 \begin_inset Float table
17455 \begin_layout Plain Layout
17456 \begin_inset Caption Standard
17458 \begin_layout Plain Layout
17459 \begin_inset CommandInset label
17461 name "tab:Table-colored-using"
17465 Table colored using the package
17470 \begin_inset Argument 1
17473 \begin_layout Plain Layout
17474 Table with colortbl
17487 \begin_layout Plain Layout
17489 \begin_inset Tabular
17490 <lyxtabular version="3" rows="3" columns="3">
17491 <features tabularvalignment="middle">
17492 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17493 <column alignment="center" valignment="top">
17494 <column alignment="center" valignment="top">
17496 <cell alignment="center" valignment="top" usebox="none">
17499 \begin_layout Plain Layout
17503 \begin_layout Plain Layout
17519 <cell alignment="center" valignment="top" usebox="none">
17522 \begin_layout Plain Layout
17530 <cell alignment="center" valignment="top" usebox="none">
17533 \begin_layout Plain Layout
17543 <cell alignment="center" valignment="top" usebox="none">
17546 \begin_layout Plain Layout
17554 <cell alignment="center" valignment="top" usebox="none">
17557 \begin_layout Plain Layout
17565 <cell alignment="center" valignment="top" usebox="none">
17568 \begin_layout Plain Layout
17578 <cell alignment="center" valignment="top" usebox="none">
17581 \begin_layout Plain Layout
17589 <cell alignment="center" valignment="top" usebox="none">
17592 \begin_layout Plain Layout
17600 <cell alignment="center" valignment="top" usebox="none">
17603 \begin_layout Plain Layout
17607 \begin_layout Plain Layout
17636 \begin_layout Standard
17640 \begin_layout Plain Layout
17650 \begin_inset Note Note
17653 \begin_layout Plain Layout
17654 The following will be displayed when the \SpecialChar LaTeX
17667 \begin_layout Standard
17668 You need to install the package
17672 to see the content of this section in the output.
17675 \begin_layout Standard
17679 \begin_layout Plain Layout
17691 \begin_layout Subsection
17693 \begin_inset Index idx
17696 \begin_layout Plain Layout
17697 Table Color ! for Rows
17703 \begin_inset Index idx
17706 \begin_layout Plain Layout
17707 Color ! for Table Rows
17715 \begin_layout Standard
17716 In case every second table row needs to be colored there is an alternative
17717 to the method described in the previous section: One loads the package
17723 \begin_inset Index idx
17726 \begin_layout Plain Layout
17732 \begin_layout Plain Layout
17746 in the document preamble with the command
17749 \begin_layout Standard
17754 usepackage[table]{xcolor}
17757 \begin_layout Standard
17762 automatically loads also the package
17767 \begin_inset Index idx
17770 \begin_layout Plain Layout
17772 -packages ! colortbl
17781 must be installed in your \SpecialChar LaTeX
17782 -distribution, otherwise you get \SpecialChar LaTeX
17786 \begin_layout Standard
17790 \begin_layout Plain Layout
17800 \begin_inset Note Note
17803 \begin_layout Plain Layout
17804 The following section part will only be displayed when the \SpecialChar LaTeX
17817 \begin_layout Standard
17818 The table rows are colored with the command
17821 \begin_layout Standard
17826 rowcolors[commands]{row number}{odd row color}{even row color}
17829 \begin_layout Standard
17830 that is either inserted in the document preamble or as \SpecialChar TeX
17832 first table to be colored.
17834 \begin_inset space ~
17837 number is the number of the first row which should be colored according
17838 to the odd row color.
17839 commands can be additional commands that are executed before every table
17841 So for example the command
17844 \begin_layout Standard
17849 rowcolors{1}{white}{lightgray}
17852 \begin_layout Standard
17853 leads to the coloring scheme of Table
17854 \begin_inset space ~
17858 \begin_inset CommandInset ref
17860 reference "tab:Table-rowcolors"
17868 \begin_layout Standard
17875 hline]{1}{lightgray}{cyan}
17878 \begin_layout Standard
17879 leads to the coloring scheme of Table
17880 \begin_inset space ~
17884 \begin_inset CommandInset ref
17886 reference "tab:Table-rowcolors-2"
17892 \begin_inset space ~
17896 \begin_inset space ~
17900 \begin_inset space ~
17904 \begin_inset space ~
17907 color are left empty, no color will be used so that the command
17910 \begin_layout Standard
17918 \begin_layout Standard
17919 deletes all colors.
17926 affects all tables following that command.
17929 \begin_layout Standard
17933 \begin_layout Plain Layout
17937 rowcolors{1}{white}{lightgray}
17945 \begin_layout Standard
17946 \begin_inset Float table
17952 \begin_layout Plain Layout
17953 \begin_inset Caption Standard
17955 \begin_layout Plain Layout
17956 \begin_inset CommandInset label
17958 name "tab:Table-rowcolors"
17962 Table where every second row is colored light gray.
17970 \begin_layout Plain Layout
17972 \begin_inset Tabular
17973 <lyxtabular version="3" rows="4" columns="3">
17974 <features tabularvalignment="middle">
17975 <column alignment="center" valignment="top">
17976 <column alignment="center" valignment="top" width="0pt">
17977 <column alignment="center" valignment="top" width="0pt">
17979 <cell alignment="center" valignment="top" usebox="none">
17982 \begin_layout Plain Layout
17988 <cell alignment="center" valignment="top" usebox="none">
17991 \begin_layout Plain Layout
17997 <cell alignment="center" valignment="top" usebox="none">
18000 \begin_layout Plain Layout
18008 <cell alignment="center" valignment="top" usebox="none">
18011 \begin_layout Plain Layout
18017 <cell alignment="center" valignment="top" usebox="none">
18020 \begin_layout Plain Layout
18026 <cell alignment="center" valignment="top" usebox="none">
18029 \begin_layout Plain Layout
18037 <cell alignment="center" valignment="top" usebox="none">
18040 \begin_layout Plain Layout
18046 <cell alignment="center" valignment="top" usebox="none">
18049 \begin_layout Plain Layout
18055 <cell alignment="center" valignment="top" usebox="none">
18058 \begin_layout Plain Layout
18066 <cell alignment="center" valignment="top" usebox="none">
18069 \begin_layout Plain Layout
18075 <cell alignment="center" valignment="top" usebox="none">
18078 \begin_layout Plain Layout
18084 <cell alignment="center" valignment="top" usebox="none">
18087 \begin_layout Plain Layout
18106 \begin_layout Standard
18110 \begin_layout Plain Layout
18116 hline]{1}{lightgray}{cyan}
18124 \begin_layout Standard
18125 \begin_inset Float table
18131 \begin_layout Plain Layout
18132 \begin_inset Caption Standard
18134 \begin_layout Plain Layout
18135 \begin_inset CommandInset label
18137 name "tab:Table-rowcolors-2"
18141 Table where every second row is colored cyan and at which there is a line
18150 \begin_layout Plain Layout
18152 \begin_inset Tabular
18153 <lyxtabular version="3" rows="4" columns="3">
18154 <features tabularvalignment="middle">
18155 <column alignment="center" valignment="top">
18156 <column alignment="center" valignment="top">
18157 <column alignment="center" valignment="top" width="0pt">
18159 <cell alignment="center" valignment="top" usebox="none">
18162 \begin_layout Plain Layout
18168 <cell alignment="center" valignment="top" usebox="none">
18171 \begin_layout Plain Layout
18177 <cell alignment="center" valignment="top" usebox="none">
18180 \begin_layout Plain Layout
18188 <cell alignment="center" valignment="top" usebox="none">
18191 \begin_layout Plain Layout
18197 <cell alignment="center" valignment="top" usebox="none">
18200 \begin_layout Plain Layout
18206 <cell alignment="center" valignment="top" usebox="none">
18209 \begin_layout Plain Layout
18217 <cell alignment="center" valignment="top" usebox="none">
18220 \begin_layout Plain Layout
18226 <cell alignment="center" valignment="top" usebox="none">
18229 \begin_layout Plain Layout
18235 <cell alignment="center" valignment="top" usebox="none">
18238 \begin_layout Plain Layout
18246 <cell alignment="center" valignment="top" usebox="none">
18249 \begin_layout Plain Layout
18255 <cell alignment="center" valignment="top" usebox="none">
18258 \begin_layout Plain Layout
18264 <cell alignment="center" valignment="top" usebox="none">
18267 \begin_layout Plain Layout
18286 \begin_layout Standard
18290 \begin_layout Plain Layout
18300 \begin_inset Note Note
18303 \begin_layout Plain Layout
18304 turns off the row coloring
18312 \begin_layout Standard
18316 \begin_layout Plain Layout
18326 \begin_inset Note Note
18329 \begin_layout Plain Layout
18330 The following will be displayed when the \SpecialChar LaTeX
18343 \begin_layout Standard
18344 You need to install the package
18348 to see the content of this section in the output.
18351 \begin_layout Standard
18355 \begin_layout Plain Layout
18367 \begin_layout Subsection
18369 \begin_inset Index idx
18372 \begin_layout Plain Layout
18373 Table Color ! for Lines
18379 \begin_inset Index idx
18382 \begin_layout Plain Layout
18383 Color ! for Table Lines
18391 \begin_layout Standard
18392 As described in section
18393 \begin_inset space ~
18397 \begin_inset CommandInset ref
18399 reference "subsec:Line-Thickness"
18403 , the line thickness for all lines in a table can be adjusted with the length
18412 \begin_inset space \thinspace{}
18415 pt for all tables of this section.
18419 \begin_layout Plain Layout
18425 arrayrulewidth}{1.5pt}
18433 \begin_layout Standard
18434 To color vertical lines for example with green, create the following column
18435 format in the document preamble, according to the description in section
18436 \begin_inset space ~
18440 \begin_inset CommandInset ref
18442 reference "subsec:Customized-Format"
18449 \begin_layout Standard
18454 newcolumntype{W}{!{
18461 \begin_layout Standard
18463 \begin_inset space ~
18467 \begin_inset CommandInset ref
18469 reference "tab:Table-with-vertical-colored"
18473 the \SpecialChar LaTeX
18478 was used for the last column and
18482 for the other columns.
18485 \begin_layout Standard
18486 If you want to have several colors, define more column formats.
18489 \begin_layout Standard
18490 \begin_inset Float table
18496 \begin_layout Plain Layout
18497 \begin_inset Caption Standard
18499 \begin_layout Plain Layout
18500 \begin_inset CommandInset label
18502 name "tab:Table-with-vertical-colored"
18506 Table with colored vertical lines
18514 \begin_layout Plain Layout
18516 \begin_inset Tabular
18517 <lyxtabular version="3" rows="3" columns="3">
18518 <features tabularvalignment="middle">
18519 <column alignment="center" valignment="top" special="Wc">
18520 <column alignment="center" valignment="top" special="Wc">
18521 <column alignment="center" valignment="top" special="WcW">
18523 <cell alignment="center" valignment="top" topline="true" usebox="none">
18526 \begin_layout Plain Layout
18532 <cell alignment="center" valignment="top" topline="true" usebox="none">
18535 \begin_layout Plain Layout
18541 <cell alignment="center" valignment="top" topline="true" usebox="none">
18544 \begin_layout Plain Layout
18552 <cell alignment="center" valignment="top" topline="true" usebox="none">
18555 \begin_layout Plain Layout
18561 <cell alignment="center" valignment="top" topline="true" usebox="none">
18564 \begin_layout Plain Layout
18570 <cell alignment="center" valignment="top" topline="true" usebox="none">
18573 \begin_layout Plain Layout
18581 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18584 \begin_layout Plain Layout
18590 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18593 \begin_layout Plain Layout
18599 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18602 \begin_layout Plain Layout
18621 \begin_layout Standard
18622 \begin_inset VSpace bigskip
18625 To color horizontal lines for example with red, as in Table
18626 \begin_inset space ~
18630 \begin_inset CommandInset ref
18632 reference "tab:Table-with-horizontal-colored"
18636 , insert these commands in \SpecialChar TeX
18637 Code before the table or table float:
18640 \begin_layout Standard
18650 \begin_inset Newline newline
18658 \begin_inset Newline newline
18662 \begin_inset Phantom HPhantom
18665 \begin_layout Plain Layout
18668 \begin_inset space ~
18678 arrayrulecolor{red}
18682 arrayrulecolor{black}}
18685 \begin_layout Standard
18689 \begin_layout Plain Layout
18700 \begin_layout Plain Layout
18709 \begin_layout Plain Layout
18713 arrayrulecolor{red}
18717 arrayrulecolor{black}}
18723 \begin_inset Float table
18729 \begin_layout Plain Layout
18730 \begin_inset Caption Standard
18732 \begin_layout Plain Layout
18733 \begin_inset CommandInset label
18735 name "tab:Table-with-horizontal-colored"
18739 Table with colored horizontal lines
18747 \begin_layout Plain Layout
18749 \begin_inset Tabular
18750 <lyxtabular version="3" rows="3" columns="3">
18751 <features tabularvalignment="middle">
18752 <column alignment="center" valignment="top">
18753 <column alignment="center" valignment="top">
18754 <column alignment="center" valignment="top">
18756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18759 \begin_layout Plain Layout
18765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18768 \begin_layout Plain Layout
18774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18777 \begin_layout Plain Layout
18785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18788 \begin_layout Plain Layout
18794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18797 \begin_layout Plain Layout
18803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18806 \begin_layout Plain Layout
18814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18817 \begin_layout Plain Layout
18823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18826 \begin_layout Plain Layout
18832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18835 \begin_layout Plain Layout
18854 \begin_layout Standard
18855 To return to the default line color black, insert this command in \SpecialChar TeX
18857 after the table or table float:
18860 \begin_layout Standard
18872 \begin_layout Standard
18874 \begin_inset space ~
18878 \begin_inset CommandInset ref
18880 reference "tab:Table-with-colored"
18884 is an example with colored vertical and horizontal lines.
18887 \begin_layout Standard
18888 \begin_inset Float table
18894 \begin_layout Plain Layout
18895 \begin_inset Caption Standard
18897 \begin_layout Plain Layout
18898 \begin_inset CommandInset label
18900 name "tab:Table-with-colored"
18904 Table with colored lines
18912 \begin_layout Plain Layout
18914 \begin_inset Tabular
18915 <lyxtabular version="3" rows="3" columns="3">
18916 <features tabularvalignment="middle">
18917 <column alignment="center" valignment="top" special="Wc">
18918 <column alignment="center" valignment="top" special="Wc">
18919 <column alignment="center" valignment="top" special="WcW">
18921 <cell alignment="center" valignment="top" topline="true" usebox="none">
18924 \begin_layout Plain Layout
18930 <cell alignment="center" valignment="top" topline="true" usebox="none">
18933 \begin_layout Plain Layout
18939 <cell alignment="center" valignment="top" topline="true" usebox="none">
18942 \begin_layout Plain Layout
18950 <cell alignment="center" valignment="top" topline="true" usebox="none">
18953 \begin_layout Plain Layout
18959 <cell alignment="center" valignment="top" topline="true" usebox="none">
18962 \begin_layout Plain Layout
18968 <cell alignment="center" valignment="top" topline="true" usebox="none">
18971 \begin_layout Plain Layout
18978 <row topspace="default">
18979 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18982 \begin_layout Plain Layout
18988 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18991 \begin_layout Plain Layout
18997 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19000 \begin_layout Plain Layout
19019 \begin_layout Standard
19023 \begin_layout Plain Layout
19039 \begin_layout Standard
19043 \begin_layout Plain Layout
19049 arrayrulewidth}{0.4pt}
19057 \begin_layout Section
19058 Rotated Table Cells
19059 \begin_inset CommandInset label
19061 name "sec:Rotated-Table-Cells"
19066 \begin_inset Index idx
19069 \begin_layout Plain Layout
19070 Table ! Rotated Cells
19076 \begin_inset Index idx
19079 \begin_layout Plain Layout
19088 \begin_layout Standard
19089 \begin_inset Note Greyedout
19092 \begin_layout Plain Layout
19097 Not all DVI-viewers are able to display rotations.
19105 \begin_layout Standard
19107 \begin_inset space ~
19111 \begin_inset CommandInset ref
19113 reference "tab:Table-with-rotated-multi"
19117 is an example where 3
19118 \begin_inset space ~
19121 cells were rotated by 45
19122 \begin_inset space \thinspace{}
19128 \begin_layout Standard
19129 \begin_inset Float table
19135 \begin_layout Plain Layout
19136 \begin_inset Caption Standard
19138 \begin_layout Plain Layout
19139 \begin_inset CommandInset label
19141 name "tab:Table-with-rotated"
19145 Table with rotated cells in the first row.
19153 \begin_layout Plain Layout
19156 \begin_inset Tabular
19157 <lyxtabular version="3" rows="2" columns="3">
19158 <features tabularvalignment="middle">
19159 <column alignment="center" valignment="top" width="0pt">
19160 <column alignment="center" valignment="top" width="0pt">
19161 <column alignment="center" valignment="top" width="0pt">
19163 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19166 \begin_layout Plain Layout
19172 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19175 \begin_layout Plain Layout
19181 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19184 \begin_layout Plain Layout
19192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19195 \begin_layout Plain Layout
19201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19204 \begin_layout Plain Layout
19210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19213 \begin_layout Plain Layout
19232 \begin_layout Standard
19233 \begin_inset Note Greyedout
19236 \begin_layout Plain Layout
19241 Line breaks (shortcut
19244 arg "newline-insert newline"
19247 ) are not allowed in rotated cells.
19255 \begin_layout Standard
19256 If you want to rotate table cells containing line breaks, you have to put
19257 the cell content into a minipage or a parbox.
19261 \begin_layout Plain Layout
19262 For more about these boxes see sec.
19263 \begin_inset space \thinspace{}
19267 \begin_inset CommandInset ref
19269 reference "sec:Minipages"
19274 \begin_inset CommandInset ref
19276 reference "sec:Parboxes"
19285 If you rotate this cell by 90
19286 \begin_inset space \thinspace{}
19289 ° the width of the box is the height of the cell.
19291 \begin_inset space ~
19295 \begin_inset CommandInset ref
19297 reference "tab:Table-with-rotated-multi"
19301 is an example for a rotated multiline cell where the box width was set
19303 \begin_inset space \thinspace{}
19309 \begin_layout Standard
19310 \begin_inset Float table
19315 \begin_layout Plain Layout
19316 \begin_inset Caption Standard
19318 \begin_layout Plain Layout
19319 \begin_inset CommandInset label
19321 name "tab:Table-with-rotated-multi"
19325 Table with rotated multiline cell.
19333 \begin_layout Plain Layout
19336 \begin_inset Tabular
19337 <lyxtabular version="3" rows="2" columns="3">
19338 <features tabularvalignment="middle">
19339 <column alignment="center" valignment="top">
19340 <column alignment="center" valignment="top" width="0pt">
19341 <column alignment="center" valignment="top">
19343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19346 \begin_layout Plain Layout
19352 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19355 \begin_layout Plain Layout
19356 \begin_inset Box Frameless
19366 height_special "totalheight"
19371 backgroundcolor "none"
19374 \begin_layout Plain Layout
19376 \begin_inset Newline newline
19389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19392 \begin_layout Plain Layout
19400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19403 \begin_layout Plain Layout
19409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19412 \begin_layout Plain Layout
19418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19421 \begin_layout Plain Layout
19440 \begin_layout Section
19441 Table Width Calculation
19442 \begin_inset CommandInset label
19444 name "sec:Table-Width-Calculation"
19451 \begin_layout Standard
19452 For wide tables it is sometimes difficult to assure that the table does
19453 not protrude over the page margin.
19454 Setting a fixed width for every column of the table is the solution, but
19455 what amount of space is needed for each column?
19458 \begin_layout Standard
19460 \begin_inset Formula $W_{\mathrm{table}}$
19463 can be calculated: Every column has the width of the specified column width
19465 \begin_inset Formula $W_{\mathrm{column}}$
19468 (that the content of the column can consume) plus two times the separation
19469 between the column content and the column border (\SpecialChar LaTeX
19477 \begin_inset space \thinspace{}
19480 pt) plus the width of a border line (\SpecialChar LaTeX
19488 \begin_inset space \thinspace{}
19492 \begin_inset Formula $n$
19496 \begin_inset space ~
19499 columns have the same width, the table width is
19500 \begin_inset Formula
19502 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19510 \begin_layout Standard
19511 The available width for a table is the space between the page margins or
19512 the width of a text column (for a two-column document) (\SpecialChar LaTeX
19520 If all table columns should have the same width and
19521 \begin_inset Formula $W_{\mathrm{table}}$
19525 \begin_inset space \thinspace{}
19531 \begin_inset Formula $W_{\mathrm{column}}$
19534 can easily be calculated.
19537 \begin_layout Standard
19538 To be able to perform calculations you need to load the \SpecialChar LaTeX
19544 \begin_inset Index idx
19547 \begin_layout Plain Layout
19554 in the document preamble.
19555 To set the width in the table dialog you have to use the field
19561 The command scheme for this field is the same that is explained in section
19562 \begin_inset space ~
19566 \begin_inset CommandInset ref
19568 reference "subsec:Multicolumn-Calculations"
19574 \begin_inset space \thinspace{}
19577 columns with an uniform width and centered text, enter there for each column
19581 \begin_layout Standard
19588 columnwidth-62.4pt)/5}
19591 \begin_layout Standard
19593 \begin_inset space \thinspace{}
19596 columns where 2 should have 0.75
19597 \begin_inset space ~
19600 times the width than the 3 others, the calculation is
19601 \begin_inset Formula
19603 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19604 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19605 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19606 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19614 \begin_layout Standard
19615 In the table therefore the command
19618 \begin_layout Standard
19625 columnwidth-62.4pt)/
19630 \begin_layout Standard
19631 is used for the wider columns and
19634 \begin_layout Standard
19641 columnwidth-62.4pt)/
19648 \begin_layout Standard
19649 for the smaller ones:
19652 \begin_layout Standard
19653 \begin_inset Tabular
19654 <lyxtabular version="3" rows="2" columns="5">
19655 <features tabularvalignment="middle">
19656 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19657 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19658 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19659 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19660 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19665 \begin_layout Plain Layout
19671 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19674 \begin_layout Plain Layout
19680 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19683 \begin_layout Plain Layout
19689 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19692 \begin_layout Plain Layout
19698 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19701 \begin_layout Plain Layout
19709 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19712 \begin_layout Plain Layout
19713 111111 1111111 111111 111111111 11111 11111 1111
19718 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19721 \begin_layout Plain Layout
19727 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19730 \begin_layout Plain Layout
19731 2222 22222 222222 222222222 2222222 22 22222
19736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19739 \begin_layout Plain Layout
19745 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19748 \begin_layout Plain Layout
19749 333333 333333 333333 33333 3333333 333
19762 \begin_layout Section
19763 Table Customization
19764 \begin_inset Index idx
19767 \begin_layout Plain Layout
19768 Table Customization
19774 \begin_inset Index idx
19777 \begin_layout Plain Layout
19778 Table ! Customization
19786 \begin_layout Subsection
19788 \begin_inset CommandInset label
19790 name "subsec:Row-Spacing"
19795 \begin_inset Index idx
19798 \begin_layout Plain Layout
19799 Table Customization ! Row Spacing
19807 \begin_layout Standard
19808 You can add vertical space to table rows in the
19812 tab of the table dialog.
19813 You find there three possibilities:
19816 \begin_layout Description
19818 \begin_inset space ~
19822 \begin_inset space ~
19825 row will add space above the characters of the table row.
19826 If the table is a formal table
19830 \begin_layout Plain Layout
19831 Formal tables are explained in section
19832 \begin_inset space ~
19836 \begin_inset CommandInset ref
19838 reference "sec:Formal-Tables"
19848 will insert as default 0.5
19849 \begin_inset space \thinspace{}
19853 For normal tables the inserted space will unfortunately destroy the vertical
19854 table lines as in the following table:
19855 \begin_inset VSpace medskip
19859 \begin_inset Newline newline
19863 \begin_inset space \hspace*{}
19868 \begin_inset space \hfill{}
19872 \begin_inset Tabular
19873 <lyxtabular version="3" rows="3" columns="1">
19874 <features tabularvalignment="middle">
19875 <column alignment="center" valignment="top">
19877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19880 \begin_layout Plain Layout
19887 <row topspace="3mm">
19888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19891 \begin_layout Plain Layout
19893 \begin_inset space \thinspace{}
19896 mm space top of row
19903 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19906 \begin_layout Plain Layout
19918 \begin_inset space \hfill{}
19922 \begin_inset space \hspace*{}
19927 \begin_inset VSpace medskip
19931 \begin_inset Newline newline
19934 So inserting space in the top of row for normal tables is only useful when
19935 you don't have vertical lines.
19938 \begin_layout Description
19940 \begin_inset space ~
19944 \begin_inset space ~
19947 row will add space below the characters of the table row.
19948 If the table is a formal table \SpecialChar LyX
19949 will insert as default 0.5
19950 \begin_inset space \thinspace{}
19953 em space, for normal tables the default size is 2
19954 \begin_inset space \thinspace{}
19960 \begin_layout Description
19962 \begin_inset space ~
19965 rows adds space between the current and the following row.
19966 If the table is a formal table \SpecialChar LyX
19967 will insert as default 0.5
19968 \begin_inset space \thinspace{}
19972 For normal tables the inserted space will unfortunately destroy the vertical
19973 table lines as in the following table:
19974 \begin_inset VSpace medskip
19978 \begin_inset Newline newline
19982 \begin_inset space \hspace*{}
19987 \begin_inset space \hfill{}
19991 \begin_inset Tabular
19992 <lyxtabular version="3" rows="3" columns="1">
19993 <features tabularvalignment="middle">
19994 <column alignment="center" valignment="top">
19996 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19999 \begin_layout Plain Layout
20006 <row interlinespace="3mm">
20007 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20010 \begin_layout Plain Layout
20011 \begin_inset Formula $\downarrow$
20015 \begin_inset space \thinspace{}
20018 mm space between row
20019 \begin_inset Formula $\downarrow$
20029 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20032 \begin_layout Plain Layout
20033 \begin_inset Formula $\uparrow$
20037 \begin_inset space \thinspace{}
20040 mm space between row
20041 \begin_inset Formula $\uparrow$
20055 \begin_inset space \hfill{}
20059 \begin_inset space \hspace*{}
20064 \begin_inset VSpace medskip
20068 \begin_inset Newline newline
20071 So inserting space between rows for normal tables is only useful when you
20072 don't have vertical lines.
20075 \begin_layout Standard
20076 \begin_inset VSpace bigskip
20079 When you want to add extra height to all cells of all tables, you can do
20080 this with the following preamble lines:
20083 \begin_layout Standard
20088 @ifundefined{extrarowheight}
20089 \begin_inset Newline newline
20093 \begin_inset Phantom HPhantom
20096 \begin_layout Plain Layout
20099 \begin_inset space ~
20109 usepackage{array}}{}
20110 \begin_inset Newline newline
20117 extrarowheight}{height}
20120 \begin_inset Note Note
20123 \begin_layout Plain Layout
20128 will be loaded automatically by \SpecialChar LyX
20129 when you use self defined table formats.
20130 To avoid that it being loaded twice the command
20136 is used in the above command.
20144 \begin_layout Standard
20149 can have one of the units listed in appendix
20150 \begin_inset space ~
20154 \begin_inset CommandInset ref
20156 reference "cha:Units-available-in"
20161 But this has the disadvantage that the cell texts are no longer exactly
20162 vertically centered.
20165 \begin_layout Standard
20166 If you are using font sizes larger than the normal size, the table borders
20167 are often too close to the letters.
20168 This can be corrected by inserting the command
20174 in \SpecialChar TeX
20175 Code at the beginning of a table row.
20177 \begin_inset space ~
20181 \begin_inset CommandInset ref
20183 reference "tab:Vertical-alignment-of"
20187 illustrates the effect.
20190 \begin_layout Standard
20192 \begin_inset Float table
20198 \begin_layout Plain Layout
20199 \begin_inset Caption Standard
20201 \begin_layout Plain Layout
20202 \begin_inset CommandInset label
20204 name "tab:Vertical-alignment-of"
20208 Vertical alignment of text with large font sizes.
20216 \begin_layout Plain Layout
20217 \begin_inset space \hfill{}
20221 \begin_inset Float table
20226 \begin_layout Plain Layout
20227 \begin_inset Caption Standard
20229 \begin_layout Plain Layout
20238 \begin_layout Plain Layout
20241 \begin_inset Tabular
20242 <lyxtabular version="3" rows="6" columns="1">
20243 <features tabularvalignment="middle">
20244 <column alignment="left" valignment="top">
20246 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20249 \begin_layout Plain Layout
20257 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20260 \begin_layout Plain Layout
20270 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20273 \begin_layout Plain Layout
20283 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20286 \begin_layout Plain Layout
20296 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20299 \begin_layout Plain Layout
20309 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20312 \begin_layout Plain Layout
20331 \begin_inset space \hfill{}
20335 \begin_inset Float table
20340 \begin_layout Plain Layout
20341 \begin_inset Caption Standard
20343 \begin_layout Plain Layout
20344 Table using the command
20358 \begin_layout Plain Layout
20361 \begin_inset Tabular
20362 <lyxtabular version="3" rows="6" columns="1">
20363 <features tabularvalignment="middle">
20364 <column alignment="left" valignment="top">
20366 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20369 \begin_layout Plain Layout
20377 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20380 \begin_layout Plain Layout
20386 \begin_layout Plain Layout
20402 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20405 \begin_layout Plain Layout
20411 \begin_layout Plain Layout
20427 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20430 \begin_layout Plain Layout
20436 \begin_layout Plain Layout
20452 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20455 \begin_layout Plain Layout
20461 \begin_layout Plain Layout
20477 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20480 \begin_layout Plain Layout
20486 \begin_layout Plain Layout
20513 \begin_inset space \hfill{}
20524 \begin_layout Subsection
20525 Special Cell Alignment
20526 \begin_inset CommandInset label
20528 name "subsec:Special-Cell-Alignment"
20533 \begin_inset Index idx
20536 \begin_layout Plain Layout
20537 Table Customization ! Special Cell Alignment
20545 \begin_layout Standard
20546 Sometimes it looks better when the cell entries of a column are aligned
20547 with a special character, e.
20548 \begin_inset space \thinspace{}
20552 \begin_inset space \space{}
20555 with the decimal separator as in Table
20556 \begin_inset space ~
20560 \begin_inset CommandInset ref
20562 reference "tab:Table-cells-align"
20567 This alignment is achieved by setting the cursor into the column and then
20568 either pressing the toolbar button
20571 arg "tabular-feature align-decimal"
20574 or setting the alignment in the table settings to
20577 \begin_inset space ~
20581 \begin_inset space ~
20587 The alignment character can be a character of your choice and is specified
20588 in the table settings.
20591 \begin_layout Standard
20592 \begin_inset Float table
20598 \begin_layout Plain Layout
20599 \begin_inset Caption Standard
20601 \begin_layout Plain Layout
20602 \begin_inset CommandInset label
20604 name "tab:Table-cells-align"
20608 Table cells of a column aligned with the decimal separator.
20616 \begin_layout Plain Layout
20618 \begin_inset Tabular
20619 <lyxtabular version="3" rows="4" columns="1">
20620 <features booktabs="true" tabularvalignment="middle">
20621 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20623 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20626 \begin_layout Plain Layout
20634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20637 \begin_layout Plain Layout
20645 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20648 \begin_layout Plain Layout
20656 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20659 \begin_layout Plain Layout
20678 \begin_layout Standard
20679 \begin_inset Float table
20685 \begin_layout Plain Layout
20686 \begin_inset Caption Standard
20688 \begin_layout Plain Layout
20689 \begin_inset CommandInset label
20691 name "tab:Table-align-operator"
20695 Table cells of a column aligned with the operators.
20703 \begin_layout Plain Layout
20705 \begin_inset Tabular
20706 <lyxtabular version="3" rows="4" columns="2">
20707 <features booktabs="true" tabularvalignment="middle">
20708 <column alignment="right" valignment="top" width="0pt">
20709 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20711 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20714 \begin_layout Plain Layout
20720 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20723 \begin_layout Plain Layout
20731 <cell alignment="center" valignment="top" usebox="none">
20734 \begin_layout Plain Layout
20735 \begin_inset Formula $12\,+$
20743 <cell alignment="center" valignment="top" usebox="none">
20746 \begin_layout Plain Layout
20747 \begin_inset Formula $\,6$
20757 <cell alignment="center" valignment="top" usebox="none">
20760 \begin_layout Plain Layout
20761 \begin_inset Formula $0\,-$
20769 <cell alignment="center" valignment="top" usebox="none">
20772 \begin_layout Plain Layout
20773 \begin_inset Formula $\,68$
20783 <cell alignment="center" valignment="top" usebox="none">
20786 \begin_layout Plain Layout
20787 \begin_inset Formula $-123\,/$
20795 <cell alignment="center" valignment="top" usebox="none">
20798 \begin_layout Plain Layout
20799 \begin_inset Formula $\,0$
20820 \begin_layout Standard
20821 For alignments at characters in formulas this method does not work because
20822 the field to specify the alignment character does not allow formulas.
20823 In this case one need to use the method from Table
20824 \begin_inset space ~
20828 \begin_inset CommandInset ref
20830 reference "tab:Table-align-operator"
20835 This table was created with a 4×2 table.
20836 The heading is a centered multicolumn.
20837 The first column is right-aligned and contains the first part including
20839 The second column is left aligned and contains the rest.
20840 A small space was added at the beginning of each cell of the second column
20841 to get the space that is usually around operators.
20842 To omit the space that is normally between two table columns, the following
20844 -argument was used for the second column:
20847 \begin_layout Standard
20853 \begin_layout Standard
20855 \begin_inset space ~
20859 \begin_inset CommandInset ref
20861 reference "tab:Several-table-cell"
20865 shows some example alignments.
20866 For the alignment with the relation sign, a small space was added like
20867 for the second column of Table
20868 \begin_inset space ~
20872 \begin_inset CommandInset ref
20874 reference "tab:Table-align-operator"
20881 \begin_layout Standard
20882 \begin_inset Float table
20888 \begin_layout Plain Layout
20889 \begin_inset Caption Standard
20891 \begin_layout Plain Layout
20892 \begin_inset CommandInset label
20894 name "tab:Several-table-cell"
20898 Several table cell alignments.
20906 \begin_layout Plain Layout
20908 \begin_inset Tabular
20909 <lyxtabular version="3" rows="4" columns="6">
20910 <features tabularvalignment="middle">
20911 <column alignment="right" valignment="top">
20912 <column alignment="left" valignment="top" special="@{}l">
20913 <column alignment="right" valignment="top">
20914 <column alignment="left" valignment="top" special="@{}l">
20915 <column alignment="right" valignment="top">
20916 <column alignment="left" valignment="top" special="@{}l">
20918 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20921 \begin_layout Plain Layout
20927 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20930 \begin_layout Plain Layout
20936 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20939 \begin_layout Plain Layout
20945 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20948 \begin_layout Plain Layout
20954 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20957 \begin_layout Plain Layout
20963 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20966 \begin_layout Plain Layout
20974 <cell alignment="center" valignment="top" usebox="none">
20977 \begin_layout Plain Layout
20983 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20986 \begin_layout Plain Layout
20988 \begin_inset space \thinspace{}
20996 <cell alignment="center" valignment="top" usebox="none">
20999 \begin_layout Plain Layout
21000 \begin_inset Formula $10\cdot$
21008 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21011 \begin_layout Plain Layout
21012 \begin_inset Formula $10^{\mbox{-}17}$
21020 <cell alignment="center" valignment="top" usebox="none">
21023 \begin_layout Plain Layout
21024 \begin_inset Formula $\Gamma(t)\propto$
21032 <cell alignment="center" valignment="top" usebox="none">
21035 \begin_layout Plain Layout
21036 \begin_inset Formula $\:\Upsilon(t)$
21046 <cell alignment="center" valignment="top" usebox="none">
21049 \begin_layout Plain Layout
21055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21058 \begin_layout Plain Layout
21060 \begin_inset space \thinspace{}
21068 <cell alignment="center" valignment="top" usebox="none">
21071 \begin_layout Plain Layout
21072 \begin_inset Formula $5.78\cdot$
21080 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21083 \begin_layout Plain Layout
21084 \begin_inset Formula $10^{7}$
21092 <cell alignment="center" valignment="top" usebox="none">
21095 \begin_layout Plain Layout
21096 \begin_inset Formula $A\ne$
21104 <cell alignment="center" valignment="top" usebox="none">
21107 \begin_layout Plain Layout
21108 \begin_inset Formula $\:B_{\mathrm{red}}$
21118 <cell alignment="center" valignment="top" usebox="none">
21121 \begin_layout Plain Layout
21127 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21130 \begin_layout Plain Layout
21132 \begin_inset space \thinspace{}
21140 <cell alignment="center" valignment="top" usebox="none">
21143 \begin_layout Plain Layout
21145 \begin_inset Formula $33.5\cdot$
21153 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21156 \begin_layout Plain Layout
21157 \begin_inset Formula $10^{4}$
21165 <cell alignment="center" valignment="top" usebox="none">
21168 \begin_layout Plain Layout
21169 \begin_inset Formula $\sin(\alpha)\ge$
21177 <cell alignment="center" valignment="top" usebox="none">
21180 \begin_layout Plain Layout
21181 \begin_inset Formula $\:\sin(\beta)$
21202 \begin_layout Subsection
21203 Customized Cell/Column Format
21204 \begin_inset CommandInset label
21206 name "subsec:Customized-Format"
21211 \begin_inset Index idx
21214 \begin_layout Plain Layout
21215 Table Customization ! Cell/Column Format
21223 \begin_layout Standard
21224 Calculating the required width for normal columns as described in section
21225 \begin_inset space ~
21229 \begin_inset CommandInset ref
21231 reference "sec:Table-Width-Calculation"
21235 or for spanned columns as described in section
21236 \begin_inset space ~
21240 \begin_inset CommandInset ref
21242 reference "subsec:Multicolumn-Calculations"
21246 is very annoying if you have several tables where a calculation is necessary.
21247 To make life easier, you can define a cell/column format in the preamble,
21248 that can be used in all tables of the document.
21249 The format is defined with the command
21252 \begin_layout Standard
21257 newcolumntype{name of format}[number of arguments]{commands}
21260 \begin_layout Standard
21261 The format name may only consist of one letter.
21286 are predefined and cannot be used.
21287 But all letters are allowed as capitals.
21290 \begin_layout Standard
21291 \begin_inset VSpace medskip
21297 \begin_layout Standard
21298 For vertically and horizontally centered multicolumn cells with a fixed
21299 width you can define the cell format
21302 \begin_layout Standard
21307 newcolumntype{M}[1]{>{
21314 \begin_layout Standard
21321 avoids the problem of hyphenating the first word, as described in section
21322 \begin_inset space ~
21326 \begin_inset CommandInset ref
21328 reference "subsec:Multiple-Lines-in"
21333 Now you can simply enter
21336 \begin_layout Standard
21342 \begin_layout Standard
21348 in the table dialog to create a multicolumn.
21351 \begin_layout Standard
21352 \begin_inset VSpace bigskip
21358 \begin_layout Standard
21359 For cells spanned by a multicolumn cell, you can define the format
21362 \begin_layout Standard
21367 newcolumntype{S}[2]{>{
21372 \begin_inset Newline newline
21376 \begin_inset Phantom HPhantom
21379 \begin_layout Plain Layout
21393 arrayrulewidth)*(1-#2))/#2}}
21396 \begin_layout Standard
21397 This format uses equation
21398 \begin_inset CommandInset ref
21404 to calculate the required width so that each spanned cell has the same
21408 \begin_layout Standard
21412 \begin_layout Standard
21415 S{width of multicolumn cell}{number of spanned columns}
21418 \begin_layout Standard
21419 as \SpecialChar LaTeX
21420 -argument of the column.
21423 \begin_layout Standard
21424 \begin_inset VSpace bigskip
21430 \begin_layout Standard
21431 For colored columns, you can define
21434 \begin_layout Standard
21439 newcolumntype{K}[1]{>{
21446 \begin_layout Standard
21448 \begin_inset Quotes eld
21452 \begin_inset Quotes erd
21455 at the end creates a column with a flexible width whose text is horizontally
21460 \begin_layout Standard
21466 \begin_layout Standard
21467 as \SpecialChar LaTeX
21471 \begin_layout Standard
21472 \begin_inset VSpace bigskip
21478 \begin_layout Standard
21480 \begin_inset space ~
21484 \begin_inset CommandInset ref
21486 reference "tab:Table-using-user-defined"
21490 use the \SpecialChar LaTeX
21494 \begin_layout Standard
21500 \begin_layout Standard
21501 for the first column and the multicolumn,
21504 \begin_layout Standard
21510 \begin_layout Standard
21511 for the last column, and
21514 \begin_layout Standard
21520 \begin_layout Standard
21521 for the cells in the second column.
21524 \begin_layout Standard
21525 \begin_inset Float table
21531 \begin_layout Plain Layout
21532 \begin_inset Caption Standard
21534 \begin_layout Plain Layout
21535 \begin_inset CommandInset label
21537 name "tab:Table-using-user-defined"
21541 Table using user-defined table formats
21549 \begin_layout Plain Layout
21551 \begin_inset Tabular
21552 <lyxtabular version="3" rows="3" columns="4">
21553 <features tabularvalignment="middle">
21554 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21555 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21556 <column alignment="center" valignment="middle">
21557 <column alignment="center" valignment="middle" special="K{red}">
21559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21562 \begin_layout Plain Layout
21563 verylongtablecellword
21568 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21571 \begin_layout Plain Layout
21572 multiple lines multicolumn
21577 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21580 \begin_layout Plain Layout
21586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21589 \begin_layout Plain Layout
21597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21600 \begin_layout Plain Layout
21606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21609 \begin_layout Plain Layout
21615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21618 \begin_layout Plain Layout
21624 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21627 \begin_layout Plain Layout
21635 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21638 \begin_layout Plain Layout
21644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21647 \begin_layout Plain Layout
21653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21656 \begin_layout Plain Layout
21662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21665 \begin_layout Plain Layout
21684 \begin_layout Subsection
21686 \begin_inset CommandInset label
21688 name "subsec:Line-Thickness"
21693 \begin_inset Index idx
21696 \begin_layout Plain Layout
21697 Table Customization ! Line Thickness
21705 \begin_layout Standard
21706 The line thickness for all lines in a table can be adjusted with the length
21714 To set for example a line thickness of 1.5
21715 \begin_inset space \thinspace{}
21719 \begin_inset space ~
21723 \begin_inset CommandInset ref
21725 reference "tab:Table-with-1.5"
21729 , insert the command
21732 \begin_layout Standard
21739 arrayrulewidth}{1.5pt}
21742 \begin_layout Standard
21743 in \SpecialChar TeX
21744 Code before the table or table float.
21745 The changed thickness is valid for all subsequent tables.
21746 To use the default value again, set
21753 \begin_inset space \thinspace{}
21756 pt in \SpecialChar TeX
21757 Code after the table or table float.
21760 \begin_layout Standard
21764 \begin_layout Plain Layout
21770 arrayrulewidth}{1.5pt}
21776 \begin_inset Float table
21781 \begin_layout Plain Layout
21782 \begin_inset Caption Standard
21784 \begin_layout Plain Layout
21785 \begin_inset CommandInset label
21787 name "tab:Table-with-1.5"
21792 \begin_inset space \thinspace{}
21803 \begin_layout Plain Layout
21805 \begin_inset Tabular
21806 <lyxtabular version="3" rows="3" columns="3">
21807 <features tabularvalignment="middle">
21808 <column alignment="center" valignment="top">
21809 <column alignment="center" valignment="top">
21810 <column alignment="center" valignment="top">
21812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21815 \begin_layout Plain Layout
21821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21824 \begin_layout Plain Layout
21830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21833 \begin_layout Plain Layout
21841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21844 \begin_layout Plain Layout
21850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21853 \begin_layout Plain Layout
21859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21862 \begin_layout Plain Layout
21870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21873 \begin_layout Plain Layout
21879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21882 \begin_layout Plain Layout
21888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21891 \begin_layout Plain Layout
21911 \begin_layout Plain Layout
21917 arrayrulewidth}{0.4pt}
21925 \begin_layout Standard
21926 \begin_inset VSpace bigskip
21929 To set the line thickness to 1.5
21930 \begin_inset space \thinspace{}
21933 pt only for horizontal lines, as in Table
21934 \begin_inset space ~
21938 \begin_inset CommandInset ref
21940 reference "tab:Table-with-horizontal"
21944 , insert these commands in \SpecialChar TeX
21945 Code before the table or table float:
21948 \begin_layout Standard
21958 \begin_inset Newline newline
21966 \begin_inset Newline newline
21975 arrayrulewidth 1.5pt}
21976 \begin_inset Newline newline
21987 arrayrulewidth 0.4pt}}
21990 \begin_layout Standard
21991 To return to the default line thickness, insert this command in \SpecialChar TeX
21993 the table or table float:
21996 \begin_layout Standard
22008 \begin_layout Standard
22012 \begin_layout Plain Layout
22023 \begin_layout Plain Layout
22032 \begin_layout Plain Layout
22040 arrayrulewidth 1.5pt}
22043 \begin_layout Plain Layout
22053 arrayrulewidth 0.4pt}}
22059 \begin_inset Float table
22064 \begin_layout Plain Layout
22065 \begin_inset Caption Standard
22067 \begin_layout Plain Layout
22068 \begin_inset CommandInset label
22070 name "tab:Table-with-horizontal"
22075 \begin_inset space \thinspace{}
22078 pt thick horizontal lines
22086 \begin_layout Plain Layout
22088 \begin_inset Tabular
22089 <lyxtabular version="3" rows="3" columns="3">
22090 <features tabularvalignment="middle">
22091 <column alignment="center" valignment="top">
22092 <column alignment="center" valignment="top">
22093 <column alignment="center" valignment="top">
22095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22098 \begin_layout Plain Layout
22104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22107 \begin_layout Plain Layout
22113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22116 \begin_layout Plain Layout
22124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22127 \begin_layout Plain Layout
22133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22136 \begin_layout Plain Layout
22142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22145 \begin_layout Plain Layout
22153 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22156 \begin_layout Plain Layout
22162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22165 \begin_layout Plain Layout
22171 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22174 \begin_layout Plain Layout
22194 \begin_layout Plain Layout
22210 \begin_layout Standard
22211 \begin_inset VSpace bigskip
22214 To set the line thickness to 1.5
22215 \begin_inset space \thinspace{}
22218 pt only for vertical lines, create the following column format in the document
22219 preamble, according to the description in section
22220 \begin_inset space ~
22224 \begin_inset CommandInset ref
22226 reference "subsec:Customized-Format"
22233 \begin_layout Standard
22238 newcolumntype{V}{!{
22240 vrule width 1.5pt}}
22243 \begin_layout Standard
22245 \begin_inset space ~
22249 \begin_inset CommandInset ref
22251 reference "tab:Table-with-vertical"
22255 the \SpecialChar LaTeX
22259 \begin_layout Standard
22265 \begin_layout Standard
22266 was used for the last column and
22269 \begin_layout Standard
22275 \begin_layout Standard
22276 for the other columns.
22279 \begin_layout Standard
22280 \begin_inset Float table
22285 \begin_layout Plain Layout
22286 \begin_inset Caption Standard
22288 \begin_layout Plain Layout
22289 \begin_inset CommandInset label
22291 name "tab:Table-with-vertical"
22296 \begin_inset space \thinspace{}
22299 pt thick vertical lines
22307 \begin_layout Plain Layout
22309 \begin_inset Tabular
22310 <lyxtabular version="3" rows="3" columns="3">
22311 <features tabularvalignment="middle">
22312 <column alignment="center" valignment="top" special="Vc">
22313 <column alignment="center" valignment="top" special="Vc">
22314 <column alignment="center" valignment="top" special="VcV">
22316 <cell alignment="center" valignment="top" topline="true" usebox="none">
22319 \begin_layout Plain Layout
22325 <cell alignment="center" valignment="top" topline="true" usebox="none">
22328 \begin_layout Plain Layout
22334 <cell alignment="center" valignment="top" topline="true" usebox="none">
22337 \begin_layout Plain Layout
22345 <cell alignment="center" valignment="top" topline="true" usebox="none">
22348 \begin_layout Plain Layout
22354 <cell alignment="center" valignment="top" topline="true" usebox="none">
22357 \begin_layout Plain Layout
22363 <cell alignment="center" valignment="top" topline="true" usebox="none">
22366 \begin_layout Plain Layout
22374 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22377 \begin_layout Plain Layout
22383 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22386 \begin_layout Plain Layout
22392 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22395 \begin_layout Plain Layout
22414 \begin_layout Subsection
22416 \begin_inset Index idx
22419 \begin_layout Plain Layout
22420 Table Customization ! Dashed Lines
22428 \begin_layout Standard
22432 \begin_layout Plain Layout
22442 \begin_inset Note Note
22445 \begin_layout Plain Layout
22446 The following section will only be displayed when the \SpecialChar LaTeX
22459 \begin_layout Standard
22460 \begin_inset Float table
22466 \begin_layout Plain Layout
22467 \begin_inset Caption Standard
22469 \begin_layout Plain Layout
22470 \begin_inset CommandInset label
22472 name "tab:Table-with-dashed"
22476 Table with dashed lines
22484 \begin_layout Plain Layout
22486 \begin_inset Tabular
22487 <lyxtabular version="3" rows="5" columns="5">
22488 <features tabularvalignment="middle">
22489 <column alignment="center" valignment="top">
22490 <column alignment="center" valignment="top">
22491 <column alignment="center" valignment="top" special=":c">
22492 <column alignment="center" valignment="top">
22493 <column alignment="center" valignment="top">
22495 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22498 \begin_layout Plain Layout
22504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22507 \begin_layout Plain Layout
22513 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22516 \begin_layout Plain Layout
22522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22525 \begin_layout Plain Layout
22531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22534 \begin_layout Plain Layout
22542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22545 \begin_layout Plain Layout
22551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22554 \begin_layout Plain Layout
22560 <cell alignment="center" valignment="top" topline="true" usebox="none">
22563 \begin_layout Plain Layout
22569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22572 \begin_layout Plain Layout
22578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22581 \begin_layout Plain Layout
22589 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22592 \begin_layout Plain Layout
22596 \begin_layout Plain Layout
22610 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22613 \begin_layout Plain Layout
22619 <cell alignment="center" valignment="top" usebox="none">
22622 \begin_layout Plain Layout
22628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22631 \begin_layout Plain Layout
22637 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22640 \begin_layout Plain Layout
22648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22651 \begin_layout Plain Layout
22655 \begin_layout Plain Layout
22669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22672 \begin_layout Plain Layout
22678 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22681 \begin_layout Plain Layout
22687 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22690 \begin_layout Plain Layout
22696 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22699 \begin_layout Plain Layout
22707 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22710 \begin_layout Plain Layout
22716 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22719 \begin_layout Plain Layout
22725 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22728 \begin_layout Plain Layout
22734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22737 \begin_layout Plain Layout
22743 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22746 \begin_layout Plain Layout
22765 \begin_layout Standard
22767 does not natively support dashed lines, so you have to use \SpecialChar TeX
22769 As a prerequisite the \SpecialChar LaTeX
22775 \begin_inset Index idx
22778 \begin_layout Plain Layout
22780 -packages ! arydshln
22785 must be loaded in the document preamble with the command
22788 \begin_layout Standard
22793 usepackage{arydshln}
22796 \begin_layout Standard
22797 To make a vertical line dashed, enter the colon
22798 \begin_inset Quotes eld
22802 \begin_inset Quotes erd
22805 together with the character for the horizontal alignment as \SpecialChar LaTeX
22807 the table cell dialog.
22810 \begin_layout Standard
22811 For a horizontal dashed line add the command
22814 \begin_layout Standard
22822 \begin_layout Standard
22823 in \SpecialChar TeX
22824 Code as first element of the first cell in the table row.
22827 \begin_layout Standard
22828 For dashed multicolumn lines use the command
22831 \begin_layout Standard
22836 cdashline{line number
22841 \begin_layout Standard
22842 in \SpecialChar TeX
22843 Code as the first element of the first cell in the table row.
22844 If you have for example a multicolumn spanning columns 2 to 4 and you want
22845 to have a dashed line above, add the command
22848 \begin_layout Standard
22856 \begin_layout Standard
22857 as the first element of the first cell in the row of the multicolumn.
22860 \begin_layout Standard
22861 \begin_inset VSpace bigskip
22867 \begin_layout Standard
22869 \begin_inset space ~
22873 \begin_inset CommandInset ref
22875 reference "tab:Table-with-dashed"
22880 \begin_inset Quotes eld
22888 \begin_inset Quotes erd
22891 as \SpecialChar LaTeX
22892 argument of the third column.
22893 The \SpecialChar TeX
22900 was inserted in the first cell of the third row and the \SpecialChar TeX
22902 \begin_inset Newline newline
22911 was inserted in the first cell of the fourth row.
22914 \begin_layout Standard
22915 \begin_inset VSpace bigskip
22921 \begin_layout Standard
22922 Tables with dashed lines can also be colored as shown by Table
22923 \begin_inset space ~
22927 \begin_inset CommandInset ref
22929 reference "tab:Colored-table-with"
22936 \begin_layout Standard
22940 \begin_layout Plain Layout
22946 arrayrulewidth}{1pt}
22952 \begin_inset Note Note
22955 \begin_layout Plain Layout
22956 thicker lines for better visualization of the line color
22964 \begin_layout Standard
22968 \begin_layout Plain Layout
22972 dashgapcolor{green}
22978 \begin_inset Note Note
22981 \begin_layout Plain Layout
22982 color gaps between dashes green
22990 \begin_layout Standard
22994 \begin_layout Plain Layout
23005 \begin_layout Plain Layout
23014 \begin_layout Plain Layout
23018 arrayrulecolor{red}
23022 arrayrulecolor{black}}
23028 \begin_inset Note Note
23031 \begin_layout Plain Layout
23032 color horizontal, dashed lines red
23040 \begin_layout Standard
23044 \begin_layout Plain Layout
23055 \begin_layout Plain Layout
23064 \begin_layout Plain Layout
23068 arrayrulecolor{yellow}
23072 arrayrulecolor{black}}
23078 \begin_inset Note Note
23081 \begin_layout Plain Layout
23082 color partial horizontal, dashed lines yellow
23090 \begin_layout Standard
23091 \begin_inset Float table
23097 \begin_layout Plain Layout
23098 \begin_inset Caption Standard
23100 \begin_layout Plain Layout
23101 \begin_inset CommandInset label
23103 name "tab:Colored-table-with"
23107 Colored table with dashed lines
23115 \begin_layout Plain Layout
23117 \begin_inset Tabular
23118 <lyxtabular version="3" rows="5" columns="5">
23119 <features tabularvalignment="middle">
23120 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23121 <column alignment="center" valignment="top" width="0pt">
23122 <column alignment="center" valignment="top" width="0pt" special=":c">
23123 <column alignment="center" valignment="top">
23124 <column alignment="center" valignment="top">
23126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23129 \begin_layout Plain Layout
23135 <cell alignment="center" valignment="top" topline="true" usebox="none">
23138 \begin_layout Plain Layout
23144 <cell alignment="center" valignment="top" topline="true" usebox="none">
23147 \begin_layout Plain Layout
23153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23156 \begin_layout Plain Layout
23162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23165 \begin_layout Plain Layout
23173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23176 \begin_layout Plain Layout
23182 <cell alignment="center" valignment="top" topline="true" usebox="none">
23185 \begin_layout Plain Layout
23191 <cell alignment="center" valignment="top" topline="true" usebox="none">
23194 \begin_layout Plain Layout
23200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23203 \begin_layout Plain Layout
23209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23212 \begin_layout Plain Layout
23220 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23223 \begin_layout Plain Layout
23227 \begin_layout Plain Layout
23240 \begin_layout Plain Layout
23254 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23257 \begin_layout Plain Layout
23263 <cell alignment="center" valignment="top" usebox="none">
23266 \begin_layout Plain Layout
23272 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23275 \begin_layout Plain Layout
23281 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23284 \begin_layout Plain Layout
23292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23295 \begin_layout Plain Layout
23299 \begin_layout Plain Layout
23313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23316 \begin_layout Plain Layout
23322 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23325 \begin_layout Plain Layout
23331 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23334 \begin_layout Plain Layout
23340 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23343 \begin_layout Plain Layout
23351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23354 \begin_layout Plain Layout
23360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23363 \begin_layout Plain Layout
23369 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23372 \begin_layout Plain Layout
23378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23381 \begin_layout Plain Layout
23387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23390 \begin_layout Plain Layout
23394 \begin_layout Plain Layout
23421 \begin_layout Standard
23425 \begin_layout Plain Layout
23439 \begin_inset Note Note
23442 \begin_layout Plain Layout
23451 \begin_layout Standard
23455 \begin_layout Plain Layout
23469 \begin_inset Note Note
23472 \begin_layout Plain Layout
23481 \begin_layout Standard
23485 \begin_layout Plain Layout
23495 \begin_inset Note Note
23498 \begin_layout Plain Layout
23507 \begin_layout Standard
23511 \begin_layout Plain Layout
23517 arrayrulewidth}{0.4pt}
23523 \begin_inset Note Note
23526 \begin_layout Plain Layout
23535 \begin_layout Standard
23536 The coloring of lines, columns and lines works as decribed in section
23537 \begin_inset space ~
23541 \begin_inset CommandInset ref
23543 reference "sec:Colored-Tables"
23548 Coloring horizontal lines works analogically as described there as well,
23549 one only needs to replace in the commands
23573 ; so one uses the command
23576 \begin_layout Standard
23586 \begin_inset Newline newline
23594 \begin_inset Newline newline
23598 \begin_inset Phantom HPhantom
23601 \begin_layout Plain Layout
23602 \begin_inset space ~
23612 arrayrulecolor{red}
23616 arrayrulecolor{black}}
23619 \begin_layout Standard
23629 \begin_layout Standard
23639 \begin_inset Newline newline
23647 \begin_inset Newline newline
23651 \begin_inset Phantom HPhantom
23654 \begin_layout Plain Layout
23655 \begin_inset space ~
23665 arrayrulecolor{red}
23669 arrayrulecolor{black}}
23672 \begin_layout Standard
23673 To get back the black line color, one needs to insert the following commands
23674 as \SpecialChar TeX
23675 Code behind the table:
23678 \begin_layout Standard
23686 \begin_layout Standard
23698 \begin_layout Standard
23706 \begin_layout Standard
23718 \begin_layout Standard
23719 To color the gaps between the dashes the command
23722 \begin_layout Standard
23727 dashgapcolor{color}
23730 \begin_layout Standard
23731 can be used in front of a table as \SpecialChar TeX
23733 color is hereby the name of a defined color.
23737 \begin_layout Standard
23745 \begin_layout Standard
23746 unsets the changes made by
23755 \begin_layout Standard
23756 \begin_inset Note Greyedout
23759 \begin_layout Plain Layout
23765 : If there are multiple commands in a cell, the command of
23769 needs to be the first one in the cell.
23775 \begin_inset space ~
23779 \begin_inset CommandInset ref
23781 reference "tab:Colored-table-with"
23805 \begin_layout Standard
23806 \begin_inset Note Greyedout
23809 \begin_layout Plain Layout
23815 The \SpecialChar LaTeX
23820 must be loaded in the document preamble before the \SpecialChar LaTeX
23826 \begin_inset Index idx
23829 \begin_layout Plain Layout
23831 -packages ! colortbl
23844 \begin_layout Standard
23848 \begin_layout Plain Layout
23858 \begin_inset Note Note
23861 \begin_layout Plain Layout
23862 The following will be displayed when the \SpecialChar LaTeX
23875 \begin_layout Standard
23876 You need to install the package
23880 to see the content of this section in the output.
23883 \begin_layout Standard
23887 \begin_layout Plain Layout
23899 \begin_layout Standard
23900 For more information about dashed lines see the documentation of
23905 \begin_inset CommandInset citation
23914 \begin_layout Chapter
23916 \begin_inset CommandInset label
23923 \begin_inset Index idx
23926 \begin_layout Plain Layout
23935 \begin_layout Section
23937 \begin_inset CommandInset label
23939 name "sec:FloatIntroduction"
23944 \begin_inset Index idx
23947 \begin_layout Plain Layout
23948 Floats ! Introduction
23956 \begin_layout Standard
23957 A float is a block of text associated with some sort of label, which doesn't
23958 have a fixed location.
23960 \begin_inset Quotes eld
23964 \begin_inset Quotes erd
23967 forward or backward a page or two, to wherever it fits best.
23975 \begin_inset space ~
23980 are also floats because they can float to the next page when there are
23981 too many notes on the page.
23984 \begin_layout Standard
23985 Floats allow a high quality layout.
23986 Images and tables can be spread evenly among the pages to avoid white space
23987 and pages without text.
23988 As the floating often destroys the context between the text and the image/table
23989 , every float can be referenced in the text.
23990 Floats are therefore numbered.
23991 Referencing is described in section
23992 \begin_inset space ~
23996 \begin_inset CommandInset ref
23998 reference "sec:Referencing-Floats"
24005 \begin_layout Standard
24006 To insert a float, use the menu
24008 Insert\SpecialChar menuseparator
24014 arg "float-insert figure"
24020 arg "float-insert table"
24028 inset, a box with a label.
24029 The label will automatically be translated to the document language in
24031 After the label you can insert the caption text.
24032 The image or table is inserted above or below the caption in a separate
24033 paragraph within the float.
24034 More about the caption placement is contained in section
24035 \begin_inset space ~
24039 \begin_inset CommandInset ref
24041 reference "sec:Caption-Placement"
24046 To keep your \SpecialChar LyX
24047 document readable, you can open and close the float box by
24048 left-clicking on the box label.
24049 A closed float box looks like this:
24050 \begin_inset Graphics
24051 filename clipart/float.png
24053 scaleBeforeRotation
24057 – a gray button with a red label.
24060 \begin_layout Standard
24061 It is recommended that you insert floats as separate standard paragraphs
24062 to avoid possible \SpecialChar LaTeX
24063 -errors that can occur when the surrounding text is specially
24067 \begin_layout Standard
24068 Existing figures or tables can be put into a float by highlighting them
24069 and then pressing the corresponding toolbar button for a new float.
24072 \begin_layout Section
24076 \begin_layout Standard
24077 Besides figure and table floats that are described in sections
24078 \begin_inset space ~
24082 \begin_inset CommandInset ref
24084 reference "sec:Figure-Floats"
24089 \begin_inset CommandInset ref
24091 reference "sec:Table-Floats"
24095 respectively, \SpecialChar LyX
24096 offers the float types
24105 The latter are explained in sec.
24106 \begin_inset space \thinspace{}
24110 \begin_inset CommandInset ref
24112 reference "sec:Wrap-Floats"
24119 \begin_layout Subsection
24121 \begin_inset Index idx
24124 \begin_layout Plain Layout
24125 Floats ! Algorithms
24133 \begin_layout Standard
24134 \begin_inset Float algorithm
24140 \begin_layout Plain Layout
24141 \begin_inset Caption Standard
24143 \begin_layout Plain Layout
24144 \begin_inset CommandInset label
24146 name "alg:Example-Algorithm-float"
24150 Example Algorithm float
24158 \begin_layout LyX-Code
24160 \begin_inset Newline newline
24163 Sum:= Sum + A(I); /*comment*/
24164 \begin_inset Newline newline
24168 \begin_inset VSpace -4mm
24179 \begin_layout Standard
24180 This float type is inserted with the menu
24182 Insert\SpecialChar menuseparator
24183 Float\SpecialChar menuseparator
24187 It is used for program codes and descriptions of algorithms and can be
24188 seen as an alternative to program code listings that are explained in chapter
24189 \begin_inset space ~
24193 \begin_inset CommandInset ref
24195 reference "cha:Program-Code-Listings"
24200 A possible environment for algorithms is the
24205 , described in \SpecialChar LyX
24212 \begin_inset space ~
24216 \begin_inset CommandInset ref
24218 reference "alg:Example-Algorithm-float"
24222 is an example of an algorithm float where -4
24223 \begin_inset space \thinspace{}
24226 mm vertical space was added at the end of the float to have the bottom rule
24227 exactly below the last text line.
24230 \begin_layout Standard
24231 The float label is not automatically translated into the document language.
24232 If your document is not in English, you have to do this manually by adding
24233 the following line to the document preamble
24238 \begin_layout Standard
24243 floatname{algorithm}{your
24244 \begin_inset space ~
24250 \begin_layout Standard
24254 \begin_inset space ~
24260 \begin_inset Quotes eld
24268 \begin_inset Quotes erd
24274 \begin_layout Standard
24275 To insert the list of algorithms you can use the menu
24277 Insert\SpecialChar menuseparator
24279 \begin_inset space \thinspace{}
24283 \begin_inset space \thinspace{}
24286 TOC\SpecialChar menuseparator
24289 when your document has the same language as \SpecialChar LyX
24291 In other cases use this command in \SpecialChar TeX
24295 \begin_layout Standard
24300 listof{algorithm}{your
24301 \begin_inset space ~
24307 \begin_layout Standard
24311 \begin_inset space ~
24317 \begin_inset Quotes eld
24325 \begin_inset Quotes erd
24331 \begin_layout Standard
24332 Algorithm floats are not by default numbered in the scheme
24333 \begin_inset Quotes eld
24337 \begin_inset Quotes erd
24340 as is the case for table and figure floats in many document-classes.
24341 To number algorithm floats in the same scheme, add this command to your
24345 \begin_layout Standard
24350 numberwithin{algorithm}{chapter}
24353 \begin_layout Standard
24354 To be able to use the command
24363 \begin_inset space ~
24368 in the document settings the option
24371 \begin_inset space ~
24375 \begin_inset space ~
24379 \begin_inset space ~
24387 \begin_layout Section
24389 \begin_inset Index idx
24392 \begin_layout Plain Layout
24401 \begin_layout Standard
24402 Floats are usually numbered either independently from the sections the floats
24403 are in, or in the scheme
24404 \begin_inset Quotes eld
24408 \begin_inset Quotes erd
24412 \begin_inset Quotes eld
24416 \begin_inset Quotes erd
24420 This depends on the document class used.
24423 \begin_layout Standard
24424 To change section-independent numbering, you can use this command in the
24428 \begin_layout Standard
24440 \begin_layout Standard
24447 is the command that prints the table number.
24448 For figure floats, the command would be
24461 in the command above prints the table number as a small roman number.
24464 \begin_layout Standard
24465 To change the numbering scheme for example to
24466 \begin_inset Quotes eld
24470 \begin_inset Quotes erd
24473 , use this command in the preamble:
24476 \begin_layout Standard
24481 numberwithin{table}{subsection}
24484 \begin_layout Standard
24485 To be able to use the command
24494 \begin_inset space ~
24499 in the document settings the option
24502 \begin_inset space ~
24506 \begin_inset space ~
24510 \begin_inset space ~
24518 \begin_layout Standard
24519 Please also have a look at section
24520 \begin_inset space ~
24524 \begin_inset CommandInset ref
24526 reference "subsec:Footnote-Numbering"
24530 for the details and important notes about the numbering commands.
24533 \begin_layout Section
24535 \begin_inset CommandInset label
24537 name "sec:Referencing-Floats"
24542 \begin_inset Index idx
24545 \begin_layout Plain Layout
24546 Floats ! References
24552 \begin_inset Index idx
24555 \begin_layout Plain Layout
24556 References ! to Floats
24564 \begin_layout Standard
24565 To reference a float, insert a label into its caption using the menu
24567 Insert\SpecialChar menuseparator
24570 or the toolbar button
24577 A grey label box like this one:
24578 \begin_inset Graphics
24579 filename clipart/label.png
24580 scaleBeforeRotation
24584 will be inserted and the label window pops up asking for the label text.
24586 offers as text the first words of the caption with a prefix.
24587 The prefix depends on the float type, e.
24588 \begin_inset space \thinspace{}
24592 \begin_inset space \space{}
24595 for figure floats the prefix will be "
24602 \begin_layout Standard
24603 The label is used as anchor and name for the reference.
24604 You can refer to the label using the menu
24606 Insert\SpecialChar menuseparator
24609 or the toolbar button
24612 arg "dialog-show-new-inset ref"
24616 The cross-reference window appears showing all labels of the document.
24617 If you have multiple \SpecialChar LyX
24618 documents opened, choose the one you are working
24619 on from the drop-list at the top of the dialog.
24620 You can now sort the labels alphabetically and then choose one.
24621 A grey cross-reference box like this one:
24622 \begin_inset Graphics
24623 filename clipart/reference.png
24624 scaleBeforeRotation
24629 At the position of the cross-reference box the float number will appear
24633 \begin_layout Standard
24634 It is recommended that you use a protected space between the cross-reference
24635 name and its number to avoid line breaks between them.
24636 If a cross-reference refers to a non-existing label, you will see two question
24637 marks in the output instead of the reference.
24640 \begin_layout Standard
24641 You can change labels at any time by clicking on the label box.
24642 References to the changed label will automatically update their links to
24643 the new label text.
24646 \begin_layout Standard
24650 \begin_inset space ~
24654 \begin_inset space ~
24659 in the cross-reference window sets the cursor before the referred label.
24660 The button text changes then to Go
24661 \begin_inset space ~
24664 Back and you can use it to set the cursor back to the cross-reference.
24667 \begin_layout Subsection
24668 Cross-Reference Formats
24669 \begin_inset CommandInset label
24671 name "subsec:Cross-Reference-Formats"
24676 \begin_inset Index idx
24679 \begin_layout Plain Layout
24680 References ! Formats
24688 \begin_layout Standard
24689 There are six varieties of cross-references:
24692 \begin_layout Description
24693 <reference>: prints the float number, this is the default:
24694 \begin_inset CommandInset ref
24696 reference "fig:Two-distorted-images"
24703 \begin_layout Description
24704 (<reference>): prints the float number within two parentheses, this is the
24705 style normally used to reference formulas, especially when the reference
24707 \begin_inset Quotes eld
24711 \begin_inset Quotes erd
24715 \begin_inset CommandInset ref
24724 \begin_layout Description
24725 <page>: prints the page number: Page
24726 \begin_inset space ~
24730 \begin_inset CommandInset ref
24731 LatexCommand pageref
24732 reference "fig:Two-distorted-images"
24739 \begin_layout Description
24741 \begin_inset space ~
24745 \begin_inset space ~
24748 <page>: prints the text "on page" and the page number:
24749 \begin_inset CommandInset ref
24750 LatexCommand vpageref
24751 reference "fig:Two-distorted-images"
24758 \begin_layout Description
24760 \begin_inset space ~
24764 \begin_inset space ~
24768 \begin_inset space ~
24771 <page>: prints the float number, the text "on page", and the page number:
24773 \begin_inset CommandInset ref
24775 reference "fig:Two-distorted-images"
24782 \begin_layout Description
24784 \begin_inset space ~
24787 reference: prints a self-defined cross-reference format.
24788 \begin_inset Newline newline
24792 \begin_inset Note Greyedout
24795 \begin_layout Plain Layout
24800 This feature is only available when you have the \SpecialChar LaTeX
24810 \begin_inset Index idx
24813 \begin_layout Plain Layout
24815 -packages ! prettyref
24821 \begin_inset Index idx
24824 \begin_layout Plain Layout
24826 -packages ! refstyle
24837 \begin_inset Newline newline
24840 You can select which \SpecialChar LaTeX
24841 -package should be used for this feature by setting
24844 Use refstyle (not prettyref) for cross-references
24848 Document\SpecialChar menuseparator
24849 Settings\SpecialChar menuseparator
24853 The format is specified by adding the command
24865 (refstyle) to the preamble of the document.
24866 For example redefining all references to figures (which have the label
24868 \begin_inset Quotes eld
24876 \begin_inset Quotes erd
24879 ) can be done with this command
24880 \begin_inset Newline newline
24887 newref{fig}{refcmd={Image on page
24892 \begin_inset Newline newline
24895 For more information about the format, have a look at the package documentations
24897 \begin_inset CommandInset citation
24899 key "prettyref,refstyle"
24906 \begin_layout Description
24908 \begin_inset space ~
24911 reference: prints the caption of the reference:
24912 \begin_inset CommandInset ref
24913 LatexCommand nameref
24914 reference "fig:Two-distorted-images"
24921 \begin_layout Standard
24926 will not print the page number if the label is on the previous, the same,
24929 \begin_inset space \thinspace{}
24933 \begin_inset space \space{}
24937 \begin_inset Quotes eld
24945 \begin_inset Quotes erd
24951 <reference> on page <page>
24953 will not print anything about the page if the label is on the same page.
24956 \begin_layout Standard
24957 The number and current page of the part of the document referred to in the
24958 output is automatically calculated by \SpecialChar LaTeX
24960 The varieties are adjusted in the field
24964 of the cross-reference window that appears when you click on the cross-referenc
24968 \begin_layout Standard
24969 \begin_inset Note Greyedout
24972 \begin_layout Plain Layout
24977 It is recommended to use the \SpecialChar LaTeX
24983 \begin_inset Index idx
24986 \begin_layout Plain Layout
24988 -packages ! refstyle
24998 \begin_inset Index idx
25001 \begin_layout Plain Layout
25003 -packages ! prettyref
25008 does not know all of \SpecialChar LyX
25009 's possible label shortcuts
25013 \begin_layout Plain Layout
25014 \begin_inset Quotes eld
25018 \begin_inset Quotes erd
25021 is for example \SpecialChar LyX
25022 's shortcut for labels in figure captions.
25027 and is not internationalized.
25035 \begin_layout Subsection
25036 Automatic Reference Naming
25037 \begin_inset Index idx
25040 \begin_layout Plain Layout
25041 References ! Automatic Reference Naming
25049 \begin_layout Standard
25050 The \SpecialChar LaTeX
25056 \begin_inset Index idx
25059 \begin_layout Plain Layout
25061 -packages ! hyperref
25066 , that is enabled in the
25074 dialog, provides a very useful feature that cross-references automatically
25075 include the name of the referenced floats (or text parts like
25080 So you will save having to write e.
25081 \begin_inset space \thinspace{}
25085 \begin_inset space \space{}
25089 \begin_inset Quotes eld
25093 \begin_inset Quotes erd
25096 before every reference to a figure.
25097 To use this feature, enable
25101 and insert this line to the \SpecialChar LaTeX
25105 \begin_layout Standard
25121 \begin_layout Standard
25122 When you prefer other reference names than the default ones, for example
25123 you want instead of
25124 \begin_inset Quotes eld
25128 \begin_inset Quotes erd
25132 \begin_inset Quotes eld
25136 \begin_inset space \thinspace{}
25140 \begin_inset Quotes eld
25143 , you can redefine the name by inserting this in the preamble:
25146 \begin_layout Standard
25157 sectionautorefname}
25158 \begin_inset Newline newline
25162 \begin_inset Phantom HPhantom
25165 \begin_layout Plain Layout
25168 \begin_inset space ~
25181 \begin_layout Standard
25182 When you are using another document language than English, replace
25183 \begin_inset Newline newline
25198 , where *** is the name of the language used.
25201 \begin_layout Standard
25202 To get automatic names, but not for certain reference types, for example
25203 not for equations, use this preamble code:
25206 \begin_layout Standard
25217 equationautorefname}[1]{}}
25220 \begin_layout Standard
25221 More about this topic can be found in
25226 \begin_inset CommandInset citation
25235 \begin_layout Standard
25236 \begin_inset Note Greyedout
25239 \begin_layout Plain Layout
25244 Automatic reference naming cannot be used when you use cross-references
25248 \begin_inset space ~
25253 style, as described in section
25254 \begin_inset space ~
25258 \begin_inset CommandInset ref
25260 reference "subsec:Cross-Reference-Formats"
25272 \begin_layout Standard
25277 manual is an example where automatic reference naming is used.
25280 \begin_layout Subsection
25282 \begin_inset CommandInset label
25284 name "subsec:Reference-Position"
25289 \begin_inset Index idx
25292 \begin_layout Plain Layout
25293 References ! Reference Position
25301 \begin_layout Standard
25307 \begin_inset Index idx
25310 \begin_layout Plain Layout
25312 -packages ! hyperref
25325 dialog to link cross-references in the output, you will see that clicking
25326 on an image float reference jumps to the image label.
25327 The caption will be the first text part on the screen, so that you cannot
25328 see the image without scrolling.
25329 This is because the reference link anchor is placed at the position of
25331 With the use of the package
25336 \begin_inset Index idx
25339 \begin_layout Plain Layout
25346 , which is part of the \SpecialChar LaTeX
25352 \begin_inset Index idx
25355 \begin_layout Plain Layout
25357 -packages ! oberdiek
25362 , the link anchor is placed at the beginning of a float.
25363 To use this feature for figure floats, load
25367 in the document preamble with the line
25370 \begin_layout Standard
25375 usepackage[figure]{hypcap}
25378 \begin_layout Standard
25383 for all float types but this is not recommended for stability reasons.
25384 For more information, have a look at
25389 \begin_inset CommandInset citation
25398 \begin_layout Standard
25399 \begin_inset Note Greyedout
25402 \begin_layout Plain Layout
25411 has no effect on references to subfigures.
25419 \begin_layout Section
25421 \begin_inset CommandInset label
25423 name "sec:Float-Placement"
25428 \begin_inset Index idx
25431 \begin_layout Plain Layout
25440 \begin_layout Standard
25441 Right-clicking on a float-box and clicking on
25445 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25447 positioning the float.
25448 \begin_inset Newline newline
25454 \begin_inset space ~
25459 is only useful for two-column documents: If you select it, the float will
25460 span both columns on the page instead of being confined to just one.
25461 \begin_inset Newline newline
25467 \begin_inset space ~
25472 is used to rotate floats, see section
25473 \begin_inset CommandInset ref
25475 reference "sec:Rotated-Floats"
25482 \begin_layout Standard
25483 You can use one or more of the following options in the float dialog to
25484 set the placement for a particular float when you uncheck the option
25487 \begin_inset space ~
25491 \begin_inset space ~
25499 \begin_layout Description
25501 \begin_inset space ~
25505 \begin_inset space ~
25508 possible try to place the float on the position where it has been inserted
25511 \begin_layout Description
25513 \begin_inset space ~
25517 \begin_inset space ~
25520 page try to place the float at the top of the current page
25523 \begin_layout Description
25525 \begin_inset space ~
25529 \begin_inset space ~
25532 page try to place the float at the bottom of the current page
25535 \begin_layout Description
25537 \begin_inset space ~
25541 \begin_inset space ~
25544 floats try to place the float on its own page
25547 \begin_layout Standard
25548 The order of the above option is
25552 used by \SpecialChar LaTeX
25554 That means, if you use the default placement, \SpecialChar LaTeX
25558 \begin_inset space ~
25562 \begin_inset space ~
25570 \begin_inset space ~
25574 \begin_inset space ~
25579 , and then the others.
25580 If you do not use the default, \SpecialChar LaTeX
25581 will try only the checked options but in
25584 \begin_inset space ~
25587 placements is possible the procedure is internally repeated trying to put
25588 the float on the following page.
25591 \begin_layout Standard
25592 By default, each option has its own rules:
25595 \begin_layout Labeling
25596 \labelwidthstring 00.00.0000
25600 \begin_inset space ~
25604 \begin_inset space ~
25609 only floats occupying less than 70
25610 \begin_inset space \thinspace{}
25613 % of the page can be placed at the top of a page (
25622 \begin_layout Labeling
25623 \labelwidthstring 00.00.0000
25627 \begin_inset space ~
25631 \begin_inset space ~
25636 : only floats occupying less than 30
25637 \begin_inset space \thinspace{}
25640 % of the page can be placed at the bottom of a page.
25650 \begin_layout Labeling
25651 \labelwidthstring 00.00.0000
25655 \begin_inset space ~
25659 \begin_inset space ~
25664 : only if more than 50
25665 \begin_inset space \thinspace{}
25668 % of the page is occupied by floats, several floats can be set together
25679 \begin_layout Standard
25680 If you don't like these rules, you can ignore them by using the additional
25684 \begin_inset space ~
25689 \begin_inset space ~
25695 \begin_inset Newline newline
25698 You can also redefine the rules with \SpecialChar LaTeX
25699 -commands that are given in parentheses
25700 after the rules description above.
25701 To increase for example the often too small default of the bottom-rule
25703 \begin_inset space \thinspace{}
25706 % of the page, add this line to your document preamble:
25709 \begin_layout Standard
25716 bottomfraction}{0.5}
25719 \begin_layout Standard
25720 Sometimes you might need, under all circumstances, a float to be placed
25721 exactly at the position where it is inserted.
25722 For this case you can use the option
25725 \begin_inset space ~
25731 Use this option very rarely and only if the document is almost ready to
25732 be printed, because the float is then no longer able to
25733 \begin_inset Quotes eld
25737 \begin_inset Quotes erd
25740 when you change your document and this will often destroy the page layout.
25743 \begin_layout Standard
25744 There are no placement options for text wrap floats, because they are always
25745 surrounded by the text of a certain paragraph.
25746 \begin_inset VSpace bigskip
25752 \begin_layout Standard
25753 Sometimes you have the problem that a float is placed at the top of a page
25754 while its corresponding section starts at the middle of the page, so that
25755 the reader could think the float is part of the previous section.
25756 To avoid this the \SpecialChar LaTeX
25764 It suppresses a given float placement for the page where it is inserted
25765 and can therefore be used to avoid floats being set before a section starts.
25766 To get this, add these commands to your document preamble:
25769 \begin_layout Standard
25779 \begin_inset Newline newline
25793 \begin_layout Standard
25794 You can define the same for all section headings, like chapters and subsections.
25795 This definition is not recommended to be used for small text parts like
25796 subsubsections because \SpecialChar LaTeX
25797 may then have problems finding a suitable placement.
25800 \begin_layout Standard
25801 \begin_inset VSpace bigskip
25804 In some cases it is required to have all figures/tables at the end of the
25806 For this purpose the \SpecialChar LaTeX
25812 \begin_inset Index idx
25815 \begin_layout Plain Layout
25817 -packages ! endfloat
25823 It puts all figure and table floats at the end of the document into their
25825 At the original float position a text hint like
25826 \begin_inset Quotes eld
25832 \begin_inset space ~
25838 \begin_inset Quotes erd
25842 The endfloat-package is loaded in the preamble with the line
25845 \begin_layout Standard
25850 usepackage[options]{endfloat}
25853 \begin_layout Standard
25854 There are various package options to format the created figure/table sections.
25855 For more information we refer you to the
25860 \begin_inset CommandInset citation
25867 \begin_inset Newline newline
25871 \begin_inset Note Greyedout
25874 \begin_layout Plain Layout
25879 doesn't provide an automatic translation for the text hint, you have to
25880 do this manually, see section
25881 \begin_inset space ~
25885 \begin_inset CommandInset citation
25897 \begin_inset Newline newline
25901 \begin_inset Note Greyedout
25904 \begin_layout Plain Layout
25909 There is currently a bug in
25913 when the caption contains a German
25914 \begin_inset Quotes eld
25918 \begin_inset Quotes erd
25922 Use in this case the command
25923 \begin_inset Quotes eld
25933 \begin_inset Quotes erd
25936 in \SpecialChar TeX
25938 \begin_inset Quotes eld
25942 \begin_inset Quotes erd
25953 \begin_layout Standard
25954 \begin_inset VSpace bigskip
25957 For more details about float placements, have a look at \SpecialChar LaTeX
25959 \begin_inset CommandInset citation
25961 key "latexcompanion,latexguide,latexbook"
25968 \begin_layout Section
25970 \begin_inset CommandInset label
25972 name "sec:Rotated-Floats"
25977 \begin_inset Index idx
25980 \begin_layout Plain Layout
25989 \begin_layout Standard
25990 Especially for wide tables you might have floats rotated.
25991 To rotate a whole float including the caption, right-click on the float-box
25995 \begin_inset space ~
26003 \begin_layout Standard
26004 Rotated floats are always placed on a page of their own (or column of their
26005 own; in case you have a multi-column document).
26006 You can let them span several columns using the float settings option
26009 \begin_inset space ~
26015 Floats are rotated so that you can read them from the outside margin.
26016 To force a certain rotation direction for all pages, you can add either
26025 to the document class options.
26028 \begin_layout Standard
26029 Referencing rotated floats is the same as for normal floats, the caption
26030 format is also the same: Table
26031 \begin_inset space ~
26035 \begin_inset CommandInset ref
26037 reference "tab:Rotated-table"
26041 is an example of a rotated table float.
26044 \begin_layout Standard
26045 \begin_inset Note Greyedout
26048 \begin_layout Plain Layout
26053 Not all DVI-viewers are able to display rotated floats.
26061 \begin_layout Standard
26062 \begin_inset Float table
26067 \begin_layout Plain Layout
26068 \begin_inset Caption Standard
26070 \begin_layout Plain Layout
26071 \begin_inset CommandInset label
26073 name "tab:Rotated-table"
26085 \begin_layout Plain Layout
26087 \begin_inset Tabular
26088 <lyxtabular version="3" rows="1" columns="5">
26089 <features tabularvalignment="middle">
26090 <column alignment="center" valignment="top">
26091 <column alignment="center" valignment="top">
26092 <column alignment="center" valignment="top">
26093 <column alignment="center" valignment="top">
26094 <column alignment="center" valignment="top">
26096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26099 \begin_layout Plain Layout
26105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26108 \begin_layout Plain Layout
26114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26117 \begin_layout Plain Layout
26123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26126 \begin_layout Plain Layout
26132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26135 \begin_layout Plain Layout
26154 \begin_layout Section
26156 \begin_inset Index idx
26159 \begin_layout Plain Layout
26168 \begin_layout Standard
26169 Subfloats are for example used when a figure consists of several images.
26170 They are created by inserting a float into an existing float.
26171 The placement of the subfloats can be controlled in the same way as for
26172 paragraphs as shown in table
26173 \begin_inset space ~
26177 \begin_inset CommandInset ref
26179 reference "tab:Two-subtables-side"
26184 \begin_inset CommandInset ref
26186 reference "tab:Two-subtables-upon"
26193 \begin_layout Standard
26194 Referencing subfloats works as for normal floats: Table
26195 \begin_inset space ~
26199 \begin_inset CommandInset ref
26201 reference "tab:This-is-subtable-a"
26206 \begin_inset CommandInset ref
26208 reference "tab:This-is-subtable-b"
26212 are subtables of table
26213 \begin_inset space ~
26217 \begin_inset CommandInset ref
26219 reference "tab:Two-subtables-side"
26226 \begin_layout Standard
26227 \begin_inset Float table
26232 \begin_layout Plain Layout
26233 \begin_inset Caption Standard
26235 \begin_layout Plain Layout
26236 \begin_inset CommandInset label
26238 name "tab:Two-subtables-side"
26242 Two subtables placed side by side.
26250 \begin_layout Plain Layout
26252 \begin_inset space \hfill{}
26256 \begin_inset Float table
26261 \begin_layout Plain Layout
26262 \begin_inset Caption Standard
26264 \begin_layout Plain Layout
26265 \begin_inset CommandInset label
26267 name "tab:This-is-subtable-a"
26271 This is subtable a.
26279 \begin_layout Plain Layout
26281 \begin_inset Tabular
26282 <lyxtabular version="3" rows="1" columns="5">
26283 <features tabularvalignment="middle">
26284 <column alignment="center" valignment="top">
26285 <column alignment="center" valignment="top">
26286 <column alignment="center" valignment="top">
26287 <column alignment="center" valignment="top">
26288 <column alignment="center" valignment="top">
26290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26293 \begin_layout Plain Layout
26299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26302 \begin_layout Plain Layout
26308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26311 \begin_layout Plain Layout
26317 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26320 \begin_layout Plain Layout
26326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26329 \begin_layout Plain Layout
26346 \begin_inset space \hfill{}
26350 \begin_inset Float table
26355 \begin_layout Plain Layout
26356 \begin_inset Caption Standard
26358 \begin_layout Plain Layout
26359 \begin_inset CommandInset label
26361 name "tab:This-is-subtable-b"
26365 This is subtable b.
26373 \begin_layout Plain Layout
26375 \begin_inset Tabular
26376 <lyxtabular version="3" rows="1" columns="5">
26377 <features tabularvalignment="middle">
26378 <column alignment="center" valignment="top">
26379 <column alignment="center" valignment="top">
26380 <column alignment="center" valignment="top">
26381 <column alignment="center" valignment="top">
26382 <column alignment="center" valignment="top">
26384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26387 \begin_layout Plain Layout
26393 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26396 \begin_layout Plain Layout
26402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26405 \begin_layout Plain Layout
26411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26414 \begin_layout Plain Layout
26420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26423 \begin_layout Plain Layout
26440 \begin_inset space \hfill{}
26451 \begin_layout Standard
26452 \begin_inset Float table
26457 \begin_layout Plain Layout
26458 \begin_inset Caption Standard
26460 \begin_layout Plain Layout
26461 \begin_inset CommandInset label
26463 name "tab:Two-subtables-upon"
26467 Two subtables placed one above the other.
26468 (a) table with 4 cells, (b) table with 5 cells.
26476 \begin_layout Plain Layout
26478 \begin_inset Float table
26483 \begin_layout Plain Layout
26484 \begin_inset Caption Standard
26486 \begin_layout Plain Layout
26495 \begin_layout Plain Layout
26497 \begin_inset Tabular
26498 <lyxtabular version="3" rows="1" columns="4">
26499 <features tabularvalignment="middle">
26500 <column alignment="center" valignment="top">
26501 <column alignment="center" valignment="top">
26502 <column alignment="center" valignment="top">
26503 <column alignment="center" valignment="top">
26505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26508 \begin_layout Plain Layout
26514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26517 \begin_layout Plain Layout
26523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26526 \begin_layout Plain Layout
26532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26535 \begin_layout Plain Layout
26554 \begin_layout Plain Layout
26556 \begin_inset Float table
26561 \begin_layout Plain Layout
26562 \begin_inset Caption Standard
26564 \begin_layout Plain Layout
26573 \begin_layout Plain Layout
26575 \begin_inset Tabular
26576 <lyxtabular version="3" rows="1" columns="5">
26577 <features tabularvalignment="middle">
26578 <column alignment="center" valignment="top">
26579 <column alignment="center" valignment="top">
26580 <column alignment="center" valignment="top">
26581 <column alignment="center" valignment="top">
26582 <column alignment="center" valignment="top">
26584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26587 \begin_layout Plain Layout
26593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26596 \begin_layout Plain Layout
26602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26605 \begin_layout Plain Layout
26611 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26614 \begin_layout Plain Layout
26620 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26623 \begin_layout Plain Layout
26647 \begin_layout Section
26648 Floats Side by Side
26649 \begin_inset Index idx
26652 \begin_layout Plain Layout
26653 Floats ! Side by side
26661 \begin_layout Standard
26662 To place floats side by side, as in Figures
26663 \begin_inset space ~
26667 \begin_inset CommandInset ref
26669 reference "fig:Float-left"
26674 \begin_inset CommandInset ref
26676 reference "fig:Float-right"
26685 In it two minipage boxes are inserted.
26689 \begin_layout Plain Layout
26690 Minipages are explained in section
26691 \begin_inset space ~
26695 \begin_inset CommandInset ref
26697 reference "sec:Minipages"
26706 The width is set to 45
26707 \begin_inset space \thinspace{}
26711 \begin_inset space \thinspace{}
26714 column% and the box alignment to
26719 The minipage boxes contain the image and the caption in the same way as
26720 they are in a float.
26721 The only difference is that the image unit
26724 \begin_inset space ~
26728 \begin_inset space ~
26733 is now calculated according to the width of the minipage boxes.
26736 \begin_layout Standard
26737 \begin_inset Float figure
26742 \begin_layout Plain Layout
26743 \begin_inset Box Frameless
26753 height_special "totalheight"
26758 backgroundcolor "none"
26761 \begin_layout Plain Layout
26763 \begin_inset Graphics
26764 filename clipart/mobius.eps
26767 scaleBeforeRotation
26774 \begin_layout Plain Layout
26775 \begin_inset Caption Standard
26777 \begin_layout Plain Layout
26778 \begin_inset CommandInset label
26780 name "fig:Float-left"
26784 Float on the left side.
26795 \begin_inset space \hfill{}
26799 \begin_inset Box Frameless
26809 height_special "totalheight"
26814 backgroundcolor "none"
26817 \begin_layout Plain Layout
26819 \begin_inset Graphics
26820 filename clipart/platypus.eps
26823 scaleBeforeRotation
26830 \begin_layout Plain Layout
26831 \begin_inset Caption Standard
26833 \begin_layout Plain Layout
26834 \begin_inset CommandInset label
26836 name "fig:Float-right"
26840 Float on the right side.
26858 \begin_layout Standard
26859 An alternative and simpler solution is to use the module
26861 Variable-width Minipages
26864 \begin_inset space \thinspace{}
26868 \begin_inset CommandInset ref
26870 reference "sec:Minipages"
26875 Variable-width minipages adapt automatically to the width of the figures
26877 They do not require an explicit width to be given, and they improve the
26878 horizontal alignment of the figures.
26879 The LyX example file
26881 varwidth-floats-side-by-side
26883 gives examples of how to do this.
26886 \begin_layout Section
26888 \begin_inset Index idx
26891 \begin_layout Plain Layout
26892 Caption ! Formatting
26898 \begin_inset Index idx
26901 \begin_layout Plain Layout
26902 Floats ! Caption Formatting
26908 \begin_inset CommandInset label
26910 name "sec:Caption-Formatting"
26917 \begin_layout Standard
26922 environment is the default paragraph environment for
26927 On the \SpecialChar LyX
26928 screen captions appear as a label, e.
26929 \begin_inset space \thinspace{}
26933 \begin_inset space \space{}
26937 \begin_inset Quotes eld
26945 \begin_inset Quotes erd
26948 followed by the caption text.
26950 \begin_inset Quotes eld
26954 \begin_inset Quotes erd
26957 is the actual reference number.
26958 By default the label and the number are in the same font as the caption
26959 text and a colon follows the number to divide the label from the text.
26960 This caption format is suitable for many but not all documents.
26964 \begin_layout Standard
26965 To change the default caption format, load the \SpecialChar LaTeX
26971 \begin_inset Index idx
26974 \begin_layout Plain Layout
26976 -packages ! caption
26981 in the document preamble with this line:
26984 \begin_layout Standard
26989 usepackage[format definition]{caption}
26992 \begin_layout Standard
26993 To have for example the label and the number in sans-serif, bold font and
26994 the table captions always above the table as in this document, use the
26998 \begin_layout Standard
27003 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27006 \begin_layout Standard
27007 You can also define different caption formats for the different float types.
27008 In this case load the
27012 package without format specific options and define the different formats
27013 with the help of the command
27016 \begin_layout Standard
27021 captionsetup[float type]{format definition}
27024 \begin_layout Standard
27025 in the document preamble.
27026 For example the caption formats of Figure
27027 \begin_inset space ~
27031 \begin_inset CommandInset ref
27033 reference "fig:This-is-an-fig"
27038 \begin_inset space ~
27042 \begin_inset CommandInset ref
27044 reference "tab:This-is-an-tab"
27048 can be created using these commands in the document preamble:
27051 \begin_layout Standard
27056 usepackage[tableposition=top]{caption}
27059 \begin_inset Newline newline
27066 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27067 \begin_inset Newline newline
27071 \begin_inset Phantom HPhantom
27074 \begin_layout Plain Layout
27079 captionsetup[figure]{
27085 \begin_inset Newline newline
27090 captionsetup[table]{labelfont={bf,sf}}
27093 \begin_layout Standard
27094 \begin_inset Note Greyedout
27097 \begin_layout Plain Layout
27106 has no effect when a
27111 \begin_inset Index idx
27114 \begin_layout Plain Layout
27116 -packages ! KOMA-Script
27121 document class is used.
27122 In this case the document class option
27124 captions=tableheading
27134 \begin_layout Standard
27135 For more information about the package
27139 we refer to its documentation
27140 \begin_inset CommandInset citation
27149 \begin_layout Standard
27150 To change the label name from e.
27151 \begin_inset space \thinspace{}
27155 \begin_inset space \space{}
27159 \begin_inset Quotes eld
27163 \begin_inset Quotes erd
27167 \begin_inset Quotes eld
27171 \begin_inset Quotes erd
27174 use this preamble command:
27177 \begin_layout Standard
27184 fnum@figure}{Image~
27189 \begin_layout Standard
27196 inserts the figure number and
27199 \begin_inset Quotes eld
27205 \begin_inset Quotes erd
27208 creates a protected space.
27211 \begin_layout Standard
27212 \begin_inset VSpace bigskip
27220 \begin_inset Index idx
27223 \begin_layout Plain Layout
27225 -packages ! KOMA-Script
27232 article (KOMA-Script)
27240 letter (KOMA-Script)
27244 report (KOMA-Script)
27247 \begin_inset space \thinspace{}
27250 ), you can alternatively to the
27258 's built-in command
27265 For example, to have the caption label in bold, add this command to your
27269 \begin_layout Standard
27274 setkomafont{captionlabel}{
27279 \begin_layout Standard
27280 For more information about
27291 \begin_inset CommandInset citation
27300 \begin_layout Standard
27304 \begin_layout Plain Layout
27308 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27315 \begin_inset Note Note
27318 \begin_layout Plain Layout
27319 The caption format is changed only for this example.
27327 \begin_layout Standard
27328 \begin_inset Float figure
27334 \begin_layout Plain Layout
27336 \begin_inset Graphics
27337 filename clipart/mobius.eps
27340 scaleBeforeRotation
27347 \begin_layout Plain Layout
27348 \begin_inset Caption Standard
27350 \begin_layout Plain Layout
27351 \begin_inset CommandInset label
27353 name "fig:This-is-an-fig"
27357 This is an example figure caption that is longer than one line to show the
27358 different caption format.
27359 Here a self-defined caption format is used.
27372 \begin_layout Standard
27376 \begin_layout Plain Layout
27380 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27389 \begin_layout Standard
27390 \begin_inset Float table
27396 \begin_layout Plain Layout
27397 \begin_inset Caption Standard
27399 \begin_layout Plain Layout
27400 \begin_inset CommandInset label
27402 name "tab:This-is-an-tab"
27406 This is an example table caption that is longer than one line to show the
27407 different caption format.
27408 Here the standard caption format for tables in this document is used.
27416 \begin_layout Plain Layout
27418 \begin_inset Tabular
27419 <lyxtabular version="3" rows="1" columns="5">
27420 <features tabularvalignment="middle">
27421 <column alignment="center" valignment="top">
27422 <column alignment="center" valignment="top">
27423 <column alignment="center" valignment="top">
27424 <column alignment="center" valignment="top">
27425 <column alignment="center" valignment="top">
27427 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27430 \begin_layout Plain Layout
27436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27439 \begin_layout Plain Layout
27445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27448 \begin_layout Plain Layout
27454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27457 \begin_layout Plain Layout
27463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27466 \begin_layout Plain Layout
27485 \begin_layout Section
27487 \begin_inset Index idx
27490 \begin_layout Plain Layout
27491 Caption ! Placement
27497 \begin_inset Index idx
27500 \begin_layout Plain Layout
27501 Floats ! Caption Placement
27507 \begin_inset CommandInset label
27509 name "sec:Caption-Placement"
27516 \begin_layout Standard
27517 The common caption placement rule is:
27520 \begin_layout Description
27521 Figure: Caption is set below the figure
27524 \begin_layout Description
27525 Table: Caption is set above the table
27528 \begin_layout Standard
27529 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27532 That means if you are using the document classes
27548 there will be no space between the caption and the table.
27549 To insert the necessary space, load the \SpecialChar LaTeX
27555 \begin_inset Index idx
27558 \begin_layout Plain Layout
27560 -packages ! caption
27565 in your document preamble with the option
27569 \begin_layout Plain Layout
27571 \begin_inset space ~
27575 \begin_inset CommandInset ref
27577 reference "sec:Caption-Formatting"
27581 for more information of the package
27593 \begin_layout Standard
27599 \begin_layout Standard
27605 \begin_inset Index idx
27608 \begin_layout Plain Layout
27610 -packages ! KOMA-Script
27617 article (KOMA-Script)
27625 letter (KOMA-Script)
27629 report (KOMA-Script)
27632 \begin_inset space \thinspace{}
27635 ), you can alternatively to the
27639 package set the document class option
27643 \begin_layout Plain Layout
27644 That option is used in this document.
27652 \begin_layout Standard
27655 captions=tableheading
27658 \begin_layout Standard
27659 In documents with a KOMA-Script document class you can also right-click
27660 on a caption and mark in the context menu if this should be a caption above
27661 or below the table/figure.
27662 This way you can override the document-wide caption placement for certain
27665 \begin_inset space ~
27669 \begin_inset CommandInset ref
27671 reference "tab:A-caption-marked"
27675 is an example where the caption is marked a being below the table while
27677 For comparison the caption in Table
27678 \begin_inset space ~
27682 \begin_inset CommandInset ref
27684 reference "tab:A-standard-table"
27691 \begin_layout Standard
27692 \begin_inset Float table
27697 \begin_layout Plain Layout
27698 \begin_inset Caption Below
27700 \begin_layout Plain Layout
27701 \begin_inset CommandInset label
27703 name "tab:A-caption-marked"
27707 A caption marked as being below the table.
27715 \begin_layout Plain Layout
27717 \begin_inset Tabular
27718 <lyxtabular version="3" rows="3" columns="3">
27719 <features tabularvalignment="middle">
27720 <column alignment="center" valignment="top" width="0pt">
27721 <column alignment="center" valignment="top" width="0pt">
27722 <column alignment="center" valignment="top" width="0pt">
27724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27727 \begin_layout Plain Layout
27733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27736 \begin_layout Plain Layout
27742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27745 \begin_layout Plain Layout
27753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27756 \begin_layout Plain Layout
27762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27765 \begin_layout Plain Layout
27771 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27774 \begin_layout Plain Layout
27782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27785 \begin_layout Plain Layout
27786 \begin_inset Formula $\int x^{2}dx$
27794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27797 \begin_layout Plain Layout
27798 \begin_inset Formula $\left[\begin{array}{cc}
27801 \end{array}\right]$
27809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27812 \begin_layout Plain Layout
27813 \begin_inset Formula $1+1=2$
27834 \begin_layout Standard
27835 \begin_inset Float table
27840 \begin_layout Plain Layout
27841 \begin_inset Caption Standard
27843 \begin_layout Plain Layout
27844 \begin_inset CommandInset label
27846 name "tab:A-standard-table"
27850 A standard table caption.
27858 \begin_layout Plain Layout
27860 \begin_inset Tabular
27861 <lyxtabular version="3" rows="3" columns="3">
27862 <features tabularvalignment="middle">
27863 <column alignment="center" valignment="top" width="0pt">
27864 <column alignment="center" valignment="top" width="0pt">
27865 <column alignment="center" valignment="top" width="0pt">
27867 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27870 \begin_layout Plain Layout
27876 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27879 \begin_layout Plain Layout
27885 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27888 \begin_layout Plain Layout
27896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27899 \begin_layout Plain Layout
27905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27908 \begin_layout Plain Layout
27914 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27917 \begin_layout Plain Layout
27925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27928 \begin_layout Plain Layout
27929 \begin_inset Formula $\int x^{2}dx$
27937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27940 \begin_layout Plain Layout
27941 \begin_inset Formula $\left[\begin{array}{cc}
27944 \end{array}\right]$
27952 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27955 \begin_layout Plain Layout
27956 \begin_inset Formula $1+1=2$
27977 \begin_layout Standard
27978 \begin_inset VSpace bigskip
27981 It is also possible to set the caption beside a figure or table.
27982 To get this the \SpecialChar LaTeX
27988 \begin_inset Index idx
27991 \begin_layout Plain Layout
27993 -packages ! sidecap
27998 has to be loaded in the document preamble with the line
28001 \begin_layout Standard
28006 usepackage[option]{sidecap}
28009 \begin_layout Standard
28010 If you set no option, the caption is placed on the side of the outer page
28011 margin – to the right on odd pages, to the left on even pages.
28012 You can change the placement to inner margin with the option
28017 To force the placement always to the right or left, use the option
28028 \begin_layout Standard
28032 \begin_layout Plain Layout
28042 \begin_inset Note Note
28045 \begin_layout Plain Layout
28046 The following section will only be displayed when the \SpecialChar LaTeX
28059 \begin_layout Standard
28060 To place in \SpecialChar LyX
28061 the caption of a float on the side, it is necessary to add
28062 these commands to the document preamble:
28065 \begin_layout Standard
28067 \begin_inset CommandInset line
28078 \begin_layout Standard
28085 TabBesBeg}[1][1.0]{%
28086 \begin_inset Newline newline
28090 \begin_inset Phantom HPhantom
28093 \begin_layout Plain Layout
28094 \begin_inset space ~
28109 \begin_inset Newline newline
28113 \begin_inset Phantom HPhantom
28116 \begin_layout Plain Layout
28119 \begin_inset space ~
28134 \begin_inset Newline newline
28138 \begin_inset Phantom HPhantom
28141 \begin_layout Plain Layout
28144 \begin_inset space ~
28154 renewenvironment{table}[1]{
28156 begin{SCtable}[#1]##1}{
28161 \begin_layout Standard
28169 \begin_inset Newline newline
28173 \begin_inset Phantom HPhantom
28176 \begin_layout Plain Layout
28177 \begin_inset space ~
28192 \begin_inset Newline newline
28196 \begin_inset Phantom HPhantom
28199 \begin_layout Plain Layout
28200 \begin_inset space ~
28217 \begin_layout Standard
28224 FigBesBeg}[1][1.0]{%
28225 \begin_inset Newline newline
28229 \begin_inset Phantom HPhantom
28232 \begin_layout Plain Layout
28233 \begin_inset space ~
28248 \begin_inset Newline newline
28252 \begin_inset Phantom HPhantom
28255 \begin_layout Plain Layout
28256 \begin_inset space ~
28271 \begin_inset Newline newline
28275 \begin_inset Phantom HPhantom
28278 \begin_layout Plain Layout
28279 \begin_inset space ~
28289 renewenvironment{figure}[1]{
28291 begin{SCfigure}[#1]##1}{
28296 \begin_layout Standard
28304 \begin_inset Newline newline
28308 \begin_inset Phantom HPhantom
28311 \begin_layout Plain Layout
28312 \begin_inset space ~
28327 \begin_inset Newline newline
28331 \begin_inset Phantom HPhantom
28334 \begin_layout Plain Layout
28335 \begin_inset space ~
28352 \begin_layout Standard
28354 \begin_inset CommandInset line
28365 \begin_layout Standard
28366 The commands allow you to redefine the floats so that the caption is set
28368 For figure floats use the command
28371 \begin_layout Standard
28379 \begin_layout Standard
28380 in \SpecialChar TeX
28381 Code before the float.
28382 And insert the command
28385 \begin_layout Standard
28393 \begin_layout Standard
28394 in \SpecialChar TeX
28395 Code at the point where you want to get back to the original float definitio
28399 \begin_layout Standard
28400 For table floats use the corresponding commands
28403 \begin_layout Standard
28417 \begin_layout Standard
28419 \begin_inset space ~
28423 \begin_inset CommandInset ref
28425 reference "fig:cap-beside-fig"
28430 \begin_inset space ~
28434 \begin_inset CommandInset ref
28436 reference "tab:cap-beside-tab"
28440 are examples where the caption is set beside.
28443 \begin_layout Standard
28444 You can see in the examples that the caption text appears at the top of
28445 the floats for table floats and at the bottom for figure floats.
28446 To change this, you can use the command
28449 \begin_layout Standard
28454 sidecaptionvpos{float type}{placement}
28457 \begin_layout Standard
28458 in the document preamble or in \SpecialChar TeX
28459 Code before the float.
28460 The float type is either
28468 , the placement can be
28469 \begin_inset Quotes eld
28477 \begin_inset Quotes erd
28481 \begin_inset Quotes eld
28489 \begin_inset Quotes erd
28493 \begin_inset Quotes eld
28501 \begin_inset Quotes erd
28505 To have for example the caption of figure floats vertically centered, use
28509 \begin_layout Standard
28514 sidecaptionvpos{figure}{c}
28517 \begin_layout Standard
28518 This was used for Figure
28519 \begin_inset space ~
28523 \begin_inset CommandInset ref
28525 reference "fig:cap-beside-fig-2"
28532 \begin_layout Standard
28533 \begin_inset VSpace medskip
28539 \begin_layout Standard
28540 The default caption width is the width of the image/table.
28541 For thin image/tables, like in Table
28542 \begin_inset space ~
28546 \begin_inset CommandInset ref
28548 reference "tab:cap-beside-tab"
28552 , this leads to captions that are too thin.
28553 You can increase the width by specifying a factor that will be multiplied
28554 with the image/table width to get the caption width.
28555 The caption width will automatically be recalculated in case it would protrude
28556 over the page or column margin due to the specified width.
28561 can either be given as optional argument for
28570 \begin_layout Standard
28578 \begin_layout Standard
28579 or in the definition of
28589 with another value.
28590 If you do the latter, your factor will be the default if
28596 is used without an argument.
28598 \begin_inset space ~
28602 \begin_inset CommandInset ref
28604 reference "tab:cap-beside-tab-wider"
28608 the factor 5 was used.
28611 \begin_layout Standard
28612 \begin_inset Note Greyedout
28615 \begin_layout Plain Layout
28620 For floats with captions set beside, you cannot use the float placement
28624 \begin_inset space ~
28629 because it is not supported by
28641 \begin_layout Standard
28642 \begin_inset VSpace medskip
28645 For more information about the package
28649 we refer to its documentation
28650 \begin_inset CommandInset citation
28659 \begin_layout Standard
28660 \begin_inset Note Greyedout
28663 \begin_layout Plain Layout
28668 The \SpecialChar LaTeX
28674 \begin_inset Index idx
28677 \begin_layout Plain Layout
28684 , described in section
28685 \begin_inset space ~
28689 \begin_inset CommandInset ref
28691 reference "subsec:Reference-Position"
28695 , has no effect on floats with the caption set beside.
28703 \begin_layout Standard
28707 \begin_layout Plain Layout
28719 \begin_layout Standard
28720 \begin_inset Float figure
28725 \begin_layout Plain Layout
28726 \begin_inset Graphics
28727 filename clipart/escher-lsd.eps
28729 scaleBeforeRotation
28736 \begin_layout Plain Layout
28737 \begin_inset Caption Standard
28739 \begin_layout Plain Layout
28740 \begin_inset CommandInset label
28742 name "fig:cap-beside-fig"
28746 This is a caption beside a figure.
28759 \begin_layout Standard
28763 \begin_layout Plain Layout
28775 \begin_layout Standard
28779 \begin_layout Plain Layout
28791 \begin_layout Standard
28792 \begin_inset Float table
28797 \begin_layout Plain Layout
28798 \begin_inset Caption Standard
28800 \begin_layout Plain Layout
28801 \begin_inset CommandInset label
28803 name "tab:cap-beside-tab"
28807 This is a caption beside a table.
28815 \begin_layout Plain Layout
28816 \begin_inset Tabular
28817 <lyxtabular version="3" rows="4" columns="5">
28818 <features tabularvalignment="middle">
28819 <column alignment="center" valignment="top">
28820 <column alignment="center" valignment="top">
28821 <column alignment="center" valignment="top">
28822 <column alignment="center" valignment="top">
28823 <column alignment="center" valignment="top">
28825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28828 \begin_layout Plain Layout
28834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28837 \begin_layout Plain Layout
28843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28846 \begin_layout Plain Layout
28852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28855 \begin_layout Plain Layout
28861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28864 \begin_layout Plain Layout
28872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28875 \begin_layout Plain Layout
28881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28884 \begin_layout Plain Layout
28890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28893 \begin_layout Plain Layout
28899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28902 \begin_layout Plain Layout
28908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28911 \begin_layout Plain Layout
28919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28922 \begin_layout Plain Layout
28928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28931 \begin_layout Plain Layout
28937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28940 \begin_layout Plain Layout
28946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28949 \begin_layout Plain Layout
28955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28958 \begin_layout Plain Layout
28966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28969 \begin_layout Plain Layout
28975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28978 \begin_layout Plain Layout
28984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28987 \begin_layout Plain Layout
28993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28996 \begin_layout Plain Layout
29002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29005 \begin_layout Plain Layout
29024 \begin_layout Standard
29028 \begin_layout Plain Layout
29040 \begin_layout Standard
29044 \begin_layout Plain Layout
29057 \begin_layout Plain Layout
29061 sidecaptionvpos{figure}{c}
29067 \begin_inset Float figure
29072 \begin_layout Plain Layout
29073 \begin_inset Graphics
29074 filename clipart/escher-lsd.eps
29076 scaleBeforeRotation
29083 \begin_layout Plain Layout
29084 \begin_inset Caption Standard
29086 \begin_layout Plain Layout
29087 \begin_inset CommandInset label
29089 name "fig:cap-beside-fig-2"
29093 This is a vertically centered caption beside a figure.
29106 \begin_layout Standard
29110 \begin_layout Plain Layout
29122 \begin_layout Standard
29126 \begin_layout Plain Layout
29138 \begin_layout Standard
29139 \begin_inset Float table
29144 \begin_layout Plain Layout
29145 \begin_inset Caption Standard
29147 \begin_layout Plain Layout
29148 \begin_inset CommandInset label
29150 name "tab:cap-beside-tab-wider"
29154 This caption is wider than the one in Table
29155 \begin_inset space ~
29159 \begin_inset CommandInset ref
29161 reference "tab:cap-beside-tab"
29173 \begin_layout Plain Layout
29174 \begin_inset Tabular
29175 <lyxtabular version="3" rows="4" columns="5">
29176 <features tabularvalignment="middle">
29177 <column alignment="center" valignment="top">
29178 <column alignment="center" valignment="top">
29179 <column alignment="center" valignment="top">
29180 <column alignment="center" valignment="top">
29181 <column alignment="center" valignment="top">
29183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29186 \begin_layout Plain Layout
29192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29195 \begin_layout Plain Layout
29201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29204 \begin_layout Plain Layout
29210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29213 \begin_layout Plain Layout
29219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29222 \begin_layout Plain Layout
29230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29233 \begin_layout Plain Layout
29239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29242 \begin_layout Plain Layout
29248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29251 \begin_layout Plain Layout
29257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29260 \begin_layout Plain Layout
29266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29269 \begin_layout Plain Layout
29277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29280 \begin_layout Plain Layout
29286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29289 \begin_layout Plain Layout
29295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29298 \begin_layout Plain Layout
29304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29307 \begin_layout Plain Layout
29313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29316 \begin_layout Plain Layout
29324 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29327 \begin_layout Plain Layout
29333 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29336 \begin_layout Plain Layout
29342 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29345 \begin_layout Plain Layout
29351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29354 \begin_layout Plain Layout
29360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29363 \begin_layout Plain Layout
29382 \begin_layout Standard
29386 \begin_layout Plain Layout
29398 \begin_layout Standard
29402 \begin_layout Plain Layout
29412 \begin_inset Note Note
29415 \begin_layout Plain Layout
29416 The following will be displayed when the \SpecialChar LaTeX
29429 \begin_layout Standard
29430 You need to install the \SpecialChar LaTeX
29435 to see the following part of this section in the output.
29438 \begin_layout Standard
29442 \begin_layout Plain Layout
29454 \begin_layout Section
29456 \begin_inset Index idx
29459 \begin_layout Plain Layout
29460 Floats ! Float Lists
29468 \begin_layout Standard
29469 Similar to the table of contents where the sections of the document are
29470 listed, there are listings for all float types, like the figures of the
29472 You can insert them via the
29474 Insert\SpecialChar menuseparator
29476 \begin_inset space ~
29480 \begin_inset space ~
29488 \begin_layout Standard
29489 The list entries are the float captions or its short title, the float number,
29490 and the page number where they appear in the document.
29493 \begin_layout Standard
29494 You can find the list of figures and tables at the end of this document.
29497 \begin_layout Chapter
29501 \begin_layout Section
29504 \begin_inset Index idx
29507 \begin_layout Plain Layout
29508 Notes ! \SpecialChar LyX
29517 \begin_layout Standard
29518 Notes are inserted with the toolbar button
29526 Insert\SpecialChar menuseparator
29530 There are three types of notes:
29533 \begin_layout Description
29536 \begin_inset space ~
29539 Note This note type is for internal notes that won't appear in the output.
29540 Its note-box looks like this:
29541 \begin_inset Newline newline
29545 \begin_inset Newline newline
29549 \begin_inset Graphics
29550 filename clipart/LyXNoteImage.png
29552 scaleBeforeRotation
29557 \begin_inset Note Note
29560 \begin_layout Plain Layout
29561 This is text in a note box that doesn't appear in the output.
29569 \begin_layout Description
29570 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29572 when you export the document to \SpecialChar LaTeX
29575 File\SpecialChar menuseparator
29576 Export\SpecialChar menuseparator
29578 \begin_inset space ~
29581 (pdflatex) / (plain)
29584 Its note-box looks like this:
29585 \begin_inset Newline newline
29589 \begin_inset Newline newline
29593 \begin_inset Graphics
29594 filename clipart/CommentNoteImage.png
29596 scaleBeforeRotation
29601 \begin_inset Note Comment
29604 \begin_layout Plain Layout
29605 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29614 \begin_layout Description
29616 \begin_inset space ~
29619 Out This note will appear in the output as grey text.
29620 Its note-box looks like this:
29621 \begin_inset Newline newline
29625 \begin_inset Newline newline
29629 \begin_inset Graphics
29630 filename clipart/GreyedOutNoteImage.png
29632 scaleBeforeRotation
29637 \begin_inset Newline newline
29644 \begin_layout Plain Layout
29648 renewenvironment{lyxgreyedout}
29651 \begin_layout Plain Layout
29655 textcolor[gray]{0.8}
29665 \begin_inset Note Greyedout
29668 \begin_layout Plain Layout
29669 This is text of a comment that appears grey in the output.
29678 \begin_layout Plain Layout
29682 renewenvironment{lyxgreyedout}
29685 \begin_layout Plain Layout
29699 \begin_inset Note Note
29702 \begin_layout Plain Layout
29703 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29705 because greyed out notes are redefined in the preamble of this document,
29706 as described below, to have blue text.
29712 \begin_inset Newline newline
29716 \begin_inset Newline newline
29719 As you can see in the example, the first line of greyed out notes is a bit
29720 indented and greyed out notes can have footnotes.
29723 \begin_layout Standard
29724 \begin_inset VSpace bigskip
29727 When you use the toolbar button
29737 \begin_inset space ~
29743 You can switch between the three note types by right-clicking on the note-box.
29748 If you want to turn existing text into a note, mark it and click on the
29762 To change a note to text, press the backspace key when the cursor is in
29763 the first position of a note, or press the delete key when the cursor is
29764 in the very last position of the note, respectively.
29767 \begin_layout Standard
29768 \begin_inset VSpace bigskip
29771 You can change the text color of the greyed out notes in the menu
29773 Document\SpecialChar menuseparator
29774 Settings\SpecialChar menuseparator
29780 \begin_layout Section
29782 \begin_inset CommandInset label
29784 name "sec:Footnotes"
29789 \begin_inset Index idx
29792 \begin_layout Plain Layout
29799 \begin_inset Index idx
29802 \begin_layout Plain Layout
29811 \begin_layout Standard
29812 Footnotes can be inserted using the toolbar button
29815 arg "footnote-insert"
29820 Insert\SpecialChar menuseparator
29824 You will then see the following footnote-box:
29825 \begin_inset Graphics
29826 filename clipart/footnote.png
29828 scaleBeforeRotation
29836 where you can enter the footnote text.
29837 If you want to turn existing text into a footnote, mark it and click on
29863 key when the cursor is in the first position of a
29875 key when the cursor is in the very last position of the
29886 \begin_layout Standard
29887 Here is an example footnote:
29895 \begin_layout Plain Layout
29896 \begin_inset CommandInset label
29898 name "foot:This-is-an"
29902 This is an example footnote.
29915 \begin_layout Plain Layout
29919 newcounter{MyRepeatFoot}
29922 \begin_layout Plain Layout
29926 setcounter{MyRepeatFoot}{
29936 \begin_layout Standard
29937 The footnote will appear in the output as a superscript number at the text
29938 position where the footnote box is placed.
29939 The footnote text is placed at the bottom of the current page.
29940 The footnote number is calculated by \SpecialChar LaTeX
29941 ; the numbers are consecutive.
29942 Whether the footnote number is reset for every chapter depends on your
29946 \begin_layout Standard
29947 Footnotes can be referenced like floats: Insert a label into the footnote
29948 and cross-reference this label in the text as described in section
29949 \begin_inset space ~
29953 \begin_inset CommandInset ref
29955 reference "sec:Referencing-Floats"
29960 \begin_inset Newline newline
29963 This is a cross-reference of Footnote
29964 \begin_inset space ~
29968 \begin_inset CommandInset ref
29970 reference "foot:This-is-an"
29977 \begin_layout Standard
29978 \begin_inset VSpace defskip
29981 Footnotes in title environments are usually not numbered with symbols and
29982 they cannot contain several paragraphs.
29983 See for example the footnote in the titling of this document.
29986 \begin_layout Standard
29987 \begin_inset VSpace defskip
29990 Footnotes in tables are not printed by \SpecialChar LaTeX
29991 due to technical reasons.
29992 However there exists another method to print them: Instead of the footnote
29999 is inserted as \SpecialChar TeX
30001 The text of the footnote is entered as an argument of the \SpecialChar TeX
30010 \begin_inset Newline newline
30013 This was done for the following table with the command
30016 \begin_layout Standard
30023 Printed table footnote.
30028 \begin_layout Standard
30029 \begin_inset Tabular
30030 <lyxtabular version="3" rows="2" columns="1">
30031 <features tabularvalignment="middle">
30032 <column alignment="center" valignment="top">
30034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30037 \begin_layout Plain Layout
30038 This an example text.
30042 \begin_layout Plain Layout
30043 This footnote will not be printed!
30055 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30058 \begin_layout Plain Layout
30059 This an example text.
30063 \begin_layout Plain Layout
30086 \begin_layout Plain Layout
30095 Printed table footnote.
30099 \begin_layout Plain Layout
30109 \begin_layout Standard
30110 Footnotes in multi-page tables are described in section
30111 \begin_inset space ~
30115 \begin_inset CommandInset ref
30117 reference "subsec:Footnotes-in-Multi-page"
30124 \begin_layout Standard
30125 Footnotes in minipage boxes are printed, but inside the box and with a different
30126 numbering because a minipage box is like a page inside a page.
30127 (For more about minipages, see section
30128 \begin_inset space ~
30132 \begin_inset CommandInset ref
30134 reference "sec:Minipages"
30138 .) To get a footnote in the minipage that is output at the bottom of the
30139 page like normal footnotes, also use the method of
30154 \begin_layout Standard
30155 \begin_inset Box Frameless
30165 height_special "totalheight"
30170 backgroundcolor "none"
30173 \begin_layout Plain Layout
30174 This an example text in a minipage.
30178 \begin_layout Plain Layout
30179 Footnote in the minipage.
30187 \begin_layout Plain Layout
30188 This an example text in a minipage.
30192 \begin_layout Plain Layout
30209 \begin_layout Standard
30213 \begin_layout Plain Layout
30222 Footnote outside the minipage.
30226 \begin_layout Plain Layout
30236 \begin_layout Standard
30237 \begin_inset VSpace defskip
30243 \begin_layout Standard
30244 To refer to the same footnote several times without printing the footnote
30245 text every time, use the command
30249 footnotemark[number]
30251 in \SpecialChar TeX
30253 \begin_inset Newline newline
30256 As you do not know the number of the repeating footnote while you are writing
30257 the text, you have to store its number.
30258 For the following footnote mark example, these commands were inserted in
30260 code after Footnote
30261 \begin_inset space ~
30265 \begin_inset CommandInset ref
30267 reference "foot:This-is-an"
30271 to store the footnote number:
30274 \begin_layout Standard
30279 newcounter{MyRepeatFoot}
30280 \begin_inset Newline newline
30285 setcounter{MyRepeatFoot}{
30290 \begin_layout Standard
30291 The footnote mark was then created with this command:
30294 \begin_layout Standard
30304 \begin_layout Standard
30305 Here is a repeated footnote:
30313 \begin_layout Plain Layout
30327 \begin_layout Standard
30328 If you want to repeat the previous footnote, you can omit the storage of
30329 the footnote number and just use this command instead:
30332 \begin_layout Standard
30342 \begin_layout Standard
30343 Here is another repeated footnote:
30351 \begin_layout Plain Layout
30365 \begin_layout Subsection
30367 \begin_inset CommandInset label
30369 name "subsec:Footnote-Numbering"
30374 \begin_inset Index idx
30377 \begin_layout Plain Layout
30378 Footnotes ! Numbering
30386 \begin_layout Standard
30387 To reset the footnote number back to 1 after each section
30389 , add this command to your document preamble:
30392 \begin_layout Standard
30397 @addtoreset{footnote}{section}
30400 \begin_layout Standard
30401 \begin_inset VSpace bigskip
30404 The following preamble command changes the footnote numbering style to small
30408 \begin_layout Standard
30420 \begin_layout Standard
30424 \begin_layout Plain Layout
30437 This is a footnote with roman numbering:
30441 \begin_layout Plain Layout
30442 This is an example footnote with roman numbering.
30450 \begin_layout Standard
30451 To change the numbering style to capital roman numerals replace in the command
30466 \begin_inset Quotes eld
30470 \begin_inset Quotes erd
30473 footnotes with capital or small Latin letters use
30487 \begin_inset Quotes eld
30491 \begin_inset Quotes erd
30494 footnotes with symbols use
30503 \begin_layout Standard
30504 \begin_inset Note Greyedout
30507 \begin_layout Plain Layout
30512 You can only number 26 footnotes with Latin letters, because this numbering
30513 is limited to single letters.
30519 \begin_inset Newline newline
30523 \begin_inset Note Greyedout
30526 \begin_layout Plain Layout
30531 You can only number 9 footnotes with symbols.
30539 \begin_layout Standard
30540 To return to the default numbering style after you have changed to another
30553 in the command above.
30557 \begin_layout Plain Layout
30573 \begin_layout Standard
30574 \begin_inset VSpace bigskip
30580 \begin_layout Standard
30581 If you want to have footnotes numbered in the scheme
30582 \begin_inset Quotes eld
30586 \begin_inset Quotes erd
30589 , add the following command to your document preamble:
30592 \begin_layout Standard
30597 numberwithin{footnote}{chapter}
30600 \begin_layout Standard
30601 To be able to use the command
30610 \begin_inset space ~
30615 in the document settings the option
30618 \begin_inset space ~
30622 \begin_inset space ~
30626 \begin_inset space ~
30634 \begin_layout Standard
30638 \begin_layout Plain Layout
30642 numberwithin{footnote}{chapter}
30647 This is another example footnote:
30653 \begin_layout Plain Layout
30654 This is a footnote numbered in the scheme
30655 \begin_inset Quotes eld
30659 \begin_inset Quotes erd
30673 \begin_layout Plain Layout
30689 \begin_layout Standard
30690 \begin_inset Note Greyedout
30693 \begin_layout Plain Layout
30704 always prints out the footnote number as arabic number; previous redefinitions
30705 to get non-arabic numbers are overwritten.
30713 \begin_layout Standard
30714 So to get for example the scheme
30715 \begin_inset Quotes eld
30721 \begin_inset Quotes erd
30724 , use this command instead of
30733 \begin_layout Standard
30747 \begin_layout Subsection
30749 \begin_inset Index idx
30752 \begin_layout Plain Layout
30753 Footnotes ! Placement
30761 \begin_layout Standard
30762 If you have several footnotes in one page, they appear without vertical
30763 space between them at the bottom of the page.
30764 To make them more readable you can e.
30765 \begin_inset space \thinspace{}
30769 \begin_inset space \space{}
30773 \begin_inset space \thinspace{}
30776 mm space with the following preamble command:
30779 \begin_layout Standard
30789 \begin_inset Newline newline
30803 \begin_layout Standard
30804 \begin_inset VSpace bigskip
30807 In a two-column document the footnotes appear at the bottom of every column,
30809 \begin_inset space ~
30813 \begin_inset CommandInset ref
30815 reference "fig:Standard-footnote-placement"
30820 If the footnotes should only appear at the bottom of the right column,
30822 \begin_inset space ~
30826 \begin_inset CommandInset ref
30828 reference "fig:Footnote-placement-in"
30832 , use the \SpecialChar LaTeX
30838 \begin_inset Index idx
30841 \begin_layout Plain Layout
30843 -packages ! ftnright
30848 with this command in the document preamble:
30851 \begin_layout Standard
30856 usepackage{ftnright}
30859 \begin_layout Standard
30860 \begin_inset Float figure
30866 \begin_layout Plain Layout
30869 \begin_inset Box Boxed
30879 height_special "totalheight"
30884 backgroundcolor "none"
30887 \begin_layout Plain Layout
30888 \begin_inset Graphics
30889 filename clipart/without_fntright.pdf
30891 scaleBeforeRotation
30903 \begin_layout Plain Layout
30904 \begin_inset Caption Standard
30906 \begin_layout Plain Layout
30907 \begin_inset CommandInset label
30909 name "fig:Standard-footnote-placement"
30913 Standard footnote placement in two-column documents.
30926 \begin_layout Standard
30927 \begin_inset Float figure
30933 \begin_layout Plain Layout
30936 \begin_inset Box Boxed
30946 height_special "totalheight"
30951 backgroundcolor "none"
30954 \begin_layout Plain Layout
30955 \begin_inset Graphics
30956 filename clipart/with_fntright.pdf
30958 scaleBeforeRotation
30970 \begin_layout Plain Layout
30971 \begin_inset Caption Standard
30973 \begin_layout Plain Layout
30974 \begin_inset CommandInset label
30976 name "fig:Footnote-placement-in"
30980 Footnote placement in two-column documents when the \SpecialChar LaTeX
30998 \begin_layout Standard
30999 \begin_inset VSpace bigskip
31002 In some scientific literature it is usual to collect the footnotes and print
31003 them in a separate paragraph at the end of a section, as in Figure
31004 \begin_inset space ~
31008 \begin_inset CommandInset ref
31010 reference "fig:Endnotes"
31015 They are then called
31016 \begin_inset Quotes eld
31020 \begin_inset Quotes erd
31024 \begin_inset Index idx
31027 \begin_layout Plain Layout
31033 To use endnotes instead of footnotes in your document, load in the menu
31036 Document\SpecialChar menuseparator
31037 Settings\SpecialChar menuseparator
31043 \begin_inset space ~
31047 \begin_inset space ~
31053 To insert the collected footnotes, insert the command
31056 \begin_layout Standard
31064 \begin_layout Standard
31065 in \SpecialChar TeX
31066 Code at the end of a section or chapter.
31069 \begin_layout Standard
31070 \begin_inset Float figure
31075 \begin_layout Plain Layout
31078 \begin_inset Box Boxed
31088 height_special "totalheight"
31093 backgroundcolor "none"
31096 \begin_layout Plain Layout
31097 \begin_inset Graphics
31098 filename clipart/endnotes.pdf
31100 scaleBeforeRotation
31112 \begin_layout Plain Layout
31113 \begin_inset Caption Standard
31115 \begin_layout Plain Layout
31116 \begin_inset CommandInset label
31118 name "fig:Endnotes"
31122 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31136 \begin_layout Standard
31137 \begin_inset VSpace medskip
31140 The paragraph heading for the endnotes isn't automatically translated into
31141 the document language, this must be done manually.
31142 The following preamble command translates the default English
31143 \begin_inset Quotes eld
31147 \begin_inset Quotes erd
31151 \begin_inset Quotes eld
31155 \begin_inset Quotes erd
31161 \begin_layout Standard
31168 notesname}{Anmerkungen}
31171 \begin_layout Standard
31172 \begin_inset VSpace medskip
31175 The numbering of endnotes can be changed like the footnote numbering as
31176 described in section
31177 \begin_inset space ~
31181 \begin_inset CommandInset ref
31183 reference "subsec:Footnote-Numbering"
31187 ; just replace the command
31200 To reset the endnote number use the command
31206 as described in section
31207 \begin_inset space ~
31211 \begin_inset CommandInset ref
31213 reference "subsec:Footnote-Numbering"
31217 and replace the command parameter
31228 \begin_layout Standard
31229 For endnotes there is the command
31233 endnotemark[number]
31235 similar to the command
31241 , that is described in section
31242 \begin_inset space ~
31246 \begin_inset CommandInset ref
31248 reference "sec:Footnotes"
31255 \begin_layout Standard
31256 \begin_inset VSpace bigskip
31259 Footnotes can also be placed in the page margin and the footnote text alignment
31260 can be changed, see the \SpecialChar LaTeX
31266 \begin_inset Index idx
31269 \begin_layout Plain Layout
31271 -packages ! footmisc
31277 \begin_inset CommandInset citation
31283 for more information about this.
31286 \begin_layout Standard
31287 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31289 \begin_inset CommandInset citation
31291 key "latexcompanion,latexguide,latexbook"
31301 \begin_inset Index idx
31304 \begin_layout Plain Layout
31306 -packages ! KOMA-Script
31311 document class, you can adjust all footnote settings using class-specific
31313 \begin_inset CommandInset citation
31322 \begin_layout Section
31324 \begin_inset Index idx
31327 \begin_layout Plain Layout
31328 Notes ! Margin Notes
31336 \begin_layout Standard
31337 Margin notes look and behave in \SpecialChar LyX
31339 They are inserted via the menu
31341 Insert\SpecialChar menuseparator
31343 \begin_inset space ~
31348 or the toolbar button
31351 arg "marginalnote-insert"
31365 \begin_inset Quotes eld
31369 \begin_inset Quotes erd
31372 appears where you can enter the text of the margin note.
31375 \begin_layout Standard
31376 At the side is an example margin note.
31381 \begin_inset Marginal
31384 \begin_layout Plain Layout
31385 This is a margin note.
31393 \begin_layout Standard
31394 Margin notes appear at the right side in single-sided documents.
31395 In double-sided documents they appear in the outer margin – left on even
31396 pages, right on odd pages.
31397 The text of margin notes is aligned opposite to the outer margin – right-aligne
31398 d when the note appears in the left margin.
31399 The first line of the margin note is placed at the position of the text
31400 line where it is inserted in the document.
31403 \begin_layout Standard
31404 \begin_inset VSpace bigskip
31407 To place the margin note in the inner margin, add the command
31410 \begin_layout Standard
31418 \begin_layout Standard
31419 in \SpecialChar TeX
31420 Code before a margin note.
31421 The new placement is valid for all subsequent margin notes.
31426 \begin_layout Plain Layout
31436 \begin_inset Marginal
31439 \begin_layout Plain Layout
31440 This is a margin note in the inner margin.
31448 \begin_inset Newline newline
31454 \begin_inset Note Greyedout
31457 \begin_layout Plain Layout
31462 There is often not enough space in the inner margin so that the notes are
31463 not correctly displayed in the output.
31471 \begin_layout Standard
31472 To return to the default placement insert the command
31475 \begin_layout Standard
31483 \begin_layout Standard
31484 in \SpecialChar TeX
31489 \begin_layout Plain Layout
31499 \begin_inset Note Greyedout
31502 \begin_layout Plain Layout
31507 The command is ignored when it is within a paragraph where also the command
31522 \begin_layout Standard
31523 \begin_inset VSpace bigskip
31530 \begin_inset Marginal
31533 \begin_layout Plain Layout
31534 AVeryLongMarginParWord that isn't hyphenated.
31542 Similar to the case described in section
31543 \begin_inset space ~
31547 \begin_inset CommandInset ref
31549 reference "subsec:Multiple-Lines-in"
31553 , long words cannot be hyphenated when they are the first word in a margin
31555 To avoid this, insert 0
31556 \begin_inset space \thinspace{}
31559 pt horizontal space before the word
31564 \begin_inset Marginal
31567 \begin_layout Plain Layout
31568 \begin_inset space \hspace*{}
31572 AVeryLongMarginParWord that is hyphenated.
31580 \begin_layout Standard
31581 \begin_inset VSpace bigskip
31587 \begin_layout Standard
31588 \begin_inset Note Greyedout
31591 \begin_layout Plain Layout
31596 Margin notes can normally not be used inside tables, floats, and footnotes.
31604 \begin_layout Standard
31605 \begin_inset VSpace bigskip
31611 \begin_layout Standard
31615 \begin_layout Plain Layout
31625 \begin_inset Note Note
31628 \begin_layout Plain Layout
31629 The following section will only be displayed when the \SpecialChar LaTeX
31642 \begin_layout Standard
31643 This restriction can be evaded by using the \SpecialChar LaTeX
31649 \begin_inset Index idx
31652 \begin_layout Plain Layout
31654 -packages ! marginnote
31660 By adding these two lines to your document preamble, the command used by
31662 for margin notes is redefined to use the command provided by the
31669 \begin_layout Standard
31674 usepackage{marginnote}
31675 \begin_inset Newline newline
31687 \begin_layout Standard
31688 This is also used in this document because
31692 has another useful feature: You can set a vertical offset for the note.
31693 This is often needed when too many margin notes are too close together
31694 or for a better page layout.
31695 The offset is set in \SpecialChar LyX
31696 as \SpecialChar TeX
31697 Code directly after the margin note in the scheme
31700 \begin_layout Standard
31706 \begin_layout Standard
31707 where the offset is a length with one of the units listed in Table
31708 \begin_inset space ~
31712 \begin_inset CommandInset ref
31714 reference "tab:Units"
31719 A negative value shifts the note up, a positive value shifts it down.
31723 For example the margin note beside this text line is shifted up 1.5
31724 \begin_inset space \thinspace{}
31727 cm with the \SpecialChar TeX
31729 \begin_inset Quotes eld
31739 \begin_inset Quotes erd
31743 \begin_inset Marginal
31746 \begin_layout Plain Layout
31747 This margin note is shifted up 1.5
31748 \begin_inset space \thinspace{}
31751 cm from its original position.
31763 \begin_layout Plain Layout
31773 \begin_layout Standard
31774 \begin_inset VSpace medskip
31781 you can also change the alignment of the text in the margin note.
31782 For example the commands
31785 \begin_layout Standard
31792 raggedleftmarginnote}{
31795 \begin_inset Newline newline
31802 raggedrightmarginnote}{
31807 \begin_layout Standard
31808 set the alignment to centered.
31813 raggedleftmarginnote
31815 denotes margin notes that appear at the left side.
31822 \begin_layout Plain Layout
31828 raggedleftmarginnote}{
31833 \begin_layout Plain Layout
31839 raggedrightmarginnote}{
31847 \begin_inset Marginal
31850 \begin_layout Plain Layout
31851 The text of this margin note is centered.
31862 \begin_layout Standard
31869 raggedleftmarginnote}{
31872 \begin_inset Newline newline
31879 raggedrightmarginnote}{
31888 \begin_layout Plain Layout
31894 raggedleftmarginnote}{
31899 \begin_layout Plain Layout
31905 raggedrightmarginnote}{
31915 \begin_layout Standard
31916 \begin_inset VSpace medskip
31919 For the other features of
31923 refer to its documentation
31924 \begin_inset CommandInset citation
31933 \begin_layout Standard
31934 \begin_inset VSpace bigskip
31937 You can adjust the layout of margin notes by changing its definition.
31938 To create for example a header for all margin notes with the underlined,
31939 sans-serif, and bold header text
31940 \begin_inset Quotes eld
31952 \begin_inset Quotes erd
31955 , add this to your document preamble:
31958 \begin_layout Standard
31968 \begin_inset Newline newline
31978 \begin_inset Newline newline
31982 \begin_inset Phantom HPhantom
31985 \begin_layout Plain Layout
31988 \begin_inset space ~
32004 underbar{Attention!}}}%
32005 \begin_inset Newline newline
32009 \begin_inset Phantom HPhantom
32012 \begin_layout Plain Layout
32015 \begin_inset space ~
32032 \begin_layout Standard
32039 \begin_layout Plain Layout
32050 \begin_layout Plain Layout
32061 \begin_layout Plain Layout
32069 underbar{Attention!}}}%
32072 \begin_layout Plain Layout
32086 \begin_inset Marginal
32089 \begin_layout Plain Layout
32090 This is a margin note with a defined heading.
32102 \begin_layout Plain Layout
32116 \begin_layout Plain Layout
32133 \begin_inset Note Note
32136 \begin_layout Plain Layout
32137 The margin note format is changed only for this example.
32145 \begin_layout Standard
32149 \begin_layout Plain Layout
32159 \begin_inset Note Note
32162 \begin_layout Plain Layout
32163 The following will be displayed when the \SpecialChar LaTeX
32176 \begin_layout Standard
32177 You need to install the \SpecialChar LaTeX
32182 to see the following part of this section in the output.
32185 \begin_layout Standard
32189 \begin_layout Plain Layout
32201 \begin_layout Chapter
32205 \begin_layout Section
32207 \begin_inset Index idx
32210 \begin_layout Plain Layout
32211 Boxes ! Introduction
32219 \begin_layout Standard
32220 Boxes are used to format a block of text.
32221 Boxes can be used to write documents with multiple languages, see section
32222 \begin_inset space ~
32226 \begin_inset CommandInset ref
32228 reference "sec:Minipages"
32232 , to frame texts, see section
32233 \begin_inset space ~
32237 \begin_inset CommandInset ref
32239 reference "sec:Decoration"
32243 , to prevent words from being hyphenated, see section
32244 \begin_inset space ~
32248 \begin_inset CommandInset ref
32250 reference "sec:Prevent-Hyphenation"
32254 , to align text, see section
32255 \begin_inset space ~
32259 \begin_inset CommandInset ref
32261 reference "subsec:Vertical-Alignment"
32265 , or to set the background color of texts, see section
32266 \begin_inset space ~
32270 \begin_inset CommandInset ref
32272 reference "sec:Colored-Boxes"
32279 \begin_layout Standard
32280 Boxes can be inserted with the menu
32282 Insert\SpecialChar menuseparator
32285 or the toolbar button
32288 arg "box-insert Frameless"
32292 A grey box with the label
32297 \begin_inset Graphics
32298 filename clipart/BoxInsetDefault.png
32300 scaleBeforeRotation
32305 The box type can be specified by right-clicking on the box and selecting
32311 The box dialog offers the
32314 \begin_inset space ~
32336 is the default for new boxes and is explained in section
32337 \begin_inset space ~
32341 \begin_inset CommandInset ref
32343 reference "sec:Minipages"
32351 is described in section
32352 \begin_inset space ~
32356 \begin_inset CommandInset ref
32358 reference "sec:Parboxes"
32367 \begin_inset CommandInset ref
32369 reference "sec:Prevent-Hyphenation"
32376 \begin_layout Standard
32377 Boxes are not numbered and can therefore not be referenced like floats or
32381 \begin_layout Standard
32382 \begin_inset Note Greyedout
32385 \begin_layout Plain Layout
32390 Boxes must not be the item in an
32406 \begin_layout Standard
32407 \begin_inset Note Greyedout
32410 \begin_layout Plain Layout
32415 For an unknown reason you can only set the
32418 \begin_inset space ~
32427 when you use a framed box.
32431 \begin_inset space ~
32436 type and without frames are explained in section
32437 \begin_inset space ~
32441 \begin_inset CommandInset ref
32443 reference "sec:Prevent-Hyphenation"
32455 \begin_layout Section
32457 \begin_inset CommandInset label
32459 name "sec:Box-Dialog"
32464 \begin_inset Index idx
32467 \begin_layout Plain Layout
32476 \begin_layout Subsection
32478 \begin_inset Index idx
32481 \begin_layout Plain Layout
32490 \begin_layout Standard
32491 In the box dialog you can adjust the box geometry in the fields
32500 The available units for the geometry are explained in Table
32501 \begin_inset space ~
32505 \begin_inset CommandInset ref
32507 reference "tab:Units"
32516 offers the following additional sizes:
32519 \begin_layout Description
32520 Depth This is the plain text
32521 \begin_inset Quotes eld
32525 \begin_inset Quotes erd
32529 It ignores the total depth when there are multiple text lines in the box:
32530 \begin_inset Newline newline
32534 \begin_inset Newline newline
32538 \begin_inset Newline newline
32542 \begin_inset Box Boxed
32552 height_special "depth"
32557 backgroundcolor "none"
32560 \begin_layout Plain Layout
32562 Box height set to 1
32563 \begin_inset space \thinspace{}
32572 \begin_inset Newline newline
32576 \begin_inset Newline newline
32582 \begin_layout Description
32583 Height This is the height of the text that is inside the box.
32585 \begin_inset space \thinspace{}
32589 \begin_inset space \space{}
32592 2 for this size will set the box height to 2
32593 \begin_inset space ~
32596 times the text height:
32597 \begin_inset Box Boxed
32607 height_special "height"
32612 backgroundcolor "none"
32615 \begin_layout Plain Layout
32617 Box height set to 2
32618 \begin_inset space \thinspace{}
32629 \begin_layout Description
32631 \begin_inset space ~
32634 Height This is the Height
32635 \begin_inset space \thinspace{}
32639 \begin_inset space \thinspace{}
32643 \begin_inset Box Boxed
32653 height_special "totalheight"
32658 backgroundcolor "none"
32661 \begin_layout Plain Layout
32663 Box height set to 1
32664 \begin_inset space \thinspace{}
32668 \begin_inset space ~
32679 \begin_layout Description
32680 Width This sets the width of the box as height:
32681 \begin_inset Box Boxed
32691 height_special "width"
32696 backgroundcolor "none"
32699 \begin_layout Plain Layout
32701 Box height set to 1
32702 \begin_inset space \thinspace{}
32713 \begin_layout Subsection
32715 \begin_inset Index idx
32718 \begin_layout Plain Layout
32727 \begin_layout Standard
32728 When you have chosen an
32731 \begin_inset space ~
32736 , the vertical box alignment can be:
32739 \begin_layout Description
32740 Top This is an example text line.
32742 \begin_inset Box Boxed
32752 height_special "totalheight"
32757 backgroundcolor "none"
32760 \begin_layout Plain Layout
32762 This box is top-aligned.
32767 This is an example text line.
32770 \begin_layout Description
32771 Middle This is an example text line.
32773 \begin_inset Box Boxed
32783 height_special "totalheight"
32788 backgroundcolor "none"
32791 \begin_layout Plain Layout
32793 This box is middle-aligned.
32798 This is an example text line.
32801 \begin_layout Description
32802 Bottom This is an example text line.
32804 \begin_inset Box Boxed
32814 height_special "totalheight"
32819 backgroundcolor "none"
32822 \begin_layout Plain Layout
32824 This box is bottom-aligned.
32829 This is an example text line.
32832 \begin_layout Standard
32833 \begin_inset Note Greyedout
32836 \begin_layout Plain Layout
32841 The vertical box alignment can be lost in the output when you have two
32842 boxes in a line and one has e.
32843 \begin_inset space \thinspace{}
32847 \begin_inset space \space{}
32850 a shadow and the other one not.
32858 \begin_layout Standard
32859 The horizontal box alignment can be set via \SpecialChar LyX
32860 's paragraph dialog when you
32861 set the box into its own paragraph.
32864 \begin_layout Standard
32865 \begin_inset VSpace bigskip
32868 When you have chosen an
32871 \begin_inset space ~
32876 , the box content can be aligned vertically to:
32879 \begin_layout Description
32880 top This is an example text line.
32882 \begin_inset Box Boxed
32892 height_special "totalheight"
32897 backgroundcolor "none"
32900 \begin_layout Plain Layout
32902 This box text is top-aligned.
32907 This is an example text line.
32910 \begin_layout Description
32911 middle This is an example text line.
32913 \begin_inset Box Boxed
32923 height_special "totalheight"
32928 backgroundcolor "none"
32931 \begin_layout Plain Layout
32933 This box text is middle-aligned.
32938 This is an example text line.
32941 \begin_layout Description
32942 bottom This is an example text line.
32944 \begin_inset Box Boxed
32954 height_special "totalheight"
32959 backgroundcolor "none"
32962 \begin_layout Plain Layout
32964 This box text is bottom-aligned.
32969 This is an example text line.
32972 \begin_layout Description
32973 stretch This is an example text line.
32975 \begin_inset Box Boxed
32985 height_special "totalheight"
32990 backgroundcolor "none"
32993 \begin_layout Plain Layout
32998 \begin_layout Plain Layout
33003 \begin_layout Plain Layout
33010 This is an example text line.
33013 \begin_layout Standard
33014 To stretch the box content, it must consist of more than one paragraph.
33015 In the example above every text line is in an own paragraph.
33018 \begin_layout Standard
33019 \begin_inset VSpace bigskip
33022 To align the box content horizontally you can use \SpecialChar LyX
33023 's paragraph dialog when
33027 \begin_inset space ~
33035 \begin_layout Standard
33037 \begin_inset Box Boxed
33047 height_special "totalheight"
33052 backgroundcolor "none"
33055 \begin_layout Plain Layout
33060 \begin_layout Plain Layout
33065 \begin_layout Plain Layout
33075 \begin_layout Standard
33076 If you have not set an
33079 \begin_inset space ~
33084 , you can align the box content horizontally in the box dialog.
33087 \begin_layout Standard
33089 \begin_inset Box Boxed
33099 height_special "totalheight"
33104 backgroundcolor "none"
33107 \begin_layout Plain Layout
33108 This box text is horizontally stretched.
33116 \begin_layout Subsection
33118 \begin_inset CommandInset label
33120 name "sec:Decoration"
33125 \begin_inset Index idx
33128 \begin_layout Plain Layout
33137 \begin_layout Standard
33138 The type of the box can be specified in the box dialog in the drop-down
33144 The following types are possible:
33147 \begin_layout Description
33149 \begin_inset space ~
33152 frame Nothing is drawn.
33155 \begin_layout Description
33157 \begin_inset space ~
33161 \begin_inset space ~
33164 frame This draws a rectangular frame around the box.
33165 The frame line thickness can be specified.
33167 \begin_inset Box Boxed
33177 height_special "totalheight"
33182 backgroundcolor "none"
33185 \begin_layout Plain Layout
33195 \begin_layout Description
33197 \begin_inset space ~
33201 \begin_inset space ~
33204 thin This draws an oval frame around the box.
33205 The frame line thickness has the size 0.4
33206 \begin_inset space \thinspace{}
33211 \begin_inset Box ovalbox
33221 height_special "totalheight"
33226 backgroundcolor "none"
33229 \begin_layout Plain Layout
33239 \begin_layout Description
33241 \begin_inset space ~
33245 \begin_inset space ~
33248 thick This draws an oval frame around the box.
33249 The frame line thickness has the size 0.8
33250 \begin_inset space \thinspace{}
33255 \begin_inset Box Ovalbox
33265 height_special "totalheight"
33270 backgroundcolor "none"
33273 \begin_layout Plain Layout
33283 \begin_layout Description
33285 \begin_inset space ~
33288 shadow This draws a rectangular frame with a shadow around the box.
33289 The frame line thickness and the shadow can be specified.
33291 \begin_inset Box Shadowbox
33301 height_special "totalheight"
33306 backgroundcolor "none"
33309 \begin_layout Plain Layout
33319 \begin_layout Description
33321 \begin_inset space ~
33324 background This draws a box with a red background.
33325 Unlike colored boxes
33329 \begin_layout Plain Layout
33331 \begin_inset space \thinspace{}
33335 \begin_inset CommandInset ref
33337 reference "sec:Colored-Boxes"
33346 , it always uses the whole column width and the box is set as its own paragraph.
33348 \begin_inset Box Shaded
33358 height_special "totalheight"
33363 backgroundcolor "none"
33366 \begin_layout Plain Layout
33367 Shaded background box
33375 \begin_layout Description
33377 \begin_inset space ~
33381 \begin_inset space ~
33384 frame This draws a double-line rectangular frame around the box.
33385 The line thickness of the inner frame is 0.75
33386 \begin_inset space \thinspace{}
33390 \begin_inset space ~
33393 thickness, the thickness of the outer frame is 1.5
33394 \begin_inset space \thinspace{}
33398 \begin_inset space ~
33402 The distance between the lines is 1.5
33403 \begin_inset space \thinspace{}
33407 \begin_inset space ~
33411 \begin_inset space \thinspace{}
33415 \begin_inset space \thinspace{}
33419 \begin_inset space \thinspace{}
33424 \begin_inset Box Doublebox
33434 height_special "totalheight"
33439 backgroundcolor "none"
33442 \begin_layout Plain Layout
33444 Double rectangular box
33452 \begin_layout Standard
33453 \begin_inset VSpace bigskip
33457 's box label will reflect the different frame types.
33458 To be able to use all types, the \SpecialChar LaTeX
33464 \begin_inset Index idx
33467 \begin_layout Plain Layout
33469 -packages ! fancybox
33477 \begin_layout Standard
33478 \begin_inset VSpace bigskip
33481 When you use the decoration
33483 simple rectangular frame
33485 and no inner box, you can allow page breaks within a box.
33486 Note that then, unlike other framed boxes, the frame always uses the whole
33487 column width and the box is set as its own paragraph:
33488 \begin_inset Box Framed
33498 height_special "totalheight"
33503 backgroundcolor "none"
33506 \begin_layout Plain Layout
33507 Allow page break box
33515 \begin_layout Section
33517 \begin_inset Index idx
33520 \begin_layout Plain Layout
33521 Boxes ! Customization
33529 \begin_layout Standard
33530 The diameter of the round corners of the oval boxes can be set with the
33541 \begin_layout Standard
33549 \begin_layout Standard
33550 sets the diameter to 1
33551 \begin_inset space \thinspace{}
33558 \begin_layout Standard
33566 \begin_layout Standard
33567 sets the diameter to
33570 \begin_inset space \thinspace{}
33574 \begin_inset space \thinspace{}
33577 minimum(width and height of box)
33589 \begin_layout Standard
33593 \begin_layout Plain Layout
33603 \begin_inset Box Ovalbox
33613 height_special "totalheight"
33618 backgroundcolor "none"
33621 \begin_layout Plain Layout
33630 \begin_inset space \thinspace{}
33634 \begin_inset space \thinspace{}
33638 \begin_inset space \thinspace{}
33650 \begin_layout Plain Layout
33662 \begin_layout Standard
33663 \begin_inset VSpace bigskip
33669 \begin_layout Standard
33670 The default background color red of
33674 boxes can either be changed locally with the command
33678 definecolor{shadecolor}
33680 or globally with the menu
33682 Tools\SpecialChar menuseparator
33683 Preferences\SpecialChar menuseparator
33684 Colors\SpecialChar menuseparator
33686 \begin_inset space ~
33698 command is explained in section
33699 \begin_inset space ~
33703 \begin_inset CommandInset ref
33705 reference "sec:Colored-Tables"
33713 \begin_layout Plain Layout
33720 requires the \SpecialChar LaTeX
33725 in the preamble, see section
33726 \begin_inset space ~
33730 \begin_inset CommandInset ref
33732 reference "sec:Colored-Boxes"
33741 For example the appearance of the following shaded background box is set
33742 with the \SpecialChar TeX
33746 \begin_layout Standard
33751 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33754 \begin_layout Standard
33758 \begin_layout Plain Layout
33762 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33768 \begin_inset Box Shaded
33778 height_special "totalheight"
33783 backgroundcolor "none"
33786 \begin_layout Plain Layout
33789 This is yellow text in a
33799 box with dark green background.
33808 \begin_layout Plain Layout
33812 definecolor{shadecolor}{rgb}{1,0,0}
33820 \begin_layout Standard
33821 \begin_inset VSpace bigskip
33824 Manually changed sizes and colors are valid for all boxes following the
33825 commands that change them.
33828 \begin_layout Section
33830 \begin_inset CommandInset label
33832 name "sec:Minipages"
33837 \begin_inset Index idx
33840 \begin_layout Plain Layout
33849 \begin_layout Standard
33850 Minipages are treated by \SpecialChar LaTeX
33851 as pages within pages and can therefore for example
33852 have their own footnotes.
33855 \begin_layout Standard
33856 Minipages are useful when you write documents with different languages.
33859 \begin_layout Standard
33860 Below are two example minipages side by side.
33861 Their width is set to 45
33862 \begin_inset space \thinspace{}
33865 col% and they are separated by a horizontal fill, that was inserted via
33868 Insert\SpecialChar menuseparator
33870 \begin_inset space ~
33873 Formatting\SpecialChar menuseparator
33875 \begin_inset space ~
33881 \begin_inset Newpage newpage
33887 \begin_layout Standard
33888 \begin_inset Box Frameless
33898 height_special "totalheight"
33903 backgroundcolor "none"
33906 \begin_layout Plain Layout
33909 Dies ist ein deutscher Text.
33910 Dies ist ein deutscher Text.
33911 Dies ist ein deutscher Text.
33912 Dies ist ein deutscher Text.
33913 Dies ist ein deutscher Text.
33914 Dies ist ein deutscher Text.
33915 Dies ist ein deutscher Text.
33916 Dies ist ein deutscher Text.
33917 Dies ist ein deutscher Text.
33918 Dies ist ein deutscher Text.
33919 Dies ist ein deutscher Text.
33920 Dies ist ein deutscher Text.
33921 Dies ist ein deutscher Text
33925 \begin_layout Plain Layout
33928 Dies ist eine deutsche Fußnote.
33934 Dies ist ein deutscher Text.
33935 Dies ist ein deutscher Text.
33941 \begin_inset space \hfill{}
33945 \begin_inset Box Frameless
33955 height_special "totalheight"
33960 backgroundcolor "none"
33963 \begin_layout Plain Layout
33964 This is an English Text.
33965 This is an English Text.
33966 This is an English Text.
33967 This is an English Text.
33968 This is an English Text.
33969 This is an English Text.
33970 This is an English Text.
33971 This is an English Text.
33972 This is an English Text.
33973 This is an English Text.
33974 This is an English Text.
33975 This is an English Text.
33976 This is an English Text.
33977 This is an English Text.
33978 This is an English Text.
33979 This is an English Text.
33983 \begin_layout Plain Layout
33984 This is an English footnote.
33989 This is an English Text.
33997 \begin_layout Standard
33998 \begin_inset VSpace bigskip
34001 The document-wide paragraph settings are ignored within minipages.
34002 That means that there will be no space between paragraphs in minipages
34003 although you set it to e.
34004 \begin_inset space \thinspace{}
34008 \begin_inset space \space{}
34015 in the document settings.
34018 \begin_layout Standard
34019 Minipages can also be used to set a background color for text parts, see
34021 \begin_inset space ~
34025 \begin_inset CommandInset ref
34027 reference "sec:Colored-Boxes"
34034 \begin_layout Standard
34035 \begin_inset Note Greyedout
34038 \begin_layout Plain Layout
34043 You cannot have floats or margin notes inside minipages but minipages can
34044 be used inside tables, floats, and other boxes.
34052 \begin_layout Standard
34053 \begin_inset VSpace bigskip
34059 \begin_layout Standard
34061 has also basic support for minipages whose size is automatically determined
34062 by the width of their contents, via the module
34064 Variable-width Minipages
34067 The \SpecialChar LyX
34070 varwidth-floats-side-by-side
34072 gives examples of variable-width minipages used for placing two floats
34076 \begin_layout Section
34078 \begin_inset CommandInset label
34080 name "sec:Parboxes"
34085 \begin_inset Index idx
34088 \begin_layout Plain Layout
34097 \begin_layout Standard
34098 Parboxes are very similar to minipages with the difference that they cannot
34102 \begin_layout Standard
34104 \begin_inset Box Frameless
34114 height_special "totalheight"
34119 backgroundcolor "none"
34122 \begin_layout Plain Layout
34123 This a text within a parbox.
34124 This a text within a parbox.
34127 \begin_layout Plain Layout
34128 This footnote won't appear:
34132 \begin_layout Plain Layout
34133 This footnote is inside a parbox and will therefore not appear.
34146 \begin_layout Section
34147 Boxes for Words and Characters
34148 \begin_inset Index idx
34151 \begin_layout Plain Layout
34152 Boxes ! for Characters
34160 \begin_layout Subsection
34161 Prevent Hyphenation
34162 \begin_inset CommandInset label
34164 name "sec:Prevent-Hyphenation"
34169 \begin_inset Index idx
34172 \begin_layout Plain Layout
34173 Boxes ! to Prevent Hyphenation
34181 \begin_layout Standard
34182 You can use the box type
34186 to prevent words or text from being hyphenated.
34187 \begin_inset Newline newline
34190 Here is an example text:
34193 \begin_layout Standard
34194 This line is an example to show how you can prevent the hyphenation of
34195 \begin_inset Quotes eld
34199 \begin_inset Quotes erd
34205 \begin_layout Standard
34206 To prevent the hyphenation of the word
34207 \begin_inset Quotes eld
34211 \begin_inset Quotes erd
34214 , put the word into a box, set the
34217 \begin_inset space ~
34226 and use no explicit width.
34229 \begin_layout Standard
34230 This is the result:
34233 \begin_layout Standard
34234 This line is an example to show how you can prevent the hyphenation of
34235 \begin_inset Box Frameless
34245 height_special "totalheight"
34250 backgroundcolor "none"
34253 \begin_layout Plain Layout
34254 \begin_inset Quotes eld
34258 \begin_inset Quotes erd
34269 \begin_layout Standard
34270 You can alternatively set the command
34271 \begin_inset Quotes eld
34281 \begin_inset Quotes grd
34284 as \SpecialChar TeX
34285 Code directly before the word:
34288 \begin_layout Standard
34289 This line is an example to show how you can prevent the hyphenation of
34290 \begin_inset Quotes eld
34297 \begin_layout Plain Layout
34307 \begin_inset Quotes erd
34313 \begin_layout Standard
34314 Of course the word now protrudes over the side margin.
34315 To avoid this, add via the menu
34317 Insert\SpecialChar menuseparator
34318 Formatting\SpecialChar menuseparator
34320 \begin_inset space ~
34324 \begin_inset space ~
34332 arg "newline-insert newline"
34335 ) a line break before the word:
34338 \begin_layout Standard
34339 This line is an example to show how you can prevent the hyphenation of
34340 \begin_inset Newline newline
34344 \begin_inset Box Frameless
34354 height_special "totalheight"
34359 backgroundcolor "none"
34362 \begin_layout Plain Layout
34363 \begin_inset Quotes eld
34367 \begin_inset Quotes erd
34378 \begin_layout Subsection
34380 \begin_inset CommandInset label
34382 name "subsec:Vertical-Alignment"
34387 \begin_inset Index idx
34390 \begin_layout Plain Layout
34391 Boxes ! for Vertical Alignment
34397 \begin_inset Index idx
34400 \begin_layout Plain Layout
34409 \begin_layout Standard
34410 With the help of the command
34416 you can align words, characters or other boxes vertically relative to the
34424 is used with the following scheme:
34427 \begin_layout Standard
34432 raisebox{lift}[height][depth]{box content}
34435 \begin_layout Standard
34436 The lift can be a positive value to raise the box or a negative value to
34440 \begin_layout Standard
34441 To align for example the word
34442 \begin_inset Quotes eld
34446 \begin_inset Quotes erd
34449 so that the bottom of the
34450 \begin_inset Quotes eld
34454 \begin_inset Quotes erd
34458 \begin_inset Quotes eld
34462 \begin_inset Quotes erd
34465 is at the baseline, insert the command
34468 \begin_layout Standard
34478 \begin_layout Standard
34479 in \SpecialChar TeX
34480 Code before the word.
34481 After the word insert a closing brace
34482 \begin_inset Quotes eld
34490 \begin_inset Quotes erd
34493 in \SpecialChar TeX
34495 \begin_inset Newline newline
34498 This is the result:
34501 \begin_layout Standard
34502 This is a text line with the word
34506 \begin_layout Plain Layout
34518 \begin_inset Quotes eld
34522 \begin_inset Quotes erd
34529 \begin_layout Plain Layout
34539 \begin_layout Standard
34540 \begin_inset VSpace bigskip
34543 When you raise or lower characters in a line, the line distance will be
34547 \begin_layout Standard
34548 This is a text line with the word
34552 \begin_layout Plain Layout
34564 \begin_inset Quotes eld
34568 \begin_inset Quotes erd
34575 \begin_layout Plain Layout
34583 \begin_inset Newline newline
34586 This is a text line with the word
34590 \begin_layout Plain Layout
34600 \begin_inset Quotes eld
34604 \begin_inset Quotes erd
34611 \begin_layout Plain Layout
34621 \begin_layout Standard
34622 If you want to prevent this for a certain reason, set the box height to
34627 \begin_layout Standard
34637 \begin_layout Standard
34638 This is a text line with the word
34642 \begin_layout Plain Layout
34654 \begin_inset Quotes eld
34658 \begin_inset Quotes erd
34665 \begin_layout Plain Layout
34673 \begin_inset Newline newline
34677 \begin_inset Newline newline
34680 This is a text line with the word
34684 \begin_layout Plain Layout
34688 raisebox{0.5cm}[0pt]{
34694 \begin_inset Quotes eld
34698 \begin_inset Quotes erd
34705 \begin_layout Plain Layout
34715 \begin_layout Section
34717 \begin_inset CommandInset label
34719 name "sec:Colored-Boxes"
34724 \begin_inset Index idx
34727 \begin_layout Plain Layout
34736 \begin_layout Standard
34737 To color the background of a box just select the color you like in the box
34739 This is for example a box with orange background:
34740 \begin_inset Box Frameless
34750 height_special "totalheight"
34755 backgroundcolor "orange"
34758 \begin_layout Plain Layout
34759 Box with orange background
34767 \begin_layout Standard
34768 If you use the decoration
34771 \begin_inset space ~
34775 \begin_inset space ~
34780 you can set a frame color.
34781 In this case you must also specify a background color (LyX sets white as
34783 Here is an example:
34784 \begin_inset Box Boxed
34794 height_special "totalheight"
34799 backgroundcolor "yellow"
34802 \begin_layout Plain Layout
34803 Box with teal frame color and yellow background color
34811 \begin_layout Standard
34812 \begin_inset VSpace bigskip
34815 Of course you can also have colored text inside a colored box:
34816 \begin_inset Newline newline
34820 \begin_inset Box Boxed
34830 height_special "totalheight"
34835 backgroundcolor "magenta"
34838 \begin_layout Plain Layout
34841 This is colored text within a colored, framed box
34849 \begin_layout Standard
34850 \begin_inset VSpace bigskip
34856 \begin_layout Standard
34857 If you need another color than the predefined ones, you can define your
34858 own color as described in section
34859 \begin_inset space ~
34863 \begin_inset CommandInset ref
34865 reference "sec:Colored-Tables"
34870 To use your own color you must typeset the box by using TeX code:
34873 \begin_layout Standard
34874 Colored boxes without frame are created with the command
34881 It has the following scheme:
34884 \begin_layout Standard
34889 colorbox{color}{box content}
34892 \begin_layout Standard
34893 The box content can also be a box and colored boxes can also be within other
34896 \begin_inset space \thinspace{}
34900 \begin_inset space \space{}
34903 a darkgreen background for a word, insert the command
34906 \begin_layout Standard
34911 colorbox{darkgreen}{
34914 \begin_layout Standard
34915 before the word in \SpecialChar TeX
34917 After the word insert a closing brace
34918 \begin_inset Quotes eld
34926 \begin_inset Quotes erd
34929 in \SpecialChar TeX
34931 \begin_inset Newline newline
34934 This is the result:
34937 \begin_layout Standard
34938 This is a line where the word
34942 \begin_layout Plain Layout
34946 colorbox{darkgreen}{
34952 \begin_inset Quotes eld
34956 \begin_inset Quotes erd
34963 \begin_layout Plain Layout
34970 has a darkgreen background.
34973 \begin_layout Standard
34974 Framed, colored boxes are created with the command
34981 It has the following scheme:
34984 \begin_layout Standard
34989 fcolorbox{frame color}{box color}{box content}
34992 \begin_layout Section
34993 Rotated and Scaled Boxes
34996 \begin_layout Standard
34997 To use the boxes described in this section, the module
35001 must be loaded in the document settings.
35004 \begin_layout Standard
35005 \begin_inset Note Greyedout
35008 \begin_layout Plain Layout
35013 Not all DVI viewers are able to display rotated or scaled material.
35021 \begin_layout Standard
35022 \begin_inset Note Greyedout
35025 \begin_layout Plain Layout
35030 Floats are not allowed inside a rotated or scaled box.
35038 \begin_layout Subsection
35040 \begin_inset Index idx
35043 \begin_layout Plain Layout
35050 \begin_inset Index idx
35053 \begin_layout Plain Layout
35062 \begin_layout Standard
35063 To rotate material, you can put it into a
35068 Such a box is inserted via the menu
35070 Insert\SpecialChar menuseparator
35071 Custom Insets\SpecialChar menuseparator
35077 \begin_layout Standard
35078 The rotation origin can be specified via the inset
35084 Insert\SpecialChar menuseparator
35092 The following positions are possible:
35112 (top), along with meaningful combinations of the four base positions.
35117 means that the rotation origin is at the top left corner of the box.
35118 When no rotation origin is specified, the position
35123 The rotation angle is a number that can be negative that specifies the
35125 The rotation direction is counterclockwise.
35128 \begin_layout Standard
35129 In the following example
35133 was inserted to the
35141 was inserted to the
35148 \begin_layout Standard
35150 \begin_inset Flex Rotatebox
35153 \begin_layout Plain Layout
35154 \begin_inset Argument 1
35157 \begin_layout Plain Layout
35164 \begin_inset Argument 2
35167 \begin_layout Plain Layout
35181 \begin_layout Standard
35182 The box content can also be another box or an inline formula:
35185 \begin_layout Standard
35187 \begin_inset Flex Rotatebox
35190 \begin_layout Plain Layout
35191 \begin_inset Argument 1
35194 \begin_layout Plain Layout
35201 \begin_inset Argument 2
35204 \begin_layout Plain Layout
35211 \begin_inset Box Doublebox
35221 height_special "totalheight"
35226 backgroundcolor "none"
35229 \begin_layout Plain Layout
35241 \begin_inset Flex Rotatebox
35244 \begin_layout Plain Layout
35245 \begin_inset Argument 1
35248 \begin_layout Plain Layout
35255 \begin_inset Argument 2
35258 \begin_layout Plain Layout
35265 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35276 \begin_layout Standard
35277 or an image or table:
35280 \begin_layout Standard
35282 \begin_inset Flex Rotatebox
35285 \begin_layout Plain Layout
35286 \begin_inset Argument 1
35289 \begin_layout Plain Layout
35296 \begin_inset Argument 2
35299 \begin_layout Plain Layout
35306 \begin_inset Graphics
35307 filename clipart/platypus.eps
35318 with a rotated image
35319 \begin_inset Flex Rotatebox
35322 \begin_layout Plain Layout
35323 \begin_inset Argument 2
35326 \begin_layout Plain Layout
35333 \begin_inset Tabular
35334 <lyxtabular version="3" rows="2" columns="2">
35335 <features tabularvalignment="middle">
35336 <column alignment="center" valignment="top">
35337 <column alignment="center" valignment="top">
35339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35342 \begin_layout Plain Layout
35348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35351 \begin_layout Plain Layout
35359 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35362 \begin_layout Plain Layout
35368 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35371 \begin_layout Plain Layout
35388 \begin_inset Index idx
35391 \begin_layout Plain Layout
35398 \begin_inset Index idx
35401 \begin_layout Plain Layout
35402 Table Customization ! Rotating
35410 \begin_layout Standard
35411 \begin_inset Note Greyedout
35414 \begin_layout Plain Layout
35423 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
35425 errors when viewing/exporting the document.
35433 \begin_layout Subsection
35435 \begin_inset Index idx
35438 \begin_layout Plain Layout
35445 \begin_inset Index idx
35448 \begin_layout Plain Layout
35457 \begin_layout Standard
35458 To scale material put it into a
35463 Such a box is inserted via the menu
35465 Insert\SpecialChar menuseparator
35466 Custom Insets\SpecialChar menuseparator
35472 \begin_layout Standard
35477 inset has the mandatory inset
35481 and the optional inset
35485 (inserted via the menu
35487 Insert\SpecialChar menuseparator
35491 Input there the horizontal and vertical scale factor, respectively.
35496 inset is used, the horizontal factor will also be used as the vertical
35500 \begin_layout Standard
35501 To get for example the double text size, compared to the document text size,
35512 \begin_inset Flex Scalebox
35515 \begin_layout Plain Layout
35516 \begin_inset Argument 1
35519 \begin_layout Plain Layout
35533 \begin_layout Standard
35551 \begin_inset Flex Scalebox
35554 \begin_layout Plain Layout
35555 \begin_inset Argument 1
35558 \begin_layout Plain Layout
35565 \begin_inset Argument 2
35568 \begin_layout Plain Layout
35582 \begin_layout Standard
35583 If the scaling factor is negative, the box content will be mirrored.
35600 can be used to create mirror writing:
35601 \begin_inset Flex Scalebox
35604 \begin_layout Plain Layout
35605 \begin_inset Argument 1
35608 \begin_layout Plain Layout
35615 \begin_inset Argument 2
35618 \begin_layout Plain Layout
35632 \begin_layout Standard
35650 \begin_inset Flex Scalebox
35653 \begin_layout Plain Layout
35654 \begin_inset Argument 1
35657 \begin_layout Plain Layout
35664 \begin_inset Argument 2
35667 \begin_layout Plain Layout
35681 \begin_layout Standard
35688 Insert\SpecialChar menuseparator
35689 Custom Insets\SpecialChar menuseparator
35715 \begin_layout Standard
35716 \begin_inset Note Greyedout
35719 \begin_layout Plain Layout
35728 inset is empty or contains other characters than numbers you will get LaTeX
35729 errors when viewing/exporting the document.
35737 \begin_layout Standard
35738 \begin_inset VSpace bigskip
35747 Insert\SpecialChar menuseparator
35748 Custom Insets\SpecialChar menuseparator
35751 ) is used to scale the content to a defined width and height.
35756 inset has the mandatory inset
35760 and the optional inset
35764 (inserted via the menu
35766 Insert\SpecialChar menuseparator
35770 Input there the width and height, respectively, as value with a unit.
35772 \begin_inset CommandInset ref
35774 reference "tab:Units"
35778 lists the possible units.
35779 If there is an exclamation mark
35783 in of of the two insets, the size is set so that the aspect ratio of the
35784 box content is kept.
35789 inset is used an exclamation mark will internally be used for the height.
35792 \begin_layout Standard
35810 \begin_inset Flex Resizebox
35813 \begin_layout Plain Layout
35814 \begin_inset Argument 1
35817 \begin_layout Plain Layout
35824 \begin_inset Argument 2
35827 \begin_layout Plain Layout
35839 \begin_inset Newline newline
35863 \begin_inset Flex Resizebox
35866 \begin_layout Plain Layout
35867 \begin_inset Argument 1
35870 \begin_layout Plain Layout
35877 \begin_inset Argument 2
35880 \begin_layout Plain Layout
35894 \begin_layout Standard
35895 \begin_inset Note Greyedout
35898 \begin_layout Plain Layout
35907 inset is empty or contains an invalid unit you will get LaTeX errors when
35908 viewing/exporting the document.
35916 \begin_layout Standard
35917 \begin_inset VSpace bigskip
35923 \begin_layout Standard
35924 The boxes can be combined in any order.
35933 which is in turn inside a
35940 \begin_layout Standard
35943 \begin_inset Flex Rotatebox
35946 \begin_layout Plain Layout
35947 \begin_inset Argument 1
35950 \begin_layout Plain Layout
35957 \begin_inset Argument 2
35960 \begin_layout Plain Layout
35967 \begin_inset Flex Resizebox
35970 \begin_layout Plain Layout
35971 \begin_inset Argument 1
35974 \begin_layout Plain Layout
35981 \begin_inset Flex Reflectbox
35984 \begin_layout Plain Layout
36003 \begin_layout Standard
36005 Images, tables, and inline formulas are allowed as box content:
36008 \begin_layout Standard
36011 \begin_inset Flex Resizebox
36014 \begin_layout Plain Layout
36015 \begin_inset Argument 1
36018 \begin_layout Plain Layout
36025 \begin_inset Flex Reflectbox
36028 \begin_layout Plain Layout
36029 \begin_inset Graphics
36030 filename clipart/platypus.eps
36047 \begin_inset Flex Resizebox
36050 \begin_layout Plain Layout
36051 \begin_inset Argument 1
36054 \begin_layout Plain Layout
36061 \begin_inset Flex Reflectbox
36064 \begin_layout Plain Layout
36065 \begin_inset Tabular
36066 <lyxtabular version="3" rows="2" columns="2">
36067 <features tabularvalignment="middle">
36068 <column alignment="center" valignment="top">
36069 <column alignment="center" valignment="top">
36071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36074 \begin_layout Plain Layout
36080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36083 \begin_layout Plain Layout
36091 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36094 \begin_layout Plain Layout
36100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36103 \begin_layout Plain Layout
36125 \begin_inset Flex Resizebox
36128 \begin_layout Plain Layout
36129 \begin_inset Argument 1
36132 \begin_layout Plain Layout
36139 \begin_inset Flex Reflectbox
36142 \begin_layout Plain Layout
36143 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36157 \begin_inset Index idx
36160 \begin_layout Plain Layout
36167 \begin_inset Index idx
36170 \begin_layout Plain Layout
36171 Table Customization ! Scaling
36179 \begin_layout Standard
36180 When the global formula style
36184 is used in the document
36188 \begin_layout Plain Layout
36190 \begin_inset Quotes eld
36194 \begin_inset Quotes erd
36197 is added to the document class options.
36202 , display style formulas can also be scaled.
36205 \begin_layout Chapter
36206 Objects Surrounded by Text
36207 \begin_inset Index idx
36210 \begin_layout Plain Layout
36219 \begin_layout Section
36221 \begin_inset CommandInset label
36223 name "sec:Wrap-Floats"
36228 \begin_inset Index idx
36231 \begin_layout Plain Layout
36232 Floats ! Wrap Floats
36238 \begin_inset Index idx
36241 \begin_layout Plain Layout
36242 Surrounded by text ! Wrap Floats
36250 \begin_layout Standard
36251 \begin_inset Wrap figure
36258 \begin_layout Plain Layout
36259 \begin_inset Graphics
36260 filename clipart/mobius.eps
36262 scaleBeforeRotation
36263 rotateOrigin center
36270 \begin_layout Plain Layout
36271 \begin_inset Caption Standard
36273 \begin_layout Plain Layout
36274 \begin_inset CommandInset label
36276 name "fig:This-is-a"
36280 This is a figure wrap float.
36290 This float type is used if you want to wrap text around a figure or table
36291 so that it only occupies some fraction of the column width.
36292 It can be inserted using the menu
36294 Insert\SpecialChar menuseparator
36295 Floats\SpecialChar menuseparator
36297 \begin_inset space ~
36301 \begin_inset space ~
36309 \begin_inset space ~
36313 \begin_inset space ~
36318 if the \SpecialChar LaTeX
36324 \begin_inset Index idx
36327 \begin_layout Plain Layout
36329 -packages ! wrapfig
36338 \begin_layout Plain Layout
36339 Installing a \SpecialChar LaTeX
36340 -package is explained it in the
36344 \begin_inset space ~
36354 The settings of the float can be modified by right-clicking on the float
36356 The mandatory settings are the float
36369 that specifies how much the float is set into the paragraph
36370 \begin_inset space \thinspace{}
36374 \begin_inset space \thinspace{}
36377 page margin, and the
36380 \begin_inset space ~
36385 that specifies how many text lines the float will approximately need.
36386 The line span is often hard to approximate; so it is better only to use
36387 it when you encounter float placement problems.
36388 You can furthermore decide if \SpecialChar LaTeX
36389 is allowed to let the float float within
36390 the paragraph or to surrounding paragraphs.
36392 \begin_inset space ~
36396 \begin_inset CommandInset ref
36398 reference "fig:This-is-a"
36402 is an example text wrap float with a width of 40
36403 \begin_inset space \thinspace{}
36407 \begin_inset space \thinspace{}
36410 cm overhang, set to the left.
36413 \begin_layout Standard
36414 \begin_inset Note Greyedout
36417 \begin_layout Plain Layout
36423 \begin_inset space ~
36426 wrap float floats are fragile! E.
36427 \begin_inset space \thinspace{}
36431 \begin_inset space \space{}
36434 having a figure too close to the bottom of the page can mess things up in
36435 such a way that the float does not appear in the output or that it is placed
36436 over some other text.
36444 \begin_layout Standard
36445 In general, the following applies for wrap floats:
36448 \begin_layout Itemize
36449 They should not be placed in paragraphs that run over a page break.
36450 That means that wrap floats are better inserted in their exact place when
36451 the document is almost finished and you are able to estimate where page
36452 breaks will appear.
36455 \begin_layout Itemize
36456 They should either be placed in their own paragraph before the paragraph
36457 where they should wrap into or within a paragraph.
36460 \begin_layout Itemize
36461 In consecutive paragraphs they may cause troubles, so ensure that there
36462 is a text paragraph between them as separator.
36465 \begin_layout Itemize
36466 They are not allowed in section headings or tables.
36469 \begin_layout Itemize
36470 Their numbering and referencing works as described in chap.
36471 \begin_inset space \thinspace{}
36475 \begin_inset CommandInset ref
36477 reference "chap:Floats"
36484 \begin_layout Section
36485 Surrounded Fixed Objects
36486 \begin_inset Index idx
36489 \begin_layout Plain Layout
36490 Surrounded by text ! Fixed objects
36498 \begin_layout Standard
36499 The wrap floats described in sec.
36500 \begin_inset space \thinspace{}
36504 \begin_inset CommandInset ref
36506 reference "sec:Wrap-Floats"
36510 have these positions in the paragraph:
36513 \begin_layout Standard
36516 \begin_inset Tabular
36517 <lyxtabular version="3" rows="2" columns="2">
36518 <features tabularvalignment="middle">
36519 <column alignment="center" valignment="top">
36520 <column alignment="center" valignment="top">
36522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36525 \begin_layout Plain Layout
36528 arg "dialog-show-new-inset graphics"
36536 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36539 \begin_layout Plain Layout
36547 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36550 \begin_layout Plain Layout
36556 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36559 \begin_layout Plain Layout
36571 \begin_inset Tabular
36572 <lyxtabular version="3" rows="2" columns="2">
36573 <features tabularvalignment="middle">
36574 <column alignment="center" valignment="top">
36575 <column alignment="center" valignment="top">
36577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36580 \begin_layout Plain Layout
36586 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36589 \begin_layout Plain Layout
36592 arg "dialog-show-new-inset graphics"
36602 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36605 \begin_layout Plain Layout
36611 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36614 \begin_layout Plain Layout
36628 \begin_layout Standard
36629 To get an object exactly at the position where it is inserted, for example
36630 to get one of these positions:
36631 \begin_inset VSpace defskip
36637 \begin_layout Standard
36640 \begin_inset Tabular
36641 <lyxtabular version="3" rows="2" columns="2">
36642 <features tabularvalignment="middle">
36643 <column alignment="center" valignment="top">
36644 <column alignment="center" valignment="top">
36646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36649 \begin_layout Plain Layout
36655 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36658 \begin_layout Plain Layout
36666 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36669 \begin_layout Plain Layout
36672 arg "dialog-show-new-inset graphics"
36680 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36683 \begin_layout Plain Layout
36695 \begin_inset Tabular
36696 <lyxtabular version="3" rows="2" columns="2">
36697 <features tabularvalignment="middle">
36698 <column alignment="center" valignment="top">
36699 <column alignment="center" valignment="top">
36701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36704 \begin_layout Plain Layout
36710 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36713 \begin_layout Plain Layout
36721 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36724 \begin_layout Plain Layout
36730 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36733 \begin_layout Plain Layout
36736 arg "dialog-show-new-inset graphics"
36750 \begin_inset Tabular
36751 <lyxtabular version="3" rows="2" columns="3">
36752 <features tabularvalignment="middle">
36753 <column alignment="center" valignment="top">
36754 <column alignment="center" valignment="top">
36755 <column alignment="center" valignment="top">
36757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36760 \begin_layout Plain Layout
36766 <cell alignment="center" valignment="top" topline="true" usebox="none">
36769 \begin_layout Plain Layout
36772 arg "dialog-show-new-inset graphics"
36780 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36783 \begin_layout Plain Layout
36791 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36794 \begin_layout Plain Layout
36800 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36803 \begin_layout Plain Layout
36809 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36812 \begin_layout Plain Layout
36824 \begin_inset Tabular
36825 <lyxtabular version="3" rows="2" columns="3">
36826 <features tabularvalignment="middle">
36827 <column alignment="center" valignment="top">
36828 <column alignment="center" valignment="top">
36829 <column alignment="center" valignment="top">
36831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36834 \begin_layout Plain Layout
36840 <cell alignment="center" valignment="top" topline="true" usebox="none">
36843 \begin_layout Plain Layout
36849 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36852 \begin_layout Plain Layout
36860 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36863 \begin_layout Plain Layout
36869 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36872 \begin_layout Plain Layout
36875 arg "dialog-show-new-inset graphics"
36883 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36886 \begin_layout Plain Layout
36900 \begin_layout Standard
36903 \begin_inset Tabular
36904 <lyxtabular version="3" rows="3" columns="2">
36905 <features tabularvalignment="middle">
36906 <column alignment="center" valignment="top">
36907 <column alignment="center" valignment="top">
36909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36912 \begin_layout Plain Layout
36918 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36921 \begin_layout Plain Layout
36929 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36932 \begin_layout Plain Layout
36935 arg "dialog-show-new-inset graphics"
36943 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36946 \begin_layout Plain Layout
36954 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36957 \begin_layout Plain Layout
36963 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36966 \begin_layout Plain Layout
36978 \begin_inset Tabular
36979 <lyxtabular version="3" rows="3" columns="3">
36980 <features tabularvalignment="middle">
36981 <column alignment="center" valignment="top">
36982 <column alignment="center" valignment="top">
36983 <column alignment="center" valignment="top">
36985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36988 \begin_layout Plain Layout
36994 <cell alignment="center" valignment="top" topline="true" usebox="none">
36997 \begin_layout Plain Layout
37003 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37006 \begin_layout Plain Layout
37014 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37017 \begin_layout Plain Layout
37023 <cell alignment="center" valignment="top" usebox="none">
37026 \begin_layout Plain Layout
37029 arg "dialog-show-new-inset graphics"
37037 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37040 \begin_layout Plain Layout
37048 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37051 \begin_layout Plain Layout
37057 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37060 \begin_layout Plain Layout
37066 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37069 \begin_layout Plain Layout
37081 \begin_inset Tabular
37082 <lyxtabular version="3" rows="3" columns="2">
37083 <features tabularvalignment="middle">
37084 <column alignment="center" valignment="top">
37085 <column alignment="center" valignment="top">
37087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37090 \begin_layout Plain Layout
37096 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37099 \begin_layout Plain Layout
37107 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37110 \begin_layout Plain Layout
37116 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37119 \begin_layout Plain Layout
37122 arg "dialog-show-new-inset graphics"
37132 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37135 \begin_layout Plain Layout
37141 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37144 \begin_layout Plain Layout
37158 \begin_layout Standard
37160 you can use the \SpecialChar LaTeX
37166 \begin_inset Index idx
37169 \begin_layout Plain Layout
37171 -packages ! picinpar
37177 Here is an example:
37180 \begin_layout Standard
37184 \begin_layout Plain Layout
37194 \begin_inset Note Note
37197 \begin_layout Plain Layout
37198 The following section will only be displayed when the \SpecialChar LaTeX
37211 \begin_layout Standard
37215 \begin_layout Plain Layout
37219 begin{window}[2,c,{
37225 \begin_inset Graphics
37226 filename clipart/mobius.eps
37229 scaleBeforeRotation
37230 rotateOrigin center
37238 \begin_layout Plain Layout
37243 \begin_layout Plain Layout
37252 It was in the spring of the year 1894 that all London was interested, and
37253 the fashionable world dismayed, by the murder of the Honourable Ronald
37254 Adair under most unusual and inexplicable circumstances.
37255 The public has already learned those particulars of the crime which
37261 \begin_layout Plain Layout
37272 came out in the police investigation, but a good deal was suppressed upon
37273 that occasion, since the case for the prosecution was so overwhelmingly
37274 strong that it was not necessary to bring forward all the facts.
37275 Only now, at the end of nearly ten years, am I allowed to supply those
37276 missing links which make up the whole of that remarkable chain.
37282 \begin_layout Plain Layout
37294 \begin_layout Standard
37298 \begin_layout Plain Layout
37307 Footnote of the paragraph with the fixed object.
37311 \begin_layout Plain Layout
37321 \begin_layout Standard
37322 Surrounded fixed objects are used to let text float around them, at which
37323 the object's position in the paragraph can be determined by the number
37325 In contrary to floats is it not possible to have a numbered caption.
37328 \begin_layout Standard
37329 A fixed object is inserted by adding the command
37332 \begin_layout Standard
37337 begin{window}[2,c,{
37340 \begin_layout Standard
37341 as \SpecialChar TeX
37342 Code at the beginning of the paragraph.
37343 The first parameter in the bracket, here '2', defines the number of lines
37344 above the object, the second, here 'c', the position of the object.
37345 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37346 Behind the command you insert the object.
37347 In this example an image with a width of 40
37348 \begin_inset space \thinspace{}
37351 % of the text column width was inserted.
37352 The object can also be a table, a box or an equation.
37353 Behind the object the command
37356 \begin_layout Standard
37359 },description text]
37360 \begin_inset Newline newline
37366 \begin_layout Standard
37369 \begin_inset Quotes eld
37377 \begin_inset Quotes erd
37380 is in the second line.
37381 The description text is optional.
37382 The text surrounding the object must be in the same paragraph as the object,
37383 so it must begin directly after the
37388 At the end of the paragraph insert the command:
37391 \begin_layout Standard
37399 \begin_layout Standard
37400 Within a paragraph with a fixed object, you cannot insert footnotes in the
37402 You have to use instead the command
37408 inside the paragraph and outside the command
37414 as described in sec.
37415 \begin_inset space \thinspace{}
37419 \begin_inset CommandInset ref
37421 reference "sec:Footnotes"
37428 \begin_layout Standard
37432 \begin_layout Plain Layout
37442 \begin_inset Note Note
37445 \begin_layout Plain Layout
37446 The following will be displayed when the \SpecialChar LaTeX
37459 \begin_layout Standard
37460 You need to install the \SpecialChar LaTeX
37465 to see the following part of this section in the output.
37468 \begin_layout Standard
37472 \begin_layout Plain Layout
37484 \begin_layout Section
37486 \begin_inset Index idx
37489 \begin_layout Plain Layout
37496 \begin_inset Index idx
37499 \begin_layout Plain Layout
37500 Surrounded by text ! Initials
37508 \begin_layout Standard
37509 To use initials, you must have the \SpecialChar LaTeX
37515 \begin_inset Index idx
37518 \begin_layout Plain Layout
37520 -packages ! lettrine
37525 installed and use the module
37529 in your document (menu
37531 Document\SpecialChar menuseparator
37532 Settings\SpecialChar menuseparator
37536 To insert an initial, use the style
37541 This style has a mandatory and two optional arguments.
37542 The arguments are inserted via the
37547 The mandatory argument
37551 contains the letter(s) that is the initial, the argument
37554 \begin_inset space ~
37558 \begin_inset space ~
37563 contains the rest of the word or text of the initial letter(s).
37568 contains parameters to modify the initial.
37569 For more information about the possible parameters see the documentation
37575 \begin_inset CommandInset citation
37582 The style itself contains the text that is surrounding the initial.
37583 The usual style is hereby that the word whose first letter is the initial,
37591 \begin_layout Standard
37592 Here are some examples:
37595 \begin_layout Standard
37599 \begin_layout Plain Layout
37609 \begin_inset Note Note
37612 \begin_layout Plain Layout
37613 The following section will only be displayed when the \SpecialChar LaTeX
37626 \begin_layout Enumerate
37627 No optional argument, the initial is the letter 'I' in the math font
37628 \begin_inset Formula $\mathfrak{Fraktur}$
37635 \begin_layout Initial
37636 \begin_inset Argument 2
37639 \begin_layout Plain Layout
37640 \begin_inset Formula $\mathfrak{I}$
37649 \begin_inset Argument 3
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.
37665 \begin_inset Newpage newpage
37672 \begin_layout Enumerate
37673 Only one line is surrounding the initial, which is formed by two letters
37674 in standard font and no text is printed in small caps:
37678 \begin_layout Initial
37679 \begin_inset Argument 1
37682 \begin_layout Plain Layout
37689 \begin_inset Argument 2
37692 \begin_layout Plain Layout
37698 was in the spring of the year 1894 that all London was interested, and
37699 the fashionable world dismayed, by the murder of the Honourable Ronald
37700 Adair under most unusual and inexplicable circumstances.
37701 The public has already learned those particulars of the crime which came
37702 out in the police investigation, but a good deal was suppressed upon that
37703 occasion, since the case for the prosecution was so overwhelmingly strong
37704 that it was not necessary to bring forward all the facts.
37708 \begin_layout Enumerate
37709 Magenta, hanging initial over 3
37710 \begin_inset space ~
37713 lines in the math font
37714 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37718 \begin_inset Quotes eld
37721 t was in the spring
37722 \begin_inset Quotes erd
37729 ; to color the initial, you must insert this command before the initial:
37730 \begin_inset Newline newline
37744 \begin_inset Newline newline
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
37776 \begin_inset Quotes eld
37780 \begin_inset Quotes erd
37784 \begin_inset Quotes eld
37788 \begin_inset Quotes erd
37792 \begin_inset Quotes eld
37796 \begin_inset Quotes erd
37800 \begin_inset Quotes eld
37804 \begin_inset Quotes erd
37808 \begin_inset Quotes eld
37812 \begin_inset Quotes erd
37815 , and add this command to the document preamble:
37816 \begin_inset Newline newline
37823 @ifundefined{textcolor}
37824 \begin_inset Newline newline
37828 \begin_inset space ~
37833 usepackage{color}}{}
37837 \begin_layout Standard
37841 \begin_layout Plain Layout
37855 \begin_inset Note Note
37858 \begin_layout Plain Layout
37859 makes the initial magenta
37867 \begin_layout Initial
37868 \begin_inset Argument 1
37871 \begin_layout Plain Layout
37872 lines=3, lhang=0.33, loversize=0.25
37878 \begin_inset Argument 2
37881 \begin_layout Plain Layout
37882 \begin_inset Formula $\mathcal{I}$
37891 \begin_inset Argument 3
37894 \begin_layout Plain Layout
37895 t was in the spring
37900 of the year 1894 that all London was interested, and the fashionable world
37901 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37902 and inexplicable circumstances.
37903 The public has already learned those particulars of the crime which came
37904 out in the police investigation, but a good deal was suppressed upon that
37905 occasion, since the case for the prosecution was so overwhelmingly strong
37906 that it was not necessary to bring forward all the facts.
37910 \begin_layout Standard
37914 \begin_layout Plain Layout
37924 \begin_inset Note Note
37927 \begin_layout Plain Layout
37928 The following will be displayed when the \SpecialChar LaTeX
37941 \begin_layout Standard
37942 You need to install the \SpecialChar LaTeX
37947 to see the following part of this section in the output.
37950 \begin_layout Standard
37954 \begin_layout Plain Layout
37966 \begin_layout Chapter
37967 External Document Parts
37968 \begin_inset Index idx
37971 \begin_layout Plain Layout
37972 External Document Parts
37980 \begin_layout Standard
37983 Insert\SpecialChar menuseparator
37986 you can insert external material into your document.
37990 \begin_layout Description
37992 \begin_inset space ~
37995 Document Another \SpecialChar LyX
37996 document; its content is directly inserted to your document.
37999 \begin_layout Description
38001 \begin_inset space ~
38004 Text A text document; each line is inserted in your document as a separate
38008 \begin_layout Description
38010 \begin_inset space ~
38014 \begin_inset space ~
38018 \begin_inset space ~
38021 Lines A text document; text lines are inserted in your document continuously
38022 but an empty text line creates a new paragraph.
38025 \begin_layout Description
38027 \begin_inset space ~
38030 Material Files in various formats.
38033 \begin_layout Description
38035 \begin_inset space ~
38038 Document \SpecialChar LyX
38039 or \SpecialChar LaTeX
38043 \begin_layout Section
38045 \begin_inset Index idx
38048 \begin_layout Plain Layout
38049 External Document Parts ! External Material
38057 \begin_layout Standard
38058 The external material feature allows you to insert files into your document
38059 without converting them to a format that can be read by the document output
38062 takes care of the necessary conversions.
38063 This is similar to images that can be inserted in various image formats
38064 in \SpecialChar LyX
38066 When you have enabled Instant Preview in \SpecialChar LyX
38067 's preferences under
38070 \begin_inset space ~
38074 \begin_inset space ~
38077 feel\SpecialChar menuseparator
38080 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38084 \begin_layout Standard
38085 External material can be inserted via the
38089 dialog that is accessible with the menu
38091 Insert\SpecialChar menuseparator
38092 File\SpecialChar menuseparator
38094 \begin_inset space ~
38100 Currently the following file types (
38107 \begin_layout Description
38109 \begin_inset space ~
38112 diagram This template supports chess position diagrams made with the program
38116 \begin_inset CommandInset href
38119 target "http://en.wikipedia.org/wiki/XBoard"
38128 \begin_layout Description
38129 Date This inserts the date in the form
38134 This is a date inserted as external material:
38135 \begin_inset External
38142 \begin_inset space ~
38146 \begin_inset Note Note
38149 \begin_layout Plain Layout
38150 Remove the protected space when bug 4398 is fixed!
38156 \begin_inset Newline newline
38159 The date is not shown within \SpecialChar LyX
38160 , only in the output.
38161 There are two other methods of inserting a date: Via menu
38163 Insert\SpecialChar menuseparator
38166 and with the \SpecialChar LaTeX
38173 as \SpecialChar TeX
38175 The different methods are compared in Table
38176 \begin_inset space ~
38180 \begin_inset CommandInset ref
38182 reference "tab:Comparison-of-the"
38189 \begin_layout Description
38191 \begin_inset space ~
38194 diagram This template supports diagrams created with the program
38197 \begin_inset CommandInset href
38200 target "http://en.wikipedia.org/wiki/Dia_(software)"
38209 \begin_layout Description
38210 Spreadsheet With this template you can insert spreadsheets
38211 \begin_inset space \thinspace{}
38215 \begin_inset space \thinspace{}
38218 tables in the format of
38221 \begin_inset CommandInset href
38224 target "http://en.wikipedia.org/wiki/Gnumeric"
38231 \begin_inset CommandInset href
38233 name "OpenDocument"
38234 target "http://en.wikipedia.org/wiki/OpenDocument"
38239 \begin_inset CommandInset href
38241 name "Microsoft Office XML"
38242 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38247 \begin_inset CommandInset href
38249 name "Office Open XML"
38250 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38255 For this feature \SpecialChar LyX
38256 must have found the program
38260 during its configuration.
38261 This program is part of Gnumeric, so that you must have Gnumeric installed,
38262 also if you don't have tables in the Gnumeric format.
38263 For examples and possible limitations have a look at \SpecialChar LyX
38271 \begin_layout Description
38273 \begin_inset space ~
38277 \begin_inset space ~
38280 music This template is used for music notation typeset with the program
38281 \begin_inset Newline linebreak
38287 \begin_inset CommandInset href
38290 target "http://en.wikipedia.org/wiki/LilyPond"
38297 For \SpecialChar LyX
38298 's extended support for LilyPond have a look at \SpecialChar LyX
38306 \begin_layout Description
38308 \begin_inset space ~
38311 pages With this template you can insert PDF documents to your document.
38312 To specify the range of pages that should be included, use the option
38322 LaTeX and LyX options
38325 The argument of this option is a comma separated list, containing page
38326 numbers (insert as option
38330 ), ranges of page numbers (
38334 ) or any combination.
38335 To insert empty pages use {}.
38337 \begin_inset space \thinspace{}
38341 \begin_inset space ~
38346 pages={3,{},8-11,15}
38348 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38349 Page ranges are specified in the syntax
38358 This selects all pages from
38371 defaults to the first page; omitting
38375 defaults to the last page of the document.
38376 The last page can also be selected with the keyword
38381 (This is only permitted in a page range.) So
38385 will insert all pages of the document and
38389 will insert all pages in reverse order.
38390 If the pages option is not specified, only the first page of the PDF is
38392 \begin_inset Newline newline
38399 inserts the pages with their original size, if this option is not given,
38400 the pages will be resized to fith the width of the page of your document.
38405 you can specify the width and height of the input pages and their rotation.
38406 If another width than 100
38407 \begin_inset space \thinspace{}
38410 Scale% is used, the option
38414 will be overwritten.
38415 For more info and possible options, have a look into the documentation
38416 of the \SpecialChar LaTeX
38422 \begin_inset CommandInset citation
38429 \begin_inset Index idx
38432 \begin_layout Plain Layout
38434 -packages ! pdfpages
38440 \begin_inset Newline newline
38443 To use this template in a
38447 presentation you need to first insert an
38451 environment and in a subsequent paragraph a \SpecialChar TeX
38452 Code box containing the command
38457 setbeamertemplate{background canvas}{}
38460 Then you can insert as many paragraphs containing the PDFPages template
38462 Behind the included PDF pages you can resume the Beamer presentation by
38463 beginning a new frame or by starting a new section.
38464 To avoid stray blank pages prior to the PDF pages, make sure to use the
38469 alignment for the paragraph containing the template.
38470 \begin_inset Newline newline
38473 Here is an included PDF which is rotated by -5°:
38474 \begin_inset External
38476 filename clipart/Abstract.pdf
38477 extra LaTeX "noautoscale, pages=-"
38479 rotateOrigin bottomleft
38486 \begin_layout Description
38488 \begin_inset space ~
38491 image This can be used for bitmap images.
38492 The image can be treated in the
38496 dialog like the images that are usually included via the
38500 dialog as described in section
38501 \begin_inset space ~
38505 \begin_inset CommandInset ref
38507 reference "sec:Graphics-Dialog"
38512 Here is an inserted raster image:
38513 \begin_inset External
38514 template RasterImage
38515 filename clipart/ToolbarEnvBox.png
38522 \begin_layout Description
38524 \begin_inset space ~
38527 graphics This can be used for vector graphics.
38528 The image can be treated in the
38532 dialog like the images that are usually included via the
38536 dialog as described in section
38537 \begin_inset space ~
38541 \begin_inset CommandInset ref
38543 reference "sec:Graphics-Dialog"
38548 Here is an inserted vector graphics:
38549 \begin_inset External
38550 template VectorGraphics
38551 filename clipart/SVG-Drawing.svg
38559 \begin_layout Description
38561 \begin_inset space ~
38564 figure This template supports images created with the program
38567 \begin_inset CommandInset href
38570 target "http://en.wikipedia.org/wiki/Xfig"
38579 \begin_layout Standard
38580 \begin_inset Float table
38586 \begin_layout Plain Layout
38587 \begin_inset Caption Standard
38589 \begin_layout Plain Layout
38590 \begin_inset CommandInset label
38592 name "tab:Comparison-of-the"
38596 Comparison of the date input methods.
38604 \begin_layout Plain Layout
38606 \begin_inset Tabular
38607 <lyxtabular version="3" rows="4" columns="4">
38608 <features tabularvalignment="middle">
38609 <column alignment="center" valignment="top">
38610 <column alignment="center" valignment="top">
38611 <column alignment="center" valignment="top">
38612 <column alignment="center" valignment="top">
38614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38617 \begin_layout Plain Layout
38623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38626 \begin_layout Plain Layout
38629 External Material\SpecialChar menuseparator
38635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38638 \begin_layout Plain Layout
38641 Insert\SpecialChar menuseparator
38647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38650 \begin_layout Plain Layout
38662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38665 \begin_layout Plain Layout
38672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38675 \begin_layout Plain Layout
38681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38684 \begin_layout Plain Layout
38690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38693 \begin_layout Plain Layout
38694 as \SpecialChar TeX
38702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38705 \begin_layout Plain Layout
38712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38715 \begin_layout Plain Layout
38721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38724 \begin_layout Plain Layout
38730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38733 \begin_layout Plain Layout
38741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38744 \begin_layout Plain Layout
38750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38753 \begin_layout Plain Layout
38759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38762 \begin_layout Plain Layout
38768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38771 \begin_layout Plain Layout
38790 \begin_layout Standard
38791 When you use the option
38803 dialog, only the path to the inserted file is shown in the output.
38804 \begin_inset Newline newline
38807 External material is displayed in \SpecialChar LyX
38808 either as a box like this:
38809 \begin_inset Graphics
38810 filename clipart/ExternalMaterial.png
38812 scaleBeforeRotation
38816 or as image, depending on the option
38822 LaTeX and LyX options
38827 \begin_layout Standard
38834 manual explains how you can define your own templates.
38837 \begin_layout Section
38839 \begin_inset CommandInset label
38841 name "sec:Child-Documents"
38846 \begin_inset Index idx
38849 \begin_layout Plain Layout
38850 External Document Parts ! Child Documents
38856 \begin_inset Index idx
38859 \begin_layout Plain Layout
38868 \begin_layout Standard
38869 Child documents are used if you have a long document consisting of several
38870 larger parts or sections.
38871 For maintenance it is often useful and sometimes even required to split
38872 the document into several files that can be revised separately.
38873 The different documents are then the so called
38874 \begin_inset Quotes eld
38878 \begin_inset Quotes erd
38881 , and a master document connects them to print the full document or parts
38883 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38885 the bibliography, and labels for cross-references.
38888 \begin_layout Standard
38889 To be able to work on child documents without the need to open their master,
38890 specify in the child document the master in the menu
38892 Document\SpecialChar menuseparator
38893 Settings\SpecialChar menuseparator
38895 \begin_inset space ~
38901 This master document will then be used in the background by \SpecialChar LyX
38903 the child document.
38906 \begin_layout Standard
38907 Included documents are displayed in \SpecialChar LyX
38908 as a box like this:
38909 \begin_inset Graphics
38910 filename clipart/ChildDocument.png
38911 scaleBeforeRotation
38915 To include child documents in a master document use the menu
38917 Insert\SpecialChar menuseparator
38918 File\SpecialChar menuseparator
38920 \begin_inset space ~
38926 A dialog pops up where you can choose between four include methods:
38929 \begin_layout Description
38930 Include You can include \SpecialChar LyX
38931 and \SpecialChar LaTeX
38941 dialog, the included document will be opened in \SpecialChar LyX
38942 in a new file tab so that
38944 \begin_inset Newline newline
38950 \begin_layout Standard
38951 Here is a child document inserted using
38956 \begin_inset CommandInset include
38957 LatexCommand include
38958 filename "DummyDocument1.lyx"
38965 \begin_layout Standard
38966 The section numbering includes the sections of the included files in the
38967 order they are inserted in the master document.
38968 The included example document has for example a subsection that is numbered
38969 as a subsection of this section.
38970 Labels of included documents can be referenced: Subsection
38971 \begin_inset space ~
38975 \begin_inset CommandInset ref
38977 reference "subsec:External-Subsection-1"
38984 \begin_layout Standard
38985 The preamble of the child document is ignored; only the preamble of the
38986 master document is used.
38987 Branches in child documents will be ignored by the master document when
38988 the master document does not have a branch with the same name.
38989 Included documents are inserted starting on a new page and ending with
38993 \begin_layout Standard
38994 \begin_inset Note Greyedout
38997 \begin_layout Plain Layout
39002 If you have included a \SpecialChar LyX
39003 or \SpecialChar LaTeX
39004 file, you are warned when you export/view the
39005 document in case the child document uses another document class than the
39006 master document as this will lead to unexpected outputs.
39014 \begin_layout Description
39015 Input This method is very similar to the Include method.
39016 The differences are:
39020 \begin_layout Itemize
39021 Input files don't start with a new page and don't end with a page break.
39024 \begin_layout Itemize
39025 Input files can be previewed in \SpecialChar LyX
39029 \begin_inset space ~
39034 is enabled in \SpecialChar LyX
39035 's preferences under
39038 \begin_inset space ~
39042 \begin_inset space ~
39045 feel\SpecialChar menuseparator
39051 \begin_layout Itemize
39052 You cannot exclude Input files via the menu
39054 Document\SpecialChar menuseparator
39055 Settings\SpecialChar menuseparator
39062 \begin_layout Standard
39063 Here is a child document inserted using
39068 \begin_inset CommandInset include
39070 filename "DummyDocument2.lyx"
39077 \begin_layout Description
39078 Verbatim With this method any text file can be included.
39079 The file is shown in the output with its source code; no command used in
39080 the text is invoked.
39081 You can use the option
39083 Mark spaces in output
39085 that displays the character
39086 \begin_inset Quotes eld
39093 \begin_layout Plain Layout
39103 \begin_inset Quotes erd
39106 for every space character in the source code.
39107 The difference from the method via the menu
39109 Insert\SpecialChar menuseparator
39110 File\SpecialChar menuseparator
39112 \begin_inset space ~
39117 is that the document content is not shown in \SpecialChar LyX
39121 \begin_layout Standard
39122 Here is a child document inserted as Verbatim:
39123 \begin_inset CommandInset include
39124 LatexCommand verbatiminput
39125 filename "DummyTextDocument.txt"
39130 \begin_inset VSpace bigskip
39133 Here is a child document inserted as Verbatim using the
39135 Mark spaces in output
39138 \begin_inset CommandInset include
39139 LatexCommand verbatiminput*
39140 filename "DummyTextDocument.txt"
39147 \begin_layout Standard
39148 \begin_inset VSpace bigskip
39154 \begin_layout Standard
39155 \begin_inset Note Greyedout
39158 \begin_layout Plain Layout
39163 As you can see in the examples above, the text of the documents included
39168 is not broken at the end of the document lines.
39176 \begin_layout Description
39177 Listings This type is described in chapter
39178 \begin_inset space ~
39182 \begin_inset CommandInset ref
39184 reference "cha:Program-Code-Listings"
39191 \begin_layout Standard
39192 \begin_inset Note Greyedout
39195 \begin_layout Plain Layout
39200 Including the same document twice in a document using different methods
39201 could cause \SpecialChar LaTeX
39210 \begin_layout Standard
39211 If you want to view/export only selected children of your master document,
39212 either because you want to save compiling time or because you want to distribut
39213 e single chapters of the book you are just writing, you can exclude children
39215 This is done via the menu
39217 Document\SpecialChar menuseparator
39218 Settings\SpecialChar menuseparator
39222 You can exclude\SpecialChar breakableslash
39223 include children by double-clicking on the
39227 column of the respective child document in the list (note that this only
39228 works for documents embedded via
39229 \begin_inset Quotes eld
39233 \begin_inset Quotes erd
39237 \begin_inset Quotes eld
39241 \begin_inset Quotes erd
39247 Maintain counters and references
39249 is enabled, \SpecialChar LyX
39250 will assure that all page numbers, references etc.
39251 \begin_inset space ~
39254 are correct as if the whole document was processed.
39255 This is useful if you want the selected sub-documents to look exactly as
39256 in the context of the whole document.
39257 However, \SpecialChar LyX
39258 needs to process the whole document in the background for this
39260 So if you want to save compile time and if counters and references do not
39261 need to be correct, disable this checkbox.
39264 \begin_layout Standard
39265 Alternatively, you can put each included file into a branch.
39269 \begin_layout Plain Layout
39270 Branches are described in section
39274 of the \SpecialChar LyX
39284 By enabling\SpecialChar breakableslash
39285 disabling branches you can decide which included files will
39286 appear in the output.
39287 This has the advantage that it also works with Input'ed sub-documents.
39288 However, counters and references will not be maintained with this approach.
39291 \begin_layout Chapter
39292 Program Code Listings
39293 \begin_inset CommandInset label
39295 name "cha:Program-Code-Listings"
39300 \begin_inset Index idx
39303 \begin_layout Plain Layout
39310 \begin_inset Index idx
39313 \begin_layout Plain Layout
39320 \begin_inset Index idx
39323 \begin_layout Plain Layout
39332 \begin_layout Standard
39333 To include and typeset program code you can use the
39337 inset that can be inserted via the menu
39339 Insert\SpecialChar menuseparator
39343 The \SpecialChar LaTeX
39349 \begin_inset Index idx
39352 \begin_layout Plain Layout
39354 -packages ! listings
39359 provides a powerful and flexible way to insert program source code into
39363 \begin_layout Standard
39364 Right-clicking on a listings inset opens the context menu containing where
39365 you can set the listings format.
39368 \begin_layout Standard
39369 By default, a listing starts a new paragraph in the output.
39370 The placement option
39373 \begin_inset space ~
39378 prints the listing inline like this:
39379 \begin_inset listings
39380 lstparams "language={C++}"
39384 \begin_layout Plain Layout
39392 \begin_inset Newline newline
39399 creates a listings float where you can specify the placement options
39400 \begin_inset Quotes eld
39408 \begin_inset Quotes erd
39412 \begin_inset Quotes eld
39420 \begin_inset Quotes erd
39424 \begin_inset Quotes eld
39432 \begin_inset Quotes erd
39436 \begin_inset Quotes eld
39444 \begin_inset Quotes erd
39447 corresponding to the float placement options described in section
39448 \begin_inset space ~
39452 \begin_inset CommandInset ref
39454 reference "sec:Float-Placement"
39459 The placement options can be mixed and are inserted without any separation,
39461 \begin_inset space \thinspace{}
39465 \begin_inset space \space{}
39469 \begin_inset Quotes eld
39477 \begin_inset Quotes erd
39482 \begin_inset Quotes eld
39486 \begin_inset Quotes erd
39489 has sometimes no effect, but you don't need to use the
39493 option in this case as also non-float listings can have captions and be
39497 \begin_layout Standard
39498 You can add captions to listings with the menu
39500 Insert\SpecialChar menuseparator
39504 Listings can be referenced like floats: Listing
39505 \begin_inset space ~
39509 \begin_inset CommandInset ref
39511 reference "lst:Example-Listing"
39516 A list of listings which contains all listings with captions can be created
39519 Insert\SpecialChar menuseparator
39521 \begin_inset space ~
39525 \begin_inset space ~
39528 TOC\SpecialChar menuseparator
39532 The list entries are the listing caption and the listing number.
39535 \begin_layout Standard
39536 \begin_inset listings
39537 lstparams "language=Python"
39541 \begin_layout Plain Layout
39543 \begin_inset Caption Standard
39545 \begin_layout Plain Layout
39546 \begin_inset CommandInset label
39548 name "lst:Example-Listing"
39552 Example Listing float
39557 # Example listing float
39560 \begin_layout Plain Layout
39565 \begin_layout Plain Layout
39567 'this is a python function'
39570 \begin_layout Plain Layout
39580 \begin_layout Standard
39581 When you have set a programming language in the listings dialog, the keywords
39582 of this language will be recognized and specially typeset in the output.
39583 In the example listings the Python keyword
39584 \begin_inset Quotes eld
39588 \begin_inset Quotes erd
39591 is recognized and printed bold in the output.
39594 \begin_layout Standard
39595 \begin_inset Note Greyedout
39598 \begin_layout Plain Layout
39603 If you don't get bold keywords when using typewriter fonts, your
39607 font probably doesn't provide a bold shape.
39608 In this case select a different one in the menu
39610 Document\SpecialChar menuseparator
39611 Settings\SpecialChar menuseparator
39623 provide bold shapes.)
39631 \begin_layout Standard
39635 \begin_inset space ~
39640 of the listings dialog you can specify the line numbering style.
39641 You can insert a number to specify which lines are numbered in the field
39648 \begin_inset space \thinspace{}
39652 \begin_inset space \space{}
39656 \begin_inset Quotes eld
39660 \begin_inset Quotes erd
39663 , only every 3rd line will be numbered.
39666 \begin_layout Standard
39667 You can furthermore specify a range of lines; only these will then appear
39671 Extended character table
39673 should be used when you use national characters like the German umlauts
39675 \begin_inset Newline newline
39678 Here is an example listing with left line numbering, step
39679 \begin_inset Quotes eld
39683 \begin_inset Quotes erd
39687 \begin_inset Quotes eld
39691 \begin_inset Quotes erd
39695 \begin_inset Quotes eld
39698 Extended character table
39699 \begin_inset Quotes erd
39703 \begin_inset Quotes eld
39707 \begin_inset space ~
39711 \begin_inset space ~
39715 \begin_inset Quotes erd
39719 \begin_inset space \thinspace{}
39723 \begin_inset space \thinspace{}
39729 \begin_layout Standard
39730 \begin_inset listings
39731 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39735 \begin_layout Plain Layout
39740 \begin_layout Plain Layout
39742 'this is a python function'
39745 \begin_layout Plain Layout
39750 \begin_layout Plain Layout
39755 \begin_layout Plain Layout
39757 'This is a German word: Tschüß'
39760 \begin_layout Plain Layout
39765 \begin_layout Plain Layout
39770 \begin_layout Plain Layout
39772 'this is a python function'
39775 \begin_layout Plain Layout
39785 \begin_layout Standard
39786 When you have tabulators in your listing, you can specify the number of
39787 characters that are spanned by a tabulator in the field
39790 \begin_inset space ~
39798 \begin_layout Standard
39799 \begin_inset Note Greyedout
39802 \begin_layout Plain Layout
39807 Due to a bug in the
39811 package the line numbering is shifted by a line by every previous listing.
39812 That's the reason why the lines 2 and 5 are numbered in the above listing
39813 and not the lines 3 and 6.
39821 \begin_layout Standard
39822 \begin_inset VSpace bigskip
39828 \begin_layout Standard
39829 It is also possible to print lines from a file as listing.
39830 To do this, use the menu
39832 Insert\SpecialChar menuseparator
39833 File\SpecialChar menuseparator
39836 and choose the type
39844 \begin_layout Plain Layout
39845 The other child document types are described in section
39846 \begin_inset space ~
39850 \begin_inset CommandInset ref
39852 reference "sec:Child-Documents"
39861 In the child document dialog you can specify the listing parameters in
39863 To show a list of all available parameters, type in a question mark
39864 \begin_inset Quotes eld
39868 \begin_inset Quotes erd
39874 \begin_layout Standard
39875 To reference child document listings, write a label text into the corresponding
39876 field of the child document dialog.
39877 The label can then be referenced using the menu
39879 Insert\SpecialChar menuseparator
39885 \begin_layout Standard
39887 \begin_inset space ~
39891 \begin_inset CommandInset ref
39893 reference "lst:file-listing"
39897 is an example for a listing of a file; there the lines 10
39898 \begin_inset space \thinspace{}
39902 \begin_inset space \thinspace{}
39905 15 of this \SpecialChar LyX
39909 \begin_layout Standard
39910 \begin_inset CommandInset include
39911 LatexCommand lstinputlisting
39912 filename "EmbeddedObjects.lyx"
39913 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39920 \begin_layout Standard
39921 \begin_inset VSpace bigskip
39927 \begin_layout Standard
39928 Inserting a formula into a listing can be done the following way:
39931 \begin_layout Enumerate
39932 Open the listings dialog and add
39933 \begin_inset Newline newline
39941 \begin_inset Newline newline
39944 to the field of the
39951 \begin_layout Enumerate
39952 Create a formula outside the listing
39955 \begin_layout Enumerate
39956 Copy the content of the formula (not the formula inset) to the clipboard
39966 \begin_layout Enumerate
39967 In the listing write
39968 \begin_inset Quotes eld
39976 \begin_inset Quotes erd
39979 and copy from the clipboard between the dollar-signs (shortcut
39988 \begin_layout Standard
39989 \begin_inset listings
39990 lstparams "language=Python,mathescape=true"
39994 \begin_layout Plain Layout
39996 \begin_inset Caption Standard
39998 \begin_layout Plain Layout
39999 Example Listing float containing a formula
40004 # Example listing float
40007 \begin_layout Plain Layout
40012 \begin_layout Plain Layout
40025 \begin_layout Plain Layout
40035 \begin_layout Standard
40036 \begin_inset VSpace bigskip
40042 \begin_layout Standard
40043 Global listings settings can be set in the
40045 Document\SpecialChar menuseparator
40046 Settings\SpecialChar menuseparator
40050 To get there a list of available options, type in a question mark
40051 \begin_inset Quotes eld
40055 \begin_inset Quotes erd
40061 \begin_layout Standard
40062 For more information about the
40066 package, we refer to its documentation
40067 \begin_inset CommandInset citation
40076 \begin_layout Standard
40077 \begin_inset Newpage newpage
40083 \begin_layout Chapter
40085 Units available in \SpecialChar LyX
40087 \begin_inset Index idx
40090 \begin_layout Plain Layout
40097 \begin_inset CommandInset label
40099 name "cha:Units-available-in"
40106 \begin_layout Standard
40107 To understand the units described in this documentation, Table
40108 \begin_inset space ~
40112 \begin_inset CommandInset ref
40114 reference "tab:Units"
40118 explains all units available in \SpecialChar LyX
40122 \begin_layout Standard
40123 \begin_inset Float table
40129 \begin_layout Plain Layout
40130 \begin_inset Caption Standard
40132 \begin_layout Plain Layout
40133 \begin_inset CommandInset label
40147 \begin_layout Plain Layout
40148 \begin_inset VSpace medskip
40154 \begin_layout Plain Layout
40156 \begin_inset Tabular
40157 <lyxtabular version="3" rows="20" columns="3">
40158 <features tabularvalignment="middle">
40159 <column alignment="center" valignment="top">
40160 <column alignment="center" valignment="top">
40161 <column alignment="center" valignment="top">
40163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40166 \begin_layout Plain Layout
40172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40175 \begin_layout Plain Layout
40181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40184 \begin_layout Plain Layout
40193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40196 \begin_layout Plain Layout
40202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40205 \begin_layout Plain Layout
40211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40214 \begin_layout Plain Layout
40222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40225 \begin_layout Plain Layout
40231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40234 \begin_layout Plain Layout
40240 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40243 \begin_layout Plain Layout
40251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40254 \begin_layout Plain Layout
40260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40263 \begin_layout Plain Layout
40269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40272 \begin_layout Plain Layout
40280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40283 \begin_layout Plain Layout
40289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40292 \begin_layout Plain Layout
40294 \begin_inset space \thinspace{}
40298 \begin_inset space \thinspace{}
40306 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40309 \begin_layout Plain Layout
40317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40320 \begin_layout Plain Layout
40326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40329 \begin_layout Plain Layout
40331 \begin_inset space \thinspace{}
40335 \begin_inset space \thinspace{}
40343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40346 \begin_layout Plain Layout
40354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40357 \begin_layout Plain Layout
40363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40366 \begin_layout Plain Layout
40367 scaled point (65536
40368 \begin_inset space \thinspace{}
40372 \begin_inset space \thinspace{}
40380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40383 \begin_layout Plain Layout
40391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40394 \begin_layout Plain Layout
40400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40403 \begin_layout Plain Layout
40405 \begin_inset space \thinspace{}
40409 \begin_inset space \thinspace{}
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" usebox="none">
40440 \begin_layout Plain Layout
40442 \begin_inset space \thinspace{}
40446 \begin_inset Formula $\approx$
40450 \begin_inset space \thinspace{}
40458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40461 \begin_layout Plain Layout
40469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40472 \begin_layout Plain Layout
40478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40481 \begin_layout Plain Layout
40483 \begin_inset space \thinspace{}
40487 \begin_inset space \thinspace{}
40495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40498 \begin_layout Plain Layout
40506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40509 \begin_layout Plain Layout
40515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40518 \begin_layout Plain Layout
40519 % of original image width
40524 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40527 \begin_layout Plain Layout
40535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40538 \begin_layout Plain Layout
40544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40547 \begin_layout Plain Layout
40553 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40556 \begin_layout Plain Layout
40566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40569 \begin_layout Plain Layout
40575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40578 \begin_layout Plain Layout
40584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40587 \begin_layout Plain Layout
40597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40600 \begin_layout Plain Layout
40606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40609 \begin_layout Plain Layout
40615 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40618 \begin_layout Plain Layout
40628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40631 \begin_layout Plain Layout
40637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40640 \begin_layout Plain Layout
40646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40649 \begin_layout Plain Layout
40659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40662 \begin_layout Plain Layout
40668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40671 \begin_layout Plain Layout
40677 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40680 \begin_layout Plain Layout
40690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40693 \begin_layout Plain Layout
40699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40702 \begin_layout Plain Layout
40708 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40711 \begin_layout Plain Layout
40721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40724 \begin_layout Plain Layout
40730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40733 \begin_layout Plain Layout
40743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40746 \begin_layout Plain Layout
40754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40757 \begin_layout Plain Layout
40763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40766 \begin_layout Plain Layout
40776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40779 \begin_layout Plain Layout
40787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40790 \begin_layout Plain Layout
40796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40799 \begin_layout Plain Layout
40801 \begin_inset space \thinspace{}
40805 \begin_inset space \thinspace{}
40813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40816 \begin_layout Plain Layout
40835 \begin_layout Chapter
40836 Output File Formats with Graphics
40837 \begin_inset CommandInset label
40839 name "cha:Output-File-Formats"
40846 \begin_layout Section
40848 \begin_inset Index idx
40851 \begin_layout Plain Layout
40858 \begin_inset Index idx
40861 \begin_layout Plain Layout
40866 \begin_layout Plain Layout
40877 \begin_layout Plain Layout
40892 \begin_layout Standard
40893 This file type has the extension
40894 \begin_inset Quotes eld
40902 \begin_inset Quotes erd
40907 \begin_inset Quotes eld
40911 \begin_inset Quotes erd
40914 (DVI), because it is completely portable; you can move them from one machine
40915 to another without needing to do any sort of conversion.
40916 At the time when this file-format was developed, this was no matter of
40918 DVIs are used for quick previews and as pre-stage for other output formats,
40922 \begin_layout Standard
40923 \begin_inset Note Greyedout
40926 \begin_layout Plain Layout
40931 DVI-files do not contain images; they will only be a linked.
40936 So don't forget this, if you move your
40940 file to another computer.
40941 This property can also slow down your computer when you view the DVI, because
40942 the DVI-viewer has to convert the image in the background to make it visible
40943 when you scroll in the DVI.
40944 So it is recommended that you use PDF for files with many images.
40947 \begin_layout Standard
40948 You can export your document to DVI by using the menu
40950 File\SpecialChar menuseparator
40951 Export\SpecialChar menuseparator
40955 You can view your document as DVI via the
40962 \begin_layout Section
40964 \begin_inset Index idx
40967 \begin_layout Plain Layout
40968 File Formats ! PostScript
40974 \begin_inset Index idx
40977 \begin_layout Plain Layout
40982 \begin_layout Plain Layout
40993 \begin_layout Plain Layout
41008 \begin_layout Standard
41009 This file type has the extension
41010 \begin_inset Quotes eld
41018 \begin_inset Quotes erd
41022 PostScript was developed by the company
41026 as a printer language.
41027 The file therefore contains commands that the printer uses to print the
41029 PostScript can be seen as a
41030 \begin_inset Quotes eld
41033 programming language
41034 \begin_inset Quotes erd
41037 ; you can calculate with it and draw diagrams and images.
41041 \begin_layout Plain Layout
41042 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
41049 \begin_inset CommandInset citation
41060 Due to this ability, the files are often bigger than PDFs.
41063 \begin_layout Standard
41064 PostScript can only contain images in the format
41065 \begin_inset Quotes eld
41068 Encapsulated PostScript
41069 \begin_inset Quotes erd
41072 (EPS, file extension
41073 \begin_inset Quotes eld
41081 \begin_inset Quotes erd
41085 As \SpecialChar LyX
41086 allows you to use any known image format in your document, it has to
41087 convert images in the background to EPS.
41089 \begin_inset space ~
41093 \begin_inset space ~
41096 images in your document, \SpecialChar LyX
41098 \begin_inset space ~
41101 conversions whenever you view or export your document.
41102 This will slow down your work flow with \SpecialChar LyX
41104 So if you plan to use PostScript, you can insert your images directly as
41105 EPS to avoid this problem.
41108 \begin_layout Standard
41109 You can export your document to PostScript using the menu
41111 File\SpecialChar menuseparator
41112 Export\SpecialChar menuseparator
41116 You can view your document as PostScript via the
41123 \begin_layout Section
41125 \begin_inset Index idx
41128 \begin_layout Plain Layout
41135 \begin_inset Index idx
41138 \begin_layout Plain Layout
41147 \begin_layout Standard
41148 This file type has the extension
41149 \begin_inset Quotes eld
41157 \begin_inset Quotes erd
41162 \begin_inset Quotes eld
41165 Portable Document Format
41166 \begin_inset Quotes erd
41169 (PDF) was developed by
41173 as a derivative of PostScript.
41174 It is more compressed and it uses fewer commands than PostScript.
41176 \begin_inset Quotes eld
41180 \begin_inset Quotes erd
41183 implies, it can be processed at any computer system and the printed output
41184 looks exactly the same.
41187 \begin_layout Standard
41188 PDF can contain images in its own PDF format, in the format
41189 \begin_inset Quotes eld
41192 Joint Photographic Experts Group
41193 \begin_inset Quotes erd
41196 (JPG, file extension
41197 \begin_inset Quotes eld
41205 \begin_inset Quotes erd
41209 \begin_inset Quotes eld
41217 \begin_inset Quotes erd
41220 ), and in the format
41221 \begin_inset Quotes eld
41224 Portable Network Graphics
41225 \begin_inset Quotes erd
41228 (PNG, file extension
41229 \begin_inset Quotes eld
41237 \begin_inset Quotes erd
41241 Nevertheless you can use any other image format, because \SpecialChar LyX
41243 in the background to one of these formats.
41244 But as described in the section about PostScript, the image conversion
41245 will slow down your work flow.
41246 So it is recommended that you use images in one of the three mentioned
41250 \begin_layout Standard
41251 You can export your document to PDF via the menu
41253 File\SpecialChar menuseparator
41256 in three different ways:
41259 \begin_layout Description
41261 \begin_inset space ~
41264 (ps2pdf) This uses the program
41268 that creates a PDF from a PostScript-version of your file.
41269 The PostScript-version is produced by the program
41273 which uses a DVI-version as intermediate step.
41274 So this export variant consists of three conversions.
41277 \begin_layout Description
41279 \begin_inset space ~
41282 (dvipdfm) This uses the program
41286 that converts your file in the background to DVI and in a second step to
41290 \begin_layout Description
41292 \begin_inset space ~
41295 (pdflatex) This uses the program
41299 that converts your file directly to PDF.
41302 \begin_layout Standard
41303 It is recommended that you use
41306 \begin_inset space ~
41315 supports all features of actual PDF-versions, is quick and works stable.
41320 is not under development and therefore a bit outdated.
41323 \begin_layout Standard
41324 You can view your document as PDF via the
41328 menu or by using a toolbar button.
41331 \begin_layout Chapter
41332 List of dvips color names
41333 \begin_inset CommandInset label
41335 name "chap:List-of-dvips-colornames"
41342 \begin_layout Standard
41343 \begin_inset Tabular
41344 <lyxtabular version="3" rows="17" columns="4">
41345 <features tabularvalignment="middle">
41346 <column alignment="left" valignment="top" width="0pt">
41347 <column alignment="left" valignment="top" width="0pt">
41348 <column alignment="left" valignment="top" width="0pt">
41349 <column alignment="left" valignment="top" width="0pt">
41351 <cell alignment="left" valignment="top" usebox="none">
41354 \begin_layout Plain Layout
41358 \begin_layout Plain Layout
41371 \begin_layout Plain Layout
41382 \begin_layout Plain Layout
41394 <cell alignment="left" valignment="top" usebox="none">
41397 \begin_layout Plain Layout
41401 \begin_layout Plain Layout
41414 \begin_layout Plain Layout
41425 \begin_layout Plain Layout
41437 <cell alignment="left" valignment="top" usebox="none">
41440 \begin_layout Plain Layout
41444 \begin_layout Plain Layout
41457 \begin_layout Plain Layout
41468 \begin_layout Plain Layout
41480 <cell alignment="left" valignment="top" usebox="none">
41483 \begin_layout Plain Layout
41487 \begin_layout Plain Layout
41500 \begin_layout Plain Layout
41511 \begin_layout Plain Layout
41525 <cell alignment="center" valignment="top" usebox="none">
41528 \begin_layout Plain Layout
41532 \begin_layout Plain Layout
41545 \begin_layout Plain Layout
41553 \begin_inset Phantom Phantom
41556 \begin_layout Plain Layout
41566 \begin_layout Plain Layout
41578 <cell alignment="center" valignment="top" usebox="none">
41581 \begin_layout Plain Layout
41585 \begin_layout Plain Layout
41598 \begin_layout Plain Layout
41606 \begin_inset Phantom Phantom
41609 \begin_layout Plain Layout
41619 \begin_layout Plain Layout
41631 <cell alignment="center" valignment="top" usebox="none">
41634 \begin_layout Plain Layout
41638 \begin_layout Plain Layout
41651 \begin_layout Plain Layout
41659 \begin_inset Phantom Phantom
41662 \begin_layout Plain Layout
41672 \begin_layout Plain Layout
41684 <cell alignment="center" valignment="top" usebox="none">
41687 \begin_layout Plain Layout
41691 \begin_layout Plain Layout
41704 \begin_layout Plain Layout
41712 \begin_inset Phantom Phantom
41715 \begin_layout Plain Layout
41725 \begin_layout Plain Layout
41739 <cell alignment="left" valignment="top" usebox="none">
41742 \begin_layout Plain Layout
41746 \begin_layout Plain Layout
41759 \begin_layout Plain Layout
41767 \begin_inset Phantom Phantom
41770 \begin_layout Plain Layout
41780 \begin_layout Plain Layout
41792 <cell alignment="left" valignment="top" usebox="none">
41795 \begin_layout Plain Layout
41799 \begin_layout Plain Layout
41812 \begin_layout Plain Layout
41820 \begin_inset Phantom Phantom
41823 \begin_layout Plain Layout
41833 \begin_layout Plain Layout
41845 <cell alignment="left" valignment="top" usebox="none">
41848 \begin_layout Plain Layout
41852 \begin_layout Plain Layout
41865 \begin_layout Plain Layout
41873 \begin_inset Phantom Phantom
41876 \begin_layout Plain Layout
41886 \begin_layout Plain Layout
41898 <cell alignment="left" valignment="top" usebox="none">
41901 \begin_layout Plain Layout
41905 \begin_layout Plain Layout
41918 \begin_layout Plain Layout
41926 \begin_inset Phantom Phantom
41929 \begin_layout Plain Layout
41939 \begin_layout Plain Layout
41953 <cell alignment="left" valignment="top" usebox="none">
41956 \begin_layout Plain Layout
41960 \begin_layout Plain Layout
41973 \begin_layout Plain Layout
41981 \begin_inset Phantom Phantom
41984 \begin_layout Plain Layout
41994 \begin_layout Plain Layout
42006 <cell alignment="left" valignment="top" usebox="none">
42009 \begin_layout Plain Layout
42013 \begin_layout Plain Layout
42026 \begin_layout Plain Layout
42034 \begin_inset Phantom Phantom
42037 \begin_layout Plain Layout
42047 \begin_layout Plain Layout
42059 <cell alignment="left" valignment="top" usebox="none">
42062 \begin_layout Plain Layout
42066 \begin_layout Plain Layout
42079 \begin_layout Plain Layout
42087 \begin_inset Phantom Phantom
42090 \begin_layout Plain Layout
42100 \begin_layout Plain Layout
42112 <cell alignment="left" valignment="top" usebox="none">
42115 \begin_layout Plain Layout
42119 \begin_layout Plain Layout
42132 \begin_layout Plain Layout
42140 \begin_inset Phantom Phantom
42143 \begin_layout Plain Layout
42153 \begin_layout Plain Layout
42167 <cell alignment="left" valignment="top" usebox="none">
42170 \begin_layout Plain Layout
42174 \begin_layout Plain Layout
42187 \begin_layout Plain Layout
42195 \begin_inset Phantom Phantom
42198 \begin_layout Plain Layout
42208 \begin_layout Plain Layout
42220 <cell alignment="left" valignment="top" usebox="none">
42223 \begin_layout Plain Layout
42227 \begin_layout Plain Layout
42240 \begin_layout Plain Layout
42248 \begin_inset Phantom Phantom
42251 \begin_layout Plain Layout
42261 \begin_layout Plain Layout
42273 <cell alignment="left" valignment="top" usebox="none">
42276 \begin_layout Plain Layout
42280 \begin_layout Plain Layout
42293 \begin_layout Plain Layout
42301 \begin_inset Phantom Phantom
42304 \begin_layout Plain Layout
42314 \begin_layout Plain Layout
42326 <cell alignment="left" valignment="top" usebox="none">
42329 \begin_layout Plain Layout
42333 \begin_layout Plain Layout
42346 \begin_layout Plain Layout
42354 \begin_inset Phantom Phantom
42357 \begin_layout Plain Layout
42367 \begin_layout Plain Layout
42381 <cell alignment="left" valignment="top" usebox="none">
42384 \begin_layout Plain Layout
42388 \begin_layout Plain Layout
42401 \begin_layout Plain Layout
42409 \begin_inset Phantom Phantom
42412 \begin_layout Plain Layout
42422 \begin_layout Plain Layout
42434 <cell alignment="left" valignment="top" usebox="none">
42437 \begin_layout Plain Layout
42441 \begin_layout Plain Layout
42454 \begin_layout Plain Layout
42462 \begin_inset Phantom Phantom
42465 \begin_layout Plain Layout
42475 \begin_layout Plain Layout
42487 <cell alignment="left" valignment="top" usebox="none">
42490 \begin_layout Plain Layout
42494 \begin_layout Plain Layout
42507 \begin_layout Plain Layout
42515 \begin_inset Phantom Phantom
42518 \begin_layout Plain Layout
42528 \begin_layout Plain Layout
42540 <cell alignment="left" valignment="top" usebox="none">
42543 \begin_layout Plain Layout
42547 \begin_layout Plain Layout
42560 \begin_layout Plain Layout
42568 \begin_inset Phantom Phantom
42571 \begin_layout Plain Layout
42581 \begin_layout Plain Layout
42595 <cell alignment="center" valignment="top" usebox="none">
42598 \begin_layout Plain Layout
42602 \begin_layout Plain Layout
42615 \begin_layout Plain Layout
42623 \begin_inset Phantom Phantom
42626 \begin_layout Plain Layout
42636 \begin_layout Plain Layout
42648 <cell alignment="center" valignment="top" usebox="none">
42651 \begin_layout Plain Layout
42655 \begin_layout Plain Layout
42668 \begin_layout Plain Layout
42676 \begin_inset Phantom Phantom
42679 \begin_layout Plain Layout
42689 \begin_layout Plain Layout
42701 <cell alignment="center" valignment="top" usebox="none">
42704 \begin_layout Plain Layout
42708 \begin_layout Plain Layout
42721 \begin_layout Plain Layout
42729 \begin_inset Phantom Phantom
42732 \begin_layout Plain Layout
42742 \begin_layout Plain Layout
42754 <cell alignment="center" valignment="top" usebox="none">
42757 \begin_layout Plain Layout
42761 \begin_layout Plain Layout
42774 \begin_layout Plain Layout
42782 \begin_inset Phantom Phantom
42785 \begin_layout Plain Layout
42795 \begin_layout Plain Layout
42809 <cell alignment="left" valignment="top" usebox="none">
42812 \begin_layout Plain Layout
42816 \begin_layout Plain Layout
42829 \begin_layout Plain Layout
42837 \begin_inset Phantom Phantom
42840 \begin_layout Plain Layout
42850 \begin_layout Plain Layout
42862 <cell alignment="left" valignment="top" usebox="none">
42865 \begin_layout Plain Layout
42869 \begin_layout Plain Layout
42882 \begin_layout Plain Layout
42890 \begin_inset Phantom Phantom
42893 \begin_layout Plain Layout
42903 \begin_layout Plain Layout
42915 <cell alignment="left" valignment="top" usebox="none">
42918 \begin_layout Plain Layout
42922 \begin_layout Plain Layout
42935 \begin_layout Plain Layout
42943 \begin_inset Phantom Phantom
42946 \begin_layout Plain Layout
42956 \begin_layout Plain Layout
42968 <cell alignment="left" valignment="top" usebox="none">
42971 \begin_layout Plain Layout
42975 \begin_layout Plain Layout
42988 \begin_layout Plain Layout
42996 \begin_inset Phantom Phantom
42999 \begin_layout Plain Layout
43009 \begin_layout Plain Layout
43023 <cell alignment="left" valignment="top" usebox="none">
43026 \begin_layout Plain Layout
43030 \begin_layout Plain Layout
43043 \begin_layout Plain Layout
43051 \begin_inset Phantom Phantom
43054 \begin_layout Plain Layout
43064 \begin_layout Plain Layout
43076 <cell alignment="left" valignment="top" usebox="none">
43079 \begin_layout Plain Layout
43083 \begin_layout Plain Layout
43096 \begin_layout Plain Layout
43104 \begin_inset Phantom Phantom
43107 \begin_layout Plain Layout
43117 \begin_layout Plain Layout
43129 <cell alignment="left" valignment="top" usebox="none">
43132 \begin_layout Plain Layout
43136 \begin_layout Plain Layout
43149 \begin_layout Plain Layout
43157 \begin_inset Phantom Phantom
43160 \begin_layout Plain Layout
43170 \begin_layout Plain Layout
43182 <cell alignment="left" valignment="top" usebox="none">
43185 \begin_layout Plain Layout
43189 \begin_layout Plain Layout
43202 \begin_layout Plain Layout
43210 \begin_inset Phantom Phantom
43213 \begin_layout Plain Layout
43223 \begin_layout Plain Layout
43237 <cell alignment="left" valignment="top" usebox="none">
43240 \begin_layout Plain Layout
43244 \begin_layout Plain Layout
43257 \begin_layout Plain Layout
43265 \begin_inset Phantom Phantom
43268 \begin_layout Plain Layout
43278 \begin_layout Plain Layout
43290 <cell alignment="left" valignment="top" usebox="none">
43293 \begin_layout Plain Layout
43297 \begin_layout Plain Layout
43310 \begin_layout Plain Layout
43318 \begin_inset Phantom Phantom
43321 \begin_layout Plain Layout
43331 \begin_layout Plain Layout
43343 <cell alignment="left" valignment="top" usebox="none">
43346 \begin_layout Plain Layout
43350 \begin_layout Plain Layout
43363 \begin_layout Plain Layout
43371 \begin_inset Phantom Phantom
43374 \begin_layout Plain Layout
43384 \begin_layout Plain Layout
43396 <cell alignment="left" valignment="top" usebox="none">
43399 \begin_layout Plain Layout
43403 \begin_layout Plain Layout
43416 \begin_layout Plain Layout
43424 \begin_inset Phantom Phantom
43427 \begin_layout Plain Layout
43437 \begin_layout Plain Layout
43451 <cell alignment="left" valignment="top" usebox="none">
43454 \begin_layout Plain Layout
43458 \begin_layout Plain Layout
43471 \begin_layout Plain Layout
43479 \begin_inset Phantom Phantom
43482 \begin_layout Plain Layout
43492 \begin_layout Plain Layout
43504 <cell alignment="left" valignment="top" usebox="none">
43507 \begin_layout Plain Layout
43511 \begin_layout Plain Layout
43524 \begin_layout Plain Layout
43532 \begin_inset Phantom Phantom
43535 \begin_layout Plain Layout
43545 \begin_layout Plain Layout
43557 <cell alignment="left" valignment="top" usebox="none">
43560 \begin_layout Plain Layout
43564 \begin_layout Plain Layout
43577 \begin_layout Plain Layout
43585 \begin_inset Phantom Phantom
43588 \begin_layout Plain Layout
43598 \begin_layout Plain Layout
43610 <cell alignment="left" valignment="top" usebox="none">
43613 \begin_layout Plain Layout
43617 \begin_layout Plain Layout
43630 \begin_layout Plain Layout
43638 \begin_inset Phantom Phantom
43641 \begin_layout Plain Layout
43651 \begin_layout Plain Layout
43665 <cell alignment="left" valignment="top" usebox="none">
43668 \begin_layout Plain Layout
43672 \begin_layout Plain Layout
43685 \begin_layout Plain Layout
43693 \begin_inset Phantom Phantom
43696 \begin_layout Plain Layout
43706 \begin_layout Plain Layout
43718 <cell alignment="left" valignment="top" usebox="none">
43721 \begin_layout Plain Layout
43725 \begin_layout Plain Layout
43738 \begin_layout Plain Layout
43746 \begin_inset Phantom Phantom
43749 \begin_layout Plain Layout
43759 \begin_layout Plain Layout
43771 <cell alignment="left" valignment="top" usebox="none">
43774 \begin_layout Plain Layout
43778 \begin_layout Plain Layout
43791 \begin_layout Plain Layout
43799 \begin_inset Phantom Phantom
43802 \begin_layout Plain Layout
43812 \begin_layout Plain Layout
43824 <cell alignment="left" valignment="top" usebox="none">
43827 \begin_layout Plain Layout
43831 \begin_layout Plain Layout
43844 \begin_layout Plain Layout
43852 \begin_inset Phantom Phantom
43855 \begin_layout Plain Layout
43865 \begin_layout Plain Layout
43879 <cell alignment="left" valignment="top" usebox="none">
43882 \begin_layout Plain Layout
43886 \begin_layout Plain Layout
43899 \begin_layout Plain Layout
43907 \begin_inset Phantom Phantom
43910 \begin_layout Plain Layout
43920 \begin_layout Plain Layout
43932 <cell alignment="left" valignment="top" usebox="none">
43935 \begin_layout Plain Layout
43939 \begin_layout Plain Layout
43952 \begin_layout Plain Layout
43960 \begin_inset Phantom Phantom
43963 \begin_layout Plain Layout
43973 \begin_layout Plain Layout
43985 <cell alignment="left" valignment="top" usebox="none">
43988 \begin_layout Plain Layout
43992 \begin_layout Plain Layout
44005 \begin_layout Plain Layout
44013 \begin_inset Phantom Phantom
44016 \begin_layout Plain Layout
44026 \begin_layout Plain Layout
44038 <cell alignment="left" valignment="top" usebox="none">
44041 \begin_layout Plain Layout
44045 \begin_layout Plain Layout
44058 \begin_layout Plain Layout
44066 \begin_inset Phantom Phantom
44069 \begin_layout Plain Layout
44079 \begin_layout Plain Layout
44093 <cell alignment="left" valignment="top" usebox="none">
44096 \begin_layout Plain Layout
44100 \begin_layout Plain Layout
44113 \begin_layout Plain Layout
44121 \begin_inset Phantom Phantom
44124 \begin_layout Plain Layout
44134 \begin_layout Plain Layout
44146 <cell alignment="left" valignment="top" usebox="none">
44149 \begin_layout Plain Layout
44153 \begin_layout Plain Layout
44166 \begin_layout Plain Layout
44174 \begin_inset Phantom Phantom
44177 \begin_layout Plain Layout
44187 \begin_layout Plain Layout
44199 <cell alignment="left" valignment="top" usebox="none">
44202 \begin_layout Plain Layout
44206 \begin_layout Plain Layout
44219 \begin_layout Plain Layout
44227 \begin_inset Phantom Phantom
44230 \begin_layout Plain Layout
44240 \begin_layout Plain Layout
44252 <cell alignment="left" valignment="top" usebox="none">
44255 \begin_layout Plain Layout
44259 \begin_layout Plain Layout
44272 \begin_layout Plain Layout
44280 \begin_inset Phantom Phantom
44283 \begin_layout Plain Layout
44293 \begin_layout Plain Layout
44307 <cell alignment="left" valignment="top" usebox="none">
44310 \begin_layout Plain Layout
44314 \begin_layout Plain Layout
44327 \begin_layout Plain Layout
44335 \begin_inset Phantom Phantom
44338 \begin_layout Plain Layout
44348 \begin_layout Plain Layout
44360 <cell alignment="left" valignment="top" usebox="none">
44363 \begin_layout Plain Layout
44367 \begin_layout Plain Layout
44380 \begin_layout Plain Layout
44388 \begin_inset Phantom Phantom
44391 \begin_layout Plain Layout
44401 \begin_layout Plain Layout
44413 <cell alignment="left" valignment="top" usebox="none">
44416 \begin_layout Plain Layout
44420 \begin_layout Plain Layout
44433 \begin_layout Plain Layout
44441 \begin_inset Phantom Phantom
44444 \begin_layout Plain Layout
44454 \begin_layout Plain Layout
44466 <cell alignment="left" valignment="top" usebox="none">
44469 \begin_layout Plain Layout
44473 \begin_layout Plain Layout
44486 \begin_layout Plain Layout
44494 \begin_inset Phantom Phantom
44497 \begin_layout Plain Layout
44507 \begin_layout Plain Layout
44521 <cell alignment="left" valignment="top" usebox="none">
44524 \begin_layout Plain Layout
44528 \begin_layout Plain Layout
44541 \begin_layout Plain Layout
44549 \begin_inset Phantom Phantom
44552 \begin_layout Plain Layout
44562 \begin_layout Plain Layout
44574 <cell alignment="left" valignment="top" usebox="none">
44577 \begin_layout Plain Layout
44581 \begin_layout Plain Layout
44594 \begin_layout Plain Layout
44602 \begin_inset Phantom Phantom
44605 \begin_layout Plain Layout
44615 \begin_layout Plain Layout
44627 <cell alignment="left" valignment="top" usebox="none">
44630 \begin_layout Plain Layout
44634 \begin_layout Plain Layout
44647 \begin_layout Plain Layout
44655 \begin_inset Phantom Phantom
44658 \begin_layout Plain Layout
44668 \begin_layout Plain Layout
44680 <cell alignment="left" valignment="top" usebox="none">
44683 \begin_layout Plain Layout
44687 \begin_layout Plain Layout
44700 \begin_layout Plain Layout
44708 \begin_inset Phantom Phantom
44711 \begin_layout Plain Layout
44721 \begin_layout Plain Layout
44735 <cell alignment="left" valignment="top" usebox="none">
44738 \begin_layout Plain Layout
44742 \begin_layout Plain Layout
44755 \begin_layout Plain Layout
44763 \begin_inset Phantom Phantom
44766 \begin_layout Plain Layout
44776 \begin_layout Plain Layout
44788 <cell alignment="left" valignment="top" usebox="none">
44791 \begin_layout Plain Layout
44797 <cell alignment="left" valignment="top" usebox="none">
44800 \begin_layout Plain Layout
44806 <cell alignment="left" valignment="top" usebox="none">
44809 \begin_layout Plain Layout
44823 \begin_layout Chapter
44824 Explanation of Equation
44825 \begin_inset space ~
44829 \begin_inset CommandInset ref
44836 \begin_inset CommandInset label
44838 name "cha:Explanation-of-Equation"
44845 \begin_layout Standard
44846 We can calculate the total width of
44851 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44855 \begin_inset Formula
44857 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44863 \begin_inset Formula $W_{g\,n}$
44866 is the given width of all cells,
44872 is the \SpecialChar LaTeX
44873 -length between the cell text and the cell border (its default value
44875 \begin_inset space \thinspace{}
44885 is the thickness of the cell border line, the default is 0.4
44886 \begin_inset space \thinspace{}
44892 \begin_layout Standard
44894 \begin_inset space ~
44898 \begin_inset CommandInset ref
44900 reference "eq:Wtot_n"
44904 , the total width of a multicolumn
44905 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
44909 \begin_inset Formula
44911 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44919 \begin_layout Standard
44920 By setting equation
44921 \begin_inset space ~
44925 \begin_inset CommandInset ref
44927 reference "eq:Wtot_n"
44932 \begin_inset CommandInset ref
44934 reference "eq:Wtot_mult"
44938 equal we can calculate the needed given width
44939 \begin_inset Formula $W_{g\,n}$
44946 columns are spanned, so that each column has a total width of
44947 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
44951 \begin_inset Formula
44953 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
44961 \begin_layout Bibliography
44962 \begin_inset CommandInset bibitem
44963 LatexCommand bibitem
44964 key "latexcompanion"
44968 Frank Mittelbach and Michel Goossens:
44970 The \SpecialChar LaTeX
44971 Companion Second Edition.
44974 Addison-Wesley, 2004
44977 \begin_layout Bibliography
44978 \begin_inset CommandInset bibitem
44979 LatexCommand bibitem
44984 Helmut Kopka and Patrick W.
44987 A Guide to \SpecialChar LaTeX
44991 Addison-Wesley, 2003
44994 \begin_layout Bibliography
44995 \begin_inset CommandInset bibitem
44996 LatexCommand bibitem
45004 : A Document Preparation System.
45007 Addison-Wesley, second edition, 1994
45010 \begin_layout Bibliography
45011 \begin_inset CommandInset bibitem
45012 LatexCommand bibitem
45017 Documentation of the \SpecialChar LaTeX
45021 \begin_inset CommandInset href
45024 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45031 \begin_inset Index idx
45034 \begin_layout Plain Layout
45036 -packages ! arydshln
45044 \begin_layout Bibliography
45045 \begin_inset CommandInset bibitem
45046 LatexCommand bibitem
45051 Documentation of the \SpecialChar LaTeX
45055 \begin_inset CommandInset href
45058 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45065 \begin_inset Index idx
45068 \begin_layout Plain Layout
45070 -packages ! booktabs
45078 \begin_layout Bibliography
45079 \begin_inset CommandInset bibitem
45080 LatexCommand bibitem
45085 Documentation of the \SpecialChar LaTeX
45089 \begin_inset CommandInset href
45092 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45099 \begin_inset Index idx
45102 \begin_layout Plain Layout
45104 -packages ! caption
45112 \begin_layout Bibliography
45113 \begin_inset CommandInset bibitem
45114 LatexCommand bibitem
45119 Documentation of the \SpecialChar LaTeX
45123 \begin_inset CommandInset href
45126 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45133 \begin_inset Index idx
45136 \begin_layout Plain Layout
45138 -packages ! diagbox
45146 \begin_layout Bibliography
45147 \begin_inset CommandInset bibitem
45148 LatexCommand bibitem
45153 Documentation of the \SpecialChar LaTeX
45157 \begin_inset CommandInset href
45160 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45167 \begin_inset Index idx
45170 \begin_layout Plain Layout
45172 -packages ! endfloat
45180 \begin_layout Bibliography
45181 \begin_inset CommandInset bibitem
45182 LatexCommand bibitem
45187 Documentation of the \SpecialChar LaTeX
45191 \begin_inset CommandInset href
45194 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45201 \begin_inset Index idx
45204 \begin_layout Plain Layout
45206 -packages ! footmisc
45214 \begin_layout Bibliography
45215 \begin_inset CommandInset bibitem
45216 LatexCommand bibitem
45221 Documentation of the \SpecialChar LaTeX
45225 \begin_inset CommandInset href
45228 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45235 \begin_inset Index idx
45238 \begin_layout Plain Layout
45240 -packages ! hyperref
45248 \begin_layout Bibliography
45249 \begin_inset CommandInset bibitem
45250 LatexCommand bibitem
45255 Documentation of the \SpecialChar LaTeX
45259 \begin_inset CommandInset href
45262 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45269 \begin_inset Index idx
45272 \begin_layout Plain Layout
45274 -packages ! hyperref
45282 \begin_layout Bibliography
45283 \begin_inset CommandInset bibitem
45284 LatexCommand bibitem
45289 Documentation of the \SpecialChar LaTeX
45293 \begin_inset CommandInset href
45296 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45303 \begin_inset Index idx
45306 \begin_layout Plain Layout
45308 -packages ! KOMA-Script
45316 \begin_layout Bibliography
45317 \begin_inset CommandInset bibitem
45318 LatexCommand bibitem
45323 Documentation of the \SpecialChar LaTeX
45327 \begin_inset CommandInset href
45330 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45337 \begin_inset CommandInset href
45340 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45345 \begin_inset Index idx
45348 \begin_layout Plain Layout
45350 -packages ! lettrine
45358 \begin_layout Bibliography
45359 \begin_inset CommandInset bibitem
45360 LatexCommand bibitem
45365 Documentation of the \SpecialChar LaTeX
45369 \begin_inset CommandInset href
45372 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45379 \begin_inset Index idx
45382 \begin_layout Plain Layout
45384 -packages ! listings
45392 \begin_layout Bibliography
45393 \begin_inset CommandInset bibitem
45394 LatexCommand bibitem
45399 Documentation of the \SpecialChar LaTeX
45403 \begin_inset CommandInset href
45406 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45413 \begin_inset Index idx
45416 \begin_layout Plain Layout
45418 -packages ! marginnote
45426 \begin_layout Bibliography
45427 \begin_inset CommandInset bibitem
45428 LatexCommand bibitem
45433 Documentation of the \SpecialChar LaTeX
45437 \begin_inset CommandInset href
45440 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45447 \begin_inset Index idx
45450 \begin_layout Plain Layout
45452 -packages ! pdfpages
45460 \begin_layout Bibliography
45461 \begin_inset CommandInset bibitem
45462 LatexCommand bibitem
45467 Documentation of the \SpecialChar LaTeX
45471 \begin_inset CommandInset href
45474 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45481 \begin_inset Index idx
45484 \begin_layout Plain Layout
45486 -packages ! prettyref
45494 \begin_layout Bibliography
45495 \begin_inset CommandInset bibitem
45496 LatexCommand bibitem
45501 Web page of the \SpecialChar LaTeX
45505 \begin_inset CommandInset href
45508 target "http://tug.org/PSTricks/"
45515 \begin_inset Index idx
45518 \begin_layout Plain Layout
45520 -packages ! PSTricks
45528 \begin_layout Bibliography
45529 \begin_inset CommandInset bibitem
45530 LatexCommand bibitem
45535 Documentation of the \SpecialChar LaTeX
45539 \begin_inset CommandInset href
45542 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
45549 \begin_inset Index idx
45552 \begin_layout Plain Layout
45554 -packages ! refstyle
45562 \begin_layout Bibliography
45563 \begin_inset CommandInset bibitem
45564 LatexCommand bibitem
45569 Documentation of the \SpecialChar LaTeX
45573 \begin_inset CommandInset href
45576 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45583 \begin_inset Index idx
45586 \begin_layout Plain Layout
45588 -packages ! sidecap
45596 \begin_layout Bibliography
45597 \begin_inset CommandInset bibitem
45598 LatexCommand bibitem
45604 \begin_inset CommandInset href
45607 target "http://wiki.lyx.org/LyX/NewInLyX20"
45611 about new features in
45619 \begin_layout Standard
45620 \begin_inset CommandInset index_print
45621 LatexCommand printindex