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 take care 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 can use only the image formats that can directly be embedded in the
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 here space 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 Additionally 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 for every longtable, even if you did
6494 not 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 have 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 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 anyway not satisfied with the border line spacing, you can use
15588 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 to 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 a separate standard paragraph
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 Floats\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, for figure floats, the command
23383 in the command above prints the table number as 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 A grey cross-reference box like this one:
23547 \begin_inset Graphics
23548 filename clipart/referenceQt4.png
23550 scaleBeforeRotation
23554 will be inserted and the cross-reference window appear showing all labels
23556 If you have multiple LyX-documents opened, choose the one you are working
23557 on from the drop-list at the top of the dialog.
23558 You can now sort the labels alphabetically and then choose one.
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 change its link to the
23573 new label text, so that you don't need to take care about this.
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.
23595 Right-clicking on a cross-reference box also sets the cursor before the
23596 referenced label but without the possibility of going back.
23599 \begin_layout Subsection
23600 Cross-Reference Formats
23601 \begin_inset CommandInset label
23603 name "sub:Cross-Reference-Formats"
23608 \begin_inset Index idx
23611 \begin_layout Plain Layout
23612 References ! Formats
23620 \begin_layout Standard
23621 There are six varieties of cross-references:
23624 \begin_layout Description
23625 <reference>: prints the float number, this is the default:
23626 \begin_inset CommandInset ref
23628 reference "fig:Two-distorted-images"
23635 \begin_layout Description
23636 (<reference>): prints the float number within two parentheses, this is the
23637 style normally used to reference formulas, especially when the reference
23639 \begin_inset Quotes eld
23643 \begin_inset Quotes erd
23647 \begin_inset CommandInset ref
23656 \begin_layout Description
23657 <page>: prints the page number: Page
23658 \begin_inset space ~
23662 \begin_inset CommandInset ref
23663 LatexCommand pageref
23664 reference "fig:Two-distorted-images"
23671 \begin_layout Description
23673 \begin_inset space ~
23677 \begin_inset space ~
23680 <page>: prints the text "on page" and the page number:
23681 \begin_inset CommandInset ref
23682 LatexCommand vpageref
23683 reference "fig:Two-distorted-images"
23690 \begin_layout Description
23692 \begin_inset space ~
23696 \begin_inset space ~
23700 \begin_inset space ~
23703 <page>: prints the float number, the text "on page", and the page number:
23705 \begin_inset CommandInset ref
23707 reference "fig:Two-distorted-images"
23714 \begin_layout Description
23716 \begin_inset space ~
23719 reference: prints a self-defined cross-reference format.
23720 \begin_inset Newline newline
23724 \begin_inset Note Greyedout
23727 \begin_layout Plain Layout
23732 This feature is only available when you have the LaTeX-package
23741 \begin_inset Index idx
23744 \begin_layout Plain Layout
23745 LaTeX-packages ! prettyref
23751 \begin_inset Index idx
23754 \begin_layout Plain Layout
23755 LaTeX-packages ! refstyle
23766 \begin_inset Newline newline
23769 You can select which LaTeX-package should be used for this feature by setting
23772 Use refstyle (not prettyref) for cross-references
23776 Document\SpecialChar \menuseparator
23777 Settings\SpecialChar \menuseparator
23781 The format is specified by adding the command
23793 (refstyle) to the preamble of the document.
23794 For example redefining all references to figures (which have the label
23796 \begin_inset Quotes eld
23804 \begin_inset Quotes erd
23807 ) can be done with this command
23808 \begin_inset Newline newline
23815 newref{fig}{refcmd={Image on page
23820 \begin_inset Newline newline
23823 For more information about the format, have a look at the package documentations
23825 \begin_inset CommandInset citation
23827 key "prettyref,refstyle"
23834 \begin_layout Description
23836 \begin_inset space ~
23839 reference: prints the caption of the reference:
23840 \begin_inset CommandInset ref
23841 LatexCommand nameref
23842 reference "fig:Two-distorted-images"
23849 \begin_layout Standard
23854 will not print the page number if the label is on the previous, the same,
23857 \begin_inset space \thinspace{}
23861 \begin_inset space \space{}
23865 \begin_inset Quotes eld
23873 \begin_inset Quotes erd
23879 <reference> on page <page>
23881 will not print anything about the page if the label is on the same page.
23884 \begin_layout Standard
23885 The number and current page of the part of the document referred to in the
23886 output is automatically calculated by LaTeX.
23887 The varieties are adjusted in the field
23891 of the cross-reference window that appears when you click on the cross-referenc
23895 \begin_layout Standard
23896 \begin_inset Note Greyedout
23899 \begin_layout Plain Layout
23904 It is recommended to use the LaTeX-package
23909 \begin_inset Index idx
23912 \begin_layout Plain Layout
23913 LaTeX-packages ! refstyle
23923 \begin_inset Index idx
23926 \begin_layout Plain Layout
23927 LaTeX-packages ! prettyref
23932 does not know all of LyX's possible label shortcuts
23936 \begin_layout Plain Layout
23937 \begin_inset Quotes eld
23941 \begin_inset Quotes erd
23944 is for example LyX's shortcut for labels in figure captions.
23949 and is not internationalized.
23957 \begin_layout Standard
23958 \begin_inset Note Greyedout
23961 \begin_layout Plain Layout
23966 Due to a bug in the LaTeX-package
23970 version 1.4w, some cross-reference formats will cause LaTeX errors for document
23971 languages that make the period character active (like French).
23972 For a workaround, see
23973 \begin_inset Newline newline
23977 \begin_inset CommandInset href
23979 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
23991 \begin_layout Subsection
23992 Automatic Reference Naming
23993 \begin_inset Index idx
23996 \begin_layout Plain Layout
23997 References ! Automatic Reference Naming
24005 \begin_layout Standard
24011 \begin_inset Index idx
24014 \begin_layout Plain Layout
24015 LaTeX-packages ! hyperref
24020 , that is enabled in the
24028 dialog, provides a very useful feature that cross-references automatically
24029 include the name of the referenced floats (or text parts like
24034 So you will save having to write e.
24035 \begin_inset space \thinspace{}
24039 \begin_inset space \space{}
24043 \begin_inset Quotes eld
24047 \begin_inset Quotes erd
24050 before every reference to a figure.
24051 To use this feature, enable
24055 and insert this line to the LaTeX preamble:
24058 \begin_layout Standard
24074 \begin_layout Standard
24075 When you prefer other reference names than the default ones, for example
24076 you want instead of
24077 \begin_inset Quotes eld
24081 \begin_inset Quotes erd
24085 \begin_inset Quotes eld
24089 \begin_inset space \thinspace{}
24093 \begin_inset Quotes eld
24096 , you can redefine the name by inserting this in the preamble:
24099 \begin_layout Standard
24110 sectionautorefname}
24111 \begin_inset Newline newline
24115 \begin_inset Phantom HPhantom
24118 \begin_layout Plain Layout
24121 \begin_inset space ~
24134 \begin_layout Standard
24135 When you are using another document language than English, replace
24136 \begin_inset Newline newline
24151 , where *** is the name of the language used.
24154 \begin_layout Standard
24155 To get automatic names, but not for certain reference types, for example
24156 not for equations, use this preamble code:
24159 \begin_layout Standard
24170 equationautorefname}[1]{}}
24173 \begin_layout Standard
24174 More about this topic can be found in
24179 \begin_inset CommandInset citation
24188 \begin_layout Standard
24189 \begin_inset Note Greyedout
24192 \begin_layout Plain Layout
24197 Automatic reference naming cannot be used when you use cross-references
24201 \begin_inset space ~
24206 style, as described in section
24207 \begin_inset space ~
24211 \begin_inset CommandInset ref
24213 reference "sub:Cross-Reference-Formats"
24225 \begin_layout Standard
24230 manual is an example where automatic reference naming is used.
24233 \begin_layout Subsection
24235 \begin_inset CommandInset label
24237 name "sub:Reference-Position"
24242 \begin_inset Index idx
24245 \begin_layout Plain Layout
24246 References ! Reference Position
24254 \begin_layout Standard
24260 \begin_inset Index idx
24263 \begin_layout Plain Layout
24264 LaTeX-packages ! hyperref
24277 dialog to link cross-references in the output, you will see that clicking
24278 on an image float reference jumps to the image label.
24279 The caption will be the first text part on the screen, so that you cannot
24280 see the image without scrolling.
24281 This is because the reference link anchor is placed at the position of
24283 With the use of the package
24288 \begin_inset Index idx
24291 \begin_layout Plain Layout
24292 LaTeX-packages ! hypcap
24297 , which is part of the LaTeX-package
24302 \begin_inset Index idx
24305 \begin_layout Plain Layout
24306 LaTeX-packages ! oberdiek
24311 , the link anchor is placed at the beginning of a float.
24312 To use this feature for figure floats, load
24316 in the document preamble with the line
24319 \begin_layout Standard
24324 usepackage[figure]{hypcap}
24327 \begin_layout Standard
24332 for all float types but this is not recommended for stability reasons.
24333 For more information, have a look at
24338 \begin_inset CommandInset citation
24347 \begin_layout Standard
24348 \begin_inset Note Greyedout
24351 \begin_layout Plain Layout
24360 has no effect on references to subfigures.
24368 \begin_layout Section
24370 \begin_inset CommandInset label
24372 name "sec:Float-Placement"
24377 \begin_inset Index idx
24380 \begin_layout Plain Layout
24389 \begin_layout Standard
24390 Right-clicking on a float-box opens a dialog where you can alter the placement
24391 options that LaTeX uses for positioning the float.
24392 \begin_inset Newline newline
24398 \begin_inset space ~
24403 is only useful for two-column documents: If you select it, the float will
24404 span both columns on the page instead of being confined to just one.
24405 \begin_inset Newline newline
24411 \begin_inset space ~
24416 is used to rotate floats, see section
24417 \begin_inset CommandInset ref
24419 reference "sec:Rotated-Floats"
24426 \begin_layout Standard
24427 You can use one ore more of the following options in the float dialog to
24428 set the placement for a particular float when you uncheck the option
24431 \begin_inset space ~
24435 \begin_inset space ~
24443 \begin_layout Description
24445 \begin_inset space ~
24449 \begin_inset space ~
24452 possible try to place the float on the position where it has been inserted
24455 \begin_layout Description
24457 \begin_inset space ~
24461 \begin_inset space ~
24464 page try to place the float at the top of the current page
24467 \begin_layout Description
24469 \begin_inset space ~
24473 \begin_inset space ~
24476 page try to place the float at the bottom of the current page
24479 \begin_layout Description
24481 \begin_inset space ~
24485 \begin_inset space ~
24488 floats try to place the float on its own page
24491 \begin_layout Standard
24492 The order of the above option is
24497 That means, if you use the default placement, LaTeX will first try out
24501 \begin_inset space ~
24505 \begin_inset space ~
24513 \begin_inset space ~
24517 \begin_inset space ~
24522 , and then the others.
24523 If you do not use the default, LaTeX will try only the checked options
24524 but in the same order.
24526 \begin_inset space ~
24529 placements are possible the procedure is internally repeated but it is tried
24530 to put the float on the following page.
24533 \begin_layout Standard
24534 By default, each option has its own rules:
24537 \begin_layout Labeling
24538 \labelwidthstring 00.00.0000
24542 \begin_inset space ~
24546 \begin_inset space ~
24551 only floats occupying less than 70
24552 \begin_inset space \thinspace{}
24555 % of the page can be placed at the top of a page (
24564 \begin_layout Labeling
24565 \labelwidthstring 00.00.0000
24569 \begin_inset space ~
24573 \begin_inset space ~
24578 : only floats occupying less than 30
24579 \begin_inset space \thinspace{}
24582 % of the page can be placed at the bottom of a page.
24592 \begin_layout Labeling
24593 \labelwidthstring 00.00.0000
24597 \begin_inset space ~
24601 \begin_inset space ~
24606 : only if more than 50
24607 \begin_inset space \thinspace{}
24610 % of the page are occupied by floats, several floats can be set together
24621 \begin_layout Standard
24622 If you don't like these rules, you can ignore them by using the additional
24626 \begin_inset space ~
24630 \begin_inset space ~
24636 \begin_inset Newline newline
24639 You can also redefine the rules with LaTeX-commands that are given in parenthese
24640 s after the rules description above.
24641 To increase for example the often too small default of the bottom-rule
24643 \begin_inset space \thinspace{}
24646 % of the page, add this line to your document preamble:
24649 \begin_layout Standard
24656 bottomfraction}{0.5}
24659 \begin_layout Standard
24660 Sometimes you might need, under all circumstances, a float to be placed
24661 exactly at the position where it is inserted.
24662 For this case you can use the option
24665 \begin_inset space ~
24671 Use this option very rarely and only if the document is almost ready to
24672 be printed, because the float is then no longer able to
24673 \begin_inset Quotes eld
24677 \begin_inset Quotes erd
24680 when you change your document and this will often destroy the page layout.
24683 \begin_layout Standard
24684 There are no placement options for text wrap floats, because they are always
24685 surrounded by the text of a certain paragraph.
24686 \begin_inset VSpace bigskip
24692 \begin_layout Standard
24693 Sometimes you have the problem that a float is placed at the top of a page
24694 while its corresponding section starts at the middle of the page, so that
24695 the reader could think the float is part of the previous section.
24696 To avoid this the LaTeX-command
24703 It suppresses a given float placement for the page where it is inserted
24704 and can therefore be used to avoid floats being set before a section starts.
24705 To get this, add these commands to your document preamble:
24708 \begin_layout Standard
24718 \begin_inset Newline newline
24732 \begin_layout Standard
24733 You can define the same for all section headings, like chapters and subsections.
24734 This definition is not recommended to be used for small text parts like
24735 subsubsections because LaTeX may then have problems finding a suitable
24739 \begin_layout Standard
24740 \begin_inset VSpace bigskip
24743 In some cases it is required to have all figures/tables at the end of the
24745 For this purpose the LaTeX-package
24750 \begin_inset Index idx
24753 \begin_layout Plain Layout
24754 LaTeX-packages ! endfloat
24760 It puts all figure and table floats at the end of the document into their
24762 At the original float position a text hint like
24763 \begin_inset Quotes eld
24769 \begin_inset space ~
24775 \begin_inset Quotes erd
24779 The endfloat-package is loaded in the preamble with the line
24782 \begin_layout Standard
24787 usepackage[options]{endfloat}
24790 \begin_layout Standard
24791 There are various package options to format the created figure/table sections.
24792 For more information we refer to the
24797 \begin_inset CommandInset citation
24804 \begin_inset Newline newline
24808 \begin_inset Note Greyedout
24811 \begin_layout Plain Layout
24816 doesn't provide an automatic translation for the text hint, you have to
24817 do this manually, see section
24818 \begin_inset space ~
24822 \begin_inset CommandInset citation
24834 \begin_inset Newline newline
24838 \begin_inset Note Greyedout
24841 \begin_layout Plain Layout
24846 There is currently a bug in
24850 when the caption contains a German
24851 \begin_inset Quotes eld
24855 \begin_inset Quotes erd
24859 Use in this case the command
24860 \begin_inset Quotes eld
24870 \begin_inset Quotes erd
24873 in TeX-Code instead of
24874 \begin_inset Quotes eld
24878 \begin_inset Quotes erd
24889 \begin_layout Standard
24890 \begin_inset VSpace bigskip
24893 For more details about float placements, have a look at LaTeX books,
24894 \begin_inset CommandInset citation
24896 key "latexcompanion,latexguide,latexbook"
24903 \begin_layout Section
24905 \begin_inset CommandInset label
24907 name "sec:Rotated-Floats"
24912 \begin_inset Index idx
24915 \begin_layout Plain Layout
24924 \begin_layout Standard
24925 Especially for wide tables you might have floats rotated.
24926 To rotate a whole float including the caption, right-click on the float-box
24930 \begin_inset space ~
24938 \begin_layout Standard
24939 Rotated floats are always placed on a page of their own (or column of their
24940 own; in case you have a multi-column document).
24941 You can let them span several columns using the float settings option
24944 \begin_inset space ~
24950 Floats are rotated so that you can read them from the outside margin.
24951 To force a certain rotation direction for all pages, you can add either
24960 to the document class options.
24963 \begin_layout Standard
24964 Referencing rotated floats is the same as for normal floats, the caption
24965 format is also the same: Table
24966 \begin_inset space ~
24970 \begin_inset CommandInset ref
24972 reference "tab:Rotated-table"
24976 is an example of a rotated table float.
24979 \begin_layout Standard
24980 \begin_inset Note Greyedout
24983 \begin_layout Plain Layout
24988 Not all DVI-viewers are able to display rotated floats.
24996 \begin_layout Standard
24997 \begin_inset Float table
25002 \begin_layout Plain Layout
25003 \begin_inset Caption
25005 \begin_layout Plain Layout
25006 \begin_inset CommandInset label
25008 name "tab:Rotated-table"
25020 \begin_layout Plain Layout
25022 \begin_inset Tabular
25023 <lyxtabular version="3" rows="1" columns="5">
25024 <features tabularvalignment="middle">
25025 <column alignment="center" valignment="top" width="0">
25026 <column alignment="center" valignment="top" width="0">
25027 <column alignment="center" valignment="top" width="0">
25028 <column alignment="center" valignment="top" width="0">
25029 <column alignment="center" valignment="top" width="0">
25031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25034 \begin_layout Plain Layout
25040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25043 \begin_layout Plain Layout
25049 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25052 \begin_layout Plain Layout
25058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25061 \begin_layout Plain Layout
25067 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25070 \begin_layout Plain Layout
25089 \begin_layout Section
25091 \begin_inset Index idx
25094 \begin_layout Plain Layout
25103 \begin_layout Standard
25104 Subfloats are for example used when a figure consists of several images.
25105 They are created by inserting a float into an existing float.
25106 The placement of the subfloats can be controlled in the same way as for
25107 paragraphs as shown in table
25108 \begin_inset space ~
25112 \begin_inset CommandInset ref
25114 reference "tab:Two-subtables-side"
25119 \begin_inset CommandInset ref
25121 reference "tab:Two-subtables-upon"
25128 \begin_layout Standard
25129 Referencing subfloats works as for normal floats: Table
25130 \begin_inset space ~
25134 \begin_inset CommandInset ref
25136 reference "tab:This-is-subtable-a"
25141 \begin_inset CommandInset ref
25143 reference "tab:This-is-subtable-b"
25147 are subtables of table
25148 \begin_inset space ~
25152 \begin_inset CommandInset ref
25154 reference "tab:Two-subtables-side"
25161 \begin_layout Standard
25162 \begin_inset Float table
25167 \begin_layout Plain Layout
25168 \begin_inset Caption
25170 \begin_layout Plain Layout
25171 \begin_inset CommandInset label
25173 name "tab:Two-subtables-side"
25177 Two subtables placed side by side.
25185 \begin_layout Plain Layout
25187 \begin_inset space \hfill{}
25191 \begin_inset Float table
25196 \begin_layout Plain Layout
25197 \begin_inset Caption
25199 \begin_layout Plain Layout
25200 \begin_inset CommandInset label
25202 name "tab:This-is-subtable-a"
25206 This is subtable a.
25214 \begin_layout Plain Layout
25216 \begin_inset Tabular
25217 <lyxtabular version="3" rows="1" columns="5">
25218 <features tabularvalignment="middle">
25219 <column alignment="center" valignment="top" width="0">
25220 <column alignment="center" valignment="top" width="0">
25221 <column alignment="center" valignment="top" width="0">
25222 <column alignment="center" valignment="top" width="0">
25223 <column alignment="center" valignment="top" width="0">
25225 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25228 \begin_layout Plain Layout
25234 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25237 \begin_layout Plain Layout
25243 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25246 \begin_layout Plain Layout
25252 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25255 \begin_layout Plain Layout
25261 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25264 \begin_layout Plain Layout
25281 \begin_inset space \hfill{}
25285 \begin_inset Float table
25290 \begin_layout Plain Layout
25291 \begin_inset Caption
25293 \begin_layout Plain Layout
25294 \begin_inset CommandInset label
25296 name "tab:This-is-subtable-b"
25300 This is subtable b.
25308 \begin_layout Plain Layout
25310 \begin_inset Tabular
25311 <lyxtabular version="3" rows="1" columns="5">
25312 <features tabularvalignment="middle">
25313 <column alignment="center" valignment="top" width="0">
25314 <column alignment="center" valignment="top" width="0">
25315 <column alignment="center" valignment="top" width="0">
25316 <column alignment="center" valignment="top" width="0">
25317 <column alignment="center" valignment="top" width="0">
25319 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25322 \begin_layout Plain Layout
25328 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25331 \begin_layout Plain Layout
25337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25340 \begin_layout Plain Layout
25346 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25349 \begin_layout Plain Layout
25355 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25358 \begin_layout Plain Layout
25375 \begin_inset space \hfill{}
25386 \begin_layout Standard
25387 \begin_inset Float table
25392 \begin_layout Plain Layout
25393 \begin_inset Caption
25395 \begin_layout Plain Layout
25396 \begin_inset CommandInset label
25398 name "tab:Two-subtables-upon"
25402 Two subtables placed one above the other.
25403 (a) table with 4 cells, (b) table with 5 cells.
25411 \begin_layout Plain Layout
25413 \begin_inset Float table
25418 \begin_layout Plain Layout
25419 \begin_inset Caption
25421 \begin_layout Plain Layout
25430 \begin_layout Plain Layout
25432 \begin_inset Tabular
25433 <lyxtabular version="3" rows="1" columns="4">
25434 <features tabularvalignment="middle">
25435 <column alignment="center" valignment="top" width="0">
25436 <column alignment="center" valignment="top" width="0">
25437 <column alignment="center" valignment="top" width="0">
25438 <column alignment="center" valignment="top" width="0">
25440 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25443 \begin_layout Plain Layout
25449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25452 \begin_layout Plain Layout
25458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25461 \begin_layout Plain Layout
25467 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25470 \begin_layout Plain Layout
25489 \begin_layout Plain Layout
25491 \begin_inset Float table
25496 \begin_layout Plain Layout
25497 \begin_inset Caption
25499 \begin_layout Plain Layout
25508 \begin_layout Plain Layout
25510 \begin_inset Tabular
25511 <lyxtabular version="3" rows="1" columns="5">
25512 <features tabularvalignment="middle">
25513 <column alignment="center" valignment="top" width="0">
25514 <column alignment="center" valignment="top" width="0">
25515 <column alignment="center" valignment="top" width="0">
25516 <column alignment="center" valignment="top" width="0">
25517 <column alignment="center" valignment="top" width="0">
25519 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25522 \begin_layout Plain Layout
25528 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25531 \begin_layout Plain Layout
25537 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25540 \begin_layout Plain Layout
25546 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25549 \begin_layout Plain Layout
25555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25558 \begin_layout Plain Layout
25582 \begin_layout Section
25583 Floats Side by Side
25584 \begin_inset Index idx
25587 \begin_layout Plain Layout
25588 Floats ! Side by side
25596 \begin_layout Standard
25597 To place floats side by side, as in Figures
25598 \begin_inset space ~
25602 \begin_inset CommandInset ref
25604 reference "fig:Float-left"
25609 \begin_inset CommandInset ref
25611 reference "fig:Float-right"
25620 In it two minipage boxes are inserted.
25624 \begin_layout Plain Layout
25625 Minipages are explained in section
25626 \begin_inset space ~
25630 \begin_inset CommandInset ref
25632 reference "sec:Minipages"
25641 The width is set to 45
25642 \begin_inset space \thinspace{}
25646 \begin_inset space \thinspace{}
25649 column% and the box alignment to
25654 The minipage boxes contain the image and the caption in the same way as
25655 they are in a float.
25656 The only difference is that the image unit
25659 \begin_inset space ~
25663 \begin_inset space ~
25668 is now calculated according to the width of the minipage boxes.
25671 \begin_layout Standard
25672 \begin_inset Float figure
25677 \begin_layout Plain Layout
25678 \begin_inset Box Frameless
25688 height_special "totalheight"
25691 \begin_layout Plain Layout
25693 \begin_inset Graphics
25694 filename clipart/mobius.eps
25697 scaleBeforeRotation
25704 \begin_layout Plain Layout
25705 \begin_inset Caption
25707 \begin_layout Plain Layout
25708 \begin_inset CommandInset label
25710 name "fig:Float-left"
25714 Float on the left side.
25725 \begin_inset space \hfill{}
25729 \begin_inset Box Frameless
25739 height_special "totalheight"
25742 \begin_layout Plain Layout
25744 \begin_inset Graphics
25745 filename clipart/platypus.eps
25748 scaleBeforeRotation
25755 \begin_layout Plain Layout
25756 \begin_inset Caption
25758 \begin_layout Plain Layout
25759 \begin_inset CommandInset label
25761 name "fig:Float-right"
25765 Float on the right side.
25778 \begin_layout Plain Layout
25787 \begin_layout Section
25789 \begin_inset Index idx
25792 \begin_layout Plain Layout
25793 Caption ! Formatting
25799 \begin_inset Index idx
25802 \begin_layout Plain Layout
25803 Floats ! Caption Formatting
25809 \begin_inset CommandInset label
25811 name "sec:Caption-Formatting"
25818 \begin_layout Standard
25823 environment is the default paragraph environment for
25828 On the LyX screen captions appear as label, e.
25829 \begin_inset space \thinspace{}
25833 \begin_inset space \space{}
25837 \begin_inset Quotes eld
25845 \begin_inset Quotes erd
25848 followed by the caption text.
25850 \begin_inset Quotes eld
25854 \begin_inset Quotes erd
25857 is the actual reference number.
25858 By default the label and the number are in the same font as the caption
25859 text and a colon follows the number to divide the label from the text.
25860 This caption format is not suitable for all document formats.
25864 \begin_layout Standard
25865 To change the default caption format, load the LaTeX-package
25870 \begin_inset Index idx
25873 \begin_layout Plain Layout
25874 LaTeX-packages ! caption
25879 in the document preamble with this line:
25882 \begin_layout Standard
25887 usepackage[format definition]{caption}
25890 \begin_layout Standard
25891 To have for example the label and the number in sans-serif bold font and
25892 the table captions always above the table as in this document, use the
25896 \begin_layout Standard
25901 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
25904 \begin_layout Standard
25905 You can also define different caption formats for the different float types.
25906 In this case load the
25910 package without format specific options and define the different formats
25911 with the help of the command
25914 \begin_layout Standard
25919 captionsetup[float type]{format definition}
25922 \begin_layout Standard
25923 in the document preamble.
25924 For example the caption formats of Figure
25925 \begin_inset space ~
25929 \begin_inset CommandInset ref
25931 reference "fig:This-is-an-fig"
25936 \begin_inset space ~
25940 \begin_inset CommandInset ref
25942 reference "tab:This-is-an-tab"
25946 can be created using these commands in the document preamble:
25949 \begin_layout Standard
25954 usepackage[tableposition=top]{caption}
25957 \begin_inset Newline newline
25964 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
25965 \begin_inset Newline newline
25969 \begin_inset Phantom HPhantom
25972 \begin_layout Plain Layout
25977 captionsetup[figure]{
25983 \begin_inset Newline newline
25988 captionsetup[table]{labelfont={bf,sf}}
25991 \begin_layout Standard
25992 \begin_inset Note Greyedout
25995 \begin_layout Plain Layout
26004 has no effect when a
26009 \begin_inset Index idx
26012 \begin_layout Plain Layout
26013 LaTeX-packages ! KOMA-Script
26018 document class is used.
26019 In this case the document class option
26021 captions=tableheading
26031 \begin_layout Standard
26032 For more information about the package
26036 we refer to its documentation
26037 \begin_inset CommandInset citation
26046 \begin_layout Standard
26047 To change the label name from e.
26048 \begin_inset space \thinspace{}
26052 \begin_inset space \space{}
26056 \begin_inset Quotes eld
26060 \begin_inset Quotes erd
26064 \begin_inset Quotes eld
26068 \begin_inset Quotes erd
26071 use this preamble command:
26074 \begin_layout Standard
26081 fnum@figure}{Image~
26086 \begin_layout Standard
26093 inserts the figure number and
26096 \begin_inset Quotes eld
26102 \begin_inset Quotes erd
26105 creates a protected space.
26108 \begin_layout Standard
26109 \begin_inset VSpace bigskip
26117 \begin_inset Index idx
26120 \begin_layout Plain Layout
26121 LaTeX-packages ! KOMA-Script
26128 article (KOMA-Script)
26136 letter (KOMA-Script)
26140 report (KOMA-Script)
26143 \begin_inset space \thinspace{}
26146 ), you can alternatively to the
26154 's built-in command
26161 For example, to have the caption label in bold, add this command to your
26165 \begin_layout Standard
26170 setkomafont{captionlabel}{
26175 \begin_layout Standard
26176 For more information about
26187 \begin_inset CommandInset citation
26196 \begin_layout Standard
26200 \begin_layout Plain Layout
26204 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
26211 \begin_inset Note Note
26214 \begin_layout Plain Layout
26215 The caption format is changed only for this example.
26223 \begin_layout Standard
26224 \begin_inset Float figure
26230 \begin_layout Plain Layout
26232 \begin_inset Graphics
26233 filename clipart/mobius.eps
26236 scaleBeforeRotation
26243 \begin_layout Plain Layout
26244 \begin_inset Caption
26246 \begin_layout Plain Layout
26247 \begin_inset CommandInset label
26249 name "fig:This-is-an-fig"
26253 This is an example figure caption that is longer than one line to show the
26254 different caption format.
26255 Here a self-defined caption format is used.
26268 \begin_layout Standard
26272 \begin_layout Plain Layout
26276 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
26285 \begin_layout Standard
26286 \begin_inset Float table
26292 \begin_layout Plain Layout
26293 \begin_inset Caption
26295 \begin_layout Plain Layout
26296 \begin_inset CommandInset label
26298 name "tab:This-is-an-tab"
26302 This is an example table caption that is longer than one line to show the
26303 different caption format.
26304 Here the standard caption format for tables in this document is used.
26312 \begin_layout Plain Layout
26314 \begin_inset Tabular
26315 <lyxtabular version="3" rows="1" columns="5">
26316 <features tabularvalignment="middle">
26317 <column alignment="center" valignment="top" width="0">
26318 <column alignment="center" valignment="top" width="0">
26319 <column alignment="center" valignment="top" width="0">
26320 <column alignment="center" valignment="top" width="0">
26321 <column alignment="center" valignment="top" width="0">
26323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26326 \begin_layout Plain Layout
26332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26335 \begin_layout Plain Layout
26341 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26344 \begin_layout Plain Layout
26350 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26353 \begin_layout Plain Layout
26359 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26362 \begin_layout Plain Layout
26381 \begin_layout Section
26383 \begin_inset Index idx
26386 \begin_layout Plain Layout
26387 Caption ! Placement
26393 \begin_inset Index idx
26396 \begin_layout Plain Layout
26397 Floats ! Caption Placement
26403 \begin_inset CommandInset label
26405 name "sec:Caption-Placement"
26412 \begin_layout Standard
26413 The common caption placement rule is:
26416 \begin_layout Description
26417 Figure: Caption is set below the figure
26420 \begin_layout Description
26421 Table: Caption is set above the table
26424 \begin_layout Standard
26425 Having the caption above the table is unfortunately not supported in LaTeX's
26427 That means if you are using the document classes
26443 there will be no space between the caption and the table.
26444 To insert the necessary space, add the following option to the load command
26445 of the LaTeX-package
26449 in your document preamble
26453 \begin_layout Plain Layout
26455 \begin_inset space ~
26459 \begin_inset CommandInset ref
26461 reference "sec:Caption-Formatting"
26465 for more information of the package
26477 \begin_layout Standard
26483 \begin_layout Standard
26489 \begin_inset Index idx
26492 \begin_layout Plain Layout
26493 LaTeX-packages ! KOMA-Script
26500 article (KOMA-Script)
26508 letter (KOMA-Script)
26512 report (KOMA-Script)
26515 \begin_inset space \thinspace{}
26518 ), you can alternatively to the
26522 package set the document class option
26524 captions=tableheading
26529 \begin_layout Standard
26530 \begin_inset VSpace bigskip
26533 It is also possible to set the caption beside a figure or table.
26534 To get this the LaTeX-package
26539 \begin_inset Index idx
26542 \begin_layout Plain Layout
26543 LaTeX-packages ! sidecap
26548 has to be loaded in the document preamble with the line
26551 \begin_layout Standard
26556 usepackage[option]{sidecap}
26559 \begin_layout Standard
26560 If you set no option, the caption is placed on the side of the outer page
26561 margin – to the right on odd pages, to the left on even pages.
26562 You can change the placement to inner margin with the option
26567 To force the placement always to the right or left, use the option
26578 \begin_layout Standard
26582 \begin_layout Plain Layout
26592 \begin_inset Note Note
26595 \begin_layout Plain Layout
26596 The following section will only be displayed when the LaTeX-package
26608 \begin_layout Standard
26609 To place in LyX the caption of a float on the side, it is necessary to add
26610 these commands to the document preamble:
26613 \begin_layout Standard
26614 \begin_inset Newpage pagebreak
26620 \begin_layout Standard
26622 \begin_inset CommandInset line
26633 \begin_layout Standard
26640 TabBesBeg}[1][1.0]{%
26641 \begin_inset Newline newline
26645 \begin_inset Phantom HPhantom
26648 \begin_layout Plain Layout
26649 \begin_inset space ~
26664 \begin_inset Newline newline
26668 \begin_inset Phantom HPhantom
26671 \begin_layout Plain Layout
26674 \begin_inset space ~
26689 \begin_inset Newline newline
26693 \begin_inset Phantom HPhantom
26696 \begin_layout Plain Layout
26699 \begin_inset space ~
26709 renewenvironment{table}[1]{
26711 begin{SCtable}[#1]##1}{
26716 \begin_layout Standard
26724 \begin_inset Newline newline
26728 \begin_inset Phantom HPhantom
26731 \begin_layout Plain Layout
26732 \begin_inset space ~
26747 \begin_inset Newline newline
26751 \begin_inset Phantom HPhantom
26754 \begin_layout Plain Layout
26755 \begin_inset space ~
26772 \begin_layout Standard
26779 FigBesBeg}[1][1.0]{%
26780 \begin_inset Newline newline
26784 \begin_inset Phantom HPhantom
26787 \begin_layout Plain Layout
26788 \begin_inset space ~
26803 \begin_inset Newline newline
26807 \begin_inset Phantom HPhantom
26810 \begin_layout Plain Layout
26811 \begin_inset space ~
26826 \begin_inset Newline newline
26830 \begin_inset Phantom HPhantom
26833 \begin_layout Plain Layout
26834 \begin_inset space ~
26844 renewenvironment{figure}[1]{
26846 begin{SCfigure}[#1]##1}{
26851 \begin_layout Standard
26859 \begin_inset Newline newline
26863 \begin_inset Phantom HPhantom
26866 \begin_layout Plain Layout
26867 \begin_inset space ~
26882 \begin_inset Newline newline
26886 \begin_inset Phantom HPhantom
26889 \begin_layout Plain Layout
26890 \begin_inset space ~
26907 \begin_layout Standard
26909 \begin_inset CommandInset line
26920 \begin_layout Standard
26921 The commands allow you to redefine the floats so that the caption is set
26923 For figure floats use the command
26926 \begin_layout Standard
26934 \begin_layout Standard
26935 in TeX-Code before the float.
26936 And insert the command
26939 \begin_layout Standard
26947 \begin_layout Standard
26948 in TeX-Code at the point where you want to get back to the original float
26952 \begin_layout Standard
26953 For table floats use the corresponding commands
26956 \begin_layout Standard
26970 \begin_layout Standard
26972 \begin_inset space ~
26976 \begin_inset CommandInset ref
26978 reference "fig:cap-beside-fig"
26983 \begin_inset space ~
26987 \begin_inset CommandInset ref
26989 reference "tab:cap-beside-tab"
26993 are examples where the caption is set beside.
26996 \begin_layout Standard
26997 You can see in the examples that the caption text appears at the top of
26998 the floats for table floats and at the bottom for figure floats.
26999 To change this, you can use the command
27002 \begin_layout Standard
27007 sidecaptionvpos{float type}{placement}
27010 \begin_layout Standard
27011 in the document preamble or in TeX-Code before the float.
27012 The float type is either
27020 , the placement can be
27021 \begin_inset Quotes eld
27029 \begin_inset Quotes erd
27033 \begin_inset Quotes eld
27041 \begin_inset Quotes erd
27045 \begin_inset Quotes eld
27053 \begin_inset Quotes erd
27057 To have for example the caption of figure floats vertically centered, use
27061 \begin_layout Standard
27066 sidecaptionvpos{figure}{c}
27069 \begin_layout Standard
27070 This was used for Figure
27071 \begin_inset space ~
27075 \begin_inset CommandInset ref
27077 reference "fig:cap-beside-fig-2"
27084 \begin_layout Standard
27085 \begin_inset VSpace medskip
27091 \begin_layout Standard
27092 The default caption width is the width of the image/table.
27093 For thin image/tables, like in Table
27094 \begin_inset space ~
27098 \begin_inset CommandInset ref
27100 reference "tab:cap-beside-tab"
27104 , this leads to captions that are too thin.
27105 You can increase the width by specifying a factor that will be multiplied
27106 with the image/table width to get the caption width.
27107 The caption width will automatically be recalculated in case it would protrude
27108 over the page or column margin due to the specified width.
27113 can either be given as optional argument for
27122 \begin_layout Standard
27130 \begin_layout Standard
27131 or in the definition of
27141 with another value.
27142 If you do the latter, your factor will be the default if
27148 is used without an argument.
27150 \begin_inset space ~
27154 \begin_inset CommandInset ref
27156 reference "tab:cap-beside-tab-wider"
27160 the factor 5 was used.
27163 \begin_layout Standard
27164 \begin_inset Note Greyedout
27167 \begin_layout Plain Layout
27172 For floats with captions set beside, you cannot use the float placement
27176 \begin_inset space ~
27181 because it is not supported by
27193 \begin_layout Standard
27194 \begin_inset VSpace medskip
27197 For more information about the package
27201 we refer to its documentation
27202 \begin_inset CommandInset citation
27211 \begin_layout Standard
27212 \begin_inset Note Greyedout
27215 \begin_layout Plain Layout
27225 \begin_inset Index idx
27228 \begin_layout Plain Layout
27229 LaTeX-packages ! hypcap
27234 , described in section
27235 \begin_inset space ~
27239 \begin_inset CommandInset ref
27241 reference "sub:Reference-Position"
27245 , has no effect on floats with the caption set beside.
27253 \begin_layout Standard
27257 \begin_layout Plain Layout
27269 \begin_layout Standard
27270 \begin_inset Float figure
27275 \begin_layout Plain Layout
27276 \begin_inset Graphics
27277 filename clipart/escher-lsd.eps
27279 scaleBeforeRotation
27286 \begin_layout Plain Layout
27287 \begin_inset Caption
27289 \begin_layout Plain Layout
27290 \begin_inset CommandInset label
27292 name "fig:cap-beside-fig"
27296 This is a caption beside a figure.
27309 \begin_layout Standard
27313 \begin_layout Plain Layout
27325 \begin_layout Standard
27329 \begin_layout Plain Layout
27341 \begin_layout Standard
27342 \begin_inset Float table
27347 \begin_layout Plain Layout
27348 \begin_inset Caption
27350 \begin_layout Plain Layout
27351 \begin_inset CommandInset label
27353 name "tab:cap-beside-tab"
27357 This is a caption beside a table.
27365 \begin_layout Plain Layout
27366 \begin_inset Tabular
27367 <lyxtabular version="3" rows="4" columns="5">
27368 <features tabularvalignment="middle">
27369 <column alignment="center" valignment="top" width="0">
27370 <column alignment="center" valignment="top" width="0">
27371 <column alignment="center" valignment="top" width="0">
27372 <column alignment="center" valignment="top" width="0">
27373 <column alignment="center" valignment="top" width="0">
27375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27378 \begin_layout Plain Layout
27384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27387 \begin_layout Plain Layout
27393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27396 \begin_layout Plain Layout
27402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27405 \begin_layout Plain Layout
27411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27414 \begin_layout Plain Layout
27422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27425 \begin_layout Plain Layout
27431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27434 \begin_layout Plain Layout
27440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27443 \begin_layout Plain Layout
27449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27452 \begin_layout Plain Layout
27458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27461 \begin_layout Plain Layout
27469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27472 \begin_layout Plain Layout
27478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27481 \begin_layout Plain Layout
27487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27490 \begin_layout Plain Layout
27496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27499 \begin_layout Plain Layout
27505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27508 \begin_layout Plain Layout
27516 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27519 \begin_layout Plain Layout
27525 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27528 \begin_layout Plain Layout
27534 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27537 \begin_layout Plain Layout
27543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27546 \begin_layout Plain Layout
27552 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27555 \begin_layout Plain Layout
27574 \begin_layout Standard
27578 \begin_layout Plain Layout
27590 \begin_layout Standard
27594 \begin_layout Plain Layout
27598 sidecaptionvpos{figure}{c}
27604 \begin_inset Float figure
27609 \begin_layout Plain Layout
27610 \begin_inset Graphics
27611 filename clipart/escher-lsd.eps
27613 scaleBeforeRotation
27620 \begin_layout Plain Layout
27621 \begin_inset Caption
27623 \begin_layout Plain Layout
27624 \begin_inset CommandInset label
27626 name "fig:cap-beside-fig-2"
27630 This is a vertically centered caption beside a figure.
27643 \begin_layout Standard
27647 \begin_layout Plain Layout
27659 \begin_layout Standard
27663 \begin_layout Plain Layout
27675 \begin_layout Standard
27676 \begin_inset Float table
27681 \begin_layout Plain Layout
27682 \begin_inset Caption
27684 \begin_layout Plain Layout
27685 \begin_inset CommandInset label
27687 name "tab:cap-beside-tab-wider"
27691 This is a caption is wider than the one in Table
27692 \begin_inset space ~
27696 \begin_inset CommandInset ref
27698 reference "tab:cap-beside-tab"
27710 \begin_layout Plain Layout
27711 \begin_inset Tabular
27712 <lyxtabular version="3" rows="4" columns="5">
27713 <features tabularvalignment="middle">
27714 <column alignment="center" valignment="top" width="0">
27715 <column alignment="center" valignment="top" width="0">
27716 <column alignment="center" valignment="top" width="0">
27717 <column alignment="center" valignment="top" width="0">
27718 <column alignment="center" valignment="top" width="0">
27720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27723 \begin_layout Plain Layout
27729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27732 \begin_layout Plain Layout
27738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27741 \begin_layout Plain Layout
27747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27750 \begin_layout Plain Layout
27756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27759 \begin_layout Plain Layout
27767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27770 \begin_layout Plain Layout
27776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27779 \begin_layout Plain Layout
27785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27788 \begin_layout Plain Layout
27794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27797 \begin_layout Plain Layout
27803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27806 \begin_layout Plain Layout
27814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27817 \begin_layout Plain Layout
27823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27826 \begin_layout Plain Layout
27832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27835 \begin_layout Plain Layout
27841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27844 \begin_layout Plain Layout
27850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27853 \begin_layout Plain Layout
27861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27864 \begin_layout Plain Layout
27870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27873 \begin_layout Plain Layout
27879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27882 \begin_layout Plain Layout
27888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27891 \begin_layout Plain Layout
27897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27900 \begin_layout Plain Layout
27919 \begin_layout Standard
27923 \begin_layout Plain Layout
27935 \begin_layout Standard
27939 \begin_layout Plain Layout
27949 \begin_inset Note Note
27952 \begin_layout Plain Layout
27953 The following will be displayed when the LaTeX-package
27965 \begin_layout Standard
27966 You need to install the LaTeX-package
27970 to see the following part of this section in the output.
27973 \begin_layout Standard
27977 \begin_layout Plain Layout
27989 \begin_layout Section
27991 \begin_inset Index idx
27994 \begin_layout Plain Layout
27995 Floats ! Float Lists
28003 \begin_layout Standard
28004 Similar to the table of contents where the sections of the document are
28005 listed, there are listings for all float types, like the figures of the
28007 You can insert them via the
28009 Insert\SpecialChar \menuseparator
28011 \begin_inset space ~
28015 \begin_inset space ~
28023 \begin_layout Standard
28024 The list entries are the float captions or its short title, the float number,
28025 and the page number where they appear in the document.
28028 \begin_layout Standard
28029 You can find the list of figures and tables at the end of this document.
28032 \begin_layout Chapter
28036 \begin_layout Section
28038 \begin_inset Index idx
28041 \begin_layout Plain Layout
28050 \begin_layout Standard
28051 Notes are inserted with the toolbar button
28063 Insert\SpecialChar \menuseparator
28067 There are three types of notes:
28070 \begin_layout Description
28072 \begin_inset space ~
28075 Note This note type is for internal notes that won't appear in the output.
28076 Its note-box looks like this:
28077 \begin_inset Newline newline
28081 \begin_inset Newline newline
28085 \begin_inset Graphics
28086 filename clipart/LyXNoteImageQt4.png
28089 scaleBeforeRotation
28094 \begin_inset Note Note
28097 \begin_layout Plain Layout
28098 This is text in a note box that doesn't appear in the output.
28106 \begin_layout Description
28107 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
28108 ent, when you export the document to LaTeX via the menu
28110 File\SpecialChar \menuseparator
28111 Export\SpecialChar \menuseparator
28112 LaTeX (pdflatex) / (plain)
28115 Its note-box looks like this:
28116 \begin_inset Newline newline
28120 \begin_inset Newline newline
28124 \begin_inset Graphics
28125 filename clipart/CommentNoteImageQt4.png
28128 scaleBeforeRotation
28133 \begin_inset Note Comment
28136 \begin_layout Plain Layout
28137 This is text in a note box that only appears as comment in LaTeX-files.
28145 \begin_layout Description
28147 \begin_inset space ~
28150 Out This note will appear in the output as grey text.
28151 Its note-box looks like this:
28152 \begin_inset Newline newline
28156 \begin_inset Newline newline
28160 \begin_inset Graphics
28161 filename clipart/GreyedOutNoteImageQt4.png
28164 scaleBeforeRotation
28169 \begin_inset Newline newline
28176 \begin_layout Plain Layout
28180 renewenvironment{lyxgreyedout}
28183 \begin_layout Plain Layout
28187 textcolor[gray]{0.8}
28197 \begin_inset Note Greyedout
28200 \begin_layout Plain Layout
28205 \begin_layout Plain Layout
28206 This is an example footnote within a greyed out note.
28211 of a comment that appears in the output as grey text.
28220 \begin_layout Plain Layout
28224 renewenvironment{lyxgreyedout}
28227 \begin_layout Plain Layout
28241 \begin_inset Note Note
28244 \begin_layout Plain Layout
28245 The greyed out note is here redefined to show it with the original LyX definitio
28246 n because greyed out notes are redefined in the preamble of this document,
28247 as described below, to have blue text.
28253 \begin_inset Newline newline
28257 \begin_inset Newline newline
28260 As you can see in the example, the first line of greyed out notes is a bit
28261 indented and greyed out notes can have footnotes.
28264 \begin_layout Standard
28265 \begin_inset VSpace bigskip
28268 When you use the toolbar button
28281 \begin_inset space ~
28287 You can switch between the five note types by right-clicking on the note-box.
28292 If you want to turn existing text into a note, mark it and click on the
28306 To change a note to text, press the backspace key when the cursor is in
28307 the first position of a note, or press the delete key when the cursor is
28308 in the very last position of the note, respectively.
28311 \begin_layout Standard
28312 \begin_inset VSpace bigskip
28315 You can change the text color of the greyed out notes in the menu
28317 Document\SpecialChar \menuseparator
28318 Settings\SpecialChar \menuseparator
28324 \begin_layout Section
28326 \begin_inset CommandInset label
28328 name "sec:Footnotes"
28333 \begin_inset Index idx
28336 \begin_layout Plain Layout
28343 \begin_inset Index idx
28346 \begin_layout Plain Layout
28355 \begin_layout Standard
28356 Footnotes can be inserted using the toolbar button
28361 arg "footnote-insert"
28368 Insert\SpecialChar \menuseparator
28380 then the following footnote-box:
28381 \begin_inset Graphics
28382 filename clipart/footnoteQt4.png
28384 scaleBeforeRotation
28392 where you can enter the footnote text.
28393 If you want to turn existing text into a footnote, mark it and click on
28419 key when the cursor is in the first position of a
28431 key when the cursor is in the very last position of the
28442 \begin_layout Standard
28443 Here is an example footnote:
28451 \begin_layout Plain Layout
28452 \begin_inset CommandInset label
28454 name "foot:This-is-an"
28458 This is an example footnote.
28471 \begin_layout Plain Layout
28475 newcounter{MyRepeatFoot}
28478 \begin_layout Plain Layout
28482 setcounter{MyRepeatFoot}{
28492 \begin_layout Standard
28493 The footnote will appear in the output as a superscript number at the text
28494 position where the footnote box is placed.
28495 The footnote text is placed at the bottom of the current page.
28496 The footnote number is calculated by LaTeX; the numbers are consecutive.
28497 It depends on your document-class, whether the footnote number is reset
28501 \begin_layout Standard
28502 Footnotes can be referenced like floats: Insert a label into the footnote
28503 and cross-reference this label in the text as described in section
28504 \begin_inset space ~
28508 \begin_inset CommandInset ref
28510 reference "sec:Referencing-Floats"
28515 \begin_inset Newline newline
28518 This is a cross-reference of Footnote
28519 \begin_inset space ~
28523 \begin_inset CommandInset ref
28525 reference "foot:This-is-an"
28532 \begin_layout Standard
28533 \begin_inset VSpace defskip
28536 Footnotes in tables are not printed by LaTeX due to technical reasons.
28537 However there exists another method to print them: Instead of the footnote
28544 is inserted as TeX-code.
28545 The text of the footnote is entered as an argument of the TeX-code command
28553 \begin_inset Newline newline
28556 This was done for the following table with the command
28559 \begin_layout Standard
28566 Printed table footnote.
28571 \begin_layout Standard
28572 \begin_inset Tabular
28573 <lyxtabular version="3" rows="2" columns="1">
28574 <features tabularvalignment="middle">
28575 <column alignment="center" valignment="top" width="0">
28577 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28580 \begin_layout Plain Layout
28581 This an example text.
28585 \begin_layout Plain Layout
28586 This footnote will not be printed!
28598 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28601 \begin_layout Plain Layout
28602 This an example text.
28606 \begin_layout Plain Layout
28629 \begin_layout Plain Layout
28638 Printed table footnote.
28642 \begin_layout Plain Layout
28652 \begin_layout Standard
28653 Footnotes in longtables are described in section
28654 \begin_inset space ~
28658 \begin_inset CommandInset ref
28660 reference "sub:Footnotes-in-Longtables"
28667 \begin_layout Standard
28668 Footnotes in minipage boxes are printed, but inside the box and with a different
28669 numbering because a minipage box is like a page inside a page.
28670 (For more about minipages, see section
28671 \begin_inset space ~
28675 \begin_inset CommandInset ref
28677 reference "sec:Minipages"
28681 .) To get a footnote in the minipage that is output at the bottom of the
28682 page like normal footnotes, also use the method of
28697 \begin_layout Standard
28698 \begin_inset Box Frameless
28708 height_special "totalheight"
28711 \begin_layout Plain Layout
28712 This an example text in a minipage.
28716 \begin_layout Plain Layout
28717 Footnote in the minipage.
28725 \begin_layout Plain Layout
28726 This an example text in a minipage.
28730 \begin_layout Plain Layout
28747 \begin_layout Standard
28751 \begin_layout Plain Layout
28760 Footnote outside the minipage.
28764 \begin_layout Plain Layout
28774 \begin_layout Standard
28775 \begin_inset VSpace defskip
28781 \begin_layout Standard
28782 To refer to the same footnote several times without printing the footnote
28783 text every time, use the command
28787 footnotemark[number]
28790 \begin_inset Newline newline
28793 As you do not know the number of the repeating footnote while you are writing
28794 the text, you have to store its number.
28795 For the following footnote mark example, these commands were inserted in
28796 TeX-code after Footnote
28797 \begin_inset space ~
28801 \begin_inset CommandInset ref
28803 reference "foot:This-is-an"
28807 to store the footnote number:
28810 \begin_layout Standard
28815 newcounter{MyRepeatFoot}
28816 \begin_inset Newline newline
28821 setcounter{MyRepeatFoot}{
28826 \begin_layout Standard
28827 The footnote mark was then created with this command:
28830 \begin_layout Standard
28840 \begin_layout Standard
28841 Here is a repeated footnote:
28849 \begin_layout Plain Layout
28863 \begin_layout Standard
28864 If you want to repeat the previous footnote, you can omit the storage of
28865 the footnote number and just use this command instead:
28868 \begin_layout Standard
28878 \begin_layout Standard
28879 Here is another repeated footnote:
28887 \begin_layout Plain Layout
28901 \begin_layout Subsection
28903 \begin_inset CommandInset label
28905 name "sub:Footnote-Numbering"
28910 \begin_inset Index idx
28913 \begin_layout Plain Layout
28914 Footnotes ! Numbering
28922 \begin_layout Standard
28923 To reset the footnote number back to 1 after each section
28925 , add this command to your document preamble:
28928 \begin_layout Standard
28933 @addtoreset{footnote}{section}
28936 \begin_layout Standard
28937 \begin_inset VSpace bigskip
28940 The following preamble command changes the footnote numbering style to small
28944 \begin_layout Standard
28956 \begin_layout Standard
28960 \begin_layout Plain Layout
28973 This is a footnote with roman numbering:
28977 \begin_layout Plain Layout
28978 This is an example footnote with roman numbering.
28986 \begin_layout Standard
28987 To change the numbering style to capital roman numerals replace in the command
29002 \begin_inset Quotes eld
29006 \begin_inset Quotes erd
29009 footnotes with capital or small Latin letters use
29023 \begin_inset Quotes eld
29027 \begin_inset Quotes erd
29030 footnotes with symbols use
29039 \begin_layout Standard
29040 \begin_inset Note Greyedout
29043 \begin_layout Plain Layout
29048 You can only number 26 footnotes with Latin letters, because this numbering
29049 is limited to single letters.
29055 \begin_inset Newline newline
29059 \begin_inset Note Greyedout
29062 \begin_layout Plain Layout
29067 You can only number 9 footnotes with symbols.
29075 \begin_layout Standard
29076 To return to the default numbering style after you have changed to another
29089 in the command above.
29093 \begin_layout Plain Layout
29109 \begin_layout Standard
29110 \begin_inset VSpace bigskip
29116 \begin_layout Standard
29117 If you want to have footnotes numbered in the scheme
29118 \begin_inset Quotes eld
29122 \begin_inset Quotes erd
29125 , add the following command to your document preamble:
29128 \begin_layout Standard
29133 numberwithin{footnote}{chapter}
29136 \begin_layout Standard
29137 To be able to use the command
29146 \begin_inset space ~
29151 in the document settings the option
29154 \begin_inset space ~
29158 \begin_inset space ~
29162 \begin_inset space ~
29170 \begin_layout Standard
29174 \begin_layout Plain Layout
29178 numberwithin{footnote}{chapter}
29183 This is another example footnote:
29189 \begin_layout Plain Layout
29190 This is a footnote numbered in the scheme
29191 \begin_inset Quotes eld
29195 \begin_inset Quotes erd
29209 \begin_layout Plain Layout
29225 \begin_layout Standard
29226 \begin_inset Note Greyedout
29229 \begin_layout Plain Layout
29240 always prints out the footnote number as arabic number; previous redefinitions
29241 to get non-arabic numbers are overwritten.
29249 \begin_layout Standard
29250 So to get for example the scheme
29251 \begin_inset Quotes eld
29257 \begin_inset Quotes erd
29260 , use this command instead of
29269 \begin_layout Standard
29283 \begin_layout Subsection
29285 \begin_inset Index idx
29288 \begin_layout Plain Layout
29289 Footnotes ! Placement
29297 \begin_layout Standard
29298 If you have several footnotes in one page, they appear without vertical
29299 space between them at the bottom of the page.
29300 To make them more readable you can e.
29301 \begin_inset space \thinspace{}
29305 \begin_inset space \space{}
29309 \begin_inset space \thinspace{}
29312 mm space with the following preamble command:
29315 \begin_layout Standard
29325 \begin_inset Newline newline
29339 \begin_layout Standard
29340 \begin_inset VSpace bigskip
29343 In a two-column document the footnotes appear at the bottom of every column,
29345 \begin_inset space ~
29349 \begin_inset CommandInset ref
29351 reference "fig:Standard-footnote-placement"
29356 If the footnotes should only appear at the bottom of the right column,
29358 \begin_inset space ~
29362 \begin_inset CommandInset ref
29364 reference "fig:Footnote-placement-in"
29368 , use the LaTeX-package
29373 \begin_inset Index idx
29376 \begin_layout Plain Layout
29377 LaTeX-packages ! ftnright
29382 with this command in the document preamble:
29385 \begin_layout Standard
29390 usepackage{ftnright}
29393 \begin_layout Standard
29394 \begin_inset Float figure
29400 \begin_layout Plain Layout
29404 \begin_layout Plain Layout
29414 \begin_inset Graphics
29415 filename clipart/without_fntright.pdf
29417 scaleBeforeRotation
29425 \begin_layout Plain Layout
29435 \begin_layout Plain Layout
29436 \begin_inset Caption
29438 \begin_layout Plain Layout
29439 \begin_inset CommandInset label
29441 name "fig:Standard-footnote-placement"
29445 Standard footnote placement in two-column documents.
29458 \begin_layout Standard
29459 \begin_inset Float figure
29465 \begin_layout Plain Layout
29469 \begin_layout Plain Layout
29479 \begin_inset Graphics
29480 filename clipart/with_fntright.pdf
29482 scaleBeforeRotation
29490 \begin_layout Plain Layout
29500 \begin_layout Plain Layout
29501 \begin_inset Caption
29503 \begin_layout Plain Layout
29504 \begin_inset CommandInset label
29506 name "fig:Footnote-placement-in"
29510 Footnote placement in two-column documents when the LaTeX-package
29527 \begin_layout Standard
29528 \begin_inset VSpace bigskip
29531 In some scientific literature it is usual to collect the footnotes and print
29532 them in a separate paragraph at the end of a section, as in Figure
29533 \begin_inset space ~
29537 \begin_inset CommandInset ref
29539 reference "fig:Endnotes"
29544 They are then called
29545 \begin_inset Quotes eld
29549 \begin_inset Quotes erd
29553 \begin_inset Index idx
29556 \begin_layout Plain Layout
29562 To use endnotes instead of footnotes in your document, load in the menu
29565 Document\SpecialChar \menuseparator
29566 Settings\SpecialChar \menuseparator
29572 \begin_inset space ~
29576 \begin_inset space ~
29582 To insert the collected footnotes, insert the command
29585 \begin_layout Standard
29593 \begin_layout Standard
29594 in TeX-Code at the end of a section or chapter.
29597 \begin_layout Standard
29598 \begin_inset Float figure
29603 \begin_layout Plain Layout
29608 \begin_layout Plain Layout
29618 \begin_inset Graphics
29619 filename clipart/endnotes.pdf
29620 scaleBeforeRotation
29628 \begin_layout Plain Layout
29638 \begin_layout Plain Layout
29639 \begin_inset Caption
29641 \begin_layout Plain Layout
29642 \begin_inset CommandInset label
29644 name "fig:Endnotes"
29648 Endnotes – footnotes are printed in a separate paragraph at the end of sections
29662 \begin_layout Standard
29663 \begin_inset VSpace medskip
29666 The paragraph heading for the endnotes isn't automatically translated into
29667 the document language, this must be done manually.
29668 The following preamble command translates the default English
29669 \begin_inset Quotes eld
29673 \begin_inset Quotes erd
29677 \begin_inset Quotes eld
29681 \begin_inset Quotes erd
29687 \begin_layout Standard
29694 notesname}{Anmerkungen}
29697 \begin_layout Standard
29698 \begin_inset VSpace medskip
29701 The numbering of endnotes can be changed like the footnote numbering as
29702 described in section
29703 \begin_inset space ~
29707 \begin_inset CommandInset ref
29709 reference "sub:Footnote-Numbering"
29713 ; just replace the command
29726 To reset the endnote number use the command
29732 as described in section
29733 \begin_inset space ~
29737 \begin_inset CommandInset ref
29739 reference "sub:Footnote-Numbering"
29743 and replace the command parameter
29754 \begin_layout Standard
29755 For endnotes there is the command
29759 endnotemark[number]
29761 similar to the command
29767 , that is described in section
29768 \begin_inset space ~
29772 \begin_inset CommandInset ref
29774 reference "sec:Footnotes"
29781 \begin_layout Standard
29782 \begin_inset VSpace bigskip
29785 Footnotes can also be placed in the page margin and the footnote text alignment
29786 can be changed, see the LaTeX-package
29791 \begin_inset Index idx
29794 \begin_layout Plain Layout
29795 LaTeX-packages ! footmisc
29801 \begin_inset CommandInset citation
29807 for more information about this.
29810 \begin_layout Standard
29811 For various further footnote formatting issues have a look at LaTeX-books,
29813 \begin_inset CommandInset citation
29815 key "latexcompanion,latexguide,latexbook"
29825 \begin_inset Index idx
29828 \begin_layout Plain Layout
29829 LaTeX-packages ! KOMA-Script
29834 document class, you can adjust all footnote settings using class-specific
29836 \begin_inset CommandInset citation
29845 \begin_layout Section
29847 \begin_inset Index idx
29850 \begin_layout Plain Layout
29851 Notes ! Margin Notes
29859 \begin_layout Standard
29860 Margin notes look and behave in LyX like footnotes.
29861 They are inserted via the menu
29863 Insert\SpecialChar \menuseparator
29865 \begin_inset space ~
29870 or the toolbar button
29875 arg "marginalnote-insert"
29891 \begin_inset Quotes eld
29895 \begin_inset Quotes erd
29898 appears where you can enter the text of the margin note.
29901 \begin_layout Standard
29902 At the side is an example margin note.
29907 \begin_inset Marginal
29910 \begin_layout Plain Layout
29911 This is a margin note.
29919 \begin_layout Standard
29920 Margin notes appear at the right side in single-sided documents.
29921 In double-sided documents they appear in the outer margin – left on even
29922 pages, right on odd pages.
29923 The text of margin notes is aligned opposite to the outer margin – right-aligne
29924 d when the note appears in the left margin.
29925 The first line of the margin note is placed at the position of the text
29926 line where it is inserted in the document.
29929 \begin_layout Standard
29930 \begin_inset VSpace bigskip
29933 To place the margin note in the inner margin, add the command
29936 \begin_layout Standard
29944 \begin_layout Standard
29945 in TeX-Code before a margin note.
29946 The new placement is valid for all subsequent margin notes.
29951 \begin_layout Plain Layout
29961 \begin_inset Marginal
29964 \begin_layout Plain Layout
29965 This is a margin note in the inner margin.
29973 \begin_inset Newline newline
29979 \begin_inset Note Greyedout
29982 \begin_layout Plain Layout
29987 There is often not enough space in the inner margin so that the notes are
29988 not correctly displayed in the output.
29996 \begin_layout Standard
29997 To return to the default placement insert the command
30000 \begin_layout Standard
30008 \begin_layout Standard
30013 \begin_layout Plain Layout
30023 \begin_inset Note Greyedout
30026 \begin_layout Plain Layout
30031 The command is ignored when it is within a paragraph where also the command
30046 \begin_layout Standard
30047 \begin_inset VSpace bigskip
30054 \begin_inset Marginal
30057 \begin_layout Plain Layout
30058 AVeryLongMarginParWord that isn't hyphenated.
30066 Similar to the case described in section
30067 \begin_inset space ~
30071 \begin_inset CommandInset ref
30073 reference "sub:Multiple-Lines-in"
30077 , long words cannot be hyphenated when they are the first word in a margin
30079 To avoid this, insert 0
30080 \begin_inset space \thinspace{}
30083 pt horizontal space before the word
30088 \begin_inset Marginal
30091 \begin_layout Plain Layout
30092 \begin_inset space \hspace*{}
30096 AVeryLongMarginParWord that is hyphenated.
30104 \begin_layout Standard
30105 \begin_inset VSpace bigskip
30111 \begin_layout Standard
30112 \begin_inset Note Greyedout
30115 \begin_layout Plain Layout
30120 Margin notes can normally not be used inside tables, floats, and footnotes.
30128 \begin_layout Standard
30129 \begin_inset VSpace bigskip
30135 \begin_layout Standard
30139 \begin_layout Plain Layout
30149 \begin_inset Note Note
30152 \begin_layout Plain Layout
30153 The following section will only be displayed when the LaTeX-package
30165 \begin_layout Standard
30166 This restriction can be evaded by using the LaTeX-package
30171 \begin_inset Index idx
30174 \begin_layout Plain Layout
30175 LaTeX-packages ! marginnote
30181 By adding these two lines to your document preamble, the command used by
30182 LyX for margin notes is redefined to use the command provided by the
30189 \begin_layout Standard
30194 usepackage{marginnote}
30195 \begin_inset Newline newline
30207 \begin_layout Standard
30208 This is also used in this document because
30212 has another useful feature: You can set a vertical offset for the note.
30213 This is often needed when too many margin notes are too close together
30214 or for a better page layout.
30215 The offset is set in LyX as TeX-Code directly after the margin note in
30219 \begin_layout Standard
30225 \begin_layout Standard
30226 where the offset is a length with one of the units listed in Table
30227 \begin_inset space ~
30231 \begin_inset CommandInset ref
30233 reference "tab:Units"
30238 A negative value shifts the note up, a positive value shifts it down.
30242 For example the margin note beside this text line is shifted up 1.5
30243 \begin_inset space \thinspace{}
30246 cm with the TeX-Code-command
30247 \begin_inset Quotes eld
30257 \begin_inset Quotes erd
30261 \begin_inset Marginal
30264 \begin_layout Plain Layout
30265 This margin note is shifted up 1.5
30266 \begin_inset space \thinspace{}
30269 cm from its original position.
30281 \begin_layout Plain Layout
30291 \begin_layout Standard
30292 \begin_inset VSpace medskip
30299 you can also change the alignment of the text in the margin note.
30300 For example the commands
30303 \begin_layout Standard
30310 raggedleftmarginnote}{
30313 \begin_inset Newline newline
30320 raggedrightmarginnote}{
30325 \begin_layout Standard
30326 set the alignment to centered.
30331 raggedleftmarginnote
30333 denotes margin notes that appear at the left side.
30340 \begin_layout Plain Layout
30346 raggedleftmarginnote}{
30351 \begin_layout Plain Layout
30357 raggedrightmarginnote}{
30365 \begin_inset Marginal
30368 \begin_layout Plain Layout
30369 The text of this margin note is centered.
30380 \begin_layout Standard
30387 raggedleftmarginnote}{
30390 \begin_inset Newline newline
30397 raggedrightmarginnote}{
30406 \begin_layout Plain Layout
30412 raggedleftmarginnote}{
30417 \begin_layout Plain Layout
30423 raggedrightmarginnote}{
30433 \begin_layout Standard
30434 \begin_inset VSpace medskip
30437 For the other features of
30441 refer to its documentation
30442 \begin_inset CommandInset citation
30451 \begin_layout Standard
30452 \begin_inset VSpace bigskip
30455 You can adjust the layout of margin notes by changing its definition.
30456 To create for example a header for all margin notes with the underlined,
30457 sans-serif, and bold header text
30458 \begin_inset Quotes eld
30470 \begin_inset Quotes erd
30473 , add this to your document preamble:
30476 \begin_layout Standard
30486 \begin_inset Newline newline
30496 \begin_inset Newline newline
30500 \begin_inset Phantom HPhantom
30503 \begin_layout Plain Layout
30506 \begin_inset space ~
30522 underbar{Attention!}}}%
30523 \begin_inset Newline newline
30527 \begin_inset Phantom HPhantom
30530 \begin_layout Plain Layout
30533 \begin_inset space ~
30550 \begin_layout Standard
30557 \begin_layout Plain Layout
30568 \begin_layout Plain Layout
30579 \begin_layout Plain Layout
30587 underbar{Attention!}}}%
30590 \begin_layout Plain Layout
30604 \begin_inset Marginal
30607 \begin_layout Plain Layout
30608 This is a margin note with a defined heading.
30620 \begin_layout Plain Layout
30634 \begin_layout Plain Layout
30651 \begin_inset Note Note
30654 \begin_layout Plain Layout
30655 The margin note format is changed only for this example.
30663 \begin_layout Standard
30667 \begin_layout Plain Layout
30677 \begin_inset Note Note
30680 \begin_layout Plain Layout
30681 The following will be displayed when the LaTeX-package
30693 \begin_layout Standard
30694 You need to install the LaTeX-package
30698 to see the following part of this section in the output.
30701 \begin_layout Standard
30705 \begin_layout Plain Layout
30717 \begin_layout Chapter
30721 \begin_layout Section
30723 \begin_inset Index idx
30726 \begin_layout Plain Layout
30727 Boxes ! Introduction
30735 \begin_layout Standard
30736 Boxes are used to format a block of text.
30737 Boxes can be used to write documents with multiple languages, see section
30738 \begin_inset space ~
30742 \begin_inset CommandInset ref
30744 reference "sec:Minipages"
30748 , to frame texts, see section
30749 \begin_inset space ~
30753 \begin_inset CommandInset ref
30755 reference "sec:Decoration"
30759 , to prevent words from being hyphenated, see section
30760 \begin_inset space ~
30764 \begin_inset CommandInset ref
30766 reference "sec:Prevent-Hyphenation"
30770 , to align text, see section
30771 \begin_inset space ~
30775 \begin_inset CommandInset ref
30777 reference "sub:Vertical-Alignment"
30781 , or to set the background color of texts, see section
30782 \begin_inset space ~
30786 \begin_inset CommandInset ref
30788 reference "sec:Colored-Boxes"
30795 \begin_layout Standard
30796 Boxes can be inserted with the menu
30798 Insert\SpecialChar \menuseparator
30801 or the toolbar button
30806 arg "box-insert Frameless"
30812 A grey box with the label
30817 \begin_inset Graphics
30818 filename clipart/BoxInsetDefaultQt4.png
30820 scaleBeforeRotation
30825 The box type can be specified by right-clicking on the box and selecting
30831 The box dialog offers the
30834 \begin_inset space ~
30856 is the default for new boxes and is explained in section
30857 \begin_inset space ~
30861 \begin_inset CommandInset ref
30863 reference "sec:Minipages"
30871 is described in section
30872 \begin_inset space ~
30876 \begin_inset CommandInset ref
30878 reference "sec:Parboxes"
30887 \begin_inset CommandInset ref
30889 reference "sec:Prevent-Hyphenation"
30896 \begin_layout Standard
30897 Boxes are not numbered and can therefore not be referenced like floats or
30901 \begin_layout Standard
30902 \begin_inset Note Greyedout
30905 \begin_layout Plain Layout
30910 Boxes must not be the item in an
30926 \begin_layout Standard
30927 \begin_inset Note Greyedout
30930 \begin_layout Plain Layout
30935 For an unknown reason you can only set the
30938 \begin_inset space ~
30947 when you use a framed box.
30951 \begin_inset space ~
30956 type and without frames are explained in section
30957 \begin_inset space ~
30961 \begin_inset CommandInset ref
30963 reference "sec:Prevent-Hyphenation"
30975 \begin_layout Section
30977 \begin_inset CommandInset label
30979 name "sec:Box-Dialog"
30984 \begin_inset Index idx
30987 \begin_layout Plain Layout
30996 \begin_layout Subsection
30998 \begin_inset Index idx
31001 \begin_layout Plain Layout
31010 \begin_layout Standard
31011 In the box dialog you can adjust the box geometry in the fields
31020 The available units for the geometry are explained in Table
31021 \begin_inset space ~
31025 \begin_inset CommandInset ref
31027 reference "tab:Units"
31036 offers the following additional sizes:
31039 \begin_layout Description
31040 Depth This is the plain text
31041 \begin_inset Quotes eld
31045 \begin_inset Quotes erd
31049 It ignores the total depth when there are multiple text lines in the box:
31050 \begin_inset Newline newline
31054 \begin_inset Newline newline
31058 \begin_inset Newline newline
31062 \begin_inset Box Boxed
31072 height_special "depth"
31075 \begin_layout Plain Layout
31077 Box height set to 1
31078 \begin_inset space \thinspace{}
31087 \begin_inset Newline newline
31091 \begin_inset Newline newline
31097 \begin_layout Description
31098 Height This is the height of the text that is inside the box.
31100 \begin_inset space \thinspace{}
31104 \begin_inset space \space{}
31107 2 for this size will set the box height to 2
31108 \begin_inset space ~
31111 times the text height:
31112 \begin_inset Box Boxed
31122 height_special "height"
31125 \begin_layout Plain Layout
31127 Box height set to 2
31128 \begin_inset space \thinspace{}
31139 \begin_layout Description
31141 \begin_inset space ~
31144 Height This is the Height
31145 \begin_inset space \thinspace{}
31149 \begin_inset space \thinspace{}
31153 \begin_inset Box Boxed
31163 height_special "totalheight"
31166 \begin_layout Plain Layout
31168 Box height set to 1
31169 \begin_inset space \thinspace{}
31173 \begin_inset space ~
31184 \begin_layout Description
31185 Width This sets the width of the box as height:
31186 \begin_inset Box Boxed
31196 height_special "width"
31199 \begin_layout Plain Layout
31201 Box height set to 1
31202 \begin_inset space \thinspace{}
31213 \begin_layout Subsection
31215 \begin_inset Index idx
31218 \begin_layout Plain Layout
31227 \begin_layout Standard
31228 When you have chosen an
31231 \begin_inset space ~
31236 , the vertical box alignment can be:
31239 \begin_layout Description
31240 Top This is an example text line.
31242 \begin_inset Box Boxed
31252 height_special "totalheight"
31255 \begin_layout Plain Layout
31257 This box is top-aligned.
31262 This is an example text line.
31265 \begin_layout Description
31266 Middle This is an example text line.
31268 \begin_inset Box Boxed
31278 height_special "totalheight"
31281 \begin_layout Plain Layout
31283 This box is middle-aligned.
31288 This is an example text line.
31291 \begin_layout Description
31292 Bottom This is an example text line.
31294 \begin_inset Box Boxed
31304 height_special "totalheight"
31307 \begin_layout Plain Layout
31309 This box is bottom-aligned.
31314 This is an example text line.
31317 \begin_layout Standard
31318 \begin_inset Note Greyedout
31321 \begin_layout Plain Layout
31326 The vertical box alignment can be lost in the output when you have two
31327 boxes in a line and one has e.
31328 \begin_inset space \thinspace{}
31332 \begin_inset space \space{}
31335 a shadow and the other one not.
31343 \begin_layout Standard
31344 The horizontal box alignment can be set via LyX's paragraph dialog when
31345 you set the box into its own paragraph.
31348 \begin_layout Standard
31349 \begin_inset VSpace bigskip
31352 When you have chosen an
31355 \begin_inset space ~
31360 , the box content can be aligned vertically to:
31363 \begin_layout Description
31364 top This is an example text line.
31366 \begin_inset Box Boxed
31376 height_special "totalheight"
31379 \begin_layout Plain Layout
31381 This box text is top-aligned.
31386 This is an example text line.
31389 \begin_layout Description
31390 middle This is an example text line.
31392 \begin_inset Box Boxed
31402 height_special "totalheight"
31405 \begin_layout Plain Layout
31407 This box text is middle-aligned.
31412 This is an example text line.
31415 \begin_layout Description
31416 bottom This is an example text line.
31418 \begin_inset Box Boxed
31428 height_special "totalheight"
31431 \begin_layout Plain Layout
31433 This box text is bottom-aligned.
31438 This is an example text line.
31441 \begin_layout Description
31442 stretch This is an example text line.
31444 \begin_inset Box Boxed
31454 height_special "totalheight"
31457 \begin_layout Plain Layout
31462 \begin_layout Plain Layout
31467 \begin_layout Plain Layout
31474 This is an example text line.
31477 \begin_layout Standard
31478 To stretch the box content, it must consist of more than one paragraph.
31479 In the example above every text line is in an own paragraph.
31482 \begin_layout Standard
31483 \begin_inset VSpace bigskip
31486 To align the box content horizontally you can use LyX's paragraph dialog
31487 when you have chosen an
31490 \begin_inset space ~
31498 \begin_layout Standard
31500 \begin_inset Box Boxed
31510 height_special "totalheight"
31513 \begin_layout Plain Layout
31518 \begin_layout Plain Layout
31523 \begin_layout Plain Layout
31533 \begin_layout Standard
31534 If you have not set an
31537 \begin_inset space ~
31542 , you can align the box content horizontally in the box dialog.
31545 \begin_layout Standard
31547 \begin_inset Box Boxed
31557 height_special "totalheight"
31560 \begin_layout Plain Layout
31561 This box text is horizontally stretched.
31569 \begin_layout Subsection
31571 \begin_inset CommandInset label
31573 name "sec:Decoration"
31578 \begin_inset Index idx
31581 \begin_layout Plain Layout
31590 \begin_layout Standard
31591 The type of the box can be specified in the box dialog in the drop-down
31597 The following types are possible:
31600 \begin_layout Description
31602 \begin_inset space ~
31605 frame Nothing is drawn.
31608 \begin_layout Description
31610 \begin_inset space ~
31614 \begin_inset space ~
31617 frame This draws a rectangular frame around the box.
31618 The frame line thickness has the size of
31626 \begin_inset Box Boxed
31636 height_special "totalheight"
31639 \begin_layout Plain Layout
31649 \begin_layout Description
31651 \begin_inset space ~
31655 \begin_inset space ~
31658 thin This draws an oval frame around the box.
31659 The frame line thickness has the size 0.4
31660 \begin_inset space \thinspace{}
31665 \begin_inset Box ovalbox
31675 height_special "totalheight"
31678 \begin_layout Plain Layout
31688 \begin_layout Description
31690 \begin_inset space ~
31694 \begin_inset space ~
31697 thick This draws an oval frame around the box.
31698 The frame line thickness has the size 0.8
31699 \begin_inset space \thinspace{}
31704 \begin_inset Box Ovalbox
31714 height_special "totalheight"
31717 \begin_layout Plain Layout
31727 \begin_layout Description
31729 \begin_inset space ~
31732 shadow This draws a rectangular frame with a shadow around the box.
31733 The frame line thickness has the size of
31739 , the shadow has a width of 4
31740 \begin_inset space \thinspace{}
31745 \begin_inset Box Shadowbox
31755 height_special "totalheight"
31758 \begin_layout Plain Layout
31768 \begin_layout Description
31770 \begin_inset space ~
31773 background This draws a box with a red background.
31774 Unlike colored boxes
31778 \begin_layout Plain Layout
31780 \begin_inset space \thinspace{}
31784 \begin_inset CommandInset ref
31786 reference "sec:Colored-Boxes"
31795 , it always uses the whole column width and the box is set as its own paragraph.
31797 \begin_inset Box Shaded
31807 height_special "totalheight"
31810 \begin_layout Plain Layout
31811 Shaded background box
31819 \begin_layout Description
31821 \begin_inset space ~
31825 \begin_inset space ~
31828 frame This draws a double-line rectangular frame around the box.
31829 The line thickness of the inner frame is 0.75
31830 \begin_inset space \thinspace{}
31839 , the thickness of the outer frame is 1.5
31840 \begin_inset space \thinspace{}
31850 The distance between the lines is 1.5
31851 \begin_inset space \thinspace{}
31861 \begin_inset space \thinspace{}
31865 \begin_inset space \thinspace{}
31869 \begin_inset space \thinspace{}
31874 \begin_inset Box Doublebox
31884 height_special "totalheight"
31887 \begin_layout Plain Layout
31889 Double rectangular box
31897 \begin_layout Standard
31898 \begin_inset VSpace bigskip
31901 LyX's box label will reflect the different frame types.
31902 To be able to use all types, the LaTeX-package
31907 \begin_inset Index idx
31910 \begin_layout Plain Layout
31911 LaTeX-packages ! fancybox
31919 \begin_layout Standard
31920 \begin_inset VSpace bigskip
31923 When you use the decoration
31925 simple rectangular frame
31927 and no inner box, you can allow page breaks within a box.
31928 Note that then, unlike other framed boxes, the frame always uses the whole
31929 column width, the box is set as its own paragraph, and
31941 have no effect on this box type.
31942 The frame line thickness has the size of
31950 \begin_inset Box Framed
31960 height_special "totalheight"
31963 \begin_layout Plain Layout
31964 Allow page break box
31972 \begin_layout Section
31974 \begin_inset Index idx
31977 \begin_layout Plain Layout
31978 Boxes ! Customization
31986 \begin_layout Standard
31987 The default value for the size
31994 \begin_inset space \thinspace{}
31998 It can be changed with the following command in TeX-code to e.
31999 \begin_inset space \thinspace{}
32003 \begin_inset space \space{}
32007 \begin_inset space \thinspace{}
32013 \begin_layout Standard
32023 \begin_layout Standard
32027 \begin_layout Plain Layout
32039 \begin_inset Box Boxed
32049 height_special "totalheight"
32052 \begin_layout Plain Layout
32054 Rectangular box with
32061 \begin_inset space \thinspace{}
32065 \begin_inset space \thinspace{}
32069 \begin_inset space \thinspace{}
32081 \begin_layout Plain Layout
32095 \begin_layout Standard
32096 \begin_inset VSpace bigskip
32099 The space between the frame and the box content is for all frame styles
32101 \begin_inset space \thinspace{}
32105 You can change it by setting the length
32112 For example the command
32115 \begin_layout Standard
32125 \begin_layout Standard
32126 sets the value to 10
32127 \begin_inset space \thinspace{}
32130 pt, as with the following box:
32133 \begin_layout Standard
32137 \begin_layout Plain Layout
32149 \begin_inset Box Boxed
32159 height_special "totalheight"
32162 \begin_layout Plain Layout
32164 Rectangular box with
32171 \begin_inset space \thinspace{}
32175 \begin_inset space \thinspace{}
32179 \begin_inset space \thinspace{}
32191 \begin_layout Plain Layout
32205 \begin_layout Standard
32206 \begin_inset VSpace bigskip
32209 The diameter of the round corners of the oval boxes can be set with the
32220 \begin_layout Standard
32228 \begin_layout Standard
32229 sets the diameter to 1
32230 \begin_inset space \thinspace{}
32237 \begin_layout Standard
32245 \begin_layout Standard
32246 sets the diameter to
32249 \begin_inset space \thinspace{}
32253 \begin_inset space \thinspace{}
32256 minimum(width and height of box)
32268 \begin_layout Standard
32272 \begin_layout Plain Layout
32282 \begin_inset Box Ovalbox
32292 height_special "totalheight"
32295 \begin_layout Plain Layout
32304 \begin_inset space \thinspace{}
32308 \begin_inset space \thinspace{}
32312 \begin_inset space \thinspace{}
32324 \begin_layout Plain Layout
32336 \begin_layout Standard
32337 \begin_inset VSpace bigskip
32340 The size of the shadow can be adjusted by changing the length
32348 \begin_inset space \thinspace{}
32351 pt for the following box by this command:
32354 \begin_layout Standard
32364 \begin_layout Standard
32368 \begin_layout Plain Layout
32380 \begin_inset Box Shadowbox
32390 height_special "totalheight"
32393 \begin_layout Plain Layout
32402 \begin_inset space \thinspace{}
32406 \begin_inset space \thinspace{}
32410 \begin_inset space \thinspace{}
32422 \begin_layout Plain Layout
32436 \begin_layout Standard
32437 \begin_inset VSpace bigskip
32443 \begin_layout Standard
32444 The default value for the size
32451 \begin_inset space \thinspace{}
32455 The default space between the note content and the frame is 9
32456 \begin_inset space \thinspace{}
32459 pt and can be changed with the value of
32466 For example the frame appearance of the following
32470 is set with the TeX-Code commands
32473 \begin_layout Standard
32481 \begin_inset Newline newline
32491 \begin_layout Standard
32495 \begin_layout Plain Layout
32504 \begin_layout Plain Layout
32516 \begin_inset Box Framed
32526 height_special "totalheight"
32529 \begin_layout Plain Layout
32543 \begin_layout Plain Layout
32552 \begin_layout Plain Layout
32566 \begin_layout Standard
32567 \begin_inset VSpace bigskip
32573 \begin_layout Standard
32578 boxes the default space between the box content and the box border is 3
32579 \begin_inset space \thinspace{}
32582 pt and can be changed with the value of
32589 The default background color red can either be changed locally with the
32594 definecolor{shadecolor}
32596 or globally with the menu
32598 Tools\SpecialChar \menuseparator
32599 Preferences\SpecialChar \menuseparator
32600 Colors\SpecialChar \menuseparator
32602 \begin_inset space ~
32614 command is explained in section
32615 \begin_inset space ~
32619 \begin_inset CommandInset ref
32621 reference "sec:Colored-Tables"
32629 \begin_layout Plain Layout
32636 requires the LaTeX-package
32640 in the preamble, see section
32641 \begin_inset space ~
32645 \begin_inset CommandInset ref
32647 reference "sec:Colored-Boxes"
32656 For example the appearance of the following shaded background box is set
32657 with the TeX-Code commands
32660 \begin_layout Standard
32670 \begin_inset Newline newline
32677 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
32680 \begin_layout Standard
32684 \begin_layout Plain Layout
32693 \begin_layout Plain Layout
32697 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
32703 \begin_inset Box Shaded
32713 height_special "totalheight"
32716 \begin_layout Plain Layout
32719 This is yellow text in a
32729 box with dark green background.
32738 \begin_layout Plain Layout
32747 \begin_layout Plain Layout
32751 definecolor{shadecolor}{rgb}{1,0,0}
32759 \begin_layout Standard
32760 \begin_inset VSpace bigskip
32763 Changed lengths and widths are valid for all boxes following the commands
32767 \begin_layout Section
32769 \begin_inset CommandInset label
32771 name "sec:Minipages"
32776 \begin_inset Index idx
32779 \begin_layout Plain Layout
32788 \begin_layout Standard
32789 Minipages are treated by LaTeX as pages within pages and can therefore for
32790 example have their own footnotes.
32793 \begin_layout Standard
32794 Minipages are useful when you write documents with different languages.
32797 \begin_layout Standard
32798 Below are two example minipages side by side.
32799 Their width is set to 45
32800 \begin_inset space \thinspace{}
32803 col% and they are separated by a horizontal fill, that was inserted via
32806 Insert\SpecialChar \menuseparator
32808 \begin_inset space ~
32811 Formatting\SpecialChar \menuseparator
32813 \begin_inset space ~
32819 \begin_inset Newpage newpage
32825 \begin_layout Standard
32826 \begin_inset Box Frameless
32836 height_special "totalheight"
32839 \begin_layout Plain Layout
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.
32849 Dies ist ein deutscher Text.
32850 Dies ist ein deutscher Text.
32851 Dies ist ein deutscher Text.
32852 Dies ist ein deutscher Text.
32853 Dies ist ein deutscher Text.
32854 Dies ist ein deutscher Text
32858 \begin_layout Plain Layout
32861 Dies ist eine deutsche Fußnote.
32867 Dies ist ein deutscher Text.
32868 Dies ist ein deutscher Text.
32874 \begin_inset space \hfill{}
32878 \begin_inset Box Frameless
32888 height_special "totalheight"
32891 \begin_layout Plain Layout
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.
32902 This is an English Text.
32903 This is an English Text.
32904 This is an English Text.
32905 This is an English Text.
32906 This is an English Text.
32907 This is an English Text.
32911 \begin_layout Plain Layout
32912 This is an English footnote.
32917 This is an English Text.
32925 \begin_layout Standard
32926 \begin_inset VSpace bigskip
32929 The document-wide paragraph settings are ignored within minipages.
32930 That means that there will be no space between paragraphs in minipages
32931 although you set it to e.
32932 \begin_inset space \thinspace{}
32936 \begin_inset space \space{}
32943 in the document settings.
32946 \begin_layout Standard
32947 Minipages can also be used to set a background color for text parts, see
32949 \begin_inset space ~
32953 \begin_inset CommandInset ref
32955 reference "sub:Color-for-Paragraphs"
32962 \begin_layout Standard
32963 \begin_inset Note Greyedout
32966 \begin_layout Plain Layout
32971 You cannot have floats or margin notes inside minipages but minipages can
32972 be used inside tables, floats, and other boxes.
32980 \begin_layout Section
32982 \begin_inset CommandInset label
32984 name "sec:Parboxes"
32989 \begin_inset Index idx
32992 \begin_layout Plain Layout
33001 \begin_layout Standard
33002 Parboxes are very similar to minipages with the difference that they cannot
33006 \begin_layout Standard
33008 \begin_inset Box Frameless
33018 height_special "totalheight"
33021 \begin_layout Plain Layout
33022 This a text within a parbox.
33023 This a text within a parbox.
33026 \begin_layout Plain Layout
33027 This footnote won't appear:
33031 \begin_layout Plain Layout
33032 This footnote is inside a parbox and will therefore not appear.
33045 \begin_layout Section
33046 Boxes for Words and Characters
33047 \begin_inset Index idx
33050 \begin_layout Plain Layout
33051 Boxes ! for Characters
33059 \begin_layout Subsection
33060 Prevent Hyphenation
33061 \begin_inset CommandInset label
33063 name "sec:Prevent-Hyphenation"
33068 \begin_inset Index idx
33071 \begin_layout Plain Layout
33072 Boxes ! to Prevent Hyphenation
33080 \begin_layout Standard
33081 You can use the box type
33085 to prevent words or text from being hyphenated.
33086 \begin_inset Newline newline
33089 Here is an example text:
33092 \begin_layout Standard
33093 This line is an example to show how you can prevent the hyphenation of
33094 \begin_inset Quotes eld
33098 \begin_inset Quotes erd
33104 \begin_layout Standard
33105 To prevent the hyphenation of the word
33106 \begin_inset Quotes eld
33110 \begin_inset Quotes erd
33113 , put the word into a box, set the
33116 \begin_inset space ~
33126 \begin_inset space \thinspace{}
33132 \begin_layout Standard
33133 This is the result:
33136 \begin_layout Standard
33137 This line is an example to show how you can prevent the hyphenation of
33138 \begin_inset Box Frameless
33148 height_special "totalheight"
33151 \begin_layout Plain Layout
33152 \begin_inset Quotes eld
33156 \begin_inset Quotes erd
33167 \begin_layout Standard
33168 You can alternatively set the command
33169 \begin_inset Quotes eld
33179 \begin_inset Quotes grd
33182 as TeX-Code directly before the word:
33185 \begin_layout Standard
33186 This line is an example to show how you can prevent the hyphenation of
33187 \begin_inset Quotes eld
33194 \begin_layout Plain Layout
33204 \begin_inset Quotes erd
33210 \begin_layout Standard
33211 Of course the word now protrudes over the side margin.
33212 To avoid this, add via the menu
33214 Insert\SpecialChar \menuseparator
33215 Formatting\SpecialChar \menuseparator
33217 \begin_inset space ~
33221 \begin_inset space ~
33229 arg "newline-insert newline"
33232 ) a line break before the word:
33235 \begin_layout Standard
33236 This line is an example to show how you can prevent the hyphenation of
33237 \begin_inset Newline newline
33241 \begin_inset Box Frameless
33251 height_special "totalheight"
33254 \begin_layout Plain Layout
33255 \begin_inset Quotes eld
33259 \begin_inset Quotes erd
33270 \begin_layout Subsection
33272 \begin_inset CommandInset label
33274 name "sub:Vertical-Alignment"
33279 \begin_inset Index idx
33282 \begin_layout Plain Layout
33283 Boxes ! for Vertical Alignment
33289 \begin_inset Index idx
33292 \begin_layout Plain Layout
33301 \begin_layout Standard
33302 With the help of the command
33308 you can align words, characters or other boxes vertically relative to the
33316 is used with the following scheme:
33319 \begin_layout Standard
33324 raisebox{lift}[height][depth]{box content}
33327 \begin_layout Standard
33328 The lift can be a positive value to raise the box or a negative value to
33332 \begin_layout Standard
33333 To align for example the word
33334 \begin_inset Quotes eld
33338 \begin_inset Quotes erd
33341 so that the bottom of the
33342 \begin_inset Quotes eld
33346 \begin_inset Quotes erd
33350 \begin_inset Quotes eld
33354 \begin_inset Quotes erd
33357 is at the baseline, insert the command
33360 \begin_layout Standard
33370 \begin_layout Standard
33371 in TeX-Code before the word.
33372 After the word insert a closing brace
33373 \begin_inset Quotes eld
33381 \begin_inset Quotes erd
33385 \begin_inset Newline newline
33388 This is the result:
33391 \begin_layout Standard
33392 This is a text line with the word
33396 \begin_layout Plain Layout
33408 \begin_inset Quotes eld
33412 \begin_inset Quotes erd
33419 \begin_layout Plain Layout
33429 \begin_layout Standard
33430 \begin_inset VSpace bigskip
33433 When you raise or lower characters in a line, the line distance will be
33437 \begin_layout Standard
33438 This is a text line with the word
33442 \begin_layout Plain Layout
33454 \begin_inset Quotes eld
33458 \begin_inset Quotes erd
33465 \begin_layout Plain Layout
33473 \begin_inset Newline newline
33476 This is a text line with the word
33480 \begin_layout Plain Layout
33490 \begin_inset Quotes eld
33494 \begin_inset Quotes erd
33501 \begin_layout Plain Layout
33511 \begin_layout Standard
33512 If you want to prevent this for a certain reason, set the box height to
33517 \begin_layout Standard
33527 \begin_layout Standard
33528 This is a text line with the word
33532 \begin_layout Plain Layout
33544 \begin_inset Quotes eld
33548 \begin_inset Quotes erd
33555 \begin_layout Plain Layout
33563 \begin_inset Newline newline
33566 This is a text line with the word
33570 \begin_layout Plain Layout
33574 raisebox{0.5cm}[0pt]{
33580 \begin_inset Quotes eld
33584 \begin_inset Quotes erd
33591 \begin_layout Plain Layout
33601 \begin_layout Section
33603 \begin_inset CommandInset label
33605 name "sec:Colored-Boxes"
33610 \begin_inset Index idx
33613 \begin_layout Plain Layout
33622 \begin_layout Subsection
33624 \begin_inset Index idx
33627 \begin_layout Plain Layout
33636 \begin_layout Standard
33637 To color the background of text the text must be put into a so called
33638 \begin_inset Quotes eld
33642 \begin_inset Quotes erd
33646 This requires that the LaTeX-package
33651 \begin_inset Index idx
33654 \begin_layout Plain Layout
33655 LaTeX-packages ! color
33660 is loaded in the document preamble with the command
33663 \begin_layout Standard
33668 @ifundefined{textcolor}
33669 \begin_inset Newline newline
33673 \begin_inset Phantom HPhantom
33676 \begin_layout Plain Layout
33679 \begin_inset space ~
33689 usepackage{color}}{}
33692 \begin_layout Standard
33697 will be loaded automatically by LyX when you color text.
33701 \begin_layout Plain Layout
33702 To avoid it being loaded twice the command
33716 \begin_layout Standard
33717 \begin_inset VSpace medskip
33720 Colorboxes are created with the command
33727 This will be used with the following scheme:
33730 \begin_layout Standard
33735 colorbox{color}{box content}
33738 \begin_layout Standard
33739 The box content can also be a box and colorboxes can also be within other
33743 \begin_layout Standard
33744 The following colors are predefined:
33745 \begin_inset Newline newline
33784 \begin_inset Newline newline
33787 You can also define your own color as described in section
33788 \begin_inset space ~
33792 \begin_inset CommandInset ref
33794 reference "sec:Colored-Tables"
33801 \begin_layout Standard
33803 \begin_inset space \thinspace{}
33807 \begin_inset space \space{}
33810 a red background for a word, insert the command
33813 \begin_layout Standard
33821 \begin_layout Standard
33822 before the word in TeX-Code.
33823 After the word insert a closing brace
33824 \begin_inset Quotes eld
33832 \begin_inset Quotes erd
33836 \begin_inset Newline newline
33839 This is the result:
33842 \begin_layout Standard
33843 This is a line where the word
33847 \begin_layout Plain Layout
33857 \begin_inset Quotes eld
33861 \begin_inset Quotes erd
33868 \begin_layout Plain Layout
33875 has a red background.
33878 \begin_layout Standard
33879 \begin_inset VSpace bigskip
33882 If you would like the box frame in a different color, you can use the command
33889 with the following scheme:
33892 \begin_layout Standard
33897 fcolorbox{frame color}{box color}{box content}
33900 \begin_layout Standard
33914 The frame thickness and the space between the frame and the box content
33915 can be adjusted with the lengths
33927 , respectively, as described in section
33928 \begin_inset space ~
33932 \begin_inset CommandInset ref
33934 reference "sec:Decoration"
33941 \begin_layout Standard
33942 For the following example the command
33945 \begin_layout Standard
33950 fcolorbox{cyan}{magenta}{
33953 \begin_layout Standard
33957 \begin_layout Standard
33958 Here is an example where the frame line thickness was set to 1
33959 \begin_inset space \thinspace{}
33963 \begin_inset Newline newline
33970 \begin_layout Plain Layout
33985 \begin_layout Plain Layout
33989 fcolorbox{cyan}{magenta}{
33994 This is text within a colored, framed box.
33998 \begin_layout Plain Layout
34008 \begin_layout Standard
34009 \begin_inset VSpace bigskip
34012 Of course you can also have colored text inside a colorbox:
34013 \begin_inset Newline newline
34020 \begin_layout Plain Layout
34024 fcolorbox{cyan}{magenta}{
34031 This is colored text within a colored, framed box.
34037 \begin_layout Plain Layout
34048 \begin_layout Plain Layout
34062 \begin_layout Standard
34063 \begin_inset VSpace medskip
34069 \begin_layout Standard
34070 \begin_inset Note Greyedout
34073 \begin_layout Plain Layout
34078 Text in colorboxes cannot have line breaks.
34079 To color multiple text lines or paragraphs, use a box inside a colorbox
34080 as described in the following.
34088 \begin_layout Subsection
34089 Color for Paragraphs
34090 \begin_inset CommandInset label
34092 name "sub:Color-for-Paragraphs"
34097 \begin_inset Index idx
34100 \begin_layout Plain Layout
34101 Color ! for Paragraphs
34109 \begin_layout Standard
34110 To set the background color for more than one text line, put the text into
34112 Before the minipage insert the
34121 \begin_layout Standard
34129 \begin_layout Standard
34131 After the minipage insert a closing brace
34132 \begin_inset Quotes eld
34140 \begin_inset Quotes erd
34146 \begin_layout Standard
34150 \begin_layout Plain Layout
34154 colorbox{lightgrey}{
34160 \begin_inset Box Frameless
34170 height_special "totalheight"
34173 \begin_layout Plain Layout
34174 This is text with background color.
34175 This is text with background color.
34178 \begin_layout Plain Layout
34179 \begin_inset VSpace defskip
34182 The text can have footnotes
34186 \begin_layout Plain Layout
34187 Another example footnote
34192 and can include tables and figures.
34195 \begin_layout Plain Layout
34197 \begin_inset Tabular
34198 <lyxtabular version="3" rows="3" columns="3">
34199 <features tabularvalignment="middle">
34200 <column alignment="center" valignment="top" width="0">
34201 <column alignment="center" valignment="top" width="0">
34202 <column alignment="center" valignment="top" width="0">
34204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34207 \begin_layout Plain Layout
34213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34216 \begin_layout Plain Layout
34222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34225 \begin_layout Plain Layout
34233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34236 \begin_layout Plain Layout
34242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34245 \begin_layout Plain Layout
34247 \begin_inset Quotes erd
34255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34258 \begin_layout Plain Layout
34266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34269 \begin_layout Plain Layout
34275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34278 \begin_layout Plain Layout
34284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34287 \begin_layout Plain Layout
34307 \begin_layout Plain Layout
34317 \begin_layout Section
34318 Rotated and Scaled Boxes
34321 \begin_layout Standard
34322 To use the commands described in this section, the LaTeX-package
34327 \begin_inset Index idx
34330 \begin_layout Plain Layout
34331 LaTeX-packages ! graphicx
34336 needs to be loaded in the document preamble with the command
34339 \begin_layout Standard
34344 @ifundefined{rotatebox}
34345 \begin_inset Newline newline
34349 \begin_inset Phantom HPhantom
34352 \begin_layout Plain Layout
34355 \begin_inset space ~
34365 usepackage{graphicx}}{}
34368 \begin_layout Standard
34369 \begin_inset Note Greyedout
34372 \begin_layout Plain Layout
34377 Some DVI-viewers can't display rotated or scaled material.
34385 \begin_layout Standard
34386 \begin_inset Note Greyedout
34389 \begin_layout Plain Layout
34394 Floats mustn't be inside a rotated or scaled box.
34402 \begin_layout Subsection
34404 \begin_inset Index idx
34407 \begin_layout Plain Layout
34414 \begin_inset Index idx
34417 \begin_layout Plain Layout
34424 \begin_inset Index idx
34427 \begin_layout Plain Layout
34434 \begin_inset Index idx
34437 \begin_layout Plain Layout
34438 Table Customization ! Rotating
34446 \begin_layout Standard
34447 To rotate material, you can put it into a rotated box.
34448 Such a box is created using the command
34454 in TeX-Code with the following scheme:
34457 \begin_layout Standard
34462 rotatebox[rotation origin]{rotation angle}{box content}
34465 \begin_layout Standard
34466 The rotation origin is specified in the form
34471 The following positions are possible:
34491 (top), along with meaningful combinations of the four base positions.
34496 means that the rotation origin is at the top left corner of the box.
34497 When no rotation origin is specified, the position
34502 The rotation angle is a number that can be negative that specifies the
34504 The rotation direction is counterclockwise.
34507 \begin_layout Standard
34508 In the following example the command
34512 rotatebox[origin=c]{60}{
34514 was inserted as TeX-Code before the text
34515 \begin_inset Quotes eld
34519 \begin_inset Quotes erd
34522 ; after the text the box was closed by a closing brace
34529 \begin_layout Standard
34534 \begin_layout Plain Layout
34538 rotatebox[origin=c]{60}{
34547 \begin_layout Plain Layout
34557 \begin_layout Standard
34558 The box content can also be another box or an inline formula:
34561 \begin_layout Standard
34566 \begin_layout Plain Layout
34570 rotatebox[origin=r]{-60}{
34576 \begin_inset Box Doublebox
34586 height_special "totalheight"
34589 \begin_layout Plain Layout
34599 \begin_layout Plain Layout
34610 \begin_layout Plain Layout
34614 rotatebox[origin=lb]{60}{
34620 \begin_inset Formula $\int A\,\mathrm{d}x=B$
34627 \begin_layout Plain Layout
34637 \begin_layout Standard
34638 or an image or table:
34641 \begin_layout Standard
34646 \begin_layout Plain Layout
34650 rotatebox[origin=lb]{90}{
34656 \begin_inset Graphics
34657 filename clipart/platypus.eps
34667 \begin_layout Plain Layout
34674 with a rotated image
34678 \begin_layout Plain Layout
34682 rotatebox[origin=l]{-90}{
34688 \begin_inset Tabular
34689 <lyxtabular version="3" rows="2" columns="2">
34690 <features tabularvalignment="middle">
34691 <column alignment="center" valignment="top" width="0">
34692 <column alignment="center" valignment="top" width="0">
34694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34697 \begin_layout Plain Layout
34703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34706 \begin_layout Plain Layout
34714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34717 \begin_layout Plain Layout
34723 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34726 \begin_layout Plain Layout
34741 \begin_layout Plain Layout
34751 \begin_layout Subsection
34753 \begin_inset Index idx
34756 \begin_layout Plain Layout
34763 \begin_inset Index idx
34766 \begin_layout Plain Layout
34773 \begin_inset Index idx
34776 \begin_layout Plain Layout
34783 \begin_inset Index idx
34786 \begin_layout Plain Layout
34787 Table Customization ! Scaling
34795 \begin_layout Standard
34796 To scale material the commands
34808 can be used as TeX-Code.
34811 \begin_layout Standard
34818 is used with the following scheme:
34821 \begin_layout Standard
34826 scalebox{horizontal}[vertical]{box content}
34829 \begin_layout Standard
34830 Horizontal and vertical are the corresponding scaling factors.
34831 If no vertical scaling factor is given, the horizontal factor will also
34832 be used as the vertical one.
34835 \begin_layout Standard
34842 creates for example a double size
34846 \begin_layout Plain Layout
34859 \begin_layout Plain Layout
34866 , compared with the document text size.
34869 \begin_layout Standard
34874 scalebox{2}[1]{Hello}
34876 on the other hand distorts the
34880 \begin_layout Plain Layout
34893 \begin_layout Plain Layout
34903 \begin_layout Standard
34904 If the scaling factor is negative, the box content will be mirrored.
34905 Therefore the command
34909 scalebox{-1}[1]{Hello}
34911 can be used to create mirror writing:
34915 \begin_layout Plain Layout
34928 \begin_layout Plain Layout
34938 \begin_layout Standard
34943 scalebox{1}[-1]{Hello}
34949 \begin_layout Plain Layout
34962 \begin_layout Plain Layout
34972 \begin_layout Standard
34977 scalebox{-1}[1]{box content}
34979 there exists the command
34980 \begin_inset Newline newline
34987 reflectbox{box content}
34992 \begin_layout Standard
34993 \begin_inset VSpace bigskip
35002 is used to scale the box to a defined width and height.
35003 The command scheme is:
35006 \begin_layout Standard
35011 resizebox{width}{height}{box content}
35014 \begin_layout Standard
35015 If one of the two command arguments given is an exclamation mark
35019 , the size is set so that the aspect ratio of the box content is kept.
35022 \begin_layout Standard
35027 resizebox{2cm}{1cm}{Hello}
35033 \begin_layout Plain Layout
35037 resizebox{2cm}{1cm}{
35046 \begin_layout Plain Layout
35054 \begin_inset Newline newline
35061 resizebox{2cm}{!}{Hello}
35067 \begin_layout Plain Layout
35080 \begin_layout Plain Layout
35090 \begin_layout Standard
35091 \begin_inset VSpace bigskip
35095 \begin_inset Note Greyedout
35098 \begin_layout Plain Layout
35115 are set to zero, no LaTeX-errors occur when exporting the document but
35116 the exported files can not or only partly be displayed.
35124 \begin_layout Standard
35125 \begin_inset VSpace bigskip
35131 \begin_layout Standard
35132 The boxes can be combined in any order.
35134 \begin_inset space \thinspace{}
35138 \begin_inset space \space{}
35142 \begin_inset Newline newline
35149 rotatebox[origin=c]{-45}{
35153 reflectbox{Hello}}}
35154 \begin_inset Newline newline
35162 \begin_layout Standard
35167 \begin_layout Plain Layout
35171 rotatebox[origin=c]{-45}{
35184 \begin_layout Plain Layout
35194 \begin_layout Standard
35196 Images, tables, and inline formulas are allowed as box content:
35199 \begin_layout Standard
35204 \begin_layout Plain Layout
35208 rotatebox[origin=c]{-30}{
35218 \begin_inset Graphics
35219 filename clipart/platypus.eps
35229 \begin_layout Plain Layout
35240 \begin_layout Plain Layout
35244 rotatebox[origin=c]{-45}{
35254 \begin_inset Tabular
35255 <lyxtabular version="3" rows="2" columns="2">
35256 <features tabularvalignment="middle">
35257 <column alignment="center" valignment="top" width="0">
35258 <column alignment="center" valignment="top" width="0">
35260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35263 \begin_layout Plain Layout
35269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35272 \begin_layout Plain Layout
35280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35283 \begin_layout Plain Layout
35289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35292 \begin_layout Plain Layout
35307 \begin_layout Plain Layout
35318 \begin_layout Plain Layout
35322 rotatebox[origin=c]{-45}{
35332 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35339 \begin_layout Plain Layout
35349 \begin_layout Standard
35350 When the global formula style
35354 is used in the document
35358 \begin_layout Plain Layout
35360 \begin_inset Quotes eld
35364 \begin_inset Quotes erd
35367 is added to the document class options.
35372 , display style formulas can also be scaled.
35375 \begin_layout Chapter
35376 Objects Surrounded by Text
35377 \begin_inset Index idx
35380 \begin_layout Plain Layout
35389 \begin_layout Section
35391 \begin_inset CommandInset label
35393 name "sec:Wrap-Floats"
35398 \begin_inset Index idx
35401 \begin_layout Plain Layout
35402 Floats ! Wrap Floats
35408 \begin_inset Index idx
35411 \begin_layout Plain Layout
35412 Surrounded by text ! Wrap Floats
35420 \begin_layout Standard
35421 \begin_inset Wrap figure
35428 \begin_layout Plain Layout
35429 \begin_inset Graphics
35430 filename clipart/mobius.eps
35432 scaleBeforeRotation
35433 rotateOrigin center
35440 \begin_layout Plain Layout
35441 \begin_inset Caption
35443 \begin_layout Plain Layout
35444 \begin_inset CommandInset label
35446 name "fig:This-is-a"
35450 This is a figure wrap float.
35460 This float type is used if you want to wrap text around a figure or table
35461 so that it only occupies some fraction of the column width.
35462 It can be inserted using the menu
35464 Insert\SpecialChar \menuseparator
35465 Floats\SpecialChar \menuseparator
35467 \begin_inset space ~
35471 \begin_inset space ~
35479 \begin_inset space ~
35483 \begin_inset space ~
35488 if the LaTeX-package
35493 \begin_inset Index idx
35496 \begin_layout Plain Layout
35497 LaTeX-packages ! wrapfig
35501 \begin_layout Plain Layout
35519 \begin_layout Plain Layout
35520 Installing a LaTeX-package is explained it in the
35523 \begin_inset space ~
35533 The settings of the float can be modified by right-clicking on the float
35535 The mandatory settings are the float
35548 that specifies how much the float is set into the paragraph
35549 \begin_inset space \thinspace{}
35553 \begin_inset space \thinspace{}
35556 page margin, and the
35559 \begin_inset space ~
35564 that specifies how many text lines the float will approximately need.
35565 The line span is often hard to approximate; so it is better only to use
35566 it when you encounter float placement problems.
35567 You can furthermore decide if LaTeX is allowed to let the float float within
35568 the paragraph or to surrounding paragraphs.
35570 \begin_inset space ~
35574 \begin_inset CommandInset ref
35576 reference "fig:This-is-a"
35580 is an example text wrap float with a width of 40
35581 \begin_inset space \thinspace{}
35585 \begin_inset space \thinspace{}
35588 cm overhang, set to the left.
35591 \begin_layout Standard
35592 \begin_inset Note Greyedout
35595 \begin_layout Plain Layout
35601 \begin_inset space ~
35604 wrap float floats are fragile! E.
35605 \begin_inset space \thinspace{}
35609 \begin_inset space \space{}
35612 having a figure too close to the bottom of the page can mess things up in
35613 such a way that the float does not appear in the output or that it is placed
35614 over some other text.
35622 \begin_layout Standard
35623 In general, the following applies for wrap floats:
35626 \begin_layout Itemize
35627 They should not be placed in paragraphs that run over a page break.
35628 That means that wrap floats are better inserted in their exact place when
35629 the document is almost finished and you are able to estimate where page
35630 breaks will appear.
35633 \begin_layout Itemize
35634 They should either be placed in their own paragraph before the paragraph
35635 where they should wrap into or within a paragraph.
35638 \begin_layout Itemize
35639 In consecutive paragraphs they may cause troubles, so ensure that there
35640 is a text paragraph between them as separator.
35643 \begin_layout Itemize
35644 They are not allowed in section headings or tables.
35647 \begin_layout Itemize
35648 Their numbering and referencing works as described in chap.
35649 \begin_inset space \thinspace{}
35653 \begin_inset CommandInset ref
35655 reference "chap:Floats"
35662 \begin_layout Section
35663 Surrounded Fixed Objects
35664 \begin_inset Index idx
35667 \begin_layout Plain Layout
35668 Surrounded by text ! Fixed objects
35676 \begin_layout Standard
35677 The wrap floats described in sec.
35678 \begin_inset space \thinspace{}
35682 \begin_inset CommandInset ref
35684 reference "sec:Wrap-Floats"
35688 have these positions in the paragraph:
35691 \begin_layout Standard
35694 \begin_inset Tabular
35695 <lyxtabular version="3" rows="2" columns="2">
35696 <features tabularvalignment="middle">
35697 <column alignment="center" valignment="top" width="0">
35698 <column alignment="center" valignment="top" width="0">
35700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35703 \begin_layout Plain Layout
35704 \begin_inset Graphics
35705 filename ../images/dialog-show-new-inset_graphics.png
35707 scaleBeforeRotation
35716 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35719 \begin_layout Plain Layout
35727 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35730 \begin_layout Plain Layout
35736 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35739 \begin_layout Plain Layout
35751 \begin_inset Tabular
35752 <lyxtabular version="3" rows="2" columns="2">
35753 <features tabularvalignment="middle">
35754 <column alignment="center" valignment="top" width="0">
35755 <column alignment="center" valignment="top" width="0">
35757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35760 \begin_layout Plain Layout
35766 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35769 \begin_layout Plain Layout
35770 \begin_inset Graphics
35771 filename ../images/dialog-show-new-inset_graphics.png
35773 scaleBeforeRotation
35784 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35787 \begin_layout Plain Layout
35793 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35796 \begin_layout Plain Layout
35810 \begin_layout Standard
35811 To get an object exactly at the position where it is inserted, for example
35812 to get one of these positions:
35813 \begin_inset VSpace defskip
35819 \begin_layout Standard
35822 \begin_inset Tabular
35823 <lyxtabular version="3" rows="2" columns="2">
35824 <features tabularvalignment="middle">
35825 <column alignment="center" valignment="top" width="0">
35826 <column alignment="center" valignment="top" width="0">
35828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35831 \begin_layout Plain Layout
35837 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35840 \begin_layout Plain Layout
35848 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35851 \begin_layout Plain Layout
35852 \begin_inset Graphics
35853 filename ../images/dialog-show-new-inset_graphics.png
35855 scaleBeforeRotation
35864 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35867 \begin_layout Plain Layout
35879 \begin_inset Tabular
35880 <lyxtabular version="3" rows="2" columns="2">
35881 <features tabularvalignment="middle">
35882 <column alignment="center" valignment="top" width="0">
35883 <column alignment="center" valignment="top" width="0">
35885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35888 \begin_layout Plain Layout
35894 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35897 \begin_layout Plain Layout
35905 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35908 \begin_layout Plain Layout
35914 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35917 \begin_layout Plain Layout
35918 \begin_inset Graphics
35919 filename ../images/dialog-show-new-inset_graphics.png
35921 scaleBeforeRotation
35936 \begin_inset Tabular
35937 <lyxtabular version="3" rows="2" columns="3">
35938 <features tabularvalignment="middle">
35939 <column alignment="center" valignment="top" width="0">
35940 <column alignment="center" valignment="top" width="0">
35941 <column alignment="center" valignment="top" width="0">
35943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35946 \begin_layout Plain Layout
35952 <cell alignment="center" valignment="top" topline="true" usebox="none">
35955 \begin_layout Plain Layout
35956 \begin_inset Graphics
35957 filename ../images/dialog-show-new-inset_graphics.png
35959 scaleBeforeRotation
35968 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35971 \begin_layout Plain Layout
35979 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35982 \begin_layout Plain Layout
35988 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
35991 \begin_layout Plain Layout
35997 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36000 \begin_layout Plain Layout
36012 \begin_inset Tabular
36013 <lyxtabular version="3" rows="2" columns="3">
36014 <features tabularvalignment="middle">
36015 <column alignment="center" valignment="top" width="0">
36016 <column alignment="center" valignment="top" width="0">
36017 <column alignment="center" valignment="top" width="0">
36019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36022 \begin_layout Plain Layout
36028 <cell alignment="center" valignment="top" topline="true" usebox="none">
36031 \begin_layout Plain Layout
36037 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36040 \begin_layout Plain Layout
36048 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36051 \begin_layout Plain Layout
36057 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36060 \begin_layout Plain Layout
36061 \begin_inset Graphics
36062 filename ../images/dialog-show-new-inset_graphics.png
36064 scaleBeforeRotation
36073 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36076 \begin_layout Plain Layout
36090 \begin_layout Standard
36093 \begin_inset Tabular
36094 <lyxtabular version="3" rows="3" columns="2">
36095 <features tabularvalignment="middle">
36096 <column alignment="center" valignment="top" width="0">
36097 <column alignment="center" valignment="top" width="0">
36099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36102 \begin_layout Plain Layout
36108 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36111 \begin_layout Plain Layout
36119 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36122 \begin_layout Plain Layout
36123 \begin_inset Graphics
36124 filename ../images/dialog-show-new-inset_graphics.png
36126 scaleBeforeRotation
36135 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36138 \begin_layout Plain Layout
36146 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36149 \begin_layout Plain Layout
36155 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36158 \begin_layout Plain Layout
36170 \begin_inset Tabular
36171 <lyxtabular version="3" rows="3" columns="3">
36172 <features tabularvalignment="middle">
36173 <column alignment="center" valignment="top" width="0">
36174 <column alignment="center" valignment="top" width="0">
36175 <column alignment="center" valignment="top" width="0">
36177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36180 \begin_layout Plain Layout
36186 <cell alignment="center" valignment="top" topline="true" usebox="none">
36189 \begin_layout Plain Layout
36195 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36198 \begin_layout Plain Layout
36206 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36209 \begin_layout Plain Layout
36215 <cell alignment="center" valignment="top" usebox="none">
36218 \begin_layout Plain Layout
36219 \begin_inset Graphics
36220 filename ../images/dialog-show-new-inset_graphics.png
36222 scaleBeforeRotation
36231 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36234 \begin_layout Plain Layout
36242 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36245 \begin_layout Plain Layout
36251 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36254 \begin_layout Plain Layout
36260 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36263 \begin_layout Plain Layout
36275 \begin_inset Tabular
36276 <lyxtabular version="3" rows="3" columns="2">
36277 <features tabularvalignment="middle">
36278 <column alignment="center" valignment="top" width="0">
36279 <column alignment="center" valignment="top" width="0">
36281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36284 \begin_layout Plain Layout
36290 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36293 \begin_layout Plain Layout
36301 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36304 \begin_layout Plain Layout
36310 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36313 \begin_layout Plain Layout
36314 \begin_inset Graphics
36315 filename ../images/dialog-show-new-inset_graphics.png
36317 scaleBeforeRotation
36328 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36331 \begin_layout Plain Layout
36337 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36340 \begin_layout Plain Layout
36354 \begin_layout Standard
36356 you can use the LaTeX-package
36361 \begin_inset Index idx
36364 \begin_layout Plain Layout
36365 LaTeX-packages ! picinpar
36371 Here is an example:
36374 \begin_layout Standard
36378 \begin_layout Plain Layout
36388 \begin_inset Note Note
36391 \begin_layout Plain Layout
36392 The following section will only be displayed when the LaTeX-package
36404 \begin_layout Standard
36408 \begin_layout Plain Layout
36412 begin{window}[2,c,{
36418 \begin_inset Graphics
36419 filename clipart/mobius.eps
36422 scaleBeforeRotation
36423 rotateOrigin center
36431 \begin_layout Plain Layout
36436 \begin_layout Plain Layout
36445 It was in the spring of the year 1894 that all London was interested, and
36446 the fashionable world dismayed, by the murder of the Honourable Ronald
36447 Adair under most unusual and inexplicable circumstances.
36448 The public has already learned those particulars of the crime which
36454 \begin_layout Plain Layout
36465 came out in the police investigation, but a good deal was suppressed upon
36466 that occasion, since the case for the prosecution was so overwhelmingly
36467 strong that it was not necessary to bring forward all the facts.
36468 Only now, at the end of nearly ten years, am I allowed to supply those
36469 missing links which make up the whole of that remarkable chain.
36475 \begin_layout Plain Layout
36487 \begin_layout Standard
36491 \begin_layout Plain Layout
36500 Footnote of the paragraph with the fixed object.
36504 \begin_layout Plain Layout
36514 \begin_layout Standard
36515 Surrounded fixed objects are used to let text float around them, at which
36516 the object's position in the paragraph can be determined by the number
36518 In contrary to floats is it not possible to have a numbered caption.
36521 \begin_layout Standard
36522 A fixed object is inserted by adding the command
36525 \begin_layout Standard
36530 begin{window}[2,c,{
36533 \begin_layout Standard
36534 as TeX-Code at the beginning of the paragraph.
36535 The first parameter in the bracket, here '2', defines the number of lines
36536 above the object, the second, here 'c', the position of the object.
36537 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
36538 Behind the command you insert the object.
36539 In this example an image with a width of 40
36540 \begin_inset space \thinspace{}
36543 % of the text column width was inserted.
36544 The object can also be a table, a box or an equation.
36545 Behind the object the command
36548 \begin_layout Standard
36551 },description text]
36552 \begin_inset Newline newline
36558 \begin_layout Standard
36561 \begin_inset Quotes eld
36569 \begin_inset Quotes erd
36572 is in the second line.
36573 The description text is optional.
36574 The text surrounding the object must be in the same paragraph as the object,
36575 so it must begin directly after the
36580 At the end of the paragraph insert the command:
36583 \begin_layout Standard
36591 \begin_layout Standard
36592 Within a paragraph with a fixed object, you cannot insert footnotes in the
36594 You have to use instead the command
36600 inside the paragraph and outside the command
36606 as described in sec.
36607 \begin_inset space \thinspace{}
36611 \begin_inset CommandInset ref
36613 reference "sec:Footnotes"
36620 \begin_layout Standard
36624 \begin_layout Plain Layout
36634 \begin_inset Note Note
36637 \begin_layout Plain Layout
36638 The following will be displayed when the LaTeX-package
36650 \begin_layout Standard
36651 You need to install the LaTeX-package
36655 to see the following part of this section in the output.
36658 \begin_layout Standard
36662 \begin_layout Plain Layout
36674 \begin_layout Section
36676 \begin_inset Index idx
36679 \begin_layout Plain Layout
36686 \begin_inset Index idx
36689 \begin_layout Plain Layout
36690 Surrounded by text ! Initials
36698 \begin_layout Standard
36699 To use initials, you must have the LaTeX-package
36704 \begin_inset Index idx
36707 \begin_layout Plain Layout
36708 LaTeX-packages ! lettrine
36713 installed and use the module
36717 in your document (menu
36719 Document\SpecialChar \menuseparator
36720 Settings\SpecialChar \menuseparator
36724 To insert an initial, use the style
36729 This style has a mandatory and an optional argument.
36730 The mandatory argument is inserted via the menu
36732 Insert\SpecialChar \menuseparator
36734 \begin_inset space ~
36739 and contains the letter that is the initial.
36740 To use also the optional argument, insert another argument in front of
36741 the mandatory argument.
36742 This one contains parameters to modify the initial.
36743 For more information about the possible parameters see the documentation
36749 \begin_inset CommandInset citation
36756 The style itself contains the text that is surrounding the initial.
36757 The usual style is hereby that the word whose first letter is the initial,
36763 To tell LaTeX where this word is finished, add a closing brace '
36767 ' as TeX-Code behind it.
36768 At the end of the style there must be an opening brace '
36775 \begin_layout Standard
36776 Here are some examples:
36779 \begin_layout Standard
36783 \begin_layout Plain Layout
36793 \begin_inset Note Note
36796 \begin_layout Plain Layout
36797 The following section will only be displayed when the LaTeX-package
36809 \begin_layout Enumerate
36810 No optional argument, the initial is the letter 'I' in the math font
36811 \begin_inset Formula $\mathfrak{Fraktur}$
36818 \begin_layout Initial
36819 \begin_inset Argument
36822 \begin_layout Plain Layout
36823 \begin_inset Formula $\mathfrak{I}$
36835 \begin_layout Plain Layout
36842 was in the spring of the year 1894 that all London was interested, and
36843 the fashionable world dismayed, by the murder of the Honourable Ronald
36844 Adair under most unusual and inexplicable circumstances.
36845 The public has already learned those particulars of the crime which came
36846 out in the police investigation, but a good deal was suppressed upon that
36847 occasion, since the case for the prosecution was so overwhelmingly strong
36848 that it was not necessary to bring forward all the facts.
36852 \begin_layout Plain Layout
36860 \begin_inset Newpage newpage
36867 \begin_layout Enumerate
36868 Only one line is surrounding the initial, which is formed by two letters
36869 in standard font and no text is printed in small caps:
36873 \begin_layout Initial
36874 \begin_inset Argument
36877 \begin_layout Plain Layout
36884 \begin_inset Argument
36887 \begin_layout Plain Layout
36897 \begin_layout Plain Layout
36904 was in the spring of the year 1894 that all London was interested, and
36905 the fashionable world dismayed, by the murder of the Honourable Ronald
36906 Adair under most unusual and inexplicable circumstances.
36907 The public has already learned those particulars of the crime which came
36908 out in the police investigation, but a good deal was suppressed upon that
36909 occasion, since the case for the prosecution was so overwhelmingly strong
36910 that it was not necessary to bring forward all the facts.
36914 \begin_layout Plain Layout
36925 \begin_layout Enumerate
36926 Magenta, hanging initial over 3
36927 \begin_inset space ~
36930 lines in the math font
36931 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
36935 \begin_inset Quotes eld
36938 t was in the spring
36939 \begin_inset Quotes erd
36946 ; to color the initial, you must insert this command before the initial:
36947 \begin_inset Newline newline
36961 \begin_inset Newline newline
36969 \begin_inset Quotes eld
36973 \begin_inset Quotes erd
36977 \begin_inset Quotes eld
36981 \begin_inset Quotes erd
36985 \begin_inset Quotes eld
36989 \begin_inset Quotes erd
36993 \begin_inset Quotes eld
36997 \begin_inset Quotes erd
37001 \begin_inset Quotes eld
37005 \begin_inset Quotes erd
37009 \begin_inset Quotes eld
37013 \begin_inset Quotes erd
37017 \begin_inset Quotes eld
37021 \begin_inset Quotes erd
37025 \begin_inset Quotes eld
37029 \begin_inset Quotes erd
37032 , and add this command to the document preamble:
37033 \begin_inset Newline newline
37040 @ifundefined{textcolor}
37041 \begin_inset Newline newline
37045 \begin_inset space ~
37050 usepackage{color}}{}
37054 \begin_layout Standard
37058 \begin_layout Plain Layout
37072 \begin_inset Note Note
37075 \begin_layout Plain Layout
37076 makes the initial magenta
37084 \begin_layout Initial
37085 \begin_inset Argument
37088 \begin_layout Plain Layout
37089 lines=3, lhang=0.33, loversize=0.25
37095 \begin_inset Argument
37098 \begin_layout Plain Layout
37099 \begin_inset Formula $\mathcal{I}$
37107 t was in the spring
37111 \begin_layout Plain Layout
37118 of the year 1894 that all London was interested, and the fashionable world
37119 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37120 and inexplicable circumstances.
37121 The public has already learned those particulars of the crime which came
37122 out in the police investigation, but a good deal was suppressed upon that
37123 occasion, since the case for the prosecution was so overwhelmingly strong
37124 that it was not necessary to bring forward all the facts.
37128 \begin_layout Plain Layout
37139 \begin_layout Standard
37143 \begin_layout Plain Layout
37153 \begin_inset Note Note
37156 \begin_layout Plain Layout
37157 The following will be displayed when the LaTeX-package
37169 \begin_layout Standard
37170 You need to install the LaTeX-package
37174 to see the following part of this section in the output.
37177 \begin_layout Standard
37181 \begin_layout Plain Layout
37193 \begin_layout Chapter
37194 External Document Parts
37195 \begin_inset Index idx
37198 \begin_layout Plain Layout
37199 External Document Parts
37207 \begin_layout Standard
37210 Insert\SpecialChar \menuseparator
37213 you can insert external material to your document.
37217 \begin_layout Description
37219 \begin_inset space ~
37222 Document Another LyX document; its content is directly inserted to your
37226 \begin_layout Description
37228 \begin_inset space ~
37231 Text A text document; each line is inserted in your document as a separate
37235 \begin_layout Description
37237 \begin_inset space ~
37241 \begin_inset space ~
37245 \begin_inset space ~
37248 Lines A text document; text lines are inserted in your document continuously
37249 but an empty text line creates a new paragraph.
37252 \begin_layout Description
37254 \begin_inset space ~
37257 Material Files in various formats.
37260 \begin_layout Description
37262 \begin_inset space ~
37265 Document LyX or LaTeX-documents.
37268 \begin_layout Section
37270 \begin_inset Index idx
37273 \begin_layout Plain Layout
37274 External Document Parts ! External Material
37282 \begin_layout Standard
37283 The external material feature allows you to insert files in to your document
37284 without converting them to a format that can be read by the document output
37286 LyX takes care of the necessary conversions.
37287 This is similar to images that can be inserted in various image formats
37289 When you have enabled Instant Preview in LyX's preferences under
37292 \begin_inset space ~
37296 \begin_inset space ~
37299 feel\SpecialChar \menuseparator
37302 , the external material types Dia and Xfig are directly shown in LyX.
37305 \begin_layout Standard
37306 External material can be inserted via the
37310 dialog that is accessible with the menu
37312 Insert\SpecialChar \menuseparator
37313 File\SpecialChar \menuseparator
37315 \begin_inset space ~
37321 Currently the following file types (
37328 \begin_layout Description
37329 ChessDiagram This template supports chess position diagrams made with the
37333 \begin_inset CommandInset href
37336 target "http://en.wikipedia.org/wiki/XBoard"
37345 \begin_layout Description
37346 Date This inserts the date in the form
37351 This is a date inserted as external material:
37352 \begin_inset External
37359 \begin_inset space ~
37363 \begin_inset Note Note
37366 \begin_layout Plain Layout
37367 Remove the protected space when bug 4398 is fixed!
37373 \begin_inset Newline newline
37376 The date is not shown within LyX, only in the output.
37377 There are two other methods of inserting a date: Via menu
37379 Insert\SpecialChar \menuseparator
37382 and with the LaTeX command
37389 The different methods are compared in Table
37390 \begin_inset space ~
37394 \begin_inset CommandInset ref
37396 reference "tab:Comparison-of-the"
37403 \begin_layout Description
37404 Dia This template supports diagrams created with the program
37407 \begin_inset CommandInset href
37410 target "http://en.wikipedia.org/wiki/Dia_(software)"
37419 \begin_layout Description
37420 GnumericSpreadsheet With this template you can insert spreadsheets
37421 \begin_inset space \thinspace{}
37425 \begin_inset space \thinspace{}
37428 tables in the format of
37431 \begin_inset CommandInset href
37434 target "http://en.wikipedia.org/wiki/Gnumeric"
37441 \begin_inset CommandInset href
37443 name "OpenDocument"
37444 target "http://en.wikipedia.org/wiki/OpenDocument"
37449 \begin_inset CommandInset href
37451 name "Microsoft Office XML"
37452 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
37457 \begin_inset CommandInset href
37459 name "Office Open XML"
37460 target "http://en.wikipedia.org/wiki/Office_Open_XML"
37465 For this feature LyX must have found the program
37469 during its configuration.
37470 This program is part of Gnumeric, so that you must have Gnumeric installed,
37471 also if you don't have tables in the Gnumeric format.
37472 For examples and possible limitations have a look at LyX's example file
37480 \begin_layout Description
37481 LilyPond This template is used for music notation typeset with the program
37482 \begin_inset Newline linebreak
37488 \begin_inset CommandInset href
37491 target "http://en.wikipedia.org/wiki/LilyPond"
37498 For LyX's extended support for LilyPond have a look at LyX's example file
37506 \begin_layout Description
37507 PDFPages With this template you can insert PDF documents to your document.
37508 To specify the range of pages that should be included, use the option
37518 LaTeX and LyX options
37521 The argument of this option is a comma separated list, containing page
37522 numbers (insert as option
37526 ), ranges of page numbers (
37530 ) or any combination.
37531 To insert empty pages use {}.
37533 \begin_inset space \thinspace{}
37537 \begin_inset space ~
37542 pages={3,{},8-11,15}
37544 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
37545 Page ranges are specified in the syntax
37554 This selects all pages from
37567 defaults to the first page; omitting
37571 defaults to the last page of the document.
37572 The last page can also be selected with the keyword
37577 (This is only permitted in a page range.) So
37581 will insert all pages of the document and
37585 will insert all pages in reverse order.
37586 If the pages option is not specified, only the first page of the PDF is
37588 \begin_inset Newline newline
37595 inserts the pages with their original size, if this option is not given,
37596 the pages will be resized to fith the width of the page of your document.
37601 you can specify the width and height of the input pages and their rotation.
37602 If another width than 100
37603 \begin_inset space \thinspace{}
37606 Scale% is used, the option
37610 will be overwritten.
37611 For more info and possible options, have a look into the documentation
37612 of the LaTeX-package
37617 \begin_inset CommandInset citation
37624 \begin_inset Index idx
37627 \begin_layout Plain Layout
37628 LaTeX-packages ! pdfpages
37634 \begin_inset Newline newline
37637 To use this template in a
37641 presentation you need to first insert an
37645 environment and in a subsequent paragraph a TeX-Code box containing the
37650 setbeamertemplate{background canvas}{}
37653 Then you can insert as many paragraphs containing the PDFPages template
37655 Behind the included PDF pages you can resume the Beamer presentation by
37656 beginning a new frame or by starting a new section.
37657 To avoid stray blank pages prior to the PDF pages, make sure to use the
37662 alignment for the paragraph containing the template.
37663 \begin_inset Newline newline
37666 Here is an included PDF which is rotated by -5°:
37667 \begin_inset External
37669 filename clipart/Abstract.pdf
37670 extra LaTeX "noautoscale, pages=-"
37672 rotateOrigin bottomleft
37679 \begin_layout Description
37680 RasterImage This can be used for bitmap images.
37681 The image can be treated in the
37685 dialog like the images that are usually included via the
37689 dialog as described in section
37690 \begin_inset space ~
37694 \begin_inset CommandInset ref
37696 reference "sec:Graphics-Dialog"
37701 The difference to the normal image input is that only raster images are
37702 allowed; that means that PDF and EPS-images are not supported.
37703 Here is an inserted raster image:
37704 \begin_inset External
37705 template RasterImage
37706 filename clipart/ToolbarEnvBox.png
37713 \begin_layout Description
37714 XFig This template supports images created with the program
37717 \begin_inset CommandInset href
37720 target "http://en.wikipedia.org/wiki/Xfig"
37729 \begin_layout Standard
37730 \begin_inset Float table
37736 \begin_layout Plain Layout
37737 \begin_inset Caption
37739 \begin_layout Plain Layout
37740 \begin_inset CommandInset label
37742 name "tab:Comparison-of-the"
37746 Comparison of the date input methods.
37754 \begin_layout Plain Layout
37756 \begin_inset Tabular
37757 <lyxtabular version="3" rows="4" columns="4">
37758 <features tabularvalignment="middle">
37759 <column alignment="center" valignment="top" width="0">
37760 <column alignment="center" valignment="top" width="0">
37761 <column alignment="center" valignment="top" width="0">
37762 <column alignment="center" valignment="top" width="0">
37764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37767 \begin_layout Plain Layout
37773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37776 \begin_layout Plain Layout
37779 External Material\SpecialChar \menuseparator
37785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37788 \begin_layout Plain Layout
37791 Insert\SpecialChar \menuseparator
37797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37800 \begin_layout Plain Layout
37812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37815 \begin_layout Plain Layout
37821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37824 \begin_layout Plain Layout
37830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37833 \begin_layout Plain Layout
37839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37842 \begin_layout Plain Layout
37843 as TeX-Code inset box
37850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37853 \begin_layout Plain Layout
37859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37862 \begin_layout Plain Layout
37868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37871 \begin_layout Plain Layout
37877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37880 \begin_layout Plain Layout
37888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37891 \begin_layout Plain Layout
37897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37900 \begin_layout Plain Layout
37906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37909 \begin_layout Plain Layout
37915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37918 \begin_layout Plain Layout
37937 \begin_layout Standard
37938 When you use the option
37950 dialog, only the path to the inserted file is shown in the output.
37951 \begin_inset Newline newline
37954 External material is displayed in LyX either as a box like this:
37955 \begin_inset Graphics
37956 filename clipart/ExternalMaterialQt4.png
37958 scaleBeforeRotation
37962 or as image, depending on the option
37968 LaTeX and LyX options
37973 \begin_layout Standard
37980 manual explains how you can define your own templates.
37983 \begin_layout Section
37985 \begin_inset CommandInset label
37987 name "sec:Child-Documents"
37992 \begin_inset Index idx
37995 \begin_layout Plain Layout
37996 External Document Parts ! Child Documents
38002 \begin_inset Index idx
38005 \begin_layout Plain Layout
38014 \begin_layout Standard
38015 Child documents are used if you have a long document consisting of several
38016 larger parts or sections.
38017 For maintenance it is often useful and sometimes even required to split
38018 the document into several files that can be revised separately.
38019 The different documents are then the so called
38020 \begin_inset Quotes eld
38024 \begin_inset Quotes erd
38027 , and a master document connects them to print the full document or parts
38029 A child document inherits elements of its master, for example the LaTeX
38030 preamble, the bibliography, and labels for cross-references.
38033 \begin_layout Standard
38034 To be able to work on child documents without the need to open their master,
38035 specify in the child document the master in the menu
38037 Document\SpecialChar \menuseparator
38038 Settings\SpecialChar \menuseparator
38040 \begin_inset space ~
38046 This master document will then be used in the background by LyX when you
38047 edit the child document.
38050 \begin_layout Standard
38051 Included documents are displayed in LyX as a box like this:
38052 \begin_inset Graphics
38053 filename clipart/ChildDocumentQt4.png
38055 scaleBeforeRotation
38059 To include child documents in a master document use the menu
38061 Insert\SpecialChar \menuseparator
38062 File\SpecialChar \menuseparator
38064 \begin_inset space ~
38070 A dialog pops up where you can choose between four include methods:
38073 \begin_layout Description
38074 Include You can include LyX- and LaTeX-documents.
38083 dialog, the included documents will be opened in LyX in a new file tab
38084 so that you can modify them.
38085 \begin_inset Newline newline
38091 \begin_layout Standard
38092 Here is a child document inserted using
38097 \begin_inset CommandInset include
38098 LatexCommand include
38099 filename "DummyDocument1.lyx"
38106 \begin_layout Standard
38107 The section numbering includes the sections of the included files in the
38108 order they are inserted in the master document.
38109 The included example document has for example a subsection that is numbered
38110 as a subsection of this section.
38111 Labels of included documents can be referenced: Subsection
38112 \begin_inset space ~
38116 \begin_inset CommandInset ref
38118 reference "sub:External-Subsection-1"
38125 \begin_layout Standard
38126 The preamble of the child document is ignored; only the preamble of the
38127 master document is used.
38128 Branches in child documents will be ignored by the master document when
38129 the master document does not have a branch with the same name.
38130 Included documents are inserted starting on a new page and ending with
38134 \begin_layout Standard
38135 \begin_inset Note Greyedout
38138 \begin_layout Plain Layout
38143 If you have included a LyX- or LaTeX-file, you are warned when you export/view
38144 the document in case the child document uses another document class than
38145 the master document as this will lead to unexpected outputs.
38153 \begin_layout Description
38154 Input This method is very similar to the Include method.
38155 The differences are:
38159 \begin_layout Itemize
38160 Input files don't start with a new page and don't end with a page break.
38163 \begin_layout Itemize
38164 Input files can be previewed in LyX when
38167 \begin_inset space ~
38172 is enabled in LyX's preferences under
38175 \begin_inset space ~
38179 \begin_inset space ~
38182 feel\SpecialChar \menuseparator
38188 \begin_layout Itemize
38189 You cannot exclude Input files via the menu
38191 Document\SpecialChar \menuseparator
38192 Settings\SpecialChar \menuseparator
38199 \begin_layout Standard
38200 Here is a child document inserted using
38205 \begin_inset CommandInset include
38207 filename "DummyDocument2.lyx"
38214 \begin_layout Description
38215 Verbatim With this method any text file can be included.
38216 The file is shown in the output with its source code; no command used in
38217 the text is invoked.
38218 You can use the option
38220 Mark spaces in output
38222 that displays the character
38223 \begin_inset Quotes eld
38230 \begin_layout Plain Layout
38240 \begin_inset Quotes erd
38243 for every space character in the source code.
38244 The difference from the method via the menu
38246 Insert\SpecialChar \menuseparator
38247 File\SpecialChar \menuseparator
38249 \begin_inset space ~
38254 is that the document content is not shown in LyX.
38257 \begin_layout Standard
38258 Here is a child document inserted as Verbatim:
38259 \begin_inset CommandInset include
38260 LatexCommand verbatiminput
38261 filename "DummyTextDocument.txt"
38266 \begin_inset VSpace bigskip
38269 Here is a child document inserted as Verbatim using the
38271 Mark spaces in output
38274 \begin_inset CommandInset include
38275 LatexCommand verbatiminput*
38276 filename "DummyTextDocument.txt"
38283 \begin_layout Standard
38284 \begin_inset VSpace bigskip
38290 \begin_layout Standard
38291 \begin_inset Note Greyedout
38294 \begin_layout Plain Layout
38299 As you can see in the examples above, the text of the documents included
38304 is not broken at the end of the document lines.
38312 \begin_layout Description
38313 Listings This type is described in chapter
38314 \begin_inset space ~
38318 \begin_inset CommandInset ref
38320 reference "cha:Program-Code-Listings"
38327 \begin_layout Standard
38328 \begin_inset Note Greyedout
38331 \begin_layout Plain Layout
38336 Including the same document twice in a document using different methods
38337 could cause LaTeX-problems.
38345 \begin_layout Standard
38346 If you want to view/export only selected children of your master document,
38347 either because you want to save compiling time or because you want to distribut
38348 e single chapters of the book you are just writing, you can exclude children
38350 This is done via the menu
38352 Document\SpecialChar \menuseparator
38353 Settings\SpecialChar \menuseparator
38357 You can exclude\SpecialChar \slash{}
38358 include children by double-clicking on the
38362 column of the respective child document in the list (note that this only
38363 works for documents embedded via
38364 \begin_inset Quotes eld
38368 \begin_inset Quotes erd
38372 \begin_inset Quotes eld
38376 \begin_inset Quotes erd
38382 Maintain counters and references
38384 is enabled, LyX will assure that all page numbers, references etc.
38385 \begin_inset space ~
38388 are correct as if the whole document was processed.
38389 This is useful if you want the selected sub-documents to look exactly as
38390 in the context of the whole document.
38391 However, LyX needs to process the whole document in the background for
38393 So if you want to save compile time and if counters and references do not
38394 need to be correct, disable this checkbox.
38397 \begin_layout Standard
38398 Alternatively, you can put each included file into a branch.
38402 \begin_layout Plain Layout
38403 Branches are described in section
38416 By enabling\SpecialChar \slash{}
38417 disabling branches you can decide which included files will
38418 appear in the output.
38419 This has the advantage that it also works with Input'ed sub-documents.
38420 However, counters and references will not be maintained with this approach.
38423 \begin_layout Chapter
38424 Program Code Listings
38425 \begin_inset CommandInset label
38427 name "cha:Program-Code-Listings"
38432 \begin_inset Index idx
38435 \begin_layout Plain Layout
38442 \begin_inset Index idx
38445 \begin_layout Plain Layout
38452 \begin_inset Index idx
38455 \begin_layout Plain Layout
38464 \begin_layout Standard
38465 To include and typeset program code you can use the
38469 inset that can be inserted via the menu
38471 Insert\SpecialChar \menuseparator
38480 \begin_inset Index idx
38483 \begin_layout Plain Layout
38484 LaTeX-packages ! listings
38489 provides a powerful and flexible way to insert program source code into
38493 \begin_layout Standard
38494 Right-clicking on a listings inset opens the context menu containing where
38495 you can set the listings format.
38498 \begin_layout Standard
38499 By default, a listing starts a new paragraph in the output.
38500 The placement option
38503 \begin_inset space ~
38508 prints the listing inline like this:
38509 \begin_inset listings
38510 lstparams "language={C++}"
38514 \begin_layout Plain Layout
38522 \begin_inset Newline newline
38529 creates a listings float where you can specify the placement options
38530 \begin_inset Quotes eld
38538 \begin_inset Quotes erd
38542 \begin_inset Quotes eld
38550 \begin_inset Quotes erd
38554 \begin_inset Quotes eld
38562 \begin_inset Quotes erd
38566 \begin_inset Quotes eld
38574 \begin_inset Quotes erd
38577 corresponding to the float placement options described in section
38578 \begin_inset space ~
38582 \begin_inset CommandInset ref
38584 reference "sec:Float-Placement"
38589 The placement options can be mixed and are inserted without any separation,
38591 \begin_inset space \thinspace{}
38595 \begin_inset space \space{}
38599 \begin_inset Quotes eld
38607 \begin_inset Quotes erd
38612 \begin_inset Quotes eld
38616 \begin_inset Quotes erd
38619 has sometimes no effect, but you don't need to use the
38623 option in this case as also non-float listings can have captions and be
38627 \begin_layout Standard
38628 You can add captions to listings with the menu
38630 Insert\SpecialChar \menuseparator
38634 Listings can be referenced like floats: Listing
38635 \begin_inset space ~
38639 \begin_inset CommandInset ref
38641 reference "lst:Example-Listing"
38648 \begin_layout Standard
38649 \begin_inset listings
38650 lstparams "language=Python"
38654 \begin_layout Plain Layout
38656 \begin_inset Caption
38658 \begin_layout Plain Layout
38659 \begin_inset CommandInset label
38661 name "lst:Example-Listing"
38665 Example Listing float
38670 # Example listing float
38673 \begin_layout Plain Layout
38678 \begin_layout Plain Layout
38680 'this is a python function'
38683 \begin_layout Plain Layout
38693 \begin_layout Standard
38694 When you have set a programming language in the listings dialog, the keywords
38695 of this language will be recognized and specially typeset in the output.
38696 In the example listings the Python keyword
38697 \begin_inset Quotes eld
38701 \begin_inset Quotes erd
38704 is recognized and printed bold in the output.
38707 \begin_layout Standard
38708 \begin_inset Note Greyedout
38711 \begin_layout Plain Layout
38716 If you don't get bold keywords when using typewriter fonts, your
38720 font probably doesn't provide a bold shape.
38721 In this case select a different one in the menu
38723 Document\SpecialChar \menuseparator
38724 Settings\SpecialChar \menuseparator
38736 provide bold shapes.)
38744 \begin_layout Standard
38748 \begin_inset space ~
38753 of the listings dialog you can specify the line numbering style.
38754 You can insert a number to specify which lines are numbered in the field
38761 \begin_inset space \thinspace{}
38765 \begin_inset space \space{}
38769 \begin_inset Quotes eld
38773 \begin_inset Quotes erd
38776 , only every 3rd line will be numbered.
38779 \begin_layout Standard
38780 You can furthermore specify a range of lines; only these will then appear
38784 Extended character table
38786 should be used when you use national characters like the German umlauts
38788 \begin_inset Newline newline
38791 Here is an example listing with left line numbering, step
38792 \begin_inset Quotes eld
38796 \begin_inset Quotes erd
38800 \begin_inset Quotes eld
38804 \begin_inset Quotes erd
38808 \begin_inset Quotes eld
38811 Extended character table
38812 \begin_inset Quotes erd
38816 \begin_inset Quotes eld
38820 \begin_inset space ~
38824 \begin_inset space ~
38828 \begin_inset Quotes erd
38832 \begin_inset space \thinspace{}
38836 \begin_inset space \thinspace{}
38842 \begin_layout Standard
38843 \begin_inset listings
38844 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
38848 \begin_layout Plain Layout
38853 \begin_layout Plain Layout
38855 'this is a python function'
38858 \begin_layout Plain Layout
38863 \begin_layout Plain Layout
38868 \begin_layout Plain Layout
38870 'This is a German word: Tschüß'
38873 \begin_layout Plain Layout
38878 \begin_layout Plain Layout
38883 \begin_layout Plain Layout
38885 'this is a python function'
38888 \begin_layout Plain Layout
38898 \begin_layout Standard
38899 When you have tabulators in your listing, you can specify the number of
38900 characters that are spanned by a tabulator in the field
38903 \begin_inset space ~
38911 \begin_layout Standard
38912 \begin_inset Note Greyedout
38915 \begin_layout Plain Layout
38920 Due to a bug in the
38924 package the line numbering is shifted by a line by every previous listing.
38925 That's the reason why the lines 2 and 5 are numbered in the above listing
38926 and not the lines 3 and 6.
38934 \begin_layout Standard
38935 \begin_inset VSpace bigskip
38941 \begin_layout Standard
38942 It is also possible to print lines from a file as listing.
38943 To do this, use the menu
38945 Insert\SpecialChar \menuseparator
38946 File\SpecialChar \menuseparator
38949 and choose the type
38957 \begin_layout Plain Layout
38958 The other child document types are described in section
38959 \begin_inset space ~
38963 \begin_inset CommandInset ref
38965 reference "sec:Child-Documents"
38974 In the child document dialog you can specify the listing parameters in
38976 To show a list of all available parameters, type in a question mark
38977 \begin_inset Quotes eld
38981 \begin_inset Quotes erd
38987 \begin_layout Standard
38988 To reference child document listings, write a label text into the corresponding
38989 field of the child document dialog.
38990 The label can then be referenced using the menu
38992 Insert\SpecialChar \menuseparator
38998 \begin_layout Standard
39000 \begin_inset space ~
39004 \begin_inset CommandInset ref
39006 reference "lst:file-listing"
39010 is an example for a listing of a file; there the lines 10
39011 \begin_inset space \thinspace{}
39015 \begin_inset space \thinspace{}
39018 15 of this LyX file are listed.
39021 \begin_layout Standard
39022 \begin_inset CommandInset include
39023 LatexCommand lstinputlisting
39024 filename "EmbeddedObjects.lyx"
39025 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39032 \begin_layout Standard
39033 \begin_inset VSpace bigskip
39039 \begin_layout Standard
39040 Inserting a formula into a listing can be done the following way:
39043 \begin_layout Enumerate
39044 Open the listings dialog and add
39045 \begin_inset Newline newline
39053 \begin_inset Newline newline
39056 to the field of the
39063 \begin_layout Enumerate
39064 Create a formula outside the listing
39067 \begin_layout Enumerate
39068 Copy the content of the formula (not the formula inset) to the clipboard
39078 \begin_layout Enumerate
39079 In the listing write
39080 \begin_inset Quotes eld
39088 \begin_inset Quotes erd
39091 and copy from the clipboard between the dollar-signs (shortcut
39100 \begin_layout Standard
39101 \begin_inset listings
39102 lstparams "language=Python,mathescape=true"
39106 \begin_layout Plain Layout
39108 \begin_inset Caption
39110 \begin_layout Plain Layout
39111 Example Listing float containing a formula
39116 # Example listing float
39119 \begin_layout Plain Layout
39124 \begin_layout Plain Layout
39137 \begin_layout Plain Layout
39147 \begin_layout Standard
39148 \begin_inset VSpace bigskip
39154 \begin_layout Standard
39155 Global listings settings can be set in the
39157 Document\SpecialChar \menuseparator
39158 Settings\SpecialChar \menuseparator
39162 To get there a list of available options, type in a question mark
39163 \begin_inset Quotes eld
39167 \begin_inset Quotes erd
39173 \begin_layout Standard
39174 For more information about the
39178 package, we refer to its documentation
39179 \begin_inset CommandInset citation
39188 \begin_layout Standard
39189 \begin_inset Newpage newpage
39195 \begin_layout Chapter
39197 Units available in LyX
39198 \begin_inset Index idx
39201 \begin_layout Plain Layout
39208 \begin_inset CommandInset label
39210 name "cha:Units-available-in"
39217 \begin_layout Standard
39218 To understand the units described in this documentation, Table
39219 \begin_inset space ~
39223 \begin_inset CommandInset ref
39225 reference "tab:Units"
39229 explains all units available in LyX.
39232 \begin_layout Standard
39233 \begin_inset Float table
39239 \begin_layout Plain Layout
39240 \begin_inset Caption
39242 \begin_layout Plain Layout
39243 \begin_inset CommandInset label
39257 \begin_layout Plain Layout
39258 \begin_inset VSpace medskip
39264 \begin_layout Plain Layout
39266 \begin_inset Tabular
39267 <lyxtabular version="3" rows="20" columns="2">
39268 <features tabularvalignment="middle">
39269 <column alignment="center" valignment="top" width="0">
39270 <column alignment="center" valignment="top" width="0">
39272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39275 \begin_layout Plain Layout
39281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39284 \begin_layout Plain Layout
39292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39295 \begin_layout Plain Layout
39301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39304 \begin_layout Plain Layout
39312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39315 \begin_layout Plain Layout
39321 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39324 \begin_layout Plain Layout
39332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39335 \begin_layout Plain Layout
39341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39344 \begin_layout Plain Layout
39352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39355 \begin_layout Plain Layout
39361 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39364 \begin_layout Plain Layout
39366 \begin_inset space \thinspace{}
39370 \begin_inset space \thinspace{}
39380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39383 \begin_layout Plain Layout
39389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39392 \begin_layout Plain Layout
39394 \begin_inset space \thinspace{}
39398 \begin_inset space \thinspace{}
39408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39411 \begin_layout Plain Layout
39417 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39420 \begin_layout Plain Layout
39421 scaled point (65536
39422 \begin_inset space \thinspace{}
39426 \begin_inset space \thinspace{}
39436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39439 \begin_layout Plain Layout
39445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39448 \begin_layout Plain Layout
39450 \begin_inset space \thinspace{}
39454 \begin_inset space \thinspace{}
39464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39467 \begin_layout Plain Layout
39473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39476 \begin_layout Plain Layout
39478 \begin_inset space \thinspace{}
39482 \begin_inset Formula $\approx$
39486 \begin_inset space \thinspace{}
39496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39499 \begin_layout Plain Layout
39505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39508 \begin_layout Plain Layout
39510 \begin_inset space \thinspace{}
39514 \begin_inset space \thinspace{}
39524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39527 \begin_layout Plain Layout
39533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39536 \begin_layout Plain Layout
39537 % of original image width
39544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39547 \begin_layout Plain Layout
39553 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39556 \begin_layout Plain Layout
39564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39567 \begin_layout Plain Layout
39573 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39576 \begin_layout Plain Layout
39584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39587 \begin_layout Plain Layout
39593 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39596 \begin_layout Plain Layout
39604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39607 \begin_layout Plain Layout
39613 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39616 \begin_layout Plain Layout
39624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39627 \begin_layout Plain Layout
39633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39636 \begin_layout Plain Layout
39644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39647 \begin_layout Plain Layout
39653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39656 \begin_layout Plain Layout
39664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39667 \begin_layout Plain Layout
39673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39676 \begin_layout Plain Layout
39688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39691 \begin_layout Plain Layout
39697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39700 \begin_layout Plain Layout
39712 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39715 \begin_layout Plain Layout
39721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39724 \begin_layout Plain Layout
39726 \begin_inset space \thinspace{}
39730 \begin_inset space \thinspace{}
39751 \begin_layout Chapter
39752 Output File Formats with Graphics
39753 \begin_inset CommandInset label
39755 name "cha:Output-File-Formats"
39762 \begin_layout Section
39764 \begin_inset Index idx
39767 \begin_layout Plain Layout
39774 \begin_inset Index idx
39777 \begin_layout Plain Layout
39782 \begin_layout Plain Layout
39793 \begin_layout Plain Layout
39808 \begin_layout Standard
39809 This file type has the extension
39810 \begin_inset Quotes eld
39818 \begin_inset Quotes erd
39823 \begin_inset Quotes eld
39827 \begin_inset Quotes erd
39830 (DVI), because it is completely portable; you can move them from one machine
39831 to another without needing to do any sort of conversion.
39832 At the time when this file-format was developed, this was no matter of
39834 DVIs are used for quick previews and as pre-stage for other output formats,
39838 \begin_layout Standard
39839 \begin_inset Note Greyedout
39842 \begin_layout Plain Layout
39847 DVI-files do not contain images; they will only be a linked.
39852 So don't forget this, if you move your
39856 file to another computer.
39857 This property can also slow down your computer when you view the DVI, because
39858 the DVI-viewer has to convert the image in the background to make it visible
39859 when you scroll in the DVI.
39860 So it is recommended that you use PDF for files with many images.
39863 \begin_layout Standard
39864 You can export your document to DVI by using the menu
39866 File\SpecialChar \menuseparator
39867 Export\SpecialChar \menuseparator
39871 You can view your document as DVI via the
39878 \begin_layout Section
39880 \begin_inset CommandInset label
39882 name "sec:PostScript"
39887 \begin_inset Index idx
39890 \begin_layout Plain Layout
39891 File Formats ! PostScript
39897 \begin_inset Index idx
39900 \begin_layout Plain Layout
39905 \begin_layout Plain Layout
39916 \begin_layout Plain Layout
39931 \begin_layout Standard
39932 This file type has the extension
39933 \begin_inset Quotes eld
39941 \begin_inset Quotes erd
39945 PostScript was developed by the company
39949 as a printer language.
39950 The file therefore contains commands that the printer uses to print the
39952 PostScript can be seen as a
39953 \begin_inset Quotes eld
39956 programming language
39957 \begin_inset Quotes erd
39960 ; you can calculate with it and draw diagrams and images
39964 \begin_layout Plain Layout
39965 If you are interested to learn more about this, have a look at the LaTeX-package
39971 \begin_inset CommandInset citation
39983 Due to this ability, the files are often bigger than PDFs.
39986 \begin_layout Standard
39987 PostScript can only contain images in the format
39988 \begin_inset Quotes eld
39991 Encapsulated PostScript
39992 \begin_inset Quotes erd
39995 (EPS, file extension
39996 \begin_inset Quotes eld
40004 \begin_inset Quotes erd
40008 As LyX allows you to use any known image format in your document, it has
40009 to convert images in the background to EPS.
40011 \begin_inset space ~
40015 \begin_inset space ~
40018 images in your document, LyX has to do 50
40019 \begin_inset space ~
40022 conversions whenever you view or export your document.
40023 This will slow down your work flow with LyX drastically.
40024 So if you plan to use PostScript, you can insert your images directly as
40025 EPS to avoid this problem.
40028 \begin_layout Standard
40029 You can export your document to PostScript using the menu
40031 File\SpecialChar \menuseparator
40032 Export\SpecialChar \menuseparator
40036 You can view your document as PostScript via the
40040 menu or by using the toolbar button
40041 \begin_inset Graphics
40042 filename ../images/buffer-view_ps.png
40044 scaleBeforeRotation
40051 \begin_layout Section
40053 \begin_inset Index idx
40056 \begin_layout Plain Layout
40063 \begin_inset Index idx
40066 \begin_layout Plain Layout
40075 \begin_layout Standard
40076 This file type has the extension
40077 \begin_inset Quotes eld
40085 \begin_inset Quotes erd
40090 \begin_inset Quotes eld
40093 Portable Document Format
40094 \begin_inset Quotes erd
40097 (PDF) was developed by
40101 as a derivative of PostScript.
40102 It is more compressed and it uses fewer commands than PostScript.
40104 \begin_inset Quotes eld
40108 \begin_inset Quotes erd
40111 implies, it can be processed at any computer system and the printed output
40112 looks exactly the same.
40115 \begin_layout Standard
40116 PDF can contain images in its own PDF format, in the format
40117 \begin_inset Quotes eld
40120 Joint Photographic Experts Group
40121 \begin_inset Quotes erd
40124 (JPG, file extension
40125 \begin_inset Quotes eld
40133 \begin_inset Quotes erd
40137 \begin_inset Quotes eld
40145 \begin_inset Quotes erd
40148 ), and in the format
40149 \begin_inset Quotes eld
40152 Portable Network Graphics
40153 \begin_inset Quotes erd
40156 (PNG, file extension
40157 \begin_inset Quotes eld
40165 \begin_inset Quotes erd
40169 Nevertheless you can use any other image format, because LyX converts them
40170 in the background to one of these formats.
40171 But as described in the section about PostScript, the image conversion
40172 will slow down your work flow.
40173 So it is recommended that you use images in one of the three mentioned
40177 \begin_layout Standard
40178 You can export your document to PDF via the menu
40180 File\SpecialChar \menuseparator
40183 in three different ways:
40186 \begin_layout Description
40188 \begin_inset space ~
40191 (ps2pdf) This uses the program
40195 that creates a PDF from a PostScript-version of your file.
40196 The PostScript-version is produced by the program
40200 which uses a DVI-version as intermediate step.
40201 So this export variant consists of three conversions.
40204 \begin_layout Description
40206 \begin_inset space ~
40209 (dvipdfm) This uses the program
40213 that converts your file in the background to DVI and in a second step to
40217 \begin_layout Description
40219 \begin_inset space ~
40222 (pdflatex) This uses the program
40226 that converts your file directly to PDF.
40229 \begin_layout Standard
40230 It is recommended that you use
40233 \begin_inset space ~
40242 supports all features of actual PDF-versions, is quick and works stable.
40247 is not under development and therefore a bit outdated.
40250 \begin_layout Standard
40251 You can view your document as PDF via the
40255 menu or by using the toolbar button
40256 \begin_inset Graphics
40257 filename ../images/buffer-view_pdf2.png
40259 scaleBeforeRotation
40270 \begin_inset space ~
40278 \begin_layout Chapter
40279 List of dvips color names
40280 \begin_inset CommandInset label
40282 name "chap:List-of-dvips-colornames"
40289 \begin_layout Standard
40290 \begin_inset Tabular
40291 <lyxtabular version="3" rows="17" columns="4">
40292 <features tabularvalignment="middle">
40293 <column alignment="left" valignment="top" width="0pt">
40294 <column alignment="left" valignment="top" width="0pt">
40295 <column alignment="left" valignment="top" width="0pt">
40296 <column alignment="left" valignment="top" width="0pt">
40298 <cell alignment="left" valignment="top" usebox="none">
40301 \begin_layout Plain Layout
40305 \begin_layout Plain Layout
40318 \begin_layout Plain Layout
40329 \begin_layout Plain Layout
40341 <cell alignment="left" valignment="top" usebox="none">
40344 \begin_layout Plain Layout
40348 \begin_layout Plain Layout
40361 \begin_layout Plain Layout
40372 \begin_layout Plain Layout
40384 <cell alignment="left" valignment="top" usebox="none">
40387 \begin_layout Plain Layout
40391 \begin_layout Plain Layout
40404 \begin_layout Plain Layout
40415 \begin_layout Plain Layout
40427 <cell alignment="left" valignment="top" usebox="none">
40430 \begin_layout Plain Layout
40434 \begin_layout Plain Layout
40447 \begin_layout Plain Layout
40458 \begin_layout Plain Layout
40472 <cell alignment="center" valignment="top" usebox="none">
40475 \begin_layout Plain Layout
40479 \begin_layout Plain Layout
40492 \begin_layout Plain Layout
40500 \begin_inset Phantom Phantom
40503 \begin_layout Plain Layout
40513 \begin_layout Plain Layout
40525 <cell alignment="center" valignment="top" usebox="none">
40528 \begin_layout Plain Layout
40532 \begin_layout Plain Layout
40545 \begin_layout Plain Layout
40553 \begin_inset Phantom Phantom
40556 \begin_layout Plain Layout
40566 \begin_layout Plain Layout
40578 <cell alignment="center" valignment="top" usebox="none">
40581 \begin_layout Plain Layout
40585 \begin_layout Plain Layout
40598 \begin_layout Plain Layout
40606 \begin_inset Phantom Phantom
40609 \begin_layout Plain Layout
40619 \begin_layout Plain Layout
40631 <cell alignment="center" valignment="top" usebox="none">
40634 \begin_layout Plain Layout
40638 \begin_layout Plain Layout
40651 \begin_layout Plain Layout
40659 \begin_inset Phantom Phantom
40662 \begin_layout Plain Layout
40672 \begin_layout Plain Layout
40686 <cell alignment="left" valignment="top" usebox="none">
40689 \begin_layout Plain Layout
40693 \begin_layout Plain Layout
40706 \begin_layout Plain Layout
40714 \begin_inset Phantom Phantom
40717 \begin_layout Plain Layout
40727 \begin_layout Plain Layout
40739 <cell alignment="left" valignment="top" usebox="none">
40742 \begin_layout Plain Layout
40746 \begin_layout Plain Layout
40759 \begin_layout Plain Layout
40767 \begin_inset Phantom Phantom
40770 \begin_layout Plain Layout
40780 \begin_layout Plain Layout
40792 <cell alignment="left" valignment="top" usebox="none">
40795 \begin_layout Plain Layout
40799 \begin_layout Plain Layout
40812 \begin_layout Plain Layout
40820 \begin_inset Phantom Phantom
40823 \begin_layout Plain Layout
40833 \begin_layout Plain Layout
40845 <cell alignment="left" valignment="top" usebox="none">
40848 \begin_layout Plain Layout
40852 \begin_layout Plain Layout
40865 \begin_layout Plain Layout
40873 \begin_inset Phantom Phantom
40876 \begin_layout Plain Layout
40886 \begin_layout Plain Layout
40900 <cell alignment="left" valignment="top" usebox="none">
40903 \begin_layout Plain Layout
40907 \begin_layout Plain Layout
40920 \begin_layout Plain Layout
40928 \begin_inset Phantom Phantom
40931 \begin_layout Plain Layout
40941 \begin_layout Plain Layout
40953 <cell alignment="left" valignment="top" usebox="none">
40956 \begin_layout Plain Layout
40960 \begin_layout Plain Layout
40973 \begin_layout Plain Layout
40981 \begin_inset Phantom Phantom
40984 \begin_layout Plain Layout
40994 \begin_layout Plain Layout
41006 <cell alignment="left" valignment="top" usebox="none">
41009 \begin_layout Plain Layout
41013 \begin_layout Plain Layout
41026 \begin_layout Plain Layout
41034 \begin_inset Phantom Phantom
41037 \begin_layout Plain Layout
41047 \begin_layout Plain Layout
41059 <cell alignment="left" valignment="top" usebox="none">
41062 \begin_layout Plain Layout
41066 \begin_layout Plain Layout
41079 \begin_layout Plain Layout
41087 \begin_inset Phantom Phantom
41090 \begin_layout Plain Layout
41100 \begin_layout Plain Layout
41114 <cell alignment="left" valignment="top" usebox="none">
41117 \begin_layout Plain Layout
41121 \begin_layout Plain Layout
41134 \begin_layout Plain Layout
41142 \begin_inset Phantom Phantom
41145 \begin_layout Plain Layout
41155 \begin_layout Plain Layout
41167 <cell alignment="left" valignment="top" usebox="none">
41170 \begin_layout Plain Layout
41174 \begin_layout Plain Layout
41187 \begin_layout Plain Layout
41195 \begin_inset Phantom Phantom
41198 \begin_layout Plain Layout
41208 \begin_layout Plain Layout
41220 <cell alignment="left" valignment="top" usebox="none">
41223 \begin_layout Plain Layout
41227 \begin_layout Plain Layout
41240 \begin_layout Plain Layout
41248 \begin_inset Phantom Phantom
41251 \begin_layout Plain Layout
41261 \begin_layout Plain Layout
41273 <cell alignment="left" valignment="top" usebox="none">
41276 \begin_layout Plain Layout
41280 \begin_layout Plain Layout
41293 \begin_layout Plain Layout
41301 \begin_inset Phantom Phantom
41304 \begin_layout Plain Layout
41314 \begin_layout Plain Layout
41328 <cell alignment="left" valignment="top" usebox="none">
41331 \begin_layout Plain Layout
41335 \begin_layout Plain Layout
41348 \begin_layout Plain Layout
41356 \begin_inset Phantom Phantom
41359 \begin_layout Plain Layout
41369 \begin_layout Plain Layout
41381 <cell alignment="left" valignment="top" usebox="none">
41384 \begin_layout Plain Layout
41388 \begin_layout Plain Layout
41401 \begin_layout Plain Layout
41409 \begin_inset Phantom Phantom
41412 \begin_layout Plain Layout
41422 \begin_layout Plain Layout
41434 <cell alignment="left" valignment="top" usebox="none">
41437 \begin_layout Plain Layout
41441 \begin_layout Plain Layout
41454 \begin_layout Plain Layout
41462 \begin_inset Phantom Phantom
41465 \begin_layout Plain Layout
41475 \begin_layout Plain Layout
41487 <cell alignment="left" valignment="top" usebox="none">
41490 \begin_layout Plain Layout
41494 \begin_layout Plain Layout
41507 \begin_layout Plain Layout
41515 \begin_inset Phantom Phantom
41518 \begin_layout Plain Layout
41528 \begin_layout Plain Layout
41542 <cell alignment="center" valignment="top" usebox="none">
41545 \begin_layout Plain Layout
41549 \begin_layout Plain Layout
41562 \begin_layout Plain Layout
41570 \begin_inset Phantom Phantom
41573 \begin_layout Plain Layout
41583 \begin_layout Plain Layout
41595 <cell alignment="center" valignment="top" usebox="none">
41598 \begin_layout Plain Layout
41602 \begin_layout Plain Layout
41615 \begin_layout Plain Layout
41623 \begin_inset Phantom Phantom
41626 \begin_layout Plain Layout
41636 \begin_layout Plain Layout
41648 <cell alignment="center" valignment="top" usebox="none">
41651 \begin_layout Plain Layout
41655 \begin_layout Plain Layout
41668 \begin_layout Plain Layout
41676 \begin_inset Phantom Phantom
41679 \begin_layout Plain Layout
41689 \begin_layout Plain Layout
41701 <cell alignment="center" valignment="top" usebox="none">
41704 \begin_layout Plain Layout
41708 \begin_layout Plain Layout
41721 \begin_layout Plain Layout
41729 \begin_inset Phantom Phantom
41732 \begin_layout Plain Layout
41742 \begin_layout Plain Layout
41756 <cell alignment="left" valignment="top" usebox="none">
41759 \begin_layout Plain Layout
41763 \begin_layout Plain Layout
41776 \begin_layout Plain Layout
41784 \begin_inset Phantom Phantom
41787 \begin_layout Plain Layout
41797 \begin_layout Plain Layout
41809 <cell alignment="left" valignment="top" usebox="none">
41812 \begin_layout Plain Layout
41816 \begin_layout Plain Layout
41829 \begin_layout Plain Layout
41837 \begin_inset Phantom Phantom
41840 \begin_layout Plain Layout
41850 \begin_layout Plain Layout
41862 <cell alignment="left" valignment="top" usebox="none">
41865 \begin_layout Plain Layout
41869 \begin_layout Plain Layout
41882 \begin_layout Plain Layout
41890 \begin_inset Phantom Phantom
41893 \begin_layout Plain Layout
41903 \begin_layout Plain Layout
41915 <cell alignment="left" valignment="top" usebox="none">
41918 \begin_layout Plain Layout
41922 \begin_layout Plain Layout
41935 \begin_layout Plain Layout
41943 \begin_inset Phantom Phantom
41946 \begin_layout Plain Layout
41956 \begin_layout Plain Layout
41970 <cell alignment="left" valignment="top" usebox="none">
41973 \begin_layout Plain Layout
41977 \begin_layout Plain Layout
41990 \begin_layout Plain Layout
41998 \begin_inset Phantom Phantom
42001 \begin_layout Plain Layout
42011 \begin_layout Plain Layout
42023 <cell alignment="left" valignment="top" usebox="none">
42026 \begin_layout Plain Layout
42030 \begin_layout Plain Layout
42043 \begin_layout Plain Layout
42051 \begin_inset Phantom Phantom
42054 \begin_layout Plain Layout
42064 \begin_layout Plain Layout
42076 <cell alignment="left" valignment="top" usebox="none">
42079 \begin_layout Plain Layout
42083 \begin_layout Plain Layout
42096 \begin_layout Plain Layout
42104 \begin_inset Phantom Phantom
42107 \begin_layout Plain Layout
42117 \begin_layout Plain Layout
42129 <cell alignment="left" valignment="top" usebox="none">
42132 \begin_layout Plain Layout
42136 \begin_layout Plain Layout
42149 \begin_layout Plain Layout
42157 \begin_inset Phantom Phantom
42160 \begin_layout Plain Layout
42170 \begin_layout Plain Layout
42184 <cell alignment="left" valignment="top" usebox="none">
42187 \begin_layout Plain Layout
42191 \begin_layout Plain Layout
42204 \begin_layout Plain Layout
42212 \begin_inset Phantom Phantom
42215 \begin_layout Plain Layout
42225 \begin_layout Plain Layout
42237 <cell alignment="left" valignment="top" usebox="none">
42240 \begin_layout Plain Layout
42244 \begin_layout Plain Layout
42257 \begin_layout Plain Layout
42265 \begin_inset Phantom Phantom
42268 \begin_layout Plain Layout
42278 \begin_layout Plain Layout
42290 <cell alignment="left" valignment="top" usebox="none">
42293 \begin_layout Plain Layout
42297 \begin_layout Plain Layout
42310 \begin_layout Plain Layout
42318 \begin_inset Phantom Phantom
42321 \begin_layout Plain Layout
42331 \begin_layout Plain Layout
42343 <cell alignment="left" valignment="top" usebox="none">
42346 \begin_layout Plain Layout
42350 \begin_layout Plain Layout
42363 \begin_layout Plain Layout
42371 \begin_inset Phantom Phantom
42374 \begin_layout Plain Layout
42384 \begin_layout Plain Layout
42398 <cell alignment="left" valignment="top" usebox="none">
42401 \begin_layout Plain Layout
42405 \begin_layout Plain Layout
42418 \begin_layout Plain Layout
42426 \begin_inset Phantom Phantom
42429 \begin_layout Plain Layout
42439 \begin_layout Plain Layout
42451 <cell alignment="left" valignment="top" usebox="none">
42454 \begin_layout Plain Layout
42458 \begin_layout Plain Layout
42471 \begin_layout Plain Layout
42479 \begin_inset Phantom Phantom
42482 \begin_layout Plain Layout
42492 \begin_layout Plain Layout
42504 <cell alignment="left" valignment="top" usebox="none">
42507 \begin_layout Plain Layout
42511 \begin_layout Plain Layout
42524 \begin_layout Plain Layout
42532 \begin_inset Phantom Phantom
42535 \begin_layout Plain Layout
42545 \begin_layout Plain Layout
42557 <cell alignment="left" valignment="top" usebox="none">
42560 \begin_layout Plain Layout
42564 \begin_layout Plain Layout
42577 \begin_layout Plain Layout
42585 \begin_inset Phantom Phantom
42588 \begin_layout Plain Layout
42598 \begin_layout Plain Layout
42612 <cell alignment="left" valignment="top" usebox="none">
42615 \begin_layout Plain Layout
42619 \begin_layout Plain Layout
42632 \begin_layout Plain Layout
42640 \begin_inset Phantom Phantom
42643 \begin_layout Plain Layout
42653 \begin_layout Plain Layout
42665 <cell alignment="left" valignment="top" usebox="none">
42668 \begin_layout Plain Layout
42672 \begin_layout Plain Layout
42685 \begin_layout Plain Layout
42693 \begin_inset Phantom Phantom
42696 \begin_layout Plain Layout
42706 \begin_layout Plain Layout
42718 <cell alignment="left" valignment="top" usebox="none">
42721 \begin_layout Plain Layout
42725 \begin_layout Plain Layout
42738 \begin_layout Plain Layout
42746 \begin_inset Phantom Phantom
42749 \begin_layout Plain Layout
42759 \begin_layout Plain Layout
42771 <cell alignment="left" valignment="top" usebox="none">
42774 \begin_layout Plain Layout
42778 \begin_layout Plain Layout
42791 \begin_layout Plain Layout
42799 \begin_inset Phantom Phantom
42802 \begin_layout Plain Layout
42812 \begin_layout Plain Layout
42826 <cell alignment="left" valignment="top" usebox="none">
42829 \begin_layout Plain Layout
42833 \begin_layout Plain Layout
42846 \begin_layout Plain Layout
42854 \begin_inset Phantom Phantom
42857 \begin_layout Plain Layout
42867 \begin_layout Plain Layout
42879 <cell alignment="left" valignment="top" usebox="none">
42882 \begin_layout Plain Layout
42886 \begin_layout Plain Layout
42899 \begin_layout Plain Layout
42907 \begin_inset Phantom Phantom
42910 \begin_layout Plain Layout
42920 \begin_layout Plain Layout
42932 <cell alignment="left" valignment="top" usebox="none">
42935 \begin_layout Plain Layout
42939 \begin_layout Plain Layout
42952 \begin_layout Plain Layout
42960 \begin_inset Phantom Phantom
42963 \begin_layout Plain Layout
42973 \begin_layout Plain Layout
42985 <cell alignment="left" valignment="top" usebox="none">
42988 \begin_layout Plain Layout
42992 \begin_layout Plain Layout
43005 \begin_layout Plain Layout
43013 \begin_inset Phantom Phantom
43016 \begin_layout Plain Layout
43026 \begin_layout Plain Layout
43040 <cell alignment="left" valignment="top" usebox="none">
43043 \begin_layout Plain Layout
43047 \begin_layout Plain Layout
43060 \begin_layout Plain Layout
43068 \begin_inset Phantom Phantom
43071 \begin_layout Plain Layout
43081 \begin_layout Plain Layout
43093 <cell alignment="left" valignment="top" usebox="none">
43096 \begin_layout Plain Layout
43100 \begin_layout Plain Layout
43113 \begin_layout Plain Layout
43121 \begin_inset Phantom Phantom
43124 \begin_layout Plain Layout
43134 \begin_layout Plain Layout
43146 <cell alignment="left" valignment="top" usebox="none">
43149 \begin_layout Plain Layout
43153 \begin_layout Plain Layout
43166 \begin_layout Plain Layout
43174 \begin_inset Phantom Phantom
43177 \begin_layout Plain Layout
43187 \begin_layout Plain Layout
43199 <cell alignment="left" valignment="top" usebox="none">
43202 \begin_layout Plain Layout
43206 \begin_layout Plain Layout
43219 \begin_layout Plain Layout
43227 \begin_inset Phantom Phantom
43230 \begin_layout Plain Layout
43240 \begin_layout Plain Layout
43254 <cell alignment="left" valignment="top" usebox="none">
43257 \begin_layout Plain Layout
43261 \begin_layout Plain Layout
43274 \begin_layout Plain Layout
43282 \begin_inset Phantom Phantom
43285 \begin_layout Plain Layout
43295 \begin_layout Plain Layout
43307 <cell alignment="left" valignment="top" usebox="none">
43310 \begin_layout Plain Layout
43314 \begin_layout Plain Layout
43327 \begin_layout Plain Layout
43335 \begin_inset Phantom Phantom
43338 \begin_layout Plain Layout
43348 \begin_layout Plain Layout
43360 <cell alignment="left" valignment="top" usebox="none">
43363 \begin_layout Plain Layout
43367 \begin_layout Plain Layout
43380 \begin_layout Plain Layout
43388 \begin_inset Phantom Phantom
43391 \begin_layout Plain Layout
43401 \begin_layout Plain Layout
43413 <cell alignment="left" valignment="top" usebox="none">
43416 \begin_layout Plain Layout
43420 \begin_layout Plain Layout
43433 \begin_layout Plain Layout
43441 \begin_inset Phantom Phantom
43444 \begin_layout Plain Layout
43454 \begin_layout Plain Layout
43468 <cell alignment="left" valignment="top" usebox="none">
43471 \begin_layout Plain Layout
43475 \begin_layout Plain Layout
43488 \begin_layout Plain Layout
43496 \begin_inset Phantom Phantom
43499 \begin_layout Plain Layout
43509 \begin_layout Plain Layout
43521 <cell alignment="left" valignment="top" usebox="none">
43524 \begin_layout Plain Layout
43528 \begin_layout Plain Layout
43541 \begin_layout Plain Layout
43549 \begin_inset Phantom Phantom
43552 \begin_layout Plain Layout
43562 \begin_layout Plain Layout
43574 <cell alignment="left" valignment="top" usebox="none">
43577 \begin_layout Plain Layout
43581 \begin_layout Plain Layout
43594 \begin_layout Plain Layout
43602 \begin_inset Phantom Phantom
43605 \begin_layout Plain Layout
43615 \begin_layout Plain Layout
43627 <cell alignment="left" valignment="top" usebox="none">
43630 \begin_layout Plain Layout
43634 \begin_layout Plain Layout
43647 \begin_layout Plain Layout
43655 \begin_inset Phantom Phantom
43658 \begin_layout Plain Layout
43668 \begin_layout Plain Layout
43682 <cell alignment="left" valignment="top" usebox="none">
43685 \begin_layout Plain Layout
43689 \begin_layout Plain Layout
43702 \begin_layout Plain Layout
43710 \begin_inset Phantom Phantom
43713 \begin_layout Plain Layout
43723 \begin_layout Plain Layout
43735 <cell alignment="left" valignment="top" usebox="none">
43738 \begin_layout Plain Layout
43744 <cell alignment="left" valignment="top" usebox="none">
43747 \begin_layout Plain Layout
43753 <cell alignment="left" valignment="top" usebox="none">
43756 \begin_layout Plain Layout
43770 \begin_layout Chapter
43771 Explanation of Equation
43772 \begin_inset space ~
43776 \begin_inset CommandInset ref
43783 \begin_inset CommandInset label
43785 name "cha:Explanation-of-Equation"
43792 \begin_layout Standard
43793 We can calculate the total width of
43798 \begin_inset Formula $W_{\mathrm{tot\, n}}$
43802 \begin_inset Formula
43804 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
43810 \begin_inset Formula $W_{g\, n}$
43813 is the given width of all cells,
43819 is the LaTeX-length between the cell text and the cell border (its default
43821 \begin_inset space \thinspace{}
43831 is the thickness of the cell border line, the default is 0.4
43832 \begin_inset space \thinspace{}
43838 \begin_layout Standard
43840 \begin_inset space ~
43844 \begin_inset CommandInset ref
43846 reference "eq:Wtot_n"
43850 , the total width of a multicolumn
43851 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
43855 \begin_inset Formula
43857 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
43865 \begin_layout Standard
43866 By setting equation
43867 \begin_inset space ~
43871 \begin_inset CommandInset ref
43873 reference "eq:Wtot_n"
43878 \begin_inset CommandInset ref
43880 reference "eq:Wtot_mult"
43884 equal we can calculate the needed given width
43885 \begin_inset Formula $W_{g\, n}$
43892 columns are spanned, so that each column has a total width of
43893 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
43897 \begin_inset Formula
43899 W_{g\, n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
43907 \begin_layout Bibliography
43908 \labelwidthstring Bibliography
43909 \begin_inset CommandInset bibitem
43910 LatexCommand bibitem
43911 key "latexcompanion"
43915 Frank Mittelbach and Michel Goossens:
43917 The LaTeX Companion Second Edition.
43920 Addison-Wesley, 2004
43923 \begin_layout Bibliography
43924 \labelwidthstring Bibliography
43925 \begin_inset CommandInset bibitem
43926 LatexCommand bibitem
43931 Helmut Kopka and Patrick W.
43934 A Guide to LaTeX Fourth Edition.
43937 Addison-Wesley, 2003
43940 \begin_layout Bibliography
43941 \labelwidthstring Bibliography
43942 \begin_inset CommandInset bibitem
43943 LatexCommand bibitem
43950 LaTeX: A Document Preparation System.
43953 Addison-Wesley, second edition, 1994
43956 \begin_layout Bibliography
43957 \labelwidthstring Bibliography
43958 \begin_inset CommandInset bibitem
43959 LatexCommand bibitem
43964 Documentation of the LaTeX-package
43967 \begin_inset CommandInset href
43970 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
43977 \begin_inset Index idx
43980 \begin_layout Plain Layout
43981 LaTeX-packages ! arydshln
43989 \begin_layout Bibliography
43990 \labelwidthstring Bibliography
43991 \begin_inset CommandInset bibitem
43992 LatexCommand bibitem
43997 Documentation of the LaTeX-package
44000 \begin_inset CommandInset href
44003 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
44010 \begin_inset Index idx
44013 \begin_layout Plain Layout
44014 LaTeX-packages ! booktabs
44022 \begin_layout Bibliography
44023 \labelwidthstring Bibliography
44024 \begin_inset CommandInset bibitem
44025 LatexCommand bibitem
44030 Documentation of the LaTeX-package
44033 \begin_inset CommandInset href
44036 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
44043 \begin_inset Index idx
44046 \begin_layout Plain Layout
44047 LaTeX-packages ! caption
44055 \begin_layout Bibliography
44056 \labelwidthstring Bibliography
44057 \begin_inset CommandInset bibitem
44058 LatexCommand bibitem
44063 Documentation of the LaTeX-package
44066 \begin_inset CommandInset href
44069 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
44076 \begin_inset Index idx
44079 \begin_layout Plain Layout
44080 LaTeX-packages ! diagbox
44088 \begin_layout Bibliography
44089 \labelwidthstring Bibliography
44090 \begin_inset CommandInset bibitem
44091 LatexCommand bibitem
44096 Documentation of the LaTeX-package
44099 \begin_inset CommandInset href
44102 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
44109 \begin_inset Index idx
44112 \begin_layout Plain Layout
44113 LaTeX-packages ! endfloat
44121 \begin_layout Bibliography
44122 \labelwidthstring Bibliography
44123 \begin_inset CommandInset bibitem
44124 LatexCommand bibitem
44129 Documentation of the LaTeX-package
44132 \begin_inset CommandInset href
44135 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
44142 \begin_inset Index idx
44145 \begin_layout Plain Layout
44146 LaTeX-packages ! footmisc
44154 \begin_layout Bibliography
44155 \labelwidthstring Bibliography
44156 \begin_inset CommandInset bibitem
44157 LatexCommand bibitem
44162 Documentation of the LaTeX-package
44165 \begin_inset CommandInset href
44168 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
44175 \begin_inset Index idx
44178 \begin_layout Plain Layout
44179 LaTeX-packages ! hyperref
44187 \begin_layout Bibliography
44188 \labelwidthstring Bibliography
44189 \begin_inset CommandInset bibitem
44190 LatexCommand bibitem
44195 Documentation of the LaTeX-package
44198 \begin_inset CommandInset href
44201 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
44208 \begin_inset Index idx
44211 \begin_layout Plain Layout
44212 LaTeX-packages ! hyperref
44220 \begin_layout Bibliography
44221 \labelwidthstring Bibliography
44222 \begin_inset CommandInset bibitem
44223 LatexCommand bibitem
44228 Documentation of the LaTeX-package
44231 \begin_inset CommandInset href
44234 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
44241 \begin_inset Index idx
44244 \begin_layout Plain Layout
44245 LaTeX-packages ! KOMA-Script
44253 \begin_layout Bibliography
44254 \labelwidthstring Bibliography
44255 \begin_inset CommandInset bibitem
44256 LatexCommand bibitem
44261 Documentation of the LaTeX-package
44264 \begin_inset CommandInset href
44267 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
44274 \begin_inset CommandInset href
44277 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
44282 \begin_inset Index idx
44285 \begin_layout Plain Layout
44286 LaTeX-packages ! lettrine
44294 \begin_layout Bibliography
44295 \labelwidthstring Bibliography
44296 \begin_inset CommandInset bibitem
44297 LatexCommand bibitem
44302 Documentation of the LaTeX-package
44305 \begin_inset CommandInset href
44308 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
44315 \begin_inset Index idx
44318 \begin_layout Plain Layout
44319 LaTeX-packages ! listings
44327 \begin_layout Bibliography
44328 \labelwidthstring Bibliography
44329 \begin_inset CommandInset bibitem
44330 LatexCommand bibitem
44335 Documentation of the LaTeX-package
44338 \begin_inset CommandInset href
44341 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
44348 \begin_inset Index idx
44351 \begin_layout Plain Layout
44352 LaTeX-packages ! marginnote
44360 \begin_layout Bibliography
44361 \labelwidthstring Bibliography
44362 \begin_inset CommandInset bibitem
44363 LatexCommand bibitem
44368 Documentation of the LaTeX-package
44371 \begin_inset CommandInset href
44374 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
44381 \begin_inset Index idx
44384 \begin_layout Plain Layout
44385 LaTeX-packages ! pdfpages
44393 \begin_layout Bibliography
44394 \labelwidthstring Bibliography
44395 \begin_inset CommandInset bibitem
44396 LatexCommand bibitem
44401 Documentation of the LaTeX-package
44404 \begin_inset CommandInset href
44407 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
44414 \begin_inset Index idx
44417 \begin_layout Plain Layout
44418 LaTeX-packages ! prettyref
44426 \begin_layout Bibliography
44427 \labelwidthstring Bibliography
44428 \begin_inset CommandInset bibitem
44429 LatexCommand bibitem
44434 Web page of the LaTeX-package
44437 \begin_inset CommandInset href
44440 target "http://tug.org/PSTricks/"
44447 \begin_inset Index idx
44450 \begin_layout Plain Layout
44451 LaTeX-packages ! PSTricks
44459 \begin_layout Bibliography
44460 \labelwidthstring Bibliography
44461 \begin_inset CommandInset bibitem
44462 LatexCommand bibitem
44467 Documentation of the LaTeX-package
44470 \begin_inset CommandInset href
44473 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
44480 \begin_inset Index idx
44483 \begin_layout Plain Layout
44484 LaTeX-packages ! refstyle
44492 \begin_layout Bibliography
44493 \labelwidthstring Bibliography
44494 \begin_inset CommandInset bibitem
44495 LatexCommand bibitem
44500 Documentation of the LaTeX-package
44503 \begin_inset CommandInset href
44506 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
44513 \begin_inset Index idx
44516 \begin_layout Plain Layout
44517 LaTeX-packages ! sidecap
44525 \begin_layout Bibliography
44526 \labelwidthstring Bibliography
44527 \begin_inset CommandInset bibitem
44528 LatexCommand bibitem
44534 \begin_inset CommandInset href
44537 target "http://wiki.lyx.org/LyX/NewInLyX20"
44541 about new features in
44548 \begin_layout Standard
44549 \begin_inset CommandInset index_print
44550 LatexCommand printindex