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.
32967 \begin_layout Standard
32968 \begin_inset VSpace bigskip
32971 The document-wide paragraph settings are ignored within minipages.
32972 That means that there will be no space between paragraphs in minipages
32973 although you set it to e.
32974 \begin_inset space \thinspace{}
32978 \begin_inset space \space{}
32985 in the document settings.
32988 \begin_layout Standard
32989 Minipages can also be used to set a background color for text parts, see
32991 \begin_inset space ~
32995 \begin_inset CommandInset ref
32997 reference "sub:Color-for-Paragraphs"
33004 \begin_layout Standard
33005 \begin_inset Note Greyedout
33008 \begin_layout Plain Layout
33013 You cannot have floats or margin notes inside minipages but minipages can
33014 be used inside tables, floats, and other boxes.
33022 \begin_layout Section
33024 \begin_inset CommandInset label
33026 name "sec:Parboxes"
33031 \begin_inset Index idx
33034 \begin_layout Plain Layout
33043 \begin_layout Standard
33044 Parboxes are very similar to minipages with the difference that they cannot
33048 \begin_layout Standard
33050 \begin_inset Box Frameless
33060 height_special "totalheight"
33063 \begin_layout Plain Layout
33064 This a text within a parbox.
33065 This a text within a parbox.
33068 \begin_layout Plain Layout
33069 This footnote won't appear:
33073 \begin_layout Plain Layout
33074 This footnote is inside a parbox and will therefore not appear.
33087 \begin_layout Section
33088 Boxes for Words and Characters
33089 \begin_inset Index idx
33092 \begin_layout Plain Layout
33093 Boxes ! for Characters
33101 \begin_layout Subsection
33102 Prevent Hyphenation
33103 \begin_inset CommandInset label
33105 name "sec:Prevent-Hyphenation"
33110 \begin_inset Index idx
33113 \begin_layout Plain Layout
33114 Boxes ! to Prevent Hyphenation
33122 \begin_layout Standard
33123 You can use the box type
33127 to prevent words or text from being hyphenated.
33128 \begin_inset Newline newline
33131 Here is an example text:
33134 \begin_layout Standard
33135 This line is an example to show how you can prevent the hyphenation of
33136 \begin_inset Quotes eld
33140 \begin_inset Quotes erd
33146 \begin_layout Standard
33147 To prevent the hyphenation of the word
33148 \begin_inset Quotes eld
33152 \begin_inset Quotes erd
33155 , put the word into a box, set the
33158 \begin_inset space ~
33168 \begin_inset space \thinspace{}
33174 \begin_layout Standard
33175 This is the result:
33178 \begin_layout Standard
33179 This line is an example to show how you can prevent the hyphenation of
33180 \begin_inset Box Frameless
33190 height_special "totalheight"
33193 \begin_layout Plain Layout
33194 \begin_inset Quotes eld
33198 \begin_inset Quotes erd
33209 \begin_layout Standard
33210 You can alternatively set the command
33211 \begin_inset Quotes eld
33221 \begin_inset Quotes grd
33224 as TeX-Code directly before the word:
33227 \begin_layout Standard
33228 This line is an example to show how you can prevent the hyphenation of
33229 \begin_inset Quotes eld
33236 \begin_layout Plain Layout
33246 \begin_inset Quotes erd
33252 \begin_layout Standard
33253 Of course the word now protrudes over the side margin.
33254 To avoid this, add via the menu
33256 Insert\SpecialChar \menuseparator
33257 Formatting\SpecialChar \menuseparator
33259 \begin_inset space ~
33263 \begin_inset space ~
33271 arg "newline-insert newline"
33274 ) a line break before the word:
33277 \begin_layout Standard
33278 This line is an example to show how you can prevent the hyphenation of
33279 \begin_inset Newline newline
33283 \begin_inset Box Frameless
33293 height_special "totalheight"
33296 \begin_layout Plain Layout
33297 \begin_inset Quotes eld
33301 \begin_inset Quotes erd
33312 \begin_layout Subsection
33314 \begin_inset CommandInset label
33316 name "sub:Vertical-Alignment"
33321 \begin_inset Index idx
33324 \begin_layout Plain Layout
33325 Boxes ! for Vertical Alignment
33331 \begin_inset Index idx
33334 \begin_layout Plain Layout
33343 \begin_layout Standard
33344 With the help of the command
33350 you can align words, characters or other boxes vertically relative to the
33358 is used with the following scheme:
33361 \begin_layout Standard
33366 raisebox{lift}[height][depth]{box content}
33369 \begin_layout Standard
33370 The lift can be a positive value to raise the box or a negative value to
33374 \begin_layout Standard
33375 To align for example the word
33376 \begin_inset Quotes eld
33380 \begin_inset Quotes erd
33383 so that the bottom of the
33384 \begin_inset Quotes eld
33388 \begin_inset Quotes erd
33392 \begin_inset Quotes eld
33396 \begin_inset Quotes erd
33399 is at the baseline, insert the command
33402 \begin_layout Standard
33412 \begin_layout Standard
33413 in TeX-Code before the word.
33414 After the word insert a closing brace
33415 \begin_inset Quotes eld
33423 \begin_inset Quotes erd
33427 \begin_inset Newline newline
33430 This is the result:
33433 \begin_layout Standard
33434 This is a text line with the word
33438 \begin_layout Plain Layout
33450 \begin_inset Quotes eld
33454 \begin_inset Quotes erd
33461 \begin_layout Plain Layout
33471 \begin_layout Standard
33472 \begin_inset VSpace bigskip
33475 When you raise or lower characters in a line, the line distance will be
33479 \begin_layout Standard
33480 This is a text line with the word
33484 \begin_layout Plain Layout
33496 \begin_inset Quotes eld
33500 \begin_inset Quotes erd
33507 \begin_layout Plain Layout
33515 \begin_inset Newline newline
33518 This is a text line with the word
33522 \begin_layout Plain Layout
33532 \begin_inset Quotes eld
33536 \begin_inset Quotes erd
33543 \begin_layout Plain Layout
33553 \begin_layout Standard
33554 If you want to prevent this for a certain reason, set the box height to
33559 \begin_layout Standard
33569 \begin_layout Standard
33570 This is a text line with the word
33574 \begin_layout Plain Layout
33586 \begin_inset Quotes eld
33590 \begin_inset Quotes erd
33597 \begin_layout Plain Layout
33605 \begin_inset Newline newline
33608 This is a text line with the word
33612 \begin_layout Plain Layout
33616 raisebox{0.5cm}[0pt]{
33622 \begin_inset Quotes eld
33626 \begin_inset Quotes erd
33633 \begin_layout Plain Layout
33643 \begin_layout Section
33645 \begin_inset CommandInset label
33647 name "sec:Colored-Boxes"
33652 \begin_inset Index idx
33655 \begin_layout Plain Layout
33664 \begin_layout Subsection
33666 \begin_inset Index idx
33669 \begin_layout Plain Layout
33678 \begin_layout Standard
33679 To color the background of text the text must be put into a so called
33680 \begin_inset Quotes eld
33684 \begin_inset Quotes erd
33688 This requires that the LaTeX-package
33693 \begin_inset Index idx
33696 \begin_layout Plain Layout
33697 LaTeX-packages ! color
33702 is loaded in the document preamble with the command
33705 \begin_layout Standard
33710 @ifundefined{textcolor}
33711 \begin_inset Newline newline
33715 \begin_inset Phantom HPhantom
33718 \begin_layout Plain Layout
33721 \begin_inset space ~
33731 usepackage{color}}{}
33734 \begin_layout Standard
33739 will be loaded automatically by LyX when you color text.
33743 \begin_layout Plain Layout
33744 To avoid it being loaded twice the command
33758 \begin_layout Standard
33759 \begin_inset VSpace medskip
33762 Colorboxes are created with the command
33769 This will be used with the following scheme:
33772 \begin_layout Standard
33777 colorbox{color}{box content}
33780 \begin_layout Standard
33781 The box content can also be a box and colorboxes can also be within other
33785 \begin_layout Standard
33786 The following colors are predefined:
33787 \begin_inset Newline newline
33826 \begin_inset Newline newline
33829 You can also define your own color as described in section
33830 \begin_inset space ~
33834 \begin_inset CommandInset ref
33836 reference "sec:Colored-Tables"
33843 \begin_layout Standard
33845 \begin_inset space \thinspace{}
33849 \begin_inset space \space{}
33852 a red background for a word, insert the command
33855 \begin_layout Standard
33863 \begin_layout Standard
33864 before the word in TeX-Code.
33865 After the word insert a closing brace
33866 \begin_inset Quotes eld
33874 \begin_inset Quotes erd
33878 \begin_inset Newline newline
33881 This is the result:
33884 \begin_layout Standard
33885 This is a line where the word
33889 \begin_layout Plain Layout
33899 \begin_inset Quotes eld
33903 \begin_inset Quotes erd
33910 \begin_layout Plain Layout
33917 has a red background.
33920 \begin_layout Standard
33921 \begin_inset VSpace bigskip
33924 If you would like the box frame in a different color, you can use the command
33931 with the following scheme:
33934 \begin_layout Standard
33939 fcolorbox{frame color}{box color}{box content}
33942 \begin_layout Standard
33956 The frame thickness and the space between the frame and the box content
33957 can be adjusted with the lengths
33969 , respectively, as described in section
33970 \begin_inset space ~
33974 \begin_inset CommandInset ref
33976 reference "sec:Decoration"
33983 \begin_layout Standard
33984 For the following example the command
33987 \begin_layout Standard
33992 fcolorbox{cyan}{magenta}{
33995 \begin_layout Standard
33999 \begin_layout Standard
34000 Here is an example where the frame line thickness was set to 1
34001 \begin_inset space \thinspace{}
34005 \begin_inset Newline newline
34012 \begin_layout Plain Layout
34027 \begin_layout Plain Layout
34031 fcolorbox{cyan}{magenta}{
34036 This is text within a colored, framed box.
34040 \begin_layout Plain Layout
34050 \begin_layout Standard
34051 \begin_inset VSpace bigskip
34054 Of course you can also have colored text inside a colorbox:
34055 \begin_inset Newline newline
34062 \begin_layout Plain Layout
34066 fcolorbox{cyan}{magenta}{
34073 This is colored text within a colored, framed box.
34079 \begin_layout Plain Layout
34090 \begin_layout Plain Layout
34104 \begin_layout Standard
34105 \begin_inset VSpace medskip
34111 \begin_layout Standard
34112 \begin_inset Note Greyedout
34115 \begin_layout Plain Layout
34120 Text in colorboxes cannot have line breaks.
34121 To color multiple text lines or paragraphs, use a box inside a colorbox
34122 as described in the following.
34130 \begin_layout Subsection
34131 Color for Paragraphs
34132 \begin_inset CommandInset label
34134 name "sub:Color-for-Paragraphs"
34139 \begin_inset Index idx
34142 \begin_layout Plain Layout
34143 Color ! for Paragraphs
34151 \begin_layout Standard
34152 To set the background color for more than one text line, put the text into
34154 Before the minipage insert the
34163 \begin_layout Standard
34171 \begin_layout Standard
34173 After the minipage insert a closing brace
34174 \begin_inset Quotes eld
34182 \begin_inset Quotes erd
34188 \begin_layout Standard
34192 \begin_layout Plain Layout
34196 colorbox{lightgrey}{
34202 \begin_inset Box Frameless
34212 height_special "totalheight"
34215 \begin_layout Plain Layout
34216 This is text with background color.
34217 This is text with background color.
34220 \begin_layout Plain Layout
34221 \begin_inset VSpace defskip
34224 The text can have footnotes
34228 \begin_layout Plain Layout
34229 Another example footnote
34234 and can include tables and figures.
34237 \begin_layout Plain Layout
34239 \begin_inset Tabular
34240 <lyxtabular version="3" rows="3" columns="3">
34241 <features tabularvalignment="middle">
34242 <column alignment="center" valignment="top" width="0">
34243 <column alignment="center" valignment="top" width="0">
34244 <column alignment="center" valignment="top" width="0">
34246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34249 \begin_layout Plain Layout
34255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34258 \begin_layout Plain Layout
34264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34267 \begin_layout Plain Layout
34275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34278 \begin_layout Plain Layout
34284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34287 \begin_layout Plain Layout
34289 \begin_inset Quotes erd
34297 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34300 \begin_layout Plain Layout
34308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34311 \begin_layout Plain Layout
34317 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34320 \begin_layout Plain Layout
34326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34329 \begin_layout Plain Layout
34349 \begin_layout Plain Layout
34359 \begin_layout Section
34360 Rotated and Scaled Boxes
34363 \begin_layout Standard
34364 To use the commands described in this section, the LaTeX-package
34369 \begin_inset Index idx
34372 \begin_layout Plain Layout
34373 LaTeX-packages ! graphicx
34378 needs to be loaded in the document preamble with the command
34381 \begin_layout Standard
34386 @ifundefined{rotatebox}
34387 \begin_inset Newline newline
34391 \begin_inset Phantom HPhantom
34394 \begin_layout Plain Layout
34397 \begin_inset space ~
34407 usepackage{graphicx}}{}
34410 \begin_layout Standard
34411 \begin_inset Note Greyedout
34414 \begin_layout Plain Layout
34419 Some DVI-viewers can't display rotated or scaled material.
34427 \begin_layout Standard
34428 \begin_inset Note Greyedout
34431 \begin_layout Plain Layout
34436 Floats mustn't be inside a rotated or scaled box.
34444 \begin_layout Subsection
34446 \begin_inset Index idx
34449 \begin_layout Plain Layout
34456 \begin_inset Index idx
34459 \begin_layout Plain Layout
34466 \begin_inset Index idx
34469 \begin_layout Plain Layout
34476 \begin_inset Index idx
34479 \begin_layout Plain Layout
34480 Table Customization ! Rotating
34488 \begin_layout Standard
34489 To rotate material, you can put it into a rotated box.
34490 Such a box is created using the command
34496 in TeX-Code with the following scheme:
34499 \begin_layout Standard
34504 rotatebox[rotation origin]{rotation angle}{box content}
34507 \begin_layout Standard
34508 The rotation origin is specified in the form
34513 The following positions are possible:
34533 (top), along with meaningful combinations of the four base positions.
34538 means that the rotation origin is at the top left corner of the box.
34539 When no rotation origin is specified, the position
34544 The rotation angle is a number that can be negative that specifies the
34546 The rotation direction is counterclockwise.
34549 \begin_layout Standard
34550 In the following example the command
34554 rotatebox[origin=c]{60}{
34556 was inserted as TeX-Code before the text
34557 \begin_inset Quotes eld
34561 \begin_inset Quotes erd
34564 ; after the text the box was closed by a closing brace
34571 \begin_layout Standard
34576 \begin_layout Plain Layout
34580 rotatebox[origin=c]{60}{
34589 \begin_layout Plain Layout
34599 \begin_layout Standard
34600 The box content can also be another box or an inline formula:
34603 \begin_layout Standard
34608 \begin_layout Plain Layout
34612 rotatebox[origin=r]{-60}{
34618 \begin_inset Box Doublebox
34628 height_special "totalheight"
34631 \begin_layout Plain Layout
34641 \begin_layout Plain Layout
34652 \begin_layout Plain Layout
34656 rotatebox[origin=lb]{60}{
34662 \begin_inset Formula $\int A\,\mathrm{d}x=B$
34669 \begin_layout Plain Layout
34679 \begin_layout Standard
34680 or an image or table:
34683 \begin_layout Standard
34688 \begin_layout Plain Layout
34692 rotatebox[origin=lb]{90}{
34698 \begin_inset Graphics
34699 filename clipart/platypus.eps
34709 \begin_layout Plain Layout
34716 with a rotated image
34720 \begin_layout Plain Layout
34724 rotatebox[origin=l]{-90}{
34730 \begin_inset Tabular
34731 <lyxtabular version="3" rows="2" columns="2">
34732 <features tabularvalignment="middle">
34733 <column alignment="center" valignment="top" width="0">
34734 <column alignment="center" valignment="top" width="0">
34736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34739 \begin_layout Plain Layout
34745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34748 \begin_layout Plain Layout
34756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34759 \begin_layout Plain Layout
34765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34768 \begin_layout Plain Layout
34783 \begin_layout Plain Layout
34793 \begin_layout Subsection
34795 \begin_inset Index idx
34798 \begin_layout Plain Layout
34805 \begin_inset Index idx
34808 \begin_layout Plain Layout
34815 \begin_inset Index idx
34818 \begin_layout Plain Layout
34825 \begin_inset Index idx
34828 \begin_layout Plain Layout
34829 Table Customization ! Scaling
34837 \begin_layout Standard
34838 To scale material the commands
34850 can be used as TeX-Code.
34853 \begin_layout Standard
34860 is used with the following scheme:
34863 \begin_layout Standard
34868 scalebox{horizontal}[vertical]{box content}
34871 \begin_layout Standard
34872 Horizontal and vertical are the corresponding scaling factors.
34873 If no vertical scaling factor is given, the horizontal factor will also
34874 be used as the vertical one.
34877 \begin_layout Standard
34884 creates for example a double size
34888 \begin_layout Plain Layout
34901 \begin_layout Plain Layout
34908 , compared with the document text size.
34911 \begin_layout Standard
34916 scalebox{2}[1]{Hello}
34918 on the other hand distorts the
34922 \begin_layout Plain Layout
34935 \begin_layout Plain Layout
34945 \begin_layout Standard
34946 If the scaling factor is negative, the box content will be mirrored.
34947 Therefore the command
34951 scalebox{-1}[1]{Hello}
34953 can be used to create mirror writing:
34957 \begin_layout Plain Layout
34970 \begin_layout Plain Layout
34980 \begin_layout Standard
34985 scalebox{1}[-1]{Hello}
34991 \begin_layout Plain Layout
35004 \begin_layout Plain Layout
35014 \begin_layout Standard
35019 scalebox{-1}[1]{box content}
35021 there exists the command
35022 \begin_inset Newline newline
35029 reflectbox{box content}
35034 \begin_layout Standard
35035 \begin_inset VSpace bigskip
35044 is used to scale the box to a defined width and height.
35045 The command scheme is:
35048 \begin_layout Standard
35053 resizebox{width}{height}{box content}
35056 \begin_layout Standard
35057 If one of the two command arguments given is an exclamation mark
35061 , the size is set so that the aspect ratio of the box content is kept.
35064 \begin_layout Standard
35069 resizebox{2cm}{1cm}{Hello}
35075 \begin_layout Plain Layout
35079 resizebox{2cm}{1cm}{
35088 \begin_layout Plain Layout
35096 \begin_inset Newline newline
35103 resizebox{2cm}{!}{Hello}
35109 \begin_layout Plain Layout
35122 \begin_layout Plain Layout
35132 \begin_layout Standard
35133 \begin_inset VSpace bigskip
35137 \begin_inset Note Greyedout
35140 \begin_layout Plain Layout
35157 are set to zero, no LaTeX-errors occur when exporting the document but
35158 the exported files can not or only partly be displayed.
35166 \begin_layout Standard
35167 \begin_inset VSpace bigskip
35173 \begin_layout Standard
35174 The boxes can be combined in any order.
35176 \begin_inset space \thinspace{}
35180 \begin_inset space \space{}
35184 \begin_inset Newline newline
35191 rotatebox[origin=c]{-45}{
35195 reflectbox{Hello}}}
35196 \begin_inset Newline newline
35204 \begin_layout Standard
35209 \begin_layout Plain Layout
35213 rotatebox[origin=c]{-45}{
35226 \begin_layout Plain Layout
35236 \begin_layout Standard
35238 Images, tables, and inline formulas are allowed as box content:
35241 \begin_layout Standard
35246 \begin_layout Plain Layout
35250 rotatebox[origin=c]{-30}{
35260 \begin_inset Graphics
35261 filename clipart/platypus.eps
35271 \begin_layout Plain Layout
35282 \begin_layout Plain Layout
35286 rotatebox[origin=c]{-45}{
35296 \begin_inset Tabular
35297 <lyxtabular version="3" rows="2" columns="2">
35298 <features tabularvalignment="middle">
35299 <column alignment="center" valignment="top" width="0">
35300 <column alignment="center" valignment="top" width="0">
35302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35305 \begin_layout Plain Layout
35311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35314 \begin_layout Plain Layout
35322 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35325 \begin_layout Plain Layout
35331 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35334 \begin_layout Plain Layout
35349 \begin_layout Plain Layout
35360 \begin_layout Plain Layout
35364 rotatebox[origin=c]{-45}{
35374 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35381 \begin_layout Plain Layout
35391 \begin_layout Standard
35392 When the global formula style
35396 is used in the document
35400 \begin_layout Plain Layout
35402 \begin_inset Quotes eld
35406 \begin_inset Quotes erd
35409 is added to the document class options.
35414 , display style formulas can also be scaled.
35417 \begin_layout Chapter
35418 Objects Surrounded by Text
35419 \begin_inset Index idx
35422 \begin_layout Plain Layout
35431 \begin_layout Section
35433 \begin_inset CommandInset label
35435 name "sec:Wrap-Floats"
35440 \begin_inset Index idx
35443 \begin_layout Plain Layout
35444 Floats ! Wrap Floats
35450 \begin_inset Index idx
35453 \begin_layout Plain Layout
35454 Surrounded by text ! Wrap Floats
35462 \begin_layout Standard
35463 \begin_inset Wrap figure
35470 \begin_layout Plain Layout
35471 \begin_inset Graphics
35472 filename clipart/mobius.eps
35474 scaleBeforeRotation
35475 rotateOrigin center
35482 \begin_layout Plain Layout
35483 \begin_inset Caption
35485 \begin_layout Plain Layout
35486 \begin_inset CommandInset label
35488 name "fig:This-is-a"
35492 This is a figure wrap float.
35502 This float type is used if you want to wrap text around a figure or table
35503 so that it only occupies some fraction of the column width.
35504 It can be inserted using the menu
35506 Insert\SpecialChar \menuseparator
35507 Floats\SpecialChar \menuseparator
35509 \begin_inset space ~
35513 \begin_inset space ~
35521 \begin_inset space ~
35525 \begin_inset space ~
35530 if the LaTeX-package
35535 \begin_inset Index idx
35538 \begin_layout Plain Layout
35539 LaTeX-packages ! wrapfig
35543 \begin_layout Plain Layout
35561 \begin_layout Plain Layout
35562 Installing a LaTeX-package is explained it in the
35565 \begin_inset space ~
35575 The settings of the float can be modified by right-clicking on the float
35577 The mandatory settings are the float
35590 that specifies how much the float is set into the paragraph
35591 \begin_inset space \thinspace{}
35595 \begin_inset space \thinspace{}
35598 page margin, and the
35601 \begin_inset space ~
35606 that specifies how many text lines the float will approximately need.
35607 The line span is often hard to approximate; so it is better only to use
35608 it when you encounter float placement problems.
35609 You can furthermore decide if LaTeX is allowed to let the float float within
35610 the paragraph or to surrounding paragraphs.
35612 \begin_inset space ~
35616 \begin_inset CommandInset ref
35618 reference "fig:This-is-a"
35622 is an example text wrap float with a width of 40
35623 \begin_inset space \thinspace{}
35627 \begin_inset space \thinspace{}
35630 cm overhang, set to the left.
35633 \begin_layout Standard
35634 \begin_inset Note Greyedout
35637 \begin_layout Plain Layout
35643 \begin_inset space ~
35646 wrap float floats are fragile! E.
35647 \begin_inset space \thinspace{}
35651 \begin_inset space \space{}
35654 having a figure too close to the bottom of the page can mess things up in
35655 such a way that the float does not appear in the output or that it is placed
35656 over some other text.
35664 \begin_layout Standard
35665 In general, the following applies for wrap floats:
35668 \begin_layout Itemize
35669 They should not be placed in paragraphs that run over a page break.
35670 That means that wrap floats are better inserted in their exact place when
35671 the document is almost finished and you are able to estimate where page
35672 breaks will appear.
35675 \begin_layout Itemize
35676 They should either be placed in their own paragraph before the paragraph
35677 where they should wrap into or within a paragraph.
35680 \begin_layout Itemize
35681 In consecutive paragraphs they may cause troubles, so ensure that there
35682 is a text paragraph between them as separator.
35685 \begin_layout Itemize
35686 They are not allowed in section headings or tables.
35689 \begin_layout Itemize
35690 Their numbering and referencing works as described in chap.
35691 \begin_inset space \thinspace{}
35695 \begin_inset CommandInset ref
35697 reference "chap:Floats"
35704 \begin_layout Section
35705 Surrounded Fixed Objects
35706 \begin_inset Index idx
35709 \begin_layout Plain Layout
35710 Surrounded by text ! Fixed objects
35718 \begin_layout Standard
35719 The wrap floats described in sec.
35720 \begin_inset space \thinspace{}
35724 \begin_inset CommandInset ref
35726 reference "sec:Wrap-Floats"
35730 have these positions in the paragraph:
35733 \begin_layout Standard
35736 \begin_inset Tabular
35737 <lyxtabular version="3" rows="2" columns="2">
35738 <features tabularvalignment="middle">
35739 <column alignment="center" valignment="top" width="0">
35740 <column alignment="center" valignment="top" width="0">
35742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35745 \begin_layout Plain Layout
35746 \begin_inset Graphics
35747 filename ../images/dialog-show-new-inset_graphics.png
35749 scaleBeforeRotation
35758 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35761 \begin_layout Plain Layout
35769 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35772 \begin_layout Plain Layout
35778 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35781 \begin_layout Plain Layout
35793 \begin_inset Tabular
35794 <lyxtabular version="3" rows="2" columns="2">
35795 <features tabularvalignment="middle">
35796 <column alignment="center" valignment="top" width="0">
35797 <column alignment="center" valignment="top" width="0">
35799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35802 \begin_layout Plain Layout
35808 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35811 \begin_layout Plain Layout
35812 \begin_inset Graphics
35813 filename ../images/dialog-show-new-inset_graphics.png
35815 scaleBeforeRotation
35826 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35829 \begin_layout Plain Layout
35835 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35838 \begin_layout Plain Layout
35852 \begin_layout Standard
35853 To get an object exactly at the position where it is inserted, for example
35854 to get one of these positions:
35855 \begin_inset VSpace defskip
35861 \begin_layout Standard
35864 \begin_inset Tabular
35865 <lyxtabular version="3" rows="2" columns="2">
35866 <features tabularvalignment="middle">
35867 <column alignment="center" valignment="top" width="0">
35868 <column alignment="center" valignment="top" width="0">
35870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35873 \begin_layout Plain Layout
35879 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35882 \begin_layout Plain Layout
35890 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35893 \begin_layout Plain Layout
35894 \begin_inset Graphics
35895 filename ../images/dialog-show-new-inset_graphics.png
35897 scaleBeforeRotation
35906 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35909 \begin_layout Plain Layout
35921 \begin_inset Tabular
35922 <lyxtabular version="3" rows="2" columns="2">
35923 <features tabularvalignment="middle">
35924 <column alignment="center" valignment="top" width="0">
35925 <column alignment="center" valignment="top" width="0">
35927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35930 \begin_layout Plain Layout
35936 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35939 \begin_layout Plain Layout
35947 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35950 \begin_layout Plain Layout
35956 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35959 \begin_layout Plain Layout
35960 \begin_inset Graphics
35961 filename ../images/dialog-show-new-inset_graphics.png
35963 scaleBeforeRotation
35978 \begin_inset Tabular
35979 <lyxtabular version="3" rows="2" columns="3">
35980 <features tabularvalignment="middle">
35981 <column alignment="center" valignment="top" width="0">
35982 <column alignment="center" valignment="top" width="0">
35983 <column alignment="center" valignment="top" width="0">
35985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35988 \begin_layout Plain Layout
35994 <cell alignment="center" valignment="top" topline="true" usebox="none">
35997 \begin_layout Plain Layout
35998 \begin_inset Graphics
35999 filename ../images/dialog-show-new-inset_graphics.png
36001 scaleBeforeRotation
36010 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36013 \begin_layout Plain Layout
36021 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36024 \begin_layout Plain Layout
36030 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36033 \begin_layout Plain Layout
36039 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36042 \begin_layout Plain Layout
36054 \begin_inset Tabular
36055 <lyxtabular version="3" rows="2" columns="3">
36056 <features tabularvalignment="middle">
36057 <column alignment="center" valignment="top" width="0">
36058 <column alignment="center" valignment="top" width="0">
36059 <column alignment="center" valignment="top" width="0">
36061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36064 \begin_layout Plain Layout
36070 <cell alignment="center" valignment="top" topline="true" usebox="none">
36073 \begin_layout Plain Layout
36079 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36082 \begin_layout Plain Layout
36090 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36093 \begin_layout Plain Layout
36099 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36102 \begin_layout Plain Layout
36103 \begin_inset Graphics
36104 filename ../images/dialog-show-new-inset_graphics.png
36106 scaleBeforeRotation
36115 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36118 \begin_layout Plain Layout
36132 \begin_layout Standard
36135 \begin_inset Tabular
36136 <lyxtabular version="3" rows="3" columns="2">
36137 <features tabularvalignment="middle">
36138 <column alignment="center" valignment="top" width="0">
36139 <column alignment="center" valignment="top" width="0">
36141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36144 \begin_layout Plain Layout
36150 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36153 \begin_layout Plain Layout
36161 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36164 \begin_layout Plain Layout
36165 \begin_inset Graphics
36166 filename ../images/dialog-show-new-inset_graphics.png
36168 scaleBeforeRotation
36177 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36180 \begin_layout Plain Layout
36188 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36191 \begin_layout Plain Layout
36197 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36200 \begin_layout Plain Layout
36212 \begin_inset Tabular
36213 <lyxtabular version="3" rows="3" columns="3">
36214 <features tabularvalignment="middle">
36215 <column alignment="center" valignment="top" width="0">
36216 <column alignment="center" valignment="top" width="0">
36217 <column alignment="center" valignment="top" width="0">
36219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36222 \begin_layout Plain Layout
36228 <cell alignment="center" valignment="top" topline="true" usebox="none">
36231 \begin_layout Plain Layout
36237 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36240 \begin_layout Plain Layout
36248 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36251 \begin_layout Plain Layout
36257 <cell alignment="center" valignment="top" usebox="none">
36260 \begin_layout Plain Layout
36261 \begin_inset Graphics
36262 filename ../images/dialog-show-new-inset_graphics.png
36264 scaleBeforeRotation
36273 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36276 \begin_layout Plain Layout
36284 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36287 \begin_layout Plain Layout
36293 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36296 \begin_layout Plain Layout
36302 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36305 \begin_layout Plain Layout
36317 \begin_inset Tabular
36318 <lyxtabular version="3" rows="3" columns="2">
36319 <features tabularvalignment="middle">
36320 <column alignment="center" valignment="top" width="0">
36321 <column alignment="center" valignment="top" width="0">
36323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36326 \begin_layout Plain Layout
36332 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36335 \begin_layout Plain Layout
36343 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36346 \begin_layout Plain Layout
36352 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36355 \begin_layout Plain Layout
36356 \begin_inset Graphics
36357 filename ../images/dialog-show-new-inset_graphics.png
36359 scaleBeforeRotation
36370 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36373 \begin_layout Plain Layout
36379 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36382 \begin_layout Plain Layout
36396 \begin_layout Standard
36398 you can use the LaTeX-package
36403 \begin_inset Index idx
36406 \begin_layout Plain Layout
36407 LaTeX-packages ! picinpar
36413 Here is an example:
36416 \begin_layout Standard
36420 \begin_layout Plain Layout
36430 \begin_inset Note Note
36433 \begin_layout Plain Layout
36434 The following section will only be displayed when the LaTeX-package
36446 \begin_layout Standard
36450 \begin_layout Plain Layout
36454 begin{window}[2,c,{
36460 \begin_inset Graphics
36461 filename clipart/mobius.eps
36464 scaleBeforeRotation
36465 rotateOrigin center
36473 \begin_layout Plain Layout
36478 \begin_layout Plain Layout
36487 It was in the spring of the year 1894 that all London was interested, and
36488 the fashionable world dismayed, by the murder of the Honourable Ronald
36489 Adair under most unusual and inexplicable circumstances.
36490 The public has already learned those particulars of the crime which
36496 \begin_layout Plain Layout
36507 came out in the police investigation, but a good deal was suppressed upon
36508 that occasion, since the case for the prosecution was so overwhelmingly
36509 strong that it was not necessary to bring forward all the facts.
36510 Only now, at the end of nearly ten years, am I allowed to supply those
36511 missing links which make up the whole of that remarkable chain.
36517 \begin_layout Plain Layout
36529 \begin_layout Standard
36533 \begin_layout Plain Layout
36542 Footnote of the paragraph with the fixed object.
36546 \begin_layout Plain Layout
36556 \begin_layout Standard
36557 Surrounded fixed objects are used to let text float around them, at which
36558 the object's position in the paragraph can be determined by the number
36560 In contrary to floats is it not possible to have a numbered caption.
36563 \begin_layout Standard
36564 A fixed object is inserted by adding the command
36567 \begin_layout Standard
36572 begin{window}[2,c,{
36575 \begin_layout Standard
36576 as TeX-Code at the beginning of the paragraph.
36577 The first parameter in the bracket, here '2', defines the number of lines
36578 above the object, the second, here 'c', the position of the object.
36579 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
36580 Behind the command you insert the object.
36581 In this example an image with a width of 40
36582 \begin_inset space \thinspace{}
36585 % of the text column width was inserted.
36586 The object can also be a table, a box or an equation.
36587 Behind the object the command
36590 \begin_layout Standard
36593 },description text]
36594 \begin_inset Newline newline
36600 \begin_layout Standard
36603 \begin_inset Quotes eld
36611 \begin_inset Quotes erd
36614 is in the second line.
36615 The description text is optional.
36616 The text surrounding the object must be in the same paragraph as the object,
36617 so it must begin directly after the
36622 At the end of the paragraph insert the command:
36625 \begin_layout Standard
36633 \begin_layout Standard
36634 Within a paragraph with a fixed object, you cannot insert footnotes in the
36636 You have to use instead the command
36642 inside the paragraph and outside the command
36648 as described in sec.
36649 \begin_inset space \thinspace{}
36653 \begin_inset CommandInset ref
36655 reference "sec:Footnotes"
36662 \begin_layout Standard
36666 \begin_layout Plain Layout
36676 \begin_inset Note Note
36679 \begin_layout Plain Layout
36680 The following will be displayed when the LaTeX-package
36692 \begin_layout Standard
36693 You need to install the LaTeX-package
36697 to see the following part of this section in the output.
36700 \begin_layout Standard
36704 \begin_layout Plain Layout
36716 \begin_layout Section
36718 \begin_inset Index idx
36721 \begin_layout Plain Layout
36728 \begin_inset Index idx
36731 \begin_layout Plain Layout
36732 Surrounded by text ! Initials
36740 \begin_layout Standard
36741 To use initials, you must have the LaTeX-package
36746 \begin_inset Index idx
36749 \begin_layout Plain Layout
36750 LaTeX-packages ! lettrine
36755 installed and use the module
36759 in your document (menu
36761 Document\SpecialChar \menuseparator
36762 Settings\SpecialChar \menuseparator
36766 To insert an initial, use the style
36771 This style has a mandatory and an optional argument.
36772 The mandatory argument is inserted via the menu
36774 Insert\SpecialChar \menuseparator
36776 \begin_inset space ~
36781 and contains the letter that is the initial.
36782 To use also the optional argument, insert another argument in front of
36783 the mandatory argument.
36784 This one contains parameters to modify the initial.
36785 For more information about the possible parameters see the documentation
36791 \begin_inset CommandInset citation
36798 The style itself contains the text that is surrounding the initial.
36799 The usual style is hereby that the word whose first letter is the initial,
36805 To tell LaTeX where this word is finished, add a closing brace '
36809 ' as TeX-Code behind it.
36810 At the end of the style there must be an opening brace '
36817 \begin_layout Standard
36818 Here are some examples:
36821 \begin_layout Standard
36825 \begin_layout Plain Layout
36835 \begin_inset Note Note
36838 \begin_layout Plain Layout
36839 The following section will only be displayed when the LaTeX-package
36851 \begin_layout Enumerate
36852 No optional argument, the initial is the letter 'I' in the math font
36853 \begin_inset Formula $\mathfrak{Fraktur}$
36860 \begin_layout Initial
36861 \begin_inset Argument
36864 \begin_layout Plain Layout
36865 \begin_inset Formula $\mathfrak{I}$
36877 \begin_layout Plain Layout
36884 was in the spring of the year 1894 that all London was interested, and
36885 the fashionable world dismayed, by the murder of the Honourable Ronald
36886 Adair under most unusual and inexplicable circumstances.
36887 The public has already learned those particulars of the crime which came
36888 out in the police investigation, but a good deal was suppressed upon that
36889 occasion, since the case for the prosecution was so overwhelmingly strong
36890 that it was not necessary to bring forward all the facts.
36894 \begin_layout Plain Layout
36902 \begin_inset Newpage newpage
36909 \begin_layout Enumerate
36910 Only one line is surrounding the initial, which is formed by two letters
36911 in standard font and no text is printed in small caps:
36915 \begin_layout Initial
36916 \begin_inset Argument
36919 \begin_layout Plain Layout
36926 \begin_inset Argument
36929 \begin_layout Plain Layout
36939 \begin_layout Plain Layout
36946 was in the spring of the year 1894 that all London was interested, and
36947 the fashionable world dismayed, by the murder of the Honourable Ronald
36948 Adair under most unusual and inexplicable circumstances.
36949 The public has already learned those particulars of the crime which came
36950 out in the police investigation, but a good deal was suppressed upon that
36951 occasion, since the case for the prosecution was so overwhelmingly strong
36952 that it was not necessary to bring forward all the facts.
36956 \begin_layout Plain Layout
36967 \begin_layout Enumerate
36968 Magenta, hanging initial over 3
36969 \begin_inset space ~
36972 lines in the math font
36973 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
36977 \begin_inset Quotes eld
36980 t was in the spring
36981 \begin_inset Quotes erd
36988 ; to color the initial, you must insert this command before the initial:
36989 \begin_inset Newline newline
37003 \begin_inset Newline newline
37011 \begin_inset Quotes eld
37015 \begin_inset Quotes erd
37019 \begin_inset Quotes eld
37023 \begin_inset Quotes erd
37027 \begin_inset Quotes eld
37031 \begin_inset Quotes erd
37035 \begin_inset Quotes eld
37039 \begin_inset Quotes erd
37043 \begin_inset Quotes eld
37047 \begin_inset Quotes erd
37051 \begin_inset Quotes eld
37055 \begin_inset Quotes erd
37059 \begin_inset Quotes eld
37063 \begin_inset Quotes erd
37067 \begin_inset Quotes eld
37071 \begin_inset Quotes erd
37074 , and add this command to the document preamble:
37075 \begin_inset Newline newline
37082 @ifundefined{textcolor}
37083 \begin_inset Newline newline
37087 \begin_inset space ~
37092 usepackage{color}}{}
37096 \begin_layout Standard
37100 \begin_layout Plain Layout
37114 \begin_inset Note Note
37117 \begin_layout Plain Layout
37118 makes the initial magenta
37126 \begin_layout Initial
37127 \begin_inset Argument
37130 \begin_layout Plain Layout
37131 lines=3, lhang=0.33, loversize=0.25
37137 \begin_inset Argument
37140 \begin_layout Plain Layout
37141 \begin_inset Formula $\mathcal{I}$
37149 t was in the spring
37153 \begin_layout Plain Layout
37160 of the year 1894 that all London was interested, and the fashionable world
37161 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37162 and inexplicable circumstances.
37163 The public has already learned those particulars of the crime which came
37164 out in the police investigation, but a good deal was suppressed upon that
37165 occasion, since the case for the prosecution was so overwhelmingly strong
37166 that it was not necessary to bring forward all the facts.
37170 \begin_layout Plain Layout
37181 \begin_layout Standard
37185 \begin_layout Plain Layout
37195 \begin_inset Note Note
37198 \begin_layout Plain Layout
37199 The following will be displayed when the LaTeX-package
37211 \begin_layout Standard
37212 You need to install the LaTeX-package
37216 to see the following part of this section in the output.
37219 \begin_layout Standard
37223 \begin_layout Plain Layout
37235 \begin_layout Chapter
37236 External Document Parts
37237 \begin_inset Index idx
37240 \begin_layout Plain Layout
37241 External Document Parts
37249 \begin_layout Standard
37252 Insert\SpecialChar \menuseparator
37255 you can insert external material to your document.
37259 \begin_layout Description
37261 \begin_inset space ~
37264 Document Another LyX document; its content is directly inserted to your
37268 \begin_layout Description
37270 \begin_inset space ~
37273 Text A text document; each line is inserted in your document as a separate
37277 \begin_layout Description
37279 \begin_inset space ~
37283 \begin_inset space ~
37287 \begin_inset space ~
37290 Lines A text document; text lines are inserted in your document continuously
37291 but an empty text line creates a new paragraph.
37294 \begin_layout Description
37296 \begin_inset space ~
37299 Material Files in various formats.
37302 \begin_layout Description
37304 \begin_inset space ~
37307 Document LyX or LaTeX-documents.
37310 \begin_layout Section
37312 \begin_inset Index idx
37315 \begin_layout Plain Layout
37316 External Document Parts ! External Material
37324 \begin_layout Standard
37325 The external material feature allows you to insert files in to your document
37326 without converting them to a format that can be read by the document output
37328 LyX takes care of the necessary conversions.
37329 This is similar to images that can be inserted in various image formats
37331 When you have enabled Instant Preview in LyX's preferences under
37334 \begin_inset space ~
37338 \begin_inset space ~
37341 feel\SpecialChar \menuseparator
37344 , the external material types Dia and Xfig are directly shown in LyX.
37347 \begin_layout Standard
37348 External material can be inserted via the
37352 dialog that is accessible with the menu
37354 Insert\SpecialChar \menuseparator
37355 File\SpecialChar \menuseparator
37357 \begin_inset space ~
37363 Currently the following file types (
37370 \begin_layout Description
37371 ChessDiagram This template supports chess position diagrams made with the
37375 \begin_inset CommandInset href
37378 target "http://en.wikipedia.org/wiki/XBoard"
37387 \begin_layout Description
37388 Date This inserts the date in the form
37393 This is a date inserted as external material:
37394 \begin_inset External
37401 \begin_inset space ~
37405 \begin_inset Note Note
37408 \begin_layout Plain Layout
37409 Remove the protected space when bug 4398 is fixed!
37415 \begin_inset Newline newline
37418 The date is not shown within LyX, only in the output.
37419 There are two other methods of inserting a date: Via menu
37421 Insert\SpecialChar \menuseparator
37424 and with the LaTeX command
37431 The different methods are compared in Table
37432 \begin_inset space ~
37436 \begin_inset CommandInset ref
37438 reference "tab:Comparison-of-the"
37445 \begin_layout Description
37446 Dia This template supports diagrams created with the program
37449 \begin_inset CommandInset href
37452 target "http://en.wikipedia.org/wiki/Dia_(software)"
37461 \begin_layout Description
37462 GnumericSpreadsheet With this template you can insert spreadsheets
37463 \begin_inset space \thinspace{}
37467 \begin_inset space \thinspace{}
37470 tables in the format of
37473 \begin_inset CommandInset href
37476 target "http://en.wikipedia.org/wiki/Gnumeric"
37483 \begin_inset CommandInset href
37485 name "OpenDocument"
37486 target "http://en.wikipedia.org/wiki/OpenDocument"
37491 \begin_inset CommandInset href
37493 name "Microsoft Office XML"
37494 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
37499 \begin_inset CommandInset href
37501 name "Office Open XML"
37502 target "http://en.wikipedia.org/wiki/Office_Open_XML"
37507 For this feature LyX must have found the program
37511 during its configuration.
37512 This program is part of Gnumeric, so that you must have Gnumeric installed,
37513 also if you don't have tables in the Gnumeric format.
37514 For examples and possible limitations have a look at LyX's example file
37522 \begin_layout Description
37523 LilyPond This template is used for music notation typeset with the program
37524 \begin_inset Newline linebreak
37530 \begin_inset CommandInset href
37533 target "http://en.wikipedia.org/wiki/LilyPond"
37540 For LyX's extended support for LilyPond have a look at LyX's example file
37548 \begin_layout Description
37549 PDFPages With this template you can insert PDF documents to your document.
37550 To specify the range of pages that should be included, use the option
37560 LaTeX and LyX options
37563 The argument of this option is a comma separated list, containing page
37564 numbers (insert as option
37568 ), ranges of page numbers (
37572 ) or any combination.
37573 To insert empty pages use {}.
37575 \begin_inset space \thinspace{}
37579 \begin_inset space ~
37584 pages={3,{},8-11,15}
37586 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
37587 Page ranges are specified in the syntax
37596 This selects all pages from
37609 defaults to the first page; omitting
37613 defaults to the last page of the document.
37614 The last page can also be selected with the keyword
37619 (This is only permitted in a page range.) So
37623 will insert all pages of the document and
37627 will insert all pages in reverse order.
37628 If the pages option is not specified, only the first page of the PDF is
37630 \begin_inset Newline newline
37637 inserts the pages with their original size, if this option is not given,
37638 the pages will be resized to fith the width of the page of your document.
37643 you can specify the width and height of the input pages and their rotation.
37644 If another width than 100
37645 \begin_inset space \thinspace{}
37648 Scale% is used, the option
37652 will be overwritten.
37653 For more info and possible options, have a look into the documentation
37654 of the LaTeX-package
37659 \begin_inset CommandInset citation
37666 \begin_inset Index idx
37669 \begin_layout Plain Layout
37670 LaTeX-packages ! pdfpages
37676 \begin_inset Newline newline
37679 To use this template in a
37683 presentation you need to first insert an
37687 environment and in a subsequent paragraph a TeX-Code box containing the
37692 setbeamertemplate{background canvas}{}
37695 Then you can insert as many paragraphs containing the PDFPages template
37697 Behind the included PDF pages you can resume the Beamer presentation by
37698 beginning a new frame or by starting a new section.
37699 To avoid stray blank pages prior to the PDF pages, make sure to use the
37704 alignment for the paragraph containing the template.
37705 \begin_inset Newline newline
37708 Here is an included PDF which is rotated by -5°:
37709 \begin_inset External
37711 filename clipart/Abstract.pdf
37712 extra LaTeX "noautoscale, pages=-"
37714 rotateOrigin bottomleft
37721 \begin_layout Description
37722 RasterImage This can be used for bitmap images.
37723 The image can be treated in the
37727 dialog like the images that are usually included via the
37731 dialog as described in section
37732 \begin_inset space ~
37736 \begin_inset CommandInset ref
37738 reference "sec:Graphics-Dialog"
37743 The difference to the normal image input is that only raster images are
37744 allowed; that means that PDF and EPS-images are not supported.
37745 Here is an inserted raster image:
37746 \begin_inset External
37747 template RasterImage
37748 filename clipart/ToolbarEnvBox.png
37755 \begin_layout Description
37756 XFig This template supports images created with the program
37759 \begin_inset CommandInset href
37762 target "http://en.wikipedia.org/wiki/Xfig"
37771 \begin_layout Standard
37772 \begin_inset Float table
37778 \begin_layout Plain Layout
37779 \begin_inset Caption
37781 \begin_layout Plain Layout
37782 \begin_inset CommandInset label
37784 name "tab:Comparison-of-the"
37788 Comparison of the date input methods.
37796 \begin_layout Plain Layout
37798 \begin_inset Tabular
37799 <lyxtabular version="3" rows="4" columns="4">
37800 <features tabularvalignment="middle">
37801 <column alignment="center" valignment="top" width="0">
37802 <column alignment="center" valignment="top" width="0">
37803 <column alignment="center" valignment="top" width="0">
37804 <column alignment="center" valignment="top" width="0">
37806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37809 \begin_layout Plain Layout
37815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37818 \begin_layout Plain Layout
37821 External Material\SpecialChar \menuseparator
37827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37830 \begin_layout Plain Layout
37833 Insert\SpecialChar \menuseparator
37839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37842 \begin_layout Plain Layout
37854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37857 \begin_layout Plain Layout
37863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37866 \begin_layout Plain Layout
37872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37875 \begin_layout Plain Layout
37881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37884 \begin_layout Plain Layout
37885 as TeX-Code inset box
37892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37895 \begin_layout Plain Layout
37901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37904 \begin_layout Plain Layout
37910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37913 \begin_layout Plain Layout
37919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37922 \begin_layout Plain Layout
37930 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37933 \begin_layout Plain Layout
37939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37942 \begin_layout Plain Layout
37948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37951 \begin_layout Plain Layout
37957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37960 \begin_layout Plain Layout
37979 \begin_layout Standard
37980 When you use the option
37992 dialog, only the path to the inserted file is shown in the output.
37993 \begin_inset Newline newline
37996 External material is displayed in LyX either as a box like this:
37997 \begin_inset Graphics
37998 filename clipart/ExternalMaterialQt4.png
38000 scaleBeforeRotation
38004 or as image, depending on the option
38010 LaTeX and LyX options
38015 \begin_layout Standard
38022 manual explains how you can define your own templates.
38025 \begin_layout Section
38027 \begin_inset CommandInset label
38029 name "sec:Child-Documents"
38034 \begin_inset Index idx
38037 \begin_layout Plain Layout
38038 External Document Parts ! Child Documents
38044 \begin_inset Index idx
38047 \begin_layout Plain Layout
38056 \begin_layout Standard
38057 Child documents are used if you have a long document consisting of several
38058 larger parts or sections.
38059 For maintenance it is often useful and sometimes even required to split
38060 the document into several files that can be revised separately.
38061 The different documents are then the so called
38062 \begin_inset Quotes eld
38066 \begin_inset Quotes erd
38069 , and a master document connects them to print the full document or parts
38071 A child document inherits elements of its master, for example the LaTeX
38072 preamble, the bibliography, and labels for cross-references.
38075 \begin_layout Standard
38076 To be able to work on child documents without the need to open their master,
38077 specify in the child document the master in the menu
38079 Document\SpecialChar \menuseparator
38080 Settings\SpecialChar \menuseparator
38082 \begin_inset space ~
38088 This master document will then be used in the background by LyX when you
38089 edit the child document.
38092 \begin_layout Standard
38093 Included documents are displayed in LyX as a box like this:
38094 \begin_inset Graphics
38095 filename clipart/ChildDocumentQt4.png
38097 scaleBeforeRotation
38101 To include child documents in a master document use the menu
38103 Insert\SpecialChar \menuseparator
38104 File\SpecialChar \menuseparator
38106 \begin_inset space ~
38112 A dialog pops up where you can choose between four include methods:
38115 \begin_layout Description
38116 Include You can include LyX- and LaTeX-documents.
38125 dialog, the included documents will be opened in LyX in a new file tab
38126 so that you can modify them.
38127 \begin_inset Newline newline
38133 \begin_layout Standard
38134 Here is a child document inserted using
38139 \begin_inset CommandInset include
38140 LatexCommand include
38141 filename "DummyDocument1.lyx"
38148 \begin_layout Standard
38149 The section numbering includes the sections of the included files in the
38150 order they are inserted in the master document.
38151 The included example document has for example a subsection that is numbered
38152 as a subsection of this section.
38153 Labels of included documents can be referenced: Subsection
38154 \begin_inset space ~
38158 \begin_inset CommandInset ref
38160 reference "sub:External-Subsection-1"
38167 \begin_layout Standard
38168 The preamble of the child document is ignored; only the preamble of the
38169 master document is used.
38170 Branches in child documents will be ignored by the master document when
38171 the master document does not have a branch with the same name.
38172 Included documents are inserted starting on a new page and ending with
38176 \begin_layout Standard
38177 \begin_inset Note Greyedout
38180 \begin_layout Plain Layout
38185 If you have included a LyX- or LaTeX-file, you are warned when you export/view
38186 the document in case the child document uses another document class than
38187 the master document as this will lead to unexpected outputs.
38195 \begin_layout Description
38196 Input This method is very similar to the Include method.
38197 The differences are:
38201 \begin_layout Itemize
38202 Input files don't start with a new page and don't end with a page break.
38205 \begin_layout Itemize
38206 Input files can be previewed in LyX when
38209 \begin_inset space ~
38214 is enabled in LyX's preferences under
38217 \begin_inset space ~
38221 \begin_inset space ~
38224 feel\SpecialChar \menuseparator
38230 \begin_layout Itemize
38231 You cannot exclude Input files via the menu
38233 Document\SpecialChar \menuseparator
38234 Settings\SpecialChar \menuseparator
38241 \begin_layout Standard
38242 Here is a child document inserted using
38247 \begin_inset CommandInset include
38249 filename "DummyDocument2.lyx"
38256 \begin_layout Description
38257 Verbatim With this method any text file can be included.
38258 The file is shown in the output with its source code; no command used in
38259 the text is invoked.
38260 You can use the option
38262 Mark spaces in output
38264 that displays the character
38265 \begin_inset Quotes eld
38272 \begin_layout Plain Layout
38282 \begin_inset Quotes erd
38285 for every space character in the source code.
38286 The difference from the method via the menu
38288 Insert\SpecialChar \menuseparator
38289 File\SpecialChar \menuseparator
38291 \begin_inset space ~
38296 is that the document content is not shown in LyX.
38299 \begin_layout Standard
38300 Here is a child document inserted as Verbatim:
38301 \begin_inset CommandInset include
38302 LatexCommand verbatiminput
38303 filename "DummyTextDocument.txt"
38308 \begin_inset VSpace bigskip
38311 Here is a child document inserted as Verbatim using the
38313 Mark spaces in output
38316 \begin_inset CommandInset include
38317 LatexCommand verbatiminput*
38318 filename "DummyTextDocument.txt"
38325 \begin_layout Standard
38326 \begin_inset VSpace bigskip
38332 \begin_layout Standard
38333 \begin_inset Note Greyedout
38336 \begin_layout Plain Layout
38341 As you can see in the examples above, the text of the documents included
38346 is not broken at the end of the document lines.
38354 \begin_layout Description
38355 Listings This type is described in chapter
38356 \begin_inset space ~
38360 \begin_inset CommandInset ref
38362 reference "cha:Program-Code-Listings"
38369 \begin_layout Standard
38370 \begin_inset Note Greyedout
38373 \begin_layout Plain Layout
38378 Including the same document twice in a document using different methods
38379 could cause LaTeX-problems.
38387 \begin_layout Standard
38388 If you want to view/export only selected children of your master document,
38389 either because you want to save compiling time or because you want to distribut
38390 e single chapters of the book you are just writing, you can exclude children
38392 This is done via the menu
38394 Document\SpecialChar \menuseparator
38395 Settings\SpecialChar \menuseparator
38399 You can exclude\SpecialChar \slash{}
38400 include children by double-clicking on the
38404 column of the respective child document in the list (note that this only
38405 works for documents embedded via
38406 \begin_inset Quotes eld
38410 \begin_inset Quotes erd
38414 \begin_inset Quotes eld
38418 \begin_inset Quotes erd
38424 Maintain counters and references
38426 is enabled, LyX will assure that all page numbers, references etc.
38427 \begin_inset space ~
38430 are correct as if the whole document was processed.
38431 This is useful if you want the selected sub-documents to look exactly as
38432 in the context of the whole document.
38433 However, LyX needs to process the whole document in the background for
38435 So if you want to save compile time and if counters and references do not
38436 need to be correct, disable this checkbox.
38439 \begin_layout Standard
38440 Alternatively, you can put each included file into a branch.
38444 \begin_layout Plain Layout
38445 Branches are described in section
38458 By enabling\SpecialChar \slash{}
38459 disabling branches you can decide which included files will
38460 appear in the output.
38461 This has the advantage that it also works with Input'ed sub-documents.
38462 However, counters and references will not be maintained with this approach.
38465 \begin_layout Chapter
38466 Program Code Listings
38467 \begin_inset CommandInset label
38469 name "cha:Program-Code-Listings"
38474 \begin_inset Index idx
38477 \begin_layout Plain Layout
38484 \begin_inset Index idx
38487 \begin_layout Plain Layout
38494 \begin_inset Index idx
38497 \begin_layout Plain Layout
38506 \begin_layout Standard
38507 To include and typeset program code you can use the
38511 inset that can be inserted via the menu
38513 Insert\SpecialChar \menuseparator
38522 \begin_inset Index idx
38525 \begin_layout Plain Layout
38526 LaTeX-packages ! listings
38531 provides a powerful and flexible way to insert program source code into
38535 \begin_layout Standard
38536 Right-clicking on a listings inset opens the context menu containing where
38537 you can set the listings format.
38540 \begin_layout Standard
38541 By default, a listing starts a new paragraph in the output.
38542 The placement option
38545 \begin_inset space ~
38550 prints the listing inline like this:
38551 \begin_inset listings
38552 lstparams "language={C++}"
38556 \begin_layout Plain Layout
38564 \begin_inset Newline newline
38571 creates a listings float where you can specify the placement options
38572 \begin_inset Quotes eld
38580 \begin_inset Quotes erd
38584 \begin_inset Quotes eld
38592 \begin_inset Quotes erd
38596 \begin_inset Quotes eld
38604 \begin_inset Quotes erd
38608 \begin_inset Quotes eld
38616 \begin_inset Quotes erd
38619 corresponding to the float placement options described in section
38620 \begin_inset space ~
38624 \begin_inset CommandInset ref
38626 reference "sec:Float-Placement"
38631 The placement options can be mixed and are inserted without any separation,
38633 \begin_inset space \thinspace{}
38637 \begin_inset space \space{}
38641 \begin_inset Quotes eld
38649 \begin_inset Quotes erd
38654 \begin_inset Quotes eld
38658 \begin_inset Quotes erd
38661 has sometimes no effect, but you don't need to use the
38665 option in this case as also non-float listings can have captions and be
38669 \begin_layout Standard
38670 You can add captions to listings with the menu
38672 Insert\SpecialChar \menuseparator
38676 Listings can be referenced like floats: Listing
38677 \begin_inset space ~
38681 \begin_inset CommandInset ref
38683 reference "lst:Example-Listing"
38690 \begin_layout Standard
38691 \begin_inset listings
38692 lstparams "language=Python"
38696 \begin_layout Plain Layout
38698 \begin_inset Caption
38700 \begin_layout Plain Layout
38701 \begin_inset CommandInset label
38703 name "lst:Example-Listing"
38707 Example Listing float
38712 # Example listing float
38715 \begin_layout Plain Layout
38720 \begin_layout Plain Layout
38722 'this is a python function'
38725 \begin_layout Plain Layout
38735 \begin_layout Standard
38736 When you have set a programming language in the listings dialog, the keywords
38737 of this language will be recognized and specially typeset in the output.
38738 In the example listings the Python keyword
38739 \begin_inset Quotes eld
38743 \begin_inset Quotes erd
38746 is recognized and printed bold in the output.
38749 \begin_layout Standard
38750 \begin_inset Note Greyedout
38753 \begin_layout Plain Layout
38758 If you don't get bold keywords when using typewriter fonts, your
38762 font probably doesn't provide a bold shape.
38763 In this case select a different one in the menu
38765 Document\SpecialChar \menuseparator
38766 Settings\SpecialChar \menuseparator
38778 provide bold shapes.)
38786 \begin_layout Standard
38790 \begin_inset space ~
38795 of the listings dialog you can specify the line numbering style.
38796 You can insert a number to specify which lines are numbered in the field
38803 \begin_inset space \thinspace{}
38807 \begin_inset space \space{}
38811 \begin_inset Quotes eld
38815 \begin_inset Quotes erd
38818 , only every 3rd line will be numbered.
38821 \begin_layout Standard
38822 You can furthermore specify a range of lines; only these will then appear
38826 Extended character table
38828 should be used when you use national characters like the German umlauts
38830 \begin_inset Newline newline
38833 Here is an example listing with left line numbering, step
38834 \begin_inset Quotes eld
38838 \begin_inset Quotes erd
38842 \begin_inset Quotes eld
38846 \begin_inset Quotes erd
38850 \begin_inset Quotes eld
38853 Extended character table
38854 \begin_inset Quotes erd
38858 \begin_inset Quotes eld
38862 \begin_inset space ~
38866 \begin_inset space ~
38870 \begin_inset Quotes erd
38874 \begin_inset space \thinspace{}
38878 \begin_inset space \thinspace{}
38884 \begin_layout Standard
38885 \begin_inset listings
38886 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
38890 \begin_layout Plain Layout
38895 \begin_layout Plain Layout
38897 'this is a python function'
38900 \begin_layout Plain Layout
38905 \begin_layout Plain Layout
38910 \begin_layout Plain Layout
38912 'This is a German word: Tschüß'
38915 \begin_layout Plain Layout
38920 \begin_layout Plain Layout
38925 \begin_layout Plain Layout
38927 'this is a python function'
38930 \begin_layout Plain Layout
38940 \begin_layout Standard
38941 When you have tabulators in your listing, you can specify the number of
38942 characters that are spanned by a tabulator in the field
38945 \begin_inset space ~
38953 \begin_layout Standard
38954 \begin_inset Note Greyedout
38957 \begin_layout Plain Layout
38962 Due to a bug in the
38966 package the line numbering is shifted by a line by every previous listing.
38967 That's the reason why the lines 2 and 5 are numbered in the above listing
38968 and not the lines 3 and 6.
38976 \begin_layout Standard
38977 \begin_inset VSpace bigskip
38983 \begin_layout Standard
38984 It is also possible to print lines from a file as listing.
38985 To do this, use the menu
38987 Insert\SpecialChar \menuseparator
38988 File\SpecialChar \menuseparator
38991 and choose the type
38999 \begin_layout Plain Layout
39000 The other child document types are described in section
39001 \begin_inset space ~
39005 \begin_inset CommandInset ref
39007 reference "sec:Child-Documents"
39016 In the child document dialog you can specify the listing parameters in
39018 To show a list of all available parameters, type in a question mark
39019 \begin_inset Quotes eld
39023 \begin_inset Quotes erd
39029 \begin_layout Standard
39030 To reference child document listings, write a label text into the corresponding
39031 field of the child document dialog.
39032 The label can then be referenced using the menu
39034 Insert\SpecialChar \menuseparator
39040 \begin_layout Standard
39042 \begin_inset space ~
39046 \begin_inset CommandInset ref
39048 reference "lst:file-listing"
39052 is an example for a listing of a file; there the lines 10
39053 \begin_inset space \thinspace{}
39057 \begin_inset space \thinspace{}
39060 15 of this LyX file are listed.
39063 \begin_layout Standard
39064 \begin_inset CommandInset include
39065 LatexCommand lstinputlisting
39066 filename "EmbeddedObjects.lyx"
39067 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39074 \begin_layout Standard
39075 \begin_inset VSpace bigskip
39081 \begin_layout Standard
39082 Inserting a formula into a listing can be done the following way:
39085 \begin_layout Enumerate
39086 Open the listings dialog and add
39087 \begin_inset Newline newline
39095 \begin_inset Newline newline
39098 to the field of the
39105 \begin_layout Enumerate
39106 Create a formula outside the listing
39109 \begin_layout Enumerate
39110 Copy the content of the formula (not the formula inset) to the clipboard
39120 \begin_layout Enumerate
39121 In the listing write
39122 \begin_inset Quotes eld
39130 \begin_inset Quotes erd
39133 and copy from the clipboard between the dollar-signs (shortcut
39142 \begin_layout Standard
39143 \begin_inset listings
39144 lstparams "language=Python,mathescape=true"
39148 \begin_layout Plain Layout
39150 \begin_inset Caption
39152 \begin_layout Plain Layout
39153 Example Listing float containing a formula
39158 # Example listing float
39161 \begin_layout Plain Layout
39166 \begin_layout Plain Layout
39179 \begin_layout Plain Layout
39189 \begin_layout Standard
39190 \begin_inset VSpace bigskip
39196 \begin_layout Standard
39197 Global listings settings can be set in the
39199 Document\SpecialChar \menuseparator
39200 Settings\SpecialChar \menuseparator
39204 To get there a list of available options, type in a question mark
39205 \begin_inset Quotes eld
39209 \begin_inset Quotes erd
39215 \begin_layout Standard
39216 For more information about the
39220 package, we refer to its documentation
39221 \begin_inset CommandInset citation
39230 \begin_layout Standard
39231 \begin_inset Newpage newpage
39237 \begin_layout Chapter
39239 Units available in LyX
39240 \begin_inset Index idx
39243 \begin_layout Plain Layout
39250 \begin_inset CommandInset label
39252 name "cha:Units-available-in"
39259 \begin_layout Standard
39260 To understand the units described in this documentation, Table
39261 \begin_inset space ~
39265 \begin_inset CommandInset ref
39267 reference "tab:Units"
39271 explains all units available in LyX.
39274 \begin_layout Standard
39275 \begin_inset Float table
39281 \begin_layout Plain Layout
39282 \begin_inset Caption
39284 \begin_layout Plain Layout
39285 \begin_inset CommandInset label
39299 \begin_layout Plain Layout
39300 \begin_inset VSpace medskip
39306 \begin_layout Plain Layout
39308 \begin_inset Tabular
39309 <lyxtabular version="3" rows="20" columns="2">
39310 <features tabularvalignment="middle">
39311 <column alignment="center" valignment="top" width="0">
39312 <column alignment="center" valignment="top" width="0">
39314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39317 \begin_layout Plain Layout
39323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39326 \begin_layout Plain Layout
39334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39337 \begin_layout Plain Layout
39343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39346 \begin_layout Plain Layout
39354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39357 \begin_layout Plain Layout
39363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39366 \begin_layout Plain Layout
39374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39377 \begin_layout Plain Layout
39383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39386 \begin_layout Plain Layout
39394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39397 \begin_layout Plain Layout
39403 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39406 \begin_layout Plain Layout
39408 \begin_inset space \thinspace{}
39412 \begin_inset space \thinspace{}
39422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39425 \begin_layout Plain Layout
39431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39434 \begin_layout Plain Layout
39436 \begin_inset space \thinspace{}
39440 \begin_inset space \thinspace{}
39450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39453 \begin_layout Plain Layout
39459 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39462 \begin_layout Plain Layout
39463 scaled point (65536
39464 \begin_inset space \thinspace{}
39468 \begin_inset space \thinspace{}
39478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39481 \begin_layout Plain Layout
39487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39490 \begin_layout Plain Layout
39492 \begin_inset space \thinspace{}
39496 \begin_inset space \thinspace{}
39506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39509 \begin_layout Plain Layout
39515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39518 \begin_layout Plain Layout
39520 \begin_inset space \thinspace{}
39524 \begin_inset Formula $\approx$
39528 \begin_inset space \thinspace{}
39538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39541 \begin_layout Plain Layout
39547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39550 \begin_layout Plain Layout
39552 \begin_inset space \thinspace{}
39556 \begin_inset space \thinspace{}
39566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39569 \begin_layout Plain Layout
39575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39578 \begin_layout Plain Layout
39579 % of original image width
39586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39589 \begin_layout Plain Layout
39595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39598 \begin_layout Plain Layout
39606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39609 \begin_layout Plain Layout
39615 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39618 \begin_layout Plain Layout
39626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39629 \begin_layout Plain Layout
39635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39638 \begin_layout Plain Layout
39646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39649 \begin_layout Plain Layout
39655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39658 \begin_layout Plain Layout
39666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39669 \begin_layout Plain Layout
39675 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39678 \begin_layout Plain Layout
39686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39689 \begin_layout Plain Layout
39695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39698 \begin_layout Plain Layout
39706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39709 \begin_layout Plain Layout
39715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39718 \begin_layout Plain Layout
39730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39733 \begin_layout Plain Layout
39739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39742 \begin_layout Plain Layout
39754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39757 \begin_layout Plain Layout
39763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39766 \begin_layout Plain Layout
39768 \begin_inset space \thinspace{}
39772 \begin_inset space \thinspace{}
39793 \begin_layout Chapter
39794 Output File Formats with Graphics
39795 \begin_inset CommandInset label
39797 name "cha:Output-File-Formats"
39804 \begin_layout Section
39806 \begin_inset Index idx
39809 \begin_layout Plain Layout
39816 \begin_inset Index idx
39819 \begin_layout Plain Layout
39824 \begin_layout Plain Layout
39835 \begin_layout Plain Layout
39850 \begin_layout Standard
39851 This file type has the extension
39852 \begin_inset Quotes eld
39860 \begin_inset Quotes erd
39865 \begin_inset Quotes eld
39869 \begin_inset Quotes erd
39872 (DVI), because it is completely portable; you can move them from one machine
39873 to another without needing to do any sort of conversion.
39874 At the time when this file-format was developed, this was no matter of
39876 DVIs are used for quick previews and as pre-stage for other output formats,
39880 \begin_layout Standard
39881 \begin_inset Note Greyedout
39884 \begin_layout Plain Layout
39889 DVI-files do not contain images; they will only be a linked.
39894 So don't forget this, if you move your
39898 file to another computer.
39899 This property can also slow down your computer when you view the DVI, because
39900 the DVI-viewer has to convert the image in the background to make it visible
39901 when you scroll in the DVI.
39902 So it is recommended that you use PDF for files with many images.
39905 \begin_layout Standard
39906 You can export your document to DVI by using the menu
39908 File\SpecialChar \menuseparator
39909 Export\SpecialChar \menuseparator
39913 You can view your document as DVI via the
39920 \begin_layout Section
39922 \begin_inset CommandInset label
39924 name "sec:PostScript"
39929 \begin_inset Index idx
39932 \begin_layout Plain Layout
39933 File Formats ! PostScript
39939 \begin_inset Index idx
39942 \begin_layout Plain Layout
39947 \begin_layout Plain Layout
39958 \begin_layout Plain Layout
39973 \begin_layout Standard
39974 This file type has the extension
39975 \begin_inset Quotes eld
39983 \begin_inset Quotes erd
39987 PostScript was developed by the company
39991 as a printer language.
39992 The file therefore contains commands that the printer uses to print the
39994 PostScript can be seen as a
39995 \begin_inset Quotes eld
39998 programming language
39999 \begin_inset Quotes erd
40002 ; you can calculate with it and draw diagrams and images
40006 \begin_layout Plain Layout
40007 If you are interested to learn more about this, have a look at the LaTeX-package
40013 \begin_inset CommandInset citation
40025 Due to this ability, the files are often bigger than PDFs.
40028 \begin_layout Standard
40029 PostScript can only contain images in the format
40030 \begin_inset Quotes eld
40033 Encapsulated PostScript
40034 \begin_inset Quotes erd
40037 (EPS, file extension
40038 \begin_inset Quotes eld
40046 \begin_inset Quotes erd
40050 As LyX allows you to use any known image format in your document, it has
40051 to convert images in the background to EPS.
40053 \begin_inset space ~
40057 \begin_inset space ~
40060 images in your document, LyX has to do 50
40061 \begin_inset space ~
40064 conversions whenever you view or export your document.
40065 This will slow down your work flow with LyX drastically.
40066 So if you plan to use PostScript, you can insert your images directly as
40067 EPS to avoid this problem.
40070 \begin_layout Standard
40071 You can export your document to PostScript using the menu
40073 File\SpecialChar \menuseparator
40074 Export\SpecialChar \menuseparator
40078 You can view your document as PostScript via the
40082 menu or by using the toolbar button
40083 \begin_inset Graphics
40084 filename ../images/buffer-view_ps.png
40086 scaleBeforeRotation
40093 \begin_layout Section
40095 \begin_inset Index idx
40098 \begin_layout Plain Layout
40105 \begin_inset Index idx
40108 \begin_layout Plain Layout
40117 \begin_layout Standard
40118 This file type has the extension
40119 \begin_inset Quotes eld
40127 \begin_inset Quotes erd
40132 \begin_inset Quotes eld
40135 Portable Document Format
40136 \begin_inset Quotes erd
40139 (PDF) was developed by
40143 as a derivative of PostScript.
40144 It is more compressed and it uses fewer commands than PostScript.
40146 \begin_inset Quotes eld
40150 \begin_inset Quotes erd
40153 implies, it can be processed at any computer system and the printed output
40154 looks exactly the same.
40157 \begin_layout Standard
40158 PDF can contain images in its own PDF format, in the format
40159 \begin_inset Quotes eld
40162 Joint Photographic Experts Group
40163 \begin_inset Quotes erd
40166 (JPG, file extension
40167 \begin_inset Quotes eld
40175 \begin_inset Quotes erd
40179 \begin_inset Quotes eld
40187 \begin_inset Quotes erd
40190 ), and in the format
40191 \begin_inset Quotes eld
40194 Portable Network Graphics
40195 \begin_inset Quotes erd
40198 (PNG, file extension
40199 \begin_inset Quotes eld
40207 \begin_inset Quotes erd
40211 Nevertheless you can use any other image format, because LyX converts them
40212 in the background to one of these formats.
40213 But as described in the section about PostScript, the image conversion
40214 will slow down your work flow.
40215 So it is recommended that you use images in one of the three mentioned
40219 \begin_layout Standard
40220 You can export your document to PDF via the menu
40222 File\SpecialChar \menuseparator
40225 in three different ways:
40228 \begin_layout Description
40230 \begin_inset space ~
40233 (ps2pdf) This uses the program
40237 that creates a PDF from a PostScript-version of your file.
40238 The PostScript-version is produced by the program
40242 which uses a DVI-version as intermediate step.
40243 So this export variant consists of three conversions.
40246 \begin_layout Description
40248 \begin_inset space ~
40251 (dvipdfm) This uses the program
40255 that converts your file in the background to DVI and in a second step to
40259 \begin_layout Description
40261 \begin_inset space ~
40264 (pdflatex) This uses the program
40268 that converts your file directly to PDF.
40271 \begin_layout Standard
40272 It is recommended that you use
40275 \begin_inset space ~
40284 supports all features of actual PDF-versions, is quick and works stable.
40289 is not under development and therefore a bit outdated.
40292 \begin_layout Standard
40293 You can view your document as PDF via the
40297 menu or by using the toolbar button
40298 \begin_inset Graphics
40299 filename ../images/buffer-view_pdf2.png
40301 scaleBeforeRotation
40312 \begin_inset space ~
40320 \begin_layout Chapter
40321 List of dvips color names
40322 \begin_inset CommandInset label
40324 name "chap:List-of-dvips-colornames"
40331 \begin_layout Standard
40332 \begin_inset Tabular
40333 <lyxtabular version="3" rows="17" columns="4">
40334 <features tabularvalignment="middle">
40335 <column alignment="left" valignment="top" width="0pt">
40336 <column alignment="left" valignment="top" width="0pt">
40337 <column alignment="left" valignment="top" width="0pt">
40338 <column alignment="left" valignment="top" width="0pt">
40340 <cell alignment="left" valignment="top" usebox="none">
40343 \begin_layout Plain Layout
40347 \begin_layout Plain Layout
40360 \begin_layout Plain Layout
40371 \begin_layout Plain Layout
40383 <cell alignment="left" valignment="top" usebox="none">
40386 \begin_layout Plain Layout
40390 \begin_layout Plain Layout
40403 \begin_layout Plain Layout
40414 \begin_layout Plain Layout
40426 <cell alignment="left" valignment="top" usebox="none">
40429 \begin_layout Plain Layout
40433 \begin_layout Plain Layout
40446 \begin_layout Plain Layout
40457 \begin_layout Plain Layout
40469 <cell alignment="left" valignment="top" usebox="none">
40472 \begin_layout Plain Layout
40476 \begin_layout Plain Layout
40489 \begin_layout Plain Layout
40500 \begin_layout Plain Layout
40514 <cell alignment="center" valignment="top" usebox="none">
40517 \begin_layout Plain Layout
40521 \begin_layout Plain Layout
40534 \begin_layout Plain Layout
40542 \begin_inset Phantom Phantom
40545 \begin_layout Plain Layout
40555 \begin_layout Plain Layout
40567 <cell alignment="center" valignment="top" usebox="none">
40570 \begin_layout Plain Layout
40574 \begin_layout Plain Layout
40587 \begin_layout Plain Layout
40595 \begin_inset Phantom Phantom
40598 \begin_layout Plain Layout
40608 \begin_layout Plain Layout
40620 <cell alignment="center" valignment="top" usebox="none">
40623 \begin_layout Plain Layout
40627 \begin_layout Plain Layout
40640 \begin_layout Plain Layout
40648 \begin_inset Phantom Phantom
40651 \begin_layout Plain Layout
40661 \begin_layout Plain Layout
40673 <cell alignment="center" valignment="top" usebox="none">
40676 \begin_layout Plain Layout
40680 \begin_layout Plain Layout
40693 \begin_layout Plain Layout
40701 \begin_inset Phantom Phantom
40704 \begin_layout Plain Layout
40714 \begin_layout Plain Layout
40728 <cell alignment="left" valignment="top" usebox="none">
40731 \begin_layout Plain Layout
40735 \begin_layout Plain Layout
40748 \begin_layout Plain Layout
40756 \begin_inset Phantom Phantom
40759 \begin_layout Plain Layout
40769 \begin_layout Plain Layout
40781 <cell alignment="left" valignment="top" usebox="none">
40784 \begin_layout Plain Layout
40788 \begin_layout Plain Layout
40801 \begin_layout Plain Layout
40809 \begin_inset Phantom Phantom
40812 \begin_layout Plain Layout
40822 \begin_layout Plain Layout
40834 <cell alignment="left" valignment="top" usebox="none">
40837 \begin_layout Plain Layout
40841 \begin_layout Plain Layout
40854 \begin_layout Plain Layout
40862 \begin_inset Phantom Phantom
40865 \begin_layout Plain Layout
40875 \begin_layout Plain Layout
40887 <cell alignment="left" valignment="top" usebox="none">
40890 \begin_layout Plain Layout
40894 \begin_layout Plain Layout
40907 \begin_layout Plain Layout
40915 \begin_inset Phantom Phantom
40918 \begin_layout Plain Layout
40928 \begin_layout Plain Layout
40942 <cell alignment="left" valignment="top" usebox="none">
40945 \begin_layout Plain Layout
40949 \begin_layout Plain Layout
40962 \begin_layout Plain Layout
40970 \begin_inset Phantom Phantom
40973 \begin_layout Plain Layout
40983 \begin_layout Plain Layout
40995 <cell alignment="left" valignment="top" usebox="none">
40998 \begin_layout Plain Layout
41002 \begin_layout Plain Layout
41015 \begin_layout Plain Layout
41023 \begin_inset Phantom Phantom
41026 \begin_layout Plain Layout
41036 \begin_layout Plain Layout
41048 <cell alignment="left" valignment="top" usebox="none">
41051 \begin_layout Plain Layout
41055 \begin_layout Plain Layout
41068 \begin_layout Plain Layout
41076 \begin_inset Phantom Phantom
41079 \begin_layout Plain Layout
41089 \begin_layout Plain Layout
41101 <cell alignment="left" valignment="top" usebox="none">
41104 \begin_layout Plain Layout
41108 \begin_layout Plain Layout
41121 \begin_layout Plain Layout
41129 \begin_inset Phantom Phantom
41132 \begin_layout Plain Layout
41142 \begin_layout Plain Layout
41156 <cell alignment="left" valignment="top" usebox="none">
41159 \begin_layout Plain Layout
41163 \begin_layout Plain Layout
41176 \begin_layout Plain Layout
41184 \begin_inset Phantom Phantom
41187 \begin_layout Plain Layout
41197 \begin_layout Plain Layout
41209 <cell alignment="left" valignment="top" usebox="none">
41212 \begin_layout Plain Layout
41216 \begin_layout Plain Layout
41229 \begin_layout Plain Layout
41237 \begin_inset Phantom Phantom
41240 \begin_layout Plain Layout
41250 \begin_layout Plain Layout
41262 <cell alignment="left" valignment="top" usebox="none">
41265 \begin_layout Plain Layout
41269 \begin_layout Plain Layout
41282 \begin_layout Plain Layout
41290 \begin_inset Phantom Phantom
41293 \begin_layout Plain Layout
41303 \begin_layout Plain Layout
41315 <cell alignment="left" valignment="top" usebox="none">
41318 \begin_layout Plain Layout
41322 \begin_layout Plain Layout
41335 \begin_layout Plain Layout
41343 \begin_inset Phantom Phantom
41346 \begin_layout Plain Layout
41356 \begin_layout Plain Layout
41370 <cell alignment="left" valignment="top" usebox="none">
41373 \begin_layout Plain Layout
41377 \begin_layout Plain Layout
41390 \begin_layout Plain Layout
41398 \begin_inset Phantom Phantom
41401 \begin_layout Plain Layout
41411 \begin_layout Plain Layout
41423 <cell alignment="left" valignment="top" usebox="none">
41426 \begin_layout Plain Layout
41430 \begin_layout Plain Layout
41443 \begin_layout Plain Layout
41451 \begin_inset Phantom Phantom
41454 \begin_layout Plain Layout
41464 \begin_layout Plain Layout
41476 <cell alignment="left" valignment="top" usebox="none">
41479 \begin_layout Plain Layout
41483 \begin_layout Plain Layout
41496 \begin_layout Plain Layout
41504 \begin_inset Phantom Phantom
41507 \begin_layout Plain Layout
41517 \begin_layout Plain Layout
41529 <cell alignment="left" valignment="top" usebox="none">
41532 \begin_layout Plain Layout
41536 \begin_layout Plain Layout
41549 \begin_layout Plain Layout
41557 \begin_inset Phantom Phantom
41560 \begin_layout Plain Layout
41570 \begin_layout Plain Layout
41584 <cell alignment="center" valignment="top" usebox="none">
41587 \begin_layout Plain Layout
41591 \begin_layout Plain Layout
41604 \begin_layout Plain Layout
41612 \begin_inset Phantom Phantom
41615 \begin_layout Plain Layout
41625 \begin_layout Plain Layout
41637 <cell alignment="center" valignment="top" usebox="none">
41640 \begin_layout Plain Layout
41644 \begin_layout Plain Layout
41657 \begin_layout Plain Layout
41665 \begin_inset Phantom Phantom
41668 \begin_layout Plain Layout
41678 \begin_layout Plain Layout
41690 <cell alignment="center" valignment="top" usebox="none">
41693 \begin_layout Plain Layout
41697 \begin_layout Plain Layout
41710 \begin_layout Plain Layout
41718 \begin_inset Phantom Phantom
41721 \begin_layout Plain Layout
41731 \begin_layout Plain Layout
41743 <cell alignment="center" valignment="top" usebox="none">
41746 \begin_layout Plain Layout
41750 \begin_layout Plain Layout
41763 \begin_layout Plain Layout
41771 \begin_inset Phantom Phantom
41774 \begin_layout Plain Layout
41784 \begin_layout Plain Layout
41798 <cell alignment="left" valignment="top" usebox="none">
41801 \begin_layout Plain Layout
41805 \begin_layout Plain Layout
41818 \begin_layout Plain Layout
41826 \begin_inset Phantom Phantom
41829 \begin_layout Plain Layout
41839 \begin_layout Plain Layout
41851 <cell alignment="left" valignment="top" usebox="none">
41854 \begin_layout Plain Layout
41858 \begin_layout Plain Layout
41871 \begin_layout Plain Layout
41879 \begin_inset Phantom Phantom
41882 \begin_layout Plain Layout
41892 \begin_layout Plain Layout
41904 <cell alignment="left" valignment="top" usebox="none">
41907 \begin_layout Plain Layout
41911 \begin_layout Plain Layout
41924 \begin_layout Plain Layout
41932 \begin_inset Phantom Phantom
41935 \begin_layout Plain Layout
41945 \begin_layout Plain Layout
41957 <cell alignment="left" valignment="top" usebox="none">
41960 \begin_layout Plain Layout
41964 \begin_layout Plain Layout
41977 \begin_layout Plain Layout
41985 \begin_inset Phantom Phantom
41988 \begin_layout Plain Layout
41998 \begin_layout Plain Layout
42012 <cell alignment="left" valignment="top" usebox="none">
42015 \begin_layout Plain Layout
42019 \begin_layout Plain Layout
42032 \begin_layout Plain Layout
42040 \begin_inset Phantom Phantom
42043 \begin_layout Plain Layout
42053 \begin_layout Plain Layout
42065 <cell alignment="left" valignment="top" usebox="none">
42068 \begin_layout Plain Layout
42072 \begin_layout Plain Layout
42085 \begin_layout Plain Layout
42093 \begin_inset Phantom Phantom
42096 \begin_layout Plain Layout
42106 \begin_layout Plain Layout
42118 <cell alignment="left" valignment="top" usebox="none">
42121 \begin_layout Plain Layout
42125 \begin_layout Plain Layout
42138 \begin_layout Plain Layout
42146 \begin_inset Phantom Phantom
42149 \begin_layout Plain Layout
42159 \begin_layout Plain Layout
42171 <cell alignment="left" valignment="top" usebox="none">
42174 \begin_layout Plain Layout
42178 \begin_layout Plain Layout
42191 \begin_layout Plain Layout
42199 \begin_inset Phantom Phantom
42202 \begin_layout Plain Layout
42212 \begin_layout Plain Layout
42226 <cell alignment="left" valignment="top" usebox="none">
42229 \begin_layout Plain Layout
42233 \begin_layout Plain Layout
42246 \begin_layout Plain Layout
42254 \begin_inset Phantom Phantom
42257 \begin_layout Plain Layout
42267 \begin_layout Plain Layout
42279 <cell alignment="left" valignment="top" usebox="none">
42282 \begin_layout Plain Layout
42286 \begin_layout Plain Layout
42299 \begin_layout Plain Layout
42307 \begin_inset Phantom Phantom
42310 \begin_layout Plain Layout
42320 \begin_layout Plain Layout
42332 <cell alignment="left" valignment="top" usebox="none">
42335 \begin_layout Plain Layout
42339 \begin_layout Plain Layout
42352 \begin_layout Plain Layout
42360 \begin_inset Phantom Phantom
42363 \begin_layout Plain Layout
42373 \begin_layout Plain Layout
42385 <cell alignment="left" valignment="top" usebox="none">
42388 \begin_layout Plain Layout
42392 \begin_layout Plain Layout
42405 \begin_layout Plain Layout
42413 \begin_inset Phantom Phantom
42416 \begin_layout Plain Layout
42426 \begin_layout Plain Layout
42440 <cell alignment="left" valignment="top" usebox="none">
42443 \begin_layout Plain Layout
42447 \begin_layout Plain Layout
42460 \begin_layout Plain Layout
42468 \begin_inset Phantom Phantom
42471 \begin_layout Plain Layout
42481 \begin_layout Plain Layout
42493 <cell alignment="left" valignment="top" usebox="none">
42496 \begin_layout Plain Layout
42500 \begin_layout Plain Layout
42513 \begin_layout Plain Layout
42521 \begin_inset Phantom Phantom
42524 \begin_layout Plain Layout
42534 \begin_layout Plain Layout
42546 <cell alignment="left" valignment="top" usebox="none">
42549 \begin_layout Plain Layout
42553 \begin_layout Plain Layout
42566 \begin_layout Plain Layout
42574 \begin_inset Phantom Phantom
42577 \begin_layout Plain Layout
42587 \begin_layout Plain Layout
42599 <cell alignment="left" valignment="top" usebox="none">
42602 \begin_layout Plain Layout
42606 \begin_layout Plain Layout
42619 \begin_layout Plain Layout
42627 \begin_inset Phantom Phantom
42630 \begin_layout Plain Layout
42640 \begin_layout Plain Layout
42654 <cell alignment="left" valignment="top" usebox="none">
42657 \begin_layout Plain Layout
42661 \begin_layout Plain Layout
42674 \begin_layout Plain Layout
42682 \begin_inset Phantom Phantom
42685 \begin_layout Plain Layout
42695 \begin_layout Plain Layout
42707 <cell alignment="left" valignment="top" usebox="none">
42710 \begin_layout Plain Layout
42714 \begin_layout Plain Layout
42727 \begin_layout Plain Layout
42735 \begin_inset Phantom Phantom
42738 \begin_layout Plain Layout
42748 \begin_layout Plain Layout
42760 <cell alignment="left" valignment="top" usebox="none">
42763 \begin_layout Plain Layout
42767 \begin_layout Plain Layout
42780 \begin_layout Plain Layout
42788 \begin_inset Phantom Phantom
42791 \begin_layout Plain Layout
42801 \begin_layout Plain Layout
42813 <cell alignment="left" valignment="top" usebox="none">
42816 \begin_layout Plain Layout
42820 \begin_layout Plain Layout
42833 \begin_layout Plain Layout
42841 \begin_inset Phantom Phantom
42844 \begin_layout Plain Layout
42854 \begin_layout Plain Layout
42868 <cell alignment="left" valignment="top" usebox="none">
42871 \begin_layout Plain Layout
42875 \begin_layout Plain Layout
42888 \begin_layout Plain Layout
42896 \begin_inset Phantom Phantom
42899 \begin_layout Plain Layout
42909 \begin_layout Plain Layout
42921 <cell alignment="left" valignment="top" usebox="none">
42924 \begin_layout Plain Layout
42928 \begin_layout Plain Layout
42941 \begin_layout Plain Layout
42949 \begin_inset Phantom Phantom
42952 \begin_layout Plain Layout
42962 \begin_layout Plain Layout
42974 <cell alignment="left" valignment="top" usebox="none">
42977 \begin_layout Plain Layout
42981 \begin_layout Plain Layout
42994 \begin_layout Plain Layout
43002 \begin_inset Phantom Phantom
43005 \begin_layout Plain Layout
43015 \begin_layout Plain Layout
43027 <cell alignment="left" valignment="top" usebox="none">
43030 \begin_layout Plain Layout
43034 \begin_layout Plain Layout
43047 \begin_layout Plain Layout
43055 \begin_inset Phantom Phantom
43058 \begin_layout Plain Layout
43068 \begin_layout Plain Layout
43082 <cell alignment="left" valignment="top" usebox="none">
43085 \begin_layout Plain Layout
43089 \begin_layout Plain Layout
43102 \begin_layout Plain Layout
43110 \begin_inset Phantom Phantom
43113 \begin_layout Plain Layout
43123 \begin_layout Plain Layout
43135 <cell alignment="left" valignment="top" usebox="none">
43138 \begin_layout Plain Layout
43142 \begin_layout Plain Layout
43155 \begin_layout Plain Layout
43163 \begin_inset Phantom Phantom
43166 \begin_layout Plain Layout
43176 \begin_layout Plain Layout
43188 <cell alignment="left" valignment="top" usebox="none">
43191 \begin_layout Plain Layout
43195 \begin_layout Plain Layout
43208 \begin_layout Plain Layout
43216 \begin_inset Phantom Phantom
43219 \begin_layout Plain Layout
43229 \begin_layout Plain Layout
43241 <cell alignment="left" valignment="top" usebox="none">
43244 \begin_layout Plain Layout
43248 \begin_layout Plain Layout
43261 \begin_layout Plain Layout
43269 \begin_inset Phantom Phantom
43272 \begin_layout Plain Layout
43282 \begin_layout Plain Layout
43296 <cell alignment="left" valignment="top" usebox="none">
43299 \begin_layout Plain Layout
43303 \begin_layout Plain Layout
43316 \begin_layout Plain Layout
43324 \begin_inset Phantom Phantom
43327 \begin_layout Plain Layout
43337 \begin_layout Plain Layout
43349 <cell alignment="left" valignment="top" usebox="none">
43352 \begin_layout Plain Layout
43356 \begin_layout Plain Layout
43369 \begin_layout Plain Layout
43377 \begin_inset Phantom Phantom
43380 \begin_layout Plain Layout
43390 \begin_layout Plain Layout
43402 <cell alignment="left" valignment="top" usebox="none">
43405 \begin_layout Plain Layout
43409 \begin_layout Plain Layout
43422 \begin_layout Plain Layout
43430 \begin_inset Phantom Phantom
43433 \begin_layout Plain Layout
43443 \begin_layout Plain Layout
43455 <cell alignment="left" valignment="top" usebox="none">
43458 \begin_layout Plain Layout
43462 \begin_layout Plain Layout
43475 \begin_layout Plain Layout
43483 \begin_inset Phantom Phantom
43486 \begin_layout Plain Layout
43496 \begin_layout Plain Layout
43510 <cell alignment="left" valignment="top" usebox="none">
43513 \begin_layout Plain Layout
43517 \begin_layout Plain Layout
43530 \begin_layout Plain Layout
43538 \begin_inset Phantom Phantom
43541 \begin_layout Plain Layout
43551 \begin_layout Plain Layout
43563 <cell alignment="left" valignment="top" usebox="none">
43566 \begin_layout Plain Layout
43570 \begin_layout Plain Layout
43583 \begin_layout Plain Layout
43591 \begin_inset Phantom Phantom
43594 \begin_layout Plain Layout
43604 \begin_layout Plain Layout
43616 <cell alignment="left" valignment="top" usebox="none">
43619 \begin_layout Plain Layout
43623 \begin_layout Plain Layout
43636 \begin_layout Plain Layout
43644 \begin_inset Phantom Phantom
43647 \begin_layout Plain Layout
43657 \begin_layout Plain Layout
43669 <cell alignment="left" valignment="top" usebox="none">
43672 \begin_layout Plain Layout
43676 \begin_layout Plain Layout
43689 \begin_layout Plain Layout
43697 \begin_inset Phantom Phantom
43700 \begin_layout Plain Layout
43710 \begin_layout Plain Layout
43724 <cell alignment="left" valignment="top" usebox="none">
43727 \begin_layout Plain Layout
43731 \begin_layout Plain Layout
43744 \begin_layout Plain Layout
43752 \begin_inset Phantom Phantom
43755 \begin_layout Plain Layout
43765 \begin_layout Plain Layout
43777 <cell alignment="left" valignment="top" usebox="none">
43780 \begin_layout Plain Layout
43786 <cell alignment="left" valignment="top" usebox="none">
43789 \begin_layout Plain Layout
43795 <cell alignment="left" valignment="top" usebox="none">
43798 \begin_layout Plain Layout
43812 \begin_layout Chapter
43813 Explanation of Equation
43814 \begin_inset space ~
43818 \begin_inset CommandInset ref
43825 \begin_inset CommandInset label
43827 name "cha:Explanation-of-Equation"
43834 \begin_layout Standard
43835 We can calculate the total width of
43840 \begin_inset Formula $W_{\mathrm{tot\, n}}$
43844 \begin_inset Formula
43846 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
43852 \begin_inset Formula $W_{g\, n}$
43855 is the given width of all cells,
43861 is the LaTeX-length between the cell text and the cell border (its default
43863 \begin_inset space \thinspace{}
43873 is the thickness of the cell border line, the default is 0.4
43874 \begin_inset space \thinspace{}
43880 \begin_layout Standard
43882 \begin_inset space ~
43886 \begin_inset CommandInset ref
43888 reference "eq:Wtot_n"
43892 , the total width of a multicolumn
43893 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
43897 \begin_inset Formula
43899 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
43907 \begin_layout Standard
43908 By setting equation
43909 \begin_inset space ~
43913 \begin_inset CommandInset ref
43915 reference "eq:Wtot_n"
43920 \begin_inset CommandInset ref
43922 reference "eq:Wtot_mult"
43926 equal we can calculate the needed given width
43927 \begin_inset Formula $W_{g\, n}$
43934 columns are spanned, so that each column has a total width of
43935 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
43939 \begin_inset Formula
43941 W_{g\, n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
43949 \begin_layout Bibliography
43950 \labelwidthstring Bibliography
43951 \begin_inset CommandInset bibitem
43952 LatexCommand bibitem
43953 key "latexcompanion"
43957 Frank Mittelbach and Michel Goossens:
43959 The LaTeX Companion Second Edition.
43962 Addison-Wesley, 2004
43965 \begin_layout Bibliography
43966 \labelwidthstring Bibliography
43967 \begin_inset CommandInset bibitem
43968 LatexCommand bibitem
43973 Helmut Kopka and Patrick W.
43976 A Guide to LaTeX Fourth Edition.
43979 Addison-Wesley, 2003
43982 \begin_layout Bibliography
43983 \labelwidthstring Bibliography
43984 \begin_inset CommandInset bibitem
43985 LatexCommand bibitem
43992 LaTeX: A Document Preparation System.
43995 Addison-Wesley, second edition, 1994
43998 \begin_layout Bibliography
43999 \labelwidthstring Bibliography
44000 \begin_inset CommandInset bibitem
44001 LatexCommand bibitem
44006 Documentation of the LaTeX-package
44009 \begin_inset CommandInset href
44012 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
44019 \begin_inset Index idx
44022 \begin_layout Plain Layout
44023 LaTeX-packages ! arydshln
44031 \begin_layout Bibliography
44032 \labelwidthstring Bibliography
44033 \begin_inset CommandInset bibitem
44034 LatexCommand bibitem
44039 Documentation of the LaTeX-package
44042 \begin_inset CommandInset href
44045 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
44052 \begin_inset Index idx
44055 \begin_layout Plain Layout
44056 LaTeX-packages ! booktabs
44064 \begin_layout Bibliography
44065 \labelwidthstring Bibliography
44066 \begin_inset CommandInset bibitem
44067 LatexCommand bibitem
44072 Documentation of the LaTeX-package
44075 \begin_inset CommandInset href
44078 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
44085 \begin_inset Index idx
44088 \begin_layout Plain Layout
44089 LaTeX-packages ! caption
44097 \begin_layout Bibliography
44098 \labelwidthstring Bibliography
44099 \begin_inset CommandInset bibitem
44100 LatexCommand bibitem
44105 Documentation of the LaTeX-package
44108 \begin_inset CommandInset href
44111 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
44118 \begin_inset Index idx
44121 \begin_layout Plain Layout
44122 LaTeX-packages ! diagbox
44130 \begin_layout Bibliography
44131 \labelwidthstring Bibliography
44132 \begin_inset CommandInset bibitem
44133 LatexCommand bibitem
44138 Documentation of the LaTeX-package
44141 \begin_inset CommandInset href
44144 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
44151 \begin_inset Index idx
44154 \begin_layout Plain Layout
44155 LaTeX-packages ! endfloat
44163 \begin_layout Bibliography
44164 \labelwidthstring Bibliography
44165 \begin_inset CommandInset bibitem
44166 LatexCommand bibitem
44171 Documentation of the LaTeX-package
44174 \begin_inset CommandInset href
44177 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
44184 \begin_inset Index idx
44187 \begin_layout Plain Layout
44188 LaTeX-packages ! footmisc
44196 \begin_layout Bibliography
44197 \labelwidthstring Bibliography
44198 \begin_inset CommandInset bibitem
44199 LatexCommand bibitem
44204 Documentation of the LaTeX-package
44207 \begin_inset CommandInset href
44210 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
44217 \begin_inset Index idx
44220 \begin_layout Plain Layout
44221 LaTeX-packages ! hyperref
44229 \begin_layout Bibliography
44230 \labelwidthstring Bibliography
44231 \begin_inset CommandInset bibitem
44232 LatexCommand bibitem
44237 Documentation of the LaTeX-package
44240 \begin_inset CommandInset href
44243 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
44250 \begin_inset Index idx
44253 \begin_layout Plain Layout
44254 LaTeX-packages ! hyperref
44262 \begin_layout Bibliography
44263 \labelwidthstring Bibliography
44264 \begin_inset CommandInset bibitem
44265 LatexCommand bibitem
44270 Documentation of the LaTeX-package
44273 \begin_inset CommandInset href
44276 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
44283 \begin_inset Index idx
44286 \begin_layout Plain Layout
44287 LaTeX-packages ! KOMA-Script
44295 \begin_layout Bibliography
44296 \labelwidthstring Bibliography
44297 \begin_inset CommandInset bibitem
44298 LatexCommand bibitem
44303 Documentation of the LaTeX-package
44306 \begin_inset CommandInset href
44309 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
44316 \begin_inset CommandInset href
44319 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
44324 \begin_inset Index idx
44327 \begin_layout Plain Layout
44328 LaTeX-packages ! lettrine
44336 \begin_layout Bibliography
44337 \labelwidthstring Bibliography
44338 \begin_inset CommandInset bibitem
44339 LatexCommand bibitem
44344 Documentation of the LaTeX-package
44347 \begin_inset CommandInset href
44350 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
44357 \begin_inset Index idx
44360 \begin_layout Plain Layout
44361 LaTeX-packages ! listings
44369 \begin_layout Bibliography
44370 \labelwidthstring Bibliography
44371 \begin_inset CommandInset bibitem
44372 LatexCommand bibitem
44377 Documentation of the LaTeX-package
44380 \begin_inset CommandInset href
44383 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
44390 \begin_inset Index idx
44393 \begin_layout Plain Layout
44394 LaTeX-packages ! marginnote
44402 \begin_layout Bibliography
44403 \labelwidthstring Bibliography
44404 \begin_inset CommandInset bibitem
44405 LatexCommand bibitem
44410 Documentation of the LaTeX-package
44413 \begin_inset CommandInset href
44416 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
44423 \begin_inset Index idx
44426 \begin_layout Plain Layout
44427 LaTeX-packages ! pdfpages
44435 \begin_layout Bibliography
44436 \labelwidthstring Bibliography
44437 \begin_inset CommandInset bibitem
44438 LatexCommand bibitem
44443 Documentation of the LaTeX-package
44446 \begin_inset CommandInset href
44449 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
44456 \begin_inset Index idx
44459 \begin_layout Plain Layout
44460 LaTeX-packages ! prettyref
44468 \begin_layout Bibliography
44469 \labelwidthstring Bibliography
44470 \begin_inset CommandInset bibitem
44471 LatexCommand bibitem
44476 Web page of the LaTeX-package
44479 \begin_inset CommandInset href
44482 target "http://tug.org/PSTricks/"
44489 \begin_inset Index idx
44492 \begin_layout Plain Layout
44493 LaTeX-packages ! PSTricks
44501 \begin_layout Bibliography
44502 \labelwidthstring Bibliography
44503 \begin_inset CommandInset bibitem
44504 LatexCommand bibitem
44509 Documentation of the LaTeX-package
44512 \begin_inset CommandInset href
44515 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
44522 \begin_inset Index idx
44525 \begin_layout Plain Layout
44526 LaTeX-packages ! refstyle
44534 \begin_layout Bibliography
44535 \labelwidthstring Bibliography
44536 \begin_inset CommandInset bibitem
44537 LatexCommand bibitem
44542 Documentation of the LaTeX-package
44545 \begin_inset CommandInset href
44548 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
44555 \begin_inset Index idx
44558 \begin_layout Plain Layout
44559 LaTeX-packages ! sidecap
44567 \begin_layout Bibliography
44568 \labelwidthstring Bibliography
44569 \begin_inset CommandInset bibitem
44570 LatexCommand bibitem
44576 \begin_inset CommandInset href
44579 target "http://wiki.lyx.org/LyX/NewInLyX20"
44583 about new features in
44590 \begin_layout Standard
44591 \begin_inset CommandInset index_print
44592 LatexCommand printindex