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
24167 \begin_inset Newline newline
24177 \begin_inset Newline newline
24188 equationautorefname}
24189 \begin_inset Newline newline
24193 \begin_inset Phantom HPhantom
24196 \begin_layout Plain Layout
24199 \begin_inset space ~
24214 \begin_layout Standard
24215 More about this topic can be found in
24220 \begin_inset CommandInset citation
24229 \begin_layout Standard
24230 \begin_inset Note Greyedout
24233 \begin_layout Plain Layout
24238 Automatic reference naming cannot be used when you use cross-references
24242 \begin_inset space ~
24247 style, as described in section
24248 \begin_inset space ~
24252 \begin_inset CommandInset ref
24254 reference "sub:Cross-Reference-Formats"
24266 \begin_layout Standard
24271 manual is an example where automatic reference naming is used.
24274 \begin_layout Subsection
24276 \begin_inset CommandInset label
24278 name "sub:Reference-Position"
24283 \begin_inset Index idx
24286 \begin_layout Plain Layout
24287 References ! Reference Position
24295 \begin_layout Standard
24301 \begin_inset Index idx
24304 \begin_layout Plain Layout
24305 LaTeX-packages ! hyperref
24318 dialog to link cross-references in the output, you will see that clicking
24319 on an image float reference jumps to the image label.
24320 The caption will be the first text part on the screen, so that you cannot
24321 see the image without scrolling.
24322 This is because the reference link anchor is placed at the position of
24324 With the use of the package
24329 \begin_inset Index idx
24332 \begin_layout Plain Layout
24333 LaTeX-packages ! hypcap
24338 , which is part of the LaTeX-package
24343 \begin_inset Index idx
24346 \begin_layout Plain Layout
24347 LaTeX-packages ! oberdiek
24352 , the link anchor is placed at the beginning of a float.
24353 To use this feature for figure floats, load
24357 in the document preamble with the line
24360 \begin_layout Standard
24365 usepackage[figure]{hypcap}
24368 \begin_layout Standard
24373 for all float types but this is not recommended for stability reasons.
24374 For more information, have a look at
24379 \begin_inset CommandInset citation
24388 \begin_layout Standard
24389 \begin_inset Note Greyedout
24392 \begin_layout Plain Layout
24401 has no effect on references to subfigures.
24409 \begin_layout Section
24411 \begin_inset CommandInset label
24413 name "sec:Float-Placement"
24418 \begin_inset Index idx
24421 \begin_layout Plain Layout
24430 \begin_layout Standard
24431 Right-clicking on a float-box opens a dialog where you can alter the placement
24432 options that LaTeX uses for positioning the float.
24433 \begin_inset Newline newline
24439 \begin_inset space ~
24444 is only useful for two-column documents: If you select it, the float will
24445 span both columns on the page instead of being confined to just one.
24446 \begin_inset Newline newline
24452 \begin_inset space ~
24457 is used to rotate floats, see section
24458 \begin_inset CommandInset ref
24460 reference "sec:Rotated-Floats"
24467 \begin_layout Standard
24468 You can use one ore more of the following options in the float dialog to
24469 set the placement for a particular float when you uncheck the option
24472 \begin_inset space ~
24476 \begin_inset space ~
24484 \begin_layout Description
24486 \begin_inset space ~
24490 \begin_inset space ~
24493 possible try to place the float on the position where it has been inserted
24496 \begin_layout Description
24498 \begin_inset space ~
24502 \begin_inset space ~
24505 page try to place the float at the top of the current page
24508 \begin_layout Description
24510 \begin_inset space ~
24514 \begin_inset space ~
24517 page try to place the float at the bottom of the current page
24520 \begin_layout Description
24522 \begin_inset space ~
24526 \begin_inset space ~
24529 floats try to place the float on its own page
24532 \begin_layout Standard
24533 The order of the above option is
24538 That means, if you use the default placement, LaTeX will first try out
24542 \begin_inset space ~
24546 \begin_inset space ~
24554 \begin_inset space ~
24558 \begin_inset space ~
24563 , and then the others.
24564 If you do not use the default, LaTeX will try only the checked options
24565 but in the same order.
24567 \begin_inset space ~
24570 placements are possible the procedure is internally repeated but it is tried
24571 to put the float on the following page.
24574 \begin_layout Standard
24575 By default, each option has its own rules:
24578 \begin_layout Labeling
24579 \labelwidthstring 00.00.0000
24583 \begin_inset space ~
24587 \begin_inset space ~
24592 only floats occupying less than 70
24593 \begin_inset space \thinspace{}
24596 % of the page can be placed at the top of a page (
24605 \begin_layout Labeling
24606 \labelwidthstring 00.00.0000
24610 \begin_inset space ~
24614 \begin_inset space ~
24619 : only floats occupying less than 30
24620 \begin_inset space \thinspace{}
24623 % of the page can be placed at the bottom of a page.
24633 \begin_layout Labeling
24634 \labelwidthstring 00.00.0000
24638 \begin_inset space ~
24642 \begin_inset space ~
24647 : only if more than 50
24648 \begin_inset space \thinspace{}
24651 % of the page are occupied by floats, several floats can be set together
24662 \begin_layout Standard
24663 If you don't like these rules, you can ignore them by using the additional
24667 \begin_inset space ~
24671 \begin_inset space ~
24677 \begin_inset Newline newline
24680 You can also redefine the rules with LaTeX-commands that are given in parenthese
24681 s after the rules description above.
24682 To increase for example the often too small default of the bottom-rule
24684 \begin_inset space \thinspace{}
24687 % of the page, add this line to your document preamble:
24690 \begin_layout Standard
24697 bottomfraction}{0.5}
24700 \begin_layout Standard
24701 Sometimes you might need, under all circumstances, a float to be placed
24702 exactly at the position where it is inserted.
24703 For this case you can use the option
24706 \begin_inset space ~
24712 Use this option very rarely and only if the document is almost ready to
24713 be printed, because the float is then no longer able to
24714 \begin_inset Quotes eld
24718 \begin_inset Quotes erd
24721 when you change your document and this will often destroy the page layout.
24724 \begin_layout Standard
24725 There are no placement options for text wrap floats, because they are always
24726 surrounded by the text of a certain paragraph.
24727 \begin_inset VSpace bigskip
24733 \begin_layout Standard
24734 Sometimes you have the problem that a float is placed at the top of a page
24735 while its corresponding section starts at the middle of the page, so that
24736 the reader could think the float is part of the previous section.
24737 To avoid this the LaTeX-command
24744 It suppresses a given float placement for the page where it is inserted
24745 and can therefore be used to avoid floats being set before a section starts.
24746 To get this, add these commands to your document preamble:
24749 \begin_layout Standard
24759 \begin_inset Newline newline
24773 \begin_layout Standard
24774 You can define the same for all section headings, like chapters and subsections.
24775 This definition is not recommended to be used for small text parts like
24776 subsubsections because LaTeX may then have problems finding a suitable
24780 \begin_layout Standard
24781 \begin_inset VSpace bigskip
24784 In some cases it is required to have all figures/tables at the end of the
24786 For this purpose the LaTeX-package
24791 \begin_inset Index idx
24794 \begin_layout Plain Layout
24795 LaTeX-packages ! endfloat
24801 It puts all figure and table floats at the end of the document into their
24803 At the original float position a text hint like
24804 \begin_inset Quotes eld
24810 \begin_inset space ~
24816 \begin_inset Quotes erd
24820 The endfloat-package is loaded in the preamble with the line
24823 \begin_layout Standard
24828 usepackage[options]{endfloat}
24831 \begin_layout Standard
24832 There are various package options to format the created figure/table sections.
24833 For more information we refer to the
24838 \begin_inset CommandInset citation
24845 \begin_inset Newline newline
24849 \begin_inset Note Greyedout
24852 \begin_layout Plain Layout
24857 doesn't provide an automatic translation for the text hint, you have to
24858 do this manually, see section
24859 \begin_inset space ~
24863 \begin_inset CommandInset citation
24875 \begin_inset Newline newline
24879 \begin_inset Note Greyedout
24882 \begin_layout Plain Layout
24887 There is currently a bug in
24891 when the caption contains a German
24892 \begin_inset Quotes eld
24896 \begin_inset Quotes erd
24900 Use in this case the command
24901 \begin_inset Quotes eld
24911 \begin_inset Quotes erd
24914 in TeX-Code instead of
24915 \begin_inset Quotes eld
24919 \begin_inset Quotes erd
24930 \begin_layout Standard
24931 \begin_inset VSpace bigskip
24934 For more details about float placements, have a look at LaTeX books,
24935 \begin_inset CommandInset citation
24937 key "latexcompanion,latexguide,latexbook"
24944 \begin_layout Section
24946 \begin_inset CommandInset label
24948 name "sec:Rotated-Floats"
24953 \begin_inset Index idx
24956 \begin_layout Plain Layout
24965 \begin_layout Standard
24966 Especially for wide tables you might have floats rotated.
24967 To rotate a whole float including the caption, right-click on the float-box
24971 \begin_inset space ~
24979 \begin_layout Standard
24980 Rotated floats are always placed on a page of their own (or column of their
24981 own; in case you have a multi-column document).
24982 You can let them span several columns using the float settings option
24985 \begin_inset space ~
24991 Floats are rotated so that you can read them from the outside margin.
24992 To force a certain rotation direction for all pages, you can add either
25001 to the document class options.
25004 \begin_layout Standard
25005 Referencing rotated floats is the same as for normal floats, the caption
25006 format is also the same: Table
25007 \begin_inset space ~
25011 \begin_inset CommandInset ref
25013 reference "tab:Rotated-table"
25017 is an example of a rotated table float.
25020 \begin_layout Standard
25021 \begin_inset Note Greyedout
25024 \begin_layout Plain Layout
25029 Not all DVI-viewers are able to display rotated floats.
25037 \begin_layout Standard
25038 \begin_inset Float table
25043 \begin_layout Plain Layout
25044 \begin_inset Caption
25046 \begin_layout Plain Layout
25047 \begin_inset CommandInset label
25049 name "tab:Rotated-table"
25061 \begin_layout Plain Layout
25063 \begin_inset Tabular
25064 <lyxtabular version="3" rows="1" columns="5">
25065 <features tabularvalignment="middle">
25066 <column alignment="center" valignment="top" width="0">
25067 <column alignment="center" valignment="top" width="0">
25068 <column alignment="center" valignment="top" width="0">
25069 <column alignment="center" valignment="top" width="0">
25070 <column alignment="center" valignment="top" width="0">
25072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25075 \begin_layout Plain Layout
25081 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25084 \begin_layout Plain Layout
25090 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25093 \begin_layout Plain Layout
25099 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25102 \begin_layout Plain Layout
25108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25111 \begin_layout Plain Layout
25130 \begin_layout Section
25132 \begin_inset Index idx
25135 \begin_layout Plain Layout
25144 \begin_layout Standard
25145 Subfloats are for example used when a figure consists of several images.
25146 They are created by inserting a float into an existing float.
25147 The placement of the subfloats can be controlled in the same way as for
25148 paragraphs as shown in table
25149 \begin_inset space ~
25153 \begin_inset CommandInset ref
25155 reference "tab:Two-subtables-side"
25160 \begin_inset CommandInset ref
25162 reference "tab:Two-subtables-upon"
25169 \begin_layout Standard
25170 Referencing subfloats works as for normal floats: Table
25171 \begin_inset space ~
25175 \begin_inset CommandInset ref
25177 reference "tab:This-is-subtable-a"
25182 \begin_inset CommandInset ref
25184 reference "tab:This-is-subtable-b"
25188 are subtables of table
25189 \begin_inset space ~
25193 \begin_inset CommandInset ref
25195 reference "tab:Two-subtables-side"
25202 \begin_layout Standard
25203 \begin_inset Float table
25208 \begin_layout Plain Layout
25209 \begin_inset Caption
25211 \begin_layout Plain Layout
25212 \begin_inset CommandInset label
25214 name "tab:Two-subtables-side"
25218 Two subtables placed side by side.
25226 \begin_layout Plain Layout
25228 \begin_inset space \hfill{}
25232 \begin_inset Float table
25237 \begin_layout Plain Layout
25238 \begin_inset Caption
25240 \begin_layout Plain Layout
25241 \begin_inset CommandInset label
25243 name "tab:This-is-subtable-a"
25247 This is subtable a.
25255 \begin_layout Plain Layout
25257 \begin_inset Tabular
25258 <lyxtabular version="3" rows="1" columns="5">
25259 <features tabularvalignment="middle">
25260 <column alignment="center" valignment="top" width="0">
25261 <column alignment="center" valignment="top" width="0">
25262 <column alignment="center" valignment="top" width="0">
25263 <column alignment="center" valignment="top" width="0">
25264 <column alignment="center" valignment="top" width="0">
25266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25269 \begin_layout Plain Layout
25275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25278 \begin_layout Plain Layout
25284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25287 \begin_layout Plain Layout
25293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25296 \begin_layout Plain Layout
25302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25305 \begin_layout Plain Layout
25322 \begin_inset space \hfill{}
25326 \begin_inset Float table
25331 \begin_layout Plain Layout
25332 \begin_inset Caption
25334 \begin_layout Plain Layout
25335 \begin_inset CommandInset label
25337 name "tab:This-is-subtable-b"
25341 This is subtable b.
25349 \begin_layout Plain Layout
25351 \begin_inset Tabular
25352 <lyxtabular version="3" rows="1" columns="5">
25353 <features tabularvalignment="middle">
25354 <column alignment="center" valignment="top" width="0">
25355 <column alignment="center" valignment="top" width="0">
25356 <column alignment="center" valignment="top" width="0">
25357 <column alignment="center" valignment="top" width="0">
25358 <column alignment="center" valignment="top" width="0">
25360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25363 \begin_layout Plain Layout
25369 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25372 \begin_layout Plain Layout
25378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25381 \begin_layout Plain Layout
25387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25390 \begin_layout Plain Layout
25396 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25399 \begin_layout Plain Layout
25416 \begin_inset space \hfill{}
25427 \begin_layout Standard
25428 \begin_inset Float table
25433 \begin_layout Plain Layout
25434 \begin_inset Caption
25436 \begin_layout Plain Layout
25437 \begin_inset CommandInset label
25439 name "tab:Two-subtables-upon"
25443 Two subtables placed one above the other.
25444 (a) table with 4 cells, (b) table with 5 cells.
25452 \begin_layout Plain Layout
25454 \begin_inset Float table
25459 \begin_layout Plain Layout
25460 \begin_inset Caption
25462 \begin_layout Plain Layout
25471 \begin_layout Plain Layout
25473 \begin_inset Tabular
25474 <lyxtabular version="3" rows="1" columns="4">
25475 <features tabularvalignment="middle">
25476 <column alignment="center" valignment="top" width="0">
25477 <column alignment="center" valignment="top" width="0">
25478 <column alignment="center" valignment="top" width="0">
25479 <column alignment="center" valignment="top" width="0">
25481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25484 \begin_layout Plain Layout
25490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25493 \begin_layout Plain Layout
25499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25502 \begin_layout Plain Layout
25508 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25511 \begin_layout Plain Layout
25530 \begin_layout Plain Layout
25532 \begin_inset Float table
25537 \begin_layout Plain Layout
25538 \begin_inset Caption
25540 \begin_layout Plain Layout
25549 \begin_layout Plain Layout
25551 \begin_inset Tabular
25552 <lyxtabular version="3" rows="1" columns="5">
25553 <features tabularvalignment="middle">
25554 <column alignment="center" valignment="top" width="0">
25555 <column alignment="center" valignment="top" width="0">
25556 <column alignment="center" valignment="top" width="0">
25557 <column alignment="center" valignment="top" width="0">
25558 <column alignment="center" valignment="top" width="0">
25560 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25563 \begin_layout Plain Layout
25569 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25572 \begin_layout Plain Layout
25578 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25581 \begin_layout Plain Layout
25587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25590 \begin_layout Plain Layout
25596 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25599 \begin_layout Plain Layout
25623 \begin_layout Section
25624 Floats Side by Side
25625 \begin_inset Index idx
25628 \begin_layout Plain Layout
25629 Floats ! Side by side
25637 \begin_layout Standard
25638 To place floats side by side, as in Figures
25639 \begin_inset space ~
25643 \begin_inset CommandInset ref
25645 reference "fig:Float-left"
25650 \begin_inset CommandInset ref
25652 reference "fig:Float-right"
25661 In it two minipage boxes are inserted.
25665 \begin_layout Plain Layout
25666 Minipages are explained in section
25667 \begin_inset space ~
25671 \begin_inset CommandInset ref
25673 reference "sec:Minipages"
25682 The width is set to 45
25683 \begin_inset space \thinspace{}
25687 \begin_inset space \thinspace{}
25690 column% and the box alignment to
25695 The minipage boxes contain the image and the caption in the same way as
25696 they are in a float.
25697 The only difference is that the image unit
25700 \begin_inset space ~
25704 \begin_inset space ~
25709 is now calculated according to the width of the minipage boxes.
25712 \begin_layout Standard
25713 \begin_inset Float figure
25718 \begin_layout Plain Layout
25719 \begin_inset Box Frameless
25729 height_special "totalheight"
25732 \begin_layout Plain Layout
25734 \begin_inset Graphics
25735 filename clipart/mobius.eps
25738 scaleBeforeRotation
25745 \begin_layout Plain Layout
25746 \begin_inset Caption
25748 \begin_layout Plain Layout
25749 \begin_inset CommandInset label
25751 name "fig:Float-left"
25755 Float on the left side.
25766 \begin_inset space \hfill{}
25770 \begin_inset Box Frameless
25780 height_special "totalheight"
25783 \begin_layout Plain Layout
25785 \begin_inset Graphics
25786 filename clipart/platypus.eps
25789 scaleBeforeRotation
25796 \begin_layout Plain Layout
25797 \begin_inset Caption
25799 \begin_layout Plain Layout
25800 \begin_inset CommandInset label
25802 name "fig:Float-right"
25806 Float on the right side.
25819 \begin_layout Plain Layout
25828 \begin_layout Section
25830 \begin_inset Index idx
25833 \begin_layout Plain Layout
25834 Caption ! Formatting
25840 \begin_inset Index idx
25843 \begin_layout Plain Layout
25844 Floats ! Caption Formatting
25850 \begin_inset CommandInset label
25852 name "sec:Caption-Formatting"
25859 \begin_layout Standard
25864 environment is the default paragraph environment for
25869 On the LyX screen captions appear as label, e.
25870 \begin_inset space \thinspace{}
25874 \begin_inset space \space{}
25878 \begin_inset Quotes eld
25886 \begin_inset Quotes erd
25889 followed by the caption text.
25891 \begin_inset Quotes eld
25895 \begin_inset Quotes erd
25898 is the actual reference number.
25899 By default the label and the number are in the same font as the caption
25900 text and a colon follows the number to divide the label from the text.
25901 This caption format is not suitable for all document formats.
25905 \begin_layout Standard
25906 To change the default caption format, load the LaTeX-package
25911 \begin_inset Index idx
25914 \begin_layout Plain Layout
25915 LaTeX-packages ! caption
25920 in the document preamble with this line:
25923 \begin_layout Standard
25928 usepackage[format definition]{caption}
25931 \begin_layout Standard
25932 To have for example the label and the number in sans-serif bold font and
25933 the table captions always above the table as in this document, use the
25937 \begin_layout Standard
25942 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
25945 \begin_layout Standard
25946 You can also define different caption formats for the different float types.
25947 In this case load the
25951 package without format specific options and define the different formats
25952 with the help of the command
25955 \begin_layout Standard
25960 captionsetup[float type]{format definition}
25963 \begin_layout Standard
25964 in the document preamble.
25965 For example the caption formats of Figure
25966 \begin_inset space ~
25970 \begin_inset CommandInset ref
25972 reference "fig:This-is-an-fig"
25977 \begin_inset space ~
25981 \begin_inset CommandInset ref
25983 reference "tab:This-is-an-tab"
25987 can be created using these commands in the document preamble:
25990 \begin_layout Standard
25995 usepackage[tableposition=top]{caption}
25998 \begin_inset Newline newline
26005 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
26006 \begin_inset Newline newline
26010 \begin_inset Phantom HPhantom
26013 \begin_layout Plain Layout
26018 captionsetup[figure]{
26024 \begin_inset Newline newline
26029 captionsetup[table]{labelfont={bf,sf}}
26032 \begin_layout Standard
26033 \begin_inset Note Greyedout
26036 \begin_layout Plain Layout
26045 has no effect when a
26050 \begin_inset Index idx
26053 \begin_layout Plain Layout
26054 LaTeX-packages ! KOMA-Script
26059 document class is used.
26060 In this case the document class option
26062 captions=tableheading
26072 \begin_layout Standard
26073 For more information about the package
26077 we refer to its documentation
26078 \begin_inset CommandInset citation
26087 \begin_layout Standard
26088 To change the label name from e.
26089 \begin_inset space \thinspace{}
26093 \begin_inset space \space{}
26097 \begin_inset Quotes eld
26101 \begin_inset Quotes erd
26105 \begin_inset Quotes eld
26109 \begin_inset Quotes erd
26112 use this preamble command:
26115 \begin_layout Standard
26122 fnum@figure}{Image~
26127 \begin_layout Standard
26134 inserts the figure number and
26137 \begin_inset Quotes eld
26143 \begin_inset Quotes erd
26146 creates a protected space.
26149 \begin_layout Standard
26150 \begin_inset VSpace bigskip
26158 \begin_inset Index idx
26161 \begin_layout Plain Layout
26162 LaTeX-packages ! KOMA-Script
26169 article (KOMA-Script)
26177 letter (KOMA-Script)
26181 report (KOMA-Script)
26184 \begin_inset space \thinspace{}
26187 ), you can alternatively to the
26195 's built-in command
26202 For example, to have the caption label in bold, add this command to your
26206 \begin_layout Standard
26211 setkomafont{captionlabel}{
26216 \begin_layout Standard
26217 For more information about
26228 \begin_inset CommandInset citation
26237 \begin_layout Standard
26241 \begin_layout Plain Layout
26245 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
26252 \begin_inset Note Note
26255 \begin_layout Plain Layout
26256 The caption format is changed only for this example.
26264 \begin_layout Standard
26265 \begin_inset Float figure
26271 \begin_layout Plain Layout
26273 \begin_inset Graphics
26274 filename clipart/mobius.eps
26277 scaleBeforeRotation
26284 \begin_layout Plain Layout
26285 \begin_inset Caption
26287 \begin_layout Plain Layout
26288 \begin_inset CommandInset label
26290 name "fig:This-is-an-fig"
26294 This is an example figure caption that is longer than one line to show the
26295 different caption format.
26296 Here a self-defined caption format is used.
26309 \begin_layout Standard
26313 \begin_layout Plain Layout
26317 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
26326 \begin_layout Standard
26327 \begin_inset Float table
26333 \begin_layout Plain Layout
26334 \begin_inset Caption
26336 \begin_layout Plain Layout
26337 \begin_inset CommandInset label
26339 name "tab:This-is-an-tab"
26343 This is an example table caption that is longer than one line to show the
26344 different caption format.
26345 Here the standard caption format for tables in this document is used.
26353 \begin_layout Plain Layout
26355 \begin_inset Tabular
26356 <lyxtabular version="3" rows="1" columns="5">
26357 <features tabularvalignment="middle">
26358 <column alignment="center" valignment="top" width="0">
26359 <column alignment="center" valignment="top" width="0">
26360 <column alignment="center" valignment="top" width="0">
26361 <column alignment="center" valignment="top" width="0">
26362 <column alignment="center" valignment="top" width="0">
26364 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26367 \begin_layout Plain Layout
26373 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26376 \begin_layout Plain Layout
26382 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26385 \begin_layout Plain Layout
26391 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26394 \begin_layout Plain Layout
26400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26403 \begin_layout Plain Layout
26422 \begin_layout Section
26424 \begin_inset Index idx
26427 \begin_layout Plain Layout
26428 Caption ! Placement
26434 \begin_inset Index idx
26437 \begin_layout Plain Layout
26438 Floats ! Caption Placement
26444 \begin_inset CommandInset label
26446 name "sec:Caption-Placement"
26453 \begin_layout Standard
26454 The common caption placement rule is:
26457 \begin_layout Description
26458 Figure: Caption is set below the figure
26461 \begin_layout Description
26462 Table: Caption is set above the table
26465 \begin_layout Standard
26466 Having the caption above the table is unfortunately not supported in LaTeX's
26468 That means if you are using the document classes
26484 there will be no space between the caption and the table.
26485 To insert the necessary space, add the following option to the load command
26486 of the LaTeX-package
26490 in your document preamble
26494 \begin_layout Plain Layout
26496 \begin_inset space ~
26500 \begin_inset CommandInset ref
26502 reference "sec:Caption-Formatting"
26506 for more information of the package
26518 \begin_layout Standard
26524 \begin_layout Standard
26530 \begin_inset Index idx
26533 \begin_layout Plain Layout
26534 LaTeX-packages ! KOMA-Script
26541 article (KOMA-Script)
26549 letter (KOMA-Script)
26553 report (KOMA-Script)
26556 \begin_inset space \thinspace{}
26559 ), you can alternatively to the
26563 package set the document class option
26565 captions=tableheading
26570 \begin_layout Standard
26571 \begin_inset VSpace bigskip
26574 It is also possible to set the caption beside a figure or table.
26575 To get this the LaTeX-package
26580 \begin_inset Index idx
26583 \begin_layout Plain Layout
26584 LaTeX-packages ! sidecap
26589 has to be loaded in the document preamble with the line
26592 \begin_layout Standard
26597 usepackage[option]{sidecap}
26600 \begin_layout Standard
26601 If you set no option, the caption is placed on the side of the outer page
26602 margin – to the right on odd pages, to the left on even pages.
26603 You can change the placement to inner margin with the option
26608 To force the placement always to the right or left, use the option
26619 \begin_layout Standard
26623 \begin_layout Plain Layout
26633 \begin_inset Note Note
26636 \begin_layout Plain Layout
26637 The following section will only be displayed when the LaTeX-package
26649 \begin_layout Standard
26650 To place in LyX the caption of a float on the side, it is necessary to add
26651 these commands to the document preamble:
26654 \begin_layout Standard
26655 \begin_inset Newpage pagebreak
26661 \begin_layout Standard
26663 \begin_inset CommandInset line
26674 \begin_layout Standard
26681 TabBesBeg}[1][1.0]{%
26682 \begin_inset Newline newline
26686 \begin_inset Phantom HPhantom
26689 \begin_layout Plain Layout
26690 \begin_inset space ~
26705 \begin_inset Newline newline
26709 \begin_inset Phantom HPhantom
26712 \begin_layout Plain Layout
26715 \begin_inset space ~
26730 \begin_inset Newline newline
26734 \begin_inset Phantom HPhantom
26737 \begin_layout Plain Layout
26740 \begin_inset space ~
26750 renewenvironment{table}[1]{
26752 begin{SCtable}[#1]##1}{
26757 \begin_layout Standard
26765 \begin_inset Newline newline
26769 \begin_inset Phantom HPhantom
26772 \begin_layout Plain Layout
26773 \begin_inset space ~
26788 \begin_inset Newline newline
26792 \begin_inset Phantom HPhantom
26795 \begin_layout Plain Layout
26796 \begin_inset space ~
26813 \begin_layout Standard
26820 FigBesBeg}[1][1.0]{%
26821 \begin_inset Newline newline
26825 \begin_inset Phantom HPhantom
26828 \begin_layout Plain Layout
26829 \begin_inset space ~
26844 \begin_inset Newline newline
26848 \begin_inset Phantom HPhantom
26851 \begin_layout Plain Layout
26852 \begin_inset space ~
26867 \begin_inset Newline newline
26871 \begin_inset Phantom HPhantom
26874 \begin_layout Plain Layout
26875 \begin_inset space ~
26885 renewenvironment{figure}[1]{
26887 begin{SCfigure}[#1]##1}{
26892 \begin_layout Standard
26900 \begin_inset Newline newline
26904 \begin_inset Phantom HPhantom
26907 \begin_layout Plain Layout
26908 \begin_inset space ~
26923 \begin_inset Newline newline
26927 \begin_inset Phantom HPhantom
26930 \begin_layout Plain Layout
26931 \begin_inset space ~
26948 \begin_layout Standard
26950 \begin_inset CommandInset line
26961 \begin_layout Standard
26962 The commands allow you to redefine the floats so that the caption is set
26964 For figure floats use the command
26967 \begin_layout Standard
26975 \begin_layout Standard
26976 in TeX-Code before the float.
26977 And insert the command
26980 \begin_layout Standard
26988 \begin_layout Standard
26989 in TeX-Code at the point where you want to get back to the original float
26993 \begin_layout Standard
26994 For table floats use the corresponding commands
26997 \begin_layout Standard
27011 \begin_layout Standard
27013 \begin_inset space ~
27017 \begin_inset CommandInset ref
27019 reference "fig:cap-beside-fig"
27024 \begin_inset space ~
27028 \begin_inset CommandInset ref
27030 reference "tab:cap-beside-tab"
27034 are examples where the caption is set beside.
27037 \begin_layout Standard
27038 You can see in the examples that the caption text appears at the top of
27039 the floats for table floats and at the bottom for figure floats.
27040 To change this, you can use the command
27043 \begin_layout Standard
27048 sidecaptionvpos{float type}{placement}
27051 \begin_layout Standard
27052 in the document preamble or in TeX-Code before the float.
27053 The float type is either
27061 , the placement can be
27062 \begin_inset Quotes eld
27070 \begin_inset Quotes erd
27074 \begin_inset Quotes eld
27082 \begin_inset Quotes erd
27086 \begin_inset Quotes eld
27094 \begin_inset Quotes erd
27098 To have for example the caption of figure floats vertically centered, use
27102 \begin_layout Standard
27107 sidecaptionvpos{figure}{c}
27110 \begin_layout Standard
27111 This was used for Figure
27112 \begin_inset space ~
27116 \begin_inset CommandInset ref
27118 reference "fig:cap-beside-fig-2"
27125 \begin_layout Standard
27126 \begin_inset VSpace medskip
27132 \begin_layout Standard
27133 The default caption width is the width of the image/table.
27134 For thin image/tables, like in Table
27135 \begin_inset space ~
27139 \begin_inset CommandInset ref
27141 reference "tab:cap-beside-tab"
27145 , this leads to captions that are too thin.
27146 You can increase the width by specifying a factor that will be multiplied
27147 with the image/table width to get the caption width.
27148 The caption width will automatically be recalculated in case it would protrude
27149 over the page or column margin due to the specified width.
27154 can either be given as optional argument for
27163 \begin_layout Standard
27171 \begin_layout Standard
27172 or in the definition of
27182 with another value.
27183 If you do the latter, your factor will be the default if
27189 is used without an argument.
27191 \begin_inset space ~
27195 \begin_inset CommandInset ref
27197 reference "tab:cap-beside-tab-wider"
27201 the factor 5 was used.
27204 \begin_layout Standard
27205 \begin_inset Note Greyedout
27208 \begin_layout Plain Layout
27213 For floats with captions set beside, you cannot use the float placement
27217 \begin_inset space ~
27222 because it is not supported by
27234 \begin_layout Standard
27235 \begin_inset VSpace medskip
27238 For more information about the package
27242 we refer to its documentation
27243 \begin_inset CommandInset citation
27252 \begin_layout Standard
27253 \begin_inset Note Greyedout
27256 \begin_layout Plain Layout
27266 \begin_inset Index idx
27269 \begin_layout Plain Layout
27270 LaTeX-packages ! hypcap
27275 , described in section
27276 \begin_inset space ~
27280 \begin_inset CommandInset ref
27282 reference "sub:Reference-Position"
27286 , has no effect on floats with the caption set beside.
27294 \begin_layout Standard
27298 \begin_layout Plain Layout
27310 \begin_layout Standard
27311 \begin_inset Float figure
27316 \begin_layout Plain Layout
27317 \begin_inset Graphics
27318 filename clipart/escher-lsd.eps
27320 scaleBeforeRotation
27327 \begin_layout Plain Layout
27328 \begin_inset Caption
27330 \begin_layout Plain Layout
27331 \begin_inset CommandInset label
27333 name "fig:cap-beside-fig"
27337 This is a caption beside a figure.
27350 \begin_layout Standard
27354 \begin_layout Plain Layout
27366 \begin_layout Standard
27370 \begin_layout Plain Layout
27382 \begin_layout Standard
27383 \begin_inset Float table
27388 \begin_layout Plain Layout
27389 \begin_inset Caption
27391 \begin_layout Plain Layout
27392 \begin_inset CommandInset label
27394 name "tab:cap-beside-tab"
27398 This is a caption beside a table.
27406 \begin_layout Plain Layout
27407 \begin_inset Tabular
27408 <lyxtabular version="3" rows="4" columns="5">
27409 <features tabularvalignment="middle">
27410 <column alignment="center" valignment="top" width="0">
27411 <column alignment="center" valignment="top" width="0">
27412 <column alignment="center" valignment="top" width="0">
27413 <column alignment="center" valignment="top" width="0">
27414 <column alignment="center" valignment="top" width="0">
27416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27419 \begin_layout Plain Layout
27425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27428 \begin_layout Plain Layout
27434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27437 \begin_layout Plain Layout
27443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27446 \begin_layout Plain Layout
27452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27455 \begin_layout Plain Layout
27463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27466 \begin_layout Plain Layout
27472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27475 \begin_layout Plain Layout
27481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27484 \begin_layout Plain Layout
27490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27493 \begin_layout Plain Layout
27499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27502 \begin_layout Plain Layout
27510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27513 \begin_layout Plain Layout
27519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27522 \begin_layout Plain Layout
27528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27531 \begin_layout Plain Layout
27537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27540 \begin_layout Plain Layout
27546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27549 \begin_layout Plain Layout
27557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27560 \begin_layout Plain Layout
27566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27569 \begin_layout Plain Layout
27575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27578 \begin_layout Plain Layout
27584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27587 \begin_layout Plain Layout
27593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27596 \begin_layout Plain Layout
27615 \begin_layout Standard
27619 \begin_layout Plain Layout
27631 \begin_layout Standard
27635 \begin_layout Plain Layout
27639 sidecaptionvpos{figure}{c}
27645 \begin_inset Float figure
27650 \begin_layout Plain Layout
27651 \begin_inset Graphics
27652 filename clipart/escher-lsd.eps
27654 scaleBeforeRotation
27661 \begin_layout Plain Layout
27662 \begin_inset Caption
27664 \begin_layout Plain Layout
27665 \begin_inset CommandInset label
27667 name "fig:cap-beside-fig-2"
27671 This is a vertically centered caption beside a figure.
27684 \begin_layout Standard
27688 \begin_layout Plain Layout
27700 \begin_layout Standard
27704 \begin_layout Plain Layout
27716 \begin_layout Standard
27717 \begin_inset Float table
27722 \begin_layout Plain Layout
27723 \begin_inset Caption
27725 \begin_layout Plain Layout
27726 \begin_inset CommandInset label
27728 name "tab:cap-beside-tab-wider"
27732 This is a caption is wider than the one in Table
27733 \begin_inset space ~
27737 \begin_inset CommandInset ref
27739 reference "tab:cap-beside-tab"
27751 \begin_layout Plain Layout
27752 \begin_inset Tabular
27753 <lyxtabular version="3" rows="4" columns="5">
27754 <features tabularvalignment="middle">
27755 <column alignment="center" valignment="top" width="0">
27756 <column alignment="center" valignment="top" width="0">
27757 <column alignment="center" valignment="top" width="0">
27758 <column alignment="center" valignment="top" width="0">
27759 <column alignment="center" valignment="top" width="0">
27761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27764 \begin_layout Plain Layout
27770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27773 \begin_layout Plain Layout
27779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27782 \begin_layout Plain Layout
27788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27791 \begin_layout Plain Layout
27797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27800 \begin_layout Plain Layout
27808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27811 \begin_layout Plain Layout
27817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27820 \begin_layout Plain Layout
27826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27829 \begin_layout Plain Layout
27835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27838 \begin_layout Plain Layout
27844 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27847 \begin_layout Plain Layout
27855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27858 \begin_layout Plain Layout
27864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27867 \begin_layout Plain Layout
27873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27876 \begin_layout Plain Layout
27882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27885 \begin_layout Plain Layout
27891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27894 \begin_layout Plain Layout
27902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27905 \begin_layout Plain Layout
27911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27914 \begin_layout Plain Layout
27920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27923 \begin_layout Plain Layout
27929 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27932 \begin_layout Plain Layout
27938 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27941 \begin_layout Plain Layout
27960 \begin_layout Standard
27964 \begin_layout Plain Layout
27976 \begin_layout Standard
27980 \begin_layout Plain Layout
27990 \begin_inset Note Note
27993 \begin_layout Plain Layout
27994 The following will be displayed when the LaTeX-package
28006 \begin_layout Standard
28007 You need to install the LaTeX-package
28011 to see the following part of this section in the output.
28014 \begin_layout Standard
28018 \begin_layout Plain Layout
28030 \begin_layout Section
28032 \begin_inset Index idx
28035 \begin_layout Plain Layout
28036 Floats ! Float Lists
28044 \begin_layout Standard
28045 Similar to the table of contents where the sections of the document are
28046 listed, there are listings for all float types, like the figures of the
28048 You can insert them via the
28050 Insert\SpecialChar \menuseparator
28052 \begin_inset space ~
28056 \begin_inset space ~
28064 \begin_layout Standard
28065 The list entries are the float captions or its short title, the float number,
28066 and the page number where they appear in the document.
28069 \begin_layout Standard
28070 You can find the list of figures and tables at the end of this document.
28073 \begin_layout Chapter
28077 \begin_layout Section
28079 \begin_inset Index idx
28082 \begin_layout Plain Layout
28091 \begin_layout Standard
28092 Notes are inserted with the toolbar button
28104 Insert\SpecialChar \menuseparator
28108 There are three types of notes:
28111 \begin_layout Description
28113 \begin_inset space ~
28116 Note This note type is for internal notes that won't appear in the output.
28117 Its note-box looks like this:
28118 \begin_inset Newline newline
28122 \begin_inset Newline newline
28126 \begin_inset Graphics
28127 filename clipart/LyXNoteImageQt4.png
28130 scaleBeforeRotation
28135 \begin_inset Note Note
28138 \begin_layout Plain Layout
28139 This is text in a note box that doesn't appear in the output.
28147 \begin_layout Description
28148 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
28149 ent, when you export the document to LaTeX via the menu
28151 File\SpecialChar \menuseparator
28152 Export\SpecialChar \menuseparator
28153 LaTeX (pdflatex) / (plain)
28156 Its note-box looks like this:
28157 \begin_inset Newline newline
28161 \begin_inset Newline newline
28165 \begin_inset Graphics
28166 filename clipart/CommentNoteImageQt4.png
28169 scaleBeforeRotation
28174 \begin_inset Note Comment
28177 \begin_layout Plain Layout
28178 This is text in a note box that only appears as comment in LaTeX-files.
28186 \begin_layout Description
28188 \begin_inset space ~
28191 Out This note will appear in the output as grey text.
28192 Its note-box looks like this:
28193 \begin_inset Newline newline
28197 \begin_inset Newline newline
28201 \begin_inset Graphics
28202 filename clipart/GreyedOutNoteImageQt4.png
28205 scaleBeforeRotation
28210 \begin_inset Newline newline
28217 \begin_layout Plain Layout
28221 renewenvironment{lyxgreyedout}
28224 \begin_layout Plain Layout
28228 textcolor[gray]{0.8}
28238 \begin_inset Note Greyedout
28241 \begin_layout Plain Layout
28246 \begin_layout Plain Layout
28247 This is an example footnote within a greyed out note.
28252 of a comment that appears in the output as grey text.
28261 \begin_layout Plain Layout
28265 renewenvironment{lyxgreyedout}
28268 \begin_layout Plain Layout
28282 \begin_inset Note Note
28285 \begin_layout Plain Layout
28286 The greyed out note is here redefined to show it with the original LyX definitio
28287 n because greyed out notes are redefined in the preamble of this document,
28288 as described below, to have blue text.
28294 \begin_inset Newline newline
28298 \begin_inset Newline newline
28301 As you can see in the example, the first line of greyed out notes is a bit
28302 indented and greyed out notes can have footnotes.
28305 \begin_layout Standard
28306 \begin_inset VSpace bigskip
28309 When you use the toolbar button
28322 \begin_inset space ~
28328 You can switch between the five note types by right-clicking on the note-box.
28333 If you want to turn existing text into a note, mark it and click on the
28347 To change a note to text, press the backspace key when the cursor is in
28348 the first position of a note, or press the delete key when the cursor is
28349 in the very last position of the note, respectively.
28352 \begin_layout Standard
28353 \begin_inset VSpace bigskip
28356 You can change the text color of the greyed out notes in the menu
28358 Document\SpecialChar \menuseparator
28359 Settings\SpecialChar \menuseparator
28365 \begin_layout Section
28367 \begin_inset CommandInset label
28369 name "sec:Footnotes"
28374 \begin_inset Index idx
28377 \begin_layout Plain Layout
28384 \begin_inset Index idx
28387 \begin_layout Plain Layout
28396 \begin_layout Standard
28397 Footnotes can be inserted using the toolbar button
28402 arg "footnote-insert"
28409 Insert\SpecialChar \menuseparator
28421 then the following footnote-box:
28422 \begin_inset Graphics
28423 filename clipart/footnoteQt4.png
28425 scaleBeforeRotation
28433 where you can enter the footnote text.
28434 If you want to turn existing text into a footnote, mark it and click on
28460 key when the cursor is in the first position of a
28472 key when the cursor is in the very last position of the
28483 \begin_layout Standard
28484 Here is an example footnote:
28492 \begin_layout Plain Layout
28493 \begin_inset CommandInset label
28495 name "foot:This-is-an"
28499 This is an example footnote.
28512 \begin_layout Plain Layout
28516 newcounter{MyRepeatFoot}
28519 \begin_layout Plain Layout
28523 setcounter{MyRepeatFoot}{
28533 \begin_layout Standard
28534 The footnote will appear in the output as a superscript number at the text
28535 position where the footnote box is placed.
28536 The footnote text is placed at the bottom of the current page.
28537 The footnote number is calculated by LaTeX; the numbers are consecutive.
28538 It depends on your document-class, whether the footnote number is reset
28542 \begin_layout Standard
28543 Footnotes can be referenced like floats: Insert a label into the footnote
28544 and cross-reference this label in the text as described in section
28545 \begin_inset space ~
28549 \begin_inset CommandInset ref
28551 reference "sec:Referencing-Floats"
28556 \begin_inset Newline newline
28559 This is a cross-reference of Footnote
28560 \begin_inset space ~
28564 \begin_inset CommandInset ref
28566 reference "foot:This-is-an"
28573 \begin_layout Standard
28574 \begin_inset VSpace defskip
28577 Footnotes in tables are not printed by LaTeX due to technical reasons.
28578 However there exists another method to print them: Instead of the footnote
28585 is inserted as TeX-code.
28586 The text of the footnote is entered as an argument of the TeX-code command
28594 \begin_inset Newline newline
28597 This was done for the following table with the command
28600 \begin_layout Standard
28607 Printed table footnote.
28612 \begin_layout Standard
28613 \begin_inset Tabular
28614 <lyxtabular version="3" rows="2" columns="1">
28615 <features tabularvalignment="middle">
28616 <column alignment="center" valignment="top" width="0">
28618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28621 \begin_layout Plain Layout
28622 This an example text.
28626 \begin_layout Plain Layout
28627 This footnote will not be printed!
28639 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28642 \begin_layout Plain Layout
28643 This an example text.
28647 \begin_layout Plain Layout
28670 \begin_layout Plain Layout
28679 Printed table footnote.
28683 \begin_layout Plain Layout
28693 \begin_layout Standard
28694 Footnotes in longtables are described in section
28695 \begin_inset space ~
28699 \begin_inset CommandInset ref
28701 reference "sub:Footnotes-in-Longtables"
28708 \begin_layout Standard
28709 Footnotes in minipage boxes are printed, but inside the box and with a different
28710 numbering because a minipage box is like a page inside a page.
28711 (For more about minipages, see section
28712 \begin_inset space ~
28716 \begin_inset CommandInset ref
28718 reference "sec:Minipages"
28722 .) To get a footnote in the minipage that is output at the bottom of the
28723 page like normal footnotes, also use the method of
28738 \begin_layout Standard
28739 \begin_inset Box Frameless
28749 height_special "totalheight"
28752 \begin_layout Plain Layout
28753 This an example text in a minipage.
28757 \begin_layout Plain Layout
28758 Footnote in the minipage.
28766 \begin_layout Plain Layout
28767 This an example text in a minipage.
28771 \begin_layout Plain Layout
28788 \begin_layout Standard
28792 \begin_layout Plain Layout
28801 Footnote outside the minipage.
28805 \begin_layout Plain Layout
28815 \begin_layout Standard
28816 \begin_inset VSpace defskip
28822 \begin_layout Standard
28823 To refer to the same footnote several times without printing the footnote
28824 text every time, use the command
28828 footnotemark[number]
28831 \begin_inset Newline newline
28834 As you do not know the number of the repeating footnote while you are writing
28835 the text, you have to store its number.
28836 For the following footnote mark example, these commands were inserted in
28837 TeX-code after Footnote
28838 \begin_inset space ~
28842 \begin_inset CommandInset ref
28844 reference "foot:This-is-an"
28848 to store the footnote number:
28851 \begin_layout Standard
28856 newcounter{MyRepeatFoot}
28857 \begin_inset Newline newline
28862 setcounter{MyRepeatFoot}{
28867 \begin_layout Standard
28868 The footnote mark was then created with this command:
28871 \begin_layout Standard
28881 \begin_layout Standard
28882 Here is a repeated footnote:
28890 \begin_layout Plain Layout
28904 \begin_layout Standard
28905 If you want to repeat the previous footnote, you can omit the storage of
28906 the footnote number and just use this command instead:
28909 \begin_layout Standard
28919 \begin_layout Standard
28920 Here is another repeated footnote:
28928 \begin_layout Plain Layout
28942 \begin_layout Subsection
28944 \begin_inset CommandInset label
28946 name "sub:Footnote-Numbering"
28951 \begin_inset Index idx
28954 \begin_layout Plain Layout
28955 Footnotes ! Numbering
28963 \begin_layout Standard
28964 To reset the footnote number back to 1 after each section
28966 , add this command to your document preamble:
28969 \begin_layout Standard
28974 @addtoreset{footnote}{section}
28977 \begin_layout Standard
28978 \begin_inset VSpace bigskip
28981 The following preamble command changes the footnote numbering style to small
28985 \begin_layout Standard
28997 \begin_layout Standard
29001 \begin_layout Plain Layout
29014 This is a footnote with roman numbering:
29018 \begin_layout Plain Layout
29019 This is an example footnote with roman numbering.
29027 \begin_layout Standard
29028 To change the numbering style to capital roman numerals replace in the command
29043 \begin_inset Quotes eld
29047 \begin_inset Quotes erd
29050 footnotes with capital or small Latin letters use
29064 \begin_inset Quotes eld
29068 \begin_inset Quotes erd
29071 footnotes with symbols use
29080 \begin_layout Standard
29081 \begin_inset Note Greyedout
29084 \begin_layout Plain Layout
29089 You can only number 26 footnotes with Latin letters, because this numbering
29090 is limited to single letters.
29096 \begin_inset Newline newline
29100 \begin_inset Note Greyedout
29103 \begin_layout Plain Layout
29108 You can only number 9 footnotes with symbols.
29116 \begin_layout Standard
29117 To return to the default numbering style after you have changed to another
29130 in the command above.
29134 \begin_layout Plain Layout
29150 \begin_layout Standard
29151 \begin_inset VSpace bigskip
29157 \begin_layout Standard
29158 If you want to have footnotes numbered in the scheme
29159 \begin_inset Quotes eld
29163 \begin_inset Quotes erd
29166 , add the following command to your document preamble:
29169 \begin_layout Standard
29174 numberwithin{footnote}{chapter}
29177 \begin_layout Standard
29178 To be able to use the command
29187 \begin_inset space ~
29192 in the document settings the option
29195 \begin_inset space ~
29199 \begin_inset space ~
29203 \begin_inset space ~
29211 \begin_layout Standard
29215 \begin_layout Plain Layout
29219 numberwithin{footnote}{chapter}
29224 This is another example footnote:
29230 \begin_layout Plain Layout
29231 This is a footnote numbered in the scheme
29232 \begin_inset Quotes eld
29236 \begin_inset Quotes erd
29250 \begin_layout Plain Layout
29266 \begin_layout Standard
29267 \begin_inset Note Greyedout
29270 \begin_layout Plain Layout
29281 always prints out the footnote number as arabic number; previous redefinitions
29282 to get non-arabic numbers are overwritten.
29290 \begin_layout Standard
29291 So to get for example the scheme
29292 \begin_inset Quotes eld
29298 \begin_inset Quotes erd
29301 , use this command instead of
29310 \begin_layout Standard
29324 \begin_layout Subsection
29326 \begin_inset Index idx
29329 \begin_layout Plain Layout
29330 Footnotes ! Placement
29338 \begin_layout Standard
29339 If you have several footnotes in one page, they appear without vertical
29340 space between them at the bottom of the page.
29341 To make them more readable you can e.
29342 \begin_inset space \thinspace{}
29346 \begin_inset space \space{}
29350 \begin_inset space \thinspace{}
29353 mm space with the following preamble command:
29356 \begin_layout Standard
29366 \begin_inset Newline newline
29380 \begin_layout Standard
29381 \begin_inset VSpace bigskip
29384 In a two-column document the footnotes appear at the bottom of every column,
29386 \begin_inset space ~
29390 \begin_inset CommandInset ref
29392 reference "fig:Standard-footnote-placement"
29397 If the footnotes should only appear at the bottom of the right column,
29399 \begin_inset space ~
29403 \begin_inset CommandInset ref
29405 reference "fig:Footnote-placement-in"
29409 , use the LaTeX-package
29414 \begin_inset Index idx
29417 \begin_layout Plain Layout
29418 LaTeX-packages ! ftnright
29423 with this command in the document preamble:
29426 \begin_layout Standard
29431 usepackage{ftnright}
29434 \begin_layout Standard
29435 \begin_inset Float figure
29441 \begin_layout Plain Layout
29445 \begin_layout Plain Layout
29455 \begin_inset Graphics
29456 filename clipart/without_fntright.pdf
29458 scaleBeforeRotation
29466 \begin_layout Plain Layout
29476 \begin_layout Plain Layout
29477 \begin_inset Caption
29479 \begin_layout Plain Layout
29480 \begin_inset CommandInset label
29482 name "fig:Standard-footnote-placement"
29486 Standard footnote placement in two-column documents.
29499 \begin_layout Standard
29500 \begin_inset Float figure
29506 \begin_layout Plain Layout
29510 \begin_layout Plain Layout
29520 \begin_inset Graphics
29521 filename clipart/with_fntright.pdf
29523 scaleBeforeRotation
29531 \begin_layout Plain Layout
29541 \begin_layout Plain Layout
29542 \begin_inset Caption
29544 \begin_layout Plain Layout
29545 \begin_inset CommandInset label
29547 name "fig:Footnote-placement-in"
29551 Footnote placement in two-column documents when the LaTeX-package
29568 \begin_layout Standard
29569 \begin_inset VSpace bigskip
29572 In some scientific literature it is usual to collect the footnotes and print
29573 them in a separate paragraph at the end of a section, as in Figure
29574 \begin_inset space ~
29578 \begin_inset CommandInset ref
29580 reference "fig:Endnotes"
29585 They are then called
29586 \begin_inset Quotes eld
29590 \begin_inset Quotes erd
29594 \begin_inset Index idx
29597 \begin_layout Plain Layout
29603 To use endnotes instead of footnotes in your document, load in the menu
29606 Document\SpecialChar \menuseparator
29607 Settings\SpecialChar \menuseparator
29613 \begin_inset space ~
29617 \begin_inset space ~
29623 To insert the collected footnotes, insert the command
29626 \begin_layout Standard
29634 \begin_layout Standard
29635 in TeX-Code at the end of a section or chapter.
29638 \begin_layout Standard
29639 \begin_inset Float figure
29644 \begin_layout Plain Layout
29649 \begin_layout Plain Layout
29659 \begin_inset Graphics
29660 filename clipart/endnotes.pdf
29661 scaleBeforeRotation
29669 \begin_layout Plain Layout
29679 \begin_layout Plain Layout
29680 \begin_inset Caption
29682 \begin_layout Plain Layout
29683 \begin_inset CommandInset label
29685 name "fig:Endnotes"
29689 Endnotes – footnotes are printed in a separate paragraph at the end of sections
29703 \begin_layout Standard
29704 \begin_inset VSpace medskip
29707 The paragraph heading for the endnotes isn't automatically translated into
29708 the document language, this must be done manually.
29709 The following preamble command translates the default English
29710 \begin_inset Quotes eld
29714 \begin_inset Quotes erd
29718 \begin_inset Quotes eld
29722 \begin_inset Quotes erd
29728 \begin_layout Standard
29735 notesname}{Anmerkungen}
29738 \begin_layout Standard
29739 \begin_inset VSpace medskip
29742 The numbering of endnotes can be changed like the footnote numbering as
29743 described in section
29744 \begin_inset space ~
29748 \begin_inset CommandInset ref
29750 reference "sub:Footnote-Numbering"
29754 ; just replace the command
29767 To reset the endnote number use the command
29773 as described in section
29774 \begin_inset space ~
29778 \begin_inset CommandInset ref
29780 reference "sub:Footnote-Numbering"
29784 and replace the command parameter
29795 \begin_layout Standard
29796 For endnotes there is the command
29800 endnotemark[number]
29802 similar to the command
29808 , that is described in section
29809 \begin_inset space ~
29813 \begin_inset CommandInset ref
29815 reference "sec:Footnotes"
29822 \begin_layout Standard
29823 \begin_inset VSpace bigskip
29826 Footnotes can also be placed in the page margin and the footnote text alignment
29827 can be changed, see the LaTeX-package
29832 \begin_inset Index idx
29835 \begin_layout Plain Layout
29836 LaTeX-packages ! footmisc
29842 \begin_inset CommandInset citation
29848 for more information about this.
29851 \begin_layout Standard
29852 For various further footnote formatting issues have a look at LaTeX-books,
29854 \begin_inset CommandInset citation
29856 key "latexcompanion,latexguide,latexbook"
29866 \begin_inset Index idx
29869 \begin_layout Plain Layout
29870 LaTeX-packages ! KOMA-Script
29875 document class, you can adjust all footnote settings using class-specific
29877 \begin_inset CommandInset citation
29886 \begin_layout Section
29888 \begin_inset Index idx
29891 \begin_layout Plain Layout
29892 Notes ! Margin Notes
29900 \begin_layout Standard
29901 Margin notes look and behave in LyX like footnotes.
29902 They are inserted via the menu
29904 Insert\SpecialChar \menuseparator
29906 \begin_inset space ~
29911 or the toolbar button
29916 arg "marginalnote-insert"
29932 \begin_inset Quotes eld
29936 \begin_inset Quotes erd
29939 appears where you can enter the text of the margin note.
29942 \begin_layout Standard
29943 At the side is an example margin note.
29948 \begin_inset Marginal
29951 \begin_layout Plain Layout
29952 This is a margin note.
29960 \begin_layout Standard
29961 Margin notes appear at the right side in single-sided documents.
29962 In double-sided documents they appear in the outer margin – left on even
29963 pages, right on odd pages.
29964 The text of margin notes is aligned opposite to the outer margin – right-aligne
29965 d when the note appears in the left margin.
29966 The first line of the margin note is placed at the position of the text
29967 line where it is inserted in the document.
29970 \begin_layout Standard
29971 \begin_inset VSpace bigskip
29974 To place the margin note in the inner margin, add the command
29977 \begin_layout Standard
29985 \begin_layout Standard
29986 in TeX-Code before a margin note.
29987 The new placement is valid for all subsequent margin notes.
29992 \begin_layout Plain Layout
30002 \begin_inset Marginal
30005 \begin_layout Plain Layout
30006 This is a margin note in the inner margin.
30014 \begin_inset Newline newline
30020 \begin_inset Note Greyedout
30023 \begin_layout Plain Layout
30028 There is often not enough space in the inner margin so that the notes are
30029 not correctly displayed in the output.
30037 \begin_layout Standard
30038 To return to the default placement insert the command
30041 \begin_layout Standard
30049 \begin_layout Standard
30054 \begin_layout Plain Layout
30064 \begin_inset Note Greyedout
30067 \begin_layout Plain Layout
30072 The command is ignored when it is within a paragraph where also the command
30087 \begin_layout Standard
30088 \begin_inset VSpace bigskip
30095 \begin_inset Marginal
30098 \begin_layout Plain Layout
30099 AVeryLongMarginParWord that isn't hyphenated.
30107 Similar to the case described in section
30108 \begin_inset space ~
30112 \begin_inset CommandInset ref
30114 reference "sub:Multiple-Lines-in"
30118 , long words cannot be hyphenated when they are the first word in a margin
30120 To avoid this, insert 0
30121 \begin_inset space \thinspace{}
30124 pt horizontal space before the word
30129 \begin_inset Marginal
30132 \begin_layout Plain Layout
30133 \begin_inset space \hspace*{}
30137 AVeryLongMarginParWord that is hyphenated.
30145 \begin_layout Standard
30146 \begin_inset VSpace bigskip
30152 \begin_layout Standard
30153 \begin_inset Note Greyedout
30156 \begin_layout Plain Layout
30161 Margin notes can normally not be used inside tables, floats, and footnotes.
30169 \begin_layout Standard
30170 \begin_inset VSpace bigskip
30176 \begin_layout Standard
30180 \begin_layout Plain Layout
30190 \begin_inset Note Note
30193 \begin_layout Plain Layout
30194 The following section will only be displayed when the LaTeX-package
30206 \begin_layout Standard
30207 This restriction can be evaded by using the LaTeX-package
30212 \begin_inset Index idx
30215 \begin_layout Plain Layout
30216 LaTeX-packages ! marginnote
30222 By adding these two lines to your document preamble, the command used by
30223 LyX for margin notes is redefined to use the command provided by the
30230 \begin_layout Standard
30235 usepackage{marginnote}
30236 \begin_inset Newline newline
30248 \begin_layout Standard
30249 This is also used in this document because
30253 has another useful feature: You can set a vertical offset for the note.
30254 This is often needed when too many margin notes are too close together
30255 or for a better page layout.
30256 The offset is set in LyX as TeX-Code directly after the margin note in
30260 \begin_layout Standard
30266 \begin_layout Standard
30267 where the offset is a length with one of the units listed in Table
30268 \begin_inset space ~
30272 \begin_inset CommandInset ref
30274 reference "tab:Units"
30279 A negative value shifts the note up, a positive value shifts it down.
30283 For example the margin note beside this text line is shifted up 1.5
30284 \begin_inset space \thinspace{}
30287 cm with the TeX-Code-command
30288 \begin_inset Quotes eld
30298 \begin_inset Quotes erd
30302 \begin_inset Marginal
30305 \begin_layout Plain Layout
30306 This margin note is shifted up 1.5
30307 \begin_inset space \thinspace{}
30310 cm from its original position.
30322 \begin_layout Plain Layout
30332 \begin_layout Standard
30333 \begin_inset VSpace medskip
30340 you can also change the alignment of the text in the margin note.
30341 For example the commands
30344 \begin_layout Standard
30351 raggedleftmarginnote}{
30354 \begin_inset Newline newline
30361 raggedrightmarginnote}{
30366 \begin_layout Standard
30367 set the alignment to centered.
30372 raggedleftmarginnote
30374 denotes margin notes that appear at the left side.
30381 \begin_layout Plain Layout
30387 raggedleftmarginnote}{
30392 \begin_layout Plain Layout
30398 raggedrightmarginnote}{
30406 \begin_inset Marginal
30409 \begin_layout Plain Layout
30410 The text of this margin note is centered.
30421 \begin_layout Standard
30428 raggedleftmarginnote}{
30431 \begin_inset Newline newline
30438 raggedrightmarginnote}{
30447 \begin_layout Plain Layout
30453 raggedleftmarginnote}{
30458 \begin_layout Plain Layout
30464 raggedrightmarginnote}{
30474 \begin_layout Standard
30475 \begin_inset VSpace medskip
30478 For the other features of
30482 refer to its documentation
30483 \begin_inset CommandInset citation
30492 \begin_layout Standard
30493 \begin_inset VSpace bigskip
30496 You can adjust the layout of margin notes by changing its definition.
30497 To create for example a header for all margin notes with the underlined,
30498 sans-serif, and bold header text
30499 \begin_inset Quotes eld
30511 \begin_inset Quotes erd
30514 , add this to your document preamble:
30517 \begin_layout Standard
30527 \begin_inset Newline newline
30537 \begin_inset Newline newline
30541 \begin_inset Phantom HPhantom
30544 \begin_layout Plain Layout
30547 \begin_inset space ~
30563 underbar{Attention!}}}%
30564 \begin_inset Newline newline
30568 \begin_inset Phantom HPhantom
30571 \begin_layout Plain Layout
30574 \begin_inset space ~
30591 \begin_layout Standard
30598 \begin_layout Plain Layout
30609 \begin_layout Plain Layout
30620 \begin_layout Plain Layout
30628 underbar{Attention!}}}%
30631 \begin_layout Plain Layout
30645 \begin_inset Marginal
30648 \begin_layout Plain Layout
30649 This is a margin note with a defined heading.
30661 \begin_layout Plain Layout
30675 \begin_layout Plain Layout
30692 \begin_inset Note Note
30695 \begin_layout Plain Layout
30696 The margin note format is changed only for this example.
30704 \begin_layout Standard
30708 \begin_layout Plain Layout
30718 \begin_inset Note Note
30721 \begin_layout Plain Layout
30722 The following will be displayed when the LaTeX-package
30734 \begin_layout Standard
30735 You need to install the LaTeX-package
30739 to see the following part of this section in the output.
30742 \begin_layout Standard
30746 \begin_layout Plain Layout
30758 \begin_layout Chapter
30762 \begin_layout Section
30764 \begin_inset Index idx
30767 \begin_layout Plain Layout
30768 Boxes ! Introduction
30776 \begin_layout Standard
30777 Boxes are used to format a block of text.
30778 Boxes can be used to write documents with multiple languages, see section
30779 \begin_inset space ~
30783 \begin_inset CommandInset ref
30785 reference "sec:Minipages"
30789 , to frame texts, see section
30790 \begin_inset space ~
30794 \begin_inset CommandInset ref
30796 reference "sec:Decoration"
30800 , to prevent words from being hyphenated, see section
30801 \begin_inset space ~
30805 \begin_inset CommandInset ref
30807 reference "sec:Prevent-Hyphenation"
30811 , to align text, see section
30812 \begin_inset space ~
30816 \begin_inset CommandInset ref
30818 reference "sub:Vertical-Alignment"
30822 , or to set the background color of texts, see section
30823 \begin_inset space ~
30827 \begin_inset CommandInset ref
30829 reference "sec:Colored-Boxes"
30836 \begin_layout Standard
30837 Boxes can be inserted with the menu
30839 Insert\SpecialChar \menuseparator
30842 or the toolbar button
30847 arg "box-insert Frameless"
30853 A grey box with the label
30858 \begin_inset Graphics
30859 filename clipart/BoxInsetDefaultQt4.png
30861 scaleBeforeRotation
30866 The box type can be specified by right-clicking on the box and selecting
30872 The box dialog offers the
30875 \begin_inset space ~
30897 is the default for new boxes and is explained in section
30898 \begin_inset space ~
30902 \begin_inset CommandInset ref
30904 reference "sec:Minipages"
30912 is described in section
30913 \begin_inset space ~
30917 \begin_inset CommandInset ref
30919 reference "sec:Parboxes"
30928 \begin_inset CommandInset ref
30930 reference "sec:Prevent-Hyphenation"
30937 \begin_layout Standard
30938 Boxes are not numbered and can therefore not be referenced like floats or
30942 \begin_layout Standard
30943 \begin_inset Note Greyedout
30946 \begin_layout Plain Layout
30951 Boxes must not be the item in an
30967 \begin_layout Standard
30968 \begin_inset Note Greyedout
30971 \begin_layout Plain Layout
30976 For an unknown reason you can only set the
30979 \begin_inset space ~
30988 when you use a framed box.
30992 \begin_inset space ~
30997 type and without frames are explained in section
30998 \begin_inset space ~
31002 \begin_inset CommandInset ref
31004 reference "sec:Prevent-Hyphenation"
31016 \begin_layout Section
31018 \begin_inset CommandInset label
31020 name "sec:Box-Dialog"
31025 \begin_inset Index idx
31028 \begin_layout Plain Layout
31037 \begin_layout Subsection
31039 \begin_inset Index idx
31042 \begin_layout Plain Layout
31051 \begin_layout Standard
31052 In the box dialog you can adjust the box geometry in the fields
31061 The available units for the geometry are explained in Table
31062 \begin_inset space ~
31066 \begin_inset CommandInset ref
31068 reference "tab:Units"
31077 offers the following additional sizes:
31080 \begin_layout Description
31081 Depth This is the plain text
31082 \begin_inset Quotes eld
31086 \begin_inset Quotes erd
31090 It ignores the total depth when there are multiple text lines in the box:
31091 \begin_inset Newline newline
31095 \begin_inset Newline newline
31099 \begin_inset Newline newline
31103 \begin_inset Box Boxed
31113 height_special "depth"
31116 \begin_layout Plain Layout
31118 Box height set to 1
31119 \begin_inset space \thinspace{}
31128 \begin_inset Newline newline
31132 \begin_inset Newline newline
31138 \begin_layout Description
31139 Height This is the height of the text that is inside the box.
31141 \begin_inset space \thinspace{}
31145 \begin_inset space \space{}
31148 2 for this size will set the box height to 2
31149 \begin_inset space ~
31152 times the text height:
31153 \begin_inset Box Boxed
31163 height_special "height"
31166 \begin_layout Plain Layout
31168 Box height set to 2
31169 \begin_inset space \thinspace{}
31180 \begin_layout Description
31182 \begin_inset space ~
31185 Height This is the Height
31186 \begin_inset space \thinspace{}
31190 \begin_inset space \thinspace{}
31194 \begin_inset Box Boxed
31204 height_special "totalheight"
31207 \begin_layout Plain Layout
31209 Box height set to 1
31210 \begin_inset space \thinspace{}
31214 \begin_inset space ~
31225 \begin_layout Description
31226 Width This sets the width of the box as height:
31227 \begin_inset Box Boxed
31237 height_special "width"
31240 \begin_layout Plain Layout
31242 Box height set to 1
31243 \begin_inset space \thinspace{}
31254 \begin_layout Subsection
31256 \begin_inset Index idx
31259 \begin_layout Plain Layout
31268 \begin_layout Standard
31269 When you have chosen an
31272 \begin_inset space ~
31277 , the vertical box alignment can be:
31280 \begin_layout Description
31281 Top This is an example text line.
31283 \begin_inset Box Boxed
31293 height_special "totalheight"
31296 \begin_layout Plain Layout
31298 This box is top-aligned.
31303 This is an example text line.
31306 \begin_layout Description
31307 Middle This is an example text line.
31309 \begin_inset Box Boxed
31319 height_special "totalheight"
31322 \begin_layout Plain Layout
31324 This box is middle-aligned.
31329 This is an example text line.
31332 \begin_layout Description
31333 Bottom This is an example text line.
31335 \begin_inset Box Boxed
31345 height_special "totalheight"
31348 \begin_layout Plain Layout
31350 This box is bottom-aligned.
31355 This is an example text line.
31358 \begin_layout Standard
31359 \begin_inset Note Greyedout
31362 \begin_layout Plain Layout
31367 The vertical box alignment can be lost in the output when you have two
31368 boxes in a line and one has e.
31369 \begin_inset space \thinspace{}
31373 \begin_inset space \space{}
31376 a shadow and the other one not.
31384 \begin_layout Standard
31385 The horizontal box alignment can be set via LyX's paragraph dialog when
31386 you set the box into its own paragraph.
31389 \begin_layout Standard
31390 \begin_inset VSpace bigskip
31393 When you have chosen an
31396 \begin_inset space ~
31401 , the box content can be aligned vertically to:
31404 \begin_layout Description
31405 top This is an example text line.
31407 \begin_inset Box Boxed
31417 height_special "totalheight"
31420 \begin_layout Plain Layout
31422 This box text is top-aligned.
31427 This is an example text line.
31430 \begin_layout Description
31431 middle This is an example text line.
31433 \begin_inset Box Boxed
31443 height_special "totalheight"
31446 \begin_layout Plain Layout
31448 This box text is middle-aligned.
31453 This is an example text line.
31456 \begin_layout Description
31457 bottom This is an example text line.
31459 \begin_inset Box Boxed
31469 height_special "totalheight"
31472 \begin_layout Plain Layout
31474 This box text is bottom-aligned.
31479 This is an example text line.
31482 \begin_layout Description
31483 stretch This is an example text line.
31485 \begin_inset Box Boxed
31495 height_special "totalheight"
31498 \begin_layout Plain Layout
31503 \begin_layout Plain Layout
31508 \begin_layout Plain Layout
31515 This is an example text line.
31518 \begin_layout Standard
31519 To stretch the box content, it must consist of more than one paragraph.
31520 In the example above every text line is in an own paragraph.
31523 \begin_layout Standard
31524 \begin_inset VSpace bigskip
31527 To align the box content horizontally you can use LyX's paragraph dialog
31528 when you have chosen an
31531 \begin_inset space ~
31539 \begin_layout Standard
31541 \begin_inset Box Boxed
31551 height_special "totalheight"
31554 \begin_layout Plain Layout
31559 \begin_layout Plain Layout
31564 \begin_layout Plain Layout
31574 \begin_layout Standard
31575 If you have not set an
31578 \begin_inset space ~
31583 , you can align the box content horizontally in the box dialog.
31586 \begin_layout Standard
31588 \begin_inset Box Boxed
31598 height_special "totalheight"
31601 \begin_layout Plain Layout
31602 This box text is horizontally stretched.
31610 \begin_layout Subsection
31612 \begin_inset CommandInset label
31614 name "sec:Decoration"
31619 \begin_inset Index idx
31622 \begin_layout Plain Layout
31631 \begin_layout Standard
31632 The type of the box can be specified in the box dialog in the drop-down
31638 The following types are possible:
31641 \begin_layout Description
31643 \begin_inset space ~
31646 frame Nothing is drawn.
31649 \begin_layout Description
31651 \begin_inset space ~
31655 \begin_inset space ~
31658 frame This draws a rectangular frame around the box.
31659 The frame line thickness has the size of
31667 \begin_inset Box Boxed
31677 height_special "totalheight"
31680 \begin_layout Plain Layout
31690 \begin_layout Description
31692 \begin_inset space ~
31696 \begin_inset space ~
31699 thin This draws an oval frame around the box.
31700 The frame line thickness has the size 0.4
31701 \begin_inset space \thinspace{}
31706 \begin_inset Box ovalbox
31716 height_special "totalheight"
31719 \begin_layout Plain Layout
31729 \begin_layout Description
31731 \begin_inset space ~
31735 \begin_inset space ~
31738 thick This draws an oval frame around the box.
31739 The frame line thickness has the size 0.8
31740 \begin_inset space \thinspace{}
31745 \begin_inset Box Ovalbox
31755 height_special "totalheight"
31758 \begin_layout Plain Layout
31768 \begin_layout Description
31770 \begin_inset space ~
31773 shadow This draws a rectangular frame with a shadow around the box.
31774 The frame line thickness has the size of
31780 , the shadow has a width of 4
31781 \begin_inset space \thinspace{}
31786 \begin_inset Box Shadowbox
31796 height_special "totalheight"
31799 \begin_layout Plain Layout
31809 \begin_layout Description
31811 \begin_inset space ~
31814 background This draws a box with a red background.
31815 Unlike colored boxes
31819 \begin_layout Plain Layout
31821 \begin_inset space \thinspace{}
31825 \begin_inset CommandInset ref
31827 reference "sec:Colored-Boxes"
31836 , it always uses the whole column width and the box is set as its own paragraph.
31838 \begin_inset Box Shaded
31848 height_special "totalheight"
31851 \begin_layout Plain Layout
31852 Shaded background box
31860 \begin_layout Description
31862 \begin_inset space ~
31866 \begin_inset space ~
31869 frame This draws a double-line rectangular frame around the box.
31870 The line thickness of the inner frame is 0.75
31871 \begin_inset space \thinspace{}
31880 , the thickness of the outer frame is 1.5
31881 \begin_inset space \thinspace{}
31891 The distance between the lines is 1.5
31892 \begin_inset space \thinspace{}
31902 \begin_inset space \thinspace{}
31906 \begin_inset space \thinspace{}
31910 \begin_inset space \thinspace{}
31915 \begin_inset Box Doublebox
31925 height_special "totalheight"
31928 \begin_layout Plain Layout
31930 Double rectangular box
31938 \begin_layout Standard
31939 \begin_inset VSpace bigskip
31942 LyX's box label will reflect the different frame types.
31943 To be able to use all types, the LaTeX-package
31948 \begin_inset Index idx
31951 \begin_layout Plain Layout
31952 LaTeX-packages ! fancybox
31960 \begin_layout Standard
31961 \begin_inset VSpace bigskip
31964 When you use the decoration
31966 simple rectangular frame
31968 and no inner box, you can allow page breaks within a box.
31969 Note that then, unlike other framed boxes, the frame always uses the whole
31970 column width, the box is set as its own paragraph, and
31982 have no effect on this box type.
31983 The frame line thickness has the size of
31991 \begin_inset Box Framed
32001 height_special "totalheight"
32004 \begin_layout Plain Layout
32005 Allow page break box
32013 \begin_layout Section
32015 \begin_inset Index idx
32018 \begin_layout Plain Layout
32019 Boxes ! Customization
32027 \begin_layout Standard
32028 The default value for the size
32035 \begin_inset space \thinspace{}
32039 It can be changed with the following command in TeX-code to e.
32040 \begin_inset space \thinspace{}
32044 \begin_inset space \space{}
32048 \begin_inset space \thinspace{}
32054 \begin_layout Standard
32064 \begin_layout Standard
32068 \begin_layout Plain Layout
32080 \begin_inset Box Boxed
32090 height_special "totalheight"
32093 \begin_layout Plain Layout
32095 Rectangular box with
32102 \begin_inset space \thinspace{}
32106 \begin_inset space \thinspace{}
32110 \begin_inset space \thinspace{}
32122 \begin_layout Plain Layout
32136 \begin_layout Standard
32137 \begin_inset VSpace bigskip
32140 The space between the frame and the box content is for all frame styles
32142 \begin_inset space \thinspace{}
32146 You can change it by setting the length
32153 For example the command
32156 \begin_layout Standard
32166 \begin_layout Standard
32167 sets the value to 10
32168 \begin_inset space \thinspace{}
32171 pt, as with the following box:
32174 \begin_layout Standard
32178 \begin_layout Plain Layout
32190 \begin_inset Box Boxed
32200 height_special "totalheight"
32203 \begin_layout Plain Layout
32205 Rectangular box with
32212 \begin_inset space \thinspace{}
32216 \begin_inset space \thinspace{}
32220 \begin_inset space \thinspace{}
32232 \begin_layout Plain Layout
32246 \begin_layout Standard
32247 \begin_inset VSpace bigskip
32250 The diameter of the round corners of the oval boxes can be set with the
32261 \begin_layout Standard
32269 \begin_layout Standard
32270 sets the diameter to 1
32271 \begin_inset space \thinspace{}
32278 \begin_layout Standard
32286 \begin_layout Standard
32287 sets the diameter to
32290 \begin_inset space \thinspace{}
32294 \begin_inset space \thinspace{}
32297 minimum(width and height of box)
32309 \begin_layout Standard
32313 \begin_layout Plain Layout
32323 \begin_inset Box Ovalbox
32333 height_special "totalheight"
32336 \begin_layout Plain Layout
32345 \begin_inset space \thinspace{}
32349 \begin_inset space \thinspace{}
32353 \begin_inset space \thinspace{}
32365 \begin_layout Plain Layout
32377 \begin_layout Standard
32378 \begin_inset VSpace bigskip
32381 The size of the shadow can be adjusted by changing the length
32389 \begin_inset space \thinspace{}
32392 pt for the following box by this command:
32395 \begin_layout Standard
32405 \begin_layout Standard
32409 \begin_layout Plain Layout
32421 \begin_inset Box Shadowbox
32431 height_special "totalheight"
32434 \begin_layout Plain Layout
32443 \begin_inset space \thinspace{}
32447 \begin_inset space \thinspace{}
32451 \begin_inset space \thinspace{}
32463 \begin_layout Plain Layout
32477 \begin_layout Standard
32478 \begin_inset VSpace bigskip
32484 \begin_layout Standard
32485 The default value for the size
32492 \begin_inset space \thinspace{}
32496 The default space between the note content and the frame is 9
32497 \begin_inset space \thinspace{}
32500 pt and can be changed with the value of
32507 For example the frame appearance of the following
32511 is set with the TeX-Code commands
32514 \begin_layout Standard
32522 \begin_inset Newline newline
32532 \begin_layout Standard
32536 \begin_layout Plain Layout
32545 \begin_layout Plain Layout
32557 \begin_inset Box Framed
32567 height_special "totalheight"
32570 \begin_layout Plain Layout
32584 \begin_layout Plain Layout
32593 \begin_layout Plain Layout
32607 \begin_layout Standard
32608 \begin_inset VSpace bigskip
32614 \begin_layout Standard
32619 boxes the default space between the box content and the box border is 3
32620 \begin_inset space \thinspace{}
32623 pt and can be changed with the value of
32630 The default background color red can either be changed locally with the
32635 definecolor{shadecolor}
32637 or globally with the menu
32639 Tools\SpecialChar \menuseparator
32640 Preferences\SpecialChar \menuseparator
32641 Colors\SpecialChar \menuseparator
32643 \begin_inset space ~
32655 command is explained in section
32656 \begin_inset space ~
32660 \begin_inset CommandInset ref
32662 reference "sec:Colored-Tables"
32670 \begin_layout Plain Layout
32677 requires the LaTeX-package
32681 in the preamble, see section
32682 \begin_inset space ~
32686 \begin_inset CommandInset ref
32688 reference "sec:Colored-Boxes"
32697 For example the appearance of the following shaded background box is set
32698 with the TeX-Code commands
32701 \begin_layout Standard
32711 \begin_inset Newline newline
32718 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
32721 \begin_layout Standard
32725 \begin_layout Plain Layout
32734 \begin_layout Plain Layout
32738 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
32744 \begin_inset Box Shaded
32754 height_special "totalheight"
32757 \begin_layout Plain Layout
32760 This is yellow text in a
32770 box with dark green background.
32779 \begin_layout Plain Layout
32788 \begin_layout Plain Layout
32792 definecolor{shadecolor}{rgb}{1,0,0}
32800 \begin_layout Standard
32801 \begin_inset VSpace bigskip
32804 Changed lengths and widths are valid for all boxes following the commands
32808 \begin_layout Section
32810 \begin_inset CommandInset label
32812 name "sec:Minipages"
32817 \begin_inset Index idx
32820 \begin_layout Plain Layout
32829 \begin_layout Standard
32830 Minipages are treated by LaTeX as pages within pages and can therefore for
32831 example have their own footnotes.
32834 \begin_layout Standard
32835 Minipages are useful when you write documents with different languages.
32838 \begin_layout Standard
32839 Below are two example minipages side by side.
32840 Their width is set to 45
32841 \begin_inset space \thinspace{}
32844 col% and they are separated by a horizontal fill, that was inserted via
32847 Insert\SpecialChar \menuseparator
32849 \begin_inset space ~
32852 Formatting\SpecialChar \menuseparator
32854 \begin_inset space ~
32860 \begin_inset Newpage newpage
32866 \begin_layout Standard
32867 \begin_inset Box Frameless
32877 height_special "totalheight"
32880 \begin_layout Plain Layout
32883 Dies ist ein deutscher Text.
32884 Dies ist ein deutscher Text.
32885 Dies ist ein deutscher Text.
32886 Dies ist ein deutscher Text.
32887 Dies ist ein deutscher Text.
32888 Dies ist ein deutscher Text.
32889 Dies ist ein deutscher Text.
32890 Dies ist ein deutscher Text.
32891 Dies ist ein deutscher Text.
32892 Dies ist ein deutscher Text.
32893 Dies ist ein deutscher Text.
32894 Dies ist ein deutscher Text.
32895 Dies ist ein deutscher Text
32899 \begin_layout Plain Layout
32902 Dies ist eine deutsche Fußnote.
32908 Dies ist ein deutscher Text.
32909 Dies ist ein deutscher Text.
32915 \begin_inset space \hfill{}
32919 \begin_inset Box Frameless
32929 height_special "totalheight"
32932 \begin_layout Plain Layout
32933 This is an English Text.
32934 This is an English Text.
32935 This is an English Text.
32936 This is an English Text.
32937 This is an English Text.
32938 This is an English Text.
32939 This is an English Text.
32940 This is an English Text.
32941 This is an English Text.
32942 This is an English Text.
32943 This is an English Text.
32944 This is an English Text.
32945 This is an English Text.
32946 This is an English Text.
32947 This is an English Text.
32948 This is an English Text.
32952 \begin_layout Plain Layout
32953 This is an English footnote.
32958 This is an English Text.
32966 \begin_layout Standard
32967 \begin_inset VSpace bigskip
32970 The document-wide paragraph settings are ignored within minipages.
32971 That means that there will be no space between paragraphs in minipages
32972 although you set it to e.
32973 \begin_inset space \thinspace{}
32977 \begin_inset space \space{}
32984 in the document settings.
32987 \begin_layout Standard
32988 Minipages can also be used to set a background color for text parts, see
32990 \begin_inset space ~
32994 \begin_inset CommandInset ref
32996 reference "sub:Color-for-Paragraphs"
33003 \begin_layout Standard
33004 \begin_inset Note Greyedout
33007 \begin_layout Plain Layout
33012 You cannot have floats or margin notes inside minipages but minipages can
33013 be used inside tables, floats, and other boxes.
33021 \begin_layout Section
33023 \begin_inset CommandInset label
33025 name "sec:Parboxes"
33030 \begin_inset Index idx
33033 \begin_layout Plain Layout
33042 \begin_layout Standard
33043 Parboxes are very similar to minipages with the difference that they cannot
33047 \begin_layout Standard
33049 \begin_inset Box Frameless
33059 height_special "totalheight"
33062 \begin_layout Plain Layout
33063 This a text within a parbox.
33064 This a text within a parbox.
33067 \begin_layout Plain Layout
33068 This footnote won't appear:
33072 \begin_layout Plain Layout
33073 This footnote is inside a parbox and will therefore not appear.
33086 \begin_layout Section
33087 Boxes for Words and Characters
33088 \begin_inset Index idx
33091 \begin_layout Plain Layout
33092 Boxes ! for Characters
33100 \begin_layout Subsection
33101 Prevent Hyphenation
33102 \begin_inset CommandInset label
33104 name "sec:Prevent-Hyphenation"
33109 \begin_inset Index idx
33112 \begin_layout Plain Layout
33113 Boxes ! to Prevent Hyphenation
33121 \begin_layout Standard
33122 You can use the box type
33126 to prevent words or text from being hyphenated.
33127 \begin_inset Newline newline
33130 Here is an example text:
33133 \begin_layout Standard
33134 This line is an example to show how you can prevent the hyphenation of
33135 \begin_inset Quotes eld
33139 \begin_inset Quotes erd
33145 \begin_layout Standard
33146 To prevent the hyphenation of the word
33147 \begin_inset Quotes eld
33151 \begin_inset Quotes erd
33154 , put the word into a box, set the
33157 \begin_inset space ~
33167 \begin_inset space \thinspace{}
33173 \begin_layout Standard
33174 This is the result:
33177 \begin_layout Standard
33178 This line is an example to show how you can prevent the hyphenation of
33179 \begin_inset Box Frameless
33189 height_special "totalheight"
33192 \begin_layout Plain Layout
33193 \begin_inset Quotes eld
33197 \begin_inset Quotes erd
33208 \begin_layout Standard
33209 You can alternatively set the command
33210 \begin_inset Quotes eld
33220 \begin_inset Quotes grd
33223 as TeX-Code directly before the word:
33226 \begin_layout Standard
33227 This line is an example to show how you can prevent the hyphenation of
33228 \begin_inset Quotes eld
33235 \begin_layout Plain Layout
33245 \begin_inset Quotes erd
33251 \begin_layout Standard
33252 Of course the word now protrudes over the side margin.
33253 To avoid this, add via the menu
33255 Insert\SpecialChar \menuseparator
33256 Formatting\SpecialChar \menuseparator
33258 \begin_inset space ~
33262 \begin_inset space ~
33270 arg "newline-insert newline"
33273 ) a line break before the word:
33276 \begin_layout Standard
33277 This line is an example to show how you can prevent the hyphenation of
33278 \begin_inset Newline newline
33282 \begin_inset Box Frameless
33292 height_special "totalheight"
33295 \begin_layout Plain Layout
33296 \begin_inset Quotes eld
33300 \begin_inset Quotes erd
33311 \begin_layout Subsection
33313 \begin_inset CommandInset label
33315 name "sub:Vertical-Alignment"
33320 \begin_inset Index idx
33323 \begin_layout Plain Layout
33324 Boxes ! for Vertical Alignment
33330 \begin_inset Index idx
33333 \begin_layout Plain Layout
33342 \begin_layout Standard
33343 With the help of the command
33349 you can align words, characters or other boxes vertically relative to the
33357 is used with the following scheme:
33360 \begin_layout Standard
33365 raisebox{lift}[height][depth]{box content}
33368 \begin_layout Standard
33369 The lift can be a positive value to raise the box or a negative value to
33373 \begin_layout Standard
33374 To align for example the word
33375 \begin_inset Quotes eld
33379 \begin_inset Quotes erd
33382 so that the bottom of the
33383 \begin_inset Quotes eld
33387 \begin_inset Quotes erd
33391 \begin_inset Quotes eld
33395 \begin_inset Quotes erd
33398 is at the baseline, insert the command
33401 \begin_layout Standard
33411 \begin_layout Standard
33412 in TeX-Code before the word.
33413 After the word insert a closing brace
33414 \begin_inset Quotes eld
33422 \begin_inset Quotes erd
33426 \begin_inset Newline newline
33429 This is the result:
33432 \begin_layout Standard
33433 This is a text line with the word
33437 \begin_layout Plain Layout
33449 \begin_inset Quotes eld
33453 \begin_inset Quotes erd
33460 \begin_layout Plain Layout
33470 \begin_layout Standard
33471 \begin_inset VSpace bigskip
33474 When you raise or lower characters in a line, the line distance will be
33478 \begin_layout Standard
33479 This is a text line with the word
33483 \begin_layout Plain Layout
33495 \begin_inset Quotes eld
33499 \begin_inset Quotes erd
33506 \begin_layout Plain Layout
33514 \begin_inset Newline newline
33517 This is a text line with the word
33521 \begin_layout Plain Layout
33531 \begin_inset Quotes eld
33535 \begin_inset Quotes erd
33542 \begin_layout Plain Layout
33552 \begin_layout Standard
33553 If you want to prevent this for a certain reason, set the box height to
33558 \begin_layout Standard
33568 \begin_layout Standard
33569 This is a text line with the word
33573 \begin_layout Plain Layout
33585 \begin_inset Quotes eld
33589 \begin_inset Quotes erd
33596 \begin_layout Plain Layout
33604 \begin_inset Newline newline
33607 This is a text line with the word
33611 \begin_layout Plain Layout
33615 raisebox{0.5cm}[0pt]{
33621 \begin_inset Quotes eld
33625 \begin_inset Quotes erd
33632 \begin_layout Plain Layout
33642 \begin_layout Section
33644 \begin_inset CommandInset label
33646 name "sec:Colored-Boxes"
33651 \begin_inset Index idx
33654 \begin_layout Plain Layout
33663 \begin_layout Subsection
33665 \begin_inset Index idx
33668 \begin_layout Plain Layout
33677 \begin_layout Standard
33678 To color the background of text the text must be put into a so called
33679 \begin_inset Quotes eld
33683 \begin_inset Quotes erd
33687 This requires that the LaTeX-package
33692 \begin_inset Index idx
33695 \begin_layout Plain Layout
33696 LaTeX-packages ! color
33701 is loaded in the document preamble with the command
33704 \begin_layout Standard
33709 @ifundefined{textcolor}
33710 \begin_inset Newline newline
33714 \begin_inset Phantom HPhantom
33717 \begin_layout Plain Layout
33720 \begin_inset space ~
33730 usepackage{color}}{}
33733 \begin_layout Standard
33738 will be loaded automatically by LyX when you color text.
33742 \begin_layout Plain Layout
33743 To avoid it being loaded twice the command
33757 \begin_layout Standard
33758 \begin_inset VSpace medskip
33761 Colorboxes are created with the command
33768 This will be used with the following scheme:
33771 \begin_layout Standard
33776 colorbox{color}{box content}
33779 \begin_layout Standard
33780 The box content can also be a box and colorboxes can also be within other
33784 \begin_layout Standard
33785 The following colors are predefined:
33786 \begin_inset Newline newline
33825 \begin_inset Newline newline
33828 You can also define your own color as described in section
33829 \begin_inset space ~
33833 \begin_inset CommandInset ref
33835 reference "sec:Colored-Tables"
33842 \begin_layout Standard
33844 \begin_inset space \thinspace{}
33848 \begin_inset space \space{}
33851 a red background for a word, insert the command
33854 \begin_layout Standard
33862 \begin_layout Standard
33863 before the word in TeX-Code.
33864 After the word insert a closing brace
33865 \begin_inset Quotes eld
33873 \begin_inset Quotes erd
33877 \begin_inset Newline newline
33880 This is the result:
33883 \begin_layout Standard
33884 This is a line where the word
33888 \begin_layout Plain Layout
33898 \begin_inset Quotes eld
33902 \begin_inset Quotes erd
33909 \begin_layout Plain Layout
33916 has a red background.
33919 \begin_layout Standard
33920 \begin_inset VSpace bigskip
33923 If you would like the box frame in a different color, you can use the command
33930 with the following scheme:
33933 \begin_layout Standard
33938 fcolorbox{frame color}{box color}{box content}
33941 \begin_layout Standard
33955 The frame thickness and the space between the frame and the box content
33956 can be adjusted with the lengths
33968 , respectively, as described in section
33969 \begin_inset space ~
33973 \begin_inset CommandInset ref
33975 reference "sec:Decoration"
33982 \begin_layout Standard
33983 For the following example the command
33986 \begin_layout Standard
33991 fcolorbox{cyan}{magenta}{
33994 \begin_layout Standard
33998 \begin_layout Standard
33999 Here is an example where the frame line thickness was set to 1
34000 \begin_inset space \thinspace{}
34004 \begin_inset Newline newline
34011 \begin_layout Plain Layout
34026 \begin_layout Plain Layout
34030 fcolorbox{cyan}{magenta}{
34035 This is text within a colored, framed box.
34039 \begin_layout Plain Layout
34049 \begin_layout Standard
34050 \begin_inset VSpace bigskip
34053 Of course you can also have colored text inside a colorbox:
34054 \begin_inset Newline newline
34061 \begin_layout Plain Layout
34065 fcolorbox{cyan}{magenta}{
34072 This is colored text within a colored, framed box.
34078 \begin_layout Plain Layout
34089 \begin_layout Plain Layout
34103 \begin_layout Standard
34104 \begin_inset VSpace medskip
34110 \begin_layout Standard
34111 \begin_inset Note Greyedout
34114 \begin_layout Plain Layout
34119 Text in colorboxes cannot have line breaks.
34120 To color multiple text lines or paragraphs, use a box inside a colorbox
34121 as described in the following.
34129 \begin_layout Subsection
34130 Color for Paragraphs
34131 \begin_inset CommandInset label
34133 name "sub:Color-for-Paragraphs"
34138 \begin_inset Index idx
34141 \begin_layout Plain Layout
34142 Color ! for Paragraphs
34150 \begin_layout Standard
34151 To set the background color for more than one text line, put the text into
34153 Before the minipage insert the
34162 \begin_layout Standard
34170 \begin_layout Standard
34172 After the minipage insert a closing brace
34173 \begin_inset Quotes eld
34181 \begin_inset Quotes erd
34187 \begin_layout Standard
34191 \begin_layout Plain Layout
34195 colorbox{lightgrey}{
34201 \begin_inset Box Frameless
34211 height_special "totalheight"
34214 \begin_layout Plain Layout
34215 This is text with background color.
34216 This is text with background color.
34219 \begin_layout Plain Layout
34220 \begin_inset VSpace defskip
34223 The text can have footnotes
34227 \begin_layout Plain Layout
34228 Another example footnote
34233 and can include tables and figures.
34236 \begin_layout Plain Layout
34238 \begin_inset Tabular
34239 <lyxtabular version="3" rows="3" columns="3">
34240 <features tabularvalignment="middle">
34241 <column alignment="center" valignment="top" width="0">
34242 <column alignment="center" valignment="top" width="0">
34243 <column alignment="center" valignment="top" width="0">
34245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34248 \begin_layout Plain Layout
34254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34257 \begin_layout Plain Layout
34263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34266 \begin_layout Plain Layout
34274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34277 \begin_layout Plain Layout
34283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34286 \begin_layout Plain Layout
34288 \begin_inset Quotes erd
34296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34299 \begin_layout Plain Layout
34307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34310 \begin_layout Plain Layout
34316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34319 \begin_layout Plain Layout
34325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34328 \begin_layout Plain Layout
34348 \begin_layout Plain Layout
34358 \begin_layout Section
34359 Rotated and Scaled Boxes
34362 \begin_layout Standard
34363 To use the commands described in this section, the LaTeX-package
34368 \begin_inset Index idx
34371 \begin_layout Plain Layout
34372 LaTeX-packages ! graphicx
34377 needs to be loaded in the document preamble with the command
34380 \begin_layout Standard
34385 @ifundefined{rotatebox}
34386 \begin_inset Newline newline
34390 \begin_inset Phantom HPhantom
34393 \begin_layout Plain Layout
34396 \begin_inset space ~
34406 usepackage{graphicx}}{}
34409 \begin_layout Standard
34410 \begin_inset Note Greyedout
34413 \begin_layout Plain Layout
34418 Some DVI-viewers can't display rotated or scaled material.
34426 \begin_layout Standard
34427 \begin_inset Note Greyedout
34430 \begin_layout Plain Layout
34435 Floats mustn't be inside a rotated or scaled box.
34443 \begin_layout Subsection
34445 \begin_inset Index idx
34448 \begin_layout Plain Layout
34455 \begin_inset Index idx
34458 \begin_layout Plain Layout
34465 \begin_inset Index idx
34468 \begin_layout Plain Layout
34475 \begin_inset Index idx
34478 \begin_layout Plain Layout
34479 Table Customization ! Rotating
34487 \begin_layout Standard
34488 To rotate material, you can put it into a rotated box.
34489 Such a box is created using the command
34495 in TeX-Code with the following scheme:
34498 \begin_layout Standard
34503 rotatebox[rotation origin]{rotation angle}{box content}
34506 \begin_layout Standard
34507 The rotation origin is specified in the form
34512 The following positions are possible:
34532 (top), along with meaningful combinations of the four base positions.
34537 means that the rotation origin is at the top left corner of the box.
34538 When no rotation origin is specified, the position
34543 The rotation angle is a number that can be negative that specifies the
34545 The rotation direction is counterclockwise.
34548 \begin_layout Standard
34549 In the following example the command
34553 rotatebox[origin=c]{60}{
34555 was inserted as TeX-Code before the text
34556 \begin_inset Quotes eld
34560 \begin_inset Quotes erd
34563 ; after the text the box was closed by a closing brace
34570 \begin_layout Standard
34575 \begin_layout Plain Layout
34579 rotatebox[origin=c]{60}{
34588 \begin_layout Plain Layout
34598 \begin_layout Standard
34599 The box content can also be another box or an inline formula:
34602 \begin_layout Standard
34607 \begin_layout Plain Layout
34611 rotatebox[origin=r]{-60}{
34617 \begin_inset Box Doublebox
34627 height_special "totalheight"
34630 \begin_layout Plain Layout
34640 \begin_layout Plain Layout
34651 \begin_layout Plain Layout
34655 rotatebox[origin=lb]{60}{
34661 \begin_inset Formula $\int A\,\mathrm{d}x=B$
34668 \begin_layout Plain Layout
34678 \begin_layout Standard
34679 or an image or table:
34682 \begin_layout Standard
34687 \begin_layout Plain Layout
34691 rotatebox[origin=lb]{90}{
34697 \begin_inset Graphics
34698 filename clipart/platypus.eps
34708 \begin_layout Plain Layout
34715 with a rotated image
34719 \begin_layout Plain Layout
34723 rotatebox[origin=l]{-90}{
34729 \begin_inset Tabular
34730 <lyxtabular version="3" rows="2" columns="2">
34731 <features tabularvalignment="middle">
34732 <column alignment="center" valignment="top" width="0">
34733 <column alignment="center" valignment="top" width="0">
34735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34738 \begin_layout Plain Layout
34744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34747 \begin_layout Plain Layout
34755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34758 \begin_layout Plain Layout
34764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34767 \begin_layout Plain Layout
34782 \begin_layout Plain Layout
34792 \begin_layout Subsection
34794 \begin_inset Index idx
34797 \begin_layout Plain Layout
34804 \begin_inset Index idx
34807 \begin_layout Plain Layout
34814 \begin_inset Index idx
34817 \begin_layout Plain Layout
34824 \begin_inset Index idx
34827 \begin_layout Plain Layout
34828 Table Customization ! Scaling
34836 \begin_layout Standard
34837 To scale material the commands
34849 can be used as TeX-Code.
34852 \begin_layout Standard
34859 is used with the following scheme:
34862 \begin_layout Standard
34867 scalebox{horizontal}[vertical]{box content}
34870 \begin_layout Standard
34871 Horizontal and vertical are the corresponding scaling factors.
34872 If no vertical scaling factor is given, the horizontal factor will also
34873 be used as the vertical one.
34876 \begin_layout Standard
34883 creates for example a double size
34887 \begin_layout Plain Layout
34900 \begin_layout Plain Layout
34907 , compared with the document text size.
34910 \begin_layout Standard
34915 scalebox{2}[1]{Hello}
34917 on the other hand distorts the
34921 \begin_layout Plain Layout
34934 \begin_layout Plain Layout
34944 \begin_layout Standard
34945 If the scaling factor is negative, the box content will be mirrored.
34946 Therefore the command
34950 scalebox{-1}[1]{Hello}
34952 can be used to create mirror writing:
34956 \begin_layout Plain Layout
34969 \begin_layout Plain Layout
34979 \begin_layout Standard
34984 scalebox{1}[-1]{Hello}
34990 \begin_layout Plain Layout
35003 \begin_layout Plain Layout
35013 \begin_layout Standard
35018 scalebox{-1}[1]{box content}
35020 there exists the command
35021 \begin_inset Newline newline
35028 reflectbox{box content}
35033 \begin_layout Standard
35034 \begin_inset VSpace bigskip
35043 is used to scale the box to a defined width and height.
35044 The command scheme is:
35047 \begin_layout Standard
35052 resizebox{width}{height}{box content}
35055 \begin_layout Standard
35056 If one of the two command arguments given is an exclamation mark
35060 , the size is set so that the aspect ratio of the box content is kept.
35063 \begin_layout Standard
35068 resizebox{2cm}{1cm}{Hello}
35074 \begin_layout Plain Layout
35078 resizebox{2cm}{1cm}{
35087 \begin_layout Plain Layout
35095 \begin_inset Newline newline
35102 resizebox{2cm}{!}{Hello}
35108 \begin_layout Plain Layout
35121 \begin_layout Plain Layout
35131 \begin_layout Standard
35132 \begin_inset VSpace bigskip
35136 \begin_inset Note Greyedout
35139 \begin_layout Plain Layout
35156 are set to zero, no LaTeX-errors occur when exporting the document but
35157 the exported files can not or only partly be displayed.
35165 \begin_layout Standard
35166 \begin_inset VSpace bigskip
35172 \begin_layout Standard
35173 The boxes can be combined in any order.
35175 \begin_inset space \thinspace{}
35179 \begin_inset space \space{}
35183 \begin_inset Newline newline
35190 rotatebox[origin=c]{-45}{
35194 reflectbox{Hello}}}
35195 \begin_inset Newline newline
35203 \begin_layout Standard
35208 \begin_layout Plain Layout
35212 rotatebox[origin=c]{-45}{
35225 \begin_layout Plain Layout
35235 \begin_layout Standard
35237 Images, tables, and inline formulas are allowed as box content:
35240 \begin_layout Standard
35245 \begin_layout Plain Layout
35249 rotatebox[origin=c]{-30}{
35259 \begin_inset Graphics
35260 filename clipart/platypus.eps
35270 \begin_layout Plain Layout
35281 \begin_layout Plain Layout
35285 rotatebox[origin=c]{-45}{
35295 \begin_inset Tabular
35296 <lyxtabular version="3" rows="2" columns="2">
35297 <features tabularvalignment="middle">
35298 <column alignment="center" valignment="top" width="0">
35299 <column alignment="center" valignment="top" width="0">
35301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35304 \begin_layout Plain Layout
35310 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35313 \begin_layout Plain Layout
35321 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35324 \begin_layout Plain Layout
35330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35333 \begin_layout Plain Layout
35348 \begin_layout Plain Layout
35359 \begin_layout Plain Layout
35363 rotatebox[origin=c]{-45}{
35373 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35380 \begin_layout Plain Layout
35390 \begin_layout Standard
35391 When the global formula style
35395 is used in the document
35399 \begin_layout Plain Layout
35401 \begin_inset Quotes eld
35405 \begin_inset Quotes erd
35408 is added to the document class options.
35413 , display style formulas can also be scaled.
35416 \begin_layout Chapter
35417 Objects Surrounded by Text
35418 \begin_inset Index idx
35421 \begin_layout Plain Layout
35430 \begin_layout Section
35432 \begin_inset CommandInset label
35434 name "sec:Wrap-Floats"
35439 \begin_inset Index idx
35442 \begin_layout Plain Layout
35443 Floats ! Wrap Floats
35449 \begin_inset Index idx
35452 \begin_layout Plain Layout
35453 Surrounded by text ! Wrap Floats
35461 \begin_layout Standard
35462 \begin_inset Wrap figure
35469 \begin_layout Plain Layout
35470 \begin_inset Graphics
35471 filename clipart/mobius.eps
35473 scaleBeforeRotation
35474 rotateOrigin center
35481 \begin_layout Plain Layout
35482 \begin_inset Caption
35484 \begin_layout Plain Layout
35485 \begin_inset CommandInset label
35487 name "fig:This-is-a"
35491 This is a figure wrap float.
35501 This float type is used if you want to wrap text around a figure or table
35502 so that it only occupies some fraction of the column width.
35503 It can be inserted using the menu
35505 Insert\SpecialChar \menuseparator
35506 Floats\SpecialChar \menuseparator
35508 \begin_inset space ~
35512 \begin_inset space ~
35520 \begin_inset space ~
35524 \begin_inset space ~
35529 if the LaTeX-package
35534 \begin_inset Index idx
35537 \begin_layout Plain Layout
35538 LaTeX-packages ! wrapfig
35542 \begin_layout Plain Layout
35560 \begin_layout Plain Layout
35561 Installing a LaTeX-package is explained it in the
35564 \begin_inset space ~
35574 The settings of the float can be modified by right-clicking on the float
35576 The mandatory settings are the float
35589 that specifies how much the float is set into the paragraph
35590 \begin_inset space \thinspace{}
35594 \begin_inset space \thinspace{}
35597 page margin, and the
35600 \begin_inset space ~
35605 that specifies how many text lines the float will approximately need.
35606 The line span is often hard to approximate; so it is better only to use
35607 it when you encounter float placement problems.
35608 You can furthermore decide if LaTeX is allowed to let the float float within
35609 the paragraph or to surrounding paragraphs.
35611 \begin_inset space ~
35615 \begin_inset CommandInset ref
35617 reference "fig:This-is-a"
35621 is an example text wrap float with a width of 40
35622 \begin_inset space \thinspace{}
35626 \begin_inset space \thinspace{}
35629 cm overhang, set to the left.
35632 \begin_layout Standard
35633 \begin_inset Note Greyedout
35636 \begin_layout Plain Layout
35642 \begin_inset space ~
35645 wrap float floats are fragile! E.
35646 \begin_inset space \thinspace{}
35650 \begin_inset space \space{}
35653 having a figure too close to the bottom of the page can mess things up in
35654 such a way that the float does not appear in the output or that it is placed
35655 over some other text.
35663 \begin_layout Standard
35664 In general, the following applies for wrap floats:
35667 \begin_layout Itemize
35668 They should not be placed in paragraphs that run over a page break.
35669 That means that wrap floats are better inserted in their exact place when
35670 the document is almost finished and you are able to estimate where page
35671 breaks will appear.
35674 \begin_layout Itemize
35675 They should either be placed in their own paragraph before the paragraph
35676 where they should wrap into or within a paragraph.
35679 \begin_layout Itemize
35680 In consecutive paragraphs they may cause troubles, so ensure that there
35681 is a text paragraph between them as separator.
35684 \begin_layout Itemize
35685 They are not allowed in section headings or tables.
35688 \begin_layout Itemize
35689 Their numbering and referencing works as described in chap.
35690 \begin_inset space \thinspace{}
35694 \begin_inset CommandInset ref
35696 reference "chap:Floats"
35703 \begin_layout Section
35704 Surrounded Fixed Objects
35705 \begin_inset Index idx
35708 \begin_layout Plain Layout
35709 Surrounded by text ! Fixed objects
35717 \begin_layout Standard
35718 The wrap floats described in sec.
35719 \begin_inset space \thinspace{}
35723 \begin_inset CommandInset ref
35725 reference "sec:Wrap-Floats"
35729 have these positions in the paragraph:
35732 \begin_layout Standard
35735 \begin_inset Tabular
35736 <lyxtabular version="3" rows="2" columns="2">
35737 <features tabularvalignment="middle">
35738 <column alignment="center" valignment="top" width="0">
35739 <column alignment="center" valignment="top" width="0">
35741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35744 \begin_layout Plain Layout
35745 \begin_inset Graphics
35746 filename ../images/dialog-show-new-inset_graphics.png
35748 scaleBeforeRotation
35757 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35760 \begin_layout Plain Layout
35768 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35771 \begin_layout Plain Layout
35777 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35780 \begin_layout Plain Layout
35792 \begin_inset Tabular
35793 <lyxtabular version="3" rows="2" columns="2">
35794 <features tabularvalignment="middle">
35795 <column alignment="center" valignment="top" width="0">
35796 <column alignment="center" valignment="top" width="0">
35798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35801 \begin_layout Plain Layout
35807 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35810 \begin_layout Plain Layout
35811 \begin_inset Graphics
35812 filename ../images/dialog-show-new-inset_graphics.png
35814 scaleBeforeRotation
35825 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35828 \begin_layout Plain Layout
35834 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35837 \begin_layout Plain Layout
35851 \begin_layout Standard
35852 To get an object exactly at the position where it is inserted, for example
35853 to get one of these positions:
35854 \begin_inset VSpace defskip
35860 \begin_layout Standard
35863 \begin_inset Tabular
35864 <lyxtabular version="3" rows="2" columns="2">
35865 <features tabularvalignment="middle">
35866 <column alignment="center" valignment="top" width="0">
35867 <column alignment="center" valignment="top" width="0">
35869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35872 \begin_layout Plain Layout
35878 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35881 \begin_layout Plain Layout
35889 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35892 \begin_layout Plain Layout
35893 \begin_inset Graphics
35894 filename ../images/dialog-show-new-inset_graphics.png
35896 scaleBeforeRotation
35905 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35908 \begin_layout Plain Layout
35920 \begin_inset Tabular
35921 <lyxtabular version="3" rows="2" columns="2">
35922 <features tabularvalignment="middle">
35923 <column alignment="center" valignment="top" width="0">
35924 <column alignment="center" valignment="top" width="0">
35926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35929 \begin_layout Plain Layout
35935 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35938 \begin_layout Plain Layout
35946 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35949 \begin_layout Plain Layout
35955 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35958 \begin_layout Plain Layout
35959 \begin_inset Graphics
35960 filename ../images/dialog-show-new-inset_graphics.png
35962 scaleBeforeRotation
35977 \begin_inset Tabular
35978 <lyxtabular version="3" rows="2" columns="3">
35979 <features tabularvalignment="middle">
35980 <column alignment="center" valignment="top" width="0">
35981 <column alignment="center" valignment="top" width="0">
35982 <column alignment="center" valignment="top" width="0">
35984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35987 \begin_layout Plain Layout
35993 <cell alignment="center" valignment="top" topline="true" usebox="none">
35996 \begin_layout Plain Layout
35997 \begin_inset Graphics
35998 filename ../images/dialog-show-new-inset_graphics.png
36000 scaleBeforeRotation
36009 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36012 \begin_layout Plain Layout
36020 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36023 \begin_layout Plain Layout
36029 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36032 \begin_layout Plain Layout
36038 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36041 \begin_layout Plain Layout
36053 \begin_inset Tabular
36054 <lyxtabular version="3" rows="2" columns="3">
36055 <features tabularvalignment="middle">
36056 <column alignment="center" valignment="top" width="0">
36057 <column alignment="center" valignment="top" width="0">
36058 <column alignment="center" valignment="top" width="0">
36060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36063 \begin_layout Plain Layout
36069 <cell alignment="center" valignment="top" topline="true" usebox="none">
36072 \begin_layout Plain Layout
36078 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36081 \begin_layout Plain Layout
36089 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36092 \begin_layout Plain Layout
36098 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36101 \begin_layout Plain Layout
36102 \begin_inset Graphics
36103 filename ../images/dialog-show-new-inset_graphics.png
36105 scaleBeforeRotation
36114 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36117 \begin_layout Plain Layout
36131 \begin_layout Standard
36134 \begin_inset Tabular
36135 <lyxtabular version="3" rows="3" columns="2">
36136 <features tabularvalignment="middle">
36137 <column alignment="center" valignment="top" width="0">
36138 <column alignment="center" valignment="top" width="0">
36140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36143 \begin_layout Plain Layout
36149 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36152 \begin_layout Plain Layout
36160 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36163 \begin_layout Plain Layout
36164 \begin_inset Graphics
36165 filename ../images/dialog-show-new-inset_graphics.png
36167 scaleBeforeRotation
36176 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36179 \begin_layout Plain Layout
36187 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36190 \begin_layout Plain Layout
36196 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36199 \begin_layout Plain Layout
36211 \begin_inset Tabular
36212 <lyxtabular version="3" rows="3" columns="3">
36213 <features tabularvalignment="middle">
36214 <column alignment="center" valignment="top" width="0">
36215 <column alignment="center" valignment="top" width="0">
36216 <column alignment="center" valignment="top" width="0">
36218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36221 \begin_layout Plain Layout
36227 <cell alignment="center" valignment="top" topline="true" usebox="none">
36230 \begin_layout Plain Layout
36236 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36239 \begin_layout Plain Layout
36247 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36250 \begin_layout Plain Layout
36256 <cell alignment="center" valignment="top" usebox="none">
36259 \begin_layout Plain Layout
36260 \begin_inset Graphics
36261 filename ../images/dialog-show-new-inset_graphics.png
36263 scaleBeforeRotation
36272 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36275 \begin_layout Plain Layout
36283 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36286 \begin_layout Plain Layout
36292 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36295 \begin_layout Plain Layout
36301 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36304 \begin_layout Plain Layout
36316 \begin_inset Tabular
36317 <lyxtabular version="3" rows="3" columns="2">
36318 <features tabularvalignment="middle">
36319 <column alignment="center" valignment="top" width="0">
36320 <column alignment="center" valignment="top" width="0">
36322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36325 \begin_layout Plain Layout
36331 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36334 \begin_layout Plain Layout
36342 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36345 \begin_layout Plain Layout
36351 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36354 \begin_layout Plain Layout
36355 \begin_inset Graphics
36356 filename ../images/dialog-show-new-inset_graphics.png
36358 scaleBeforeRotation
36369 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36372 \begin_layout Plain Layout
36378 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36381 \begin_layout Plain Layout
36395 \begin_layout Standard
36397 you can use the LaTeX-package
36402 \begin_inset Index idx
36405 \begin_layout Plain Layout
36406 LaTeX-packages ! picinpar
36412 Here is an example:
36415 \begin_layout Standard
36419 \begin_layout Plain Layout
36429 \begin_inset Note Note
36432 \begin_layout Plain Layout
36433 The following section will only be displayed when the LaTeX-package
36445 \begin_layout Standard
36449 \begin_layout Plain Layout
36453 begin{window}[2,c,{
36459 \begin_inset Graphics
36460 filename clipart/mobius.eps
36463 scaleBeforeRotation
36464 rotateOrigin center
36472 \begin_layout Plain Layout
36477 \begin_layout Plain Layout
36486 It was in the spring of the year 1894 that all London was interested, and
36487 the fashionable world dismayed, by the murder of the Honourable Ronald
36488 Adair under most unusual and inexplicable circumstances.
36489 The public has already learned those particulars of the crime which
36495 \begin_layout Plain Layout
36506 came out in the police investigation, but a good deal was suppressed upon
36507 that occasion, since the case for the prosecution was so overwhelmingly
36508 strong that it was not necessary to bring forward all the facts.
36509 Only now, at the end of nearly ten years, am I allowed to supply those
36510 missing links which make up the whole of that remarkable chain.
36516 \begin_layout Plain Layout
36528 \begin_layout Standard
36532 \begin_layout Plain Layout
36541 Footnote of the paragraph with the fixed object.
36545 \begin_layout Plain Layout
36555 \begin_layout Standard
36556 Surrounded fixed objects are used to let text float around them, at which
36557 the object's position in the paragraph can be determined by the number
36559 In contrary to floats is it not possible to have a numbered caption.
36562 \begin_layout Standard
36563 A fixed object is inserted by adding the command
36566 \begin_layout Standard
36571 begin{window}[2,c,{
36574 \begin_layout Standard
36575 as TeX-Code at the beginning of the paragraph.
36576 The first parameter in the bracket, here '2', defines the number of lines
36577 above the object, the second, here 'c', the position of the object.
36578 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
36579 Behind the command you insert the object.
36580 In this example an image with a width of 40
36581 \begin_inset space \thinspace{}
36584 % of the text column width was inserted.
36585 The object can also be a table, a box or an equation.
36586 Behind the object the command
36589 \begin_layout Standard
36592 },description text]
36593 \begin_inset Newline newline
36599 \begin_layout Standard
36602 \begin_inset Quotes eld
36610 \begin_inset Quotes erd
36613 is in the second line.
36614 The description text is optional.
36615 The text surrounding the object must be in the same paragraph as the object,
36616 so it must begin directly after the
36621 At the end of the paragraph insert the command:
36624 \begin_layout Standard
36632 \begin_layout Standard
36633 Within a paragraph with a fixed object, you cannot insert footnotes in the
36635 You have to use instead the command
36641 inside the paragraph and outside the command
36647 as described in sec.
36648 \begin_inset space \thinspace{}
36652 \begin_inset CommandInset ref
36654 reference "sec:Footnotes"
36661 \begin_layout Standard
36665 \begin_layout Plain Layout
36675 \begin_inset Note Note
36678 \begin_layout Plain Layout
36679 The following will be displayed when the LaTeX-package
36691 \begin_layout Standard
36692 You need to install the LaTeX-package
36696 to see the following part of this section in the output.
36699 \begin_layout Standard
36703 \begin_layout Plain Layout
36715 \begin_layout Section
36717 \begin_inset Index idx
36720 \begin_layout Plain Layout
36727 \begin_inset Index idx
36730 \begin_layout Plain Layout
36731 Surrounded by text ! Initials
36739 \begin_layout Standard
36740 To use initials, you must have the LaTeX-package
36745 \begin_inset Index idx
36748 \begin_layout Plain Layout
36749 LaTeX-packages ! lettrine
36754 installed and use the module
36758 in your document (menu
36760 Document\SpecialChar \menuseparator
36761 Settings\SpecialChar \menuseparator
36765 To insert an initial, use the style
36770 This style has a mandatory and an optional argument.
36771 The mandatory argument is inserted via the menu
36773 Insert\SpecialChar \menuseparator
36775 \begin_inset space ~
36780 and contains the letter that is the initial.
36781 To use also the optional argument, insert another argument in front of
36782 the mandatory argument.
36783 This one contains parameters to modify the initial.
36784 For more information about the possible parameters see the documentation
36790 \begin_inset CommandInset citation
36797 The style itself contains the text that is surrounding the initial.
36798 The usual style is hereby that the word whose first letter is the initial,
36804 To tell LaTeX where this word is finished, add a closing brace '
36808 ' as TeX-Code behind it.
36809 At the end of the style there must be an opening brace '
36816 \begin_layout Standard
36817 Here are some examples:
36820 \begin_layout Standard
36824 \begin_layout Plain Layout
36834 \begin_inset Note Note
36837 \begin_layout Plain Layout
36838 The following section will only be displayed when the LaTeX-package
36850 \begin_layout Enumerate
36851 No optional argument, the initial is the letter 'I' in the math font
36852 \begin_inset Formula $\mathfrak{Fraktur}$
36859 \begin_layout Initial
36860 \begin_inset Argument
36863 \begin_layout Plain Layout
36864 \begin_inset Formula $\mathfrak{I}$
36876 \begin_layout Plain Layout
36883 was in the spring of the year 1894 that all London was interested, and
36884 the fashionable world dismayed, by the murder of the Honourable Ronald
36885 Adair under most unusual and inexplicable circumstances.
36886 The public has already learned those particulars of the crime which came
36887 out in the police investigation, but a good deal was suppressed upon that
36888 occasion, since the case for the prosecution was so overwhelmingly strong
36889 that it was not necessary to bring forward all the facts.
36893 \begin_layout Plain Layout
36901 \begin_inset Newpage newpage
36908 \begin_layout Enumerate
36909 Only one line is surrounding the initial, which is formed by two letters
36910 in standard font and no text is printed in small caps:
36914 \begin_layout Initial
36915 \begin_inset Argument
36918 \begin_layout Plain Layout
36925 \begin_inset Argument
36928 \begin_layout Plain Layout
36938 \begin_layout Plain Layout
36945 was in the spring of the year 1894 that all London was interested, and
36946 the fashionable world dismayed, by the murder of the Honourable Ronald
36947 Adair under most unusual and inexplicable circumstances.
36948 The public has already learned those particulars of the crime which came
36949 out in the police investigation, but a good deal was suppressed upon that
36950 occasion, since the case for the prosecution was so overwhelmingly strong
36951 that it was not necessary to bring forward all the facts.
36955 \begin_layout Plain Layout
36966 \begin_layout Enumerate
36967 Magenta, hanging initial over 3
36968 \begin_inset space ~
36971 lines in the math font
36972 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
36976 \begin_inset Quotes eld
36979 t was in the spring
36980 \begin_inset Quotes erd
36987 ; to color the initial, you must insert this command before the initial:
36988 \begin_inset Newline newline
37002 \begin_inset Newline newline
37010 \begin_inset Quotes eld
37014 \begin_inset Quotes erd
37018 \begin_inset Quotes eld
37022 \begin_inset Quotes erd
37026 \begin_inset Quotes eld
37030 \begin_inset Quotes erd
37034 \begin_inset Quotes eld
37038 \begin_inset Quotes erd
37042 \begin_inset Quotes eld
37046 \begin_inset Quotes erd
37050 \begin_inset Quotes eld
37054 \begin_inset Quotes erd
37058 \begin_inset Quotes eld
37062 \begin_inset Quotes erd
37066 \begin_inset Quotes eld
37070 \begin_inset Quotes erd
37073 , and add this command to the document preamble:
37074 \begin_inset Newline newline
37081 @ifundefined{textcolor}
37082 \begin_inset Newline newline
37086 \begin_inset space ~
37091 usepackage{color}}{}
37095 \begin_layout Standard
37099 \begin_layout Plain Layout
37113 \begin_inset Note Note
37116 \begin_layout Plain Layout
37117 makes the initial magenta
37125 \begin_layout Initial
37126 \begin_inset Argument
37129 \begin_layout Plain Layout
37130 lines=3, lhang=0.33, loversize=0.25
37136 \begin_inset Argument
37139 \begin_layout Plain Layout
37140 \begin_inset Formula $\mathcal{I}$
37148 t was in the spring
37152 \begin_layout Plain Layout
37159 of the year 1894 that all London was interested, and the fashionable world
37160 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37161 and inexplicable circumstances.
37162 The public has already learned those particulars of the crime which came
37163 out in the police investigation, but a good deal was suppressed upon that
37164 occasion, since the case for the prosecution was so overwhelmingly strong
37165 that it was not necessary to bring forward all the facts.
37169 \begin_layout Plain Layout
37180 \begin_layout Standard
37184 \begin_layout Plain Layout
37194 \begin_inset Note Note
37197 \begin_layout Plain Layout
37198 The following will be displayed when the LaTeX-package
37210 \begin_layout Standard
37211 You need to install the LaTeX-package
37215 to see the following part of this section in the output.
37218 \begin_layout Standard
37222 \begin_layout Plain Layout
37234 \begin_layout Chapter
37235 External Document Parts
37236 \begin_inset Index idx
37239 \begin_layout Plain Layout
37240 External Document Parts
37248 \begin_layout Standard
37251 Insert\SpecialChar \menuseparator
37254 you can insert external material to your document.
37258 \begin_layout Description
37260 \begin_inset space ~
37263 Document Another LyX document; its content is directly inserted to your
37267 \begin_layout Description
37269 \begin_inset space ~
37272 Text A text document; each line is inserted in your document as a separate
37276 \begin_layout Description
37278 \begin_inset space ~
37282 \begin_inset space ~
37286 \begin_inset space ~
37289 Lines A text document; text lines are inserted in your document continuously
37290 but an empty text line creates a new paragraph.
37293 \begin_layout Description
37295 \begin_inset space ~
37298 Material Files in various formats.
37301 \begin_layout Description
37303 \begin_inset space ~
37306 Document LyX or LaTeX-documents.
37309 \begin_layout Section
37311 \begin_inset Index idx
37314 \begin_layout Plain Layout
37315 External Document Parts ! External Material
37323 \begin_layout Standard
37324 The external material feature allows you to insert files in to your document
37325 without converting them to a format that can be read by the document output
37327 LyX takes care of the necessary conversions.
37328 This is similar to images that can be inserted in various image formats
37330 When you have enabled Instant Preview in LyX's preferences under
37333 \begin_inset space ~
37337 \begin_inset space ~
37340 feel\SpecialChar \menuseparator
37343 , the external material types Dia and Xfig are directly shown in LyX.
37346 \begin_layout Standard
37347 External material can be inserted via the
37351 dialog that is accessible with the menu
37353 Insert\SpecialChar \menuseparator
37354 File\SpecialChar \menuseparator
37356 \begin_inset space ~
37362 Currently the following file types (
37369 \begin_layout Description
37370 ChessDiagram This template supports chess position diagrams made with the
37374 \begin_inset CommandInset href
37377 target "http://en.wikipedia.org/wiki/XBoard"
37386 \begin_layout Description
37387 Date This inserts the date in the form
37392 This is a date inserted as external material:
37393 \begin_inset External
37400 \begin_inset space ~
37404 \begin_inset Note Note
37407 \begin_layout Plain Layout
37408 Remove the protected space when bug 4398 is fixed!
37414 \begin_inset Newline newline
37417 The date is not shown within LyX, only in the output.
37418 There are two other methods of inserting a date: Via menu
37420 Insert\SpecialChar \menuseparator
37423 and with the LaTeX command
37430 The different methods are compared in Table
37431 \begin_inset space ~
37435 \begin_inset CommandInset ref
37437 reference "tab:Comparison-of-the"
37444 \begin_layout Description
37445 Dia This template supports diagrams created with the program
37448 \begin_inset CommandInset href
37451 target "http://en.wikipedia.org/wiki/Dia_(software)"
37460 \begin_layout Description
37461 GnumericSpreadsheet With this template you can insert spreadsheets
37462 \begin_inset space \thinspace{}
37466 \begin_inset space \thinspace{}
37469 tables in the format of
37472 \begin_inset CommandInset href
37475 target "http://en.wikipedia.org/wiki/Gnumeric"
37482 \begin_inset CommandInset href
37484 name "OpenDocument"
37485 target "http://en.wikipedia.org/wiki/OpenDocument"
37490 \begin_inset CommandInset href
37492 name "Microsoft Office XML"
37493 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
37498 \begin_inset CommandInset href
37500 name "Office Open XML"
37501 target "http://en.wikipedia.org/wiki/Office_Open_XML"
37506 For this feature LyX must have found the program
37510 during its configuration.
37511 This program is part of Gnumeric, so that you must have Gnumeric installed,
37512 also if you don't have tables in the Gnumeric format.
37513 For examples and possible limitations have a look at LyX's example file
37521 \begin_layout Description
37522 LilyPond This template is used for music notation typeset with the program
37523 \begin_inset Newline linebreak
37529 \begin_inset CommandInset href
37532 target "http://en.wikipedia.org/wiki/LilyPond"
37539 For LyX's extended support for LilyPond have a look at LyX's example file
37547 \begin_layout Description
37548 PDFPages With this template you can insert PDF documents to your document.
37549 To specify the range of pages that should be included, use the option
37559 LaTeX and LyX options
37562 The argument of this option is a comma separated list, containing page
37563 numbers (insert as option
37567 ), ranges of page numbers (
37571 ) or any combination.
37572 To insert empty pages use {}.
37574 \begin_inset space \thinspace{}
37578 \begin_inset space ~
37583 pages={3,{},8-11,15}
37585 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
37586 Page ranges are specified in the syntax
37595 This selects all pages from
37608 defaults to the first page; omitting
37612 defaults to the last page of the document.
37613 The last page can also be selected with the keyword
37618 (This is only permitted in a page range.) So
37622 will insert all pages of the document and
37626 will insert all pages in reverse order.
37627 If the pages option is not specified, only the first page of the PDF is
37629 \begin_inset Newline newline
37636 inserts the pages with their original size, if this option is not given,
37637 the pages will be resized to fith the width of the page of your document.
37642 you can specify the width and height of the input pages and their rotation.
37643 If another width than 100
37644 \begin_inset space \thinspace{}
37647 Scale% is used, the option
37651 will be overwritten.
37652 For more info and possible options, have a look into the documentation
37653 of the LaTeX-package
37658 \begin_inset CommandInset citation
37665 \begin_inset Index idx
37668 \begin_layout Plain Layout
37669 LaTeX-packages ! pdfpages
37675 \begin_inset Newline newline
37678 To use this template in a
37682 presentation you need to first insert an
37686 environment and in a subsequent paragraph a TeX-Code box containing the
37691 setbeamertemplate{background canvas}{}
37694 Then you can insert as many paragraphs containing the PDFPages template
37696 Behind the included PDF pages you can resume the Beamer presentation by
37697 beginning a new frame or by starting a new section.
37698 To avoid stray blank pages prior to the PDF pages, make sure to use the
37703 alignment for the paragraph containing the template.
37704 \begin_inset Newline newline
37707 Here is an included PDF which is rotated by -5°:
37708 \begin_inset External
37710 filename clipart/Abstract.pdf
37711 extra LaTeX "noautoscale, pages=-"
37713 rotateOrigin bottomleft
37720 \begin_layout Description
37721 RasterImage This can be used for bitmap images.
37722 The image can be treated in the
37726 dialog like the images that are usually included via the
37730 dialog as described in section
37731 \begin_inset space ~
37735 \begin_inset CommandInset ref
37737 reference "sec:Graphics-Dialog"
37742 The difference to the normal image input is that only raster images are
37743 allowed; that means that PDF and EPS-images are not supported.
37744 Here is an inserted raster image:
37745 \begin_inset External
37746 template RasterImage
37747 filename clipart/ToolbarEnvBox.png
37754 \begin_layout Description
37755 XFig This template supports images created with the program
37758 \begin_inset CommandInset href
37761 target "http://en.wikipedia.org/wiki/Xfig"
37770 \begin_layout Standard
37771 \begin_inset Float table
37777 \begin_layout Plain Layout
37778 \begin_inset Caption
37780 \begin_layout Plain Layout
37781 \begin_inset CommandInset label
37783 name "tab:Comparison-of-the"
37787 Comparison of the date input methods.
37795 \begin_layout Plain Layout
37797 \begin_inset Tabular
37798 <lyxtabular version="3" rows="4" columns="4">
37799 <features tabularvalignment="middle">
37800 <column alignment="center" valignment="top" width="0">
37801 <column alignment="center" valignment="top" width="0">
37802 <column alignment="center" valignment="top" width="0">
37803 <column alignment="center" valignment="top" width="0">
37805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37808 \begin_layout Plain Layout
37814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37817 \begin_layout Plain Layout
37820 External Material\SpecialChar \menuseparator
37826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37829 \begin_layout Plain Layout
37832 Insert\SpecialChar \menuseparator
37838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37841 \begin_layout Plain Layout
37853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37856 \begin_layout Plain Layout
37862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37865 \begin_layout Plain Layout
37871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37874 \begin_layout Plain Layout
37880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37883 \begin_layout Plain Layout
37884 as TeX-Code inset box
37891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37894 \begin_layout Plain Layout
37900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37903 \begin_layout Plain Layout
37909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37912 \begin_layout Plain Layout
37918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37921 \begin_layout Plain Layout
37929 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37932 \begin_layout Plain Layout
37938 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37941 \begin_layout Plain Layout
37947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37950 \begin_layout Plain Layout
37956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37959 \begin_layout Plain Layout
37978 \begin_layout Standard
37979 When you use the option
37991 dialog, only the path to the inserted file is shown in the output.
37992 \begin_inset Newline newline
37995 External material is displayed in LyX either as a box like this:
37996 \begin_inset Graphics
37997 filename clipart/ExternalMaterialQt4.png
37999 scaleBeforeRotation
38003 or as image, depending on the option
38009 LaTeX and LyX options
38014 \begin_layout Standard
38021 manual explains how you can define your own templates.
38024 \begin_layout Section
38026 \begin_inset CommandInset label
38028 name "sec:Child-Documents"
38033 \begin_inset Index idx
38036 \begin_layout Plain Layout
38037 External Document Parts ! Child Documents
38043 \begin_inset Index idx
38046 \begin_layout Plain Layout
38055 \begin_layout Standard
38056 Child documents are used if you have a long document consisting of several
38057 larger parts or sections.
38058 For maintenance it is often useful and sometimes even required to split
38059 the document into several files that can be revised separately.
38060 The different documents are then the so called
38061 \begin_inset Quotes eld
38065 \begin_inset Quotes erd
38068 , and a master document connects them to print the full document or parts
38070 A child document inherits elements of its master, for example the LaTeX
38071 preamble, the bibliography, and labels for cross-references.
38074 \begin_layout Standard
38075 To be able to work on child documents without the need to open their master,
38076 specify in the child document the master in the menu
38078 Document\SpecialChar \menuseparator
38079 Settings\SpecialChar \menuseparator
38081 \begin_inset space ~
38087 This master document will then be used in the background by LyX when you
38088 edit the child document.
38091 \begin_layout Standard
38092 Included documents are displayed in LyX as a box like this:
38093 \begin_inset Graphics
38094 filename clipart/ChildDocumentQt4.png
38096 scaleBeforeRotation
38100 To include child documents in a master document use the menu
38102 Insert\SpecialChar \menuseparator
38103 File\SpecialChar \menuseparator
38105 \begin_inset space ~
38111 A dialog pops up where you can choose between four include methods:
38114 \begin_layout Description
38115 Include You can include LyX- and LaTeX-documents.
38124 dialog, the included documents will be opened in LyX in a new file tab
38125 so that you can modify them.
38126 \begin_inset Newline newline
38132 \begin_layout Standard
38133 Here is a child document inserted using
38138 \begin_inset CommandInset include
38139 LatexCommand include
38140 filename "DummyDocument1.lyx"
38147 \begin_layout Standard
38148 The section numbering includes the sections of the included files in the
38149 order they are inserted in the master document.
38150 The included example document has for example a subsection that is numbered
38151 as a subsection of this section.
38152 Labels of included documents can be referenced: Subsection
38153 \begin_inset space ~
38157 \begin_inset CommandInset ref
38159 reference "sub:External-Subsection-1"
38166 \begin_layout Standard
38167 The preamble of the child document is ignored; only the preamble of the
38168 master document is used.
38169 Branches in child documents will be ignored by the master document when
38170 the master document does not have a branch with the same name.
38171 Included documents are inserted starting on a new page and ending with
38175 \begin_layout Standard
38176 \begin_inset Note Greyedout
38179 \begin_layout Plain Layout
38184 If you have included a LyX- or LaTeX-file, you are warned when you export/view
38185 the document in case the child document uses another document class than
38186 the master document as this will lead to unexpected outputs.
38194 \begin_layout Description
38195 Input This method is very similar to the Include method.
38196 The differences are:
38200 \begin_layout Itemize
38201 Input files don't start with a new page and don't end with a page break.
38204 \begin_layout Itemize
38205 Input files can be previewed in LyX when
38208 \begin_inset space ~
38213 is enabled in LyX's preferences under
38216 \begin_inset space ~
38220 \begin_inset space ~
38223 feel\SpecialChar \menuseparator
38229 \begin_layout Itemize
38230 You cannot exclude Input files via the menu
38232 Document\SpecialChar \menuseparator
38233 Settings\SpecialChar \menuseparator
38240 \begin_layout Standard
38241 Here is a child document inserted using
38246 \begin_inset CommandInset include
38248 filename "DummyDocument2.lyx"
38255 \begin_layout Description
38256 Verbatim With this method any text file can be included.
38257 The file is shown in the output with its source code; no command used in
38258 the text is invoked.
38259 You can use the option
38261 Mark spaces in output
38263 that displays the character
38264 \begin_inset Quotes eld
38271 \begin_layout Plain Layout
38281 \begin_inset Quotes erd
38284 for every space character in the source code.
38285 The difference from the method via the menu
38287 Insert\SpecialChar \menuseparator
38288 File\SpecialChar \menuseparator
38290 \begin_inset space ~
38295 is that the document content is not shown in LyX.
38298 \begin_layout Standard
38299 Here is a child document inserted as Verbatim:
38300 \begin_inset CommandInset include
38301 LatexCommand verbatiminput
38302 filename "DummyTextDocument.txt"
38307 \begin_inset VSpace bigskip
38310 Here is a child document inserted as Verbatim using the
38312 Mark spaces in output
38315 \begin_inset CommandInset include
38316 LatexCommand verbatiminput*
38317 filename "DummyTextDocument.txt"
38324 \begin_layout Standard
38325 \begin_inset VSpace bigskip
38331 \begin_layout Standard
38332 \begin_inset Note Greyedout
38335 \begin_layout Plain Layout
38340 As you can see in the examples above, the text of the documents included
38345 is not broken at the end of the document lines.
38353 \begin_layout Description
38354 Listings This type is described in chapter
38355 \begin_inset space ~
38359 \begin_inset CommandInset ref
38361 reference "cha:Program-Code-Listings"
38368 \begin_layout Standard
38369 \begin_inset Note Greyedout
38372 \begin_layout Plain Layout
38377 Including the same document twice in a document using different methods
38378 could cause LaTeX-problems.
38386 \begin_layout Standard
38387 If you want to view/export only selected children of your master document,
38388 either because you want to save compiling time or because you want to distribut
38389 e single chapters of the book you are just writing, you can exclude children
38391 This is done via the menu
38393 Document\SpecialChar \menuseparator
38394 Settings\SpecialChar \menuseparator
38398 You can exclude\SpecialChar \slash{}
38399 include children by double-clicking on the
38403 column of the respective child document in the list (note that this only
38404 works for documents embedded via
38405 \begin_inset Quotes eld
38409 \begin_inset Quotes erd
38413 \begin_inset Quotes eld
38417 \begin_inset Quotes erd
38423 Maintain counters and references
38425 is enabled, LyX will assure that all page numbers, references etc.
38426 \begin_inset space ~
38429 are correct as if the whole document was processed.
38430 This is useful if you want the selected sub-documents to look exactly as
38431 in the context of the whole document.
38432 However, LyX needs to process the whole document in the background for
38434 So if you want to save compile time and if counters and references do not
38435 need to be correct, disable this checkbox.
38438 \begin_layout Standard
38439 Alternatively, you can put each included file into a branch.
38443 \begin_layout Plain Layout
38444 Branches are described in section
38457 By enabling\SpecialChar \slash{}
38458 disabling branches you can decide which included files will
38459 appear in the output.
38460 This has the advantage that it also works with Input'ed sub-documents.
38461 However, counters and references will not be maintained with this approach.
38464 \begin_layout Chapter
38465 Program Code Listings
38466 \begin_inset CommandInset label
38468 name "cha:Program-Code-Listings"
38473 \begin_inset Index idx
38476 \begin_layout Plain Layout
38483 \begin_inset Index idx
38486 \begin_layout Plain Layout
38493 \begin_inset Index idx
38496 \begin_layout Plain Layout
38505 \begin_layout Standard
38506 To include and typeset program code you can use the
38510 inset that can be inserted via the menu
38512 Insert\SpecialChar \menuseparator
38521 \begin_inset Index idx
38524 \begin_layout Plain Layout
38525 LaTeX-packages ! listings
38530 provides a powerful and flexible way to insert program source code into
38534 \begin_layout Standard
38535 Right-clicking on a listings inset opens the context menu containing where
38536 you can set the listings format.
38539 \begin_layout Standard
38540 By default, a listing starts a new paragraph in the output.
38541 The placement option
38544 \begin_inset space ~
38549 prints the listing inline like this:
38550 \begin_inset listings
38551 lstparams "language={C++}"
38555 \begin_layout Plain Layout
38563 \begin_inset Newline newline
38570 creates a listings float where you can specify the placement options
38571 \begin_inset Quotes eld
38579 \begin_inset Quotes erd
38583 \begin_inset Quotes eld
38591 \begin_inset Quotes erd
38595 \begin_inset Quotes eld
38603 \begin_inset Quotes erd
38607 \begin_inset Quotes eld
38615 \begin_inset Quotes erd
38618 corresponding to the float placement options described in section
38619 \begin_inset space ~
38623 \begin_inset CommandInset ref
38625 reference "sec:Float-Placement"
38630 The placement options can be mixed and are inserted without any separation,
38632 \begin_inset space \thinspace{}
38636 \begin_inset space \space{}
38640 \begin_inset Quotes eld
38648 \begin_inset Quotes erd
38653 \begin_inset Quotes eld
38657 \begin_inset Quotes erd
38660 has sometimes no effect, but you don't need to use the
38664 option in this case as also non-float listings can have captions and be
38668 \begin_layout Standard
38669 You can add captions to listings with the menu
38671 Insert\SpecialChar \menuseparator
38675 Listings can be referenced like floats: Listing
38676 \begin_inset space ~
38680 \begin_inset CommandInset ref
38682 reference "lst:Example-Listing"
38689 \begin_layout Standard
38690 \begin_inset listings
38691 lstparams "language=Python"
38695 \begin_layout Plain Layout
38697 \begin_inset Caption
38699 \begin_layout Plain Layout
38700 \begin_inset CommandInset label
38702 name "lst:Example-Listing"
38706 Example Listing float
38711 # Example listing float
38714 \begin_layout Plain Layout
38719 \begin_layout Plain Layout
38721 'this is a python function'
38724 \begin_layout Plain Layout
38734 \begin_layout Standard
38735 When you have set a programming language in the listings dialog, the keywords
38736 of this language will be recognized and specially typeset in the output.
38737 In the example listings the Python keyword
38738 \begin_inset Quotes eld
38742 \begin_inset Quotes erd
38745 is recognized and printed bold in the output.
38748 \begin_layout Standard
38749 \begin_inset Note Greyedout
38752 \begin_layout Plain Layout
38757 If you don't get bold keywords when using typewriter fonts, your
38761 font probably doesn't provide a bold shape.
38762 In this case select a different one in the menu
38764 Document\SpecialChar \menuseparator
38765 Settings\SpecialChar \menuseparator
38777 provide bold shapes.)
38785 \begin_layout Standard
38789 \begin_inset space ~
38794 of the listings dialog you can specify the line numbering style.
38795 You can insert a number to specify which lines are numbered in the field
38802 \begin_inset space \thinspace{}
38806 \begin_inset space \space{}
38810 \begin_inset Quotes eld
38814 \begin_inset Quotes erd
38817 , only every 3rd line will be numbered.
38820 \begin_layout Standard
38821 You can furthermore specify a range of lines; only these will then appear
38825 Extended character table
38827 should be used when you use national characters like the German umlauts
38829 \begin_inset Newline newline
38832 Here is an example listing with left line numbering, step
38833 \begin_inset Quotes eld
38837 \begin_inset Quotes erd
38841 \begin_inset Quotes eld
38845 \begin_inset Quotes erd
38849 \begin_inset Quotes eld
38852 Extended character table
38853 \begin_inset Quotes erd
38857 \begin_inset Quotes eld
38861 \begin_inset space ~
38865 \begin_inset space ~
38869 \begin_inset Quotes erd
38873 \begin_inset space \thinspace{}
38877 \begin_inset space \thinspace{}
38883 \begin_layout Standard
38884 \begin_inset listings
38885 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
38889 \begin_layout Plain Layout
38894 \begin_layout Plain Layout
38896 'this is a python function'
38899 \begin_layout Plain Layout
38904 \begin_layout Plain Layout
38909 \begin_layout Plain Layout
38911 'This is a German word: Tschüß'
38914 \begin_layout Plain Layout
38919 \begin_layout Plain Layout
38924 \begin_layout Plain Layout
38926 'this is a python function'
38929 \begin_layout Plain Layout
38939 \begin_layout Standard
38940 When you have tabulators in your listing, you can specify the number of
38941 characters that are spanned by a tabulator in the field
38944 \begin_inset space ~
38952 \begin_layout Standard
38953 \begin_inset Note Greyedout
38956 \begin_layout Plain Layout
38961 Due to a bug in the
38965 package the line numbering is shifted by a line by every previous listing.
38966 That's the reason why the lines 2 and 5 are numbered in the above listing
38967 and not the lines 3 and 6.
38975 \begin_layout Standard
38976 \begin_inset VSpace bigskip
38982 \begin_layout Standard
38983 It is also possible to print lines from a file as listing.
38984 To do this, use the menu
38986 Insert\SpecialChar \menuseparator
38987 File\SpecialChar \menuseparator
38990 and choose the type
38998 \begin_layout Plain Layout
38999 The other child document types are described in section
39000 \begin_inset space ~
39004 \begin_inset CommandInset ref
39006 reference "sec:Child-Documents"
39015 In the child document dialog you can specify the listing parameters in
39017 To show a list of all available parameters, type in a question mark
39018 \begin_inset Quotes eld
39022 \begin_inset Quotes erd
39028 \begin_layout Standard
39029 To reference child document listings, write a label text into the corresponding
39030 field of the child document dialog.
39031 The label can then be referenced using the menu
39033 Insert\SpecialChar \menuseparator
39039 \begin_layout Standard
39041 \begin_inset space ~
39045 \begin_inset CommandInset ref
39047 reference "lst:file-listing"
39051 is an example for a listing of a file; there the lines 10
39052 \begin_inset space \thinspace{}
39056 \begin_inset space \thinspace{}
39059 15 of this LyX file are listed.
39062 \begin_layout Standard
39063 \begin_inset CommandInset include
39064 LatexCommand lstinputlisting
39065 filename "EmbeddedObjects.lyx"
39066 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39073 \begin_layout Standard
39074 \begin_inset VSpace bigskip
39080 \begin_layout Standard
39081 Inserting a formula into a listing can be done the following way:
39084 \begin_layout Enumerate
39085 Open the listings dialog and add
39086 \begin_inset Newline newline
39094 \begin_inset Newline newline
39097 to the field of the
39104 \begin_layout Enumerate
39105 Create a formula outside the listing
39108 \begin_layout Enumerate
39109 Copy the content of the formula (not the formula inset) to the clipboard
39119 \begin_layout Enumerate
39120 In the listing write
39121 \begin_inset Quotes eld
39129 \begin_inset Quotes erd
39132 and copy from the clipboard between the dollar-signs (shortcut
39141 \begin_layout Standard
39142 \begin_inset listings
39143 lstparams "language=Python,mathescape=true"
39147 \begin_layout Plain Layout
39149 \begin_inset Caption
39151 \begin_layout Plain Layout
39152 Example Listing float containing a formula
39157 # Example listing float
39160 \begin_layout Plain Layout
39165 \begin_layout Plain Layout
39178 \begin_layout Plain Layout
39188 \begin_layout Standard
39189 \begin_inset VSpace bigskip
39195 \begin_layout Standard
39196 Global listings settings can be set in the
39198 Document\SpecialChar \menuseparator
39199 Settings\SpecialChar \menuseparator
39203 To get there a list of available options, type in a question mark
39204 \begin_inset Quotes eld
39208 \begin_inset Quotes erd
39214 \begin_layout Standard
39215 For more information about the
39219 package, we refer to its documentation
39220 \begin_inset CommandInset citation
39229 \begin_layout Standard
39230 \begin_inset Newpage newpage
39236 \begin_layout Chapter
39238 Units available in LyX
39239 \begin_inset Index idx
39242 \begin_layout Plain Layout
39249 \begin_inset CommandInset label
39251 name "cha:Units-available-in"
39258 \begin_layout Standard
39259 To understand the units described in this documentation, Table
39260 \begin_inset space ~
39264 \begin_inset CommandInset ref
39266 reference "tab:Units"
39270 explains all units available in LyX.
39273 \begin_layout Standard
39274 \begin_inset Float table
39280 \begin_layout Plain Layout
39281 \begin_inset Caption
39283 \begin_layout Plain Layout
39284 \begin_inset CommandInset label
39298 \begin_layout Plain Layout
39299 \begin_inset VSpace medskip
39305 \begin_layout Plain Layout
39307 \begin_inset Tabular
39308 <lyxtabular version="3" rows="20" columns="2">
39309 <features tabularvalignment="middle">
39310 <column alignment="center" valignment="top" width="0">
39311 <column alignment="center" valignment="top" width="0">
39313 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39316 \begin_layout Plain Layout
39322 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39325 \begin_layout Plain Layout
39333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39336 \begin_layout Plain Layout
39342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39345 \begin_layout Plain Layout
39353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39356 \begin_layout Plain Layout
39362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39365 \begin_layout Plain Layout
39373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39376 \begin_layout Plain Layout
39382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39385 \begin_layout Plain Layout
39393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39396 \begin_layout Plain Layout
39402 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39405 \begin_layout Plain Layout
39407 \begin_inset space \thinspace{}
39411 \begin_inset space \thinspace{}
39421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39424 \begin_layout Plain Layout
39430 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39433 \begin_layout Plain Layout
39435 \begin_inset space \thinspace{}
39439 \begin_inset space \thinspace{}
39449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39452 \begin_layout Plain Layout
39458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39461 \begin_layout Plain Layout
39462 scaled point (65536
39463 \begin_inset space \thinspace{}
39467 \begin_inset space \thinspace{}
39477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39480 \begin_layout Plain Layout
39486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39489 \begin_layout Plain Layout
39491 \begin_inset space \thinspace{}
39495 \begin_inset space \thinspace{}
39505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39508 \begin_layout Plain Layout
39514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39517 \begin_layout Plain Layout
39519 \begin_inset space \thinspace{}
39523 \begin_inset Formula $\approx$
39527 \begin_inset space \thinspace{}
39537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39540 \begin_layout Plain Layout
39546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39549 \begin_layout Plain Layout
39551 \begin_inset space \thinspace{}
39555 \begin_inset space \thinspace{}
39565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39568 \begin_layout Plain Layout
39574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39577 \begin_layout Plain Layout
39578 % of original image width
39585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39588 \begin_layout Plain Layout
39594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39597 \begin_layout Plain Layout
39605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39608 \begin_layout Plain Layout
39614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39617 \begin_layout Plain Layout
39625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39628 \begin_layout Plain Layout
39634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39637 \begin_layout Plain Layout
39645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39648 \begin_layout Plain Layout
39654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39657 \begin_layout Plain Layout
39665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39668 \begin_layout Plain Layout
39674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39677 \begin_layout Plain Layout
39685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39688 \begin_layout Plain Layout
39694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39697 \begin_layout Plain Layout
39705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39708 \begin_layout Plain Layout
39714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39717 \begin_layout Plain Layout
39729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39732 \begin_layout Plain Layout
39738 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39741 \begin_layout Plain Layout
39753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39756 \begin_layout Plain Layout
39762 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39765 \begin_layout Plain Layout
39767 \begin_inset space \thinspace{}
39771 \begin_inset space \thinspace{}
39792 \begin_layout Chapter
39793 Output File Formats with Graphics
39794 \begin_inset CommandInset label
39796 name "cha:Output-File-Formats"
39803 \begin_layout Section
39805 \begin_inset Index idx
39808 \begin_layout Plain Layout
39815 \begin_inset Index idx
39818 \begin_layout Plain Layout
39823 \begin_layout Plain Layout
39834 \begin_layout Plain Layout
39849 \begin_layout Standard
39850 This file type has the extension
39851 \begin_inset Quotes eld
39859 \begin_inset Quotes erd
39864 \begin_inset Quotes eld
39868 \begin_inset Quotes erd
39871 (DVI), because it is completely portable; you can move them from one machine
39872 to another without needing to do any sort of conversion.
39873 At the time when this file-format was developed, this was no matter of
39875 DVIs are used for quick previews and as pre-stage for other output formats,
39879 \begin_layout Standard
39880 \begin_inset Note Greyedout
39883 \begin_layout Plain Layout
39888 DVI-files do not contain images; they will only be a linked.
39893 So don't forget this, if you move your
39897 file to another computer.
39898 This property can also slow down your computer when you view the DVI, because
39899 the DVI-viewer has to convert the image in the background to make it visible
39900 when you scroll in the DVI.
39901 So it is recommended that you use PDF for files with many images.
39904 \begin_layout Standard
39905 You can export your document to DVI by using the menu
39907 File\SpecialChar \menuseparator
39908 Export\SpecialChar \menuseparator
39912 You can view your document as DVI via the
39919 \begin_layout Section
39921 \begin_inset CommandInset label
39923 name "sec:PostScript"
39928 \begin_inset Index idx
39931 \begin_layout Plain Layout
39932 File Formats ! PostScript
39938 \begin_inset Index idx
39941 \begin_layout Plain Layout
39946 \begin_layout Plain Layout
39957 \begin_layout Plain Layout
39972 \begin_layout Standard
39973 This file type has the extension
39974 \begin_inset Quotes eld
39982 \begin_inset Quotes erd
39986 PostScript was developed by the company
39990 as a printer language.
39991 The file therefore contains commands that the printer uses to print the
39993 PostScript can be seen as a
39994 \begin_inset Quotes eld
39997 programming language
39998 \begin_inset Quotes erd
40001 ; you can calculate with it and draw diagrams and images
40005 \begin_layout Plain Layout
40006 If you are interested to learn more about this, have a look at the LaTeX-package
40012 \begin_inset CommandInset citation
40024 Due to this ability, the files are often bigger than PDFs.
40027 \begin_layout Standard
40028 PostScript can only contain images in the format
40029 \begin_inset Quotes eld
40032 Encapsulated PostScript
40033 \begin_inset Quotes erd
40036 (EPS, file extension
40037 \begin_inset Quotes eld
40045 \begin_inset Quotes erd
40049 As LyX allows you to use any known image format in your document, it has
40050 to convert images in the background to EPS.
40052 \begin_inset space ~
40056 \begin_inset space ~
40059 images in your document, LyX has to do 50
40060 \begin_inset space ~
40063 conversions whenever you view or export your document.
40064 This will slow down your work flow with LyX drastically.
40065 So if you plan to use PostScript, you can insert your images directly as
40066 EPS to avoid this problem.
40069 \begin_layout Standard
40070 You can export your document to PostScript using the menu
40072 File\SpecialChar \menuseparator
40073 Export\SpecialChar \menuseparator
40077 You can view your document as PostScript via the
40081 menu or by using the toolbar button
40082 \begin_inset Graphics
40083 filename ../images/buffer-view_ps.png
40085 scaleBeforeRotation
40092 \begin_layout Section
40094 \begin_inset Index idx
40097 \begin_layout Plain Layout
40104 \begin_inset Index idx
40107 \begin_layout Plain Layout
40116 \begin_layout Standard
40117 This file type has the extension
40118 \begin_inset Quotes eld
40126 \begin_inset Quotes erd
40131 \begin_inset Quotes eld
40134 Portable Document Format
40135 \begin_inset Quotes erd
40138 (PDF) was developed by
40142 as a derivative of PostScript.
40143 It is more compressed and it uses fewer commands than PostScript.
40145 \begin_inset Quotes eld
40149 \begin_inset Quotes erd
40152 implies, it can be processed at any computer system and the printed output
40153 looks exactly the same.
40156 \begin_layout Standard
40157 PDF can contain images in its own PDF format, in the format
40158 \begin_inset Quotes eld
40161 Joint Photographic Experts Group
40162 \begin_inset Quotes erd
40165 (JPG, file extension
40166 \begin_inset Quotes eld
40174 \begin_inset Quotes erd
40178 \begin_inset Quotes eld
40186 \begin_inset Quotes erd
40189 ), and in the format
40190 \begin_inset Quotes eld
40193 Portable Network Graphics
40194 \begin_inset Quotes erd
40197 (PNG, file extension
40198 \begin_inset Quotes eld
40206 \begin_inset Quotes erd
40210 Nevertheless you can use any other image format, because LyX converts them
40211 in the background to one of these formats.
40212 But as described in the section about PostScript, the image conversion
40213 will slow down your work flow.
40214 So it is recommended that you use images in one of the three mentioned
40218 \begin_layout Standard
40219 You can export your document to PDF via the menu
40221 File\SpecialChar \menuseparator
40224 in three different ways:
40227 \begin_layout Description
40229 \begin_inset space ~
40232 (ps2pdf) This uses the program
40236 that creates a PDF from a PostScript-version of your file.
40237 The PostScript-version is produced by the program
40241 which uses a DVI-version as intermediate step.
40242 So this export variant consists of three conversions.
40245 \begin_layout Description
40247 \begin_inset space ~
40250 (dvipdfm) This uses the program
40254 that converts your file in the background to DVI and in a second step to
40258 \begin_layout Description
40260 \begin_inset space ~
40263 (pdflatex) This uses the program
40267 that converts your file directly to PDF.
40270 \begin_layout Standard
40271 It is recommended that you use
40274 \begin_inset space ~
40283 supports all features of actual PDF-versions, is quick and works stable.
40288 is not under development and therefore a bit outdated.
40291 \begin_layout Standard
40292 You can view your document as PDF via the
40296 menu or by using the toolbar button
40297 \begin_inset Graphics
40298 filename ../images/buffer-view_pdf2.png
40300 scaleBeforeRotation
40311 \begin_inset space ~
40319 \begin_layout Chapter
40320 List of dvips color names
40321 \begin_inset CommandInset label
40323 name "chap:List-of-dvips-colornames"
40330 \begin_layout Standard
40331 \begin_inset Tabular
40332 <lyxtabular version="3" rows="17" columns="4">
40333 <features tabularvalignment="middle">
40334 <column alignment="left" valignment="top" width="0pt">
40335 <column alignment="left" valignment="top" width="0pt">
40336 <column alignment="left" valignment="top" width="0pt">
40337 <column alignment="left" valignment="top" width="0pt">
40339 <cell alignment="left" valignment="top" usebox="none">
40342 \begin_layout Plain Layout
40346 \begin_layout Plain Layout
40359 \begin_layout Plain Layout
40370 \begin_layout Plain Layout
40382 <cell alignment="left" valignment="top" usebox="none">
40385 \begin_layout Plain Layout
40389 \begin_layout Plain Layout
40402 \begin_layout Plain Layout
40413 \begin_layout Plain Layout
40425 <cell alignment="left" valignment="top" usebox="none">
40428 \begin_layout Plain Layout
40432 \begin_layout Plain Layout
40445 \begin_layout Plain Layout
40456 \begin_layout Plain Layout
40468 <cell alignment="left" valignment="top" usebox="none">
40471 \begin_layout Plain Layout
40475 \begin_layout Plain Layout
40488 \begin_layout Plain Layout
40499 \begin_layout Plain Layout
40513 <cell alignment="center" valignment="top" usebox="none">
40516 \begin_layout Plain Layout
40520 \begin_layout Plain Layout
40533 \begin_layout Plain Layout
40541 \begin_inset Phantom Phantom
40544 \begin_layout Plain Layout
40554 \begin_layout Plain Layout
40566 <cell alignment="center" valignment="top" usebox="none">
40569 \begin_layout Plain Layout
40573 \begin_layout Plain Layout
40586 \begin_layout Plain Layout
40594 \begin_inset Phantom Phantom
40597 \begin_layout Plain Layout
40607 \begin_layout Plain Layout
40619 <cell alignment="center" valignment="top" usebox="none">
40622 \begin_layout Plain Layout
40626 \begin_layout Plain Layout
40639 \begin_layout Plain Layout
40647 \begin_inset Phantom Phantom
40650 \begin_layout Plain Layout
40660 \begin_layout Plain Layout
40672 <cell alignment="center" valignment="top" usebox="none">
40675 \begin_layout Plain Layout
40679 \begin_layout Plain Layout
40692 \begin_layout Plain Layout
40700 \begin_inset Phantom Phantom
40703 \begin_layout Plain Layout
40713 \begin_layout Plain Layout
40727 <cell alignment="left" valignment="top" usebox="none">
40730 \begin_layout Plain Layout
40734 \begin_layout Plain Layout
40747 \begin_layout Plain Layout
40755 \begin_inset Phantom Phantom
40758 \begin_layout Plain Layout
40768 \begin_layout Plain Layout
40780 <cell alignment="left" valignment="top" usebox="none">
40783 \begin_layout Plain Layout
40787 \begin_layout Plain Layout
40800 \begin_layout Plain Layout
40808 \begin_inset Phantom Phantom
40811 \begin_layout Plain Layout
40821 \begin_layout Plain Layout
40833 <cell alignment="left" valignment="top" usebox="none">
40836 \begin_layout Plain Layout
40840 \begin_layout Plain Layout
40853 \begin_layout Plain Layout
40861 \begin_inset Phantom Phantom
40864 \begin_layout Plain Layout
40874 \begin_layout Plain Layout
40886 <cell alignment="left" valignment="top" usebox="none">
40889 \begin_layout Plain Layout
40893 \begin_layout Plain Layout
40906 \begin_layout Plain Layout
40914 \begin_inset Phantom Phantom
40917 \begin_layout Plain Layout
40927 \begin_layout Plain Layout
40941 <cell alignment="left" valignment="top" usebox="none">
40944 \begin_layout Plain Layout
40948 \begin_layout Plain Layout
40961 \begin_layout Plain Layout
40969 \begin_inset Phantom Phantom
40972 \begin_layout Plain Layout
40982 \begin_layout Plain Layout
40994 <cell alignment="left" valignment="top" usebox="none">
40997 \begin_layout Plain Layout
41001 \begin_layout Plain Layout
41014 \begin_layout Plain Layout
41022 \begin_inset Phantom Phantom
41025 \begin_layout Plain Layout
41035 \begin_layout Plain Layout
41047 <cell alignment="left" valignment="top" usebox="none">
41050 \begin_layout Plain Layout
41054 \begin_layout Plain Layout
41067 \begin_layout Plain Layout
41075 \begin_inset Phantom Phantom
41078 \begin_layout Plain Layout
41088 \begin_layout Plain Layout
41100 <cell alignment="left" valignment="top" usebox="none">
41103 \begin_layout Plain Layout
41107 \begin_layout Plain Layout
41120 \begin_layout Plain Layout
41128 \begin_inset Phantom Phantom
41131 \begin_layout Plain Layout
41141 \begin_layout Plain Layout
41155 <cell alignment="left" valignment="top" usebox="none">
41158 \begin_layout Plain Layout
41162 \begin_layout Plain Layout
41175 \begin_layout Plain Layout
41183 \begin_inset Phantom Phantom
41186 \begin_layout Plain Layout
41196 \begin_layout Plain Layout
41208 <cell alignment="left" valignment="top" usebox="none">
41211 \begin_layout Plain Layout
41215 \begin_layout Plain Layout
41228 \begin_layout Plain Layout
41236 \begin_inset Phantom Phantom
41239 \begin_layout Plain Layout
41249 \begin_layout Plain Layout
41261 <cell alignment="left" valignment="top" usebox="none">
41264 \begin_layout Plain Layout
41268 \begin_layout Plain Layout
41281 \begin_layout Plain Layout
41289 \begin_inset Phantom Phantom
41292 \begin_layout Plain Layout
41302 \begin_layout Plain Layout
41314 <cell alignment="left" valignment="top" usebox="none">
41317 \begin_layout Plain Layout
41321 \begin_layout Plain Layout
41334 \begin_layout Plain Layout
41342 \begin_inset Phantom Phantom
41345 \begin_layout Plain Layout
41355 \begin_layout Plain Layout
41369 <cell alignment="left" valignment="top" usebox="none">
41372 \begin_layout Plain Layout
41376 \begin_layout Plain Layout
41389 \begin_layout Plain Layout
41397 \begin_inset Phantom Phantom
41400 \begin_layout Plain Layout
41410 \begin_layout Plain Layout
41422 <cell alignment="left" valignment="top" usebox="none">
41425 \begin_layout Plain Layout
41429 \begin_layout Plain Layout
41442 \begin_layout Plain Layout
41450 \begin_inset Phantom Phantom
41453 \begin_layout Plain Layout
41463 \begin_layout Plain Layout
41475 <cell alignment="left" valignment="top" usebox="none">
41478 \begin_layout Plain Layout
41482 \begin_layout Plain Layout
41495 \begin_layout Plain Layout
41503 \begin_inset Phantom Phantom
41506 \begin_layout Plain Layout
41516 \begin_layout Plain Layout
41528 <cell alignment="left" valignment="top" usebox="none">
41531 \begin_layout Plain Layout
41535 \begin_layout Plain Layout
41548 \begin_layout Plain Layout
41556 \begin_inset Phantom Phantom
41559 \begin_layout Plain Layout
41569 \begin_layout Plain Layout
41583 <cell alignment="center" valignment="top" usebox="none">
41586 \begin_layout Plain Layout
41590 \begin_layout Plain Layout
41603 \begin_layout Plain Layout
41611 \begin_inset Phantom Phantom
41614 \begin_layout Plain Layout
41624 \begin_layout Plain Layout
41636 <cell alignment="center" valignment="top" usebox="none">
41639 \begin_layout Plain Layout
41643 \begin_layout Plain Layout
41656 \begin_layout Plain Layout
41664 \begin_inset Phantom Phantom
41667 \begin_layout Plain Layout
41677 \begin_layout Plain Layout
41689 <cell alignment="center" valignment="top" usebox="none">
41692 \begin_layout Plain Layout
41696 \begin_layout Plain Layout
41709 \begin_layout Plain Layout
41717 \begin_inset Phantom Phantom
41720 \begin_layout Plain Layout
41730 \begin_layout Plain Layout
41742 <cell alignment="center" valignment="top" usebox="none">
41745 \begin_layout Plain Layout
41749 \begin_layout Plain Layout
41762 \begin_layout Plain Layout
41770 \begin_inset Phantom Phantom
41773 \begin_layout Plain Layout
41783 \begin_layout Plain Layout
41797 <cell alignment="left" valignment="top" usebox="none">
41800 \begin_layout Plain Layout
41804 \begin_layout Plain Layout
41817 \begin_layout Plain Layout
41825 \begin_inset Phantom Phantom
41828 \begin_layout Plain Layout
41838 \begin_layout Plain Layout
41850 <cell alignment="left" valignment="top" usebox="none">
41853 \begin_layout Plain Layout
41857 \begin_layout Plain Layout
41870 \begin_layout Plain Layout
41878 \begin_inset Phantom Phantom
41881 \begin_layout Plain Layout
41891 \begin_layout Plain Layout
41903 <cell alignment="left" valignment="top" usebox="none">
41906 \begin_layout Plain Layout
41910 \begin_layout Plain Layout
41923 \begin_layout Plain Layout
41931 \begin_inset Phantom Phantom
41934 \begin_layout Plain Layout
41944 \begin_layout Plain Layout
41956 <cell alignment="left" valignment="top" usebox="none">
41959 \begin_layout Plain Layout
41963 \begin_layout Plain Layout
41976 \begin_layout Plain Layout
41984 \begin_inset Phantom Phantom
41987 \begin_layout Plain Layout
41997 \begin_layout Plain Layout
42011 <cell alignment="left" valignment="top" usebox="none">
42014 \begin_layout Plain Layout
42018 \begin_layout Plain Layout
42031 \begin_layout Plain Layout
42039 \begin_inset Phantom Phantom
42042 \begin_layout Plain Layout
42052 \begin_layout Plain Layout
42064 <cell alignment="left" valignment="top" usebox="none">
42067 \begin_layout Plain Layout
42071 \begin_layout Plain Layout
42084 \begin_layout Plain Layout
42092 \begin_inset Phantom Phantom
42095 \begin_layout Plain Layout
42105 \begin_layout Plain Layout
42117 <cell alignment="left" valignment="top" usebox="none">
42120 \begin_layout Plain Layout
42124 \begin_layout Plain Layout
42137 \begin_layout Plain Layout
42145 \begin_inset Phantom Phantom
42148 \begin_layout Plain Layout
42158 \begin_layout Plain Layout
42170 <cell alignment="left" valignment="top" usebox="none">
42173 \begin_layout Plain Layout
42177 \begin_layout Plain Layout
42190 \begin_layout Plain Layout
42198 \begin_inset Phantom Phantom
42201 \begin_layout Plain Layout
42211 \begin_layout Plain Layout
42225 <cell alignment="left" valignment="top" usebox="none">
42228 \begin_layout Plain Layout
42232 \begin_layout Plain Layout
42245 \begin_layout Plain Layout
42253 \begin_inset Phantom Phantom
42256 \begin_layout Plain Layout
42266 \begin_layout Plain Layout
42278 <cell alignment="left" valignment="top" usebox="none">
42281 \begin_layout Plain Layout
42285 \begin_layout Plain Layout
42298 \begin_layout Plain Layout
42306 \begin_inset Phantom Phantom
42309 \begin_layout Plain Layout
42319 \begin_layout Plain Layout
42331 <cell alignment="left" valignment="top" usebox="none">
42334 \begin_layout Plain Layout
42338 \begin_layout Plain Layout
42351 \begin_layout Plain Layout
42359 \begin_inset Phantom Phantom
42362 \begin_layout Plain Layout
42372 \begin_layout Plain Layout
42384 <cell alignment="left" valignment="top" usebox="none">
42387 \begin_layout Plain Layout
42391 \begin_layout Plain Layout
42404 \begin_layout Plain Layout
42412 \begin_inset Phantom Phantom
42415 \begin_layout Plain Layout
42425 \begin_layout Plain Layout
42439 <cell alignment="left" valignment="top" usebox="none">
42442 \begin_layout Plain Layout
42446 \begin_layout Plain Layout
42459 \begin_layout Plain Layout
42467 \begin_inset Phantom Phantom
42470 \begin_layout Plain Layout
42480 \begin_layout Plain Layout
42492 <cell alignment="left" valignment="top" usebox="none">
42495 \begin_layout Plain Layout
42499 \begin_layout Plain Layout
42512 \begin_layout Plain Layout
42520 \begin_inset Phantom Phantom
42523 \begin_layout Plain Layout
42533 \begin_layout Plain Layout
42545 <cell alignment="left" valignment="top" usebox="none">
42548 \begin_layout Plain Layout
42552 \begin_layout Plain Layout
42565 \begin_layout Plain Layout
42573 \begin_inset Phantom Phantom
42576 \begin_layout Plain Layout
42586 \begin_layout Plain Layout
42598 <cell alignment="left" valignment="top" usebox="none">
42601 \begin_layout Plain Layout
42605 \begin_layout Plain Layout
42618 \begin_layout Plain Layout
42626 \begin_inset Phantom Phantom
42629 \begin_layout Plain Layout
42639 \begin_layout Plain Layout
42653 <cell alignment="left" valignment="top" usebox="none">
42656 \begin_layout Plain Layout
42660 \begin_layout Plain Layout
42673 \begin_layout Plain Layout
42681 \begin_inset Phantom Phantom
42684 \begin_layout Plain Layout
42694 \begin_layout Plain Layout
42706 <cell alignment="left" valignment="top" usebox="none">
42709 \begin_layout Plain Layout
42713 \begin_layout Plain Layout
42726 \begin_layout Plain Layout
42734 \begin_inset Phantom Phantom
42737 \begin_layout Plain Layout
42747 \begin_layout Plain Layout
42759 <cell alignment="left" valignment="top" usebox="none">
42762 \begin_layout Plain Layout
42766 \begin_layout Plain Layout
42779 \begin_layout Plain Layout
42787 \begin_inset Phantom Phantom
42790 \begin_layout Plain Layout
42800 \begin_layout Plain Layout
42812 <cell alignment="left" valignment="top" usebox="none">
42815 \begin_layout Plain Layout
42819 \begin_layout Plain Layout
42832 \begin_layout Plain Layout
42840 \begin_inset Phantom Phantom
42843 \begin_layout Plain Layout
42853 \begin_layout Plain Layout
42867 <cell alignment="left" valignment="top" usebox="none">
42870 \begin_layout Plain Layout
42874 \begin_layout Plain Layout
42887 \begin_layout Plain Layout
42895 \begin_inset Phantom Phantom
42898 \begin_layout Plain Layout
42908 \begin_layout Plain Layout
42920 <cell alignment="left" valignment="top" usebox="none">
42923 \begin_layout Plain Layout
42927 \begin_layout Plain Layout
42940 \begin_layout Plain Layout
42948 \begin_inset Phantom Phantom
42951 \begin_layout Plain Layout
42961 \begin_layout Plain Layout
42973 <cell alignment="left" valignment="top" usebox="none">
42976 \begin_layout Plain Layout
42980 \begin_layout Plain Layout
42993 \begin_layout Plain Layout
43001 \begin_inset Phantom Phantom
43004 \begin_layout Plain Layout
43014 \begin_layout Plain Layout
43026 <cell alignment="left" valignment="top" usebox="none">
43029 \begin_layout Plain Layout
43033 \begin_layout Plain Layout
43046 \begin_layout Plain Layout
43054 \begin_inset Phantom Phantom
43057 \begin_layout Plain Layout
43067 \begin_layout Plain Layout
43081 <cell alignment="left" valignment="top" usebox="none">
43084 \begin_layout Plain Layout
43088 \begin_layout Plain Layout
43101 \begin_layout Plain Layout
43109 \begin_inset Phantom Phantom
43112 \begin_layout Plain Layout
43122 \begin_layout Plain Layout
43134 <cell alignment="left" valignment="top" usebox="none">
43137 \begin_layout Plain Layout
43141 \begin_layout Plain Layout
43154 \begin_layout Plain Layout
43162 \begin_inset Phantom Phantom
43165 \begin_layout Plain Layout
43175 \begin_layout Plain Layout
43187 <cell alignment="left" valignment="top" usebox="none">
43190 \begin_layout Plain Layout
43194 \begin_layout Plain Layout
43207 \begin_layout Plain Layout
43215 \begin_inset Phantom Phantom
43218 \begin_layout Plain Layout
43228 \begin_layout Plain Layout
43240 <cell alignment="left" valignment="top" usebox="none">
43243 \begin_layout Plain Layout
43247 \begin_layout Plain Layout
43260 \begin_layout Plain Layout
43268 \begin_inset Phantom Phantom
43271 \begin_layout Plain Layout
43281 \begin_layout Plain Layout
43295 <cell alignment="left" valignment="top" usebox="none">
43298 \begin_layout Plain Layout
43302 \begin_layout Plain Layout
43315 \begin_layout Plain Layout
43323 \begin_inset Phantom Phantom
43326 \begin_layout Plain Layout
43336 \begin_layout Plain Layout
43348 <cell alignment="left" valignment="top" usebox="none">
43351 \begin_layout Plain Layout
43355 \begin_layout Plain Layout
43368 \begin_layout Plain Layout
43376 \begin_inset Phantom Phantom
43379 \begin_layout Plain Layout
43389 \begin_layout Plain Layout
43401 <cell alignment="left" valignment="top" usebox="none">
43404 \begin_layout Plain Layout
43408 \begin_layout Plain Layout
43421 \begin_layout Plain Layout
43429 \begin_inset Phantom Phantom
43432 \begin_layout Plain Layout
43442 \begin_layout Plain Layout
43454 <cell alignment="left" valignment="top" usebox="none">
43457 \begin_layout Plain Layout
43461 \begin_layout Plain Layout
43474 \begin_layout Plain Layout
43482 \begin_inset Phantom Phantom
43485 \begin_layout Plain Layout
43495 \begin_layout Plain Layout
43509 <cell alignment="left" valignment="top" usebox="none">
43512 \begin_layout Plain Layout
43516 \begin_layout Plain Layout
43529 \begin_layout Plain Layout
43537 \begin_inset Phantom Phantom
43540 \begin_layout Plain Layout
43550 \begin_layout Plain Layout
43562 <cell alignment="left" valignment="top" usebox="none">
43565 \begin_layout Plain Layout
43569 \begin_layout Plain Layout
43582 \begin_layout Plain Layout
43590 \begin_inset Phantom Phantom
43593 \begin_layout Plain Layout
43603 \begin_layout Plain Layout
43615 <cell alignment="left" valignment="top" usebox="none">
43618 \begin_layout Plain Layout
43622 \begin_layout Plain Layout
43635 \begin_layout Plain Layout
43643 \begin_inset Phantom Phantom
43646 \begin_layout Plain Layout
43656 \begin_layout Plain Layout
43668 <cell alignment="left" valignment="top" usebox="none">
43671 \begin_layout Plain Layout
43675 \begin_layout Plain Layout
43688 \begin_layout Plain Layout
43696 \begin_inset Phantom Phantom
43699 \begin_layout Plain Layout
43709 \begin_layout Plain Layout
43723 <cell alignment="left" valignment="top" usebox="none">
43726 \begin_layout Plain Layout
43730 \begin_layout Plain Layout
43743 \begin_layout Plain Layout
43751 \begin_inset Phantom Phantom
43754 \begin_layout Plain Layout
43764 \begin_layout Plain Layout
43776 <cell alignment="left" valignment="top" usebox="none">
43779 \begin_layout Plain Layout
43785 <cell alignment="left" valignment="top" usebox="none">
43788 \begin_layout Plain Layout
43794 <cell alignment="left" valignment="top" usebox="none">
43797 \begin_layout Plain Layout
43811 \begin_layout Chapter
43812 Explanation of Equation
43813 \begin_inset space ~
43817 \begin_inset CommandInset ref
43824 \begin_inset CommandInset label
43826 name "cha:Explanation-of-Equation"
43833 \begin_layout Standard
43834 We can calculate the total width of
43839 \begin_inset Formula $W_{\mathrm{tot\, n}}$
43843 \begin_inset Formula
43845 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
43851 \begin_inset Formula $W_{g\, n}$
43854 is the given width of all cells,
43860 is the LaTeX-length between the cell text and the cell border (its default
43862 \begin_inset space \thinspace{}
43872 is the thickness of the cell border line, the default is 0.4
43873 \begin_inset space \thinspace{}
43879 \begin_layout Standard
43881 \begin_inset space ~
43885 \begin_inset CommandInset ref
43887 reference "eq:Wtot_n"
43891 , the total width of a multicolumn
43892 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
43896 \begin_inset Formula
43898 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
43906 \begin_layout Standard
43907 By setting equation
43908 \begin_inset space ~
43912 \begin_inset CommandInset ref
43914 reference "eq:Wtot_n"
43919 \begin_inset CommandInset ref
43921 reference "eq:Wtot_mult"
43925 equal we can calculate the needed given width
43926 \begin_inset Formula $W_{g\, n}$
43933 columns are spanned, so that each column has a total width of
43934 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
43938 \begin_inset Formula
43940 W_{g\, n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
43948 \begin_layout Bibliography
43949 \labelwidthstring Bibliography
43950 \begin_inset CommandInset bibitem
43951 LatexCommand bibitem
43952 key "latexcompanion"
43956 Frank Mittelbach and Michel Goossens:
43958 The LaTeX Companion Second Edition.
43961 Addison-Wesley, 2004
43964 \begin_layout Bibliography
43965 \labelwidthstring Bibliography
43966 \begin_inset CommandInset bibitem
43967 LatexCommand bibitem
43972 Helmut Kopka and Patrick W.
43975 A Guide to LaTeX Fourth Edition.
43978 Addison-Wesley, 2003
43981 \begin_layout Bibliography
43982 \labelwidthstring Bibliography
43983 \begin_inset CommandInset bibitem
43984 LatexCommand bibitem
43991 LaTeX: A Document Preparation System.
43994 Addison-Wesley, second edition, 1994
43997 \begin_layout Bibliography
43998 \labelwidthstring Bibliography
43999 \begin_inset CommandInset bibitem
44000 LatexCommand bibitem
44005 Documentation of the LaTeX-package
44008 \begin_inset CommandInset href
44011 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
44018 \begin_inset Index idx
44021 \begin_layout Plain Layout
44022 LaTeX-packages ! arydshln
44030 \begin_layout Bibliography
44031 \labelwidthstring Bibliography
44032 \begin_inset CommandInset bibitem
44033 LatexCommand bibitem
44038 Documentation of the LaTeX-package
44041 \begin_inset CommandInset href
44044 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
44051 \begin_inset Index idx
44054 \begin_layout Plain Layout
44055 LaTeX-packages ! booktabs
44063 \begin_layout Bibliography
44064 \labelwidthstring Bibliography
44065 \begin_inset CommandInset bibitem
44066 LatexCommand bibitem
44071 Documentation of the LaTeX-package
44074 \begin_inset CommandInset href
44077 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
44084 \begin_inset Index idx
44087 \begin_layout Plain Layout
44088 LaTeX-packages ! caption
44096 \begin_layout Bibliography
44097 \labelwidthstring Bibliography
44098 \begin_inset CommandInset bibitem
44099 LatexCommand bibitem
44104 Documentation of the LaTeX-package
44107 \begin_inset CommandInset href
44110 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
44117 \begin_inset Index idx
44120 \begin_layout Plain Layout
44121 LaTeX-packages ! diagbox
44129 \begin_layout Bibliography
44130 \labelwidthstring Bibliography
44131 \begin_inset CommandInset bibitem
44132 LatexCommand bibitem
44137 Documentation of the LaTeX-package
44140 \begin_inset CommandInset href
44143 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
44150 \begin_inset Index idx
44153 \begin_layout Plain Layout
44154 LaTeX-packages ! endfloat
44162 \begin_layout Bibliography
44163 \labelwidthstring Bibliography
44164 \begin_inset CommandInset bibitem
44165 LatexCommand bibitem
44170 Documentation of the LaTeX-package
44173 \begin_inset CommandInset href
44176 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
44183 \begin_inset Index idx
44186 \begin_layout Plain Layout
44187 LaTeX-packages ! footmisc
44195 \begin_layout Bibliography
44196 \labelwidthstring Bibliography
44197 \begin_inset CommandInset bibitem
44198 LatexCommand bibitem
44203 Documentation of the LaTeX-package
44206 \begin_inset CommandInset href
44209 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
44216 \begin_inset Index idx
44219 \begin_layout Plain Layout
44220 LaTeX-packages ! hyperref
44228 \begin_layout Bibliography
44229 \labelwidthstring Bibliography
44230 \begin_inset CommandInset bibitem
44231 LatexCommand bibitem
44236 Documentation of the LaTeX-package
44239 \begin_inset CommandInset href
44242 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
44249 \begin_inset Index idx
44252 \begin_layout Plain Layout
44253 LaTeX-packages ! hyperref
44261 \begin_layout Bibliography
44262 \labelwidthstring Bibliography
44263 \begin_inset CommandInset bibitem
44264 LatexCommand bibitem
44269 Documentation of the LaTeX-package
44272 \begin_inset CommandInset href
44275 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
44282 \begin_inset Index idx
44285 \begin_layout Plain Layout
44286 LaTeX-packages ! KOMA-Script
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 "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
44315 \begin_inset CommandInset href
44318 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
44323 \begin_inset Index idx
44326 \begin_layout Plain Layout
44327 LaTeX-packages ! lettrine
44335 \begin_layout Bibliography
44336 \labelwidthstring Bibliography
44337 \begin_inset CommandInset bibitem
44338 LatexCommand bibitem
44343 Documentation of the LaTeX-package
44346 \begin_inset CommandInset href
44349 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
44356 \begin_inset Index idx
44359 \begin_layout Plain Layout
44360 LaTeX-packages ! listings
44368 \begin_layout Bibliography
44369 \labelwidthstring Bibliography
44370 \begin_inset CommandInset bibitem
44371 LatexCommand bibitem
44376 Documentation of the LaTeX-package
44379 \begin_inset CommandInset href
44382 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
44389 \begin_inset Index idx
44392 \begin_layout Plain Layout
44393 LaTeX-packages ! marginnote
44401 \begin_layout Bibliography
44402 \labelwidthstring Bibliography
44403 \begin_inset CommandInset bibitem
44404 LatexCommand bibitem
44409 Documentation of the LaTeX-package
44412 \begin_inset CommandInset href
44415 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
44422 \begin_inset Index idx
44425 \begin_layout Plain Layout
44426 LaTeX-packages ! pdfpages
44434 \begin_layout Bibliography
44435 \labelwidthstring Bibliography
44436 \begin_inset CommandInset bibitem
44437 LatexCommand bibitem
44442 Documentation of the LaTeX-package
44445 \begin_inset CommandInset href
44448 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
44455 \begin_inset Index idx
44458 \begin_layout Plain Layout
44459 LaTeX-packages ! prettyref
44467 \begin_layout Bibliography
44468 \labelwidthstring Bibliography
44469 \begin_inset CommandInset bibitem
44470 LatexCommand bibitem
44475 Web page of the LaTeX-package
44478 \begin_inset CommandInset href
44481 target "http://tug.org/PSTricks/"
44488 \begin_inset Index idx
44491 \begin_layout Plain Layout
44492 LaTeX-packages ! PSTricks
44500 \begin_layout Bibliography
44501 \labelwidthstring Bibliography
44502 \begin_inset CommandInset bibitem
44503 LatexCommand bibitem
44508 Documentation of the LaTeX-package
44511 \begin_inset CommandInset href
44514 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
44521 \begin_inset Index idx
44524 \begin_layout Plain Layout
44525 LaTeX-packages ! refstyle
44533 \begin_layout Bibliography
44534 \labelwidthstring Bibliography
44535 \begin_inset CommandInset bibitem
44536 LatexCommand bibitem
44541 Documentation of the LaTeX-package
44544 \begin_inset CommandInset href
44547 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
44554 \begin_inset Index idx
44557 \begin_layout Plain Layout
44558 LaTeX-packages ! sidecap
44566 \begin_layout Bibliography
44567 \labelwidthstring Bibliography
44568 \begin_inset CommandInset bibitem
44569 LatexCommand bibitem
44575 \begin_inset CommandInset href
44578 target "http://wiki.lyx.org/LyX/NewInLyX20"
44582 about new features in
44589 \begin_layout Standard
44590 \begin_inset CommandInset index_print
44591 LatexCommand printindex