1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
36 \newcommand{\TabBesBeg}[1][1.0]{%
38 \let\MyEndtable\endtable
39 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
41 \newcommand{\TabBesEnd}{%
43 \let\endtable\MyEndtable}
45 \newcommand{\FigBesBeg}[1][1.0]{%
47 \let\MyEndfigure\endfigure
48 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
50 \newcommand{\FigBesEnd}{%
52 \let\endfigure\MyEndfigure}
54 % enables calculation of values,
57 % increase the bottom float placement fraction
58 \renewcommand{\bottomfraction}{0.5}
60 % avoids that floats are placed before their
61 % corresponding section starts
62 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
64 % speed up the longtable calculation
65 \setcounter{LTchunksize}{100}
67 % used for scaled and rotated boxes
68 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
70 % used for colored tables
71 \@ifundefined{textcolor}
72 {\usepackage{color}}{}
73 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
74 \definecolor{lightgrey}{gray}{0.8}
76 % check for package colortbl
77 % used for colored table cells
79 \IfFileExists{colortbl.sty}
80 {\usepackage{colortbl}
81 \setboolean{colortbl}{true}}
82 {\setboolean{colortbl}{false}}
84 % used to have extra space in table cells
85 \@ifundefined{extrarowheight}
86 {\usepackage{array}}{}
87 \setlength{\extrarowheight}{2pt}
89 % used for customized tables
92 {>{\centering\hspace{0pt}}m{#1}}
95 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
98 {>{\columncolor{#1}\hspace{0pt}}c}
100 \newcolumntype{V}{!{\vrule width 1.5pt}}
102 \newcolumntype{W}{!{\color{green}\vline}}
105 % insert additional vertical space of
106 % 1.5 mm between footnotes
108 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
110 % number algorithm floats within chapters
111 \numberwithin{algorithm}{chapter}
113 % ------------------------------------
114 % used to check for needed LaTeX packages
117 % check for package arydshln
118 % used for tables with dashed lines
119 \newboolean{arydshln}
120 \IfFileExists{arydshln.sty}
121 {\usepackage{arydshln}
122 \setboolean{arydshln}{true}}
123 {\setboolean{arydshln}{false}}
125 % check for package marginnote
126 % used for margin notes
127 \newboolean{marginnote}
128 \IfFileExists{marginnote.sty}
129 {\usepackage{marginnote}
130 \let\marginpar\marginnote
131 \setboolean{marginnote}{true}}
132 {\setboolean{marginnote}{false}}
134 % check for package sidecap
135 % used for captions on the side
137 \IfFileExists{sidecap.sty}
138 {\usepackage{sidecap}
139 \setboolean{sidecap}{true}}
140 {\setboolean{sidecap}{false}}
143 % used for surrounded fixed objects
144 \newboolean{picinpar}
145 \IfFileExists{picinpar.sty}
146 {\usepackage{picinpar}
147 \setboolean{picinpar}{true}}
148 {\setboolean{picinpar}{false}}
151 \newboolean{lettrine}
152 \IfFileExists{lettrine.sty}
153 {\usepackage{lettrine}
154 \setboolean{lettrine}{true}}
155 {\setboolean{lettrine}{false}}
159 \IfFileExists{diagbox.sty}
160 {\usepackage{diagbox}
161 \setboolean{diagbox}{true}}
162 {\setboolean{diagbox}{false}}
164 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,usenames,dvipsnames
165 \use_default_options false
169 \maintain_unincluded_children false
171 \language_package default
176 \font_typewriter default
177 \font_default_family default
178 \use_non_tex_fonts false
185 \default_output_format default
187 \bibtex_command default
188 \index_command default
192 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
193 \pdf_author "LyX Team, Uwe Stöhr"
194 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
195 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
197 \pdf_bookmarksnumbered true
198 \pdf_bookmarksopen true
199 \pdf_bookmarksopenlevel 1
200 \pdf_breaklinks false
204 \pdf_pdfusetitle false
205 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
215 \paperorientation portrait
218 \notefontcolor #0000ff
225 \paragraph_separation skip
227 \quotes_language english
230 \paperpagestyle default
234 \tracking_changes true
235 \output_changes false
238 \html_be_strict false
239 \author -195340706 "Georg Baum"
245 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
254 \begin_layout Plain Layout
256 If you have comments or error corrections, please send them to the LyX Documenta
258 \begin_inset CommandInset href
260 name "lyx-docs@lists.lyx.org"
261 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
272 \begin_inset Note Note
275 \begin_layout Plain Layout
282 \begin_inset Newline newline
286 \begin_inset Newline newline
294 \begin_layout Standard
295 \begin_inset CommandInset toc
296 LatexCommand tableofcontents
303 \begin_layout Standard
304 \begin_inset Note Note
307 \begin_layout Plain Layout
308 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
319 diagbox, lettrine, marginnote, picinpar
326 If they are not installed you can export the document anyway but the sections
327 where the packages are required won't appear in the output.
330 \begin_layout Plain Layout
331 The latest PDF-version of this document can be found here:
332 \begin_inset Newline newline
337 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
345 \begin_layout Chapter
347 \begin_inset Index idx
350 \begin_layout Plain Layout
357 \begin_inset Index idx
360 \begin_layout Plain Layout
365 \begin_layout Plain Layout
376 \begin_layout Plain Layout
391 \begin_layout Section
393 \begin_inset Index idx
396 \begin_layout Plain Layout
397 Figures ! Graphics Dialog
403 \begin_inset CommandInset label
405 name "sec:Graphics-Dialog"
412 \begin_layout Standard
413 To insert an image into your document, place the cursor at the text position
414 you want and click on the toolbar icon
419 arg "dialog-show-new-inset graphics"
426 Insert\SpecialChar \menuseparator
430 Then a dialog will appear to choose the file to load.
431 The image will appear in the output exactly at the position where it is
435 \begin_layout Standard
436 The graphics dialog can be called at any time by clicking on an image.
437 This dialog has three tabs:
440 \begin_layout Description
445 Here you can choose an image file and adjust its appearance in the output.
446 The available units for the image size are explained in appendix
451 \begin_inset CommandInset ref
453 reference "cha:Units-available-in"
458 \begin_inset Newline newline
462 \begin_inset Index idx
465 \begin_layout Plain Layout
471 You can rotate images counter-clockwise by setting a rotation angle and
473 The image will also be rotated inside LyX.
474 \begin_inset Newline newline
478 \begin_inset Index idx
481 \begin_layout Plain Layout
487 Images can be scaled by using a percentage value or by setting the width
488 and height explicitly.
489 If you set only the width or only the height, the other size will be determined
491 If you set both, then the image will be transformed to the given size,
492 possibly distorting it.
493 To prevent the image from distortion, use the option
495 Maintain aspect ratio
498 The image will then be scaled so that its width and height don't exceed
499 the specified dimensions.
500 \begin_inset Newline newline
503 Images can be opened in a program of your choice by right-clicking on it
504 and choosing the entry
513 The program can be set for every image format in the file format settings
514 in LyX's preferences.
517 \begin_layout Description
522 Alternatively to the usage of scaling units it is possible to set image
523 coordinates to adjust the height and width of the image in the output.
524 The coordinates can also be calculated automatically by pressing the button
554 will only print the image region within the given coordinates.
555 Normally you don't need to worry about image coordinates and can ignore
559 \begin_layout Description
576 In this tab you can modify the appearance of the image within LyX and LaTeX
577 experts can specify additional LaTeX options.
578 \begin_inset Newline newline
589 makes the image appear in the output only as a frame with the size of the
591 \begin_inset Newline newline
610 option only affects zipped EPS-graphics, e.
611 \begin_inset space \thinspace{}
615 \begin_inset space \space{}
623 When the option is used the images will not be unzipped on export, since
624 LaTeX can handle them as they are.
625 \begin_inset Newline newline
628 Zipped EPS-graphics are useful to save disk space when you choose PostScript
629 as output format, see appendix
634 \begin_inset CommandInset ref
636 reference "sec:PostScript"
641 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
643 \begin_inset Newline newline
651 \begin_inset Newline newline
656 zgrep %%Bounding x.eps.gz > x.eps.bb
659 \begin_inset Newline newline
662 The second command creates the bounding box file
663 \begin_inset Quotes eld
667 \begin_inset Quotes erd
670 that is needed by LaTeX for zipped graphics.
671 \begin_inset Newline newline
682 you can define or join an image settings group.
683 \begin_inset Index idx
686 \begin_layout Plain Layout
687 Figures ! Settings grouping
692 Images within such a group share their settings, so adjusting one image
693 of the group automatically also adjusts all other images of the group in
695 So you can for example change the size for a bunch of images without the
696 need to manually change each of them.
697 Joining an existing group can also be done using the context menu of the
698 image by checking the name of the desired group.
701 \begin_layout Standard
702 \begin_inset VSpace bigskip
708 \begin_layout Standard
709 This is an example image in EPS format
713 \begin_layout Plain Layout
714 Image formats are explained in section
719 \begin_inset CommandInset ref
721 reference "sec:Image-Formats"
730 within a separate, horizontally centered paragraph:
733 \begin_layout Standard
735 \begin_inset Graphics
736 filename clipart/mobius.eps
746 \begin_layout Standard
747 This is the same image like the one above but in draft mode:
750 \begin_layout Standard
752 \begin_inset Graphics
753 filename clipart/mobius.eps
764 \begin_layout Standard
765 \begin_inset Newpage newpage
771 \begin_layout Section
773 \begin_inset CommandInset label
775 name "sec:Figure-Floats"
780 \begin_inset Index idx
783 \begin_layout Plain Layout
790 \begin_inset Index idx
793 \begin_layout Plain Layout
802 \begin_layout Standard
803 For general explanations about floats, have a look at section
808 \begin_inset CommandInset ref
810 reference "sec:FloatIntroduction"
817 \begin_layout Standard
823 arg "float-insert figure"
830 Insert\SpecialChar \menuseparator
831 Float\SpecialChar \menuseparator
834 inserts a float with a caption that has the label
835 \begin_inset Quotes eld
843 \begin_inset Quotes erd
846 (# is the actual number).
847 You can insert the image above the caption, like in Figure
852 \begin_inset CommandInset ref
854 reference "fig:kill-plat"
858 or below the caption, like in Figure
863 \begin_inset CommandInset ref
865 reference "fig:escher"
870 More about caption placement is described in section
875 \begin_inset CommandInset ref
877 reference "sec:Caption-Placement"
884 \begin_layout Standard
885 \begin_inset Float figure
890 \begin_layout Plain Layout
892 \begin_inset Graphics
893 filename clipart/platypus.eps
903 \begin_layout Plain Layout
906 \begin_layout Plain Layout
907 \begin_inset CommandInset label
913 A severely distorted platypus in a float.
926 \begin_layout Standard
927 \begin_inset Float figure
932 \begin_layout Plain Layout
935 \begin_layout Plain Layout
936 \begin_inset CommandInset label
951 \begin_layout Plain Layout
953 \begin_inset Graphics
954 filename clipart/escher-lsd.eps
969 \begin_layout Standard
970 \begin_inset Index idx
973 \begin_layout Plain Layout
974 References ! to Figures
984 \begin_inset CommandInset ref
986 reference "fig:kill-plat"
991 \begin_inset CommandInset ref
993 reference "fig:escher"
997 are examples of referenced figures.
998 Figures can be referenced in the text by referencing their label.
999 To do this insert a label in the caption using the menu
1001 Insert\SpecialChar \menuseparator
1004 or the toolbar button
1015 You can now refer to the label using the menu
1017 Insert\SpecialChar \menuseparator
1019 \begin_inset space ~
1024 or the toolbar button
1029 arg "dialog-show-new-inset ref"
1035 It is important to use references to floats, rather than using vague references
1037 \begin_inset Quotes eld
1041 \begin_inset Quotes erd
1044 , because LaTeX will reposition the floats in the final document and it
1046 \begin_inset Quotes eld
1050 \begin_inset Quotes erd
1054 \begin_inset Newline newline
1057 Referencing is explained in detail in section
1058 \begin_inset space ~
1062 \begin_inset CommandInset ref
1064 reference "sec:Referencing-Floats"
1071 \begin_layout Standard
1072 Normally only one image is inserted to a figure float, but sometimes you
1073 might want to use two images with separate subcaptions.
1074 This can be done by inserting image floats into existing image floats.
1075 Note that only the main caption of the float is added to the List of Figures.
1077 \begin_inset space ~
1081 \begin_inset CommandInset ref
1083 reference "fig:Two-distorted-images"
1087 is an example of a figure float with two images set side by side.
1088 You can also set the images one below the other.
1090 \begin_inset space ~
1094 \begin_inset CommandInset ref
1096 reference "fig:Undefinable-structure"
1101 \begin_inset CommandInset ref
1103 reference "fig:A-Platypus"
1110 \begin_layout Standard
1111 \begin_inset Float figure
1116 \begin_layout Plain Layout
1117 \begin_inset space \hfill{}
1121 \begin_inset Float figure
1126 \begin_layout Plain Layout
1127 \begin_inset Caption
1129 \begin_layout Plain Layout
1130 \begin_inset CommandInset label
1132 name "fig:Undefinable-structure"
1136 Undefinable structure.
1144 \begin_layout Plain Layout
1145 \begin_inset Graphics
1146 filename clipart/escher-lsd.eps
1159 \begin_inset space \hfill{}
1163 \begin_inset Float figure
1168 \begin_layout Plain Layout
1169 \begin_inset Caption
1171 \begin_layout Plain Layout
1172 \begin_inset CommandInset label
1174 name "fig:A-Platypus"
1186 \begin_layout Plain Layout
1187 \begin_inset Graphics
1188 filename clipart/platypus.eps
1201 \begin_inset space \hfill{}
1207 \begin_layout Plain Layout
1208 \begin_inset Caption
1210 \begin_layout Plain Layout
1211 \begin_inset CommandInset label
1213 name "fig:Two-distorted-images"
1218 \begin_inset CommandInset label
1220 name "fig2:Two-distorted-images-2"
1224 Two distorted images.
1225 Both images are in the image settings group named
1226 \begin_inset Quotes eld
1230 \begin_inset Quotes erd
1246 \begin_layout Standard
1247 \begin_inset Newpage newpage
1253 \begin_layout Section
1255 \begin_inset CommandInset label
1257 name "sec:Image-Formats"
1262 \begin_inset Index idx
1265 \begin_layout Plain Layout
1272 \begin_inset Index idx
1275 \begin_layout Plain Layout
1276 Figures ! Image Formats
1284 \begin_layout Standard
1285 You can insert images in any known file format.
1286 But as explained in appendix
1287 \begin_inset space ~
1291 \begin_inset CommandInset ref
1293 reference "cha:Output-File-Formats"
1297 , each output document format allows only a few image formats.
1298 LyX uses therefore the program
1302 in the background to convert the images to the right format.
1303 To increase your work flow by avoiding these conversions in the background,
1304 you could choose to use only the image formats that can directly be embedded
1305 in the output file format.
1306 The output file formats are explained in appendix
1307 \begin_inset space ~
1311 \begin_inset CommandInset ref
1313 reference "cha:Output-File-Formats"
1320 \begin_layout Standard
1321 Similar to fonts there are two types of image formats:
1324 \begin_layout Description
1326 \begin_inset space ~
1329 images consist of pixel values, often in a compressed form.
1330 They are therefore not fully scalable and look pixelated in large zooms.
1331 Well-known bitmap image formats are
1332 \begin_inset Quotes eld
1335 Graphics Interchange Format
1336 \begin_inset Quotes erd
1339 (GIF, file extension
1340 \begin_inset Quotes eld
1348 \begin_inset Quotes erd
1352 \begin_inset Index idx
1355 \begin_layout Plain Layout
1360 \begin_layout Plain Layout
1371 \begin_layout Plain Layout
1384 \begin_inset Quotes eld
1387 Portable Network Graphics
1388 \begin_inset Quotes erd
1391 (PNG, file extension
1392 \begin_inset Quotes eld
1400 \begin_inset Quotes erd
1404 \begin_inset Index idx
1407 \begin_layout Plain Layout
1412 \begin_layout Plain Layout
1423 \begin_layout Plain Layout
1436 \begin_inset Quotes eld
1439 Joint Photographic Experts Group
1440 \begin_inset Quotes erd
1443 (JPG, file extension
1444 \begin_inset Quotes eld
1452 \begin_inset Quotes erd
1456 \begin_inset Quotes eld
1464 \begin_inset Quotes erd
1468 \begin_inset Index idx
1471 \begin_layout Plain Layout
1476 \begin_layout Plain Layout
1487 \begin_layout Plain Layout
1502 \begin_layout Description
1504 \begin_inset space ~
1507 images consist of vectors and can therefore be scaled to any size without
1509 The scaling ability is necessary if you want to create presentations, because
1510 presentations are always scaled by the video projector.
1511 Scaling is also useful for online documents to let the user zoom into diagrams.
1512 \begin_inset Newline newline
1515 Well-known scalable image formats are
1516 \begin_inset Quotes eld
1519 Scalable Vector Graphics
1520 \begin_inset Quotes erd
1523 (SVG, file extension
1524 \begin_inset Quotes eld
1532 \begin_inset Quotes erd
1536 \begin_inset Index idx
1539 \begin_layout Plain Layout
1544 \begin_layout Plain Layout
1555 \begin_layout Plain Layout
1568 \begin_inset Quotes eld
1571 Encapsulated PostScript
1572 \begin_inset Quotes erd
1575 (EPS, file extension
1576 \begin_inset Quotes eld
1584 \begin_inset Quotes erd
1588 \begin_inset Index idx
1591 \begin_layout Plain Layout
1596 \begin_layout Plain Layout
1607 \begin_layout Plain Layout
1620 \begin_inset Quotes eld
1623 Portable Document Format
1624 \begin_inset Quotes erd
1627 (PDF, file extension
1628 \begin_inset Quotes eld
1636 \begin_inset Quotes erd
1640 \begin_inset Index idx
1643 \begin_layout Plain Layout
1650 \begin_inset Quotes eld
1654 \begin_inset Quotes erd
1657 (WMF, file extension
1658 \begin_inset Quotes eld
1666 \begin_inset Quotes erd
1670 \begin_inset Index idx
1673 \begin_layout Plain Layout
1678 \begin_layout Plain Layout
1689 \begin_layout Plain Layout
1703 \begin_inset Quotes eld
1707 \begin_inset Quotes erd
1710 , because you can convert any bitmap image to a PDF or EPS-image and the
1711 result will still be a bitmap image.
1712 In such cases only a header with the image properties is added to the original
1717 \begin_layout Plain Layout
1718 In the case of PDF, the original image is additionally compressed.
1724 The PDF-files generated by
1728 are for example bitmap images.
1731 \begin_layout Standard
1732 Normally it is not possible to convert a bitmap image into a scalable one,
1734 Only the image formats PDF and EPS can directly be embedded to PDF and
1735 PostScript output files, respectively.
1736 SVG and WMF-images are recalculated to bitmaps when the output file is
1737 generated because there is currently no adequate WMF/SVG
1738 \begin_inset Formula $\to$
1741 PDF/EPS converter available.
1744 \begin_layout Chapter
1746 \begin_inset Index idx
1749 \begin_layout Plain Layout
1758 \begin_layout Section
1760 \begin_inset Index idx
1763 \begin_layout Plain Layout
1764 Table ! Introduction
1772 \begin_layout Standard
1773 You can insert a table using either the toolbar button
1776 arg "tabular-insert"
1781 Insert\SpecialChar \menuseparator
1785 The toolbar button offers you a graphical selection: move the mouse to
1786 set the column/row number of the table that should be created and then
1787 press a mouse button.
1788 When you use the menu to create a table, a dialog will appear, asking you
1789 for the number of rows and columns.
1790 \begin_inset Newline newline
1793 The default table has lines around any cell and the first row appears separated
1794 from the rest of the table.
1795 This separation occurs due to a double line: The cells of the first row
1796 have a line below them and the cells of the second row have a line above
1798 Here is an example table:
1801 \begin_layout Standard
1803 \begin_inset Tabular
1804 <lyxtabular version="3" rows="4" columns="4">
1805 <features tabularvalignment="middle">
1806 <column alignment="center" valignment="top" width="0">
1807 <column alignment="center" valignment="top" width="0">
1808 <column alignment="center" valignment="top" width="0">
1809 <column alignment="center" valignment="top" width="0">
1811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1814 \begin_layout Plain Layout
1820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1823 \begin_layout Plain Layout
1838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1841 \begin_layout Plain Layout
1847 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1850 \begin_layout Plain Layout
1858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1861 \begin_layout Plain Layout
1876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1879 \begin_layout Plain Layout
1885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1888 \begin_layout Plain Layout
1894 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1897 \begin_layout Plain Layout
1905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1908 \begin_layout Plain Layout
1923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1926 \begin_layout Plain Layout
1932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1935 \begin_layout Plain Layout
1941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1944 \begin_layout Plain Layout
1952 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1955 \begin_layout Plain Layout
1970 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1973 \begin_layout Plain Layout
1979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1982 \begin_layout Plain Layout
1988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1991 \begin_layout Plain Layout
2005 \begin_layout Section
2007 \begin_inset Index idx
2010 \begin_layout Plain Layout
2019 \begin_layout Standard
2020 You can alter a table by clicking on it with the right mouse button, which
2021 brings up the table dialog.
2022 Here you can adjust the settings of that cell and row/column respectively
2023 where the cursor is currently placed.
2024 Most of the dialog options also work on selections.
2025 This means if you select more cells, columns or rows, the action is done
2026 for the whole selection.
2027 Note that there is a difference between selecting the
2031 of the cell, and the cell itself.
2032 \begin_inset Newline newline
2035 With the dialog option
2038 \begin_inset space ~
2043 every change you make in the dialog is directly applied.
2044 If you move the cursor to another table cell the dialog will then also
2045 be updated with the parameters of the new cell.
2046 If you change length values in the dialog you must press return to get
2048 \begin_inset Newline newline
2051 You can alter tables with the following tabs of the table dialog:
2054 \begin_layout Description
2058 \begin_inset space ~
2063 Here you can set the table width
2064 \begin_inset Index idx
2067 \begin_layout Plain Layout
2073 , and the horizontal alignment and the width of the current column.
2077 \begin_inset space ~
2081 \begin_inset space ~
2086 is described in section
2087 \begin_inset space ~
2091 \begin_inset CommandInset ref
2093 reference "sub:Special-Cell-Alignment"
2098 When you have set a width you can also adjust the vertical alignment of
2100 A given width will allow the cell to have line breaks and multiple paragraphs
2101 of text, see section
2102 \begin_inset space ~
2106 \begin_inset CommandInset ref
2108 reference "sub:Multiple-Lines-in"
2113 If you set no width, the column is as wide as the content of its widest
2115 \begin_inset Newline newline
2118 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2120 \begin_inset space ~
2124 \begin_inset CommandInset ref
2126 reference "sub:Multicolumns"
2130 or the cells of one column as multirow cell, see section
2131 \begin_inset space ~
2135 \begin_inset CommandInset ref
2137 reference "sub:Multirows"
2142 \begin_inset Newline newline
2145 The rotate check boxes rotate the current cell, a selection, or the whole
2146 table counter-clockwise by 90°.
2147 The rotation is not shown within LyX, only in the output.
2148 \begin_inset Newline newline
2152 \begin_inset Note Greyedout
2155 \begin_layout Plain Layout
2160 Not all DVI-viewers are able to display rotations.
2166 \begin_inset Newline newline
2169 The table-wide vertical alignment is used for tables within text lines:
2170 \begin_inset Newline newline
2173 A line with tables with different alignments:
2174 \begin_inset Tabular
2175 <lyxtabular version="3" rows="2" columns="2">
2176 <features tabularvalignment="top">
2177 <column alignment="center" valignment="top" width="0pt">
2178 <column alignment="center" valignment="top" width="0">
2180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2183 \begin_layout Plain Layout
2189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2192 \begin_layout Plain Layout
2209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2212 \begin_layout Plain Layout
2227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2230 \begin_layout Plain Layout
2242 \begin_inset Tabular
2243 <lyxtabular version="3" rows="2" columns="2">
2244 <features tabularvalignment="middle">
2245 <column alignment="center" valignment="top" width="0">
2246 <column alignment="center" valignment="top" width="0">
2248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2251 \begin_layout Plain Layout
2257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2260 \begin_layout Plain Layout
2277 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2280 \begin_layout Plain Layout
2295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2298 \begin_layout Plain Layout
2310 \begin_inset Tabular
2311 <lyxtabular version="3" rows="2" columns="2">
2312 <features tabularvalignment="bottom">
2313 <column alignment="center" valignment="top" width="0pt">
2314 <column alignment="center" valignment="top" width="0">
2316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2319 \begin_layout Plain Layout
2325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2328 \begin_layout Plain Layout
2345 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2348 \begin_layout Plain Layout
2363 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2366 \begin_layout Plain Layout
2378 \begin_inset Newline newline
2381 It is also possible to enter a LaTeX-argument which is needed for special
2382 table formattings, see section
2383 \begin_inset space ~
2387 \begin_inset CommandInset ref
2389 reference "sub:Multicolumn-Calculations"
2394 \begin_inset CommandInset ref
2396 reference "sec:Colored-Tables"
2403 \begin_layout Description
2408 In this tab you can add and delete border lines for the current row/column.
2409 \begin_inset Newline newline
2412 Using the style option
2416 will convert the table to a formal table as described in section
2417 \begin_inset space ~
2421 \begin_inset CommandInset ref
2423 reference "sec:Formal-Tables"
2428 \begin_inset Newline newline
2431 You can also add space here to table rows as described in section
2432 \begin_inset space ~
2436 \begin_inset CommandInset ref
2438 reference "sub:Row-Spacing"
2445 \begin_layout Description
2450 This tab is to make a table a so called
2451 \begin_inset Quotes eld
2459 \begin_inset Quotes erd
2462 that can run over several pages.
2464 \begin_inset space ~
2468 \begin_inset CommandInset ref
2470 reference "sec:Longtables"
2475 \begin_inset CommandInset ref
2477 reference "sec:Special-Longtable-Issues"
2481 describe the longtable features in detail.
2484 \begin_layout Section
2486 \begin_inset Index idx
2489 \begin_layout Plain Layout
2498 \begin_layout Standard
2499 The table toolbar is an alternative to the table dialog to be able to alter
2501 It should normally appear at the bottom of LyX's main window when the cursor
2503 You can alternatively switch it on to appear always, by right-clicking
2504 in LyX's main menu bar.
2507 \begin_layout Standard
2508 The toolbar has the following icons:
2511 \begin_layout Labeling
2512 \labelwidthstring 00.00.0000
2517 arg "inset-modify tabular append-row"
2522 adds a row below the current cell or selection
2525 \begin_layout Labeling
2526 \labelwidthstring 00.00.0000
2531 arg "inset-modify tabular append-column"
2536 adds a column right beside the current cell or selection
2539 \begin_layout Labeling
2540 \labelwidthstring 00.00.0000
2545 arg "inset-modify tabular delete-row"
2550 deletes the current row or selection
2553 \begin_layout Labeling
2554 \labelwidthstring 00.00.0000
2559 arg "inset-modify tabular delete-column"
2564 deletes the current column or selection
2567 \begin_layout Labeling
2568 \labelwidthstring 00.00.0000
2573 arg "inset-modify tabular toggle-line-top"
2578 adds a line at the top of the current cell / row or of a selection
2581 \begin_layout Labeling
2582 \labelwidthstring 00.00.0000
2587 arg "inset-modify tabular toggle-line-bottom"
2592 adds a line at the bottom of the current cell / row or of a selection
2595 \begin_layout Labeling
2596 \labelwidthstring 00.00.0000
2601 arg "inset-modify tabular toggle-line-left"
2606 adds a line at the left side of the current cell / row or of a selection
2609 \begin_layout Labeling
2610 \labelwidthstring 00.00.0000
2615 arg "inset-modify tabular toggle-line-right"
2620 adds a line at the right side of the current cell / row or of a selection
2623 \begin_layout Labeling
2624 \labelwidthstring 00.00.0000
2629 arg "inset-modify tabular set-all-lines"
2634 adds lines around the current or selected cells - if the current cell no
2635 multicolumn cell this also affects the current row and column
2638 \begin_layout Labeling
2639 \labelwidthstring 00.00.0000
2644 arg "inset-modify tabular unset-all-lines"
2649 deletes all lines of the current or selected cells - if the current cell
2650 no multicolumn cell this also affects the current row and column
2653 \begin_layout Labeling
2654 \labelwidthstring 00.00.0000
2659 arg "inset-modify tabular m-align-left"
2664 left-aligns the content of the current cell / column
2667 \begin_layout Labeling
2668 \labelwidthstring 00.00.0000
2673 arg "inset-modify tabular m-align-center"
2678 centers the content of the current cell / column horizontally
2681 \begin_layout Labeling
2682 \labelwidthstring 00.00.0000
2687 arg "inset-modify tabular m-align-right"
2692 right-aligns the content of the current cell / column
2695 \begin_layout Labeling
2696 \labelwidthstring 00.00.0000
2701 arg "inset-modify tabular align-decimal"
2706 aligns the content of the current column at a character
2709 \begin_layout Labeling
2710 \labelwidthstring 00.00.0000
2715 arg "inset-modify tabular m-valign-top"
2720 aligns the content of the current cell vertically to the top
2723 \begin_layout Labeling
2724 \labelwidthstring 00.00.0000
2729 arg "inset-modify tabular m-valign-middle"
2734 centers the content of the current cell vertically
2737 \begin_layout Labeling
2738 \labelwidthstring 00.00.0000
2743 arg "inset-modify tabular m-valign-bottom"
2748 aligns the content of the current cell vertically to the bottom
2751 \begin_layout Labeling
2752 \labelwidthstring 00.00.0000
2757 arg "inset-modify tabular set-rotate-cell"
2762 rotates the current cell or selection counter-clockwise by 90°
2765 \begin_layout Labeling
2766 \labelwidthstring 00.00.0000
2771 arg "inset-modify tabular set-rotate-tabular"
2776 rotates the whole table counter-clockwise by 90°
2779 \begin_layout Labeling
2780 \labelwidthstring 00.00.0000
2785 arg "inset-modify tabular multicolumn"
2790 sets the current cell or selection as a multicolumn
2793 \begin_layout Labeling
2794 \labelwidthstring 00.00.0000
2799 arg "inset-modify tabular multirow"
2804 sets the current cell or selection as a multirow
2807 \begin_layout Standard
2808 \begin_inset Note Greyedout
2811 \begin_layout Plain Layout
2816 For the output the vertical alignment of the first cell in a row is used
2817 for all following cells in the row.
2825 \begin_layout Section
2827 \begin_inset Index idx
2830 \begin_layout Plain Layout
2839 \begin_layout Standard
2840 In addition to the table dialog and toolbar, the menu
2842 Edit\SpecialChar \menuseparator
2845 allows you to add and delete border lines for the current row/column and
2846 to set the current selection as multicolumn.
2847 The menu is only available when the cursor is inside a table.
2850 \begin_layout Section
2852 \begin_inset CommandInset label
2854 name "sec:Table-Floats"
2859 \begin_inset Index idx
2862 \begin_layout Plain Layout
2869 \begin_inset Index idx
2872 \begin_layout Plain Layout
2881 \begin_layout Standard
2882 For general explanations about floats, have a look at section
2883 \begin_inset space ~
2887 \begin_inset CommandInset ref
2889 reference "sec:FloatIntroduction"
2896 \begin_layout Standard
2897 \begin_inset Float table
2903 \begin_layout Plain Layout
2904 \begin_inset Caption
2906 \begin_layout Plain Layout
2907 \begin_inset CommandInset label
2909 name "tab:a table float"
2921 \begin_layout Plain Layout
2923 \begin_inset Tabular
2924 <lyxtabular version="3" rows="3" columns="3">
2925 <features tabularvalignment="middle">
2926 <column alignment="center" valignment="top" width="0pt">
2927 <column alignment="center" valignment="top" width="0pt">
2928 <column alignment="center" valignment="top" width="0pt">
2930 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2933 \begin_layout Plain Layout
2948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2951 \begin_layout Plain Layout
2966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2969 \begin_layout Plain Layout
2986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2989 \begin_layout Plain Layout
3004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3007 \begin_layout Plain Layout
3022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3025 \begin_layout Plain Layout
3042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3045 \begin_layout Plain Layout
3055 \begin_inset Formula $\int x^{2}dx$
3063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3066 \begin_layout Plain Layout
3076 \begin_inset Formula $\left[\begin{array}{cc}
3087 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3090 \begin_layout Plain Layout
3100 \begin_inset Formula $1+1=2$
3121 \begin_layout Standard
3122 Table floats can be inserted using the menu
3124 Insert\SpecialChar \menuseparator
3125 Float\SpecialChar \menuseparator
3128 or the toolbar button
3133 arg "float-insert table"
3141 \begin_layout Standard
3142 The float appears as a collapsible box with a caption that has the label
3144 \begin_inset Quotes eld
3148 \begin_inset space ~
3152 \begin_inset Quotes erd
3155 (# is the actual table number).
3156 You can insert tables in the float above or below the caption.
3159 \begin_layout Standard
3161 \begin_inset space ~
3165 \begin_inset CommandInset ref
3167 reference "tab:a table float"
3171 is an example table within a table float.
3174 \begin_layout Standard
3175 Having the caption above the table is the common rule that is unfortunately
3176 not supported in LaTeX's standard classes.
3177 This means that, if you are using the document classes
3193 , there will be no space between the caption and the table.
3194 To insert the needed space, add the following option to the load command
3195 of the LaTeX-package
3200 \begin_inset Index idx
3203 \begin_layout Plain Layout
3204 LaTeX-packages ! caption
3209 in your document preamble
3213 \begin_layout Plain Layout
3214 For more information have a look at section
3215 \begin_inset space ~
3219 \begin_inset CommandInset ref
3221 reference "sec:Caption-Placement"
3233 \begin_layout Standard
3239 \begin_layout Standard
3244 , which is described in section
3245 \begin_inset space ~
3249 \begin_inset CommandInset ref
3251 reference "sec:Caption-Formatting"
3255 , is used to adjust the caption format.
3258 \begin_layout Standard
3259 \begin_inset Index idx
3262 \begin_layout Plain Layout
3263 References ! to Tables
3268 Tables can be cross-referenced in the text by referencing their label.
3269 To do this insert a label in the caption using the menu
3271 Insert\SpecialChar \menuseparator
3274 or the toolbar button
3285 You can now refer to the label using the menu
3287 Insert\SpecialChar \menuseparator
3289 \begin_inset space ~
3294 or the toolbar button
3299 arg "dialog-show-new-inset ref"
3305 \begin_inset Newline newline
3308 Referencing is explained in detail in section
3309 \begin_inset space ~
3313 \begin_inset CommandInset ref
3315 reference "sec:Referencing-Floats"
3322 \begin_layout Section
3324 \begin_inset CommandInset label
3326 name "sec:Longtables"
3331 \begin_inset Index idx
3334 \begin_layout Plain Layout
3341 \begin_inset Index idx
3344 \begin_layout Plain Layout
3353 \begin_layout Standard
3354 If the table is too long to fit on one page, you can use the option
3357 \begin_inset space ~
3361 \begin_inset space ~
3370 of the table dialog to split the table automatically over more pages.
3371 Doing this enables the following options:
3374 \begin_layout Description
3375 Header: The current row is defined to be a header row that appears on all
3376 pages of the longtable; except for the first page, if
3379 \begin_inset space ~
3385 This is therefore called the main header.
3388 \begin_layout Description
3390 \begin_inset space ~
3393 header: The current row is defined to be a header row that appears on the
3394 first page of the longtable.
3397 \begin_layout Description
3398 Footer: The current row is defined to be a footer row that appears on all
3399 pages of the longtable; except for the last page, if
3402 \begin_inset space ~
3410 \begin_layout Description
3412 \begin_inset space ~
3415 footer: The current row is defined to be a footer row that appears on the
3416 last page of the longtable.
3419 \begin_layout Description
3420 Caption: The current row contains the table caption.
3421 The row is reset as single column and a caption is inserted.
3422 More about longtable captions is explained in sec.
3423 \begin_inset space \thinspace{}
3427 \begin_inset CommandInset ref
3429 reference "sub:Longtable-Captions"
3436 \begin_layout Standard
3437 You can also specify a row where the table is split.
3438 See the following longtable to see how it works:
3441 \begin_layout Standard
3443 \begin_inset Tabular
3444 <lyxtabular version="3" rows="69" columns="3">
3445 <features islongtable="true" longtabularalignment="center">
3446 <column alignment="left" valignment="top" width="0cm">
3447 <column alignment="left" valignment="top" width="0pt">
3448 <column alignment="center" valignment="top" width="0pt">
3449 <row endfirsthead="true">
3450 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3453 \begin_layout Plain Layout
3456 Example Phone List (ignore the names)
3461 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3464 \begin_layout Plain Layout
3470 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3473 \begin_layout Plain Layout
3480 <row endfirsthead="true">
3481 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3484 \begin_layout Plain Layout
3492 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3495 \begin_layout Plain Layout
3501 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3504 \begin_layout Plain Layout
3513 <row endhead="true">
3514 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3517 \begin_layout Plain Layout
3525 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3528 \begin_layout Plain Layout
3534 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3537 \begin_layout Plain Layout
3544 <row endhead="true">
3545 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3548 \begin_layout Plain Layout
3556 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3559 \begin_layout Plain Layout
3565 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3568 \begin_layout Plain Layout
3577 <row endfoot="true">
3578 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3581 \begin_layout Plain Layout
3582 continued on next page
3587 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3590 \begin_layout Plain Layout
3596 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3599 \begin_layout Plain Layout
3607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3610 \begin_layout Plain Layout
3618 <cell alignment="center" valignment="top" usebox="none">
3621 \begin_layout Plain Layout
3627 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3630 \begin_layout Plain Layout
3638 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3641 \begin_layout Plain Layout
3649 <cell alignment="center" valignment="top" usebox="none">
3652 \begin_layout Plain Layout
3658 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3661 \begin_layout Plain Layout
3669 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3672 \begin_layout Plain Layout
3680 <cell alignment="center" valignment="top" usebox="none">
3683 \begin_layout Plain Layout
3689 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3692 \begin_layout Plain Layout
3700 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3703 \begin_layout Plain Layout
3711 <cell alignment="center" valignment="top" usebox="none">
3714 \begin_layout Plain Layout
3720 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3723 \begin_layout Plain Layout
3731 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3734 \begin_layout Plain Layout
3742 <cell alignment="center" valignment="top" usebox="none">
3745 \begin_layout Plain Layout
3751 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3754 \begin_layout Plain Layout
3762 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3765 \begin_layout Plain Layout
3773 <cell alignment="center" valignment="top" usebox="none">
3776 \begin_layout Plain Layout
3782 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3785 \begin_layout Plain Layout
3793 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3796 \begin_layout Plain Layout
3804 <cell alignment="center" valignment="top" usebox="none">
3807 \begin_layout Plain Layout
3813 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3816 \begin_layout Plain Layout
3824 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3827 \begin_layout Plain Layout
3835 <cell alignment="center" valignment="top" usebox="none">
3838 \begin_layout Plain Layout
3844 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3847 \begin_layout Plain Layout
3855 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3858 \begin_layout Plain Layout
3866 <cell alignment="center" valignment="top" usebox="none">
3869 \begin_layout Plain Layout
3875 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3878 \begin_layout Plain Layout
3886 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3889 \begin_layout Plain Layout
3897 <cell alignment="center" valignment="top" usebox="none">
3900 \begin_layout Plain Layout
3906 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3909 \begin_layout Plain Layout
3917 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3920 \begin_layout Plain Layout
3928 <cell alignment="center" valignment="top" usebox="none">
3931 \begin_layout Plain Layout
3937 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3940 \begin_layout Plain Layout
3948 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3951 \begin_layout Plain Layout
3959 <cell alignment="center" valignment="top" usebox="none">
3962 \begin_layout Plain Layout
3968 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3971 \begin_layout Plain Layout
3979 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3982 \begin_layout Plain Layout
3990 <cell alignment="center" valignment="top" usebox="none">
3993 \begin_layout Plain Layout
3999 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4002 \begin_layout Plain Layout
4010 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4013 \begin_layout Plain Layout
4021 <cell alignment="center" valignment="top" usebox="none">
4024 \begin_layout Plain Layout
4030 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4033 \begin_layout Plain Layout
4041 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4044 \begin_layout Plain Layout
4052 <cell alignment="center" valignment="top" usebox="none">
4055 \begin_layout Plain Layout
4061 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4064 \begin_layout Plain Layout
4072 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4075 \begin_layout Plain Layout
4083 <cell alignment="center" valignment="top" usebox="none">
4086 \begin_layout Plain Layout
4092 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4095 \begin_layout Plain Layout
4103 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4106 \begin_layout Plain Layout
4114 <cell alignment="center" valignment="top" usebox="none">
4117 \begin_layout Plain Layout
4123 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4126 \begin_layout Plain Layout
4134 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4137 \begin_layout Plain Layout
4145 <cell alignment="center" valignment="top" usebox="none">
4148 \begin_layout Plain Layout
4154 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4157 \begin_layout Plain Layout
4165 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4168 \begin_layout Plain Layout
4176 <cell alignment="center" valignment="top" usebox="none">
4179 \begin_layout Plain Layout
4185 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4188 \begin_layout Plain Layout
4196 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4199 \begin_layout Plain Layout
4207 <cell alignment="center" valignment="top" usebox="none">
4210 \begin_layout Plain Layout
4216 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4219 \begin_layout Plain Layout
4227 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4230 \begin_layout Plain Layout
4238 <cell alignment="center" valignment="top" usebox="none">
4241 \begin_layout Plain Layout
4247 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4250 \begin_layout Plain Layout
4258 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4261 \begin_layout Plain Layout
4269 <cell alignment="center" valignment="top" usebox="none">
4272 \begin_layout Plain Layout
4278 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4281 \begin_layout Plain Layout
4289 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4292 \begin_layout Plain Layout
4300 <cell alignment="center" valignment="top" usebox="none">
4303 \begin_layout Plain Layout
4309 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4312 \begin_layout Plain Layout
4320 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4323 \begin_layout Plain Layout
4331 <cell alignment="center" valignment="top" usebox="none">
4334 \begin_layout Plain Layout
4340 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4343 \begin_layout Plain Layout
4351 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4354 \begin_layout Plain Layout
4362 <cell alignment="center" valignment="top" usebox="none">
4365 \begin_layout Plain Layout
4371 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4374 \begin_layout Plain Layout
4382 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4385 \begin_layout Plain Layout
4393 <cell alignment="center" valignment="top" usebox="none">
4396 \begin_layout Plain Layout
4402 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4405 \begin_layout Plain Layout
4413 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4416 \begin_layout Plain Layout
4424 <cell alignment="center" valignment="top" usebox="none">
4427 \begin_layout Plain Layout
4433 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4436 \begin_layout Plain Layout
4444 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4447 \begin_layout Plain Layout
4455 <cell alignment="center" valignment="top" usebox="none">
4458 \begin_layout Plain Layout
4464 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4467 \begin_layout Plain Layout
4475 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4478 \begin_layout Plain Layout
4486 <cell alignment="center" valignment="top" usebox="none">
4489 \begin_layout Plain Layout
4495 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4498 \begin_layout Plain Layout
4506 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4509 \begin_layout Plain Layout
4517 <cell alignment="center" valignment="top" usebox="none">
4520 \begin_layout Plain Layout
4526 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4529 \begin_layout Plain Layout
4537 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4540 \begin_layout Plain Layout
4548 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4551 \begin_layout Plain Layout
4557 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4560 \begin_layout Plain Layout
4568 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4571 \begin_layout Plain Layout
4577 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4580 \begin_layout Plain Layout
4586 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4589 \begin_layout Plain Layout
4597 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4600 \begin_layout Plain Layout
4608 <cell alignment="center" valignment="top" usebox="none">
4611 \begin_layout Plain Layout
4617 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4620 \begin_layout Plain Layout
4628 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4631 \begin_layout Plain Layout
4639 <cell alignment="center" valignment="top" usebox="none">
4642 \begin_layout Plain Layout
4648 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4651 \begin_layout Plain Layout
4659 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4662 \begin_layout Plain Layout
4670 <cell alignment="center" valignment="top" usebox="none">
4673 \begin_layout Plain Layout
4679 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4682 \begin_layout Plain Layout
4690 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4693 \begin_layout Plain Layout
4701 <cell alignment="center" valignment="top" usebox="none">
4704 \begin_layout Plain Layout
4710 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4713 \begin_layout Plain Layout
4721 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4724 \begin_layout Plain Layout
4732 <cell alignment="center" valignment="top" usebox="none">
4735 \begin_layout Plain Layout
4741 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4744 \begin_layout Plain Layout
4752 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4755 \begin_layout Plain Layout
4763 <cell alignment="center" valignment="top" usebox="none">
4766 \begin_layout Plain Layout
4772 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4775 \begin_layout Plain Layout
4783 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4786 \begin_layout Plain Layout
4794 <cell alignment="center" valignment="top" usebox="none">
4797 \begin_layout Plain Layout
4803 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4806 \begin_layout Plain Layout
4814 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4817 \begin_layout Plain Layout
4825 <cell alignment="center" valignment="top" usebox="none">
4828 \begin_layout Plain Layout
4834 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4837 \begin_layout Plain Layout
4845 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4848 \begin_layout Plain Layout
4856 <cell alignment="center" valignment="top" usebox="none">
4859 \begin_layout Plain Layout
4865 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4868 \begin_layout Plain Layout
4876 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4879 \begin_layout Plain Layout
4887 <cell alignment="center" valignment="top" usebox="none">
4890 \begin_layout Plain Layout
4896 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4899 \begin_layout Plain Layout
4907 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4910 \begin_layout Plain Layout
4918 <cell alignment="center" valignment="top" usebox="none">
4921 \begin_layout Plain Layout
4927 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4930 \begin_layout Plain Layout
4938 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4941 \begin_layout Plain Layout
4949 <cell alignment="center" valignment="top" usebox="none">
4952 \begin_layout Plain Layout
4958 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4961 \begin_layout Plain Layout
4969 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4972 \begin_layout Plain Layout
4980 <cell alignment="center" valignment="top" usebox="none">
4983 \begin_layout Plain Layout
4989 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4992 \begin_layout Plain Layout
5000 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5003 \begin_layout Plain Layout
5011 <cell alignment="center" valignment="top" usebox="none">
5014 \begin_layout Plain Layout
5020 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5023 \begin_layout Plain Layout
5031 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5034 \begin_layout Plain Layout
5042 <cell alignment="center" valignment="top" usebox="none">
5045 \begin_layout Plain Layout
5051 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5054 \begin_layout Plain Layout
5062 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5065 \begin_layout Plain Layout
5073 <cell alignment="center" valignment="top" usebox="none">
5076 \begin_layout Plain Layout
5082 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5085 \begin_layout Plain Layout
5093 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5096 \begin_layout Plain Layout
5104 <cell alignment="center" valignment="top" usebox="none">
5107 \begin_layout Plain Layout
5113 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5116 \begin_layout Plain Layout
5124 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5127 \begin_layout Plain Layout
5135 <cell alignment="center" valignment="top" usebox="none">
5138 \begin_layout Plain Layout
5144 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5147 \begin_layout Plain Layout
5155 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5158 \begin_layout Plain Layout
5166 <cell alignment="center" valignment="top" usebox="none">
5169 \begin_layout Plain Layout
5175 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5178 \begin_layout Plain Layout
5186 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5189 \begin_layout Plain Layout
5197 <cell alignment="center" valignment="top" usebox="none">
5200 \begin_layout Plain Layout
5206 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5209 \begin_layout Plain Layout
5217 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5220 \begin_layout Plain Layout
5228 <cell alignment="center" valignment="top" usebox="none">
5231 \begin_layout Plain Layout
5237 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5240 \begin_layout Plain Layout
5248 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5251 \begin_layout Plain Layout
5259 <cell alignment="center" valignment="top" usebox="none">
5262 \begin_layout Plain Layout
5268 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5271 \begin_layout Plain Layout
5279 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5282 \begin_layout Plain Layout
5290 <cell alignment="center" valignment="top" usebox="none">
5293 \begin_layout Plain Layout
5299 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5302 \begin_layout Plain Layout
5310 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5313 \begin_layout Plain Layout
5321 <cell alignment="center" valignment="top" usebox="none">
5324 \begin_layout Plain Layout
5330 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5333 \begin_layout Plain Layout
5341 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5344 \begin_layout Plain Layout
5352 <cell alignment="center" valignment="top" usebox="none">
5355 \begin_layout Plain Layout
5361 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5364 \begin_layout Plain Layout
5372 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5375 \begin_layout Plain Layout
5383 <cell alignment="center" valignment="top" usebox="none">
5386 \begin_layout Plain Layout
5392 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5395 \begin_layout Plain Layout
5403 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5406 \begin_layout Plain Layout
5414 <cell alignment="center" valignment="top" usebox="none">
5417 \begin_layout Plain Layout
5423 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5426 \begin_layout Plain Layout
5434 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5437 \begin_layout Plain Layout
5445 <cell alignment="center" valignment="top" usebox="none">
5448 \begin_layout Plain Layout
5454 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5457 \begin_layout Plain Layout
5465 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5468 \begin_layout Plain Layout
5476 <cell alignment="center" valignment="top" usebox="none">
5479 \begin_layout Plain Layout
5485 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5488 \begin_layout Plain Layout
5496 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5499 \begin_layout Plain Layout
5507 <cell alignment="center" valignment="top" usebox="none">
5510 \begin_layout Plain Layout
5516 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5519 \begin_layout Plain Layout
5527 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5530 \begin_layout Plain Layout
5538 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5541 \begin_layout Plain Layout
5547 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5550 \begin_layout Plain Layout
5557 <row endlastfoot="true">
5558 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5561 \begin_layout Plain Layout
5567 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5570 \begin_layout Plain Layout
5576 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5579 \begin_layout Plain Layout
5594 \begin_layout Plain Layout
5598 addtocounter{table}{-1}
5604 \begin_inset Note Note
5607 \begin_layout Plain Layout
5608 See the first greyed-out note in section
5609 \begin_inset space ~
5613 \begin_inset CommandInset ref
5615 reference "sub:Longtable-Captions"
5619 for an explanation of this command.
5627 \begin_layout Subsection
5628 Footnotes in Longtables
5629 \begin_inset CommandInset label
5631 name "sub:Footnotes-in-Longtables"
5636 \begin_inset Index idx
5639 \begin_layout Plain Layout
5640 Longtables ! Footnotes
5648 \begin_layout Standard
5649 Footnotes can be inserted to every longtable cell.
5650 They appear at the bottom of the page where the table cell with the footnote
5653 \begin_inset space ~
5657 \begin_inset CommandInset ref
5659 reference "tab:DiffCaptions"
5663 has for example a footnote.
5666 \begin_layout Subsection
5668 \begin_inset Index idx
5671 \begin_layout Plain Layout
5672 Longtables ! Alignment
5680 \begin_layout Standard
5681 The horizontal alignment of longtables can be set in the table settings
5683 For left- and right-alignment the table will be directly at the page border.
5684 To add space between the table and the border one has to set the alignment
5685 to center and change the value of the LaTeX-lengths
5697 by inserting this line as TeX-Code before the longtable:
5700 \begin_layout Standard
5710 \begin_layout Standard
5711 The value can have any of the units listed in Table
5712 \begin_inset space ~
5716 \begin_inset CommandInset ref
5718 reference "tab:Units"
5729 controls the horizontal distance from the left page border to the longtable,
5736 the distance from the right side.
5737 The default value for both lengths is
5743 , which is in this case the same as an horizontal fill in LyX.
5746 \begin_layout Standard
5747 The following longtable was centered and
5763 \begin_layout Plain Layout
5779 \begin_layout Standard
5780 \begin_inset Tabular
5781 <lyxtabular version="3" rows="5" columns="5">
5782 <features islongtable="true" longtabularalignment="center">
5783 <column alignment="center" valignment="top" width="0">
5784 <column alignment="center" valignment="top" width="0pt">
5785 <column alignment="center" valignment="top" width="0">
5786 <column alignment="center" valignment="top" width="0">
5787 <column alignment="center" valignment="top" width="0">
5789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5792 \begin_layout Plain Layout
5798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5801 \begin_layout Plain Layout
5807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5810 \begin_layout Plain Layout
5816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5819 \begin_layout Plain Layout
5825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5828 \begin_layout Plain Layout
5836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5839 \begin_layout Plain Layout
5845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5848 \begin_layout Plain Layout
5854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5857 \begin_layout Plain Layout
5863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5866 \begin_layout Plain Layout
5872 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5875 \begin_layout Plain Layout
5883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5886 \begin_layout Plain Layout
5892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5895 \begin_layout Plain Layout
5901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5904 \begin_layout Plain Layout
5910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5913 \begin_layout Plain Layout
5919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5922 \begin_layout Plain Layout
5930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5933 \begin_layout Plain Layout
5939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5942 \begin_layout Plain Layout
5948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5951 \begin_layout Plain Layout
5957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5960 \begin_layout Plain Layout
5966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5969 \begin_layout Plain Layout
5977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5980 \begin_layout Plain Layout
5986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5989 \begin_layout Plain Layout
5995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5998 \begin_layout Plain Layout
6004 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6007 \begin_layout Plain Layout
6013 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6016 \begin_layout Plain Layout
6031 \begin_layout Plain Layout
6048 \begin_layout Plain Layout
6052 addtocounter{table}{-1}
6058 \begin_inset Note Note
6061 \begin_layout Plain Layout
6062 See the first greyed-out note in section
6063 \begin_inset space ~
6067 \begin_inset CommandInset ref
6069 reference "sub:Longtable-Captions"
6073 for an explanation of this command.
6081 \begin_layout Subsection
6083 \begin_inset Index idx
6086 \begin_layout Plain Layout
6087 Longtables ! Captions
6093 \begin_inset CommandInset label
6095 name "sub:Longtable-Captions"
6102 \begin_layout Standard
6103 A longtable cannot be put into a table float because floats can only be
6105 But the caption environment of floats can also be used for longtables when
6106 you use the longtable option
6110 as described in sec.
6111 \begin_inset space \thinspace{}
6115 \begin_inset CommandInset ref
6117 reference "sec:Longtables"
6123 \change_inserted -195340706 1324242393
6124 A caption must be put into one of
6127 \begin_inset space ~
6143 \begin_inset space ~
6149 Each kind of footer and header may only contain one
6150 \change_deleted -195340706 1324242398
6151 Only one table row can contain the
6156 \begin_layout Standard
6157 Here is a short longtable to see how it works:
6160 \begin_layout Standard
6161 \begin_inset Tabular
6162 <lyxtabular version="3" rows="6" columns="5">
6163 <features islongtable="true" longtabularalignment="center">
6164 <column alignment="center" valignment="top" width="0">
6165 <column alignment="center" valignment="top" width="0">
6166 <column alignment="center" valignment="top" width="0">
6167 <column alignment="center" valignment="top" width="0">
6168 <column alignment="center" valignment="top" width="0">
6169 <row caption="true">
6170 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6173 \begin_layout Plain Layout
6174 \begin_inset Caption
6176 \begin_layout Plain Layout
6177 Longtable with caption
6178 \begin_inset Argument
6181 \begin_layout Plain Layout
6197 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6200 \begin_layout Plain Layout
6206 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6209 \begin_layout Plain Layout
6215 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6218 \begin_layout Plain Layout
6224 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6227 \begin_layout Plain Layout
6235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6238 \begin_layout Plain Layout
6244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6247 \begin_layout Plain Layout
6253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6256 \begin_layout Plain Layout
6262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6265 \begin_layout Plain Layout
6271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6274 \begin_layout Plain Layout
6282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6285 \begin_layout Plain Layout
6291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6294 \begin_layout Plain Layout
6300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6303 \begin_layout Plain Layout
6309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6312 \begin_layout Plain Layout
6318 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6321 \begin_layout Plain Layout
6329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6332 \begin_layout Plain Layout
6338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6341 \begin_layout Plain Layout
6347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6350 \begin_layout Plain Layout
6356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6359 \begin_layout Plain Layout
6365 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6368 \begin_layout Plain Layout
6376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6379 \begin_layout Plain Layout
6385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6388 \begin_layout Plain Layout
6394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6397 \begin_layout Plain Layout
6403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6406 \begin_layout Plain Layout
6412 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6415 \begin_layout Plain Layout
6423 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6426 \begin_layout Plain Layout
6432 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6435 \begin_layout Plain Layout
6441 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6444 \begin_layout Plain Layout
6450 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6453 \begin_layout Plain Layout
6459 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6462 \begin_layout Plain Layout
6476 \begin_layout Standard
6477 \begin_inset VSpace medskip
6481 \begin_inset Note Greyedout
6484 \begin_layout Plain Layout
6488 \begin_inset space ~
6493 The table number is increased for every longtable, even if you did not
6494 set a caption for it.
6495 For this reason you could have the case that e.
6496 \begin_inset space \thinspace{}
6500 \begin_inset space \space{}
6504 \begin_inset space ~
6508 \begin_inset space ~
6511 2.1 in the list of tables if there are two longtables without captions.
6512 To avoid this you can add the following command in TeX-Code after every
6513 longtable without a caption:
6516 \begin_layout Plain Layout
6521 addtocounter{table}{-1}
6524 \begin_layout Plain Layout
6525 This is not needed when none of your longtables has a caption and you add
6526 the following code to the document preamble:
6529 \begin_layout Plain Layout
6539 \begin_inset Newline newline
6550 addtocounter{table}{-1}}
6558 \begin_layout Standard
6559 \begin_inset Note Greyedout
6562 \begin_layout Plain Layout
6566 \begin_inset space ~
6576 \begin_inset Index idx
6579 \begin_layout Plain Layout
6580 LaTeX-packages ! hyperref
6593 dialog to link cross-references, the link to a longtable caption will always
6594 point to the beginning of the document.
6602 \begin_layout Subsubsection
6603 References to Longtables
6604 \begin_inset Index idx
6607 \begin_layout Plain Layout
6608 Longtables ! References
6616 \begin_layout Standard
6617 \begin_inset Tabular
6618 <lyxtabular version="3" rows="6" columns="5">
6619 <features islongtable="true" longtabularalignment="center">
6620 <column alignment="center" valignment="top" width="0">
6621 <column alignment="center" valignment="top" width="0">
6622 <column alignment="center" valignment="top" width="0">
6623 <column alignment="center" valignment="top" width="0">
6624 <column alignment="center" valignment="top" width="0">
6625 <row caption="true">
6626 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6629 \begin_layout Plain Layout
6630 \begin_inset Caption
6632 \begin_layout Plain Layout
6633 Referenced longtable
6634 \begin_inset CommandInset label
6636 name "tab:RefExample"
6650 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6653 \begin_layout Plain Layout
6659 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6662 \begin_layout Plain Layout
6668 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6671 \begin_layout Plain Layout
6677 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6680 \begin_layout Plain Layout
6688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6691 \begin_layout Plain Layout
6697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6700 \begin_layout Plain Layout
6706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6709 \begin_layout Plain Layout
6715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6718 \begin_layout Plain Layout
6724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6727 \begin_layout Plain Layout
6735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6738 \begin_layout Plain Layout
6744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6747 \begin_layout Plain Layout
6753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6756 \begin_layout Plain Layout
6762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6765 \begin_layout Plain Layout
6771 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6774 \begin_layout Plain Layout
6782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6785 \begin_layout Plain Layout
6791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6794 \begin_layout Plain Layout
6800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6803 \begin_layout Plain Layout
6809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6812 \begin_layout Plain Layout
6818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6821 \begin_layout Plain Layout
6829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6832 \begin_layout Plain Layout
6838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6841 \begin_layout Plain Layout
6847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6850 \begin_layout Plain Layout
6856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6859 \begin_layout Plain Layout
6865 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6868 \begin_layout Plain Layout
6876 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6879 \begin_layout Plain Layout
6885 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6888 \begin_layout Plain Layout
6894 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6897 \begin_layout Plain Layout
6903 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6906 \begin_layout Plain Layout
6912 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6915 \begin_layout Plain Layout
6929 \begin_layout Standard
6930 To reference a longtable, insert a label into the caption.
6933 \begin_layout Standard
6934 This is a reference to Table
6935 \begin_inset space ~
6939 \begin_inset CommandInset ref
6941 reference "tab:RefExample"
6948 \begin_layout Standard
6949 The caption layout can be set together with all other captions of your document
6950 using the LaTeX-package
6955 \begin_inset Index idx
6958 \begin_layout Plain Layout
6959 LaTeX-packages ! caption
6965 \begin_inset space ~
6969 \begin_inset CommandInset ref
6971 reference "sec:Caption-Formatting"
6978 \begin_layout Subsubsection
6980 \begin_inset Index idx
6983 \begin_layout Plain Layout
6984 Longtables ! Caption Width
6992 \begin_layout Standard
6993 The maximal width of caption lines is defined by the length
7000 Its default value is 4
7001 \begin_inset space \thinspace{}
7005 To change it add the following command to your document preamble or as
7006 TeX-Code into your document before the longtable that should be affected
7009 \begin_layout Standard
7019 \begin_layout Standard
7020 where the width could have one of the units listed in appendix
7021 \begin_inset space ~
7025 \begin_inset CommandInset ref
7027 reference "cha:Units-available-in"
7034 \begin_layout Standard
7035 The following tables show the difference:
7038 \begin_layout Standard
7039 \begin_inset Tabular
7040 <lyxtabular version="3" rows="6" columns="5">
7041 <features islongtable="true" longtabularalignment="center">
7042 <column alignment="center" valignment="top" width="0">
7043 <column alignment="center" valignment="top" width="0">
7044 <column alignment="center" valignment="top" width="0">
7045 <column alignment="center" valignment="top" width="0">
7046 <column alignment="center" valignment="top" width="0">
7047 <row caption="true">
7048 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7051 \begin_layout Plain Layout
7052 \begin_inset Caption
7054 \begin_layout Plain Layout
7055 long full title with default width long full title with default width long
7056 full title with default width
7057 \begin_inset Argument
7060 \begin_layout Plain Layout
7061 caption with default width
7076 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7079 \begin_layout Plain Layout
7085 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7088 \begin_layout Plain Layout
7094 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7097 \begin_layout Plain Layout
7103 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7106 \begin_layout Plain Layout
7114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7117 \begin_layout Plain Layout
7123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7126 \begin_layout Plain Layout
7132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7135 \begin_layout Plain Layout
7141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7144 \begin_layout Plain Layout
7150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7153 \begin_layout Plain Layout
7161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7164 \begin_layout Plain Layout
7170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7173 \begin_layout Plain Layout
7179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7182 \begin_layout Plain Layout
7188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7191 \begin_layout Plain Layout
7197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7200 \begin_layout Plain Layout
7208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7211 \begin_layout Plain Layout
7217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7220 \begin_layout Plain Layout
7226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7229 \begin_layout Plain Layout
7235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7238 \begin_layout Plain Layout
7244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7247 \begin_layout Plain Layout
7255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7258 \begin_layout Plain Layout
7264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7267 \begin_layout Plain Layout
7273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7276 \begin_layout Plain Layout
7282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7285 \begin_layout Plain Layout
7291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7294 \begin_layout Plain Layout
7302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7305 \begin_layout Plain Layout
7311 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7314 \begin_layout Plain Layout
7320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7323 \begin_layout Plain Layout
7329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7332 \begin_layout Plain Layout
7338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7341 \begin_layout Plain Layout
7355 \begin_layout Standard
7359 \begin_layout Plain Layout
7371 \begin_inset Tabular
7372 <lyxtabular version="3" rows="6" columns="5">
7373 <features islongtable="true" longtabularalignment="center">
7374 <column alignment="center" valignment="top" width="0">
7375 <column alignment="center" valignment="top" width="0">
7376 <column alignment="center" valignment="top" width="0">
7377 <column alignment="center" valignment="top" width="0">
7378 <column alignment="center" valignment="top" width="0">
7379 <row caption="true">
7380 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7383 \begin_layout Plain Layout
7384 \begin_inset Caption
7386 \begin_layout Plain Layout
7387 long full title with width set to 5
7388 \begin_inset space \thinspace{}
7391 cm long full title with width set to 5
7392 \begin_inset space \thinspace{}
7395 cm long full title with width set to 5
7396 \begin_inset space \thinspace{}
7400 \begin_inset Argument
7403 \begin_layout Plain Layout
7405 \begin_inset space \thinspace{}
7409 \begin_inset space \thinspace{}
7413 \begin_inset space \thinspace{}
7431 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7434 \begin_layout Plain Layout
7440 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7443 \begin_layout Plain Layout
7449 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7452 \begin_layout Plain Layout
7458 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7461 \begin_layout Plain Layout
7469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7472 \begin_layout Plain Layout
7478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7481 \begin_layout Plain Layout
7487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7490 \begin_layout Plain Layout
7496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7499 \begin_layout Plain Layout
7505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7508 \begin_layout Plain Layout
7516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7519 \begin_layout Plain Layout
7525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7528 \begin_layout Plain Layout
7534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7537 \begin_layout Plain Layout
7543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7546 \begin_layout Plain Layout
7552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7555 \begin_layout Plain Layout
7563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7566 \begin_layout Plain Layout
7572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7575 \begin_layout Plain Layout
7581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7584 \begin_layout Plain Layout
7590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7593 \begin_layout Plain Layout
7599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7602 \begin_layout Plain Layout
7610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7613 \begin_layout Plain Layout
7619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7622 \begin_layout Plain Layout
7628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7631 \begin_layout Plain Layout
7637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7640 \begin_layout Plain Layout
7646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7649 \begin_layout Plain Layout
7657 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7660 \begin_layout Plain Layout
7666 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7669 \begin_layout Plain Layout
7675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7678 \begin_layout Plain Layout
7684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7687 \begin_layout Plain Layout
7693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7696 \begin_layout Plain Layout
7710 \begin_layout Standard
7714 \begin_layout Plain Layout
7728 \begin_layout Standard
7729 \begin_inset Note Greyedout
7732 \begin_layout Plain Layout
7737 When the LaTeX-package
7742 \begin_inset Index idx
7745 \begin_layout Plain Layout
7746 LaTeX-packages ! caption
7751 is used, as in this document, the full page width is used for the caption
7752 when you use the default value of 4
7753 \begin_inset space \thinspace{}
7763 To get in this case exactly a 4
7764 \begin_inset space \thinspace{}
7767 in wide caption, you can either use a value slightly different from 4.0
7768 \begin_inset space \thinspace{}
7772 \begin_inset space \thinspace{}
7776 \begin_inset space \space{}
7780 \begin_inset space \thinspace{}
7783 in, or the LaTeX-command
7787 captionsetup{width=value}
7789 that is provided by the
7801 \begin_layout Subsubsection
7802 Different Captions for Table Pages
7803 \begin_inset Index idx
7806 \begin_layout Plain Layout
7807 Longtables ! Different Captions for Pages
7815 \begin_layout Standard
7816 When the table captions for the following pages should differ from the one
7817 of the first table page, insert a caption with the TeX-Code command
7820 \begin_layout Standard
7825 caption*{caption text}
7832 \begin_layout Standard
7833 in a dummy caption row that is marked as a header.
7835 \begin_inset space ~
7839 \begin_inset CommandInset ref
7841 reference "tab:DiffCaptions"
7845 is an example of a longtable with different heading where the second caption
7846 doesn't include the table number.
7849 \begin_layout Standard
7851 \begin_inset Tabular
7852 <lyxtabular version="3" rows="59" columns="3">
7853 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7854 <column alignment="left" valignment="top" width="0cm">
7855 <column alignment="left" valignment="top" width="0pt">
7856 <column alignment="center" valignment="top" width="0pt">
7857 <row caption="true">
7858 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7861 \begin_layout Plain Layout
7862 \begin_inset Caption
7864 \begin_layout Plain Layout
7866 \begin_inset CommandInset label
7868 name "tab:DiffCaptions"
7873 \begin_inset Argument
7876 \begin_layout Plain Layout
7892 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7895 \begin_layout Plain Layout
7901 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7904 \begin_layout Plain Layout
7911 <row endfirsthead="true">
7912 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7915 \begin_layout Plain Layout
7918 Example Phone List (ignore the names)
7923 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7926 \begin_layout Plain Layout
7932 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7935 \begin_layout Plain Layout
7942 <row endfirsthead="true">
7943 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7946 \begin_layout Plain Layout
7954 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7957 \begin_layout Plain Layout
7963 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7966 \begin_layout Plain Layout
7975 <row endhead="true">
7976 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7979 \begin_layout Plain Layout
7983 \begin_layout Plain Layout
7987 caption*{Continued Example Phone List}
8001 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8004 \begin_layout Plain Layout
8010 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8013 \begin_layout Plain Layout
8020 <row endhead="true">
8021 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8024 \begin_layout Plain Layout
8032 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8035 \begin_layout Plain Layout
8041 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8044 \begin_layout Plain Layout
8051 <row endhead="true">
8052 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8055 \begin_layout Plain Layout
8063 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8066 \begin_layout Plain Layout
8072 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8075 \begin_layout Plain Layout
8084 <row endfoot="true">
8085 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
8088 \begin_layout Plain Layout
8089 continued on next page
8094 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8097 \begin_layout Plain Layout
8103 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8106 \begin_layout Plain Layout
8114 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8117 \begin_layout Plain Layout
8125 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8128 \begin_layout Plain Layout
8134 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
8137 \begin_layout Plain Layout
8145 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8148 \begin_layout Plain Layout
8156 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8159 \begin_layout Plain Layout
8165 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8168 \begin_layout Plain Layout
8176 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8179 \begin_layout Plain Layout
8187 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8190 \begin_layout Plain Layout
8196 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8199 \begin_layout Plain Layout
8207 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8210 \begin_layout Plain Layout
8218 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8221 \begin_layout Plain Layout
8227 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8230 \begin_layout Plain Layout
8238 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8241 \begin_layout Plain Layout
8249 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8252 \begin_layout Plain Layout
8258 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8261 \begin_layout Plain Layout
8269 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8272 \begin_layout Plain Layout
8280 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8283 \begin_layout Plain Layout
8289 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8292 \begin_layout Plain Layout
8300 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8303 \begin_layout Plain Layout
8311 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8314 \begin_layout Plain Layout
8320 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8323 \begin_layout Plain Layout
8331 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8334 \begin_layout Plain Layout
8342 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8345 \begin_layout Plain Layout
8351 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8354 \begin_layout Plain Layout
8362 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8365 \begin_layout Plain Layout
8373 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8376 \begin_layout Plain Layout
8382 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8385 \begin_layout Plain Layout
8393 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8396 \begin_layout Plain Layout
8404 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8407 \begin_layout Plain Layout
8413 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8416 \begin_layout Plain Layout
8424 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8427 \begin_layout Plain Layout
8435 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8438 \begin_layout Plain Layout
8444 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8447 \begin_layout Plain Layout
8455 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8458 \begin_layout Plain Layout
8466 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8469 \begin_layout Plain Layout
8475 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8478 \begin_layout Plain Layout
8486 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8489 \begin_layout Plain Layout
8497 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8500 \begin_layout Plain Layout
8506 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8509 \begin_layout Plain Layout
8517 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8520 \begin_layout Plain Layout
8528 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8531 \begin_layout Plain Layout
8537 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8540 \begin_layout Plain Layout
8548 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8551 \begin_layout Plain Layout
8560 \begin_layout Plain Layout
8571 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8574 \begin_layout Plain Layout
8580 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8583 \begin_layout Plain Layout
8591 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8594 \begin_layout Plain Layout
8602 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8605 \begin_layout Plain Layout
8611 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8614 \begin_layout Plain Layout
8622 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8625 \begin_layout Plain Layout
8633 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8636 \begin_layout Plain Layout
8642 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8645 \begin_layout Plain Layout
8653 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8656 \begin_layout Plain Layout
8664 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8667 \begin_layout Plain Layout
8673 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8676 \begin_layout Plain Layout
8684 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8687 \begin_layout Plain Layout
8695 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8698 \begin_layout Plain Layout
8704 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8707 \begin_layout Plain Layout
8715 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8718 \begin_layout Plain Layout
8726 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8729 \begin_layout Plain Layout
8735 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8738 \begin_layout Plain Layout
8746 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8749 \begin_layout Plain Layout
8757 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8760 \begin_layout Plain Layout
8766 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8769 \begin_layout Plain Layout
8777 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8780 \begin_layout Plain Layout
8788 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8791 \begin_layout Plain Layout
8797 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8800 \begin_layout Plain Layout
8808 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8811 \begin_layout Plain Layout
8819 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8822 \begin_layout Plain Layout
8828 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8831 \begin_layout Plain Layout
8839 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8842 \begin_layout Plain Layout
8850 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8853 \begin_layout Plain Layout
8859 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8862 \begin_layout Plain Layout
8870 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8873 \begin_layout Plain Layout
8881 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8884 \begin_layout Plain Layout
8890 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8893 \begin_layout Plain Layout
8901 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8904 \begin_layout Plain Layout
8912 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8915 \begin_layout Plain Layout
8921 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8924 \begin_layout Plain Layout
8932 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8935 \begin_layout Plain Layout
8943 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8946 \begin_layout Plain Layout
8952 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8955 \begin_layout Plain Layout
8963 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8966 \begin_layout Plain Layout
8974 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8977 \begin_layout Plain Layout
8983 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8986 \begin_layout Plain Layout
8994 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8997 \begin_layout Plain Layout
9005 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9008 \begin_layout Plain Layout
9014 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9017 \begin_layout Plain Layout
9025 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9028 \begin_layout Plain Layout
9036 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9039 \begin_layout Plain Layout
9045 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9048 \begin_layout Plain Layout
9056 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9059 \begin_layout Plain Layout
9067 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9070 \begin_layout Plain Layout
9076 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9079 \begin_layout Plain Layout
9087 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9090 \begin_layout Plain Layout
9096 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
9099 \begin_layout Plain Layout
9105 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9108 \begin_layout Plain Layout
9116 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9119 \begin_layout Plain Layout
9127 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9130 \begin_layout Plain Layout
9136 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9139 \begin_layout Plain Layout
9147 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9150 \begin_layout Plain Layout
9158 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9161 \begin_layout Plain Layout
9167 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9170 \begin_layout Plain Layout
9178 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9181 \begin_layout Plain Layout
9189 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9192 \begin_layout Plain Layout
9198 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9201 \begin_layout Plain Layout
9209 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9212 \begin_layout Plain Layout
9220 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9223 \begin_layout Plain Layout
9229 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9232 \begin_layout Plain Layout
9240 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9243 \begin_layout Plain Layout
9251 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9254 \begin_layout Plain Layout
9260 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9263 \begin_layout Plain Layout
9271 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9274 \begin_layout Plain Layout
9282 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9285 \begin_layout Plain Layout
9291 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9294 \begin_layout Plain Layout
9302 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9305 \begin_layout Plain Layout
9313 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9316 \begin_layout Plain Layout
9322 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9325 \begin_layout Plain Layout
9333 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9336 \begin_layout Plain Layout
9344 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9347 \begin_layout Plain Layout
9353 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9356 \begin_layout Plain Layout
9364 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9367 \begin_layout Plain Layout
9375 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9378 \begin_layout Plain Layout
9384 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9387 \begin_layout Plain Layout
9395 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9398 \begin_layout Plain Layout
9406 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9409 \begin_layout Plain Layout
9415 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9418 \begin_layout Plain Layout
9426 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9429 \begin_layout Plain Layout
9437 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9440 \begin_layout Plain Layout
9446 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9449 \begin_layout Plain Layout
9457 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9460 \begin_layout Plain Layout
9468 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9471 \begin_layout Plain Layout
9477 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9480 \begin_layout Plain Layout
9488 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9491 \begin_layout Plain Layout
9499 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9502 \begin_layout Plain Layout
9508 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9511 \begin_layout Plain Layout
9519 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9522 \begin_layout Plain Layout
9530 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9533 \begin_layout Plain Layout
9539 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9542 \begin_layout Plain Layout
9550 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9553 \begin_layout Plain Layout
9561 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9564 \begin_layout Plain Layout
9570 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9573 \begin_layout Plain Layout
9581 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9584 \begin_layout Plain Layout
9592 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9595 \begin_layout Plain Layout
9601 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9604 \begin_layout Plain Layout
9612 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9615 \begin_layout Plain Layout
9623 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9626 \begin_layout Plain Layout
9632 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9635 \begin_layout Plain Layout
9643 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9646 \begin_layout Plain Layout
9654 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9657 \begin_layout Plain Layout
9663 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9666 \begin_layout Plain Layout
9674 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9677 \begin_layout Plain Layout
9685 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9688 \begin_layout Plain Layout
9694 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9697 \begin_layout Plain Layout
9705 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9708 \begin_layout Plain Layout
9716 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9719 \begin_layout Plain Layout
9725 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9728 \begin_layout Plain Layout
9742 \begin_layout Section
9743 Special Longtable Issues
9744 \begin_inset CommandInset label
9746 name "sec:Special-Longtable-Issues"
9753 \begin_layout Subsection
9754 Longtable Calculation
9755 \begin_inset Index idx
9758 \begin_layout Plain Layout
9759 Longtables ! Calculation
9767 \begin_layout Standard
9768 LaTeX calculates the height of table pages and their page breaks using so
9770 Chunks are parts of tables that held at the same time in LaTeX's memory.
9771 The default value was historically set to only 20 table rows.
9772 If you are using longtables with many pages this may slow down the creation
9774 You can safely increase the chunk size to values of 100-1000 by adding
9775 this command line to your document preamble:
9778 \begin_layout Standard
9783 setcounter{LTchunksize}{100}
9786 \begin_layout Subsection
9787 Floats and Longtables
9788 \begin_inset Index idx
9791 \begin_layout Plain Layout
9800 \begin_layout Standard
9801 There might be problems when a float appears on the same page where a longtable
9803 To avoid such a situation, insert a
9804 \begin_inset Quotes eld
9808 \begin_inset Quotes erd
9813 Insert\SpecialChar \menuseparator
9814 Formatting\SpecialChar \menuseparator
9816 \begin_inset space ~
9821 ) before your longtable.
9824 \begin_layout Subsection
9826 \begin_inset Index idx
9829 \begin_layout Plain Layout
9830 Longtables ! Forced Page Breaks
9838 \begin_layout Standard
9839 By default tables are only broken between rows.
9840 If you have a cell with multiples lines and want to have a page break within
9841 the cell, insert the new line command
9842 \begin_inset Quotes eld
9854 \begin_inset Quotes erd
9857 as TeX-Code at the point of the cell where it can be broken.
9866 command you have to insert in TeX-Code as many
9867 \begin_inset Quotes eld
9875 \begin_inset Quotes erd
9878 characters as the number of the following table columns.
9883 is the character to separate table cells.
9884 Write in TeX-Code after each
9888 the content of the corresponding following cell and delete the content
9890 \begin_inset Newline newline
9901 command, insert as many
9905 characters as the number of table columns before the current column.
9907 \begin_inset space ~
9911 \begin_inset CommandInset ref
9913 reference "tab:ForcedPagebreak"
9917 the cell that should be broken is in the second column followed by another
9919 Therefore the following command was inserted in the cell as TeX-Code after
9921 \begin_inset Quotes eld
9929 \begin_inset Quotes erd
9935 \begin_layout Standard
9945 \begin_inset Newline newline
9951 \begin_layout Standard
9953 \begin_inset Quotes eld
9957 \begin_inset Quotes erd
9960 in the third column of the row was deleted.
9967 is only needed when a page break should definitely occur at this position,
9968 otherwise it would be a conditional break.
9969 If your footer row of the longtable has for a certain reason no upper line
9970 but you would have a horizontal line where the cell is broken, use this
9974 \begin_layout Standard
9982 \begin_inset Newline newline
9990 \begin_layout Standard
9991 When the cell to be broken is in the last column, the command
9994 \begin_layout Standard
10004 \begin_layout Standard
10005 must be inserted as TeX-Code at the beginning of the cell.
10006 This ensures that the part of the cell that will be displayed on the new
10007 page appears with the full width.
10010 \begin_layout Standard
10012 \begin_inset Tabular
10013 <lyxtabular version="3" rows="38" columns="3">
10014 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
10015 <column alignment="left" valignment="top" width="0cm">
10016 <column alignment="left" valignment="top" width="3cm">
10017 <column alignment="center" valignment="top" width="0pt">
10018 <row caption="true">
10019 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10022 \begin_layout Plain Layout
10023 \begin_inset Caption
10025 \begin_layout Plain Layout
10026 Table with forced page break in table cell
10027 \begin_inset CommandInset label
10029 name "tab:ForcedPagebreak"
10034 \begin_inset Argument
10037 \begin_layout Plain Layout
10038 Table with forced page break in table cell
10053 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10056 \begin_layout Plain Layout
10062 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10065 \begin_layout Plain Layout
10072 <row endfirsthead="true">
10073 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10076 \begin_layout Plain Layout
10079 Example Phone List (ignore the names)
10084 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10087 \begin_layout Plain Layout
10093 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10096 \begin_layout Plain Layout
10103 <row endfirsthead="true">
10104 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10107 \begin_layout Plain Layout
10115 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10118 \begin_layout Plain Layout
10124 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10127 \begin_layout Plain Layout
10136 <row endhead="true">
10137 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10140 \begin_layout Plain Layout
10144 \begin_layout Plain Layout
10148 caption*{Continued Example Phone List}
10162 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10165 \begin_layout Plain Layout
10171 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10174 \begin_layout Plain Layout
10181 <row endhead="true">
10182 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10185 \begin_layout Plain Layout
10193 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10196 \begin_layout Plain Layout
10202 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10205 \begin_layout Plain Layout
10212 <row endhead="true">
10213 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10216 \begin_layout Plain Layout
10224 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10227 \begin_layout Plain Layout
10233 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10236 \begin_layout Plain Layout
10245 <row endfoot="true">
10246 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10249 \begin_layout Plain Layout
10250 continued on next page
10255 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10258 \begin_layout Plain Layout
10264 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10267 \begin_layout Plain Layout
10275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10278 \begin_layout Plain Layout
10286 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10289 \begin_layout Plain Layout
10295 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10298 \begin_layout Plain Layout
10306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10309 \begin_layout Plain Layout
10317 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10320 \begin_layout Plain Layout
10326 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10329 \begin_layout Plain Layout
10337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10340 \begin_layout Plain Layout
10348 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10351 \begin_layout Plain Layout
10357 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10360 \begin_layout Plain Layout
10368 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10371 \begin_layout Plain Layout
10379 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10382 \begin_layout Plain Layout
10388 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10391 \begin_layout Plain Layout
10399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10402 \begin_layout Plain Layout
10410 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10413 \begin_layout Plain Layout
10419 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10422 \begin_layout Plain Layout
10430 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10433 \begin_layout Plain Layout
10441 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10444 \begin_layout Plain Layout
10450 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10453 \begin_layout Plain Layout
10461 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10464 \begin_layout Plain Layout
10472 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10475 \begin_layout Plain Layout
10481 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10484 \begin_layout Plain Layout
10492 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10495 \begin_layout Plain Layout
10503 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10506 \begin_layout Plain Layout
10512 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10515 \begin_layout Plain Layout
10523 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10526 \begin_layout Plain Layout
10534 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10537 \begin_layout Plain Layout
10543 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10546 \begin_layout Plain Layout
10554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10557 \begin_layout Plain Layout
10565 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10568 \begin_layout Plain Layout
10574 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10577 \begin_layout Plain Layout
10585 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10588 \begin_layout Plain Layout
10596 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10599 \begin_layout Plain Layout
10605 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10608 \begin_layout Plain Layout
10616 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10619 \begin_layout Plain Layout
10627 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10630 \begin_layout Plain Layout
10636 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10639 \begin_layout Plain Layout
10647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10650 \begin_layout Plain Layout
10658 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10661 \begin_layout Plain Layout
10667 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10670 \begin_layout Plain Layout
10678 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10681 \begin_layout Plain Layout
10689 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10692 \begin_layout Plain Layout
10698 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10701 \begin_layout Plain Layout
10709 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10712 \begin_layout Plain Layout
10720 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10723 \begin_layout Plain Layout
10729 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10732 \begin_layout Plain Layout
10740 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10743 \begin_layout Plain Layout
10751 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10754 \begin_layout Plain Layout
10760 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10763 \begin_layout Plain Layout
10771 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10774 \begin_layout Plain Layout
10782 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10785 \begin_layout Plain Layout
10791 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10794 \begin_layout Plain Layout
10802 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10805 \begin_layout Plain Layout
10813 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10816 \begin_layout Plain Layout
10822 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10825 \begin_layout Plain Layout
10833 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10836 \begin_layout Plain Layout
10844 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10847 \begin_layout Plain Layout
10853 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10856 \begin_layout Plain Layout
10864 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10867 \begin_layout Plain Layout
10875 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10878 \begin_layout Plain Layout
10884 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10887 \begin_layout Plain Layout
10895 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10898 \begin_layout Plain Layout
10906 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10909 \begin_layout Plain Layout
10915 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10918 \begin_layout Plain Layout
10926 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10929 \begin_layout Plain Layout
10937 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10940 \begin_layout Plain Layout
10946 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10949 \begin_layout Plain Layout
10957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10960 \begin_layout Plain Layout
10968 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10971 \begin_layout Plain Layout
10973 Fürst von Montecompatri, 11.
10974 Fürst von Sulmona und Vivaro, 10.
10975 Fürst von Rossano, 5.
10976 Herzog von Canemorte, 11.
10977 Herzog von Palombara, 5.
10978 Herzog von Castelchiodato,
10982 \begin_layout Plain Layout
10993 \begin_layout Plain Layout
11001 Herzog von Poggionativo, 11.
11002 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
11003 Graf von Valinfreda, 11.
11004 Baron von Cropalati, 11.
11005 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
11010 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11013 \begin_layout Plain Layout
11021 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11024 \begin_layout Plain Layout
11032 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11035 \begin_layout Plain Layout
11041 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11044 \begin_layout Plain Layout
11052 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11055 \begin_layout Plain Layout
11063 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11066 \begin_layout Plain Layout
11072 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11075 \begin_layout Plain Layout
11083 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11086 \begin_layout Plain Layout
11094 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11097 \begin_layout Plain Layout
11103 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11106 \begin_layout Plain Layout
11114 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11117 \begin_layout Plain Layout
11125 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11128 \begin_layout Plain Layout
11134 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11137 \begin_layout Plain Layout
11145 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11148 \begin_layout Plain Layout
11156 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11159 \begin_layout Plain Layout
11165 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11168 \begin_layout Plain Layout
11176 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11179 \begin_layout Plain Layout
11187 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11190 \begin_layout Plain Layout
11196 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11199 \begin_layout Plain Layout
11207 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11210 \begin_layout Plain Layout
11218 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11221 \begin_layout Plain Layout
11227 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11230 \begin_layout Plain Layout
11238 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11241 \begin_layout Plain Layout
11249 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11252 \begin_layout Plain Layout
11258 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11261 \begin_layout Plain Layout
11275 \begin_layout Section
11276 Multiple Lines, Columns and Rows
11279 \begin_layout Subsection
11280 Multiple Lines in Table Cells
11281 \begin_inset CommandInset label
11283 name "sub:Multiple-Lines-in"
11288 \begin_inset Index idx
11291 \begin_layout Plain Layout
11292 Multiple Lines in Table Cells
11298 \begin_inset Index idx
11301 \begin_layout Plain Layout
11310 \begin_layout Standard
11312 \begin_inset Float table
11318 \begin_layout Plain Layout
11319 \begin_inset Caption
11321 \begin_layout Plain Layout
11322 \begin_inset CommandInset label
11324 name "tab:Table-with-multiple"
11328 Table with multiple lines in cells
11336 \begin_layout Plain Layout
11338 \begin_inset Tabular
11339 <lyxtabular version="3" rows="3" columns="3">
11340 <features tabularvalignment="middle">
11341 <column alignment="center" valignment="middle" width="2.5cm">
11342 <column alignment="center" valignment="middle" width="0">
11343 <column alignment="center" valignment="middle" width="0">
11345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11348 \begin_layout Plain Layout
11350 \begin_inset Newline linebreak
11358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11361 \begin_layout Plain Layout
11367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11370 \begin_layout Plain Layout
11378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11381 \begin_layout Plain Layout
11387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11390 \begin_layout Plain Layout
11396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11399 \begin_layout Plain Layout
11407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11410 \begin_layout Plain Layout
11416 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11419 \begin_layout Plain Layout
11425 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11428 \begin_layout Plain Layout
11447 \begin_layout Standard
11448 Setting a fixed width for a column enables you to enter text as a paragraph
11449 with multiple lines and hyphenation.
11452 \begin_layout Standard
11454 \begin_inset space ~
11458 \begin_inset CommandInset ref
11460 reference "tab:Table-with-multiple"
11464 , create a 3×3 table, mark the first cell and right-click on it.
11465 In the appearing table dialog we set a cell width of 2.5
11466 \begin_inset space \thinspace{}
11469 cm and choose centered for the vertical and horizontal alignment.
11470 The vertical alignment is used for all cells of the row.
11471 As our text is smaller than 2.5
11472 \begin_inset space \thinspace{}
11475 cm, only one line will appear.
11476 To get two lines, a justified line break (shortcut
11479 arg "newline-insert linebreak"
11483 If the text is wider than the set cell width, it will automatically be
11484 broken to several lines.
11487 \begin_layout Standard
11488 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11489 by LaTeX if it is the first entry.
11490 Therefore you need to insert something to prevent the word not being the
11492 So add a horizontal space of 0
11493 \begin_inset space \thinspace{}
11496 pt before the word.
11497 As the space is zero, it doesn't change the output.
11499 \begin_inset space ~
11503 \begin_inset CommandInset ref
11505 reference "tab:Table-with-and"
11512 \begin_layout Standard
11513 \begin_inset Float table
11519 \begin_layout Plain Layout
11520 \begin_inset Caption
11522 \begin_layout Plain Layout
11523 \begin_inset CommandInset label
11525 name "tab:Table-with-and"
11529 Table with and without hyphenation
11537 \begin_layout Plain Layout
11538 \begin_inset space \hfill{}
11542 \begin_inset Tabular
11543 <lyxtabular version="3" rows="3" columns="3">
11544 <features tabularvalignment="middle">
11545 <column alignment="center" valignment="middle" width="2.5cm">
11546 <column alignment="center" valignment="middle" width="0">
11547 <column alignment="center" valignment="middle" width="0">
11549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11552 \begin_layout Plain Layout
11553 verylongtablecellword
11558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11561 \begin_layout Plain Layout
11567 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11570 \begin_layout Plain Layout
11578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11581 \begin_layout Plain Layout
11587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11590 \begin_layout Plain Layout
11596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11599 \begin_layout Plain Layout
11607 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11610 \begin_layout Plain Layout
11616 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11619 \begin_layout Plain Layout
11625 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11628 \begin_layout Plain Layout
11640 \begin_inset space \hfill{}
11644 \begin_inset Tabular
11645 <lyxtabular version="3" rows="3" columns="3">
11646 <features tabularvalignment="middle">
11647 <column alignment="center" valignment="middle" width="2.5cm">
11648 <column alignment="center" valignment="middle" width="0">
11649 <column alignment="center" valignment="middle" width="0">
11651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11654 \begin_layout Plain Layout
11655 \begin_inset space \hspace{}
11659 verylongtablecellword
11664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11667 \begin_layout Plain Layout
11673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11676 \begin_layout Plain Layout
11684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11687 \begin_layout Plain Layout
11693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11696 \begin_layout Plain Layout
11702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11705 \begin_layout Plain Layout
11713 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11716 \begin_layout Plain Layout
11722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11725 \begin_layout Plain Layout
11731 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11734 \begin_layout Plain Layout
11746 \begin_inset space \hfill{}
11757 \begin_layout Subsection
11759 \begin_inset CommandInset label
11761 name "sub:Multicolumns"
11766 \begin_inset Index idx
11769 \begin_layout Plain Layout
11776 \begin_inset Index idx
11779 \begin_layout Plain Layout
11780 Table ! Multicolumns
11788 \begin_layout Subsubsection
11792 \begin_layout Standard
11793 To merge cells over multiple columns, select as many cells within a row
11794 as you want to merge and use either the table-toolbar button
11799 arg "inset-modify tabular multicolumn"
11806 Edit\SpecialChar \menuseparator
11807 Table\SpecialChar \menuseparator
11810 , or right click on the marked cells and choose
11814 in the context menu.
11817 \begin_layout Standard
11818 Multicolumns have there own cell settings.
11819 That means changing cell borders, cell alignment, and the width only affects
11821 Here is an example table with a multicolumn cell in the first row and one
11822 in the last row without the upper border:
11825 \begin_layout Standard
11827 \begin_inset Tabular
11828 <lyxtabular version="3" rows="3" columns="4">
11829 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11830 <column alignment="center" valignment="top" width="0pt">
11831 <column alignment="center" valignment="middle" width="0">
11832 <column alignment="center" valignment="top" width="0in">
11833 <column alignment="center" valignment="top" width="0pt">
11835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11838 \begin_layout Plain Layout
11844 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11847 \begin_layout Plain Layout
11853 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11856 \begin_layout Plain Layout
11862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11865 \begin_layout Plain Layout
11873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11876 \begin_layout Plain Layout
11891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11894 \begin_layout Plain Layout
11900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11903 \begin_layout Plain Layout
11909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11912 \begin_layout Plain Layout
11920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11923 \begin_layout Plain Layout
11929 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11932 \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" rightline="true" usebox="none">
11950 \begin_layout Plain Layout
11964 \begin_layout Subsubsection
11965 Multicolumn Calculations
11966 \begin_inset CommandInset label
11968 name "sub:Multicolumn-Calculations"
11973 \begin_inset Index idx
11976 \begin_layout Plain Layout
11977 Multicolumns ! Calculations
11985 \begin_layout Standard
11986 LyX supports multicolumns directly, but we have to take account of the cell
11987 width of the columns spanned by the multicolumn cell.
11990 \begin_layout Standard
11991 \begin_inset Float table
11997 \begin_layout Plain Layout
11998 \begin_inset Caption
12000 \begin_layout Plain Layout
12001 \begin_inset CommandInset label
12003 name "tab:Table-with-centered"
12007 Table with centered multicolumn text above two columns that have exactly
12008 half the width of the multicolumn cell
12009 \begin_inset Argument
12012 \begin_layout Plain Layout
12013 Perfect multicolumn table
12026 \begin_layout Plain Layout
12028 \begin_inset Tabular
12029 <lyxtabular version="3" rows="3" columns="3">
12030 <features tabularvalignment="middle">
12031 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
12032 <column alignment="center" valignment="middle" width="0">
12033 <column alignment="center" valignment="top" width="0">
12035 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
12038 \begin_layout Plain Layout
12039 multiple lines multicolumn
12044 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12047 \begin_layout Plain Layout
12053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12056 \begin_layout Plain Layout
12064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12067 \begin_layout Plain Layout
12073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12076 \begin_layout Plain Layout
12082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12085 \begin_layout Plain Layout
12093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12096 \begin_layout Plain Layout
12102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12105 \begin_layout Plain Layout
12111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12114 \begin_layout Plain Layout
12133 \begin_layout Standard
12134 To create for example Table
12135 \begin_inset space ~
12139 \begin_inset CommandInset ref
12141 reference "tab:Table-with-centered"
12145 , mark the first two cells in the first row of a 3×3 table and right-click
12147 Now choose for this cell
12156 \begin_inset space \thinspace{}
12159 cm in the table dialog.
12160 The merged columns should have exactly half the width of the multicolumn
12161 cell, so that you would set a width of 1.25
12162 \begin_inset space \thinspace{}
12165 cm for the first column.
12166 The second column has then automatically a width of 1.25
12167 \begin_inset space \thinspace{}
12170 cm (multicolumn width - width of first column).
12171 This was done for Table
12172 \begin_inset space ~
12176 \begin_inset CommandInset ref
12178 reference "tab:Table-without-half"
12185 \begin_layout Standard
12186 \begin_inset Float table
12191 \begin_layout Plain Layout
12192 \begin_inset Caption
12194 \begin_layout Plain Layout
12195 \begin_inset CommandInset label
12197 name "tab:Table-without-half"
12201 Table where the spanned table columns are not exactly half the width of
12202 the multicolumn cell
12203 \begin_inset Argument
12206 \begin_layout Plain Layout
12207 Imperfect multicolumn table
12220 \begin_layout Plain Layout
12222 \begin_inset Tabular
12223 <lyxtabular version="3" rows="3" columns="3">
12224 <features tabularvalignment="middle">
12225 <column alignment="center" valignment="top" width="1.25cm">
12226 <column alignment="center" valignment="top" width="0">
12227 <column alignment="center" valignment="top" width="0">
12229 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12232 \begin_layout Plain Layout
12233 multiple lines multicolumn
12238 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12241 \begin_layout Plain Layout
12247 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12250 \begin_layout Plain Layout
12258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12261 \begin_layout Plain Layout
12267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12270 \begin_layout Plain Layout
12276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12279 \begin_layout Plain Layout
12287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12290 \begin_layout Plain Layout
12296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12299 \begin_layout Plain Layout
12305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12308 \begin_layout Plain Layout
12327 \begin_layout Standard
12328 You can see that the first column is not half the width of the multicolumn
12329 cell, it is a bit bigger.
12330 The reason is that the specified width of a cell
12331 \begin_inset Formula $W_{g}$
12334 is not its total width
12335 \begin_inset Formula $W_{\mathrm{tot}}$
12338 because a cell is always a bit larger than specified.
12340 \begin_inset space ~
12344 \begin_inset CommandInset ref
12346 reference "cha:Explanation-of-Equation"
12350 explains this in detail.
12353 \begin_layout Standard
12355 \begin_inset Formula $W_{g\, n}$
12358 which the user needs to set when
12362 columns are spanned can be calculated, so that each column has a total
12364 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12368 \begin_inset Formula
12370 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12378 \begin_layout Standard
12379 In our case we have
12380 \begin_inset Formula $n=2$
12384 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12387 cm and the default values for the lengths, so that equation
12388 \begin_inset CommandInset ref
12395 \begin_inset Formula
12397 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12405 \begin_layout Standard
12406 To enable calculations in LaTeX, the LaTeX-package
12410 must be loaded with the document preamble line
12411 \begin_inset Index idx
12414 \begin_layout Plain Layout
12415 LaTeX-packages ! calc
12423 \begin_layout Standard
12431 \begin_layout Standard
12432 LyX does not allow you to calculate lengths in the
12436 field of the table dialog.
12437 Therefore you have to format the column by inserting a LaTeX-argument in
12439 Here is an overview about the arguments:
12442 \begin_layout Itemize
12447 creates cell with a fixed width, its text is vertically top-aligned
12450 \begin_layout Itemize
12455 creates cell with a fixed width, its text is vertically centered
12458 \begin_layout Itemize
12463 creates cell with a fixed width, its text is vertically bottom-aligned
12466 \begin_layout Standard
12467 By entering a LaTeX-argument, all cell settings set in the table dialog
12471 \begin_layout Standard
12472 \begin_inset Note Greyedout
12475 \begin_layout Plain Layout
12480 Due to a bug, LyX shows the overwritten settings anyway.
12488 \begin_layout Standard
12489 As the text should be horizontally centered, the command
12496 You can now enter the following LaTeX-argument for the first spanned column:
12499 \begin_layout Standard
12504 centering}m{1.25cm-6.2pt}
12507 \begin_layout Standard
12512 means, that the commands inside the braces are applied before the cell
12516 \begin_layout Standard
12517 Although we have chosen centered alignment for the text of the multicolumn
12518 cell, it is still left aligned.
12519 This is because LyX only applies the alignment to single columns.
12520 So for the multicolumn cell we have to use the LaTeX-argument
12523 \begin_layout Standard
12531 \begin_layout Subsection
12533 \begin_inset CommandInset label
12535 name "sub:Multirows"
12540 \begin_inset Index idx
12543 \begin_layout Plain Layout
12550 \begin_inset Index idx
12553 \begin_layout Plain Layout
12562 \begin_layout Standard
12563 To merge cells over multiple rows, select as many cells within a column
12564 as you want to merge and use either the table-toolbar button
12569 arg "inset-modify tabular multirow"
12576 Edit\SpecialChar \menuseparator
12577 Table\SpecialChar \menuseparator
12580 , or right click on the marked cells and choose
12584 in the context menu.
12587 \begin_layout Standard
12588 Here is an example table with a multirow in the first column:
12591 \begin_layout Standard
12593 \begin_inset Tabular
12594 <lyxtabular version="3" rows="3" columns="3">
12595 <features tabularvalignment="middle">
12596 <column alignment="center" valignment="top" width="0pt">
12597 <column alignment="center" valignment="top" width="0">
12598 <column alignment="center" valignment="top" width="0">
12600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12603 \begin_layout Plain Layout
12609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12612 \begin_layout Plain Layout
12618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12621 \begin_layout Plain Layout
12629 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12632 \begin_layout Plain Layout
12638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12641 \begin_layout Plain Layout
12647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12650 \begin_layout Plain Layout
12658 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12661 \begin_layout Plain Layout
12667 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12670 \begin_layout Plain Layout
12676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12679 \begin_layout Plain Layout
12693 \begin_layout Standard
12694 The width of multirow cells is set by setting the width and alignment for
12700 shifts the content of the multirow up/down if the offset is positive/negative.
12703 \begin_layout Standard
12704 If the column of a multirow cell has no explicit width, the multirow cell
12705 inherits the alignment of the column.
12706 Otherwise it is by default left-aligned.
12707 To override the default, renew the command
12716 \begin_layout Standard
12728 \begin_layout Standard
12729 in the document preamble.
12730 Then all entries of multirow cells in the document are centered.
12731 If centering is only needed for several tables, you can renew the command
12732 in a TeX-Code box just before the table instead of the preamble.
12733 If the text should be right-aligned, replace
12746 To return to left-alignment
12755 \begin_layout Standard
12756 This is an example table with a right-aligned multirow cell that has a vertical
12758 \begin_inset space \thinspace{}
12762 \begin_inset space \thinspace{}
12768 \begin_layout Standard
12774 \begin_layout Plain Layout
12788 \begin_inset Tabular
12789 <lyxtabular version="3" rows="4" columns="3">
12790 <features tabularvalignment="middle">
12791 <column alignment="center" valignment="top" width="3cm">
12792 <column alignment="center" valignment="top" width="0">
12793 <column alignment="center" valignment="top" width="0">
12795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12798 \begin_layout Plain Layout
12804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12807 \begin_layout Plain Layout
12813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12816 \begin_layout Plain Layout
12824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12827 \begin_layout Plain Layout
12833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12836 \begin_layout Plain Layout
12842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12845 \begin_layout Plain Layout
12853 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12856 \begin_layout Plain Layout
12862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12865 \begin_layout Plain Layout
12871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12874 \begin_layout Plain Layout
12882 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12885 \begin_layout Plain Layout
12891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12894 \begin_layout Plain Layout
12900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12903 \begin_layout Plain Layout
12918 \begin_layout Plain Layout
12934 \begin_layout Standard
12935 To start a new line in a multirow you can use a forced line break (shortcut
12939 arg "newline-insert newline"
12942 ) but this will not respect the cell lines as demonstrated in this table:
12945 \begin_layout Standard
12948 \begin_inset Tabular
12949 <lyxtabular version="3" rows="3" columns="2">
12950 <features tabularvalignment="middle">
12951 <column alignment="left" valignment="middle" width="2cm">
12952 <column alignment="center" valignment="top" width="0">
12954 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12957 \begin_layout Plain Layout
12959 \begin_inset Newline newline
12963 \begin_inset Newline newline
12971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12974 \begin_layout Plain Layout
12982 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12985 \begin_layout Plain Layout
12991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12994 \begin_layout Plain Layout
13002 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13005 \begin_layout Plain Layout
13011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13014 \begin_layout Plain Layout
13028 \begin_layout Standard
13029 Therefore be careful with forced line breaks.
13032 \begin_layout Subsection
13033 Cells with diagonal line(s)
13036 \begin_layout Standard
13037 To tell the reader what is meant by column and row headings in a table,
13038 it is helpful to split the first cell of the table by one or two diagonal
13040 This can be achieved by loading the LaTeX-package
13045 \begin_inset Index idx
13048 \begin_layout Plain Layout
13049 LaTeX-packages ! picinpar
13054 in the document preamble.
13055 The package provides the command
13061 that is inserted as TeX-Code and that can take 2 or 3
13062 \begin_inset space ~
13068 \begin_layout Standard
13073 diagbox[options]{lower left}{upper right}
13076 \begin_layout Standard
13081 diagbox[options]{lower left}{upper left}{upper right}
13084 \begin_layout Standard
13085 The first scheme divides the cell by a single diagonal line and the arguments
13086 are placed below and above this line.
13087 The second scheme divides the cell by 2
13088 \begin_inset space ~
13094 \begin_layout Standard
13098 \begin_layout Plain Layout
13108 \begin_inset Note Note
13111 \begin_layout Plain Layout
13112 The following section will only be displayed when the LaTeX-package
13124 \begin_layout Standard
13125 Here is an example table where
13131 is used in the 2-argument scheme in the first cell:
13132 \begin_inset VSpace medskip
13138 \begin_layout Standard
13140 \begin_inset Tabular
13141 <lyxtabular version="3" rows="4" columns="4">
13142 <features tabularvalignment="middle">
13143 <column alignment="center" valignment="top" width="0">
13144 <column alignment="center" valignment="top" width="0">
13145 <column alignment="center" valignment="top" width="0">
13146 <column alignment="center" valignment="top" width="0">
13148 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13151 \begin_layout Plain Layout
13155 \begin_layout Plain Layout
13168 \begin_layout Plain Layout
13179 \begin_layout Plain Layout
13191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13194 \begin_layout Plain Layout
13200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13203 \begin_layout Plain Layout
13209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13212 \begin_layout Plain Layout
13220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13223 \begin_layout Plain Layout
13229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13232 \begin_layout Plain Layout
13238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13241 \begin_layout Plain Layout
13247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13250 \begin_layout Plain Layout
13258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13261 \begin_layout Plain Layout
13267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13270 \begin_layout Plain Layout
13276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13279 \begin_layout Plain Layout
13285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13288 \begin_layout Plain Layout
13296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13299 \begin_layout Plain Layout
13305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13308 \begin_layout Plain Layout
13314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13317 \begin_layout Plain Layout
13323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13326 \begin_layout Plain Layout
13338 \begin_inset VSpace medskip
13344 \begin_layout Standard
13345 The 3-argument scheme is for example useful for cross-tables of sports leagues
13349 \begin_layout Standard
13352 \begin_inset Tabular
13353 <lyxtabular version="3" rows="4" columns="4">
13354 <features tabularvalignment="middle">
13355 <column alignment="center" valignment="top" width="0pt">
13356 <column alignment="center" valignment="top" width="0">
13357 <column alignment="center" valignment="top" width="0">
13358 <column alignment="center" valignment="top" width="0">
13360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13363 \begin_layout Plain Layout
13367 \begin_layout Plain Layout
13380 \begin_layout Plain Layout
13391 \begin_layout Plain Layout
13402 \begin_layout Plain Layout
13414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13417 \begin_layout Plain Layout
13423 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13426 \begin_layout Plain Layout
13432 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13435 \begin_layout Plain Layout
13443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13446 \begin_layout Plain Layout
13452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13455 \begin_layout Plain Layout
13461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13464 \begin_layout Plain Layout
13470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13473 \begin_layout Plain Layout
13481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13484 \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" leftline="true" usebox="none">
13502 \begin_layout Plain Layout
13508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13511 \begin_layout Plain Layout
13519 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13522 \begin_layout Plain Layout
13528 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13531 \begin_layout Plain Layout
13537 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13540 \begin_layout Plain Layout
13546 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13549 \begin_layout Plain Layout
13563 \begin_layout Standard
13564 For larger cross-tables one might use split cells in 2 or every corner of
13565 the table like in this example:
13568 \begin_layout Standard
13571 \begin_inset Tabular
13572 <lyxtabular version="3" rows="5" columns="5">
13573 <features tabularvalignment="middle">
13574 <column alignment="center" valignment="top" width="0pt">
13575 <column alignment="center" valignment="top" width="0">
13576 <column alignment="center" valignment="top" width="0">
13577 <column alignment="center" valignment="top" width="0">
13578 <column alignment="center" valignment="top" width="0">
13580 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13583 \begin_layout Plain Layout
13587 \begin_layout Plain Layout
13600 \begin_layout Plain Layout
13611 \begin_layout Plain Layout
13622 \begin_layout Plain Layout
13634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13637 \begin_layout Plain Layout
13643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13646 \begin_layout Plain Layout
13652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13655 \begin_layout Plain Layout
13661 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13664 \begin_layout Plain Layout
13668 \begin_layout Plain Layout
13681 \begin_layout Plain Layout
13692 \begin_layout Plain Layout
13703 \begin_layout Plain Layout
13717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13720 \begin_layout Plain Layout
13726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13729 \begin_layout Plain Layout
13735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13738 \begin_layout Plain Layout
13744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13747 \begin_layout Plain Layout
13753 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13756 \begin_layout Plain Layout
13764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13767 \begin_layout Plain Layout
13773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13776 \begin_layout Plain Layout
13782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13785 \begin_layout Plain Layout
13791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13794 \begin_layout Plain Layout
13800 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13803 \begin_layout Plain Layout
13811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13814 \begin_layout Plain Layout
13820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13823 \begin_layout Plain Layout
13829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13832 \begin_layout Plain Layout
13838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13841 \begin_layout Plain Layout
13847 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13850 \begin_layout Plain Layout
13858 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13861 \begin_layout Plain Layout
13865 \begin_layout Plain Layout
13878 \begin_layout Plain Layout
13889 \begin_layout Plain Layout
13900 \begin_layout Plain Layout
13912 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13915 \begin_layout Plain Layout
13921 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13924 \begin_layout Plain Layout
13930 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13933 \begin_layout Plain Layout
13939 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13942 \begin_layout Plain Layout
13946 \begin_layout Plain Layout
13959 \begin_layout Plain Layout
13970 \begin_layout Plain Layout
13981 \begin_layout Plain Layout
14001 \begin_layout Standard
14002 To rotate the diagonal lines, the command option
14027 and represent a point of a compass.
14032 is for example the south-west corner.
14033 Thus in the lower left cell of the above table the command
14036 \begin_layout Standard
14041 diagbox[dir=SW]{Team home}{Result}{Team away}
14044 \begin_layout Standard
14046 If no direction is given, it will be NW.
14049 \begin_layout Standard
14050 The necessary width of split cells is automatically calculated.
14051 Thus if you set a fixed column width smaller than the calculated one, the
14052 cell's content will protrude the cell borders:
14055 \begin_layout Standard
14058 \begin_inset Tabular
14059 <lyxtabular version="3" rows="2" columns="2">
14060 <features tabularvalignment="middle">
14061 <column alignment="center" valignment="top" width="3cm">
14062 <column alignment="center" valignment="top" width="0">
14064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14067 \begin_layout Plain Layout
14071 \begin_layout Plain Layout
14084 \begin_layout Plain Layout
14095 \begin_layout Plain Layout
14107 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14110 \begin_layout Plain Layout
14118 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14121 \begin_layout Plain Layout
14127 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14130 \begin_layout Plain Layout
14144 \begin_layout Standard
14145 If you need a certain width for columns with a split cell, use the command
14150 (replace '3cm' by the width you need).
14151 In the following table the width of the first column is set to 4
14152 \begin_inset space \thinspace{}
14163 \begin_inset space \thinspace{}
14167 \begin_inset space \thinspace{}
14172 tabcolsep is necessary because the overall width is the width for the text
14173 (in this case the 4
14174 \begin_inset space \thinspace{}
14177 cm) plus two times the separation of the text and the cell border.
14178 The calculation of the width cannot be done in the command option of
14184 so one needs to create a new length which can be used later.
14185 This is done with the TeX-Code commands
14188 \begin_layout Standard
14196 \begin_inset Newline newline
14208 \begin_layout Standard
14212 \begin_layout Plain Layout
14221 \begin_layout Plain Layout
14237 \begin_layout Standard
14238 To enable calculations in LaTeX one needs to load the package
14243 \begin_inset Index idx
14246 \begin_layout Plain Layout
14247 LaTeX-packages ! calc
14252 in the document preamble.
14255 \begin_layout Standard
14256 In this table you can now use the command
14259 \begin_layout Standard
14269 \begin_layout Standard
14273 \begin_layout Standard
14276 \begin_inset Tabular
14277 <lyxtabular version="3" rows="2" columns="2">
14278 <features tabularvalignment="middle">
14279 <column alignment="center" valignment="top" width="4cm">
14280 <column alignment="center" valignment="top" width="0">
14282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14285 \begin_layout Plain Layout
14289 \begin_layout Plain Layout
14304 \begin_layout Plain Layout
14315 \begin_layout Plain Layout
14327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14330 \begin_layout Plain Layout
14338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14341 \begin_layout Plain Layout
14347 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14350 \begin_layout Plain Layout
14364 \begin_layout Standard
14365 Note that the split cell needs to be the widest one in the column.
14366 Otherwise the length of the diagonal line cannot be calculated correctly
14367 like in this table:
14370 \begin_layout Standard
14373 \begin_inset Tabular
14374 <lyxtabular version="3" rows="2" columns="2">
14375 <features tabularvalignment="middle">
14376 <column alignment="center" valignment="top" width="0pt">
14377 <column alignment="center" valignment="top" width="0">
14379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14382 \begin_layout Plain Layout
14386 \begin_layout Plain Layout
14399 \begin_layout Plain Layout
14410 \begin_layout Plain Layout
14422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14425 \begin_layout Plain Layout
14433 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14436 \begin_layout Plain Layout
14442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14445 \begin_layout Plain Layout
14459 \begin_layout Standard
14460 In this case use the
14471 It is then not necessary to add 2
14473 tabcolsep because the cell width is now the width of the column.
14474 In this table a width of 3
14475 \begin_inset space \thinspace{}
14481 \begin_layout Standard
14484 \begin_inset Tabular
14485 <lyxtabular version="3" rows="2" columns="2">
14486 <features tabularvalignment="middle">
14487 <column alignment="center" valignment="top" width="0pt">
14488 <column alignment="center" valignment="top" width="0">
14490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14493 \begin_layout Plain Layout
14497 \begin_layout Plain Layout
14501 diagbox[width=3cm]{
14510 \begin_layout Plain Layout
14521 \begin_layout Plain Layout
14533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14536 \begin_layout Plain Layout
14544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14547 \begin_layout Plain Layout
14553 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14556 \begin_layout Plain Layout
14570 \begin_layout Standard
14571 For multiple text lines in split cells one needs some extra height to fit
14572 the text to the cell.
14573 This can be achieved with the
14583 (replace '3cm' by the height you need).
14584 In the following table the command
14587 \begin_layout Standard
14592 diagbox[width=3cm,height=1.4cm]{A
14603 \begin_layout Standard
14604 is used in the first cell.
14613 creates hereby the line break.
14617 \begin_layout Plain Layout
14618 Breaking lines with
14622 is only possible when the column has a fixed width.
14630 \begin_layout Standard
14633 \begin_inset Tabular
14634 <lyxtabular version="3" rows="2" columns="2">
14635 <features tabularvalignment="middle">
14636 <column alignment="center" valignment="top" width="0">
14637 <column alignment="center" valignment="top" width="0">
14639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14642 \begin_layout Plain Layout
14646 \begin_layout Plain Layout
14650 diagbox[width=3cm,height=1.4cm]{
14659 \begin_layout Plain Layout
14674 \begin_layout Plain Layout
14685 \begin_layout Plain Layout
14700 \begin_layout Plain Layout
14712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14715 \begin_layout Plain Layout
14723 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14726 \begin_layout Plain Layout
14732 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14735 \begin_layout Plain Layout
14749 \begin_layout Standard
14753 \begin_layout Plain Layout
14763 \begin_inset Note Note
14766 \begin_layout Plain Layout
14767 The following will be displayed when the LaTeX-package
14779 \begin_layout Standard
14780 You need to install the LaTeX-package
14784 to see the following part of this section in the output.
14787 \begin_layout Standard
14791 \begin_layout Plain Layout
14803 \begin_layout Standard
14804 For more info about the LaTeX-package
14808 , see its documentation,
14809 \begin_inset CommandInset citation
14818 \begin_layout Section
14820 \begin_inset CommandInset label
14822 name "sec:Formal-Tables"
14827 \begin_inset Index idx
14830 \begin_layout Plain Layout
14839 \begin_layout Standard
14840 Tables are often typeset in books similar to Table
14841 \begin_inset space ~
14845 \begin_inset CommandInset ref
14847 reference "tab:Example-booktabs-table"
14852 This kind of tables is called
14853 \begin_inset Quotes eld
14861 \begin_inset Quotes erd
14865 To make a table a formal table use the option
14873 tab of the table dialog.
14876 \begin_layout Standard
14877 \begin_inset Float table
14883 \begin_layout Plain Layout
14884 \begin_inset Caption
14886 \begin_layout Plain Layout
14887 \begin_inset CommandInset label
14889 name "tab:Example-booktabs-table"
14893 Example booktabs-table
14901 \begin_layout Plain Layout
14903 \begin_inset Tabular
14904 <lyxtabular version="3" rows="8" columns="4">
14905 <features booktabs="true" tabularvalignment="middle">
14906 <column alignment="center" valignment="top" width="0">
14907 <column alignment="center" valignment="top" width="0">
14908 <column alignment="center" valignment="top" width="0">
14909 <column alignment="center" valignment="top" width="0">
14911 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14914 \begin_layout Plain Layout
14920 <cell alignment="center" valignment="top" topline="true" usebox="none">
14923 \begin_layout Plain Layout
14925 \begin_inset space \thinspace{}
14933 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14936 \begin_layout Plain Layout
14938 \begin_inset space \thinspace{}
14946 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14949 \begin_layout Plain Layout
14957 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14960 \begin_layout Plain Layout
14964 \begin_layout Plain Layout
14977 \begin_layout Plain Layout
14986 Detector thickness in µm
14991 <cell alignment="center" valignment="top" usebox="none">
14994 \begin_layout Plain Layout
15000 <cell alignment="center" valignment="top" usebox="none">
15003 \begin_layout Plain Layout
15009 <cell alignment="center" valignment="top" usebox="none">
15012 \begin_layout Plain Layout
15020 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
15023 \begin_layout Plain Layout
15029 <cell alignment="center" valignment="top" topline="true" usebox="none">
15032 \begin_layout Plain Layout
15038 <cell alignment="center" valignment="top" topline="true" usebox="none">
15041 \begin_layout Plain Layout
15047 <cell alignment="center" valignment="top" topline="true" usebox="none">
15050 \begin_layout Plain Layout
15057 <row topspace="default">
15058 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15061 \begin_layout Plain Layout
15062 Spatial resolution in µm
15067 <cell alignment="center" valignment="top" usebox="none">
15070 \begin_layout Plain Layout
15076 <cell alignment="center" valignment="top" usebox="none">
15079 \begin_layout Plain Layout
15085 <cell alignment="center" valignment="top" usebox="none">
15088 \begin_layout Plain Layout
15095 <row topspace="default">
15096 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15099 \begin_layout Plain Layout
15101 \begin_inset Formula $f_{\mathrm{max}}$
15109 <cell alignment="center" valignment="top" usebox="none">
15112 \begin_layout Plain Layout
15118 <cell alignment="center" valignment="top" usebox="none">
15121 \begin_layout Plain Layout
15127 <cell alignment="center" valignment="top" usebox="none">
15130 \begin_layout Plain Layout
15137 <row topspace="default">
15138 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15141 \begin_layout Plain Layout
15145 \begin_layout Plain Layout
15149 cmidrule(l{10pt}){1-1}
15154 LSF-spatial resolution
15159 <cell alignment="center" valignment="top" usebox="none">
15162 \begin_layout Plain Layout
15168 <cell alignment="center" valignment="top" usebox="none">
15171 \begin_layout Plain Layout
15177 <cell alignment="center" valignment="top" usebox="none">
15180 \begin_layout Plain Layout
15188 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15191 \begin_layout Plain Layout
15197 <cell alignment="center" valignment="top" usebox="none">
15200 \begin_layout Plain Layout
15206 <cell alignment="center" valignment="top" usebox="none">
15209 \begin_layout Plain Layout
15215 <cell alignment="center" valignment="top" usebox="none">
15218 \begin_layout Plain Layout
15226 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15229 \begin_layout Plain Layout
15235 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15238 \begin_layout Plain Layout
15244 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15247 \begin_layout Plain Layout
15253 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15256 \begin_layout Plain Layout
15275 \begin_layout Standard
15276 Spaces to table rows can be added using the
15280 tab of the table dialog as described in section
15281 \begin_inset space ~
15285 \begin_inset CommandInset ref
15287 reference "sub:Row-Spacing"
15294 \begin_layout Standard
15295 Unlike normal tables, formal tables have no vertical table lines.
15296 The horizontal table lines can be set as for normal tables but they appear
15297 with different widths in the output:
15298 \begin_inset Newline newline
15301 The first and the last table line have a default width of 0.08
15302 \begin_inset space \thinspace{}
15305 em while the other lines have a default width of 0.05
15306 \begin_inset space \thinspace{}
15312 \begin_layout Standard
15313 The default widths can be changed with the following preamble lines
15316 \begin_layout Standard
15326 \begin_inset Newline newline
15338 \begin_layout Standard
15339 This example is for the first line, the so called
15344 If you want to change the width for the last line, replace
15353 To change the width for the other lines replace
15362 You can use all units listed in appendix
15363 \begin_inset space ~
15367 \begin_inset CommandInset ref
15369 reference "cha:Units-available-in"
15376 \begin_layout Standard
15377 Lines that do not span all table columns can be created by setting a table
15378 line for multicolumn cells.
15379 LyX will then internally use the command
15385 to create this line.
15389 \begin_layout Standard
15394 cmidrule[width](trim){startcol-endcol}
15397 \begin_layout Standard
15404 are currently not supported by LyX so you have to use TeX-Code to be able
15412 s can manually be created by inserting the command as TeX-Code as the first
15413 cell entry of the first cell of a row.
15414 The line is then drawn in the output above the current row.
15417 \begin_layout Standard
15418 The default for the width is 0.03
15419 \begin_inset space \thinspace{}
15423 Startcol is the number of the column where the line starts and endcol the
15424 column number where the line ends.
15425 The endcol always needs to be specified, also when the line should span
15427 The optional parameter trim could be either
15435 where the trimwidth is also optional.
15436 Using for example the parameter
15440 means that the line is trimmed from its left end by 2
15441 \begin_inset space \thinspace{}
15445 If you don't specify the trimwidth the lines are trimmed by the default
15447 \begin_inset space \thinspace{}
15453 \begin_layout Standard
15454 \begin_inset VSpace bigskip
15458 \begin_inset space ~
15462 \begin_inset CommandInset ref
15464 reference "tab:Example-booktabs-table"
15468 was created using the commands
15471 \begin_layout Standard
15481 \begin_layout Standard
15482 at the beginning of the second row and
15485 \begin_layout Standard
15490 cmidrule(l{10pt}){1-1}
15493 \begin_layout Standard
15497 \begin_layout Standard
15498 \begin_inset VSpace bigskip
15504 \begin_layout Standard
15505 You might want to have overlapping
15512 \begin_inset space ~
15516 \begin_inset CommandInset ref
15518 reference "tab:Special-booktabs-table"
15523 This can be achieved with the TeX-Code command
15526 \begin_layout Standard
15534 \begin_layout Standard
15535 The command that was used for the second row of Table
15536 \begin_inset space ~
15540 \begin_inset CommandInset ref
15542 reference "tab:Special-booktabs-table"
15549 \begin_layout Standard
15563 \begin_layout Standard
15564 The command for the sixth row is
15567 \begin_layout Standard
15579 \begin_layout Standard
15580 \begin_inset VSpace bigskip
15586 \begin_layout Standard
15587 If you are in any way not satisfied with the border line spacing, you can
15588 use the following command to produce lines that span over all table columns
15593 \begin_layout Standard
15598 specialrule{width}{space above}{space below}
15601 \begin_layout Standard
15602 For more information about these features, refer to the manual of the LaTeX-pack
15608 \begin_inset CommandInset citation
15615 \begin_inset Index idx
15618 \begin_layout Plain Layout
15619 LaTeX-packages ! booktabs
15627 \begin_layout Standard
15628 \begin_inset Float table
15634 \begin_layout Plain Layout
15635 \begin_inset Caption
15637 \begin_layout Plain Layout
15638 \begin_inset CommandInset label
15640 name "tab:Special-booktabs-table"
15644 Special booktabs-table
15652 \begin_layout Plain Layout
15654 \begin_inset Tabular
15655 <lyxtabular version="3" rows="8" columns="4">
15656 <features booktabs="true" tabularvalignment="middle">
15657 <column alignment="center" valignment="top" width="0">
15658 <column alignment="center" valignment="top" width="0">
15659 <column alignment="center" valignment="top" width="0">
15660 <column alignment="center" valignment="top" width="0">
15662 <cell alignment="center" valignment="top" topline="true" usebox="none">
15665 \begin_layout Plain Layout
15671 <cell alignment="center" valignment="top" topline="true" usebox="none">
15674 \begin_layout Plain Layout
15676 \begin_inset space \thinspace{}
15684 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15687 \begin_layout Plain Layout
15689 \begin_inset space \thinspace{}
15697 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15700 \begin_layout Plain Layout
15708 <cell alignment="center" valignment="top" usebox="none">
15711 \begin_layout Plain Layout
15715 \begin_layout Plain Layout
15728 \begin_layout Plain Layout
15741 \begin_layout Plain Layout
15754 \begin_layout Plain Layout
15763 Detector thickness in µm
15768 <cell alignment="center" valignment="top" usebox="none">
15771 \begin_layout Plain Layout
15777 <cell alignment="center" valignment="top" usebox="none">
15780 \begin_layout Plain Layout
15786 <cell alignment="center" valignment="top" usebox="none">
15789 \begin_layout Plain Layout
15797 <cell alignment="center" valignment="top" topline="true" usebox="none">
15800 \begin_layout Plain Layout
15806 <cell alignment="center" valignment="top" topline="true" usebox="none">
15809 \begin_layout Plain Layout
15815 <cell alignment="center" valignment="top" topline="true" usebox="none">
15818 \begin_layout Plain Layout
15824 <cell alignment="center" valignment="top" topline="true" usebox="none">
15827 \begin_layout Plain Layout
15834 <row topspace="default">
15835 <cell alignment="center" valignment="top" usebox="none">
15838 \begin_layout Plain Layout
15839 Spatial resolution in µm
15844 <cell alignment="center" valignment="top" usebox="none">
15847 \begin_layout Plain Layout
15853 <cell alignment="center" valignment="top" usebox="none">
15856 \begin_layout Plain Layout
15862 <cell alignment="center" valignment="top" usebox="none">
15865 \begin_layout Plain Layout
15872 <row topspace="default">
15873 <cell alignment="center" valignment="top" usebox="none">
15876 \begin_layout Plain Layout
15878 \begin_inset Formula $f_{\mathrm{max}}$
15886 <cell alignment="center" valignment="top" usebox="none">
15889 \begin_layout Plain Layout
15895 <cell alignment="center" valignment="top" usebox="none">
15898 \begin_layout Plain Layout
15904 <cell alignment="center" valignment="top" usebox="none">
15907 \begin_layout Plain Layout
15915 <cell alignment="center" valignment="top" topline="true" usebox="none">
15918 \begin_layout Plain Layout
15922 \begin_layout Plain Layout
15935 \begin_layout Plain Layout
15944 LSF-spatial resolution
15949 <cell alignment="center" valignment="top" topline="true" usebox="none">
15952 \begin_layout Plain Layout
15958 <cell alignment="center" valignment="top" topline="true" usebox="none">
15961 \begin_layout Plain Layout
15967 <cell alignment="center" valignment="top" topline="true" usebox="none">
15970 \begin_layout Plain Layout
15978 <cell alignment="center" valignment="top" usebox="none">
15981 \begin_layout Plain Layout
15987 <cell alignment="center" valignment="top" usebox="none">
15990 \begin_layout Plain Layout
15996 <cell alignment="center" valignment="top" usebox="none">
15999 \begin_layout Plain Layout
16005 <cell alignment="center" valignment="top" usebox="none">
16008 \begin_layout Plain Layout
16016 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16019 \begin_layout Plain Layout
16025 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16028 \begin_layout Plain Layout
16034 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16037 \begin_layout Plain Layout
16043 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16046 \begin_layout Plain Layout
16065 \begin_layout Section
16066 Vertical Table Alignment
16067 \begin_inset Index idx
16070 \begin_layout Plain Layout
16079 \begin_layout Standard
16080 To align tables vertically in a text line, the table must be inside a box.
16081 The box can then be vertically aligned as described in section
16082 \begin_inset space ~
16086 \begin_inset CommandInset ref
16088 reference "sec:Box-Dialog"
16095 \begin_layout Standard
16096 In the following example the tables are inside a minipage
16100 \begin_layout Plain Layout
16101 Minipages are described in section
16102 \begin_inset space ~
16106 \begin_inset CommandInset ref
16108 reference "sec:Minipages"
16117 box that has a width of 15
16118 \begin_inset space \thinspace{}
16124 \begin_layout Itemize
16126 \begin_inset Box Frameless
16136 height_special "totalheight"
16139 \begin_layout Plain Layout
16140 \begin_inset Tabular
16141 <lyxtabular version="3" rows="3" columns="3">
16142 <features tabularvalignment="middle">
16143 <column alignment="center" valignment="top" width="0">
16144 <column alignment="center" valignment="top" width="0">
16145 <column alignment="center" valignment="top" width="0">
16147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16150 \begin_layout Plain Layout
16156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16159 \begin_layout Plain Layout
16165 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16168 \begin_layout Plain Layout
16176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16179 \begin_layout Plain Layout
16185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16188 \begin_layout Plain Layout
16194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16197 \begin_layout Plain Layout
16205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16208 \begin_layout Plain Layout
16214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16217 \begin_layout Plain Layout
16223 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16226 \begin_layout Plain Layout
16246 \begin_layout Plain Layout
16258 \begin_inset Box Frameless
16268 height_special "totalheight"
16271 \begin_layout Plain Layout
16272 \begin_inset Tabular
16273 <lyxtabular version="3" rows="3" columns="3">
16274 <features tabularvalignment="middle">
16275 <column alignment="center" valignment="top" width="0">
16276 <column alignment="center" valignment="top" width="0">
16277 <column alignment="center" valignment="top" width="0">
16279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16282 \begin_layout Plain Layout
16288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16291 \begin_layout Plain Layout
16297 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16300 \begin_layout Plain Layout
16308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16311 \begin_layout Plain Layout
16317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16320 \begin_layout Plain Layout
16326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16329 \begin_layout Plain Layout
16337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16340 \begin_layout Plain Layout
16346 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16349 \begin_layout Plain Layout
16355 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16358 \begin_layout Plain Layout
16378 \begin_layout Plain Layout
16388 \begin_layout Itemize
16390 \begin_inset Box Frameless
16400 height_special "totalheight"
16403 \begin_layout Plain Layout
16404 \begin_inset Tabular
16405 <lyxtabular version="3" rows="3" columns="3">
16406 <features tabularvalignment="middle">
16407 <column alignment="center" valignment="top" width="0">
16408 <column alignment="center" valignment="top" width="0">
16409 <column alignment="center" valignment="top" width="0">
16411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16414 \begin_layout Plain Layout
16420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16423 \begin_layout Plain Layout
16429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16432 \begin_layout Plain Layout
16440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16443 \begin_layout Plain Layout
16449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16452 \begin_layout Plain Layout
16458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16461 \begin_layout Plain Layout
16469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16472 \begin_layout Plain Layout
16478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16481 \begin_layout Plain Layout
16487 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16490 \begin_layout Plain Layout
16509 \begin_layout Itemize
16511 \begin_inset Box Frameless
16521 height_special "totalheight"
16524 \begin_layout Plain Layout
16525 \begin_inset Tabular
16526 <lyxtabular version="3" rows="3" columns="3">
16527 <features tabularvalignment="middle">
16528 <column alignment="center" valignment="top" width="0">
16529 <column alignment="center" valignment="top" width="0">
16530 <column alignment="center" valignment="top" width="0">
16532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16535 \begin_layout Plain Layout
16541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16544 \begin_layout Plain Layout
16550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16553 \begin_layout Plain Layout
16561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16564 \begin_layout Plain Layout
16570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16573 \begin_layout Plain Layout
16579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16582 \begin_layout Plain Layout
16590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16593 \begin_layout Plain Layout
16599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16602 \begin_layout Plain Layout
16608 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16611 \begin_layout Plain Layout
16631 \begin_layout Plain Layout
16643 \begin_inset Box Frameless
16653 height_special "totalheight"
16656 \begin_layout Plain Layout
16657 \begin_inset Tabular
16658 <lyxtabular version="3" rows="3" columns="3">
16659 <features tabularvalignment="middle">
16660 <column alignment="center" valignment="top" width="0">
16661 <column alignment="center" valignment="top" width="0">
16662 <column alignment="center" valignment="top" width="0">
16664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16667 \begin_layout Plain Layout
16673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16676 \begin_layout Plain Layout
16682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16685 \begin_layout Plain Layout
16693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16696 \begin_layout Plain Layout
16702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16705 \begin_layout Plain Layout
16711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16714 \begin_layout Plain Layout
16722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16725 \begin_layout Plain Layout
16731 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16734 \begin_layout Plain Layout
16740 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16743 \begin_layout Plain Layout
16763 \begin_layout Plain Layout
16773 \begin_layout Standard
16774 As you will see, the content of the first and last table row is not correctly
16776 To get this alignment, the minipage box must be set into a raisebox
16780 \begin_layout Plain Layout
16781 Raiseboxes are described in section
16782 \begin_inset space ~
16786 \begin_inset CommandInset ref
16788 reference "sub:Vertical-Alignment"
16798 In the example above the second table in the first item is aligned using
16799 the TeX-Code-command
16802 \begin_layout Standard
16812 \begin_layout Standard
16814 After the box the closing brace
16818 is inserted as TeX-Code.
16819 For the second table in the last item the command
16822 \begin_layout Standard
16832 \begin_layout Standard
16836 \begin_layout Standard
16837 \begin_inset Note Greyedout
16840 \begin_layout Plain Layout
16845 The alignment of the table row content to the surrounding text line is
16847 The required value for the
16853 command for this alignment depends on the document font, the font size,
16854 and the table line thickness.
16862 \begin_layout Section
16864 \begin_inset CommandInset label
16866 name "sec:Colored-Tables"
16871 \begin_inset Index idx
16874 \begin_layout Plain Layout
16883 \begin_layout Subsection
16885 \begin_inset Index idx
16888 \begin_layout Plain Layout
16889 Table Color ! for Cells
16895 \begin_inset Index idx
16898 \begin_layout Plain Layout
16899 Color ! for Table Cells
16907 \begin_layout Standard
16908 \begin_inset Float table
16914 \begin_layout Plain Layout
16915 \begin_inset Caption
16917 \begin_layout Plain Layout
16918 \begin_inset CommandInset label
16920 name "tab:Table-colored-without"
16924 Table colored without using the package
16929 \begin_inset Argument
16932 \begin_layout Plain Layout
16933 Table without colortbl
16946 \begin_layout Plain Layout
16948 \begin_inset Tabular
16949 <lyxtabular version="3" rows="3" columns="3">
16950 <features tabularvalignment="middle">
16951 <column alignment="center" valignment="top" width="0">
16952 <column alignment="center" valignment="top" width="0">
16953 <column alignment="center" valignment="top" width="0">
16955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16958 \begin_layout Plain Layout
16966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16969 \begin_layout Plain Layout
16977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16980 \begin_layout Plain Layout
16990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16993 \begin_layout Plain Layout
17001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17004 \begin_layout Plain Layout
17012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17015 \begin_layout Plain Layout
17025 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17028 \begin_layout Plain Layout
17036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17039 \begin_layout Plain Layout
17047 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17050 \begin_layout Plain Layout
17071 \begin_layout Standard
17072 If you only need colored text, mark the cells and choose a color in the
17075 Edit\SpecialChar \menuseparator
17077 \begin_inset space ~
17083 This was used to create Table
17084 \begin_inset space ~
17088 \begin_inset CommandInset ref
17090 reference "tab:Table-colored-without"
17095 In any other case you have to use the LaTeX-package
17100 \begin_inset Index idx
17103 \begin_layout Plain Layout
17104 LaTeX-packages ! colortbl
17112 \begin_layout Standard
17116 \begin_layout Plain Layout
17126 \begin_inset Note Note
17129 \begin_layout Plain Layout
17130 The following section part will only be displayed when the LaTeX-package
17143 \begin_layout Standard
17144 To create colored tables,
17148 must be loaded in the preamble with the line
17151 \begin_layout Standard
17156 usepackage{colortbl}
17159 \begin_layout Standard
17160 The color of a column is adjusted with the command
17163 \begin_layout Standard
17168 columncolor{name of color}
17171 \begin_layout Standard
17177 More about the command
17181 is contained in section
17182 \begin_inset space ~
17186 \begin_inset CommandInset ref
17188 reference "sub:Multicolumn-Calculations"
17195 \begin_layout Standard
17196 The following color names are predefined:
17199 \begin_layout Standard
17233 \begin_layout Standard
17234 \begin_inset VSpace medskip
17240 \begin_layout Standard
17241 If you add the options
17244 \begin_layout Standard
17247 usenames,dvipsnames
17250 \begin_layout Standard
17251 to the document class options in the document settings, you can additionally
17253 \begin_inset space ~
17257 These colors are listed in appendix
17258 \begin_inset space ~
17262 \begin_inset CommandInset ref
17264 reference "chap:List-of-dvips-colornames"
17269 One of these colors,
17273 , is used as example in Table
17274 \begin_inset space ~
17278 \begin_inset CommandInset ref
17280 reference "tab:Table-colored-using"
17287 \begin_layout Standard
17288 \begin_inset VSpace medskip
17294 \begin_layout Standard
17295 You can also define your own color with the command
17298 \begin_layout Standard
17303 definecolor{color name}{color model}{color values}
17306 \begin_layout Standard
17307 The color model can be
17310 \begin_layout Labeling
17311 \labelwidthstring 00.00.0000
17312 cmyk: cyan, magenta, yellow, black
17315 \begin_layout Labeling
17316 \labelwidthstring 00.00.0000
17317 rgb: red, green blue
17320 \begin_layout Labeling
17321 \labelwidthstring 00.00.0000
17325 \begin_layout Standard
17326 and the color values are comma separated numbers between 0 and 1 describing
17327 the factor for the corresponding color of the color model.
17330 \begin_layout Standard
17332 \begin_inset space \thinspace{}
17336 \begin_inset space \space{}
17343 " in the preamble with
17346 \begin_layout Standard
17351 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17354 \begin_layout Standard
17362 \begin_layout Standard
17367 definecolor{lightgray}{gray}{0.8}
17370 \begin_layout Standard
17371 \begin_inset VSpace medskip
17377 \begin_layout Standard
17378 Lines are colored with the command
17381 \begin_layout Standard
17386 rowcolor{name of color}
17389 \begin_layout Standard
17390 and cells are colored with the command
17393 \begin_layout Standard
17398 cellcolor{name of color}
17401 \begin_layout Standard
17402 Both commands are inserted at the beginning of a cell as TeX-Code.
17405 \begin_layout Standard
17406 To color characters in the table, mark the cells and use the LyX menu
17408 Edit\SpecialChar \menuseparator
17410 \begin_inset space ~
17416 If a cell contains TeX-Code mark only the characters, otherwise the colored
17417 TeX-Code will cause LaTeX-errors.
17420 \begin_layout Standard
17421 \begin_inset Note Greyedout
17424 \begin_layout Plain Layout
17429 Not all DVI-viewers are able to display self-defined colors.
17437 \begin_layout Standard
17438 \begin_inset VSpace bigskip
17444 \begin_layout Standard
17446 \begin_inset space ~
17450 \begin_inset CommandInset ref
17452 reference "tab:Table-colored-using"
17456 do the following: The color of the first column should be
17464 \begin_layout Standard
17469 columncolor{darkgreen}
17474 \begin_layout Standard
17475 as LaTeX-argument for this column.
17476 The first row should be light blue, therefore the TeX-Code command
17479 \begin_layout Standard
17487 \begin_layout Standard
17488 is inserted to the first cell of this row.
17489 Note that this overwrites the column color for the first cell.
17490 The last cell of the last row is colored maroon by inserting the TeX-Code
17494 \begin_layout Standard
17502 \begin_layout Standard
17503 The characters could now be colored using the menu
17505 Edit\SpecialChar \menuseparator
17507 \begin_inset space ~
17515 \begin_layout Standard
17516 \begin_inset Float table
17522 \begin_layout Plain Layout
17523 \begin_inset Caption
17525 \begin_layout Plain Layout
17526 \begin_inset CommandInset label
17528 name "tab:Table-colored-using"
17532 Table colored using the package
17537 \begin_inset Argument
17540 \begin_layout Plain Layout
17541 Table with colortbl
17554 \begin_layout Plain Layout
17556 \begin_inset Tabular
17557 <lyxtabular version="3" rows="3" columns="3">
17558 <features tabularvalignment="middle">
17559 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
17560 <column alignment="center" valignment="top" width="0">
17561 <column alignment="center" valignment="top" width="0">
17563 <cell alignment="center" valignment="top" usebox="none">
17566 \begin_layout Plain Layout
17570 \begin_layout Plain Layout
17586 <cell alignment="center" valignment="top" usebox="none">
17589 \begin_layout Plain Layout
17597 <cell alignment="center" valignment="top" usebox="none">
17600 \begin_layout Plain Layout
17610 <cell alignment="center" valignment="top" usebox="none">
17613 \begin_layout Plain Layout
17621 <cell alignment="center" valignment="top" usebox="none">
17624 \begin_layout Plain Layout
17632 <cell alignment="center" valignment="top" usebox="none">
17635 \begin_layout Plain Layout
17645 <cell alignment="center" valignment="top" usebox="none">
17648 \begin_layout Plain Layout
17656 <cell alignment="center" valignment="top" usebox="none">
17659 \begin_layout Plain Layout
17667 <cell alignment="center" valignment="top" usebox="none">
17670 \begin_layout Plain Layout
17674 \begin_layout Plain Layout
17703 \begin_layout Standard
17707 \begin_layout Plain Layout
17717 \begin_inset Note Note
17720 \begin_layout Plain Layout
17721 The following will be displayed when the LaTeX-package
17733 \begin_layout Standard
17734 You need to install the package
17738 to see the content of this section in the output.
17741 \begin_layout Standard
17745 \begin_layout Plain Layout
17757 \begin_layout Subsection
17759 \begin_inset Index idx
17762 \begin_layout Plain Layout
17763 Table Color ! for Lines
17769 \begin_inset Index idx
17772 \begin_layout Plain Layout
17773 Color ! for Table Lines
17781 \begin_layout Standard
17782 As described in section
17783 \begin_inset space ~
17787 \begin_inset CommandInset ref
17789 reference "sub:Line-Thickness"
17793 , the line thickness for all lines in a table can be adjusted with the length
17802 \begin_inset space \thinspace{}
17805 pt for all tables of this section.
17809 \begin_layout Plain Layout
17815 arrayrulewidth}{1.5pt}
17823 \begin_layout Standard
17824 To color vertical lines for example with green, create the following column
17825 format in the document preamble, according to the description in section
17826 \begin_inset space ~
17830 \begin_inset CommandInset ref
17832 reference "sub:Customized-Format"
17839 \begin_layout Standard
17844 newcolumntype{W}{!{
17851 \begin_layout Standard
17853 \begin_inset space ~
17857 \begin_inset CommandInset ref
17859 reference "tab:Table-with-vertical-colored"
17867 was used for the last column and
17871 for the other columns.
17874 \begin_layout Standard
17875 If you want to have several colors, define more column formats.
17878 \begin_layout Standard
17879 \begin_inset Float table
17885 \begin_layout Plain Layout
17886 \begin_inset Caption
17888 \begin_layout Plain Layout
17889 \begin_inset CommandInset label
17891 name "tab:Table-with-vertical-colored"
17895 Table with colored vertical lines
17903 \begin_layout Plain Layout
17905 \begin_inset Tabular
17906 <lyxtabular version="3" rows="3" columns="3">
17907 <features tabularvalignment="middle">
17908 <column alignment="center" valignment="top" width="0" special="Wc">
17909 <column alignment="center" valignment="top" width="0" special="Wc">
17910 <column alignment="center" valignment="top" width="0" special="WcW">
17912 <cell alignment="center" valignment="top" topline="true" usebox="none">
17915 \begin_layout Plain Layout
17921 <cell alignment="center" valignment="top" topline="true" usebox="none">
17924 \begin_layout Plain Layout
17930 <cell alignment="center" valignment="top" topline="true" usebox="none">
17933 \begin_layout Plain Layout
17941 <cell alignment="center" valignment="top" topline="true" usebox="none">
17944 \begin_layout Plain Layout
17950 <cell alignment="center" valignment="top" topline="true" usebox="none">
17953 \begin_layout Plain Layout
17959 <cell alignment="center" valignment="top" topline="true" usebox="none">
17962 \begin_layout Plain Layout
17970 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
17973 \begin_layout Plain Layout
17979 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
17982 \begin_layout Plain Layout
17988 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
17991 \begin_layout Plain Layout
18010 \begin_layout Standard
18011 \begin_inset VSpace bigskip
18014 To color horizontal lines for example with red, as in Table
18015 \begin_inset space ~
18019 \begin_inset CommandInset ref
18021 reference "tab:Table-with-horizontal-colored"
18025 , insert these commands in TeX-Code before the table or table float:
18028 \begin_layout Standard
18038 \begin_inset Newline newline
18046 \begin_inset Newline newline
18050 \begin_inset Phantom HPhantom
18053 \begin_layout Plain Layout
18056 \begin_inset space ~
18066 arrayrulecolor{red}
18070 arrayrulecolor{black}}
18073 \begin_layout Standard
18077 \begin_layout Plain Layout
18088 \begin_layout Plain Layout
18097 \begin_layout Plain Layout
18101 arrayrulecolor{red}
18105 arrayrulecolor{black}}
18111 \begin_inset Float table
18117 \begin_layout Plain Layout
18118 \begin_inset Caption
18120 \begin_layout Plain Layout
18121 \begin_inset CommandInset label
18123 name "tab:Table-with-horizontal-colored"
18127 Table with colored horizontal lines
18135 \begin_layout Plain Layout
18137 \begin_inset Tabular
18138 <lyxtabular version="3" rows="3" columns="3">
18139 <features tabularvalignment="middle">
18140 <column alignment="center" valignment="top" width="0">
18141 <column alignment="center" valignment="top" width="0">
18142 <column alignment="center" valignment="top" width="0">
18144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18147 \begin_layout Plain Layout
18153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18156 \begin_layout Plain Layout
18162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18165 \begin_layout Plain Layout
18173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18176 \begin_layout Plain Layout
18182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18185 \begin_layout Plain Layout
18191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18194 \begin_layout Plain Layout
18202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18205 \begin_layout Plain Layout
18211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18214 \begin_layout Plain Layout
18220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18223 \begin_layout Plain Layout
18242 \begin_layout Standard
18243 To return to the default line color black, insert this command in TeX-Code
18244 after the table or table float:
18247 \begin_layout Standard
18259 \begin_layout Standard
18261 \begin_inset space ~
18265 \begin_inset CommandInset ref
18267 reference "tab:Table-with-colored"
18271 is an example with colored vertical and horizontal lines.
18274 \begin_layout Standard
18275 \begin_inset Float table
18281 \begin_layout Plain Layout
18282 \begin_inset Caption
18284 \begin_layout Plain Layout
18285 \begin_inset CommandInset label
18287 name "tab:Table-with-colored"
18291 Table with colored lines
18299 \begin_layout Plain Layout
18301 \begin_inset Tabular
18302 <lyxtabular version="3" rows="3" columns="3">
18303 <features tabularvalignment="middle">
18304 <column alignment="center" valignment="top" width="0" special="Wc">
18305 <column alignment="center" valignment="top" width="0" special="Wc">
18306 <column alignment="center" valignment="top" width="0" special="WcW">
18308 <cell alignment="center" valignment="top" topline="true" usebox="none">
18311 \begin_layout Plain Layout
18317 <cell alignment="center" valignment="top" topline="true" usebox="none">
18320 \begin_layout Plain Layout
18326 <cell alignment="center" valignment="top" topline="true" usebox="none">
18329 \begin_layout Plain Layout
18337 <cell alignment="center" valignment="top" topline="true" usebox="none">
18340 \begin_layout Plain Layout
18346 <cell alignment="center" valignment="top" topline="true" usebox="none">
18349 \begin_layout Plain Layout
18355 <cell alignment="center" valignment="top" topline="true" usebox="none">
18358 \begin_layout Plain Layout
18365 <row topspace="default">
18366 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18369 \begin_layout Plain Layout
18375 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18378 \begin_layout Plain Layout
18384 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18387 \begin_layout Plain Layout
18406 \begin_layout Standard
18410 \begin_layout Plain Layout
18426 \begin_layout Standard
18430 \begin_layout Plain Layout
18436 arrayrulewidth}{0.4pt}
18444 \begin_layout Section
18445 Table Width Calculation
18446 \begin_inset CommandInset label
18448 name "sec:Table-Width-Calculation"
18455 \begin_layout Standard
18456 For wide tables it is sometimes difficult to assure that the table does
18457 not protrude over the page margin.
18458 Setting a fixed width for every column of the table is the solution, but
18459 what amount of space is needed for each column?
18462 \begin_layout Standard
18464 \begin_inset Formula $W_{\mathrm{table}}$
18467 can be calculated: Every column has the width of the specified column width
18469 \begin_inset Formula $W_{\mathrm{column}}$
18472 (that the content of the column can consume) plus two times the separation
18473 between the column content and the column border (LaTeX length
18480 \begin_inset space \thinspace{}
18483 pt) plus the width of a border line (LaTeX length
18490 \begin_inset space \thinspace{}
18494 \begin_inset Formula $n$
18498 \begin_inset space ~
18501 columns have the same width, the table width is
18502 \begin_inset Formula
18504 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
18512 \begin_layout Standard
18513 The available width for a table is the space between the page margins or
18514 the width of a text column (for a two-column document) (LaTeX length
18521 If all table columns should have the same width and
18522 \begin_inset Formula $W_{\mathrm{table}}$
18526 \begin_inset space \thinspace{}
18532 \begin_inset Formula $W_{\mathrm{column}}$
18535 can easily be calculated.
18538 \begin_layout Standard
18539 To be able to perform calculations you need to load the LaTeX-package
18544 \begin_inset Index idx
18547 \begin_layout Plain Layout
18548 LaTeX-packages ! calc
18553 in the document preamble.
18554 To set the width in the table dialog you have to use the field
18559 The command scheme for this field is the same that is explained in section
18560 \begin_inset space ~
18564 \begin_inset CommandInset ref
18566 reference "sub:Multicolumn-Calculations"
18572 \begin_inset space \thinspace{}
18575 columns with an uniform width and centered text, enter there for each column
18579 \begin_layout Standard
18586 columnwidth-62.4pt)/5}
18589 \begin_layout Standard
18591 \begin_inset space \thinspace{}
18594 columns where 2 should have 0.75
18595 \begin_inset space ~
18598 times the width than the 3 others, the calculation is
18599 \begin_inset Formula
18601 \backslash\mbox{columnwidth} & =3\, W_{\mathrm{column}}+2\cdot0.75\, W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
18602 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
18603 & =4.5\, W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
18604 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
18612 \begin_layout Standard
18613 In the table therefore the command
18616 \begin_layout Standard
18623 columnwidth-62.4pt)/
18628 \begin_layout Standard
18629 is used for the wider columns and
18632 \begin_layout Standard
18639 columnwidth-62.4pt)/
18646 \begin_layout Standard
18647 for the smaller ones:
18650 \begin_layout Standard
18651 \begin_inset Tabular
18652 <lyxtabular version="3" rows="2" columns="5">
18653 <features tabularvalignment="middle">
18654 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
18655 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
18656 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
18657 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
18658 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
18660 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18663 \begin_layout Plain Layout
18669 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18672 \begin_layout Plain Layout
18678 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18681 \begin_layout Plain Layout
18687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18690 \begin_layout Plain Layout
18696 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18699 \begin_layout Plain Layout
18707 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18710 \begin_layout Plain Layout
18711 111111 1111111 111111 111111111 11111 11111 1111
18716 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18719 \begin_layout Plain Layout
18725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18728 \begin_layout Plain Layout
18729 2222 22222 222222 222222222 2222222 22 22222
18734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18737 \begin_layout Plain Layout
18743 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18746 \begin_layout Plain Layout
18747 333333 333333 333333 33333 3333333 333
18760 \begin_layout Section
18761 Table Customization
18762 \begin_inset Index idx
18765 \begin_layout Plain Layout
18766 Table Customization
18772 \begin_inset Index idx
18775 \begin_layout Plain Layout
18776 Table ! Customization
18784 \begin_layout Subsection
18786 \begin_inset CommandInset label
18788 name "sub:Row-Spacing"
18793 \begin_inset Index idx
18796 \begin_layout Plain Layout
18797 Table Customization ! Row Spacing
18805 \begin_layout Standard
18806 You can add vertical space to table rows in the
18810 tab of the table dialog.
18811 You find there three possibilities:
18814 \begin_layout Description
18816 \begin_inset space ~
18820 \begin_inset space ~
18823 row will add space above the characters of the table row.
18824 If the table is a formal table
18828 \begin_layout Plain Layout
18829 Formal tables are explained in section
18830 \begin_inset space ~
18834 \begin_inset CommandInset ref
18836 reference "sec:Formal-Tables"
18845 LyX will insert as default 0.5
18846 \begin_inset space \thinspace{}
18850 For normal tables the inserted space will unfortunately destroy the vertical
18851 table lines as in the following table:
18852 \begin_inset VSpace medskip
18856 \begin_inset Newline newline
18860 \begin_inset space \hspace*{}
18865 \begin_inset space \hfill{}
18869 \begin_inset Tabular
18870 <lyxtabular version="3" rows="3" columns="1">
18871 <features tabularvalignment="middle">
18872 <column alignment="center" valignment="top" width="0">
18874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18877 \begin_layout Plain Layout
18884 <row topspace="3mm">
18885 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18888 \begin_layout Plain Layout
18890 \begin_inset space \thinspace{}
18893 mm space top of row
18900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18903 \begin_layout Plain Layout
18915 \begin_inset space \hfill{}
18919 \begin_inset space \hspace*{}
18924 \begin_inset VSpace medskip
18928 \begin_inset Newline newline
18931 So inserting space in the top of row for normal tables is only useful when
18932 you don't have vertical lines.
18935 \begin_layout Description
18937 \begin_inset space ~
18941 \begin_inset space ~
18944 row will add space below the characters of the table row.
18945 If the table is a formal table LyX will insert as default 0.5
18946 \begin_inset space \thinspace{}
18949 em space, for normal tables the default size is 2
18950 \begin_inset space \thinspace{}
18956 \begin_layout Description
18958 \begin_inset space ~
18961 rows adds space between the current and the following row.
18962 If the table is a formal table LyX will insert as default 0.5
18963 \begin_inset space \thinspace{}
18967 For normal tables the inserted space will unfortunately destroy the vertical
18968 table lines as in the following table:
18969 \begin_inset VSpace medskip
18973 \begin_inset Newline newline
18977 \begin_inset space \hspace*{}
18982 \begin_inset space \hfill{}
18986 \begin_inset Tabular
18987 <lyxtabular version="3" rows="3" columns="1">
18988 <features tabularvalignment="middle">
18989 <column alignment="center" valignment="top" width="0">
18991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18994 \begin_layout Plain Layout
19001 <row interlinespace="3mm">
19002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19005 \begin_layout Plain Layout
19006 \begin_inset Formula $\downarrow$
19010 \begin_inset space \thinspace{}
19013 mm space between row
19014 \begin_inset Formula $\downarrow$
19024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19027 \begin_layout Plain Layout
19028 \begin_inset Formula $\uparrow$
19032 \begin_inset space \thinspace{}
19035 mm space between row
19036 \begin_inset Formula $\uparrow$
19050 \begin_inset space \hfill{}
19054 \begin_inset space \hspace*{}
19059 \begin_inset VSpace medskip
19063 \begin_inset Newline newline
19066 So inserting space between rows for normal tables is only useful when you
19067 don't have vertical lines.
19070 \begin_layout Standard
19071 \begin_inset VSpace bigskip
19074 When you want to add extra height to all cells of all tables, you can do
19075 this with the following preamble lines:
19078 \begin_layout Standard
19083 @ifundefined{extrarowheight}
19084 \begin_inset Newline newline
19088 \begin_inset Phantom HPhantom
19091 \begin_layout Plain Layout
19094 \begin_inset space ~
19104 usepackage{array}}{}
19105 \begin_inset Newline newline
19112 extrarowheight}{height}
19115 \begin_layout Standard
19116 But this has the disadvantage that the cell texts are no longer exactly
19117 vertically centered.
19122 will be loaded automatically by LyX when you use self defined table formats.
19123 To avoid that it being loaded twice the command
19129 is used in the above command.)
19132 \begin_layout Standard
19133 If you are using font sizes larger than the normal size, the table borders
19134 are often too close to the letters.
19135 This can be corrected by inserting the command
19141 in TeX-Code at the beginning of a table row.
19143 \begin_inset space ~
19147 \begin_inset CommandInset ref
19149 reference "tab:Vertical-alignment-of"
19153 illustrates the effect.
19156 \begin_layout Standard
19158 \begin_inset Float table
19164 \begin_layout Plain Layout
19165 \begin_inset Caption
19167 \begin_layout Plain Layout
19168 \begin_inset CommandInset label
19170 name "tab:Vertical-alignment-of"
19174 Vertical alignment of text with large font sizes.
19182 \begin_layout Plain Layout
19183 \begin_inset space \hfill{}
19187 \begin_inset Float table
19192 \begin_layout Plain Layout
19193 \begin_inset Caption
19195 \begin_layout Plain Layout
19204 \begin_layout Plain Layout
19207 \begin_inset Tabular
19208 <lyxtabular version="3" rows="6" columns="1">
19209 <features tabularvalignment="middle">
19210 <column alignment="left" valignment="top" width="0">
19212 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19215 \begin_layout Plain Layout
19223 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19226 \begin_layout Plain Layout
19236 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19239 \begin_layout Plain Layout
19249 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19252 \begin_layout Plain Layout
19262 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19265 \begin_layout Plain Layout
19275 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19278 \begin_layout Plain Layout
19297 \begin_inset space \hfill{}
19301 \begin_inset Float table
19306 \begin_layout Plain Layout
19307 \begin_inset Caption
19309 \begin_layout Plain Layout
19310 Table using the command
19324 \begin_layout Plain Layout
19327 \begin_inset Tabular
19328 <lyxtabular version="3" rows="6" columns="1">
19329 <features tabularvalignment="middle">
19330 <column alignment="left" valignment="top" width="0">
19332 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19335 \begin_layout Plain Layout
19343 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19346 \begin_layout Plain Layout
19352 \begin_layout Plain Layout
19368 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19371 \begin_layout Plain Layout
19377 \begin_layout Plain Layout
19393 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19396 \begin_layout Plain Layout
19402 \begin_layout Plain Layout
19418 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19421 \begin_layout Plain Layout
19427 \begin_layout Plain Layout
19443 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19446 \begin_layout Plain Layout
19452 \begin_layout Plain Layout
19479 \begin_inset space \hfill{}
19490 \begin_layout Subsection
19491 Special Cell Alignment
19492 \begin_inset CommandInset label
19494 name "sub:Special-Cell-Alignment"
19499 \begin_inset Index idx
19502 \begin_layout Plain Layout
19503 Table Customization ! Special Cell Alignment
19511 \begin_layout Standard
19512 Sometimes it looks better when the cell entries of a column are aligned
19513 with a special character, e.
19514 \begin_inset space \thinspace{}
19518 \begin_inset space \space{}
19521 with the decimal separator as in Table
19522 \begin_inset space ~
19526 \begin_inset CommandInset ref
19528 reference "tab:Table-cells-align"
19533 This alignment is achieved by setting the cursor into the column and then
19534 either pressing the toolbar button
19535 \begin_inset Graphics
19536 filename ../images/tabular-feature_align-decimal.png
19538 scaleBeforeRotation
19542 or setting the alignment in the table settings to
19545 \begin_inset space ~
19549 \begin_inset space ~
19555 The alignment character can be a character of your choice and is specified
19556 in the table settings.
19559 \begin_layout Standard
19560 \begin_inset Float table
19566 \begin_layout Plain Layout
19567 \begin_inset Caption
19569 \begin_layout Plain Layout
19570 \begin_inset CommandInset label
19572 name "tab:Table-cells-align"
19576 Table cells of a column aligned with the decimal separator.
19584 \begin_layout Plain Layout
19586 \begin_inset Tabular
19587 <lyxtabular version="3" rows="4" columns="1">
19588 <features booktabs="true" tabularvalignment="middle">
19589 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
19591 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19594 \begin_layout Plain Layout
19602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19605 \begin_layout Plain Layout
19613 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19616 \begin_layout Plain Layout
19624 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19627 \begin_layout Plain Layout
19646 \begin_layout Standard
19647 \begin_inset Float table
19653 \begin_layout Plain Layout
19654 \begin_inset Caption
19656 \begin_layout Plain Layout
19657 \begin_inset CommandInset label
19659 name "tab:Table-align-operator"
19663 Table cells of a column aligned with the operators.
19671 \begin_layout Plain Layout
19673 \begin_inset Tabular
19674 <lyxtabular version="3" rows="4" columns="2">
19675 <features booktabs="true" tabularvalignment="middle">
19676 <column alignment="right" valignment="top" width="0pt">
19677 <column alignment="left" valignment="top" width="0pt" special="@{}l">
19679 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
19682 \begin_layout Plain Layout
19688 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19691 \begin_layout Plain Layout
19699 <cell alignment="center" valignment="top" usebox="none">
19702 \begin_layout Plain Layout
19703 \begin_inset Formula $12\,+$
19711 <cell alignment="center" valignment="top" usebox="none">
19714 \begin_layout Plain Layout
19715 \begin_inset Formula $\,6$
19725 <cell alignment="center" valignment="top" usebox="none">
19728 \begin_layout Plain Layout
19729 \begin_inset Formula $0\,-$
19737 <cell alignment="center" valignment="top" usebox="none">
19740 \begin_layout Plain Layout
19741 \begin_inset Formula $\,68$
19751 <cell alignment="center" valignment="top" usebox="none">
19754 \begin_layout Plain Layout
19755 \begin_inset Formula $-123\,/$
19763 <cell alignment="center" valignment="top" usebox="none">
19766 \begin_layout Plain Layout
19767 \begin_inset Formula $\,0$
19788 \begin_layout Standard
19789 For alignments at characters in formulas this method does not work because
19790 the field to specify the alignment character does not allow formulas.
19791 In this case one need to use the method from Table
19792 \begin_inset space ~
19796 \begin_inset CommandInset ref
19798 reference "tab:Table-align-operator"
19803 This table was created with a 4×2 table.
19804 The heading is a centered multicolumn.
19805 The first column is right-aligned and contains the first part including
19807 The second column is left aligned and contains the rest.
19808 A small space was added at the beginning of each cell of the second column
19809 to get the space that is usually around operators.
19810 To omit the space that is normally between two table columns, the following
19811 LaTeX-argument was used for the second column:
19814 \begin_layout Standard
19820 \begin_layout Standard
19822 \begin_inset space ~
19826 \begin_inset CommandInset ref
19828 reference "tab:Several-table-cell"
19832 shows some example alignments.
19833 For the alignment with the relation sign, a small space was added like
19834 for the second column of Table
19835 \begin_inset space ~
19839 \begin_inset CommandInset ref
19841 reference "tab:Table-align-operator"
19848 \begin_layout Standard
19849 \begin_inset Float table
19855 \begin_layout Plain Layout
19856 \begin_inset Caption
19858 \begin_layout Plain Layout
19859 \begin_inset CommandInset label
19861 name "tab:Several-table-cell"
19865 Several table cell alignments.
19873 \begin_layout Plain Layout
19875 \begin_inset Tabular
19876 <lyxtabular version="3" rows="4" columns="6">
19877 <features tabularvalignment="middle">
19878 <column alignment="right" valignment="top" width="0">
19879 <column alignment="left" valignment="top" width="0" special="@{}l">
19880 <column alignment="right" valignment="top" width="0">
19881 <column alignment="left" valignment="top" width="0" special="@{}l">
19882 <column alignment="right" valignment="top" width="0">
19883 <column alignment="left" valignment="top" width="0" special="@{}l">
19885 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
19888 \begin_layout Plain Layout
19894 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19897 \begin_layout Plain Layout
19903 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
19906 \begin_layout Plain Layout
19912 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19915 \begin_layout Plain Layout
19921 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
19924 \begin_layout Plain Layout
19930 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19933 \begin_layout Plain Layout
19941 <cell alignment="center" valignment="top" usebox="none">
19944 \begin_layout Plain Layout
19950 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19953 \begin_layout Plain Layout
19955 \begin_inset space \thinspace{}
19963 <cell alignment="center" valignment="top" usebox="none">
19966 \begin_layout Plain Layout
19967 \begin_inset Formula $10\cdot$
19975 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19978 \begin_layout Plain Layout
19979 \begin_inset Formula $10^{\mbox{-}17}$
19987 <cell alignment="center" valignment="top" usebox="none">
19990 \begin_layout Plain Layout
19991 \begin_inset Formula $\Gamma(t)\propto$
19999 <cell alignment="center" valignment="top" usebox="none">
20002 \begin_layout Plain Layout
20003 \begin_inset Formula $\:\Upsilon(t)$
20013 <cell alignment="center" valignment="top" usebox="none">
20016 \begin_layout Plain Layout
20022 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20025 \begin_layout Plain Layout
20027 \begin_inset space \thinspace{}
20035 <cell alignment="center" valignment="top" usebox="none">
20038 \begin_layout Plain Layout
20039 \begin_inset Formula $5.78\cdot$
20047 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20050 \begin_layout Plain Layout
20051 \begin_inset Formula $10^{7}$
20059 <cell alignment="center" valignment="top" usebox="none">
20062 \begin_layout Plain Layout
20063 \begin_inset Formula $A\ne$
20071 <cell alignment="center" valignment="top" usebox="none">
20074 \begin_layout Plain Layout
20075 \begin_inset Formula $\: B_{\mathrm{red}}$
20085 <cell alignment="center" valignment="top" usebox="none">
20088 \begin_layout Plain Layout
20094 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20097 \begin_layout Plain Layout
20099 \begin_inset space \thinspace{}
20107 <cell alignment="center" valignment="top" usebox="none">
20110 \begin_layout Plain Layout
20112 \begin_inset Formula $33.5\cdot$
20120 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20123 \begin_layout Plain Layout
20124 \begin_inset Formula $10^{4}$
20132 <cell alignment="center" valignment="top" usebox="none">
20135 \begin_layout Plain Layout
20136 \begin_inset Formula $\sin(\alpha)\ge$
20144 <cell alignment="center" valignment="top" usebox="none">
20147 \begin_layout Plain Layout
20148 \begin_inset Formula $\:\sin(\beta)$
20169 \begin_layout Subsection
20170 Customized Cell/Column Format
20171 \begin_inset CommandInset label
20173 name "sub:Customized-Format"
20178 \begin_inset Index idx
20181 \begin_layout Plain Layout
20182 Table Customization ! Cell/Column Format
20190 \begin_layout Standard
20191 Calculating the required width for normal columns as described in section
20192 \begin_inset space ~
20196 \begin_inset CommandInset ref
20198 reference "sec:Table-Width-Calculation"
20202 or for spanned columns as described in section
20203 \begin_inset space ~
20207 \begin_inset CommandInset ref
20209 reference "sub:Multicolumn-Calculations"
20213 is very annoying if you have several tables where a calculation is necessary.
20214 To make life easier, you can define a cell/column format in the preamble,
20215 that can be used in all tables of the document.
20216 The format is defined with the command
20219 \begin_layout Standard
20224 newcolumntype{name of format}[number of arguments]{commands}
20227 \begin_layout Standard
20228 The format name may only consist of one letter.
20253 are predefined and cannot be used.
20254 But all letters are allowed as capitals.
20257 \begin_layout Standard
20258 \begin_inset VSpace medskip
20264 \begin_layout Standard
20265 For vertically and horizontally centered multicolumn cells with a fixed
20266 width you can define the cell format
20269 \begin_layout Standard
20274 newcolumntype{M}[1]{>{
20281 \begin_layout Standard
20288 avoids the problem of hyphenating the first word, as described in section
20289 \begin_inset space ~
20293 \begin_inset CommandInset ref
20295 reference "sub:Multiple-Lines-in"
20300 Now you can simply enter
20303 \begin_layout Standard
20309 \begin_layout Standard
20314 in the table dialog to create a multicolumn.
20317 \begin_layout Standard
20318 \begin_inset VSpace bigskip
20324 \begin_layout Standard
20325 For cells spanned by a multicolumn cell, you can define the format
20328 \begin_layout Standard
20333 newcolumntype{S}[2]{>{
20338 \begin_inset Newline newline
20342 \begin_inset Phantom HPhantom
20345 \begin_layout Plain Layout
20359 arrayrulewidth)*(1-#2))/#2}}
20362 \begin_layout Standard
20363 This format uses equation
20364 \begin_inset CommandInset ref
20370 to calculate the required width so that each spanned cell has the same
20374 \begin_layout Standard
20378 \begin_layout Standard
20381 S{width of multicolumn cell}{number of spanned columns}
20384 \begin_layout Standard
20385 as LaTeX-argument of the column.
20388 \begin_layout Standard
20389 \begin_inset VSpace bigskip
20395 \begin_layout Standard
20396 For colored columns, you can define
20399 \begin_layout Standard
20404 newcolumntype{K}[1]{>{
20411 \begin_layout Standard
20413 \begin_inset Quotes eld
20417 \begin_inset Quotes erd
20420 at the end creates a column with a flexible width whose text is horizontally
20425 \begin_layout Standard
20431 \begin_layout Standard
20435 \begin_layout Standard
20436 \begin_inset VSpace bigskip
20442 \begin_layout Standard
20444 \begin_inset space ~
20448 \begin_inset CommandInset ref
20450 reference "tab:Table-using-user-defined"
20454 use the LaTeX-arguments
20457 \begin_layout Standard
20463 \begin_layout Standard
20464 for the first column and the multicolumn,
20467 \begin_layout Standard
20473 \begin_layout Standard
20474 for the last column, and
20477 \begin_layout Standard
20483 \begin_layout Standard
20484 for the cells in the second column.
20487 \begin_layout Standard
20488 \begin_inset Float table
20494 \begin_layout Plain Layout
20495 \begin_inset Caption
20497 \begin_layout Plain Layout
20498 \begin_inset CommandInset label
20500 name "tab:Table-using-user-defined"
20504 Table using user-defined table formats
20512 \begin_layout Plain Layout
20514 \begin_inset Tabular
20515 <lyxtabular version="3" rows="3" columns="4">
20516 <features tabularvalignment="middle">
20517 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
20518 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
20519 <column alignment="center" valignment="middle" width="0">
20520 <column alignment="center" valignment="middle" width="0" special="K{red}">
20522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20525 \begin_layout Plain Layout
20526 verylongtablecellword
20531 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
20534 \begin_layout Plain Layout
20535 multiple lines multicolumn
20540 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20543 \begin_layout Plain Layout
20549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20552 \begin_layout Plain Layout
20560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20563 \begin_layout Plain Layout
20569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20572 \begin_layout Plain Layout
20578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20581 \begin_layout Plain Layout
20587 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20590 \begin_layout Plain Layout
20598 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20601 \begin_layout Plain Layout
20607 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20610 \begin_layout Plain Layout
20616 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20619 \begin_layout Plain Layout
20625 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20628 \begin_layout Plain Layout
20647 \begin_layout Subsection
20649 \begin_inset CommandInset label
20651 name "sub:Line-Thickness"
20656 \begin_inset Index idx
20659 \begin_layout Plain Layout
20660 Table Customization ! Line Thickness
20668 \begin_layout Standard
20669 The line thickness for all lines in a table can be adjusted with the length
20677 To set for example a line thickness of 1.5
20678 \begin_inset space \thinspace{}
20682 \begin_inset space ~
20686 \begin_inset CommandInset ref
20688 reference "tab:Table-with-1.5"
20692 , insert the command
20695 \begin_layout Standard
20702 arrayrulewidth}{1.5pt}
20705 \begin_layout Standard
20706 in TeX-Code before the table or table float.
20707 The changed thickness is valid for all subsequent tables.
20708 To use the default value again, set
20715 \begin_inset space \thinspace{}
20718 pt in TeX-Code after the table or table float.
20721 \begin_layout Standard
20725 \begin_layout Plain Layout
20731 arrayrulewidth}{1.5pt}
20737 \begin_inset Float table
20742 \begin_layout Plain Layout
20743 \begin_inset Caption
20745 \begin_layout Plain Layout
20746 \begin_inset CommandInset label
20748 name "tab:Table-with-1.5"
20753 \begin_inset space \thinspace{}
20764 \begin_layout Plain Layout
20766 \begin_inset Tabular
20767 <lyxtabular version="3" rows="3" columns="3">
20768 <features tabularvalignment="middle">
20769 <column alignment="center" valignment="top" width="0">
20770 <column alignment="center" valignment="top" width="0">
20771 <column alignment="center" valignment="top" width="0">
20773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20776 \begin_layout Plain Layout
20782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20785 \begin_layout Plain Layout
20791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20794 \begin_layout Plain Layout
20802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20805 \begin_layout Plain Layout
20811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20814 \begin_layout Plain Layout
20820 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20823 \begin_layout Plain Layout
20831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20834 \begin_layout Plain Layout
20840 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20843 \begin_layout Plain Layout
20849 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20852 \begin_layout Plain Layout
20872 \begin_layout Plain Layout
20878 arrayrulewidth}{0.4pt}
20886 \begin_layout Standard
20887 \begin_inset VSpace bigskip
20890 To set the line thickness to 1.5
20891 \begin_inset space \thinspace{}
20894 pt only for horizontal lines, as in Table
20895 \begin_inset space ~
20899 \begin_inset CommandInset ref
20901 reference "tab:Table-with-horizontal"
20905 , insert these commands in TeX-Code before the table or table float:
20908 \begin_layout Standard
20918 \begin_inset Newline newline
20926 \begin_inset Newline newline
20935 arrayrulewidth 1.5pt}
20936 \begin_inset Newline newline
20947 arrayrulewidth 0.4pt}}
20950 \begin_layout Standard
20951 To return to the default line thickness, insert this command in TeX-Code
20952 after the table or table float:
20955 \begin_layout Standard
20967 \begin_layout Standard
20971 \begin_layout Plain Layout
20982 \begin_layout Plain Layout
20991 \begin_layout Plain Layout
20999 arrayrulewidth 1.5pt}
21002 \begin_layout Plain Layout
21012 arrayrulewidth 0.4pt}}
21018 \begin_inset Float table
21023 \begin_layout Plain Layout
21024 \begin_inset Caption
21026 \begin_layout Plain Layout
21027 \begin_inset CommandInset label
21029 name "tab:Table-with-horizontal"
21034 \begin_inset space \thinspace{}
21037 pt thick horizontal lines
21045 \begin_layout Plain Layout
21047 \begin_inset Tabular
21048 <lyxtabular version="3" rows="3" columns="3">
21049 <features tabularvalignment="middle">
21050 <column alignment="center" valignment="top" width="0">
21051 <column alignment="center" valignment="top" width="0">
21052 <column alignment="center" valignment="top" width="0">
21054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21057 \begin_layout Plain Layout
21063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21066 \begin_layout Plain Layout
21072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21075 \begin_layout Plain Layout
21083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21086 \begin_layout Plain Layout
21092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21095 \begin_layout Plain Layout
21101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21104 \begin_layout Plain Layout
21112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21115 \begin_layout Plain Layout
21121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21124 \begin_layout Plain Layout
21130 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21133 \begin_layout Plain Layout
21153 \begin_layout Plain Layout
21169 \begin_layout Standard
21170 \begin_inset VSpace bigskip
21173 To set the line thickness to 1.5
21174 \begin_inset space \thinspace{}
21177 pt only for vertical lines, create the following column format in the document
21178 preamble, according to the description in section
21179 \begin_inset space ~
21183 \begin_inset CommandInset ref
21185 reference "sub:Customized-Format"
21192 \begin_layout Standard
21197 newcolumntype{V}{!{
21199 vrule width 1.5pt}}
21202 \begin_layout Standard
21204 \begin_inset space ~
21208 \begin_inset CommandInset ref
21210 reference "tab:Table-with-vertical"
21217 \begin_layout Standard
21223 \begin_layout Standard
21224 was used for the last column and
21227 \begin_layout Standard
21233 \begin_layout Standard
21234 for the other columns.
21237 \begin_layout Standard
21238 \begin_inset Float table
21243 \begin_layout Plain Layout
21244 \begin_inset Caption
21246 \begin_layout Plain Layout
21247 \begin_inset CommandInset label
21249 name "tab:Table-with-vertical"
21254 \begin_inset space \thinspace{}
21257 pt thick vertical lines
21265 \begin_layout Plain Layout
21267 \begin_inset Tabular
21268 <lyxtabular version="3" rows="3" columns="3">
21269 <features tabularvalignment="middle">
21270 <column alignment="center" valignment="top" width="0" special="Vc">
21271 <column alignment="center" valignment="top" width="0" special="Vc">
21272 <column alignment="center" valignment="top" width="0" special="VcV">
21274 <cell alignment="center" valignment="top" topline="true" usebox="none">
21277 \begin_layout Plain Layout
21283 <cell alignment="center" valignment="top" topline="true" usebox="none">
21286 \begin_layout Plain Layout
21292 <cell alignment="center" valignment="top" topline="true" usebox="none">
21295 \begin_layout Plain Layout
21303 <cell alignment="center" valignment="top" topline="true" usebox="none">
21306 \begin_layout Plain Layout
21312 <cell alignment="center" valignment="top" topline="true" usebox="none">
21315 \begin_layout Plain Layout
21321 <cell alignment="center" valignment="top" topline="true" usebox="none">
21324 \begin_layout Plain Layout
21332 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
21335 \begin_layout Plain Layout
21341 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
21344 \begin_layout Plain Layout
21350 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
21353 \begin_layout Plain Layout
21372 \begin_layout Subsection
21374 \begin_inset Index idx
21377 \begin_layout Plain Layout
21378 Table Customization ! Dashed Lines
21386 \begin_layout Standard
21390 \begin_layout Plain Layout
21400 \begin_inset Note Note
21403 \begin_layout Plain Layout
21404 The following section will only be displayed when the LaTeX-package
21416 \begin_layout Standard
21417 \begin_inset Float table
21423 \begin_layout Plain Layout
21424 \begin_inset Caption
21426 \begin_layout Plain Layout
21427 \begin_inset CommandInset label
21429 name "tab:Table-with-dashed"
21433 Table with dashed lines
21441 \begin_layout Plain Layout
21443 \begin_inset Tabular
21444 <lyxtabular version="3" rows="5" columns="5">
21445 <features tabularvalignment="middle">
21446 <column alignment="center" valignment="top" width="0">
21447 <column alignment="center" valignment="top" width="0">
21448 <column alignment="center" valignment="top" width="0" special=":c">
21449 <column alignment="center" valignment="top" width="0">
21450 <column alignment="center" valignment="top" width="0">
21452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21455 \begin_layout Plain Layout
21461 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21464 \begin_layout Plain Layout
21470 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
21473 \begin_layout Plain Layout
21479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21482 \begin_layout Plain Layout
21488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21491 \begin_layout Plain Layout
21499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21502 \begin_layout Plain Layout
21508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21511 \begin_layout Plain Layout
21517 <cell alignment="center" valignment="top" topline="true" usebox="none">
21520 \begin_layout Plain Layout
21526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21529 \begin_layout Plain Layout
21535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21538 \begin_layout Plain Layout
21546 <cell alignment="center" valignment="top" leftline="true" usebox="none">
21549 \begin_layout Plain Layout
21553 \begin_layout Plain Layout
21567 <cell alignment="center" valignment="top" leftline="true" usebox="none">
21570 \begin_layout Plain Layout
21576 <cell alignment="center" valignment="top" usebox="none">
21579 \begin_layout Plain Layout
21585 <cell alignment="center" valignment="top" leftline="true" usebox="none">
21588 \begin_layout Plain Layout
21594 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
21597 \begin_layout Plain Layout
21605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21608 \begin_layout Plain Layout
21612 \begin_layout Plain Layout
21626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21629 \begin_layout Plain Layout
21635 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
21638 \begin_layout Plain Layout
21644 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
21647 \begin_layout Plain Layout
21653 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21656 \begin_layout Plain Layout
21664 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21667 \begin_layout Plain Layout
21673 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21676 \begin_layout Plain Layout
21682 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
21685 \begin_layout Plain Layout
21691 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21694 \begin_layout Plain Layout
21700 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21703 \begin_layout Plain Layout
21722 \begin_layout Standard
21723 LyX does not natively support dashed lines, so you have to use TeX-Code.
21724 As a prerequisite the LaTeX-package
21729 \begin_inset Index idx
21732 \begin_layout Plain Layout
21733 LaTeX-packages ! arydshln
21738 must be loaded in the document preamble with the command
21741 \begin_layout Standard
21746 usepackage{arydshln}
21749 \begin_layout Standard
21750 To make a vertical line dashed, enter the colon
21751 \begin_inset Quotes eld
21755 \begin_inset Quotes erd
21758 together with the character for the horizontal alignment as LaTeX-argument
21759 in the table cell dialog.
21762 \begin_layout Standard
21763 For a horizontal dashed line add the command
21766 \begin_layout Standard
21774 \begin_layout Standard
21775 in TeX-Code as first element of the first cell in the table row.
21778 \begin_layout Standard
21779 For dashed multicolumn lines use the command
21782 \begin_layout Standard
21787 cdashline{line number
21792 \begin_layout Standard
21793 in TeX-Code as the first element of the first cell in the table row.
21794 If you have for example a multicolumn spanning columns 2 to 4 and you want
21795 to have a dashed line above, add the command
21798 \begin_layout Standard
21806 \begin_layout Standard
21807 as the first element of the first cell in the row of the multicolumn.
21810 \begin_layout Standard
21811 \begin_inset VSpace bigskip
21817 \begin_layout Standard
21819 \begin_inset space ~
21823 \begin_inset CommandInset ref
21825 reference "tab:Table-with-dashed"
21830 \begin_inset Quotes eld
21838 \begin_inset Quotes erd
21841 as LaTeX-argument of the third column.
21842 The TeX-Code command
21848 was inserted in the first cell of the third row and the TeX-Code command
21849 \begin_inset Newline newline
21858 was inserted in the first cell of the fourth row.
21861 \begin_layout Standard
21862 \begin_inset VSpace bigskip
21868 \begin_layout Standard
21869 Tables with dashed lines can also be colored as shown by Table
21870 \begin_inset space ~
21874 \begin_inset CommandInset ref
21876 reference "tab:Colored-table-with"
21883 \begin_layout Standard
21887 \begin_layout Plain Layout
21893 arrayrulewidth}{1pt}
21899 \begin_inset Note Note
21902 \begin_layout Plain Layout
21903 thicker lines for better visualization of the line color
21911 \begin_layout Standard
21915 \begin_layout Plain Layout
21919 dashgapcolor{green}
21925 \begin_inset Note Note
21928 \begin_layout Plain Layout
21929 color gaps between dashes green
21937 \begin_layout Standard
21941 \begin_layout Plain Layout
21952 \begin_layout Plain Layout
21961 \begin_layout Plain Layout
21965 arrayrulecolor{red}
21969 arrayrulecolor{black}}
21975 \begin_inset Note Note
21978 \begin_layout Plain Layout
21979 color horizontal, dashed lines red
21987 \begin_layout Standard
21991 \begin_layout Plain Layout
22002 \begin_layout Plain Layout
22011 \begin_layout Plain Layout
22015 arrayrulecolor{yellow}
22019 arrayrulecolor{black}}
22025 \begin_inset Note Note
22028 \begin_layout Plain Layout
22029 color partial horizontal, dashed lines yellow
22037 \begin_layout Standard
22038 \begin_inset Float table
22044 \begin_layout Plain Layout
22045 \begin_inset Caption
22047 \begin_layout Plain Layout
22048 \begin_inset CommandInset label
22050 name "tab:Colored-table-with"
22054 Colored table with dashed lines
22062 \begin_layout Plain Layout
22064 \begin_inset Tabular
22065 <lyxtabular version="3" rows="5" columns="5">
22066 <features tabularvalignment="middle">
22067 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
22068 <column alignment="center" valignment="top" width="0pt">
22069 <column alignment="center" valignment="top" width="0pt" special=":c">
22070 <column alignment="center" valignment="top" width="0">
22071 <column alignment="center" valignment="top" width="0">
22073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22076 \begin_layout Plain Layout
22082 <cell alignment="center" valignment="top" topline="true" usebox="none">
22085 \begin_layout Plain Layout
22091 <cell alignment="center" valignment="top" topline="true" usebox="none">
22094 \begin_layout Plain Layout
22100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22103 \begin_layout Plain Layout
22109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22112 \begin_layout Plain Layout
22120 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22123 \begin_layout Plain Layout
22129 <cell alignment="center" valignment="top" topline="true" usebox="none">
22132 \begin_layout Plain Layout
22138 <cell alignment="center" valignment="top" topline="true" usebox="none">
22141 \begin_layout Plain Layout
22147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22150 \begin_layout Plain Layout
22156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22159 \begin_layout Plain Layout
22167 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22170 \begin_layout Plain Layout
22174 \begin_layout Plain Layout
22187 \begin_layout Plain Layout
22201 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22204 \begin_layout Plain Layout
22210 <cell alignment="center" valignment="top" usebox="none">
22213 \begin_layout Plain Layout
22219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22222 \begin_layout Plain Layout
22228 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22231 \begin_layout Plain Layout
22239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22242 \begin_layout Plain Layout
22246 \begin_layout Plain Layout
22260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22263 \begin_layout Plain Layout
22269 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22272 \begin_layout Plain Layout
22278 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22281 \begin_layout Plain Layout
22287 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22290 \begin_layout Plain Layout
22298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22301 \begin_layout Plain Layout
22307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22310 \begin_layout Plain Layout
22316 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22319 \begin_layout Plain Layout
22325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22328 \begin_layout Plain Layout
22334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22337 \begin_layout Plain Layout
22341 \begin_layout Plain Layout
22368 \begin_layout Standard
22372 \begin_layout Plain Layout
22386 \begin_inset Note Note
22389 \begin_layout Plain Layout
22398 \begin_layout Standard
22402 \begin_layout Plain Layout
22416 \begin_inset Note Note
22419 \begin_layout Plain Layout
22428 \begin_layout Standard
22432 \begin_layout Plain Layout
22442 \begin_inset Note Note
22445 \begin_layout Plain Layout
22454 \begin_layout Standard
22458 \begin_layout Plain Layout
22464 arrayrulewidth}{0.4pt}
22470 \begin_inset Note Note
22473 \begin_layout Plain Layout
22482 \begin_layout Standard
22483 The coloring of lines, columns and lines works as decribed in section
22484 \begin_inset space ~
22488 \begin_inset CommandInset ref
22490 reference "sec:Colored-Tables"
22495 Coloring horizontal lines works analogically as described there as well,
22496 one only needs to replace in the commands
22520 ; so one uses the command
22523 \begin_layout Standard
22533 \begin_inset Newline newline
22541 \begin_inset Newline newline
22545 \begin_inset Phantom HPhantom
22548 \begin_layout Plain Layout
22549 \begin_inset space ~
22559 arrayrulecolor{red}
22563 arrayrulecolor{black}}
22566 \begin_layout Standard
22576 \begin_layout Standard
22586 \begin_inset Newline newline
22594 \begin_inset Newline newline
22598 \begin_inset Phantom HPhantom
22601 \begin_layout Plain Layout
22602 \begin_inset space ~
22612 arrayrulecolor{red}
22616 arrayrulecolor{black}}
22619 \begin_layout Standard
22620 To get back the black line color, one needs to insert the following commands
22621 as TeX-Code behind the table:
22624 \begin_layout Standard
22632 \begin_layout Standard
22644 \begin_layout Standard
22652 \begin_layout Standard
22664 \begin_layout Standard
22665 To color the gaps between the dashes the command
22668 \begin_layout Standard
22673 dashgapcolor{color}
22676 \begin_layout Standard
22677 can be used in front of a table as TeX-Code.
22678 color is hereby the name of a defined color.
22682 \begin_layout Standard
22690 \begin_layout Standard
22691 unsets the changes made by
22700 \begin_layout Standard
22701 \begin_inset Note Greyedout
22704 \begin_layout Plain Layout
22710 : If there are multiple commands in a cell, the command of
22714 needs to be the first one in the cell.
22720 \begin_inset space ~
22724 \begin_inset CommandInset ref
22726 reference "tab:Colored-table-with"
22750 \begin_layout Standard
22751 \begin_inset Note Greyedout
22754 \begin_layout Plain Layout
22764 must be loaded in the document preamble before the LaTeX-package
22769 \begin_inset Index idx
22772 \begin_layout Plain Layout
22773 LaTeX-packages ! colortbl
22786 \begin_layout Standard
22790 \begin_layout Plain Layout
22800 \begin_inset Note Note
22803 \begin_layout Plain Layout
22804 The following will be displayed when the LaTeX-package
22816 \begin_layout Standard
22817 You need to install the package
22821 to see the content of this section in the output.
22824 \begin_layout Standard
22828 \begin_layout Plain Layout
22840 \begin_layout Standard
22841 For more information about dashed lines see the documentation of
22846 \begin_inset CommandInset citation
22855 \begin_layout Chapter
22857 \begin_inset CommandInset label
22864 \begin_inset Index idx
22867 \begin_layout Plain Layout
22876 \begin_layout Section
22878 \begin_inset CommandInset label
22880 name "sec:FloatIntroduction"
22885 \begin_inset Index idx
22888 \begin_layout Plain Layout
22889 Floats ! Introduction
22897 \begin_layout Standard
22898 A float is a block of text associated with some sort of label, which doesn't
22899 have a fixed location.
22901 \begin_inset Quotes eld
22905 \begin_inset Quotes erd
22908 forward or backward a page or two, to wherever it fits best.
22916 \begin_inset space ~
22921 are also floats because they can float to the next page when there are
22922 too many notes on the page.
22925 \begin_layout Standard
22926 Floats allow a high quality layout.
22927 Images and tables can be spread evenly among the pages to avoid white space
22928 and pages without text.
22929 As the floating often destroys the context between the text and the image/table
22930 , every float can be referenced in the text.
22931 Floats are therefore numbered.
22932 Referencing is described in section
22933 \begin_inset space ~
22937 \begin_inset CommandInset ref
22939 reference "sec:Referencing-Floats"
22946 \begin_layout Standard
22947 To insert a float, use the menu
22949 Insert\SpecialChar \menuseparator
22957 inset, a box with a label.
22958 The label will automatically be translated to the document language in
22960 After the label you can insert the caption text.
22961 The image or table is inserted above or below the caption in a separate
22962 paragraph within the float.
22963 More about the caption placement is contained in section
22964 \begin_inset space ~
22968 \begin_inset CommandInset ref
22970 reference "sec:Caption-Placement"
22975 To keep your LyX-document readable, you can open and close the float box
22976 by left-clicking on the box label.
22977 A closed float box looks like this:
22978 \begin_inset Graphics
22979 filename clipart/floatQt4.png
22981 scaleBeforeRotation
22985 – a gray button with a red label.
22988 \begin_layout Standard
22989 It is recommended that you insert floats as separate standard paragraphs
22990 to avoid possible LaTeX-errors that can occur when the surrounding text
22991 is specially formatted.
22994 \begin_layout Standard
22995 Existing figures or tables can be put into a float by highlighting them
22996 and then pressing the corresponding toolbar button for a new float.
22999 \begin_layout Section
23003 \begin_layout Standard
23004 Besides figure and table floats that are described in sections
23005 \begin_inset space ~
23009 \begin_inset CommandInset ref
23011 reference "sec:Figure-Floats"
23016 \begin_inset CommandInset ref
23018 reference "sec:Table-Floats"
23022 respectively, LyX offers the float types
23031 The latter are explained in sec.
23032 \begin_inset space \thinspace{}
23036 \begin_inset CommandInset ref
23038 reference "sec:Wrap-Floats"
23045 \begin_layout Subsection
23047 \begin_inset Index idx
23050 \begin_layout Plain Layout
23051 Floats ! Algorithms
23059 \begin_layout Standard
23060 \begin_inset Float algorithm
23066 \begin_layout Plain Layout
23067 \begin_inset Caption
23069 \begin_layout Plain Layout
23070 \begin_inset CommandInset label
23072 name "alg:Example-Algorithm-float"
23076 Example Algorithm float
23084 \begin_layout LyX-Code
23086 \begin_inset Newline newline
23089 Sum:= Sum + A(I); /*comment*/
23090 \begin_inset Newline newline
23094 \begin_inset VSpace -4mm
23105 \begin_layout Standard
23106 This float type is inserted with the menu
23108 Insert\SpecialChar \menuseparator
23109 Float\SpecialChar \menuseparator
23113 It is used for program codes and descriptions of algorithms and can be
23114 seen as an alternative to program code listings that are explained in chapter
23115 \begin_inset space ~
23119 \begin_inset CommandInset ref
23121 reference "cha:Program-Code-Listings"
23126 A possible environment for algorithms is the
23130 , described in LyX's
23136 \begin_inset space ~
23140 \begin_inset CommandInset ref
23142 reference "alg:Example-Algorithm-float"
23146 is an example of an algorithm float where -4
23147 \begin_inset space \thinspace{}
23150 mm vertical space was added at the end of the float to have the bottom rule
23151 exactly below the last text line.
23154 \begin_layout Standard
23155 The float label is not automatically translated into the document language.
23156 If your document is not in English, you have to do this manually by adding
23157 the following line to the document preamble
23162 \begin_layout Standard
23167 floatname{algorithm}{your
23168 \begin_inset space ~
23174 \begin_layout Standard
23178 \begin_inset space ~
23184 \begin_inset Quotes eld
23192 \begin_inset Quotes erd
23198 \begin_layout Standard
23199 To insert the list of algorithms you can use the menu
23201 Insert\SpecialChar \menuseparator
23203 \begin_inset space \thinspace{}
23207 \begin_inset space \thinspace{}
23210 TOC\SpecialChar \menuseparator
23213 when your document has the same language as LyX's menu names.
23214 In other cases use this command in TeX-Code instead:
23217 \begin_layout Standard
23222 listof{algorithm}{your
23223 \begin_inset space ~
23229 \begin_layout Standard
23233 \begin_inset space ~
23239 \begin_inset Quotes eld
23247 \begin_inset Quotes erd
23253 \begin_layout Standard
23254 Algorithm floats are not by default numbered in the scheme
23255 \begin_inset Quotes eld
23259 \begin_inset Quotes erd
23262 as is the case for table and figure floats in many document-classes.
23263 To number algorithm floats in the same scheme, add this command to your
23267 \begin_layout Standard
23272 numberwithin{algorithm}{chapter}
23275 \begin_layout Standard
23276 To be able to use the command
23285 \begin_inset space ~
23290 in the document settings the option
23293 \begin_inset space ~
23297 \begin_inset space ~
23301 \begin_inset space ~
23309 \begin_layout Section
23311 \begin_inset Index idx
23314 \begin_layout Plain Layout
23323 \begin_layout Standard
23324 Floats are usually numbered either independently from the sections the floats
23325 are in, or in the scheme
23326 \begin_inset Quotes eld
23330 \begin_inset Quotes erd
23334 \begin_inset Quotes eld
23338 \begin_inset Quotes erd
23342 This depends on the document class used.
23345 \begin_layout Standard
23346 To change section-independent numbering, you can use this command in the
23350 \begin_layout Standard
23362 \begin_layout Standard
23369 is the command that prints the table number.
23370 For figure floats, the command would be
23383 in the command above prints the table number as a small roman number.
23386 \begin_layout Standard
23387 To change the numbering scheme for example to
23388 \begin_inset Quotes eld
23392 \begin_inset Quotes erd
23395 , use this command in the preamble:
23398 \begin_layout Standard
23403 numberwithin{table}{subsection}
23406 \begin_layout Standard
23407 To be able to use the command
23416 \begin_inset space ~
23421 in the document settings the option
23424 \begin_inset space ~
23428 \begin_inset space ~
23432 \begin_inset space ~
23440 \begin_layout Standard
23441 Please also have a look at section
23442 \begin_inset space ~
23446 \begin_inset CommandInset ref
23448 reference "sub:Footnote-Numbering"
23452 for the details and important notes about the numbering commands.
23455 \begin_layout Section
23457 \begin_inset CommandInset label
23459 name "sec:Referencing-Floats"
23464 \begin_inset Index idx
23467 \begin_layout Plain Layout
23468 Floats ! References
23474 \begin_inset Index idx
23477 \begin_layout Plain Layout
23478 References ! to Floats
23486 \begin_layout Standard
23487 To reference a float, insert a label into its caption using the menu
23489 Insert\SpecialChar \menuseparator
23492 or the toolbar button
23503 A grey label box like this one:
23504 \begin_inset Graphics
23505 filename clipart/labelQt4.png
23507 scaleBeforeRotation
23511 will be inserted and the label window pops up asking for the label text.
23512 LyX offers as text the first words of the caption with a prefix.
23513 The prefix depends on the float type, e.
23514 \begin_inset space \thinspace{}
23518 \begin_inset space \space{}
23521 for figure floats the prefix will be "
23528 \begin_layout Standard
23529 The label is used as anchor and name for the reference.
23530 You can refer to the label using the menu
23532 Insert\SpecialChar \menuseparator
23535 or the toolbar button
23540 arg "dialog-show-new-inset ref"
23546 The cross-reference window appears showing all labels of the document.
23547 If you have multiple LyX-documents opened, choose the one you are working
23548 on from the drop-list at the top of the dialog.
23549 You can now sort the labels alphabetically and then choose one.
23550 A grey cross-reference box like this one:
23551 \begin_inset Graphics
23552 filename clipart/referenceQt4.png
23554 scaleBeforeRotation
23559 At the position of the cross-reference box the float number will appear
23563 \begin_layout Standard
23564 It is recommended that you use a protected space between the cross-reference
23565 name and its number to avoid line breaks between them.
23566 If a cross-reference refers to a non-existing label, you will see two question
23567 marks in the output instead of the reference.
23570 \begin_layout Standard
23571 You can change labels at any time by clicking on the label box.
23572 References to the changed label will automatically update their links to
23573 the new label text.
23576 \begin_layout Standard
23580 \begin_inset space ~
23584 \begin_inset space ~
23589 in the cross-reference window sets the cursor before the referred label.
23590 The button text changes then to Go
23591 \begin_inset space ~
23594 Back and you can use it to set the cursor back to the cross-reference.
23597 \begin_layout Subsection
23598 Cross-Reference Formats
23599 \begin_inset CommandInset label
23601 name "sub:Cross-Reference-Formats"
23606 \begin_inset Index idx
23609 \begin_layout Plain Layout
23610 References ! Formats
23618 \begin_layout Standard
23619 There are six varieties of cross-references:
23622 \begin_layout Description
23623 <reference>: prints the float number, this is the default:
23624 \begin_inset CommandInset ref
23626 reference "fig:Two-distorted-images"
23633 \begin_layout Description
23634 (<reference>): prints the float number within two parentheses, this is the
23635 style normally used to reference formulas, especially when the reference
23637 \begin_inset Quotes eld
23641 \begin_inset Quotes erd
23645 \begin_inset CommandInset ref
23654 \begin_layout Description
23655 <page>: prints the page number: Page
23656 \begin_inset space ~
23660 \begin_inset CommandInset ref
23661 LatexCommand pageref
23662 reference "fig:Two-distorted-images"
23669 \begin_layout Description
23671 \begin_inset space ~
23675 \begin_inset space ~
23678 <page>: prints the text "on page" and the page number:
23679 \begin_inset CommandInset ref
23680 LatexCommand vpageref
23681 reference "fig:Two-distorted-images"
23688 \begin_layout Description
23690 \begin_inset space ~
23694 \begin_inset space ~
23698 \begin_inset space ~
23701 <page>: prints the float number, the text "on page", and the page number:
23703 \begin_inset CommandInset ref
23705 reference "fig:Two-distorted-images"
23712 \begin_layout Description
23714 \begin_inset space ~
23717 reference: prints a self-defined cross-reference format.
23718 \begin_inset Newline newline
23722 \begin_inset Note Greyedout
23725 \begin_layout Plain Layout
23730 This feature is only available when you have the LaTeX-package
23739 \begin_inset Index idx
23742 \begin_layout Plain Layout
23743 LaTeX-packages ! prettyref
23749 \begin_inset Index idx
23752 \begin_layout Plain Layout
23753 LaTeX-packages ! refstyle
23764 \begin_inset Newline newline
23767 You can select which LaTeX-package should be used for this feature by setting
23770 Use refstyle (not prettyref) for cross-references
23774 Document\SpecialChar \menuseparator
23775 Settings\SpecialChar \menuseparator
23779 The format is specified by adding the command
23791 (refstyle) to the preamble of the document.
23792 For example redefining all references to figures (which have the label
23794 \begin_inset Quotes eld
23802 \begin_inset Quotes erd
23805 ) can be done with this command
23806 \begin_inset Newline newline
23813 newref{fig}{refcmd={Image on page
23818 \begin_inset Newline newline
23821 For more information about the format, have a look at the package documentations
23823 \begin_inset CommandInset citation
23825 key "prettyref,refstyle"
23832 \begin_layout Description
23834 \begin_inset space ~
23837 reference: prints the caption of the reference:
23838 \begin_inset CommandInset ref
23839 LatexCommand nameref
23840 reference "fig:Two-distorted-images"
23847 \begin_layout Standard
23852 will not print the page number if the label is on the previous, the same,
23855 \begin_inset space \thinspace{}
23859 \begin_inset space \space{}
23863 \begin_inset Quotes eld
23871 \begin_inset Quotes erd
23877 <reference> on page <page>
23879 will not print anything about the page if the label is on the same page.
23882 \begin_layout Standard
23883 The number and current page of the part of the document referred to in the
23884 output is automatically calculated by LaTeX.
23885 The varieties are adjusted in the field
23889 of the cross-reference window that appears when you click on the cross-referenc
23893 \begin_layout Standard
23894 \begin_inset Note Greyedout
23897 \begin_layout Plain Layout
23902 It is recommended to use the LaTeX-package
23907 \begin_inset Index idx
23910 \begin_layout Plain Layout
23911 LaTeX-packages ! refstyle
23921 \begin_inset Index idx
23924 \begin_layout Plain Layout
23925 LaTeX-packages ! prettyref
23930 does not know all of LyX's possible label shortcuts
23934 \begin_layout Plain Layout
23935 \begin_inset Quotes eld
23939 \begin_inset Quotes erd
23942 is for example LyX's shortcut for labels in figure captions.
23947 and is not internationalized.
23955 \begin_layout Standard
23956 \begin_inset Note Greyedout
23959 \begin_layout Plain Layout
23964 Due to a bug in the LaTeX-package
23968 version 1.4w, some cross-reference formats will cause LaTeX errors for document
23969 languages that make the period character active (like French).
23970 For a workaround, see
23971 \begin_inset Newline newline
23975 \begin_inset CommandInset href
23977 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
23989 \begin_layout Subsection
23990 Automatic Reference Naming
23991 \begin_inset Index idx
23994 \begin_layout Plain Layout
23995 References ! Automatic Reference Naming
24003 \begin_layout Standard
24009 \begin_inset Index idx
24012 \begin_layout Plain Layout
24013 LaTeX-packages ! hyperref
24018 , that is enabled in the
24026 dialog, provides a very useful feature that cross-references automatically
24027 include the name of the referenced floats (or text parts like
24032 So you will save having to write e.
24033 \begin_inset space \thinspace{}
24037 \begin_inset space \space{}
24041 \begin_inset Quotes eld
24045 \begin_inset Quotes erd
24048 before every reference to a figure.
24049 To use this feature, enable
24053 and insert this line to the LaTeX preamble:
24056 \begin_layout Standard
24072 \begin_layout Standard
24073 When you prefer other reference names than the default ones, for example
24074 you want instead of
24075 \begin_inset Quotes eld
24079 \begin_inset Quotes erd
24083 \begin_inset Quotes eld
24087 \begin_inset space \thinspace{}
24091 \begin_inset Quotes eld
24094 , you can redefine the name by inserting this in the preamble:
24097 \begin_layout Standard
24108 sectionautorefname}
24109 \begin_inset Newline newline
24113 \begin_inset Phantom HPhantom
24116 \begin_layout Plain Layout
24119 \begin_inset space ~
24132 \begin_layout Standard
24133 When you are using another document language than English, replace
24134 \begin_inset Newline newline
24149 , where *** is the name of the language used.
24152 \begin_layout Standard
24153 To get automatic names, but not for certain reference types, for example
24154 not for equations, use this preamble code:
24157 \begin_layout Standard
24168 equationautorefname}[1]{}}
24171 \begin_layout Standard
24172 More about this topic can be found in
24177 \begin_inset CommandInset citation
24186 \begin_layout Standard
24187 \begin_inset Note Greyedout
24190 \begin_layout Plain Layout
24195 Automatic reference naming cannot be used when you use cross-references
24199 \begin_inset space ~
24204 style, as described in section
24205 \begin_inset space ~
24209 \begin_inset CommandInset ref
24211 reference "sub:Cross-Reference-Formats"
24223 \begin_layout Standard
24228 manual is an example where automatic reference naming is used.
24231 \begin_layout Subsection
24233 \begin_inset CommandInset label
24235 name "sub:Reference-Position"
24240 \begin_inset Index idx
24243 \begin_layout Plain Layout
24244 References ! Reference Position
24252 \begin_layout Standard
24258 \begin_inset Index idx
24261 \begin_layout Plain Layout
24262 LaTeX-packages ! hyperref
24275 dialog to link cross-references in the output, you will see that clicking
24276 on an image float reference jumps to the image label.
24277 The caption will be the first text part on the screen, so that you cannot
24278 see the image without scrolling.
24279 This is because the reference link anchor is placed at the position of
24281 With the use of the package
24286 \begin_inset Index idx
24289 \begin_layout Plain Layout
24290 LaTeX-packages ! hypcap
24295 , which is part of the LaTeX-package
24300 \begin_inset Index idx
24303 \begin_layout Plain Layout
24304 LaTeX-packages ! oberdiek
24309 , the link anchor is placed at the beginning of a float.
24310 To use this feature for figure floats, load
24314 in the document preamble with the line
24317 \begin_layout Standard
24322 usepackage[figure]{hypcap}
24325 \begin_layout Standard
24330 for all float types but this is not recommended for stability reasons.
24331 For more information, have a look at
24336 \begin_inset CommandInset citation
24345 \begin_layout Standard
24346 \begin_inset Note Greyedout
24349 \begin_layout Plain Layout
24358 has no effect on references to subfigures.
24366 \begin_layout Section
24368 \begin_inset CommandInset label
24370 name "sec:Float-Placement"
24375 \begin_inset Index idx
24378 \begin_layout Plain Layout
24387 \begin_layout Standard
24388 Right-clicking on a float-box and clicking on
24392 opens a dialog where you can alter the placement options that LaTeX uses
24393 for positioning the float.
24394 \begin_inset Newline newline
24400 \begin_inset space ~
24405 is only useful for two-column documents: If you select it, the float will
24406 span both columns on the page instead of being confined to just one.
24407 \begin_inset Newline newline
24413 \begin_inset space ~
24418 is used to rotate floats, see section
24419 \begin_inset CommandInset ref
24421 reference "sec:Rotated-Floats"
24428 \begin_layout Standard
24429 You can use one or more of the following options in the float dialog to
24430 set the placement for a particular float when you uncheck the option
24433 \begin_inset space ~
24437 \begin_inset space ~
24445 \begin_layout Description
24447 \begin_inset space ~
24451 \begin_inset space ~
24454 possible try to place the float on the position where it has been inserted
24457 \begin_layout Description
24459 \begin_inset space ~
24463 \begin_inset space ~
24466 page try to place the float at the top of the current page
24469 \begin_layout Description
24471 \begin_inset space ~
24475 \begin_inset space ~
24478 page try to place the float at the bottom of the current page
24481 \begin_layout Description
24483 \begin_inset space ~
24487 \begin_inset space ~
24490 floats try to place the float on its own page
24493 \begin_layout Standard
24494 The order of the above option is
24499 That means, if you use the default placement, LaTeX will first try out
24503 \begin_inset space ~
24507 \begin_inset space ~
24515 \begin_inset space ~
24519 \begin_inset space ~
24524 , and then the others.
24525 If you do not use the default, LaTeX will try only the checked options
24526 but in the same order.
24528 \begin_inset space ~
24531 placements is possible the procedure is internally repeated trying to put
24532 the float on the following page.
24535 \begin_layout Standard
24536 By default, each option has its own rules:
24539 \begin_layout Labeling
24540 \labelwidthstring 00.00.0000
24544 \begin_inset space ~
24548 \begin_inset space ~
24553 only floats occupying less than 70
24554 \begin_inset space \thinspace{}
24557 % of the page can be placed at the top of a page (
24566 \begin_layout Labeling
24567 \labelwidthstring 00.00.0000
24571 \begin_inset space ~
24575 \begin_inset space ~
24580 : only floats occupying less than 30
24581 \begin_inset space \thinspace{}
24584 % of the page can be placed at the bottom of a page.
24594 \begin_layout Labeling
24595 \labelwidthstring 00.00.0000
24599 \begin_inset space ~
24603 \begin_inset space ~
24608 : only if more than 50
24609 \begin_inset space \thinspace{}
24612 % of the page is occupied by floats, several floats can be set together
24623 \begin_layout Standard
24624 If you don't like these rules, you can ignore them by using the additional
24628 \begin_inset space ~
24632 \begin_inset space ~
24638 \begin_inset Newline newline
24641 You can also redefine the rules with LaTeX-commands that are given in parenthese
24642 s after the rules description above.
24643 To increase for example the often too small default of the bottom-rule
24645 \begin_inset space \thinspace{}
24648 % of the page, add this line to your document preamble:
24651 \begin_layout Standard
24658 bottomfraction}{0.5}
24661 \begin_layout Standard
24662 Sometimes you might need, under all circumstances, a float to be placed
24663 exactly at the position where it is inserted.
24664 For this case you can use the option
24667 \begin_inset space ~
24673 Use this option very rarely and only if the document is almost ready to
24674 be printed, because the float is then no longer able to
24675 \begin_inset Quotes eld
24679 \begin_inset Quotes erd
24682 when you change your document and this will often destroy the page layout.
24685 \begin_layout Standard
24686 There are no placement options for text wrap floats, because they are always
24687 surrounded by the text of a certain paragraph.
24688 \begin_inset VSpace bigskip
24694 \begin_layout Standard
24695 Sometimes you have the problem that a float is placed at the top of a page
24696 while its corresponding section starts at the middle of the page, so that
24697 the reader could think the float is part of the previous section.
24698 To avoid this the LaTeX-command
24705 It suppresses a given float placement for the page where it is inserted
24706 and can therefore be used to avoid floats being set before a section starts.
24707 To get this, add these commands to your document preamble:
24710 \begin_layout Standard
24720 \begin_inset Newline newline
24734 \begin_layout Standard
24735 You can define the same for all section headings, like chapters and subsections.
24736 This definition is not recommended to be used for small text parts like
24737 subsubsections because LaTeX may then have problems finding a suitable
24741 \begin_layout Standard
24742 \begin_inset VSpace bigskip
24745 In some cases it is required to have all figures/tables at the end of the
24747 For this purpose the LaTeX-package
24752 \begin_inset Index idx
24755 \begin_layout Plain Layout
24756 LaTeX-packages ! endfloat
24762 It puts all figure and table floats at the end of the document into their
24764 At the original float position a text hint like
24765 \begin_inset Quotes eld
24771 \begin_inset space ~
24777 \begin_inset Quotes erd
24781 The endfloat-package is loaded in the preamble with the line
24784 \begin_layout Standard
24789 usepackage[options]{endfloat}
24792 \begin_layout Standard
24793 There are various package options to format the created figure/table sections.
24794 For more information we refer you to the
24799 \begin_inset CommandInset citation
24806 \begin_inset Newline newline
24810 \begin_inset Note Greyedout
24813 \begin_layout Plain Layout
24818 doesn't provide an automatic translation for the text hint, you have to
24819 do this manually, see section
24820 \begin_inset space ~
24824 \begin_inset CommandInset citation
24836 \begin_inset Newline newline
24840 \begin_inset Note Greyedout
24843 \begin_layout Plain Layout
24848 There is currently a bug in
24852 when the caption contains a German
24853 \begin_inset Quotes eld
24857 \begin_inset Quotes erd
24861 Use in this case the command
24862 \begin_inset Quotes eld
24872 \begin_inset Quotes erd
24875 in TeX-Code instead of
24876 \begin_inset Quotes eld
24880 \begin_inset Quotes erd
24891 \begin_layout Standard
24892 \begin_inset VSpace bigskip
24895 For more details about float placements, have a look at LaTeX books,
24896 \begin_inset CommandInset citation
24898 key "latexcompanion,latexguide,latexbook"
24905 \begin_layout Section
24907 \begin_inset CommandInset label
24909 name "sec:Rotated-Floats"
24914 \begin_inset Index idx
24917 \begin_layout Plain Layout
24926 \begin_layout Standard
24927 Especially for wide tables you might have floats rotated.
24928 To rotate a whole float including the caption, right-click on the float-box
24932 \begin_inset space ~
24940 \begin_layout Standard
24941 Rotated floats are always placed on a page of their own (or column of their
24942 own; in case you have a multi-column document).
24943 You can let them span several columns using the float settings option
24946 \begin_inset space ~
24952 Floats are rotated so that you can read them from the outside margin.
24953 To force a certain rotation direction for all pages, you can add either
24962 to the document class options.
24965 \begin_layout Standard
24966 Referencing rotated floats is the same as for normal floats, the caption
24967 format is also the same: Table
24968 \begin_inset space ~
24972 \begin_inset CommandInset ref
24974 reference "tab:Rotated-table"
24978 is an example of a rotated table float.
24981 \begin_layout Standard
24982 \begin_inset Note Greyedout
24985 \begin_layout Plain Layout
24990 Not all DVI-viewers are able to display rotated floats.
24998 \begin_layout Standard
24999 \begin_inset Float table
25004 \begin_layout Plain Layout
25005 \begin_inset Caption
25007 \begin_layout Plain Layout
25008 \begin_inset CommandInset label
25010 name "tab:Rotated-table"
25022 \begin_layout Plain Layout
25024 \begin_inset Tabular
25025 <lyxtabular version="3" rows="1" columns="5">
25026 <features tabularvalignment="middle">
25027 <column alignment="center" valignment="top" width="0">
25028 <column alignment="center" valignment="top" width="0">
25029 <column alignment="center" valignment="top" width="0">
25030 <column alignment="center" valignment="top" width="0">
25031 <column alignment="center" valignment="top" width="0">
25033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25036 \begin_layout Plain Layout
25042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25045 \begin_layout Plain Layout
25051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25054 \begin_layout Plain Layout
25060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25063 \begin_layout Plain Layout
25069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25072 \begin_layout Plain Layout
25091 \begin_layout Section
25093 \begin_inset Index idx
25096 \begin_layout Plain Layout
25105 \begin_layout Standard
25106 Subfloats are for example used when a figure consists of several images.
25107 They are created by inserting a float into an existing float.
25108 The placement of the subfloats can be controlled in the same way as for
25109 paragraphs as shown in table
25110 \begin_inset space ~
25114 \begin_inset CommandInset ref
25116 reference "tab:Two-subtables-side"
25121 \begin_inset CommandInset ref
25123 reference "tab:Two-subtables-upon"
25130 \begin_layout Standard
25131 Referencing subfloats works as for normal floats: Table
25132 \begin_inset space ~
25136 \begin_inset CommandInset ref
25138 reference "tab:This-is-subtable-a"
25143 \begin_inset CommandInset ref
25145 reference "tab:This-is-subtable-b"
25149 are subtables of table
25150 \begin_inset space ~
25154 \begin_inset CommandInset ref
25156 reference "tab:Two-subtables-side"
25163 \begin_layout Standard
25164 \begin_inset Float table
25169 \begin_layout Plain Layout
25170 \begin_inset Caption
25172 \begin_layout Plain Layout
25173 \begin_inset CommandInset label
25175 name "tab:Two-subtables-side"
25179 Two subtables placed side by side.
25187 \begin_layout Plain Layout
25189 \begin_inset space \hfill{}
25193 \begin_inset Float table
25198 \begin_layout Plain Layout
25199 \begin_inset Caption
25201 \begin_layout Plain Layout
25202 \begin_inset CommandInset label
25204 name "tab:This-is-subtable-a"
25208 This is subtable a.
25216 \begin_layout Plain Layout
25218 \begin_inset Tabular
25219 <lyxtabular version="3" rows="1" columns="5">
25220 <features tabularvalignment="middle">
25221 <column alignment="center" valignment="top" width="0">
25222 <column alignment="center" valignment="top" width="0">
25223 <column alignment="center" valignment="top" width="0">
25224 <column alignment="center" valignment="top" width="0">
25225 <column alignment="center" valignment="top" width="0">
25227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25230 \begin_layout Plain Layout
25236 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25239 \begin_layout Plain Layout
25245 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25248 \begin_layout Plain Layout
25254 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25257 \begin_layout Plain Layout
25263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25266 \begin_layout Plain Layout
25283 \begin_inset space \hfill{}
25287 \begin_inset Float table
25292 \begin_layout Plain Layout
25293 \begin_inset Caption
25295 \begin_layout Plain Layout
25296 \begin_inset CommandInset label
25298 name "tab:This-is-subtable-b"
25302 This is subtable b.
25310 \begin_layout Plain Layout
25312 \begin_inset Tabular
25313 <lyxtabular version="3" rows="1" columns="5">
25314 <features tabularvalignment="middle">
25315 <column alignment="center" valignment="top" width="0">
25316 <column alignment="center" valignment="top" width="0">
25317 <column alignment="center" valignment="top" width="0">
25318 <column alignment="center" valignment="top" width="0">
25319 <column alignment="center" valignment="top" width="0">
25321 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25324 \begin_layout Plain Layout
25330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25333 \begin_layout Plain Layout
25339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25342 \begin_layout Plain Layout
25348 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25351 \begin_layout Plain Layout
25357 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25360 \begin_layout Plain Layout
25377 \begin_inset space \hfill{}
25388 \begin_layout Standard
25389 \begin_inset Float table
25394 \begin_layout Plain Layout
25395 \begin_inset Caption
25397 \begin_layout Plain Layout
25398 \begin_inset CommandInset label
25400 name "tab:Two-subtables-upon"
25404 Two subtables placed one above the other.
25405 (a) table with 4 cells, (b) table with 5 cells.
25413 \begin_layout Plain Layout
25415 \begin_inset Float table
25420 \begin_layout Plain Layout
25421 \begin_inset Caption
25423 \begin_layout Plain Layout
25432 \begin_layout Plain Layout
25434 \begin_inset Tabular
25435 <lyxtabular version="3" rows="1" columns="4">
25436 <features tabularvalignment="middle">
25437 <column alignment="center" valignment="top" width="0">
25438 <column alignment="center" valignment="top" width="0">
25439 <column alignment="center" valignment="top" width="0">
25440 <column alignment="center" valignment="top" width="0">
25442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25445 \begin_layout Plain Layout
25451 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25454 \begin_layout Plain Layout
25460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25463 \begin_layout Plain Layout
25469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25472 \begin_layout Plain Layout
25491 \begin_layout Plain Layout
25493 \begin_inset Float table
25498 \begin_layout Plain Layout
25499 \begin_inset Caption
25501 \begin_layout Plain Layout
25510 \begin_layout Plain Layout
25512 \begin_inset Tabular
25513 <lyxtabular version="3" rows="1" columns="5">
25514 <features tabularvalignment="middle">
25515 <column alignment="center" valignment="top" width="0">
25516 <column alignment="center" valignment="top" width="0">
25517 <column alignment="center" valignment="top" width="0">
25518 <column alignment="center" valignment="top" width="0">
25519 <column alignment="center" valignment="top" width="0">
25521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25524 \begin_layout Plain Layout
25530 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25533 \begin_layout Plain Layout
25539 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25542 \begin_layout Plain Layout
25548 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25551 \begin_layout Plain Layout
25557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25560 \begin_layout Plain Layout
25584 \begin_layout Section
25585 Floats Side by Side
25586 \begin_inset Index idx
25589 \begin_layout Plain Layout
25590 Floats ! Side by side
25598 \begin_layout Standard
25599 To place floats side by side, as in Figures
25600 \begin_inset space ~
25604 \begin_inset CommandInset ref
25606 reference "fig:Float-left"
25611 \begin_inset CommandInset ref
25613 reference "fig:Float-right"
25622 In it two minipage boxes are inserted.
25626 \begin_layout Plain Layout
25627 Minipages are explained in section
25628 \begin_inset space ~
25632 \begin_inset CommandInset ref
25634 reference "sec:Minipages"
25643 The width is set to 45
25644 \begin_inset space \thinspace{}
25648 \begin_inset space \thinspace{}
25651 column% and the box alignment to
25656 The minipage boxes contain the image and the caption in the same way as
25657 they are in a float.
25658 The only difference is that the image unit
25661 \begin_inset space ~
25665 \begin_inset space ~
25670 is now calculated according to the width of the minipage boxes.
25673 \begin_layout Standard
25674 \begin_inset Float figure
25679 \begin_layout Plain Layout
25680 \begin_inset Box Frameless
25690 height_special "totalheight"
25693 \begin_layout Plain Layout
25695 \begin_inset Graphics
25696 filename clipart/mobius.eps
25699 scaleBeforeRotation
25706 \begin_layout Plain Layout
25707 \begin_inset Caption
25709 \begin_layout Plain Layout
25710 \begin_inset CommandInset label
25712 name "fig:Float-left"
25716 Float on the left side.
25727 \begin_inset space \hfill{}
25731 \begin_inset Box Frameless
25741 height_special "totalheight"
25744 \begin_layout Plain Layout
25746 \begin_inset Graphics
25747 filename clipart/platypus.eps
25750 scaleBeforeRotation
25757 \begin_layout Plain Layout
25758 \begin_inset Caption
25760 \begin_layout Plain Layout
25761 \begin_inset CommandInset label
25763 name "fig:Float-right"
25767 Float on the right side.
25780 \begin_layout Plain Layout
25789 \begin_layout Section
25791 \begin_inset Index idx
25794 \begin_layout Plain Layout
25795 Caption ! Formatting
25801 \begin_inset Index idx
25804 \begin_layout Plain Layout
25805 Floats ! Caption Formatting
25811 \begin_inset CommandInset label
25813 name "sec:Caption-Formatting"
25820 \begin_layout Standard
25825 environment is the default paragraph environment for
25830 On the LyX screen captions appear as a label, e.
25831 \begin_inset space \thinspace{}
25835 \begin_inset space \space{}
25839 \begin_inset Quotes eld
25847 \begin_inset Quotes erd
25850 followed by the caption text.
25852 \begin_inset Quotes eld
25856 \begin_inset Quotes erd
25859 is the actual reference number.
25860 By default the label and the number are in the same font as the caption
25861 text and a colon follows the number to divide the label from the text.
25862 This caption format is not suitable for all document formats.
25866 \begin_layout Standard
25867 To change the default caption format, load the LaTeX-package
25872 \begin_inset Index idx
25875 \begin_layout Plain Layout
25876 LaTeX-packages ! caption
25881 in the document preamble with this line:
25884 \begin_layout Standard
25889 usepackage[format definition]{caption}
25892 \begin_layout Standard
25893 To have for example the label and the number in sans-serif bold font and
25894 the table captions always above the table as in this document, use the
25898 \begin_layout Standard
25903 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
25906 \begin_layout Standard
25907 You can also define different caption formats for the different float types.
25908 In this case load the
25912 package without format specific options and define the different formats
25913 with the help of the command
25916 \begin_layout Standard
25921 captionsetup[float type]{format definition}
25924 \begin_layout Standard
25925 in the document preamble.
25926 For example the caption formats of Figure
25927 \begin_inset space ~
25931 \begin_inset CommandInset ref
25933 reference "fig:This-is-an-fig"
25938 \begin_inset space ~
25942 \begin_inset CommandInset ref
25944 reference "tab:This-is-an-tab"
25948 can be created using these commands in the document preamble:
25951 \begin_layout Standard
25956 usepackage[tableposition=top]{caption}
25959 \begin_inset Newline newline
25966 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
25967 \begin_inset Newline newline
25971 \begin_inset Phantom HPhantom
25974 \begin_layout Plain Layout
25979 captionsetup[figure]{
25985 \begin_inset Newline newline
25990 captionsetup[table]{labelfont={bf,sf}}
25993 \begin_layout Standard
25994 \begin_inset Note Greyedout
25997 \begin_layout Plain Layout
26006 has no effect when a
26011 \begin_inset Index idx
26014 \begin_layout Plain Layout
26015 LaTeX-packages ! KOMA-Script
26020 document class is used.
26021 In this case the document class option
26023 captions=tableheading
26033 \begin_layout Standard
26034 For more information about the package
26038 we refer to its documentation
26039 \begin_inset CommandInset citation
26048 \begin_layout Standard
26049 To change the label name from e.
26050 \begin_inset space \thinspace{}
26054 \begin_inset space \space{}
26058 \begin_inset Quotes eld
26062 \begin_inset Quotes erd
26066 \begin_inset Quotes eld
26070 \begin_inset Quotes erd
26073 use this preamble command:
26076 \begin_layout Standard
26083 fnum@figure}{Image~
26088 \begin_layout Standard
26095 inserts the figure number and
26098 \begin_inset Quotes eld
26104 \begin_inset Quotes erd
26107 creates a protected space.
26110 \begin_layout Standard
26111 \begin_inset VSpace bigskip
26119 \begin_inset Index idx
26122 \begin_layout Plain Layout
26123 LaTeX-packages ! KOMA-Script
26130 article (KOMA-Script)
26138 letter (KOMA-Script)
26142 report (KOMA-Script)
26145 \begin_inset space \thinspace{}
26148 ), you can alternatively to the
26156 's built-in command
26163 For example, to have the caption label in bold, add this command to your
26167 \begin_layout Standard
26172 setkomafont{captionlabel}{
26177 \begin_layout Standard
26178 For more information about
26189 \begin_inset CommandInset citation
26198 \begin_layout Standard
26202 \begin_layout Plain Layout
26206 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
26213 \begin_inset Note Note
26216 \begin_layout Plain Layout
26217 The caption format is changed only for this example.
26225 \begin_layout Standard
26226 \begin_inset Float figure
26232 \begin_layout Plain Layout
26234 \begin_inset Graphics
26235 filename clipart/mobius.eps
26238 scaleBeforeRotation
26245 \begin_layout Plain Layout
26246 \begin_inset Caption
26248 \begin_layout Plain Layout
26249 \begin_inset CommandInset label
26251 name "fig:This-is-an-fig"
26255 This is an example figure caption that is longer than one line to show the
26256 different caption format.
26257 Here a self-defined caption format is used.
26270 \begin_layout Standard
26274 \begin_layout Plain Layout
26278 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
26287 \begin_layout Standard
26288 \begin_inset Float table
26294 \begin_layout Plain Layout
26295 \begin_inset Caption
26297 \begin_layout Plain Layout
26298 \begin_inset CommandInset label
26300 name "tab:This-is-an-tab"
26304 This is an example table caption that is longer than one line to show the
26305 different caption format.
26306 Here the standard caption format for tables in this document is used.
26314 \begin_layout Plain Layout
26316 \begin_inset Tabular
26317 <lyxtabular version="3" rows="1" columns="5">
26318 <features tabularvalignment="middle">
26319 <column alignment="center" valignment="top" width="0">
26320 <column alignment="center" valignment="top" width="0">
26321 <column alignment="center" valignment="top" width="0">
26322 <column alignment="center" valignment="top" width="0">
26323 <column alignment="center" valignment="top" width="0">
26325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26328 \begin_layout Plain Layout
26334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26337 \begin_layout Plain Layout
26343 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26346 \begin_layout Plain Layout
26352 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26355 \begin_layout Plain Layout
26361 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26364 \begin_layout Plain Layout
26383 \begin_layout Section
26385 \begin_inset Index idx
26388 \begin_layout Plain Layout
26389 Caption ! Placement
26395 \begin_inset Index idx
26398 \begin_layout Plain Layout
26399 Floats ! Caption Placement
26405 \begin_inset CommandInset label
26407 name "sec:Caption-Placement"
26414 \begin_layout Standard
26415 The common caption placement rule is:
26418 \begin_layout Description
26419 Figure: Caption is set below the figure
26422 \begin_layout Description
26423 Table: Caption is set above the table
26426 \begin_layout Standard
26427 Having the caption above the table is unfortunately not supported in LaTeX's
26429 That means if you are using the document classes
26445 there will be no space between the caption and the table.
26446 To insert the necessary space, add the following option to the load command
26447 of the LaTeX-package
26451 in your document preamble
26455 \begin_layout Plain Layout
26457 \begin_inset space ~
26461 \begin_inset CommandInset ref
26463 reference "sec:Caption-Formatting"
26467 for more information of the package
26479 \begin_layout Standard
26485 \begin_layout Standard
26491 \begin_inset Index idx
26494 \begin_layout Plain Layout
26495 LaTeX-packages ! KOMA-Script
26502 article (KOMA-Script)
26510 letter (KOMA-Script)
26514 report (KOMA-Script)
26517 \begin_inset space \thinspace{}
26520 ), you can alternatively to the
26524 package set the document class option
26526 captions=tableheading
26531 \begin_layout Standard
26532 \begin_inset VSpace bigskip
26535 It is also possible to set the caption beside a figure or table.
26536 To get this the LaTeX-package
26541 \begin_inset Index idx
26544 \begin_layout Plain Layout
26545 LaTeX-packages ! sidecap
26550 has to be loaded in the document preamble with the line
26553 \begin_layout Standard
26558 usepackage[option]{sidecap}
26561 \begin_layout Standard
26562 If you set no option, the caption is placed on the side of the outer page
26563 margin – to the right on odd pages, to the left on even pages.
26564 You can change the placement to inner margin with the option
26569 To force the placement always to the right or left, use the option
26580 \begin_layout Standard
26584 \begin_layout Plain Layout
26594 \begin_inset Note Note
26597 \begin_layout Plain Layout
26598 The following section will only be displayed when the LaTeX-package
26610 \begin_layout Standard
26611 To place in LyX the caption of a float on the side, it is necessary to add
26612 these commands to the document preamble:
26615 \begin_layout Standard
26616 \begin_inset Newpage pagebreak
26622 \begin_layout Standard
26624 \begin_inset CommandInset line
26635 \begin_layout Standard
26642 TabBesBeg}[1][1.0]{%
26643 \begin_inset Newline newline
26647 \begin_inset Phantom HPhantom
26650 \begin_layout Plain Layout
26651 \begin_inset space ~
26666 \begin_inset Newline newline
26670 \begin_inset Phantom HPhantom
26673 \begin_layout Plain Layout
26676 \begin_inset space ~
26691 \begin_inset Newline newline
26695 \begin_inset Phantom HPhantom
26698 \begin_layout Plain Layout
26701 \begin_inset space ~
26711 renewenvironment{table}[1]{
26713 begin{SCtable}[#1]##1}{
26718 \begin_layout Standard
26726 \begin_inset Newline newline
26730 \begin_inset Phantom HPhantom
26733 \begin_layout Plain Layout
26734 \begin_inset space ~
26749 \begin_inset Newline newline
26753 \begin_inset Phantom HPhantom
26756 \begin_layout Plain Layout
26757 \begin_inset space ~
26774 \begin_layout Standard
26781 FigBesBeg}[1][1.0]{%
26782 \begin_inset Newline newline
26786 \begin_inset Phantom HPhantom
26789 \begin_layout Plain Layout
26790 \begin_inset space ~
26805 \begin_inset Newline newline
26809 \begin_inset Phantom HPhantom
26812 \begin_layout Plain Layout
26813 \begin_inset space ~
26828 \begin_inset Newline newline
26832 \begin_inset Phantom HPhantom
26835 \begin_layout Plain Layout
26836 \begin_inset space ~
26846 renewenvironment{figure}[1]{
26848 begin{SCfigure}[#1]##1}{
26853 \begin_layout Standard
26861 \begin_inset Newline newline
26865 \begin_inset Phantom HPhantom
26868 \begin_layout Plain Layout
26869 \begin_inset space ~
26884 \begin_inset Newline newline
26888 \begin_inset Phantom HPhantom
26891 \begin_layout Plain Layout
26892 \begin_inset space ~
26909 \begin_layout Standard
26911 \begin_inset CommandInset line
26922 \begin_layout Standard
26923 The commands allow you to redefine the floats so that the caption is set
26925 For figure floats use the command
26928 \begin_layout Standard
26936 \begin_layout Standard
26937 in TeX-Code before the float.
26938 And insert the command
26941 \begin_layout Standard
26949 \begin_layout Standard
26950 in TeX-Code at the point where you want to get back to the original float
26954 \begin_layout Standard
26955 For table floats use the corresponding commands
26958 \begin_layout Standard
26972 \begin_layout Standard
26974 \begin_inset space ~
26978 \begin_inset CommandInset ref
26980 reference "fig:cap-beside-fig"
26985 \begin_inset space ~
26989 \begin_inset CommandInset ref
26991 reference "tab:cap-beside-tab"
26995 are examples where the caption is set beside.
26998 \begin_layout Standard
26999 You can see in the examples that the caption text appears at the top of
27000 the floats for table floats and at the bottom for figure floats.
27001 To change this, you can use the command
27004 \begin_layout Standard
27009 sidecaptionvpos{float type}{placement}
27012 \begin_layout Standard
27013 in the document preamble or in TeX-Code before the float.
27014 The float type is either
27022 , the placement can be
27023 \begin_inset Quotes eld
27031 \begin_inset Quotes erd
27035 \begin_inset Quotes eld
27043 \begin_inset Quotes erd
27047 \begin_inset Quotes eld
27055 \begin_inset Quotes erd
27059 To have for example the caption of figure floats vertically centered, use
27063 \begin_layout Standard
27068 sidecaptionvpos{figure}{c}
27071 \begin_layout Standard
27072 This was used for Figure
27073 \begin_inset space ~
27077 \begin_inset CommandInset ref
27079 reference "fig:cap-beside-fig-2"
27086 \begin_layout Standard
27087 \begin_inset VSpace medskip
27093 \begin_layout Standard
27094 The default caption width is the width of the image/table.
27095 For thin image/tables, like in Table
27096 \begin_inset space ~
27100 \begin_inset CommandInset ref
27102 reference "tab:cap-beside-tab"
27106 , this leads to captions that are too thin.
27107 You can increase the width by specifying a factor that will be multiplied
27108 with the image/table width to get the caption width.
27109 The caption width will automatically be recalculated in case it would protrude
27110 over the page or column margin due to the specified width.
27115 can either be given as optional argument for
27124 \begin_layout Standard
27132 \begin_layout Standard
27133 or in the definition of
27143 with another value.
27144 If you do the latter, your factor will be the default if
27150 is used without an argument.
27152 \begin_inset space ~
27156 \begin_inset CommandInset ref
27158 reference "tab:cap-beside-tab-wider"
27162 the factor 5 was used.
27165 \begin_layout Standard
27166 \begin_inset Note Greyedout
27169 \begin_layout Plain Layout
27174 For floats with captions set beside, you cannot use the float placement
27178 \begin_inset space ~
27183 because it is not supported by
27195 \begin_layout Standard
27196 \begin_inset VSpace medskip
27199 For more information about the package
27203 we refer to its documentation
27204 \begin_inset CommandInset citation
27213 \begin_layout Standard
27214 \begin_inset Note Greyedout
27217 \begin_layout Plain Layout
27227 \begin_inset Index idx
27230 \begin_layout Plain Layout
27231 LaTeX-packages ! hypcap
27236 , described in section
27237 \begin_inset space ~
27241 \begin_inset CommandInset ref
27243 reference "sub:Reference-Position"
27247 , has no effect on floats with the caption set beside.
27255 \begin_layout Standard
27259 \begin_layout Plain Layout
27271 \begin_layout Standard
27272 \begin_inset Float figure
27277 \begin_layout Plain Layout
27278 \begin_inset Graphics
27279 filename clipart/escher-lsd.eps
27281 scaleBeforeRotation
27288 \begin_layout Plain Layout
27289 \begin_inset Caption
27291 \begin_layout Plain Layout
27292 \begin_inset CommandInset label
27294 name "fig:cap-beside-fig"
27298 This is a caption beside a figure.
27311 \begin_layout Standard
27315 \begin_layout Plain Layout
27327 \begin_layout Standard
27331 \begin_layout Plain Layout
27343 \begin_layout Standard
27344 \begin_inset Float table
27349 \begin_layout Plain Layout
27350 \begin_inset Caption
27352 \begin_layout Plain Layout
27353 \begin_inset CommandInset label
27355 name "tab:cap-beside-tab"
27359 This is a caption beside a table.
27367 \begin_layout Plain Layout
27368 \begin_inset Tabular
27369 <lyxtabular version="3" rows="4" columns="5">
27370 <features tabularvalignment="middle">
27371 <column alignment="center" valignment="top" width="0">
27372 <column alignment="center" valignment="top" width="0">
27373 <column alignment="center" valignment="top" width="0">
27374 <column alignment="center" valignment="top" width="0">
27375 <column alignment="center" valignment="top" width="0">
27377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27380 \begin_layout Plain Layout
27386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27389 \begin_layout Plain Layout
27395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27398 \begin_layout Plain Layout
27404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27407 \begin_layout Plain Layout
27413 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27416 \begin_layout Plain Layout
27424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27427 \begin_layout Plain Layout
27433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27436 \begin_layout Plain Layout
27442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27445 \begin_layout Plain Layout
27451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27454 \begin_layout Plain Layout
27460 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27463 \begin_layout Plain Layout
27471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27474 \begin_layout Plain Layout
27480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27483 \begin_layout Plain Layout
27489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27492 \begin_layout Plain Layout
27498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27501 \begin_layout Plain Layout
27507 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27510 \begin_layout Plain Layout
27518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27521 \begin_layout Plain Layout
27527 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27530 \begin_layout Plain Layout
27536 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27539 \begin_layout Plain Layout
27545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27548 \begin_layout Plain Layout
27554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27557 \begin_layout Plain Layout
27576 \begin_layout Standard
27580 \begin_layout Plain Layout
27592 \begin_layout Standard
27596 \begin_layout Plain Layout
27600 sidecaptionvpos{figure}{c}
27606 \begin_inset Float figure
27611 \begin_layout Plain Layout
27612 \begin_inset Graphics
27613 filename clipart/escher-lsd.eps
27615 scaleBeforeRotation
27622 \begin_layout Plain Layout
27623 \begin_inset Caption
27625 \begin_layout Plain Layout
27626 \begin_inset CommandInset label
27628 name "fig:cap-beside-fig-2"
27632 This is a vertically centered caption beside a figure.
27645 \begin_layout Standard
27649 \begin_layout Plain Layout
27661 \begin_layout Standard
27665 \begin_layout Plain Layout
27677 \begin_layout Standard
27678 \begin_inset Float table
27683 \begin_layout Plain Layout
27684 \begin_inset Caption
27686 \begin_layout Plain Layout
27687 \begin_inset CommandInset label
27689 name "tab:cap-beside-tab-wider"
27693 This is a caption is wider than the one in Table
27694 \begin_inset space ~
27698 \begin_inset CommandInset ref
27700 reference "tab:cap-beside-tab"
27712 \begin_layout Plain Layout
27713 \begin_inset Tabular
27714 <lyxtabular version="3" rows="4" columns="5">
27715 <features tabularvalignment="middle">
27716 <column alignment="center" valignment="top" width="0">
27717 <column alignment="center" valignment="top" width="0">
27718 <column alignment="center" valignment="top" width="0">
27719 <column alignment="center" valignment="top" width="0">
27720 <column alignment="center" valignment="top" width="0">
27722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27725 \begin_layout Plain Layout
27731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27734 \begin_layout Plain Layout
27740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27743 \begin_layout Plain Layout
27749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27752 \begin_layout Plain Layout
27758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27761 \begin_layout Plain Layout
27769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27772 \begin_layout Plain Layout
27778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27781 \begin_layout Plain Layout
27787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27790 \begin_layout Plain Layout
27796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27799 \begin_layout Plain Layout
27805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27808 \begin_layout Plain Layout
27816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27819 \begin_layout Plain Layout
27825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27828 \begin_layout Plain Layout
27834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27837 \begin_layout Plain Layout
27843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27846 \begin_layout Plain Layout
27852 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27855 \begin_layout Plain Layout
27863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27866 \begin_layout Plain Layout
27872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27875 \begin_layout Plain Layout
27881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27884 \begin_layout Plain Layout
27890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27893 \begin_layout Plain Layout
27899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27902 \begin_layout Plain Layout
27921 \begin_layout Standard
27925 \begin_layout Plain Layout
27937 \begin_layout Standard
27941 \begin_layout Plain Layout
27951 \begin_inset Note Note
27954 \begin_layout Plain Layout
27955 The following will be displayed when the LaTeX-package
27967 \begin_layout Standard
27968 You need to install the LaTeX-package
27972 to see the following part of this section in the output.
27975 \begin_layout Standard
27979 \begin_layout Plain Layout
27991 \begin_layout Section
27993 \begin_inset Index idx
27996 \begin_layout Plain Layout
27997 Floats ! Float Lists
28005 \begin_layout Standard
28006 Similar to the table of contents where the sections of the document are
28007 listed, there are listings for all float types, like the figures of the
28009 You can insert them via the
28011 Insert\SpecialChar \menuseparator
28013 \begin_inset space ~
28017 \begin_inset space ~
28025 \begin_layout Standard
28026 The list entries are the float captions or its short title, the float number,
28027 and the page number where they appear in the document.
28030 \begin_layout Standard
28031 You can find the list of figures and tables at the end of this document.
28034 \begin_layout Chapter
28038 \begin_layout Section
28040 \begin_inset Index idx
28043 \begin_layout Plain Layout
28052 \begin_layout Standard
28053 Notes are inserted with the toolbar button
28065 Insert\SpecialChar \menuseparator
28069 There are three types of notes:
28072 \begin_layout Description
28074 \begin_inset space ~
28077 Note This note type is for internal notes that won't appear in the output.
28078 Its note-box looks like this:
28079 \begin_inset Newline newline
28083 \begin_inset Newline newline
28087 \begin_inset Graphics
28088 filename clipart/LyXNoteImageQt4.png
28091 scaleBeforeRotation
28096 \begin_inset Note Note
28099 \begin_layout Plain Layout
28100 This is text in a note box that doesn't appear in the output.
28108 \begin_layout Description
28109 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
28110 ent, when you export the document to LaTeX via the menu
28112 File\SpecialChar \menuseparator
28113 Export\SpecialChar \menuseparator
28114 LaTeX (pdflatex) / (plain)
28117 Its note-box looks like this:
28118 \begin_inset Newline newline
28122 \begin_inset Newline newline
28126 \begin_inset Graphics
28127 filename clipart/CommentNoteImageQt4.png
28130 scaleBeforeRotation
28135 \begin_inset Note Comment
28138 \begin_layout Plain Layout
28139 This is text in a note box that only appears as comment in LaTeX-files.
28147 \begin_layout Description
28149 \begin_inset space ~
28152 Out This note will appear in the output as grey text.
28153 Its note-box looks like this:
28154 \begin_inset Newline newline
28158 \begin_inset Newline newline
28162 \begin_inset Graphics
28163 filename clipart/GreyedOutNoteImageQt4.png
28166 scaleBeforeRotation
28171 \begin_inset Newline newline
28178 \begin_layout Plain Layout
28182 renewenvironment{lyxgreyedout}
28185 \begin_layout Plain Layout
28189 textcolor[gray]{0.8}
28199 \begin_inset Note Greyedout
28202 \begin_layout Plain Layout
28207 \begin_layout Plain Layout
28208 This is an example footnote within a greyed out note.
28213 of a comment that appears in the output as grey text.
28222 \begin_layout Plain Layout
28226 renewenvironment{lyxgreyedout}
28229 \begin_layout Plain Layout
28243 \begin_inset Note Note
28246 \begin_layout Plain Layout
28247 The greyed out note is here redefined to show it with the original LyX definitio
28248 n because greyed out notes are redefined in the preamble of this document,
28249 as described below, to have blue text.
28255 \begin_inset Newline newline
28259 \begin_inset Newline newline
28262 As you can see in the example, the first line of greyed out notes is a bit
28263 indented and greyed out notes can have footnotes.
28266 \begin_layout Standard
28267 \begin_inset VSpace bigskip
28270 When you use the toolbar button
28283 \begin_inset space ~
28289 You can switch between the three note types by right-clicking on the note-box.
28294 If you want to turn existing text into a note, mark it and click on the
28308 To change a note to text, press the backspace key when the cursor is in
28309 the first position of a note, or press the delete key when the cursor is
28310 in the very last position of the note, respectively.
28313 \begin_layout Standard
28314 \begin_inset VSpace bigskip
28317 You can change the text color of the greyed out notes in the menu
28319 Document\SpecialChar \menuseparator
28320 Settings\SpecialChar \menuseparator
28326 \begin_layout Section
28328 \begin_inset CommandInset label
28330 name "sec:Footnotes"
28335 \begin_inset Index idx
28338 \begin_layout Plain Layout
28345 \begin_inset Index idx
28348 \begin_layout Plain Layout
28357 \begin_layout Standard
28358 Footnotes can be inserted using the toolbar button
28363 arg "footnote-insert"
28370 Insert\SpecialChar \menuseparator
28374 You will then see the following footnote-box:
28375 \begin_inset Graphics
28376 filename clipart/footnoteQt4.png
28378 scaleBeforeRotation
28386 where you can enter the footnote text.
28387 If you want to turn existing text into a footnote, mark it and click on
28413 key when the cursor is in the first position of a
28425 key when the cursor is in the very last position of the
28436 \begin_layout Standard
28437 Here is an example footnote:
28445 \begin_layout Plain Layout
28446 \begin_inset CommandInset label
28448 name "foot:This-is-an"
28452 This is an example footnote.
28465 \begin_layout Plain Layout
28469 newcounter{MyRepeatFoot}
28472 \begin_layout Plain Layout
28476 setcounter{MyRepeatFoot}{
28486 \begin_layout Standard
28487 The footnote will appear in the output as a superscript number at the text
28488 position where the footnote box is placed.
28489 The footnote text is placed at the bottom of the current page.
28490 The footnote number is calculated by LaTeX; the numbers are consecutive.
28491 Whether the footnote number is reset for every chapter depends on your
28495 \begin_layout Standard
28496 Footnotes can be referenced like floats: Insert a label into the footnote
28497 and cross-reference this label in the text as described in section
28498 \begin_inset space ~
28502 \begin_inset CommandInset ref
28504 reference "sec:Referencing-Floats"
28509 \begin_inset Newline newline
28512 This is a cross-reference of Footnote
28513 \begin_inset space ~
28517 \begin_inset CommandInset ref
28519 reference "foot:This-is-an"
28526 \begin_layout Standard
28527 \begin_inset VSpace defskip
28530 Footnotes in tables are not printed by LaTeX due to technical reasons.
28531 However there exists another method to print them: Instead of the footnote
28538 is inserted as TeX-code.
28539 The text of the footnote is entered as an argument of the TeX-code command
28547 \begin_inset Newline newline
28550 This was done for the following table with the command
28553 \begin_layout Standard
28560 Printed table footnote.
28565 \begin_layout Standard
28566 \begin_inset Tabular
28567 <lyxtabular version="3" rows="2" columns="1">
28568 <features tabularvalignment="middle">
28569 <column alignment="center" valignment="top" width="0">
28571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28574 \begin_layout Plain Layout
28575 This an example text.
28579 \begin_layout Plain Layout
28580 This footnote will not be printed!
28592 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28595 \begin_layout Plain Layout
28596 This an example text.
28600 \begin_layout Plain Layout
28623 \begin_layout Plain Layout
28632 Printed table footnote.
28636 \begin_layout Plain Layout
28646 \begin_layout Standard
28647 Footnotes in longtables are described in section
28648 \begin_inset space ~
28652 \begin_inset CommandInset ref
28654 reference "sub:Footnotes-in-Longtables"
28661 \begin_layout Standard
28662 Footnotes in minipage boxes are printed, but inside the box and with a different
28663 numbering because a minipage box is like a page inside a page.
28664 (For more about minipages, see section
28665 \begin_inset space ~
28669 \begin_inset CommandInset ref
28671 reference "sec:Minipages"
28675 .) To get a footnote in the minipage that is output at the bottom of the
28676 page like normal footnotes, also use the method of
28691 \begin_layout Standard
28692 \begin_inset Box Frameless
28702 height_special "totalheight"
28705 \begin_layout Plain Layout
28706 This an example text in a minipage.
28710 \begin_layout Plain Layout
28711 Footnote in the minipage.
28719 \begin_layout Plain Layout
28720 This an example text in a minipage.
28724 \begin_layout Plain Layout
28741 \begin_layout Standard
28745 \begin_layout Plain Layout
28754 Footnote outside the minipage.
28758 \begin_layout Plain Layout
28768 \begin_layout Standard
28769 \begin_inset VSpace defskip
28775 \begin_layout Standard
28776 To refer to the same footnote several times without printing the footnote
28777 text every time, use the command
28781 footnotemark[number]
28784 \begin_inset Newline newline
28787 As you do not know the number of the repeating footnote while you are writing
28788 the text, you have to store its number.
28789 For the following footnote mark example, these commands were inserted in
28790 TeX-code after Footnote
28791 \begin_inset space ~
28795 \begin_inset CommandInset ref
28797 reference "foot:This-is-an"
28801 to store the footnote number:
28804 \begin_layout Standard
28809 newcounter{MyRepeatFoot}
28810 \begin_inset Newline newline
28815 setcounter{MyRepeatFoot}{
28820 \begin_layout Standard
28821 The footnote mark was then created with this command:
28824 \begin_layout Standard
28834 \begin_layout Standard
28835 Here is a repeated footnote:
28843 \begin_layout Plain Layout
28857 \begin_layout Standard
28858 If you want to repeat the previous footnote, you can omit the storage of
28859 the footnote number and just use this command instead:
28862 \begin_layout Standard
28872 \begin_layout Standard
28873 Here is another repeated footnote:
28881 \begin_layout Plain Layout
28895 \begin_layout Subsection
28897 \begin_inset CommandInset label
28899 name "sub:Footnote-Numbering"
28904 \begin_inset Index idx
28907 \begin_layout Plain Layout
28908 Footnotes ! Numbering
28916 \begin_layout Standard
28917 To reset the footnote number back to 1 after each section
28919 , add this command to your document preamble:
28922 \begin_layout Standard
28927 @addtoreset{footnote}{section}
28930 \begin_layout Standard
28931 \begin_inset VSpace bigskip
28934 The following preamble command changes the footnote numbering style to small
28938 \begin_layout Standard
28950 \begin_layout Standard
28954 \begin_layout Plain Layout
28967 This is a footnote with roman numbering:
28971 \begin_layout Plain Layout
28972 This is an example footnote with roman numbering.
28980 \begin_layout Standard
28981 To change the numbering style to capital roman numerals replace in the command
28996 \begin_inset Quotes eld
29000 \begin_inset Quotes erd
29003 footnotes with capital or small Latin letters use
29017 \begin_inset Quotes eld
29021 \begin_inset Quotes erd
29024 footnotes with symbols use
29033 \begin_layout Standard
29034 \begin_inset Note Greyedout
29037 \begin_layout Plain Layout
29042 You can only number 26 footnotes with Latin letters, because this numbering
29043 is limited to single letters.
29049 \begin_inset Newline newline
29053 \begin_inset Note Greyedout
29056 \begin_layout Plain Layout
29061 You can only number 9 footnotes with symbols.
29069 \begin_layout Standard
29070 To return to the default numbering style after you have changed to another
29083 in the command above.
29087 \begin_layout Plain Layout
29103 \begin_layout Standard
29104 \begin_inset VSpace bigskip
29110 \begin_layout Standard
29111 If you want to have footnotes numbered in the scheme
29112 \begin_inset Quotes eld
29116 \begin_inset Quotes erd
29119 , add the following command to your document preamble:
29122 \begin_layout Standard
29127 numberwithin{footnote}{chapter}
29130 \begin_layout Standard
29131 To be able to use the command
29140 \begin_inset space ~
29145 in the document settings the option
29148 \begin_inset space ~
29152 \begin_inset space ~
29156 \begin_inset space ~
29164 \begin_layout Standard
29168 \begin_layout Plain Layout
29172 numberwithin{footnote}{chapter}
29177 This is another example footnote:
29183 \begin_layout Plain Layout
29184 This is a footnote numbered in the scheme
29185 \begin_inset Quotes eld
29189 \begin_inset Quotes erd
29203 \begin_layout Plain Layout
29219 \begin_layout Standard
29220 \begin_inset Note Greyedout
29223 \begin_layout Plain Layout
29234 always prints out the footnote number as arabic number; previous redefinitions
29235 to get non-arabic numbers are overwritten.
29243 \begin_layout Standard
29244 So to get for example the scheme
29245 \begin_inset Quotes eld
29251 \begin_inset Quotes erd
29254 , use this command instead of
29263 \begin_layout Standard
29277 \begin_layout Subsection
29279 \begin_inset Index idx
29282 \begin_layout Plain Layout
29283 Footnotes ! Placement
29291 \begin_layout Standard
29292 If you have several footnotes in one page, they appear without vertical
29293 space between them at the bottom of the page.
29294 To make them more readable you can e.
29295 \begin_inset space \thinspace{}
29299 \begin_inset space \space{}
29303 \begin_inset space \thinspace{}
29306 mm space with the following preamble command:
29309 \begin_layout Standard
29319 \begin_inset Newline newline
29333 \begin_layout Standard
29334 \begin_inset VSpace bigskip
29337 In a two-column document the footnotes appear at the bottom of every column,
29339 \begin_inset space ~
29343 \begin_inset CommandInset ref
29345 reference "fig:Standard-footnote-placement"
29350 If the footnotes should only appear at the bottom of the right column,
29352 \begin_inset space ~
29356 \begin_inset CommandInset ref
29358 reference "fig:Footnote-placement-in"
29362 , use the LaTeX-package
29367 \begin_inset Index idx
29370 \begin_layout Plain Layout
29371 LaTeX-packages ! ftnright
29376 with this command in the document preamble:
29379 \begin_layout Standard
29384 usepackage{ftnright}
29387 \begin_layout Standard
29388 \begin_inset Float figure
29394 \begin_layout Plain Layout
29398 \begin_layout Plain Layout
29408 \begin_inset Graphics
29409 filename clipart/without_fntright.pdf
29411 scaleBeforeRotation
29419 \begin_layout Plain Layout
29429 \begin_layout Plain Layout
29430 \begin_inset Caption
29432 \begin_layout Plain Layout
29433 \begin_inset CommandInset label
29435 name "fig:Standard-footnote-placement"
29439 Standard footnote placement in two-column documents.
29452 \begin_layout Standard
29453 \begin_inset Float figure
29459 \begin_layout Plain Layout
29463 \begin_layout Plain Layout
29473 \begin_inset Graphics
29474 filename clipart/with_fntright.pdf
29476 scaleBeforeRotation
29484 \begin_layout Plain Layout
29494 \begin_layout Plain Layout
29495 \begin_inset Caption
29497 \begin_layout Plain Layout
29498 \begin_inset CommandInset label
29500 name "fig:Footnote-placement-in"
29504 Footnote placement in two-column documents when the LaTeX-package
29521 \begin_layout Standard
29522 \begin_inset VSpace bigskip
29525 In some scientific literature it is usual to collect the footnotes and print
29526 them in a separate paragraph at the end of a section, as in Figure
29527 \begin_inset space ~
29531 \begin_inset CommandInset ref
29533 reference "fig:Endnotes"
29538 They are then called
29539 \begin_inset Quotes eld
29543 \begin_inset Quotes erd
29547 \begin_inset Index idx
29550 \begin_layout Plain Layout
29556 To use endnotes instead of footnotes in your document, load in the menu
29559 Document\SpecialChar \menuseparator
29560 Settings\SpecialChar \menuseparator
29566 \begin_inset space ~
29570 \begin_inset space ~
29576 To insert the collected footnotes, insert the command
29579 \begin_layout Standard
29587 \begin_layout Standard
29588 in TeX-Code at the end of a section or chapter.
29591 \begin_layout Standard
29592 \begin_inset Float figure
29597 \begin_layout Plain Layout
29602 \begin_layout Plain Layout
29612 \begin_inset Graphics
29613 filename clipart/endnotes.pdf
29614 scaleBeforeRotation
29622 \begin_layout Plain Layout
29632 \begin_layout Plain Layout
29633 \begin_inset Caption
29635 \begin_layout Plain Layout
29636 \begin_inset CommandInset label
29638 name "fig:Endnotes"
29642 Endnotes – footnotes are printed in a separate paragraph at the end of sections
29656 \begin_layout Standard
29657 \begin_inset VSpace medskip
29660 The paragraph heading for the endnotes isn't automatically translated into
29661 the document language, this must be done manually.
29662 The following preamble command translates the default English
29663 \begin_inset Quotes eld
29667 \begin_inset Quotes erd
29671 \begin_inset Quotes eld
29675 \begin_inset Quotes erd
29681 \begin_layout Standard
29688 notesname}{Anmerkungen}
29691 \begin_layout Standard
29692 \begin_inset VSpace medskip
29695 The numbering of endnotes can be changed like the footnote numbering as
29696 described in section
29697 \begin_inset space ~
29701 \begin_inset CommandInset ref
29703 reference "sub:Footnote-Numbering"
29707 ; just replace the command
29720 To reset the endnote number use the command
29726 as described in section
29727 \begin_inset space ~
29731 \begin_inset CommandInset ref
29733 reference "sub:Footnote-Numbering"
29737 and replace the command parameter
29748 \begin_layout Standard
29749 For endnotes there is the command
29753 endnotemark[number]
29755 similar to the command
29761 , that is described in section
29762 \begin_inset space ~
29766 \begin_inset CommandInset ref
29768 reference "sec:Footnotes"
29775 \begin_layout Standard
29776 \begin_inset VSpace bigskip
29779 Footnotes can also be placed in the page margin and the footnote text alignment
29780 can be changed, see the LaTeX-package
29785 \begin_inset Index idx
29788 \begin_layout Plain Layout
29789 LaTeX-packages ! footmisc
29795 \begin_inset CommandInset citation
29801 for more information about this.
29804 \begin_layout Standard
29805 For various further footnote formatting issues have a look at LaTeX-books,
29807 \begin_inset CommandInset citation
29809 key "latexcompanion,latexguide,latexbook"
29819 \begin_inset Index idx
29822 \begin_layout Plain Layout
29823 LaTeX-packages ! KOMA-Script
29828 document class, you can adjust all footnote settings using class-specific
29830 \begin_inset CommandInset citation
29839 \begin_layout Section
29841 \begin_inset Index idx
29844 \begin_layout Plain Layout
29845 Notes ! Margin Notes
29853 \begin_layout Standard
29854 Margin notes look and behave in LyX like footnotes.
29855 They are inserted via the menu
29857 Insert\SpecialChar \menuseparator
29859 \begin_inset space ~
29864 or the toolbar button
29869 arg "marginalnote-insert"
29885 \begin_inset Quotes eld
29889 \begin_inset Quotes erd
29892 appears where you can enter the text of the margin note.
29895 \begin_layout Standard
29896 At the side is an example margin note.
29901 \begin_inset Marginal
29904 \begin_layout Plain Layout
29905 This is a margin note.
29913 \begin_layout Standard
29914 Margin notes appear at the right side in single-sided documents.
29915 In double-sided documents they appear in the outer margin – left on even
29916 pages, right on odd pages.
29917 The text of margin notes is aligned opposite to the outer margin – right-aligne
29918 d when the note appears in the left margin.
29919 The first line of the margin note is placed at the position of the text
29920 line where it is inserted in the document.
29923 \begin_layout Standard
29924 \begin_inset VSpace bigskip
29927 To place the margin note in the inner margin, add the command
29930 \begin_layout Standard
29938 \begin_layout Standard
29939 in TeX-Code before a margin note.
29940 The new placement is valid for all subsequent margin notes.
29945 \begin_layout Plain Layout
29955 \begin_inset Marginal
29958 \begin_layout Plain Layout
29959 This is a margin note in the inner margin.
29967 \begin_inset Newline newline
29973 \begin_inset Note Greyedout
29976 \begin_layout Plain Layout
29981 There is often not enough space in the inner margin so that the notes are
29982 not correctly displayed in the output.
29990 \begin_layout Standard
29991 To return to the default placement insert the command
29994 \begin_layout Standard
30002 \begin_layout Standard
30007 \begin_layout Plain Layout
30017 \begin_inset Note Greyedout
30020 \begin_layout Plain Layout
30025 The command is ignored when it is within a paragraph where also the command
30040 \begin_layout Standard
30041 \begin_inset VSpace bigskip
30048 \begin_inset Marginal
30051 \begin_layout Plain Layout
30052 AVeryLongMarginParWord that isn't hyphenated.
30060 Similar to the case described in section
30061 \begin_inset space ~
30065 \begin_inset CommandInset ref
30067 reference "sub:Multiple-Lines-in"
30071 , long words cannot be hyphenated when they are the first word in a margin
30073 To avoid this, insert 0
30074 \begin_inset space \thinspace{}
30077 pt horizontal space before the word
30082 \begin_inset Marginal
30085 \begin_layout Plain Layout
30086 \begin_inset space \hspace*{}
30090 AVeryLongMarginParWord that is hyphenated.
30098 \begin_layout Standard
30099 \begin_inset VSpace bigskip
30105 \begin_layout Standard
30106 \begin_inset Note Greyedout
30109 \begin_layout Plain Layout
30114 Margin notes can normally not be used inside tables, floats, and footnotes.
30122 \begin_layout Standard
30123 \begin_inset VSpace bigskip
30129 \begin_layout Standard
30133 \begin_layout Plain Layout
30143 \begin_inset Note Note
30146 \begin_layout Plain Layout
30147 The following section will only be displayed when the LaTeX-package
30159 \begin_layout Standard
30160 This restriction can be evaded by using the LaTeX-package
30165 \begin_inset Index idx
30168 \begin_layout Plain Layout
30169 LaTeX-packages ! marginnote
30175 By adding these two lines to your document preamble, the command used by
30176 LyX for margin notes is redefined to use the command provided by the
30183 \begin_layout Standard
30188 usepackage{marginnote}
30189 \begin_inset Newline newline
30201 \begin_layout Standard
30202 This is also used in this document because
30206 has another useful feature: You can set a vertical offset for the note.
30207 This is often needed when too many margin notes are too close together
30208 or for a better page layout.
30209 The offset is set in LyX as TeX-Code directly after the margin note in
30213 \begin_layout Standard
30219 \begin_layout Standard
30220 where the offset is a length with one of the units listed in Table
30221 \begin_inset space ~
30225 \begin_inset CommandInset ref
30227 reference "tab:Units"
30232 A negative value shifts the note up, a positive value shifts it down.
30236 For example the margin note beside this text line is shifted up 1.5
30237 \begin_inset space \thinspace{}
30240 cm with the TeX-Code-command
30241 \begin_inset Quotes eld
30251 \begin_inset Quotes erd
30255 \begin_inset Marginal
30258 \begin_layout Plain Layout
30259 This margin note is shifted up 1.5
30260 \begin_inset space \thinspace{}
30263 cm from its original position.
30275 \begin_layout Plain Layout
30285 \begin_layout Standard
30286 \begin_inset VSpace medskip
30293 you can also change the alignment of the text in the margin note.
30294 For example the commands
30297 \begin_layout Standard
30304 raggedleftmarginnote}{
30307 \begin_inset Newline newline
30314 raggedrightmarginnote}{
30319 \begin_layout Standard
30320 set the alignment to centered.
30325 raggedleftmarginnote
30327 denotes margin notes that appear at the left side.
30334 \begin_layout Plain Layout
30340 raggedleftmarginnote}{
30345 \begin_layout Plain Layout
30351 raggedrightmarginnote}{
30359 \begin_inset Marginal
30362 \begin_layout Plain Layout
30363 The text of this margin note is centered.
30374 \begin_layout Standard
30381 raggedleftmarginnote}{
30384 \begin_inset Newline newline
30391 raggedrightmarginnote}{
30400 \begin_layout Plain Layout
30406 raggedleftmarginnote}{
30411 \begin_layout Plain Layout
30417 raggedrightmarginnote}{
30427 \begin_layout Standard
30428 \begin_inset VSpace medskip
30431 For the other features of
30435 refer to its documentation
30436 \begin_inset CommandInset citation
30445 \begin_layout Standard
30446 \begin_inset VSpace bigskip
30449 You can adjust the layout of margin notes by changing its definition.
30450 To create for example a header for all margin notes with the underlined,
30451 sans-serif, and bold header text
30452 \begin_inset Quotes eld
30464 \begin_inset Quotes erd
30467 , add this to your document preamble:
30470 \begin_layout Standard
30480 \begin_inset Newline newline
30490 \begin_inset Newline newline
30494 \begin_inset Phantom HPhantom
30497 \begin_layout Plain Layout
30500 \begin_inset space ~
30516 underbar{Attention!}}}%
30517 \begin_inset Newline newline
30521 \begin_inset Phantom HPhantom
30524 \begin_layout Plain Layout
30527 \begin_inset space ~
30544 \begin_layout Standard
30551 \begin_layout Plain Layout
30562 \begin_layout Plain Layout
30573 \begin_layout Plain Layout
30581 underbar{Attention!}}}%
30584 \begin_layout Plain Layout
30598 \begin_inset Marginal
30601 \begin_layout Plain Layout
30602 This is a margin note with a defined heading.
30614 \begin_layout Plain Layout
30628 \begin_layout Plain Layout
30645 \begin_inset Note Note
30648 \begin_layout Plain Layout
30649 The margin note format is changed only for this example.
30657 \begin_layout Standard
30661 \begin_layout Plain Layout
30671 \begin_inset Note Note
30674 \begin_layout Plain Layout
30675 The following will be displayed when the LaTeX-package
30687 \begin_layout Standard
30688 You need to install the LaTeX-package
30692 to see the following part of this section in the output.
30695 \begin_layout Standard
30699 \begin_layout Plain Layout
30711 \begin_layout Chapter
30715 \begin_layout Section
30717 \begin_inset Index idx
30720 \begin_layout Plain Layout
30721 Boxes ! Introduction
30729 \begin_layout Standard
30730 Boxes are used to format a block of text.
30731 Boxes can be used to write documents with multiple languages, see section
30732 \begin_inset space ~
30736 \begin_inset CommandInset ref
30738 reference "sec:Minipages"
30742 , to frame texts, see section
30743 \begin_inset space ~
30747 \begin_inset CommandInset ref
30749 reference "sec:Decoration"
30753 , to prevent words from being hyphenated, see section
30754 \begin_inset space ~
30758 \begin_inset CommandInset ref
30760 reference "sec:Prevent-Hyphenation"
30764 , to align text, see section
30765 \begin_inset space ~
30769 \begin_inset CommandInset ref
30771 reference "sub:Vertical-Alignment"
30775 , or to set the background color of texts, see section
30776 \begin_inset space ~
30780 \begin_inset CommandInset ref
30782 reference "sec:Colored-Boxes"
30789 \begin_layout Standard
30790 Boxes can be inserted with the menu
30792 Insert\SpecialChar \menuseparator
30795 or the toolbar button
30800 arg "box-insert Frameless"
30806 A grey box with the label
30811 \begin_inset Graphics
30812 filename clipart/BoxInsetDefaultQt4.png
30814 scaleBeforeRotation
30819 The box type can be specified by right-clicking on the box and selecting
30825 The box dialog offers the
30828 \begin_inset space ~
30850 is the default for new boxes and is explained in section
30851 \begin_inset space ~
30855 \begin_inset CommandInset ref
30857 reference "sec:Minipages"
30865 is described in section
30866 \begin_inset space ~
30870 \begin_inset CommandInset ref
30872 reference "sec:Parboxes"
30881 \begin_inset CommandInset ref
30883 reference "sec:Prevent-Hyphenation"
30890 \begin_layout Standard
30891 Boxes are not numbered and can therefore not be referenced like floats or
30895 \begin_layout Standard
30896 \begin_inset Note Greyedout
30899 \begin_layout Plain Layout
30904 Boxes must not be the item in an
30920 \begin_layout Standard
30921 \begin_inset Note Greyedout
30924 \begin_layout Plain Layout
30929 For an unknown reason you can only set the
30932 \begin_inset space ~
30941 when you use a framed box.
30945 \begin_inset space ~
30950 type and without frames are explained in section
30951 \begin_inset space ~
30955 \begin_inset CommandInset ref
30957 reference "sec:Prevent-Hyphenation"
30969 \begin_layout Section
30971 \begin_inset CommandInset label
30973 name "sec:Box-Dialog"
30978 \begin_inset Index idx
30981 \begin_layout Plain Layout
30990 \begin_layout Subsection
30992 \begin_inset Index idx
30995 \begin_layout Plain Layout
31004 \begin_layout Standard
31005 In the box dialog you can adjust the box geometry in the fields
31014 The available units for the geometry are explained in Table
31015 \begin_inset space ~
31019 \begin_inset CommandInset ref
31021 reference "tab:Units"
31030 offers the following additional sizes:
31033 \begin_layout Description
31034 Depth This is the plain text
31035 \begin_inset Quotes eld
31039 \begin_inset Quotes erd
31043 It ignores the total depth when there are multiple text lines in the box:
31044 \begin_inset Newline newline
31048 \begin_inset Newline newline
31052 \begin_inset Newline newline
31056 \begin_inset Box Boxed
31066 height_special "depth"
31069 \begin_layout Plain Layout
31071 Box height set to 1
31072 \begin_inset space \thinspace{}
31081 \begin_inset Newline newline
31085 \begin_inset Newline newline
31091 \begin_layout Description
31092 Height This is the height of the text that is inside the box.
31094 \begin_inset space \thinspace{}
31098 \begin_inset space \space{}
31101 2 for this size will set the box height to 2
31102 \begin_inset space ~
31105 times the text height:
31106 \begin_inset Box Boxed
31116 height_special "height"
31119 \begin_layout Plain Layout
31121 Box height set to 2
31122 \begin_inset space \thinspace{}
31133 \begin_layout Description
31135 \begin_inset space ~
31138 Height This is the Height
31139 \begin_inset space \thinspace{}
31143 \begin_inset space \thinspace{}
31147 \begin_inset Box Boxed
31157 height_special "totalheight"
31160 \begin_layout Plain Layout
31162 Box height set to 1
31163 \begin_inset space \thinspace{}
31167 \begin_inset space ~
31178 \begin_layout Description
31179 Width This sets the width of the box as height:
31180 \begin_inset Box Boxed
31190 height_special "width"
31193 \begin_layout Plain Layout
31195 Box height set to 1
31196 \begin_inset space \thinspace{}
31207 \begin_layout Subsection
31209 \begin_inset Index idx
31212 \begin_layout Plain Layout
31221 \begin_layout Standard
31222 When you have chosen an
31225 \begin_inset space ~
31230 , the vertical box alignment can be:
31233 \begin_layout Description
31234 Top This is an example text line.
31236 \begin_inset Box Boxed
31246 height_special "totalheight"
31249 \begin_layout Plain Layout
31251 This box is top-aligned.
31256 This is an example text line.
31259 \begin_layout Description
31260 Middle This is an example text line.
31262 \begin_inset Box Boxed
31272 height_special "totalheight"
31275 \begin_layout Plain Layout
31277 This box is middle-aligned.
31282 This is an example text line.
31285 \begin_layout Description
31286 Bottom This is an example text line.
31288 \begin_inset Box Boxed
31298 height_special "totalheight"
31301 \begin_layout Plain Layout
31303 This box is bottom-aligned.
31308 This is an example text line.
31311 \begin_layout Standard
31312 \begin_inset Note Greyedout
31315 \begin_layout Plain Layout
31320 The vertical box alignment can be lost in the output when you have two
31321 boxes in a line and one has e.
31322 \begin_inset space \thinspace{}
31326 \begin_inset space \space{}
31329 a shadow and the other one not.
31337 \begin_layout Standard
31338 The horizontal box alignment can be set via LyX's paragraph dialog when
31339 you set the box into its own paragraph.
31342 \begin_layout Standard
31343 \begin_inset VSpace bigskip
31346 When you have chosen an
31349 \begin_inset space ~
31354 , the box content can be aligned vertically to:
31357 \begin_layout Description
31358 top This is an example text line.
31360 \begin_inset Box Boxed
31370 height_special "totalheight"
31373 \begin_layout Plain Layout
31375 This box text is top-aligned.
31380 This is an example text line.
31383 \begin_layout Description
31384 middle This is an example text line.
31386 \begin_inset Box Boxed
31396 height_special "totalheight"
31399 \begin_layout Plain Layout
31401 This box text is middle-aligned.
31406 This is an example text line.
31409 \begin_layout Description
31410 bottom This is an example text line.
31412 \begin_inset Box Boxed
31422 height_special "totalheight"
31425 \begin_layout Plain Layout
31427 This box text is bottom-aligned.
31432 This is an example text line.
31435 \begin_layout Description
31436 stretch This is an example text line.
31438 \begin_inset Box Boxed
31448 height_special "totalheight"
31451 \begin_layout Plain Layout
31456 \begin_layout Plain Layout
31461 \begin_layout Plain Layout
31468 This is an example text line.
31471 \begin_layout Standard
31472 To stretch the box content, it must consist of more than one paragraph.
31473 In the example above every text line is in an own paragraph.
31476 \begin_layout Standard
31477 \begin_inset VSpace bigskip
31480 To align the box content horizontally you can use LyX's paragraph dialog
31481 when you have chosen an
31484 \begin_inset space ~
31492 \begin_layout Standard
31494 \begin_inset Box Boxed
31504 height_special "totalheight"
31507 \begin_layout Plain Layout
31512 \begin_layout Plain Layout
31517 \begin_layout Plain Layout
31527 \begin_layout Standard
31528 If you have not set an
31531 \begin_inset space ~
31536 , you can align the box content horizontally in the box dialog.
31539 \begin_layout Standard
31541 \begin_inset Box Boxed
31551 height_special "totalheight"
31554 \begin_layout Plain Layout
31555 This box text is horizontally stretched.
31563 \begin_layout Subsection
31565 \begin_inset CommandInset label
31567 name "sec:Decoration"
31572 \begin_inset Index idx
31575 \begin_layout Plain Layout
31584 \begin_layout Standard
31585 The type of the box can be specified in the box dialog in the drop-down
31591 The following types are possible:
31594 \begin_layout Description
31596 \begin_inset space ~
31599 frame Nothing is drawn.
31602 \begin_layout Description
31604 \begin_inset space ~
31608 \begin_inset space ~
31611 frame This draws a rectangular frame around the box.
31612 The frame line thickness has the size of
31620 \begin_inset Box Boxed
31630 height_special "totalheight"
31633 \begin_layout Plain Layout
31643 \begin_layout Description
31645 \begin_inset space ~
31649 \begin_inset space ~
31652 thin This draws an oval frame around the box.
31653 The frame line thickness has the size 0.4
31654 \begin_inset space \thinspace{}
31659 \begin_inset Box ovalbox
31669 height_special "totalheight"
31672 \begin_layout Plain Layout
31682 \begin_layout Description
31684 \begin_inset space ~
31688 \begin_inset space ~
31691 thick This draws an oval frame around the box.
31692 The frame line thickness has the size 0.8
31693 \begin_inset space \thinspace{}
31698 \begin_inset Box Ovalbox
31708 height_special "totalheight"
31711 \begin_layout Plain Layout
31721 \begin_layout Description
31723 \begin_inset space ~
31726 shadow This draws a rectangular frame with a shadow around the box.
31727 The frame line thickness has the size of
31733 , the shadow has a width of 4
31734 \begin_inset space \thinspace{}
31739 \begin_inset Box Shadowbox
31749 height_special "totalheight"
31752 \begin_layout Plain Layout
31762 \begin_layout Description
31764 \begin_inset space ~
31767 background This draws a box with a red background.
31768 Unlike colored boxes
31772 \begin_layout Plain Layout
31774 \begin_inset space \thinspace{}
31778 \begin_inset CommandInset ref
31780 reference "sec:Colored-Boxes"
31789 , it always uses the whole column width and the box is set as its own paragraph.
31791 \begin_inset Box Shaded
31801 height_special "totalheight"
31804 \begin_layout Plain Layout
31805 Shaded background box
31813 \begin_layout Description
31815 \begin_inset space ~
31819 \begin_inset space ~
31822 frame This draws a double-line rectangular frame around the box.
31823 The line thickness of the inner frame is 0.75
31824 \begin_inset space \thinspace{}
31833 , the thickness of the outer frame is 1.5
31834 \begin_inset space \thinspace{}
31844 The distance between the lines is 1.5
31845 \begin_inset space \thinspace{}
31855 \begin_inset space \thinspace{}
31859 \begin_inset space \thinspace{}
31863 \begin_inset space \thinspace{}
31868 \begin_inset Box Doublebox
31878 height_special "totalheight"
31881 \begin_layout Plain Layout
31883 Double rectangular box
31891 \begin_layout Standard
31892 \begin_inset VSpace bigskip
31895 LyX's box label will reflect the different frame types.
31896 To be able to use all types, the LaTeX-package
31901 \begin_inset Index idx
31904 \begin_layout Plain Layout
31905 LaTeX-packages ! fancybox
31913 \begin_layout Standard
31914 \begin_inset VSpace bigskip
31917 When you use the decoration
31919 simple rectangular frame
31921 and no inner box, you can allow page breaks within a box.
31922 Note that then, unlike other framed boxes, the frame always uses the whole
31923 column width, the box is set as its own paragraph, and
31935 have no effect on this box type.
31936 The frame line thickness has the size of
31944 \begin_inset Box Framed
31954 height_special "totalheight"
31957 \begin_layout Plain Layout
31958 Allow page break box
31966 \begin_layout Section
31968 \begin_inset Index idx
31971 \begin_layout Plain Layout
31972 Boxes ! Customization
31980 \begin_layout Standard
31981 The default value for the size
31988 \begin_inset space \thinspace{}
31992 It can be changed with the following command in TeX-code to e.
31993 \begin_inset space \thinspace{}
31997 \begin_inset space \space{}
32001 \begin_inset space \thinspace{}
32007 \begin_layout Standard
32017 \begin_layout Standard
32021 \begin_layout Plain Layout
32033 \begin_inset Box Boxed
32043 height_special "totalheight"
32046 \begin_layout Plain Layout
32048 Rectangular box with
32055 \begin_inset space \thinspace{}
32059 \begin_inset space \thinspace{}
32063 \begin_inset space \thinspace{}
32075 \begin_layout Plain Layout
32089 \begin_layout Standard
32090 \begin_inset VSpace bigskip
32093 The space between the frame and the box content is for all frame styles
32095 \begin_inset space \thinspace{}
32099 You can change it by setting the length
32106 For example the command
32109 \begin_layout Standard
32119 \begin_layout Standard
32120 sets the value to 10
32121 \begin_inset space \thinspace{}
32124 pt, as with the following box:
32127 \begin_layout Standard
32131 \begin_layout Plain Layout
32143 \begin_inset Box Boxed
32153 height_special "totalheight"
32156 \begin_layout Plain Layout
32158 Rectangular box with
32165 \begin_inset space \thinspace{}
32169 \begin_inset space \thinspace{}
32173 \begin_inset space \thinspace{}
32185 \begin_layout Plain Layout
32199 \begin_layout Standard
32200 \begin_inset VSpace bigskip
32203 The diameter of the round corners of the oval boxes can be set with the
32214 \begin_layout Standard
32222 \begin_layout Standard
32223 sets the diameter to 1
32224 \begin_inset space \thinspace{}
32231 \begin_layout Standard
32239 \begin_layout Standard
32240 sets the diameter to
32243 \begin_inset space \thinspace{}
32247 \begin_inset space \thinspace{}
32250 minimum(width and height of box)
32262 \begin_layout Standard
32266 \begin_layout Plain Layout
32276 \begin_inset Box Ovalbox
32286 height_special "totalheight"
32289 \begin_layout Plain Layout
32298 \begin_inset space \thinspace{}
32302 \begin_inset space \thinspace{}
32306 \begin_inset space \thinspace{}
32318 \begin_layout Plain Layout
32330 \begin_layout Standard
32331 \begin_inset VSpace bigskip
32334 The size of the shadow can be adjusted by changing the length
32342 \begin_inset space \thinspace{}
32345 pt for the following box by this command:
32348 \begin_layout Standard
32358 \begin_layout Standard
32362 \begin_layout Plain Layout
32374 \begin_inset Box Shadowbox
32384 height_special "totalheight"
32387 \begin_layout Plain Layout
32396 \begin_inset space \thinspace{}
32400 \begin_inset space \thinspace{}
32404 \begin_inset space \thinspace{}
32416 \begin_layout Plain Layout
32430 \begin_layout Standard
32431 \begin_inset VSpace bigskip
32437 \begin_layout Standard
32438 The default value for the size
32445 \begin_inset space \thinspace{}
32449 The default space between the note content and the frame is 9
32450 \begin_inset space \thinspace{}
32453 pt and can be changed with the value of
32460 For example the frame appearance of the following
32464 is set with the TeX-Code commands
32467 \begin_layout Standard
32475 \begin_inset Newline newline
32485 \begin_layout Standard
32489 \begin_layout Plain Layout
32498 \begin_layout Plain Layout
32510 \begin_inset Box Framed
32520 height_special "totalheight"
32523 \begin_layout Plain Layout
32537 \begin_layout Plain Layout
32546 \begin_layout Plain Layout
32560 \begin_layout Standard
32561 \begin_inset VSpace bigskip
32567 \begin_layout Standard
32572 boxes the default space between the box content and the box border is 3
32573 \begin_inset space \thinspace{}
32576 pt and can be changed with the value of
32583 The default background color red can either be changed locally with the
32588 definecolor{shadecolor}
32590 or globally with the menu
32592 Tools\SpecialChar \menuseparator
32593 Preferences\SpecialChar \menuseparator
32594 Colors\SpecialChar \menuseparator
32596 \begin_inset space ~
32608 command is explained in section
32609 \begin_inset space ~
32613 \begin_inset CommandInset ref
32615 reference "sec:Colored-Tables"
32623 \begin_layout Plain Layout
32630 requires the LaTeX-package
32634 in the preamble, see section
32635 \begin_inset space ~
32639 \begin_inset CommandInset ref
32641 reference "sec:Colored-Boxes"
32650 For example the appearance of the following shaded background box is set
32651 with the TeX-Code commands
32654 \begin_layout Standard
32664 \begin_inset Newline newline
32671 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
32674 \begin_layout Standard
32678 \begin_layout Plain Layout
32687 \begin_layout Plain Layout
32691 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
32697 \begin_inset Box Shaded
32707 height_special "totalheight"
32710 \begin_layout Plain Layout
32713 This is yellow text in a
32723 box with dark green background.
32732 \begin_layout Plain Layout
32741 \begin_layout Plain Layout
32745 definecolor{shadecolor}{rgb}{1,0,0}
32753 \begin_layout Standard
32754 \begin_inset VSpace bigskip
32757 Changed lengths and widths are valid for all boxes following the commands
32761 \begin_layout Section
32763 \begin_inset CommandInset label
32765 name "sec:Minipages"
32770 \begin_inset Index idx
32773 \begin_layout Plain Layout
32782 \begin_layout Standard
32783 Minipages are treated by LaTeX as pages within pages and can therefore for
32784 example have their own footnotes.
32787 \begin_layout Standard
32788 Minipages are useful when you write documents with different languages.
32791 \begin_layout Standard
32792 Below are two example minipages side by side.
32793 Their width is set to 45
32794 \begin_inset space \thinspace{}
32797 col% and they are separated by a horizontal fill, that was inserted via
32800 Insert\SpecialChar \menuseparator
32802 \begin_inset space ~
32805 Formatting\SpecialChar \menuseparator
32807 \begin_inset space ~
32813 \begin_inset Newpage newpage
32819 \begin_layout Standard
32820 \begin_inset Box Frameless
32830 height_special "totalheight"
32833 \begin_layout Plain Layout
32836 Dies ist ein deutscher Text.
32837 Dies ist ein deutscher Text.
32838 Dies ist ein deutscher Text.
32839 Dies ist ein deutscher Text.
32840 Dies ist ein deutscher Text.
32841 Dies ist ein deutscher Text.
32842 Dies ist ein deutscher Text.
32843 Dies ist ein deutscher Text.
32844 Dies ist ein deutscher Text.
32845 Dies ist ein deutscher Text.
32846 Dies ist ein deutscher Text.
32847 Dies ist ein deutscher Text.
32848 Dies ist ein deutscher Text
32852 \begin_layout Plain Layout
32855 Dies ist eine deutsche Fußnote.
32861 Dies ist ein deutscher Text.
32862 Dies ist ein deutscher Text.
32868 \begin_inset space \hfill{}
32872 \begin_inset Box Frameless
32882 height_special "totalheight"
32885 \begin_layout Plain Layout
32886 This is an English Text.
32887 This is an English Text.
32888 This is an English Text.
32889 This is an English Text.
32890 This is an English Text.
32891 This is an English Text.
32892 This is an English Text.
32893 This is an English Text.
32894 This is an English Text.
32895 This is an English Text.
32896 This is an English Text.
32897 This is an English Text.
32898 This is an English Text.
32899 This is an English Text.
32900 This is an English Text.
32901 This is an English Text.
32905 \begin_layout Plain Layout
32906 This is an English footnote.
32911 This is an English Text.
32919 \begin_layout Standard
32920 \begin_inset VSpace bigskip
32923 The document-wide paragraph settings are ignored within minipages.
32924 That means that there will be no space between paragraphs in minipages
32925 although you set it to e.
32926 \begin_inset space \thinspace{}
32930 \begin_inset space \space{}
32937 in the document settings.
32940 \begin_layout Standard
32941 Minipages can also be used to set a background color for text parts, see
32943 \begin_inset space ~
32947 \begin_inset CommandInset ref
32949 reference "sub:Color-for-Paragraphs"
32956 \begin_layout Standard
32957 \begin_inset Note Greyedout
32960 \begin_layout Plain Layout
32965 You cannot have floats or margin notes inside minipages but minipages can
32966 be used inside tables, floats, and other boxes.
32974 \begin_layout Section
32976 \begin_inset CommandInset label
32978 name "sec:Parboxes"
32983 \begin_inset Index idx
32986 \begin_layout Plain Layout
32995 \begin_layout Standard
32996 Parboxes are very similar to minipages with the difference that they cannot
33000 \begin_layout Standard
33002 \begin_inset Box Frameless
33012 height_special "totalheight"
33015 \begin_layout Plain Layout
33016 This a text within a parbox.
33017 This a text within a parbox.
33020 \begin_layout Plain Layout
33021 This footnote won't appear:
33025 \begin_layout Plain Layout
33026 This footnote is inside a parbox and will therefore not appear.
33039 \begin_layout Section
33040 Boxes for Words and Characters
33041 \begin_inset Index idx
33044 \begin_layout Plain Layout
33045 Boxes ! for Characters
33053 \begin_layout Subsection
33054 Prevent Hyphenation
33055 \begin_inset CommandInset label
33057 name "sec:Prevent-Hyphenation"
33062 \begin_inset Index idx
33065 \begin_layout Plain Layout
33066 Boxes ! to Prevent Hyphenation
33074 \begin_layout Standard
33075 You can use the box type
33079 to prevent words or text from being hyphenated.
33080 \begin_inset Newline newline
33083 Here is an example text:
33086 \begin_layout Standard
33087 This line is an example to show how you can prevent the hyphenation of
33088 \begin_inset Quotes eld
33092 \begin_inset Quotes erd
33098 \begin_layout Standard
33099 To prevent the hyphenation of the word
33100 \begin_inset Quotes eld
33104 \begin_inset Quotes erd
33107 , put the word into a box, set the
33110 \begin_inset space ~
33120 \begin_inset space \thinspace{}
33126 \begin_layout Standard
33127 This is the result:
33130 \begin_layout Standard
33131 This line is an example to show how you can prevent the hyphenation of
33132 \begin_inset Box Frameless
33142 height_special "totalheight"
33145 \begin_layout Plain Layout
33146 \begin_inset Quotes eld
33150 \begin_inset Quotes erd
33161 \begin_layout Standard
33162 You can alternatively set the command
33163 \begin_inset Quotes eld
33173 \begin_inset Quotes grd
33176 as TeX-Code directly before the word:
33179 \begin_layout Standard
33180 This line is an example to show how you can prevent the hyphenation of
33181 \begin_inset Quotes eld
33188 \begin_layout Plain Layout
33198 \begin_inset Quotes erd
33204 \begin_layout Standard
33205 Of course the word now protrudes over the side margin.
33206 To avoid this, add via the menu
33208 Insert\SpecialChar \menuseparator
33209 Formatting\SpecialChar \menuseparator
33211 \begin_inset space ~
33215 \begin_inset space ~
33223 arg "newline-insert newline"
33226 ) a line break before the word:
33229 \begin_layout Standard
33230 This line is an example to show how you can prevent the hyphenation of
33231 \begin_inset Newline newline
33235 \begin_inset Box Frameless
33245 height_special "totalheight"
33248 \begin_layout Plain Layout
33249 \begin_inset Quotes eld
33253 \begin_inset Quotes erd
33264 \begin_layout Subsection
33266 \begin_inset CommandInset label
33268 name "sub:Vertical-Alignment"
33273 \begin_inset Index idx
33276 \begin_layout Plain Layout
33277 Boxes ! for Vertical Alignment
33283 \begin_inset Index idx
33286 \begin_layout Plain Layout
33295 \begin_layout Standard
33296 With the help of the command
33302 you can align words, characters or other boxes vertically relative to the
33310 is used with the following scheme:
33313 \begin_layout Standard
33318 raisebox{lift}[height][depth]{box content}
33321 \begin_layout Standard
33322 The lift can be a positive value to raise the box or a negative value to
33326 \begin_layout Standard
33327 To align for example the word
33328 \begin_inset Quotes eld
33332 \begin_inset Quotes erd
33335 so that the bottom of the
33336 \begin_inset Quotes eld
33340 \begin_inset Quotes erd
33344 \begin_inset Quotes eld
33348 \begin_inset Quotes erd
33351 is at the baseline, insert the command
33354 \begin_layout Standard
33364 \begin_layout Standard
33365 in TeX-Code before the word.
33366 After the word insert a closing brace
33367 \begin_inset Quotes eld
33375 \begin_inset Quotes erd
33379 \begin_inset Newline newline
33382 This is the result:
33385 \begin_layout Standard
33386 This is a text line with the word
33390 \begin_layout Plain Layout
33402 \begin_inset Quotes eld
33406 \begin_inset Quotes erd
33413 \begin_layout Plain Layout
33423 \begin_layout Standard
33424 \begin_inset VSpace bigskip
33427 When you raise or lower characters in a line, the line distance will be
33431 \begin_layout Standard
33432 This is a text line with the word
33436 \begin_layout Plain Layout
33448 \begin_inset Quotes eld
33452 \begin_inset Quotes erd
33459 \begin_layout Plain Layout
33467 \begin_inset Newline newline
33470 This is a text line with the word
33474 \begin_layout Plain Layout
33484 \begin_inset Quotes eld
33488 \begin_inset Quotes erd
33495 \begin_layout Plain Layout
33505 \begin_layout Standard
33506 If you want to prevent this for a certain reason, set the box height to
33511 \begin_layout Standard
33521 \begin_layout Standard
33522 This is a text line with the word
33526 \begin_layout Plain Layout
33538 \begin_inset Quotes eld
33542 \begin_inset Quotes erd
33549 \begin_layout Plain Layout
33557 \begin_inset Newline newline
33560 This is a text line with the word
33564 \begin_layout Plain Layout
33568 raisebox{0.5cm}[0pt]{
33574 \begin_inset Quotes eld
33578 \begin_inset Quotes erd
33585 \begin_layout Plain Layout
33595 \begin_layout Section
33597 \begin_inset CommandInset label
33599 name "sec:Colored-Boxes"
33604 \begin_inset Index idx
33607 \begin_layout Plain Layout
33616 \begin_layout Subsection
33618 \begin_inset Index idx
33621 \begin_layout Plain Layout
33630 \begin_layout Standard
33631 To color the background of text the text must be put into a so called
33632 \begin_inset Quotes eld
33636 \begin_inset Quotes erd
33640 This requires that the LaTeX-package
33645 \begin_inset Index idx
33648 \begin_layout Plain Layout
33649 LaTeX-packages ! color
33654 is loaded in the document preamble with the command
33657 \begin_layout Standard
33662 @ifundefined{textcolor}
33663 \begin_inset Newline newline
33667 \begin_inset Phantom HPhantom
33670 \begin_layout Plain Layout
33673 \begin_inset space ~
33683 usepackage{color}}{}
33686 \begin_layout Standard
33691 will be loaded automatically by LyX when you color text.
33695 \begin_layout Plain Layout
33696 To avoid it being loaded twice the command
33710 \begin_layout Standard
33711 \begin_inset VSpace medskip
33714 Colorboxes are created with the command
33721 This will be used with the following scheme:
33724 \begin_layout Standard
33729 colorbox{color}{box content}
33732 \begin_layout Standard
33733 The box content can also be a box and colorboxes can also be within other
33737 \begin_layout Standard
33738 The following colors are predefined:
33739 \begin_inset Newline newline
33778 \begin_inset Newline newline
33781 You can also define your own color as described in section
33782 \begin_inset space ~
33786 \begin_inset CommandInset ref
33788 reference "sec:Colored-Tables"
33795 \begin_layout Standard
33797 \begin_inset space \thinspace{}
33801 \begin_inset space \space{}
33804 a red background for a word, insert the command
33807 \begin_layout Standard
33815 \begin_layout Standard
33816 before the word in TeX-Code.
33817 After the word insert a closing brace
33818 \begin_inset Quotes eld
33826 \begin_inset Quotes erd
33830 \begin_inset Newline newline
33833 This is the result:
33836 \begin_layout Standard
33837 This is a line where the word
33841 \begin_layout Plain Layout
33851 \begin_inset Quotes eld
33855 \begin_inset Quotes erd
33862 \begin_layout Plain Layout
33869 has a red background.
33872 \begin_layout Standard
33873 \begin_inset VSpace bigskip
33876 If you would like the box frame in a different color, you can use the command
33883 with the following scheme:
33886 \begin_layout Standard
33891 fcolorbox{frame color}{box color}{box content}
33894 \begin_layout Standard
33908 The frame thickness and the space between the frame and the box content
33909 can be adjusted with the lengths
33921 , respectively, as described in section
33922 \begin_inset space ~
33926 \begin_inset CommandInset ref
33928 reference "sec:Decoration"
33935 \begin_layout Standard
33936 For the following example the command
33939 \begin_layout Standard
33944 fcolorbox{cyan}{magenta}{
33947 \begin_layout Standard
33951 \begin_layout Standard
33952 Here is an example where the frame line thickness was set to 1
33953 \begin_inset space \thinspace{}
33957 \begin_inset Newline newline
33964 \begin_layout Plain Layout
33979 \begin_layout Plain Layout
33983 fcolorbox{cyan}{magenta}{
33988 This is text within a colored, framed box.
33992 \begin_layout Plain Layout
34002 \begin_layout Standard
34003 \begin_inset VSpace bigskip
34006 Of course you can also have colored text inside a colorbox:
34007 \begin_inset Newline newline
34014 \begin_layout Plain Layout
34018 fcolorbox{cyan}{magenta}{
34025 This is colored text within a colored, framed box.
34031 \begin_layout Plain Layout
34042 \begin_layout Plain Layout
34056 \begin_layout Standard
34057 \begin_inset VSpace medskip
34063 \begin_layout Standard
34064 \begin_inset Note Greyedout
34067 \begin_layout Plain Layout
34072 Text in colorboxes cannot have line breaks.
34073 To color multiple text lines or paragraphs, use a box inside a colorbox
34074 as described in the following.
34082 \begin_layout Subsection
34083 Color for Paragraphs
34084 \begin_inset CommandInset label
34086 name "sub:Color-for-Paragraphs"
34091 \begin_inset Index idx
34094 \begin_layout Plain Layout
34095 Color ! for Paragraphs
34103 \begin_layout Standard
34104 To set the background color for more than one text line, put the text into
34106 Before the minipage insert the
34115 \begin_layout Standard
34123 \begin_layout Standard
34125 After the minipage insert a closing brace
34126 \begin_inset Quotes eld
34134 \begin_inset Quotes erd
34140 \begin_layout Standard
34144 \begin_layout Plain Layout
34148 colorbox{lightgrey}{
34154 \begin_inset Box Frameless
34164 height_special "totalheight"
34167 \begin_layout Plain Layout
34168 This is text with background color.
34169 This is text with background color.
34172 \begin_layout Plain Layout
34173 \begin_inset VSpace defskip
34176 The text can have footnotes
34180 \begin_layout Plain Layout
34181 Another example footnote
34186 and can include tables and figures.
34189 \begin_layout Plain Layout
34191 \begin_inset Tabular
34192 <lyxtabular version="3" rows="3" columns="3">
34193 <features tabularvalignment="middle">
34194 <column alignment="center" valignment="top" width="0">
34195 <column alignment="center" valignment="top" width="0">
34196 <column alignment="center" valignment="top" width="0">
34198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34201 \begin_layout Plain Layout
34207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34210 \begin_layout Plain Layout
34216 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34219 \begin_layout Plain Layout
34227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34230 \begin_layout Plain Layout
34236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34239 \begin_layout Plain Layout
34241 \begin_inset Quotes erd
34249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34252 \begin_layout Plain Layout
34260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34263 \begin_layout Plain Layout
34269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34272 \begin_layout Plain Layout
34278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34281 \begin_layout Plain Layout
34301 \begin_layout Plain Layout
34311 \begin_layout Section
34312 Rotated and Scaled Boxes
34315 \begin_layout Standard
34316 To use the commands described in this section, the LaTeX-package
34321 \begin_inset Index idx
34324 \begin_layout Plain Layout
34325 LaTeX-packages ! graphicx
34330 needs to be loaded in the document preamble with the command
34333 \begin_layout Standard
34338 @ifundefined{rotatebox}
34339 \begin_inset Newline newline
34343 \begin_inset Phantom HPhantom
34346 \begin_layout Plain Layout
34349 \begin_inset space ~
34359 usepackage{graphicx}}{}
34362 \begin_layout Standard
34363 \begin_inset Note Greyedout
34366 \begin_layout Plain Layout
34371 Some DVI-viewers can't display rotated or scaled material.
34379 \begin_layout Standard
34380 \begin_inset Note Greyedout
34383 \begin_layout Plain Layout
34388 Floats mustn't be inside a rotated or scaled box.
34396 \begin_layout Subsection
34398 \begin_inset Index idx
34401 \begin_layout Plain Layout
34408 \begin_inset Index idx
34411 \begin_layout Plain Layout
34418 \begin_inset Index idx
34421 \begin_layout Plain Layout
34428 \begin_inset Index idx
34431 \begin_layout Plain Layout
34432 Table Customization ! Rotating
34440 \begin_layout Standard
34441 To rotate material, you can put it into a rotated box.
34442 Such a box is created using the command
34448 in TeX-Code with the following scheme:
34451 \begin_layout Standard
34456 rotatebox[rotation origin]{rotation angle}{box content}
34459 \begin_layout Standard
34460 The rotation origin is specified in the form
34465 The following positions are possible:
34485 (top), along with meaningful combinations of the four base positions.
34490 means that the rotation origin is at the top left corner of the box.
34491 When no rotation origin is specified, the position
34496 The rotation angle is a number that can be negative that specifies the
34498 The rotation direction is counterclockwise.
34501 \begin_layout Standard
34502 In the following example the command
34506 rotatebox[origin=c]{60}{
34508 was inserted as TeX-Code before the text
34509 \begin_inset Quotes eld
34513 \begin_inset Quotes erd
34516 ; after the text the box was closed by a closing brace
34523 \begin_layout Standard
34528 \begin_layout Plain Layout
34532 rotatebox[origin=c]{60}{
34541 \begin_layout Plain Layout
34551 \begin_layout Standard
34552 The box content can also be another box or an inline formula:
34555 \begin_layout Standard
34560 \begin_layout Plain Layout
34564 rotatebox[origin=r]{-60}{
34570 \begin_inset Box Doublebox
34580 height_special "totalheight"
34583 \begin_layout Plain Layout
34593 \begin_layout Plain Layout
34604 \begin_layout Plain Layout
34608 rotatebox[origin=lb]{60}{
34614 \begin_inset Formula $\int A\,\mathrm{d}x=B$
34621 \begin_layout Plain Layout
34631 \begin_layout Standard
34632 or an image or table:
34635 \begin_layout Standard
34640 \begin_layout Plain Layout
34644 rotatebox[origin=lb]{90}{
34650 \begin_inset Graphics
34651 filename clipart/platypus.eps
34661 \begin_layout Plain Layout
34668 with a rotated image
34672 \begin_layout Plain Layout
34676 rotatebox[origin=l]{-90}{
34682 \begin_inset Tabular
34683 <lyxtabular version="3" rows="2" columns="2">
34684 <features tabularvalignment="middle">
34685 <column alignment="center" valignment="top" width="0">
34686 <column alignment="center" valignment="top" width="0">
34688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34691 \begin_layout Plain Layout
34697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34700 \begin_layout Plain Layout
34708 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34711 \begin_layout Plain Layout
34717 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34720 \begin_layout Plain Layout
34735 \begin_layout Plain Layout
34745 \begin_layout Subsection
34747 \begin_inset Index idx
34750 \begin_layout Plain Layout
34757 \begin_inset Index idx
34760 \begin_layout Plain Layout
34767 \begin_inset Index idx
34770 \begin_layout Plain Layout
34777 \begin_inset Index idx
34780 \begin_layout Plain Layout
34781 Table Customization ! Scaling
34789 \begin_layout Standard
34790 To scale material the commands
34802 can be used as TeX-Code.
34805 \begin_layout Standard
34812 is used with the following scheme:
34815 \begin_layout Standard
34820 scalebox{horizontal}[vertical]{box content}
34823 \begin_layout Standard
34824 Horizontal and vertical are the corresponding scaling factors.
34825 If no vertical scaling factor is given, the horizontal factor will also
34826 be used as the vertical one.
34829 \begin_layout Standard
34836 creates for example a double size
34840 \begin_layout Plain Layout
34853 \begin_layout Plain Layout
34860 , compared with the document text size.
34863 \begin_layout Standard
34868 scalebox{2}[1]{Hello}
34870 on the other hand distorts the
34874 \begin_layout Plain Layout
34887 \begin_layout Plain Layout
34897 \begin_layout Standard
34898 If the scaling factor is negative, the box content will be mirrored.
34899 Therefore the command
34903 scalebox{-1}[1]{Hello}
34905 can be used to create mirror writing:
34909 \begin_layout Plain Layout
34922 \begin_layout Plain Layout
34932 \begin_layout Standard
34937 scalebox{1}[-1]{Hello}
34943 \begin_layout Plain Layout
34956 \begin_layout Plain Layout
34966 \begin_layout Standard
34971 scalebox{-1}[1]{box content}
34973 there exists the command
34974 \begin_inset Newline newline
34981 reflectbox{box content}
34986 \begin_layout Standard
34987 \begin_inset VSpace bigskip
34996 is used to scale the box to a defined width and height.
34997 The command scheme is:
35000 \begin_layout Standard
35005 resizebox{width}{height}{box content}
35008 \begin_layout Standard
35009 If one of the two command arguments given is an exclamation mark
35013 , the size is set so that the aspect ratio of the box content is kept.
35016 \begin_layout Standard
35021 resizebox{2cm}{1cm}{Hello}
35027 \begin_layout Plain Layout
35031 resizebox{2cm}{1cm}{
35040 \begin_layout Plain Layout
35048 \begin_inset Newline newline
35055 resizebox{2cm}{!}{Hello}
35061 \begin_layout Plain Layout
35074 \begin_layout Plain Layout
35084 \begin_layout Standard
35085 \begin_inset VSpace bigskip
35089 \begin_inset Note Greyedout
35092 \begin_layout Plain Layout
35109 are set to zero, no LaTeX-errors occur when exporting the document but
35110 the exported files can not or only partly be displayed.
35118 \begin_layout Standard
35119 \begin_inset VSpace bigskip
35125 \begin_layout Standard
35126 The boxes can be combined in any order.
35128 \begin_inset space \thinspace{}
35132 \begin_inset space \space{}
35136 \begin_inset Newline newline
35143 rotatebox[origin=c]{-45}{
35147 reflectbox{Hello}}}
35148 \begin_inset Newline newline
35156 \begin_layout Standard
35161 \begin_layout Plain Layout
35165 rotatebox[origin=c]{-45}{
35178 \begin_layout Plain Layout
35188 \begin_layout Standard
35190 Images, tables, and inline formulas are allowed as box content:
35193 \begin_layout Standard
35198 \begin_layout Plain Layout
35202 rotatebox[origin=c]{-30}{
35212 \begin_inset Graphics
35213 filename clipart/platypus.eps
35223 \begin_layout Plain Layout
35234 \begin_layout Plain Layout
35238 rotatebox[origin=c]{-45}{
35248 \begin_inset Tabular
35249 <lyxtabular version="3" rows="2" columns="2">
35250 <features tabularvalignment="middle">
35251 <column alignment="center" valignment="top" width="0">
35252 <column alignment="center" valignment="top" width="0">
35254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35257 \begin_layout Plain Layout
35263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35266 \begin_layout Plain Layout
35274 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35277 \begin_layout Plain Layout
35283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35286 \begin_layout Plain Layout
35301 \begin_layout Plain Layout
35312 \begin_layout Plain Layout
35316 rotatebox[origin=c]{-45}{
35326 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35333 \begin_layout Plain Layout
35343 \begin_layout Standard
35344 When the global formula style
35348 is used in the document
35352 \begin_layout Plain Layout
35354 \begin_inset Quotes eld
35358 \begin_inset Quotes erd
35361 is added to the document class options.
35366 , display style formulas can also be scaled.
35369 \begin_layout Chapter
35370 Objects Surrounded by Text
35371 \begin_inset Index idx
35374 \begin_layout Plain Layout
35383 \begin_layout Section
35385 \begin_inset CommandInset label
35387 name "sec:Wrap-Floats"
35392 \begin_inset Index idx
35395 \begin_layout Plain Layout
35396 Floats ! Wrap Floats
35402 \begin_inset Index idx
35405 \begin_layout Plain Layout
35406 Surrounded by text ! Wrap Floats
35414 \begin_layout Standard
35415 \begin_inset Wrap figure
35422 \begin_layout Plain Layout
35423 \begin_inset Graphics
35424 filename clipart/mobius.eps
35426 scaleBeforeRotation
35427 rotateOrigin center
35434 \begin_layout Plain Layout
35435 \begin_inset Caption
35437 \begin_layout Plain Layout
35438 \begin_inset CommandInset label
35440 name "fig:This-is-a"
35444 This is a figure wrap float.
35454 This float type is used if you want to wrap text around a figure or table
35455 so that it only occupies some fraction of the column width.
35456 It can be inserted using the menu
35458 Insert\SpecialChar \menuseparator
35459 Floats\SpecialChar \menuseparator
35461 \begin_inset space ~
35465 \begin_inset space ~
35473 \begin_inset space ~
35477 \begin_inset space ~
35482 if the LaTeX-package
35487 \begin_inset Index idx
35490 \begin_layout Plain Layout
35491 LaTeX-packages ! wrapfig
35495 \begin_layout Plain Layout
35513 \begin_layout Plain Layout
35514 Installing a LaTeX-package is explained it in the
35517 \begin_inset space ~
35527 The settings of the float can be modified by right-clicking on the float
35529 The mandatory settings are the float
35542 that specifies how much the float is set into the paragraph
35543 \begin_inset space \thinspace{}
35547 \begin_inset space \thinspace{}
35550 page margin, and the
35553 \begin_inset space ~
35558 that specifies how many text lines the float will approximately need.
35559 The line span is often hard to approximate; so it is better only to use
35560 it when you encounter float placement problems.
35561 You can furthermore decide if LaTeX is allowed to let the float float within
35562 the paragraph or to surrounding paragraphs.
35564 \begin_inset space ~
35568 \begin_inset CommandInset ref
35570 reference "fig:This-is-a"
35574 is an example text wrap float with a width of 40
35575 \begin_inset space \thinspace{}
35579 \begin_inset space \thinspace{}
35582 cm overhang, set to the left.
35585 \begin_layout Standard
35586 \begin_inset Note Greyedout
35589 \begin_layout Plain Layout
35595 \begin_inset space ~
35598 wrap float floats are fragile! E.
35599 \begin_inset space \thinspace{}
35603 \begin_inset space \space{}
35606 having a figure too close to the bottom of the page can mess things up in
35607 such a way that the float does not appear in the output or that it is placed
35608 over some other text.
35616 \begin_layout Standard
35617 In general, the following applies for wrap floats:
35620 \begin_layout Itemize
35621 They should not be placed in paragraphs that run over a page break.
35622 That means that wrap floats are better inserted in their exact place when
35623 the document is almost finished and you are able to estimate where page
35624 breaks will appear.
35627 \begin_layout Itemize
35628 They should either be placed in their own paragraph before the paragraph
35629 where they should wrap into or within a paragraph.
35632 \begin_layout Itemize
35633 In consecutive paragraphs they may cause troubles, so ensure that there
35634 is a text paragraph between them as separator.
35637 \begin_layout Itemize
35638 They are not allowed in section headings or tables.
35641 \begin_layout Itemize
35642 Their numbering and referencing works as described in chap.
35643 \begin_inset space \thinspace{}
35647 \begin_inset CommandInset ref
35649 reference "chap:Floats"
35656 \begin_layout Section
35657 Surrounded Fixed Objects
35658 \begin_inset Index idx
35661 \begin_layout Plain Layout
35662 Surrounded by text ! Fixed objects
35670 \begin_layout Standard
35671 The wrap floats described in sec.
35672 \begin_inset space \thinspace{}
35676 \begin_inset CommandInset ref
35678 reference "sec:Wrap-Floats"
35682 have these positions in the paragraph:
35685 \begin_layout Standard
35688 \begin_inset Tabular
35689 <lyxtabular version="3" rows="2" columns="2">
35690 <features tabularvalignment="middle">
35691 <column alignment="center" valignment="top" width="0">
35692 <column alignment="center" valignment="top" width="0">
35694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35697 \begin_layout Plain Layout
35698 \begin_inset Graphics
35699 filename ../images/dialog-show-new-inset_graphics.png
35701 scaleBeforeRotation
35710 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35713 \begin_layout Plain Layout
35721 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35724 \begin_layout Plain Layout
35730 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35733 \begin_layout Plain Layout
35745 \begin_inset Tabular
35746 <lyxtabular version="3" rows="2" columns="2">
35747 <features tabularvalignment="middle">
35748 <column alignment="center" valignment="top" width="0">
35749 <column alignment="center" valignment="top" width="0">
35751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35754 \begin_layout Plain Layout
35760 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35763 \begin_layout Plain Layout
35764 \begin_inset Graphics
35765 filename ../images/dialog-show-new-inset_graphics.png
35767 scaleBeforeRotation
35778 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35781 \begin_layout Plain Layout
35787 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35790 \begin_layout Plain Layout
35804 \begin_layout Standard
35805 To get an object exactly at the position where it is inserted, for example
35806 to get one of these positions:
35807 \begin_inset VSpace defskip
35813 \begin_layout Standard
35816 \begin_inset Tabular
35817 <lyxtabular version="3" rows="2" columns="2">
35818 <features tabularvalignment="middle">
35819 <column alignment="center" valignment="top" width="0">
35820 <column alignment="center" valignment="top" width="0">
35822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35825 \begin_layout Plain Layout
35831 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35834 \begin_layout Plain Layout
35842 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35845 \begin_layout Plain Layout
35846 \begin_inset Graphics
35847 filename ../images/dialog-show-new-inset_graphics.png
35849 scaleBeforeRotation
35858 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35861 \begin_layout Plain Layout
35873 \begin_inset Tabular
35874 <lyxtabular version="3" rows="2" columns="2">
35875 <features tabularvalignment="middle">
35876 <column alignment="center" valignment="top" width="0">
35877 <column alignment="center" valignment="top" width="0">
35879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35882 \begin_layout Plain Layout
35888 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35891 \begin_layout Plain Layout
35899 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35902 \begin_layout Plain Layout
35908 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35911 \begin_layout Plain Layout
35912 \begin_inset Graphics
35913 filename ../images/dialog-show-new-inset_graphics.png
35915 scaleBeforeRotation
35930 \begin_inset Tabular
35931 <lyxtabular version="3" rows="2" columns="3">
35932 <features tabularvalignment="middle">
35933 <column alignment="center" valignment="top" width="0">
35934 <column alignment="center" valignment="top" width="0">
35935 <column alignment="center" valignment="top" width="0">
35937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35940 \begin_layout Plain Layout
35946 <cell alignment="center" valignment="top" topline="true" usebox="none">
35949 \begin_layout Plain Layout
35950 \begin_inset Graphics
35951 filename ../images/dialog-show-new-inset_graphics.png
35953 scaleBeforeRotation
35962 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35965 \begin_layout Plain Layout
35973 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35976 \begin_layout Plain Layout
35982 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
35985 \begin_layout Plain Layout
35991 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35994 \begin_layout Plain Layout
36006 \begin_inset Tabular
36007 <lyxtabular version="3" rows="2" columns="3">
36008 <features tabularvalignment="middle">
36009 <column alignment="center" valignment="top" width="0">
36010 <column alignment="center" valignment="top" width="0">
36011 <column alignment="center" valignment="top" width="0">
36013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36016 \begin_layout Plain Layout
36022 <cell alignment="center" valignment="top" topline="true" usebox="none">
36025 \begin_layout Plain Layout
36031 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36034 \begin_layout Plain Layout
36042 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36045 \begin_layout Plain Layout
36051 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36054 \begin_layout Plain Layout
36055 \begin_inset Graphics
36056 filename ../images/dialog-show-new-inset_graphics.png
36058 scaleBeforeRotation
36067 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36070 \begin_layout Plain Layout
36084 \begin_layout Standard
36087 \begin_inset Tabular
36088 <lyxtabular version="3" rows="3" columns="2">
36089 <features tabularvalignment="middle">
36090 <column alignment="center" valignment="top" width="0">
36091 <column alignment="center" valignment="top" width="0">
36093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36096 \begin_layout Plain Layout
36102 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36105 \begin_layout Plain Layout
36113 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36116 \begin_layout Plain Layout
36117 \begin_inset Graphics
36118 filename ../images/dialog-show-new-inset_graphics.png
36120 scaleBeforeRotation
36129 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36132 \begin_layout Plain Layout
36140 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36143 \begin_layout Plain Layout
36149 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36152 \begin_layout Plain Layout
36164 \begin_inset Tabular
36165 <lyxtabular version="3" rows="3" columns="3">
36166 <features tabularvalignment="middle">
36167 <column alignment="center" valignment="top" width="0">
36168 <column alignment="center" valignment="top" width="0">
36169 <column alignment="center" valignment="top" width="0">
36171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36174 \begin_layout Plain Layout
36180 <cell alignment="center" valignment="top" topline="true" usebox="none">
36183 \begin_layout Plain Layout
36189 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36192 \begin_layout Plain Layout
36200 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36203 \begin_layout Plain Layout
36209 <cell alignment="center" valignment="top" usebox="none">
36212 \begin_layout Plain Layout
36213 \begin_inset Graphics
36214 filename ../images/dialog-show-new-inset_graphics.png
36216 scaleBeforeRotation
36225 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36228 \begin_layout Plain Layout
36236 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36239 \begin_layout Plain Layout
36245 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36248 \begin_layout Plain Layout
36254 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36257 \begin_layout Plain Layout
36269 \begin_inset Tabular
36270 <lyxtabular version="3" rows="3" columns="2">
36271 <features tabularvalignment="middle">
36272 <column alignment="center" valignment="top" width="0">
36273 <column alignment="center" valignment="top" width="0">
36275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36278 \begin_layout Plain Layout
36284 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36287 \begin_layout Plain Layout
36295 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36298 \begin_layout Plain Layout
36304 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36307 \begin_layout Plain Layout
36308 \begin_inset Graphics
36309 filename ../images/dialog-show-new-inset_graphics.png
36311 scaleBeforeRotation
36322 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36325 \begin_layout Plain Layout
36331 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36334 \begin_layout Plain Layout
36348 \begin_layout Standard
36350 you can use the LaTeX-package
36355 \begin_inset Index idx
36358 \begin_layout Plain Layout
36359 LaTeX-packages ! picinpar
36365 Here is an example:
36368 \begin_layout Standard
36372 \begin_layout Plain Layout
36382 \begin_inset Note Note
36385 \begin_layout Plain Layout
36386 The following section will only be displayed when the LaTeX-package
36398 \begin_layout Standard
36402 \begin_layout Plain Layout
36406 begin{window}[2,c,{
36412 \begin_inset Graphics
36413 filename clipart/mobius.eps
36416 scaleBeforeRotation
36417 rotateOrigin center
36425 \begin_layout Plain Layout
36430 \begin_layout Plain Layout
36439 It was in the spring of the year 1894 that all London was interested, and
36440 the fashionable world dismayed, by the murder of the Honourable Ronald
36441 Adair under most unusual and inexplicable circumstances.
36442 The public has already learned those particulars of the crime which
36448 \begin_layout Plain Layout
36459 came out in the police investigation, but a good deal was suppressed upon
36460 that occasion, since the case for the prosecution was so overwhelmingly
36461 strong that it was not necessary to bring forward all the facts.
36462 Only now, at the end of nearly ten years, am I allowed to supply those
36463 missing links which make up the whole of that remarkable chain.
36469 \begin_layout Plain Layout
36481 \begin_layout Standard
36485 \begin_layout Plain Layout
36494 Footnote of the paragraph with the fixed object.
36498 \begin_layout Plain Layout
36508 \begin_layout Standard
36509 Surrounded fixed objects are used to let text float around them, at which
36510 the object's position in the paragraph can be determined by the number
36512 In contrary to floats is it not possible to have a numbered caption.
36515 \begin_layout Standard
36516 A fixed object is inserted by adding the command
36519 \begin_layout Standard
36524 begin{window}[2,c,{
36527 \begin_layout Standard
36528 as TeX-Code at the beginning of the paragraph.
36529 The first parameter in the bracket, here '2', defines the number of lines
36530 above the object, the second, here 'c', the position of the object.
36531 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
36532 Behind the command you insert the object.
36533 In this example an image with a width of 40
36534 \begin_inset space \thinspace{}
36537 % of the text column width was inserted.
36538 The object can also be a table, a box or an equation.
36539 Behind the object the command
36542 \begin_layout Standard
36545 },description text]
36546 \begin_inset Newline newline
36552 \begin_layout Standard
36555 \begin_inset Quotes eld
36563 \begin_inset Quotes erd
36566 is in the second line.
36567 The description text is optional.
36568 The text surrounding the object must be in the same paragraph as the object,
36569 so it must begin directly after the
36574 At the end of the paragraph insert the command:
36577 \begin_layout Standard
36585 \begin_layout Standard
36586 Within a paragraph with a fixed object, you cannot insert footnotes in the
36588 You have to use instead the command
36594 inside the paragraph and outside the command
36600 as described in sec.
36601 \begin_inset space \thinspace{}
36605 \begin_inset CommandInset ref
36607 reference "sec:Footnotes"
36614 \begin_layout Standard
36618 \begin_layout Plain Layout
36628 \begin_inset Note Note
36631 \begin_layout Plain Layout
36632 The following will be displayed when the LaTeX-package
36644 \begin_layout Standard
36645 You need to install the LaTeX-package
36649 to see the following part of this section in the output.
36652 \begin_layout Standard
36656 \begin_layout Plain Layout
36668 \begin_layout Section
36670 \begin_inset Index idx
36673 \begin_layout Plain Layout
36680 \begin_inset Index idx
36683 \begin_layout Plain Layout
36684 Surrounded by text ! Initials
36692 \begin_layout Standard
36693 To use initials, you must have the LaTeX-package
36698 \begin_inset Index idx
36701 \begin_layout Plain Layout
36702 LaTeX-packages ! lettrine
36707 installed and use the module
36711 in your document (menu
36713 Document\SpecialChar \menuseparator
36714 Settings\SpecialChar \menuseparator
36718 To insert an initial, use the style
36723 This style has a mandatory and an optional argument.
36724 The mandatory argument is inserted via the menu
36726 Insert\SpecialChar \menuseparator
36728 \begin_inset space ~
36733 and contains the letter that is the initial.
36734 To use also the optional argument, insert another argument in front of
36735 the mandatory argument.
36736 This one contains parameters to modify the initial.
36737 For more information about the possible parameters see the documentation
36743 \begin_inset CommandInset citation
36750 The style itself contains the text that is surrounding the initial.
36751 The usual style is hereby that the word whose first letter is the initial,
36757 To tell LaTeX where this word is finished, add a closing brace '
36761 ' as TeX-Code behind it.
36762 At the end of the style there must be an opening brace '
36769 \begin_layout Standard
36770 Here are some examples:
36773 \begin_layout Standard
36777 \begin_layout Plain Layout
36787 \begin_inset Note Note
36790 \begin_layout Plain Layout
36791 The following section will only be displayed when the LaTeX-package
36803 \begin_layout Enumerate
36804 No optional argument, the initial is the letter 'I' in the math font
36805 \begin_inset Formula $\mathfrak{Fraktur}$
36812 \begin_layout Initial
36813 \begin_inset Argument
36816 \begin_layout Plain Layout
36817 \begin_inset Formula $\mathfrak{I}$
36829 \begin_layout Plain Layout
36836 was in the spring of the year 1894 that all London was interested, and
36837 the fashionable world dismayed, by the murder of the Honourable Ronald
36838 Adair under most unusual and inexplicable circumstances.
36839 The public has already learned those particulars of the crime which came
36840 out in the police investigation, but a good deal was suppressed upon that
36841 occasion, since the case for the prosecution was so overwhelmingly strong
36842 that it was not necessary to bring forward all the facts.
36846 \begin_layout Plain Layout
36854 \begin_inset Newpage newpage
36861 \begin_layout Enumerate
36862 Only one line is surrounding the initial, which is formed by two letters
36863 in standard font and no text is printed in small caps:
36867 \begin_layout Initial
36868 \begin_inset Argument
36871 \begin_layout Plain Layout
36878 \begin_inset Argument
36881 \begin_layout Plain Layout
36891 \begin_layout Plain Layout
36898 was in the spring of the year 1894 that all London was interested, and
36899 the fashionable world dismayed, by the murder of the Honourable Ronald
36900 Adair under most unusual and inexplicable circumstances.
36901 The public has already learned those particulars of the crime which came
36902 out in the police investigation, but a good deal was suppressed upon that
36903 occasion, since the case for the prosecution was so overwhelmingly strong
36904 that it was not necessary to bring forward all the facts.
36908 \begin_layout Plain Layout
36919 \begin_layout Enumerate
36920 Magenta, hanging initial over 3
36921 \begin_inset space ~
36924 lines in the math font
36925 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
36929 \begin_inset Quotes eld
36932 t was in the spring
36933 \begin_inset Quotes erd
36940 ; to color the initial, you must insert this command before the initial:
36941 \begin_inset Newline newline
36955 \begin_inset Newline newline
36963 \begin_inset Quotes eld
36967 \begin_inset Quotes erd
36971 \begin_inset Quotes eld
36975 \begin_inset Quotes erd
36979 \begin_inset Quotes eld
36983 \begin_inset Quotes erd
36987 \begin_inset Quotes eld
36991 \begin_inset Quotes erd
36995 \begin_inset Quotes eld
36999 \begin_inset Quotes erd
37003 \begin_inset Quotes eld
37007 \begin_inset Quotes erd
37011 \begin_inset Quotes eld
37015 \begin_inset Quotes erd
37019 \begin_inset Quotes eld
37023 \begin_inset Quotes erd
37026 , and add this command to the document preamble:
37027 \begin_inset Newline newline
37034 @ifundefined{textcolor}
37035 \begin_inset Newline newline
37039 \begin_inset space ~
37044 usepackage{color}}{}
37048 \begin_layout Standard
37052 \begin_layout Plain Layout
37066 \begin_inset Note Note
37069 \begin_layout Plain Layout
37070 makes the initial magenta
37078 \begin_layout Initial
37079 \begin_inset Argument
37082 \begin_layout Plain Layout
37083 lines=3, lhang=0.33, loversize=0.25
37089 \begin_inset Argument
37092 \begin_layout Plain Layout
37093 \begin_inset Formula $\mathcal{I}$
37101 t was in the spring
37105 \begin_layout Plain Layout
37112 of the year 1894 that all London was interested, and the fashionable world
37113 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37114 and inexplicable circumstances.
37115 The public has already learned those particulars of the crime which came
37116 out in the police investigation, but a good deal was suppressed upon that
37117 occasion, since the case for the prosecution was so overwhelmingly strong
37118 that it was not necessary to bring forward all the facts.
37122 \begin_layout Plain Layout
37133 \begin_layout Standard
37137 \begin_layout Plain Layout
37147 \begin_inset Note Note
37150 \begin_layout Plain Layout
37151 The following will be displayed when the LaTeX-package
37163 \begin_layout Standard
37164 You need to install the LaTeX-package
37168 to see the following part of this section in the output.
37171 \begin_layout Standard
37175 \begin_layout Plain Layout
37187 \begin_layout Chapter
37188 External Document Parts
37189 \begin_inset Index idx
37192 \begin_layout Plain Layout
37193 External Document Parts
37201 \begin_layout Standard
37204 Insert\SpecialChar \menuseparator
37207 you can insert external material into your document.
37211 \begin_layout Description
37213 \begin_inset space ~
37216 Document Another LyX document; its content is directly inserted to your
37220 \begin_layout Description
37222 \begin_inset space ~
37225 Text A text document; each line is inserted in your document as a separate
37229 \begin_layout Description
37231 \begin_inset space ~
37235 \begin_inset space ~
37239 \begin_inset space ~
37242 Lines A text document; text lines are inserted in your document continuously
37243 but an empty text line creates a new paragraph.
37246 \begin_layout Description
37248 \begin_inset space ~
37251 Material Files in various formats.
37254 \begin_layout Description
37256 \begin_inset space ~
37259 Document LyX or LaTeX-documents.
37262 \begin_layout Section
37264 \begin_inset Index idx
37267 \begin_layout Plain Layout
37268 External Document Parts ! External Material
37276 \begin_layout Standard
37277 The external material feature allows you to insert files into your document
37278 without converting them to a format that can be read by the document output
37280 LyX takes care of the necessary conversions.
37281 This is similar to images that can be inserted in various image formats
37283 When you have enabled Instant Preview in LyX's preferences under
37286 \begin_inset space ~
37290 \begin_inset space ~
37293 feel\SpecialChar \menuseparator
37296 , the external material types Dia and Xfig are directly shown in LyX.
37299 \begin_layout Standard
37300 External material can be inserted via the
37304 dialog that is accessible with the menu
37306 Insert\SpecialChar \menuseparator
37307 File\SpecialChar \menuseparator
37309 \begin_inset space ~
37315 Currently the following file types (
37322 \begin_layout Description
37323 ChessDiagram This template supports chess position diagrams made with the
37327 \begin_inset CommandInset href
37330 target "http://en.wikipedia.org/wiki/XBoard"
37339 \begin_layout Description
37340 Date This inserts the date in the form
37345 This is a date inserted as external material:
37346 \begin_inset External
37353 \begin_inset space ~
37357 \begin_inset Note Note
37360 \begin_layout Plain Layout
37361 Remove the protected space when bug 4398 is fixed!
37367 \begin_inset Newline newline
37370 The date is not shown within LyX, only in the output.
37371 There are two other methods of inserting a date: Via menu
37373 Insert\SpecialChar \menuseparator
37376 and with the LaTeX command
37383 The different methods are compared in Table
37384 \begin_inset space ~
37388 \begin_inset CommandInset ref
37390 reference "tab:Comparison-of-the"
37397 \begin_layout Description
37398 Dia This template supports diagrams created with the program
37401 \begin_inset CommandInset href
37404 target "http://en.wikipedia.org/wiki/Dia_(software)"
37413 \begin_layout Description
37414 GnumericSpreadsheet With this template you can insert spreadsheets
37415 \begin_inset space \thinspace{}
37419 \begin_inset space \thinspace{}
37422 tables in the format of
37425 \begin_inset CommandInset href
37428 target "http://en.wikipedia.org/wiki/Gnumeric"
37435 \begin_inset CommandInset href
37437 name "OpenDocument"
37438 target "http://en.wikipedia.org/wiki/OpenDocument"
37443 \begin_inset CommandInset href
37445 name "Microsoft Office XML"
37446 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
37451 \begin_inset CommandInset href
37453 name "Office Open XML"
37454 target "http://en.wikipedia.org/wiki/Office_Open_XML"
37459 For this feature LyX must have found the program
37463 during its configuration.
37464 This program is part of Gnumeric, so that you must have Gnumeric installed,
37465 also if you don't have tables in the Gnumeric format.
37466 For examples and possible limitations have a look at LyX's example file
37474 \begin_layout Description
37475 LilyPond This template is used for music notation typeset with the program
37476 \begin_inset Newline linebreak
37482 \begin_inset CommandInset href
37485 target "http://en.wikipedia.org/wiki/LilyPond"
37492 For LyX's extended support for LilyPond have a look at LyX's example file
37500 \begin_layout Description
37501 PDFPages With this template you can insert PDF documents to your document.
37502 To specify the range of pages that should be included, use the option
37512 LaTeX and LyX options
37515 The argument of this option is a comma separated list, containing page
37516 numbers (insert as option
37520 ), ranges of page numbers (
37524 ) or any combination.
37525 To insert empty pages use {}.
37527 \begin_inset space \thinspace{}
37531 \begin_inset space ~
37536 pages={3,{},8-11,15}
37538 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
37539 Page ranges are specified in the syntax
37548 This selects all pages from
37561 defaults to the first page; omitting
37565 defaults to the last page of the document.
37566 The last page can also be selected with the keyword
37571 (This is only permitted in a page range.) So
37575 will insert all pages of the document and
37579 will insert all pages in reverse order.
37580 If the pages option is not specified, only the first page of the PDF is
37582 \begin_inset Newline newline
37589 inserts the pages with their original size, if this option is not given,
37590 the pages will be resized to fith the width of the page of your document.
37595 you can specify the width and height of the input pages and their rotation.
37596 If another width than 100
37597 \begin_inset space \thinspace{}
37600 Scale% is used, the option
37604 will be overwritten.
37605 For more info and possible options, have a look into the documentation
37606 of the LaTeX-package
37611 \begin_inset CommandInset citation
37618 \begin_inset Index idx
37621 \begin_layout Plain Layout
37622 LaTeX-packages ! pdfpages
37628 \begin_inset Newline newline
37631 To use this template in a
37635 presentation you need to first insert an
37639 environment and in a subsequent paragraph a TeX-Code box containing the
37644 setbeamertemplate{background canvas}{}
37647 Then you can insert as many paragraphs containing the PDFPages template
37649 Behind the included PDF pages you can resume the Beamer presentation by
37650 beginning a new frame or by starting a new section.
37651 To avoid stray blank pages prior to the PDF pages, make sure to use the
37656 alignment for the paragraph containing the template.
37657 \begin_inset Newline newline
37660 Here is an included PDF which is rotated by -5°:
37661 \begin_inset External
37663 filename clipart/Abstract.pdf
37664 extra LaTeX "noautoscale, pages=-"
37666 rotateOrigin bottomleft
37673 \begin_layout Description
37674 RasterImage This can be used for bitmap images.
37675 The image can be treated in the
37679 dialog like the images that are usually included via the
37683 dialog as described in section
37684 \begin_inset space ~
37688 \begin_inset CommandInset ref
37690 reference "sec:Graphics-Dialog"
37695 The difference to the normal image input is that only raster images are
37696 allowed; that means that PDF and EPS-images are not supported.
37697 Here is an inserted raster image:
37698 \begin_inset External
37699 template RasterImage
37700 filename clipart/ToolbarEnvBox.png
37707 \begin_layout Description
37708 XFig This template supports images created with the program
37711 \begin_inset CommandInset href
37714 target "http://en.wikipedia.org/wiki/Xfig"
37723 \begin_layout Standard
37724 \begin_inset Float table
37730 \begin_layout Plain Layout
37731 \begin_inset Caption
37733 \begin_layout Plain Layout
37734 \begin_inset CommandInset label
37736 name "tab:Comparison-of-the"
37740 Comparison of the date input methods.
37748 \begin_layout Plain Layout
37750 \begin_inset Tabular
37751 <lyxtabular version="3" rows="4" columns="4">
37752 <features tabularvalignment="middle">
37753 <column alignment="center" valignment="top" width="0">
37754 <column alignment="center" valignment="top" width="0">
37755 <column alignment="center" valignment="top" width="0">
37756 <column alignment="center" valignment="top" width="0">
37758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37761 \begin_layout Plain Layout
37767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37770 \begin_layout Plain Layout
37773 External Material\SpecialChar \menuseparator
37779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37782 \begin_layout Plain Layout
37785 Insert\SpecialChar \menuseparator
37791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37794 \begin_layout Plain Layout
37806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37809 \begin_layout Plain Layout
37815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37818 \begin_layout Plain Layout
37824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37827 \begin_layout Plain Layout
37833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37836 \begin_layout Plain Layout
37837 as TeX-Code inset box
37844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37847 \begin_layout Plain Layout
37853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37856 \begin_layout Plain Layout
37862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37865 \begin_layout Plain Layout
37871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37874 \begin_layout Plain Layout
37882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37885 \begin_layout Plain Layout
37891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37894 \begin_layout Plain Layout
37900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37903 \begin_layout Plain Layout
37909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37912 \begin_layout Plain Layout
37931 \begin_layout Standard
37932 When you use the option
37944 dialog, only the path to the inserted file is shown in the output.
37945 \begin_inset Newline newline
37948 External material is displayed in LyX either as a box like this:
37949 \begin_inset Graphics
37950 filename clipart/ExternalMaterialQt4.png
37952 scaleBeforeRotation
37956 or as image, depending on the option
37962 LaTeX and LyX options
37967 \begin_layout Standard
37974 manual explains how you can define your own templates.
37977 \begin_layout Section
37979 \begin_inset CommandInset label
37981 name "sec:Child-Documents"
37986 \begin_inset Index idx
37989 \begin_layout Plain Layout
37990 External Document Parts ! Child Documents
37996 \begin_inset Index idx
37999 \begin_layout Plain Layout
38008 \begin_layout Standard
38009 Child documents are used if you have a long document consisting of several
38010 larger parts or sections.
38011 For maintenance it is often useful and sometimes even required to split
38012 the document into several files that can be revised separately.
38013 The different documents are then the so called
38014 \begin_inset Quotes eld
38018 \begin_inset Quotes erd
38021 , and a master document connects them to print the full document or parts
38023 A child document inherits elements from its master, for example the LaTeX
38024 preamble, the bibliography, and labels for cross-references.
38027 \begin_layout Standard
38028 To be able to work on child documents without the need to open their master,
38029 specify in the child document the master in the menu
38031 Document\SpecialChar \menuseparator
38032 Settings\SpecialChar \menuseparator
38034 \begin_inset space ~
38040 This master document will then be used in the background by LyX when you
38041 edit the child document.
38044 \begin_layout Standard
38045 Included documents are displayed in LyX as a box like this:
38046 \begin_inset Graphics
38047 filename clipart/ChildDocumentQt4.png
38049 scaleBeforeRotation
38053 To include child documents in a master document use the menu
38055 Insert\SpecialChar \menuseparator
38056 File\SpecialChar \menuseparator
38058 \begin_inset space ~
38064 A dialog pops up where you can choose between four include methods:
38067 \begin_layout Description
38068 Include You can include LyX- and LaTeX-documents.
38077 dialog, the included document will be opened in LyX in a new file tab so
38078 that you can modify it.
38079 \begin_inset Newline newline
38085 \begin_layout Standard
38086 Here is a child document inserted using
38091 \begin_inset CommandInset include
38092 LatexCommand include
38093 filename "DummyDocument1.lyx"
38100 \begin_layout Standard
38101 The section numbering includes the sections of the included files in the
38102 order they are inserted in the master document.
38103 The included example document has for example a subsection that is numbered
38104 as a subsection of this section.
38105 Labels of included documents can be referenced: Subsection
38106 \begin_inset space ~
38110 \begin_inset CommandInset ref
38112 reference "sub:External-Subsection-1"
38119 \begin_layout Standard
38120 The preamble of the child document is ignored; only the preamble of the
38121 master document is used.
38122 Branches in child documents will be ignored by the master document when
38123 the master document does not have a branch with the same name.
38124 Included documents are inserted starting on a new page and ending with
38128 \begin_layout Standard
38129 \begin_inset Note Greyedout
38132 \begin_layout Plain Layout
38137 If you have included a LyX- or LaTeX-file, you are warned when you export/view
38138 the document in case the child document uses another document class than
38139 the master document as this will lead to unexpected outputs.
38147 \begin_layout Description
38148 Input This method is very similar to the Include method.
38149 The differences are:
38153 \begin_layout Itemize
38154 Input files don't start with a new page and don't end with a page break.
38157 \begin_layout Itemize
38158 Input files can be previewed in LyX when
38161 \begin_inset space ~
38166 is enabled in LyX's preferences under
38169 \begin_inset space ~
38173 \begin_inset space ~
38176 feel\SpecialChar \menuseparator
38182 \begin_layout Itemize
38183 You cannot exclude Input files via the menu
38185 Document\SpecialChar \menuseparator
38186 Settings\SpecialChar \menuseparator
38193 \begin_layout Standard
38194 Here is a child document inserted using
38199 \begin_inset CommandInset include
38201 filename "DummyDocument2.lyx"
38208 \begin_layout Description
38209 Verbatim With this method any text file can be included.
38210 The file is shown in the output with its source code; no command used in
38211 the text is invoked.
38212 You can use the option
38214 Mark spaces in output
38216 that displays the character
38217 \begin_inset Quotes eld
38224 \begin_layout Plain Layout
38234 \begin_inset Quotes erd
38237 for every space character in the source code.
38238 The difference from the method via the menu
38240 Insert\SpecialChar \menuseparator
38241 File\SpecialChar \menuseparator
38243 \begin_inset space ~
38248 is that the document content is not shown in LyX.
38251 \begin_layout Standard
38252 Here is a child document inserted as Verbatim:
38253 \begin_inset CommandInset include
38254 LatexCommand verbatiminput
38255 filename "DummyTextDocument.txt"
38260 \begin_inset VSpace bigskip
38263 Here is a child document inserted as Verbatim using the
38265 Mark spaces in output
38268 \begin_inset CommandInset include
38269 LatexCommand verbatiminput*
38270 filename "DummyTextDocument.txt"
38277 \begin_layout Standard
38278 \begin_inset VSpace bigskip
38284 \begin_layout Standard
38285 \begin_inset Note Greyedout
38288 \begin_layout Plain Layout
38293 As you can see in the examples above, the text of the documents included
38298 is not broken at the end of the document lines.
38306 \begin_layout Description
38307 Listings This type is described in chapter
38308 \begin_inset space ~
38312 \begin_inset CommandInset ref
38314 reference "cha:Program-Code-Listings"
38321 \begin_layout Standard
38322 \begin_inset Note Greyedout
38325 \begin_layout Plain Layout
38330 Including the same document twice in a document using different methods
38331 could cause LaTeX-problems.
38339 \begin_layout Standard
38340 If you want to view/export only selected children of your master document,
38341 either because you want to save compiling time or because you want to distribut
38342 e single chapters of the book you are just writing, you can exclude children
38344 This is done via the menu
38346 Document\SpecialChar \menuseparator
38347 Settings\SpecialChar \menuseparator
38351 You can exclude\SpecialChar \slash{}
38352 include children by double-clicking on the
38356 column of the respective child document in the list (note that this only
38357 works for documents embedded via
38358 \begin_inset Quotes eld
38362 \begin_inset Quotes erd
38366 \begin_inset Quotes eld
38370 \begin_inset Quotes erd
38376 Maintain counters and references
38378 is enabled, LyX will assure that all page numbers, references etc.
38379 \begin_inset space ~
38382 are correct as if the whole document was processed.
38383 This is useful if you want the selected sub-documents to look exactly as
38384 in the context of the whole document.
38385 However, LyX needs to process the whole document in the background for
38387 So if you want to save compile time and if counters and references do not
38388 need to be correct, disable this checkbox.
38391 \begin_layout Standard
38392 Alternatively, you can put each included file into a branch.
38396 \begin_layout Plain Layout
38397 Branches are described in section
38410 By enabling\SpecialChar \slash{}
38411 disabling branches you can decide which included files will
38412 appear in the output.
38413 This has the advantage that it also works with Input'ed sub-documents.
38414 However, counters and references will not be maintained with this approach.
38417 \begin_layout Chapter
38418 Program Code Listings
38419 \begin_inset CommandInset label
38421 name "cha:Program-Code-Listings"
38426 \begin_inset Index idx
38429 \begin_layout Plain Layout
38436 \begin_inset Index idx
38439 \begin_layout Plain Layout
38446 \begin_inset Index idx
38449 \begin_layout Plain Layout
38458 \begin_layout Standard
38459 To include and typeset program code you can use the
38463 inset that can be inserted via the menu
38465 Insert\SpecialChar \menuseparator
38474 \begin_inset Index idx
38477 \begin_layout Plain Layout
38478 LaTeX-packages ! listings
38483 provides a powerful and flexible way to insert program source code into
38487 \begin_layout Standard
38488 Right-clicking on a listings inset opens the context menu containing where
38489 you can set the listings format.
38492 \begin_layout Standard
38493 By default, a listing starts a new paragraph in the output.
38494 The placement option
38497 \begin_inset space ~
38502 prints the listing inline like this:
38503 \begin_inset listings
38504 lstparams "language={C++}"
38508 \begin_layout Plain Layout
38516 \begin_inset Newline newline
38523 creates a listings float where you can specify the placement options
38524 \begin_inset Quotes eld
38532 \begin_inset Quotes erd
38536 \begin_inset Quotes eld
38544 \begin_inset Quotes erd
38548 \begin_inset Quotes eld
38556 \begin_inset Quotes erd
38560 \begin_inset Quotes eld
38568 \begin_inset Quotes erd
38571 corresponding to the float placement options described in section
38572 \begin_inset space ~
38576 \begin_inset CommandInset ref
38578 reference "sec:Float-Placement"
38583 The placement options can be mixed and are inserted without any separation,
38585 \begin_inset space \thinspace{}
38589 \begin_inset space \space{}
38593 \begin_inset Quotes eld
38601 \begin_inset Quotes erd
38606 \begin_inset Quotes eld
38610 \begin_inset Quotes erd
38613 has sometimes no effect, but you don't need to use the
38617 option in this case as also non-float listings can have captions and be
38621 \begin_layout Standard
38622 You can add captions to listings with the menu
38624 Insert\SpecialChar \menuseparator
38628 Listings can be referenced like floats: Listing
38629 \begin_inset space ~
38633 \begin_inset CommandInset ref
38635 reference "lst:Example-Listing"
38642 \begin_layout Standard
38643 \begin_inset listings
38644 lstparams "language=Python"
38648 \begin_layout Plain Layout
38650 \begin_inset Caption
38652 \begin_layout Plain Layout
38653 \begin_inset CommandInset label
38655 name "lst:Example-Listing"
38659 Example Listing float
38664 # Example listing float
38667 \begin_layout Plain Layout
38672 \begin_layout Plain Layout
38674 'this is a python function'
38677 \begin_layout Plain Layout
38687 \begin_layout Standard
38688 When you have set a programming language in the listings dialog, the keywords
38689 of this language will be recognized and specially typeset in the output.
38690 In the example listings the Python keyword
38691 \begin_inset Quotes eld
38695 \begin_inset Quotes erd
38698 is recognized and printed bold in the output.
38701 \begin_layout Standard
38702 \begin_inset Note Greyedout
38705 \begin_layout Plain Layout
38710 If you don't get bold keywords when using typewriter fonts, your
38714 font probably doesn't provide a bold shape.
38715 In this case select a different one in the menu
38717 Document\SpecialChar \menuseparator
38718 Settings\SpecialChar \menuseparator
38730 provide bold shapes.)
38738 \begin_layout Standard
38742 \begin_inset space ~
38747 of the listings dialog you can specify the line numbering style.
38748 You can insert a number to specify which lines are numbered in the field
38755 \begin_inset space \thinspace{}
38759 \begin_inset space \space{}
38763 \begin_inset Quotes eld
38767 \begin_inset Quotes erd
38770 , only every 3rd line will be numbered.
38773 \begin_layout Standard
38774 You can furthermore specify a range of lines; only these will then appear
38778 Extended character table
38780 should be used when you use national characters like the German umlauts
38782 \begin_inset Newline newline
38785 Here is an example listing with left line numbering, step
38786 \begin_inset Quotes eld
38790 \begin_inset Quotes erd
38794 \begin_inset Quotes eld
38798 \begin_inset Quotes erd
38802 \begin_inset Quotes eld
38805 Extended character table
38806 \begin_inset Quotes erd
38810 \begin_inset Quotes eld
38814 \begin_inset space ~
38818 \begin_inset space ~
38822 \begin_inset Quotes erd
38826 \begin_inset space \thinspace{}
38830 \begin_inset space \thinspace{}
38836 \begin_layout Standard
38837 \begin_inset listings
38838 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
38842 \begin_layout Plain Layout
38847 \begin_layout Plain Layout
38849 'this is a python function'
38852 \begin_layout Plain Layout
38857 \begin_layout Plain Layout
38862 \begin_layout Plain Layout
38864 'This is a German word: Tschüß'
38867 \begin_layout Plain Layout
38872 \begin_layout Plain Layout
38877 \begin_layout Plain Layout
38879 'this is a python function'
38882 \begin_layout Plain Layout
38892 \begin_layout Standard
38893 When you have tabulators in your listing, you can specify the number of
38894 characters that are spanned by a tabulator in the field
38897 \begin_inset space ~
38905 \begin_layout Standard
38906 \begin_inset Note Greyedout
38909 \begin_layout Plain Layout
38914 Due to a bug in the
38918 package the line numbering is shifted by a line by every previous listing.
38919 That's the reason why the lines 2 and 5 are numbered in the above listing
38920 and not the lines 3 and 6.
38928 \begin_layout Standard
38929 \begin_inset VSpace bigskip
38935 \begin_layout Standard
38936 It is also possible to print lines from a file as listing.
38937 To do this, use the menu
38939 Insert\SpecialChar \menuseparator
38940 File\SpecialChar \menuseparator
38943 and choose the type
38951 \begin_layout Plain Layout
38952 The other child document types are described in section
38953 \begin_inset space ~
38957 \begin_inset CommandInset ref
38959 reference "sec:Child-Documents"
38968 In the child document dialog you can specify the listing parameters in
38970 To show a list of all available parameters, type in a question mark
38971 \begin_inset Quotes eld
38975 \begin_inset Quotes erd
38981 \begin_layout Standard
38982 To reference child document listings, write a label text into the corresponding
38983 field of the child document dialog.
38984 The label can then be referenced using the menu
38986 Insert\SpecialChar \menuseparator
38992 \begin_layout Standard
38994 \begin_inset space ~
38998 \begin_inset CommandInset ref
39000 reference "lst:file-listing"
39004 is an example for a listing of a file; there the lines 10
39005 \begin_inset space \thinspace{}
39009 \begin_inset space \thinspace{}
39012 15 of this LyX file are listed.
39015 \begin_layout Standard
39016 \begin_inset CommandInset include
39017 LatexCommand lstinputlisting
39018 filename "EmbeddedObjects.lyx"
39019 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39026 \begin_layout Standard
39027 \begin_inset VSpace bigskip
39033 \begin_layout Standard
39034 Inserting a formula into a listing can be done the following way:
39037 \begin_layout Enumerate
39038 Open the listings dialog and add
39039 \begin_inset Newline newline
39047 \begin_inset Newline newline
39050 to the field of the
39057 \begin_layout Enumerate
39058 Create a formula outside the listing
39061 \begin_layout Enumerate
39062 Copy the content of the formula (not the formula inset) to the clipboard
39072 \begin_layout Enumerate
39073 In the listing write
39074 \begin_inset Quotes eld
39082 \begin_inset Quotes erd
39085 and copy from the clipboard between the dollar-signs (shortcut
39094 \begin_layout Standard
39095 \begin_inset listings
39096 lstparams "language=Python,mathescape=true"
39100 \begin_layout Plain Layout
39102 \begin_inset Caption
39104 \begin_layout Plain Layout
39105 Example Listing float containing a formula
39110 # Example listing float
39113 \begin_layout Plain Layout
39118 \begin_layout Plain Layout
39131 \begin_layout Plain Layout
39141 \begin_layout Standard
39142 \begin_inset VSpace bigskip
39148 \begin_layout Standard
39149 Global listings settings can be set in the
39151 Document\SpecialChar \menuseparator
39152 Settings\SpecialChar \menuseparator
39156 To get there a list of available options, type in a question mark
39157 \begin_inset Quotes eld
39161 \begin_inset Quotes erd
39167 \begin_layout Standard
39168 For more information about the
39172 package, we refer to its documentation
39173 \begin_inset CommandInset citation
39182 \begin_layout Standard
39183 \begin_inset Newpage newpage
39189 \begin_layout Chapter
39191 Units available in LyX
39192 \begin_inset Index idx
39195 \begin_layout Plain Layout
39202 \begin_inset CommandInset label
39204 name "cha:Units-available-in"
39211 \begin_layout Standard
39212 To understand the units described in this documentation, Table
39213 \begin_inset space ~
39217 \begin_inset CommandInset ref
39219 reference "tab:Units"
39223 explains all units available in LyX.
39226 \begin_layout Standard
39227 \begin_inset Float table
39233 \begin_layout Plain Layout
39234 \begin_inset Caption
39236 \begin_layout Plain Layout
39237 \begin_inset CommandInset label
39251 \begin_layout Plain Layout
39252 \begin_inset VSpace medskip
39258 \begin_layout Plain Layout
39260 \begin_inset Tabular
39261 <lyxtabular version="3" rows="20" columns="2">
39262 <features tabularvalignment="middle">
39263 <column alignment="center" valignment="top" width="0">
39264 <column alignment="center" valignment="top" width="0">
39266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39269 \begin_layout Plain Layout
39275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39278 \begin_layout Plain Layout
39286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39289 \begin_layout Plain Layout
39295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39298 \begin_layout Plain Layout
39306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39309 \begin_layout Plain Layout
39315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39318 \begin_layout Plain Layout
39326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39329 \begin_layout Plain Layout
39335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39338 \begin_layout Plain Layout
39346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39349 \begin_layout Plain Layout
39355 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39358 \begin_layout Plain Layout
39360 \begin_inset space \thinspace{}
39364 \begin_inset space \thinspace{}
39374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39377 \begin_layout Plain Layout
39383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39386 \begin_layout Plain Layout
39388 \begin_inset space \thinspace{}
39392 \begin_inset space \thinspace{}
39402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39405 \begin_layout Plain Layout
39411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39414 \begin_layout Plain Layout
39415 scaled point (65536
39416 \begin_inset space \thinspace{}
39420 \begin_inset space \thinspace{}
39430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39433 \begin_layout Plain Layout
39439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39442 \begin_layout Plain Layout
39444 \begin_inset space \thinspace{}
39448 \begin_inset space \thinspace{}
39458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39461 \begin_layout Plain Layout
39467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39470 \begin_layout Plain Layout
39472 \begin_inset space \thinspace{}
39476 \begin_inset Formula $\approx$
39480 \begin_inset space \thinspace{}
39490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39493 \begin_layout Plain Layout
39499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39502 \begin_layout Plain Layout
39504 \begin_inset space \thinspace{}
39508 \begin_inset space \thinspace{}
39518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39521 \begin_layout Plain Layout
39527 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39530 \begin_layout Plain Layout
39531 % of original image width
39538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39541 \begin_layout Plain Layout
39547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39550 \begin_layout Plain Layout
39558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39561 \begin_layout Plain Layout
39567 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39570 \begin_layout Plain Layout
39578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39581 \begin_layout Plain Layout
39587 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39590 \begin_layout Plain Layout
39598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39601 \begin_layout Plain Layout
39607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39610 \begin_layout Plain Layout
39618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39621 \begin_layout Plain Layout
39627 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39630 \begin_layout Plain Layout
39638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39641 \begin_layout Plain Layout
39647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39650 \begin_layout Plain Layout
39658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39661 \begin_layout Plain Layout
39667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39670 \begin_layout Plain Layout
39682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39685 \begin_layout Plain Layout
39691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39694 \begin_layout Plain Layout
39706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39709 \begin_layout Plain Layout
39715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39718 \begin_layout Plain Layout
39720 \begin_inset space \thinspace{}
39724 \begin_inset space \thinspace{}
39745 \begin_layout Chapter
39746 Output File Formats with Graphics
39747 \begin_inset CommandInset label
39749 name "cha:Output-File-Formats"
39756 \begin_layout Section
39758 \begin_inset Index idx
39761 \begin_layout Plain Layout
39768 \begin_inset Index idx
39771 \begin_layout Plain Layout
39776 \begin_layout Plain Layout
39787 \begin_layout Plain Layout
39802 \begin_layout Standard
39803 This file type has the extension
39804 \begin_inset Quotes eld
39812 \begin_inset Quotes erd
39817 \begin_inset Quotes eld
39821 \begin_inset Quotes erd
39824 (DVI), because it is completely portable; you can move them from one machine
39825 to another without needing to do any sort of conversion.
39826 At the time when this file-format was developed, this was no matter of
39828 DVIs are used for quick previews and as pre-stage for other output formats,
39832 \begin_layout Standard
39833 \begin_inset Note Greyedout
39836 \begin_layout Plain Layout
39841 DVI-files do not contain images; they will only be a linked.
39846 So don't forget this, if you move your
39850 file to another computer.
39851 This property can also slow down your computer when you view the DVI, because
39852 the DVI-viewer has to convert the image in the background to make it visible
39853 when you scroll in the DVI.
39854 So it is recommended that you use PDF for files with many images.
39857 \begin_layout Standard
39858 You can export your document to DVI by using the menu
39860 File\SpecialChar \menuseparator
39861 Export\SpecialChar \menuseparator
39865 You can view your document as DVI via the
39872 \begin_layout Section
39874 \begin_inset CommandInset label
39876 name "sec:PostScript"
39881 \begin_inset Index idx
39884 \begin_layout Plain Layout
39885 File Formats ! PostScript
39891 \begin_inset Index idx
39894 \begin_layout Plain Layout
39899 \begin_layout Plain Layout
39910 \begin_layout Plain Layout
39925 \begin_layout Standard
39926 This file type has the extension
39927 \begin_inset Quotes eld
39935 \begin_inset Quotes erd
39939 PostScript was developed by the company
39943 as a printer language.
39944 The file therefore contains commands that the printer uses to print the
39946 PostScript can be seen as a
39947 \begin_inset Quotes eld
39950 programming language
39951 \begin_inset Quotes erd
39954 ; you can calculate with it and draw diagrams and images
39958 \begin_layout Plain Layout
39959 If you are interested to learn more about this, have a look at the LaTeX-package
39965 \begin_inset CommandInset citation
39977 Due to this ability, the files are often bigger than PDFs.
39980 \begin_layout Standard
39981 PostScript can only contain images in the format
39982 \begin_inset Quotes eld
39985 Encapsulated PostScript
39986 \begin_inset Quotes erd
39989 (EPS, file extension
39990 \begin_inset Quotes eld
39998 \begin_inset Quotes erd
40002 As LyX allows you to use any known image format in your document, it has
40003 to convert images in the background to EPS.
40005 \begin_inset space ~
40009 \begin_inset space ~
40012 images in your document, LyX has to do 50
40013 \begin_inset space ~
40016 conversions whenever you view or export your document.
40017 This will slow down your work flow with LyX drastically.
40018 So if you plan to use PostScript, you can insert your images directly as
40019 EPS to avoid this problem.
40022 \begin_layout Standard
40023 You can export your document to PostScript using the menu
40025 File\SpecialChar \menuseparator
40026 Export\SpecialChar \menuseparator
40030 You can view your document as PostScript via the
40034 menu or by using the toolbar button
40035 \begin_inset Graphics
40036 filename ../images/buffer-view_ps.png
40038 scaleBeforeRotation
40045 \begin_layout Section
40047 \begin_inset Index idx
40050 \begin_layout Plain Layout
40057 \begin_inset Index idx
40060 \begin_layout Plain Layout
40069 \begin_layout Standard
40070 This file type has the extension
40071 \begin_inset Quotes eld
40079 \begin_inset Quotes erd
40084 \begin_inset Quotes eld
40087 Portable Document Format
40088 \begin_inset Quotes erd
40091 (PDF) was developed by
40095 as a derivative of PostScript.
40096 It is more compressed and it uses fewer commands than PostScript.
40098 \begin_inset Quotes eld
40102 \begin_inset Quotes erd
40105 implies, it can be processed at any computer system and the printed output
40106 looks exactly the same.
40109 \begin_layout Standard
40110 PDF can contain images in its own PDF format, in the format
40111 \begin_inset Quotes eld
40114 Joint Photographic Experts Group
40115 \begin_inset Quotes erd
40118 (JPG, file extension
40119 \begin_inset Quotes eld
40127 \begin_inset Quotes erd
40131 \begin_inset Quotes eld
40139 \begin_inset Quotes erd
40142 ), and in the format
40143 \begin_inset Quotes eld
40146 Portable Network Graphics
40147 \begin_inset Quotes erd
40150 (PNG, file extension
40151 \begin_inset Quotes eld
40159 \begin_inset Quotes erd
40163 Nevertheless you can use any other image format, because LyX converts them
40164 in the background to one of these formats.
40165 But as described in the section about PostScript, the image conversion
40166 will slow down your work flow.
40167 So it is recommended that you use images in one of the three mentioned
40171 \begin_layout Standard
40172 You can export your document to PDF via the menu
40174 File\SpecialChar \menuseparator
40177 in three different ways:
40180 \begin_layout Description
40182 \begin_inset space ~
40185 (ps2pdf) This uses the program
40189 that creates a PDF from a PostScript-version of your file.
40190 The PostScript-version is produced by the program
40194 which uses a DVI-version as intermediate step.
40195 So this export variant consists of three conversions.
40198 \begin_layout Description
40200 \begin_inset space ~
40203 (dvipdfm) This uses the program
40207 that converts your file in the background to DVI and in a second step to
40211 \begin_layout Description
40213 \begin_inset space ~
40216 (pdflatex) This uses the program
40220 that converts your file directly to PDF.
40223 \begin_layout Standard
40224 It is recommended that you use
40227 \begin_inset space ~
40236 supports all features of actual PDF-versions, is quick and works stable.
40241 is not under development and therefore a bit outdated.
40244 \begin_layout Standard
40245 You can view your document as PDF via the
40249 menu or by using the toolbar button
40250 \begin_inset Graphics
40251 filename ../images/buffer-view_pdf2.png
40253 scaleBeforeRotation
40264 \begin_inset space ~
40272 \begin_layout Chapter
40273 List of dvips color names
40274 \begin_inset CommandInset label
40276 name "chap:List-of-dvips-colornames"
40283 \begin_layout Standard
40284 \begin_inset Tabular
40285 <lyxtabular version="3" rows="17" columns="4">
40286 <features tabularvalignment="middle">
40287 <column alignment="left" valignment="top" width="0pt">
40288 <column alignment="left" valignment="top" width="0pt">
40289 <column alignment="left" valignment="top" width="0pt">
40290 <column alignment="left" valignment="top" width="0pt">
40292 <cell alignment="left" valignment="top" usebox="none">
40295 \begin_layout Plain Layout
40299 \begin_layout Plain Layout
40312 \begin_layout Plain Layout
40323 \begin_layout Plain Layout
40335 <cell alignment="left" valignment="top" usebox="none">
40338 \begin_layout Plain Layout
40342 \begin_layout Plain Layout
40355 \begin_layout Plain Layout
40366 \begin_layout Plain Layout
40378 <cell alignment="left" valignment="top" usebox="none">
40381 \begin_layout Plain Layout
40385 \begin_layout Plain Layout
40398 \begin_layout Plain Layout
40409 \begin_layout Plain Layout
40421 <cell alignment="left" valignment="top" usebox="none">
40424 \begin_layout Plain Layout
40428 \begin_layout Plain Layout
40441 \begin_layout Plain Layout
40452 \begin_layout Plain Layout
40466 <cell alignment="center" valignment="top" usebox="none">
40469 \begin_layout Plain Layout
40473 \begin_layout Plain Layout
40486 \begin_layout Plain Layout
40494 \begin_inset Phantom Phantom
40497 \begin_layout Plain Layout
40507 \begin_layout Plain Layout
40519 <cell alignment="center" valignment="top" usebox="none">
40522 \begin_layout Plain Layout
40526 \begin_layout Plain Layout
40539 \begin_layout Plain Layout
40547 \begin_inset Phantom Phantom
40550 \begin_layout Plain Layout
40560 \begin_layout Plain Layout
40572 <cell alignment="center" valignment="top" usebox="none">
40575 \begin_layout Plain Layout
40579 \begin_layout Plain Layout
40592 \begin_layout Plain Layout
40600 \begin_inset Phantom Phantom
40603 \begin_layout Plain Layout
40613 \begin_layout Plain Layout
40625 <cell alignment="center" valignment="top" usebox="none">
40628 \begin_layout Plain Layout
40632 \begin_layout Plain Layout
40645 \begin_layout Plain Layout
40653 \begin_inset Phantom Phantom
40656 \begin_layout Plain Layout
40666 \begin_layout Plain Layout
40680 <cell alignment="left" valignment="top" usebox="none">
40683 \begin_layout Plain Layout
40687 \begin_layout Plain Layout
40700 \begin_layout Plain Layout
40708 \begin_inset Phantom Phantom
40711 \begin_layout Plain Layout
40721 \begin_layout Plain Layout
40733 <cell alignment="left" valignment="top" usebox="none">
40736 \begin_layout Plain Layout
40740 \begin_layout Plain Layout
40753 \begin_layout Plain Layout
40761 \begin_inset Phantom Phantom
40764 \begin_layout Plain Layout
40774 \begin_layout Plain Layout
40786 <cell alignment="left" valignment="top" usebox="none">
40789 \begin_layout Plain Layout
40793 \begin_layout Plain Layout
40806 \begin_layout Plain Layout
40814 \begin_inset Phantom Phantom
40817 \begin_layout Plain Layout
40827 \begin_layout Plain Layout
40839 <cell alignment="left" valignment="top" usebox="none">
40842 \begin_layout Plain Layout
40846 \begin_layout Plain Layout
40859 \begin_layout Plain Layout
40867 \begin_inset Phantom Phantom
40870 \begin_layout Plain Layout
40880 \begin_layout Plain Layout
40894 <cell alignment="left" valignment="top" usebox="none">
40897 \begin_layout Plain Layout
40901 \begin_layout Plain Layout
40914 \begin_layout Plain Layout
40922 \begin_inset Phantom Phantom
40925 \begin_layout Plain Layout
40935 \begin_layout Plain Layout
40947 <cell alignment="left" valignment="top" usebox="none">
40950 \begin_layout Plain Layout
40954 \begin_layout Plain Layout
40967 \begin_layout Plain Layout
40975 \begin_inset Phantom Phantom
40978 \begin_layout Plain Layout
40988 \begin_layout Plain Layout
41000 <cell alignment="left" valignment="top" usebox="none">
41003 \begin_layout Plain Layout
41007 \begin_layout Plain Layout
41020 \begin_layout Plain Layout
41028 \begin_inset Phantom Phantom
41031 \begin_layout Plain Layout
41041 \begin_layout Plain Layout
41053 <cell alignment="left" valignment="top" usebox="none">
41056 \begin_layout Plain Layout
41060 \begin_layout Plain Layout
41073 \begin_layout Plain Layout
41081 \begin_inset Phantom Phantom
41084 \begin_layout Plain Layout
41094 \begin_layout Plain Layout
41108 <cell alignment="left" valignment="top" usebox="none">
41111 \begin_layout Plain Layout
41115 \begin_layout Plain Layout
41128 \begin_layout Plain Layout
41136 \begin_inset Phantom Phantom
41139 \begin_layout Plain Layout
41149 \begin_layout Plain Layout
41161 <cell alignment="left" valignment="top" usebox="none">
41164 \begin_layout Plain Layout
41168 \begin_layout Plain Layout
41181 \begin_layout Plain Layout
41189 \begin_inset Phantom Phantom
41192 \begin_layout Plain Layout
41202 \begin_layout Plain Layout
41214 <cell alignment="left" valignment="top" usebox="none">
41217 \begin_layout Plain Layout
41221 \begin_layout Plain Layout
41234 \begin_layout Plain Layout
41242 \begin_inset Phantom Phantom
41245 \begin_layout Plain Layout
41255 \begin_layout Plain Layout
41267 <cell alignment="left" valignment="top" usebox="none">
41270 \begin_layout Plain Layout
41274 \begin_layout Plain Layout
41287 \begin_layout Plain Layout
41295 \begin_inset Phantom Phantom
41298 \begin_layout Plain Layout
41308 \begin_layout Plain Layout
41322 <cell alignment="left" valignment="top" usebox="none">
41325 \begin_layout Plain Layout
41329 \begin_layout Plain Layout
41342 \begin_layout Plain Layout
41350 \begin_inset Phantom Phantom
41353 \begin_layout Plain Layout
41363 \begin_layout Plain Layout
41375 <cell alignment="left" valignment="top" usebox="none">
41378 \begin_layout Plain Layout
41382 \begin_layout Plain Layout
41395 \begin_layout Plain Layout
41403 \begin_inset Phantom Phantom
41406 \begin_layout Plain Layout
41416 \begin_layout Plain Layout
41428 <cell alignment="left" valignment="top" usebox="none">
41431 \begin_layout Plain Layout
41435 \begin_layout Plain Layout
41448 \begin_layout Plain Layout
41456 \begin_inset Phantom Phantom
41459 \begin_layout Plain Layout
41469 \begin_layout Plain Layout
41481 <cell alignment="left" valignment="top" usebox="none">
41484 \begin_layout Plain Layout
41488 \begin_layout Plain Layout
41501 \begin_layout Plain Layout
41509 \begin_inset Phantom Phantom
41512 \begin_layout Plain Layout
41522 \begin_layout Plain Layout
41536 <cell alignment="center" valignment="top" usebox="none">
41539 \begin_layout Plain Layout
41543 \begin_layout Plain Layout
41556 \begin_layout Plain Layout
41564 \begin_inset Phantom Phantom
41567 \begin_layout Plain Layout
41577 \begin_layout Plain Layout
41589 <cell alignment="center" valignment="top" usebox="none">
41592 \begin_layout Plain Layout
41596 \begin_layout Plain Layout
41609 \begin_layout Plain Layout
41617 \begin_inset Phantom Phantom
41620 \begin_layout Plain Layout
41630 \begin_layout Plain Layout
41642 <cell alignment="center" valignment="top" usebox="none">
41645 \begin_layout Plain Layout
41649 \begin_layout Plain Layout
41662 \begin_layout Plain Layout
41670 \begin_inset Phantom Phantom
41673 \begin_layout Plain Layout
41683 \begin_layout Plain Layout
41695 <cell alignment="center" valignment="top" usebox="none">
41698 \begin_layout Plain Layout
41702 \begin_layout Plain Layout
41715 \begin_layout Plain Layout
41723 \begin_inset Phantom Phantom
41726 \begin_layout Plain Layout
41736 \begin_layout Plain Layout
41750 <cell alignment="left" valignment="top" usebox="none">
41753 \begin_layout Plain Layout
41757 \begin_layout Plain Layout
41770 \begin_layout Plain Layout
41778 \begin_inset Phantom Phantom
41781 \begin_layout Plain Layout
41791 \begin_layout Plain Layout
41803 <cell alignment="left" valignment="top" usebox="none">
41806 \begin_layout Plain Layout
41810 \begin_layout Plain Layout
41823 \begin_layout Plain Layout
41831 \begin_inset Phantom Phantom
41834 \begin_layout Plain Layout
41844 \begin_layout Plain Layout
41856 <cell alignment="left" valignment="top" usebox="none">
41859 \begin_layout Plain Layout
41863 \begin_layout Plain Layout
41876 \begin_layout Plain Layout
41884 \begin_inset Phantom Phantom
41887 \begin_layout Plain Layout
41897 \begin_layout Plain Layout
41909 <cell alignment="left" valignment="top" usebox="none">
41912 \begin_layout Plain Layout
41916 \begin_layout Plain Layout
41929 \begin_layout Plain Layout
41937 \begin_inset Phantom Phantom
41940 \begin_layout Plain Layout
41950 \begin_layout Plain Layout
41964 <cell alignment="left" valignment="top" usebox="none">
41967 \begin_layout Plain Layout
41971 \begin_layout Plain Layout
41984 \begin_layout Plain Layout
41992 \begin_inset Phantom Phantom
41995 \begin_layout Plain Layout
42005 \begin_layout Plain Layout
42017 <cell alignment="left" valignment="top" usebox="none">
42020 \begin_layout Plain Layout
42024 \begin_layout Plain Layout
42037 \begin_layout Plain Layout
42045 \begin_inset Phantom Phantom
42048 \begin_layout Plain Layout
42058 \begin_layout Plain Layout
42070 <cell alignment="left" valignment="top" usebox="none">
42073 \begin_layout Plain Layout
42077 \begin_layout Plain Layout
42090 \begin_layout Plain Layout
42098 \begin_inset Phantom Phantom
42101 \begin_layout Plain Layout
42111 \begin_layout Plain Layout
42123 <cell alignment="left" valignment="top" usebox="none">
42126 \begin_layout Plain Layout
42130 \begin_layout Plain Layout
42143 \begin_layout Plain Layout
42151 \begin_inset Phantom Phantom
42154 \begin_layout Plain Layout
42164 \begin_layout Plain Layout
42178 <cell alignment="left" valignment="top" usebox="none">
42181 \begin_layout Plain Layout
42185 \begin_layout Plain Layout
42198 \begin_layout Plain Layout
42206 \begin_inset Phantom Phantom
42209 \begin_layout Plain Layout
42219 \begin_layout Plain Layout
42231 <cell alignment="left" valignment="top" usebox="none">
42234 \begin_layout Plain Layout
42238 \begin_layout Plain Layout
42251 \begin_layout Plain Layout
42259 \begin_inset Phantom Phantom
42262 \begin_layout Plain Layout
42272 \begin_layout Plain Layout
42284 <cell alignment="left" valignment="top" usebox="none">
42287 \begin_layout Plain Layout
42291 \begin_layout Plain Layout
42304 \begin_layout Plain Layout
42312 \begin_inset Phantom Phantom
42315 \begin_layout Plain Layout
42325 \begin_layout Plain Layout
42337 <cell alignment="left" valignment="top" usebox="none">
42340 \begin_layout Plain Layout
42344 \begin_layout Plain Layout
42357 \begin_layout Plain Layout
42365 \begin_inset Phantom Phantom
42368 \begin_layout Plain Layout
42378 \begin_layout Plain Layout
42392 <cell alignment="left" valignment="top" usebox="none">
42395 \begin_layout Plain Layout
42399 \begin_layout Plain Layout
42412 \begin_layout Plain Layout
42420 \begin_inset Phantom Phantom
42423 \begin_layout Plain Layout
42433 \begin_layout Plain Layout
42445 <cell alignment="left" valignment="top" usebox="none">
42448 \begin_layout Plain Layout
42452 \begin_layout Plain Layout
42465 \begin_layout Plain Layout
42473 \begin_inset Phantom Phantom
42476 \begin_layout Plain Layout
42486 \begin_layout Plain Layout
42498 <cell alignment="left" valignment="top" usebox="none">
42501 \begin_layout Plain Layout
42505 \begin_layout Plain Layout
42518 \begin_layout Plain Layout
42526 \begin_inset Phantom Phantom
42529 \begin_layout Plain Layout
42539 \begin_layout Plain Layout
42551 <cell alignment="left" valignment="top" usebox="none">
42554 \begin_layout Plain Layout
42558 \begin_layout Plain Layout
42571 \begin_layout Plain Layout
42579 \begin_inset Phantom Phantom
42582 \begin_layout Plain Layout
42592 \begin_layout Plain Layout
42606 <cell alignment="left" valignment="top" usebox="none">
42609 \begin_layout Plain Layout
42613 \begin_layout Plain Layout
42626 \begin_layout Plain Layout
42634 \begin_inset Phantom Phantom
42637 \begin_layout Plain Layout
42647 \begin_layout Plain Layout
42659 <cell alignment="left" valignment="top" usebox="none">
42662 \begin_layout Plain Layout
42666 \begin_layout Plain Layout
42679 \begin_layout Plain Layout
42687 \begin_inset Phantom Phantom
42690 \begin_layout Plain Layout
42700 \begin_layout Plain Layout
42712 <cell alignment="left" valignment="top" usebox="none">
42715 \begin_layout Plain Layout
42719 \begin_layout Plain Layout
42732 \begin_layout Plain Layout
42740 \begin_inset Phantom Phantom
42743 \begin_layout Plain Layout
42753 \begin_layout Plain Layout
42765 <cell alignment="left" valignment="top" usebox="none">
42768 \begin_layout Plain Layout
42772 \begin_layout Plain Layout
42785 \begin_layout Plain Layout
42793 \begin_inset Phantom Phantom
42796 \begin_layout Plain Layout
42806 \begin_layout Plain Layout
42820 <cell alignment="left" valignment="top" usebox="none">
42823 \begin_layout Plain Layout
42827 \begin_layout Plain Layout
42840 \begin_layout Plain Layout
42848 \begin_inset Phantom Phantom
42851 \begin_layout Plain Layout
42861 \begin_layout Plain Layout
42873 <cell alignment="left" valignment="top" usebox="none">
42876 \begin_layout Plain Layout
42880 \begin_layout Plain Layout
42893 \begin_layout Plain Layout
42901 \begin_inset Phantom Phantom
42904 \begin_layout Plain Layout
42914 \begin_layout Plain Layout
42926 <cell alignment="left" valignment="top" usebox="none">
42929 \begin_layout Plain Layout
42933 \begin_layout Plain Layout
42946 \begin_layout Plain Layout
42954 \begin_inset Phantom Phantom
42957 \begin_layout Plain Layout
42967 \begin_layout Plain Layout
42979 <cell alignment="left" valignment="top" usebox="none">
42982 \begin_layout Plain Layout
42986 \begin_layout Plain Layout
42999 \begin_layout Plain Layout
43007 \begin_inset Phantom Phantom
43010 \begin_layout Plain Layout
43020 \begin_layout Plain Layout
43034 <cell alignment="left" valignment="top" usebox="none">
43037 \begin_layout Plain Layout
43041 \begin_layout Plain Layout
43054 \begin_layout Plain Layout
43062 \begin_inset Phantom Phantom
43065 \begin_layout Plain Layout
43075 \begin_layout Plain Layout
43087 <cell alignment="left" valignment="top" usebox="none">
43090 \begin_layout Plain Layout
43094 \begin_layout Plain Layout
43107 \begin_layout Plain Layout
43115 \begin_inset Phantom Phantom
43118 \begin_layout Plain Layout
43128 \begin_layout Plain Layout
43140 <cell alignment="left" valignment="top" usebox="none">
43143 \begin_layout Plain Layout
43147 \begin_layout Plain Layout
43160 \begin_layout Plain Layout
43168 \begin_inset Phantom Phantom
43171 \begin_layout Plain Layout
43181 \begin_layout Plain Layout
43193 <cell alignment="left" valignment="top" usebox="none">
43196 \begin_layout Plain Layout
43200 \begin_layout Plain Layout
43213 \begin_layout Plain Layout
43221 \begin_inset Phantom Phantom
43224 \begin_layout Plain Layout
43234 \begin_layout Plain Layout
43248 <cell alignment="left" valignment="top" usebox="none">
43251 \begin_layout Plain Layout
43255 \begin_layout Plain Layout
43268 \begin_layout Plain Layout
43276 \begin_inset Phantom Phantom
43279 \begin_layout Plain Layout
43289 \begin_layout Plain Layout
43301 <cell alignment="left" valignment="top" usebox="none">
43304 \begin_layout Plain Layout
43308 \begin_layout Plain Layout
43321 \begin_layout Plain Layout
43329 \begin_inset Phantom Phantom
43332 \begin_layout Plain Layout
43342 \begin_layout Plain Layout
43354 <cell alignment="left" valignment="top" usebox="none">
43357 \begin_layout Plain Layout
43361 \begin_layout Plain Layout
43374 \begin_layout Plain Layout
43382 \begin_inset Phantom Phantom
43385 \begin_layout Plain Layout
43395 \begin_layout Plain Layout
43407 <cell alignment="left" valignment="top" usebox="none">
43410 \begin_layout Plain Layout
43414 \begin_layout Plain Layout
43427 \begin_layout Plain Layout
43435 \begin_inset Phantom Phantom
43438 \begin_layout Plain Layout
43448 \begin_layout Plain Layout
43462 <cell alignment="left" valignment="top" usebox="none">
43465 \begin_layout Plain Layout
43469 \begin_layout Plain Layout
43482 \begin_layout Plain Layout
43490 \begin_inset Phantom Phantom
43493 \begin_layout Plain Layout
43503 \begin_layout Plain Layout
43515 <cell alignment="left" valignment="top" usebox="none">
43518 \begin_layout Plain Layout
43522 \begin_layout Plain Layout
43535 \begin_layout Plain Layout
43543 \begin_inset Phantom Phantom
43546 \begin_layout Plain Layout
43556 \begin_layout Plain Layout
43568 <cell alignment="left" valignment="top" usebox="none">
43571 \begin_layout Plain Layout
43575 \begin_layout Plain Layout
43588 \begin_layout Plain Layout
43596 \begin_inset Phantom Phantom
43599 \begin_layout Plain Layout
43609 \begin_layout Plain Layout
43621 <cell alignment="left" valignment="top" usebox="none">
43624 \begin_layout Plain Layout
43628 \begin_layout Plain Layout
43641 \begin_layout Plain Layout
43649 \begin_inset Phantom Phantom
43652 \begin_layout Plain Layout
43662 \begin_layout Plain Layout
43676 <cell alignment="left" valignment="top" usebox="none">
43679 \begin_layout Plain Layout
43683 \begin_layout Plain Layout
43696 \begin_layout Plain Layout
43704 \begin_inset Phantom Phantom
43707 \begin_layout Plain Layout
43717 \begin_layout Plain Layout
43729 <cell alignment="left" valignment="top" usebox="none">
43732 \begin_layout Plain Layout
43738 <cell alignment="left" valignment="top" usebox="none">
43741 \begin_layout Plain Layout
43747 <cell alignment="left" valignment="top" usebox="none">
43750 \begin_layout Plain Layout
43764 \begin_layout Chapter
43765 Explanation of Equation
43766 \begin_inset space ~
43770 \begin_inset CommandInset ref
43777 \begin_inset CommandInset label
43779 name "cha:Explanation-of-Equation"
43786 \begin_layout Standard
43787 We can calculate the total width of
43792 \begin_inset Formula $W_{\mathrm{tot\, n}}$
43796 \begin_inset Formula
43798 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
43804 \begin_inset Formula $W_{g\, n}$
43807 is the given width of all cells,
43813 is the LaTeX-length between the cell text and the cell border (its default
43815 \begin_inset space \thinspace{}
43825 is the thickness of the cell border line, the default is 0.4
43826 \begin_inset space \thinspace{}
43832 \begin_layout Standard
43834 \begin_inset space ~
43838 \begin_inset CommandInset ref
43840 reference "eq:Wtot_n"
43844 , the total width of a multicolumn
43845 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
43849 \begin_inset Formula
43851 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
43859 \begin_layout Standard
43860 By setting equation
43861 \begin_inset space ~
43865 \begin_inset CommandInset ref
43867 reference "eq:Wtot_n"
43872 \begin_inset CommandInset ref
43874 reference "eq:Wtot_mult"
43878 equal we can calculate the needed given width
43879 \begin_inset Formula $W_{g\, n}$
43886 columns are spanned, so that each column has a total width of
43887 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
43891 \begin_inset Formula
43893 W_{g\, n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
43901 \begin_layout Bibliography
43902 \labelwidthstring Bibliography
43903 \begin_inset CommandInset bibitem
43904 LatexCommand bibitem
43905 key "latexcompanion"
43909 Frank Mittelbach and Michel Goossens:
43911 The LaTeX Companion Second Edition.
43914 Addison-Wesley, 2004
43917 \begin_layout Bibliography
43918 \labelwidthstring Bibliography
43919 \begin_inset CommandInset bibitem
43920 LatexCommand bibitem
43925 Helmut Kopka and Patrick W.
43928 A Guide to LaTeX Fourth Edition.
43931 Addison-Wesley, 2003
43934 \begin_layout Bibliography
43935 \labelwidthstring Bibliography
43936 \begin_inset CommandInset bibitem
43937 LatexCommand bibitem
43944 LaTeX: A Document Preparation System.
43947 Addison-Wesley, second edition, 1994
43950 \begin_layout Bibliography
43951 \labelwidthstring Bibliography
43952 \begin_inset CommandInset bibitem
43953 LatexCommand bibitem
43958 Documentation of the LaTeX-package
43961 \begin_inset CommandInset href
43964 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
43971 \begin_inset Index idx
43974 \begin_layout Plain Layout
43975 LaTeX-packages ! arydshln
43983 \begin_layout Bibliography
43984 \labelwidthstring Bibliography
43985 \begin_inset CommandInset bibitem
43986 LatexCommand bibitem
43991 Documentation of the LaTeX-package
43994 \begin_inset CommandInset href
43997 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
44004 \begin_inset Index idx
44007 \begin_layout Plain Layout
44008 LaTeX-packages ! booktabs
44016 \begin_layout Bibliography
44017 \labelwidthstring Bibliography
44018 \begin_inset CommandInset bibitem
44019 LatexCommand bibitem
44024 Documentation of the LaTeX-package
44027 \begin_inset CommandInset href
44030 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
44037 \begin_inset Index idx
44040 \begin_layout Plain Layout
44041 LaTeX-packages ! caption
44049 \begin_layout Bibliography
44050 \labelwidthstring Bibliography
44051 \begin_inset CommandInset bibitem
44052 LatexCommand bibitem
44057 Documentation of the LaTeX-package
44060 \begin_inset CommandInset href
44063 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
44070 \begin_inset Index idx
44073 \begin_layout Plain Layout
44074 LaTeX-packages ! diagbox
44082 \begin_layout Bibliography
44083 \labelwidthstring Bibliography
44084 \begin_inset CommandInset bibitem
44085 LatexCommand bibitem
44090 Documentation of the LaTeX-package
44093 \begin_inset CommandInset href
44096 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
44103 \begin_inset Index idx
44106 \begin_layout Plain Layout
44107 LaTeX-packages ! endfloat
44115 \begin_layout Bibliography
44116 \labelwidthstring Bibliography
44117 \begin_inset CommandInset bibitem
44118 LatexCommand bibitem
44123 Documentation of the LaTeX-package
44126 \begin_inset CommandInset href
44129 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
44136 \begin_inset Index idx
44139 \begin_layout Plain Layout
44140 LaTeX-packages ! footmisc
44148 \begin_layout Bibliography
44149 \labelwidthstring Bibliography
44150 \begin_inset CommandInset bibitem
44151 LatexCommand bibitem
44156 Documentation of the LaTeX-package
44159 \begin_inset CommandInset href
44162 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
44169 \begin_inset Index idx
44172 \begin_layout Plain Layout
44173 LaTeX-packages ! hyperref
44181 \begin_layout Bibliography
44182 \labelwidthstring Bibliography
44183 \begin_inset CommandInset bibitem
44184 LatexCommand bibitem
44189 Documentation of the LaTeX-package
44192 \begin_inset CommandInset href
44195 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
44202 \begin_inset Index idx
44205 \begin_layout Plain Layout
44206 LaTeX-packages ! hyperref
44214 \begin_layout Bibliography
44215 \labelwidthstring Bibliography
44216 \begin_inset CommandInset bibitem
44217 LatexCommand bibitem
44222 Documentation of the LaTeX-package
44225 \begin_inset CommandInset href
44228 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
44235 \begin_inset Index idx
44238 \begin_layout Plain Layout
44239 LaTeX-packages ! KOMA-Script
44247 \begin_layout Bibliography
44248 \labelwidthstring Bibliography
44249 \begin_inset CommandInset bibitem
44250 LatexCommand bibitem
44255 Documentation of the LaTeX-package
44258 \begin_inset CommandInset href
44261 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
44268 \begin_inset CommandInset href
44271 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
44276 \begin_inset Index idx
44279 \begin_layout Plain Layout
44280 LaTeX-packages ! lettrine
44288 \begin_layout Bibliography
44289 \labelwidthstring Bibliography
44290 \begin_inset CommandInset bibitem
44291 LatexCommand bibitem
44296 Documentation of the LaTeX-package
44299 \begin_inset CommandInset href
44302 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
44309 \begin_inset Index idx
44312 \begin_layout Plain Layout
44313 LaTeX-packages ! listings
44321 \begin_layout Bibliography
44322 \labelwidthstring Bibliography
44323 \begin_inset CommandInset bibitem
44324 LatexCommand bibitem
44329 Documentation of the LaTeX-package
44332 \begin_inset CommandInset href
44335 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
44342 \begin_inset Index idx
44345 \begin_layout Plain Layout
44346 LaTeX-packages ! marginnote
44354 \begin_layout Bibliography
44355 \labelwidthstring Bibliography
44356 \begin_inset CommandInset bibitem
44357 LatexCommand bibitem
44362 Documentation of the LaTeX-package
44365 \begin_inset CommandInset href
44368 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
44375 \begin_inset Index idx
44378 \begin_layout Plain Layout
44379 LaTeX-packages ! pdfpages
44387 \begin_layout Bibliography
44388 \labelwidthstring Bibliography
44389 \begin_inset CommandInset bibitem
44390 LatexCommand bibitem
44395 Documentation of the LaTeX-package
44398 \begin_inset CommandInset href
44401 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
44408 \begin_inset Index idx
44411 \begin_layout Plain Layout
44412 LaTeX-packages ! prettyref
44420 \begin_layout Bibliography
44421 \labelwidthstring Bibliography
44422 \begin_inset CommandInset bibitem
44423 LatexCommand bibitem
44428 Web page of the LaTeX-package
44431 \begin_inset CommandInset href
44434 target "http://tug.org/PSTricks/"
44441 \begin_inset Index idx
44444 \begin_layout Plain Layout
44445 LaTeX-packages ! PSTricks
44453 \begin_layout Bibliography
44454 \labelwidthstring Bibliography
44455 \begin_inset CommandInset bibitem
44456 LatexCommand bibitem
44461 Documentation of the LaTeX-package
44464 \begin_inset CommandInset href
44467 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
44474 \begin_inset Index idx
44477 \begin_layout Plain Layout
44478 LaTeX-packages ! refstyle
44486 \begin_layout Bibliography
44487 \labelwidthstring Bibliography
44488 \begin_inset CommandInset bibitem
44489 LatexCommand bibitem
44494 Documentation of the LaTeX-package
44497 \begin_inset CommandInset href
44500 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
44507 \begin_inset Index idx
44510 \begin_layout Plain Layout
44511 LaTeX-packages ! sidecap
44519 \begin_layout Bibliography
44520 \labelwidthstring Bibliography
44521 \begin_inset CommandInset bibitem
44522 LatexCommand bibitem
44528 \begin_inset CommandInset href
44531 target "http://wiki.lyx.org/LyX/NewInLyX20"
44535 about new features in
44542 \begin_layout Standard
44543 \begin_inset CommandInset index_print
44544 LatexCommand printindex