1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
12 % set fonts for nicer pdf view
13 \IfFileExists{lmodern.sty}
14 {\usepackage{lmodern}}{}
16 \fi % end if pdflatex is used
18 % that links to image floats jumps
19 % to the beginning of the float and
21 \usepackage[figure]{hypcap}
23 % the pages of the TOC is numbered roman
24 % and a PDF-bookmark for the TOC is added
25 \let\myTOC\tableofcontents
26 \renewcommand\tableofcontents{%
28 \pdfbookmark[1]{\contentsname}{}
32 % provides caption formatting
33 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
35 % provides commands to set caption
36 % beside tables/images
37 \newcommand{\TabBesBeg}[1][1.0]{%
39 \let\MyEndtable\endtable
40 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
42 \newcommand{\TabBesEnd}{%
44 \let\endtable\MyEndtable}
46 \newcommand{\FigBesBeg}[1][1.0]{%
48 \let\MyEndfigure\endfigure
49 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
51 \newcommand{\FigBesEnd}{%
53 \let\endfigure\MyEndfigure}
55 % enables calculation of values,
58 % increase the bottom float placement fraction
59 \renewcommand{\bottomfraction}{0.5}
61 % avoids that floats are placed before their
62 % corresponding section starts
63 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
65 % speed up the longtable calculation
66 \setcounter{LTchunksize}{100}
68 % used for scaled and rotated boxes
69 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
71 % used for colored tables
72 \@ifundefined{textcolor}
73 {\usepackage{color}}{}
74 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
75 \definecolor{lightgrey}{gray}{0.8}
77 % check for package colortbl
78 % used for colored table cells
80 \IfFileExists{colortbl.sty}
81 {\usepackage{colortbl}
82 \setboolean{colortbl}{true}}
83 {\setboolean{colortbl}{false}}
85 % used to have extra space in table cells
86 \@ifundefined{extrarowheight}
87 {\usepackage{array}}{}
88 \setlength{\extrarowheight}{2pt}
90 % used for customized tables
93 {>{\centering\hspace{0pt}}m{#1}}
96 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
99 {>{\columncolor{#1}\hspace{0pt}}c}
101 \newcolumntype{V}{!{\vrule width 1.5pt}}
103 \newcolumntype{W}{!{\color{green}\vline}}
106 % insert additional vertical space of
107 % 1.5 mm between footnotes
109 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
111 % number algorithm floats within chapters
112 \numberwithin{algorithm}{chapter}
114 % ------------------------------------
115 % used to check for needed LaTeX packages
118 % check for package arydshln
119 % used for tables with dashed lines
120 \newboolean{arydshln}
121 \IfFileExists{arydshln.sty}
122 {\usepackage{arydshln}
123 \setboolean{arydshln}{true}}
124 {\setboolean{arydshln}{false}}
126 % check for package marginnote
127 % used for margin notes
128 \newboolean{marginnote}
129 \IfFileExists{marginnote.sty}
130 {\usepackage{marginnote}
131 \let\marginpar\marginnote
132 \setboolean{marginnote}{true}}
133 {\setboolean{marginnote}{false}}
135 % check for package sidecap
136 % used for captions on the side
138 \IfFileExists{sidecap.sty}
139 {\usepackage{sidecap}
140 \setboolean{sidecap}{true}}
141 {\setboolean{sidecap}{false}}
144 % used for surrounded fixed objects
145 \newboolean{picinpar}
146 \IfFileExists{picinpar.sty}
147 {\usepackage{picinpar}
148 \setboolean{picinpar}{true}}
149 {\setboolean{picinpar}{false}}
152 \newboolean{lettrine}
153 \IfFileExists{lettrine.sty}
154 {\usepackage{lettrine}
155 \setboolean{lettrine}{true}}
156 {\setboolean{lettrine}{false}}
160 \IfFileExists{diagbox.sty}
161 {\usepackage{diagbox}
162 \setboolean{diagbox}{true}}
163 {\setboolean{diagbox}{false}}
165 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,usenames,dvipsnames,table
166 \use_default_options false
170 \maintain_unincluded_children false
172 \language_package default
177 \font_typewriter default
179 \font_default_family default
180 \use_non_tex_fonts false
186 \default_output_format default
188 \bibtex_command default
189 \index_command default
193 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
194 \pdf_author "LyX Team, Uwe Stöhr"
195 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
196 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
198 \pdf_bookmarksnumbered true
199 \pdf_bookmarksopen true
200 \pdf_bookmarksopenlevel 1
201 \pdf_breaklinks false
205 \pdf_pdfusetitle false
206 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
209 \use_package amsmath 2
210 \use_package amssymb 2
211 \use_package cancel 0
213 \use_package mathdots 1
214 \use_package mathtools 0
215 \use_package mhchem 1
216 \use_package stackrel 0
217 \use_package stmaryrd 0
218 \use_package undertilde 0
220 \cite_engine_type default
224 \paperorientation portrait
228 \notefontcolor #0000ff
235 \paragraph_separation skip
237 \quotes_language english
240 \paperpagestyle default
241 \tracking_changes false
242 \output_changes false
245 \html_be_strict false
252 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
256 by the \SpecialChar LyX
261 \begin_layout Plain Layout
263 If you have comments or error corrections, please send them to the \SpecialChar LyX
266 \begin_inset CommandInset href
268 name "lyx-docs@lists.lyx.org"
269 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
280 \begin_inset Note Note
283 \begin_layout Plain Layout
290 \begin_inset Newline newline
294 \begin_inset Newline newline
302 \begin_layout Standard
303 \begin_inset CommandInset toc
304 LatexCommand tableofcontents
311 \begin_layout Standard
312 \begin_inset Note Note
315 \begin_layout Plain Layout
316 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
327 diagbox, lettrine, marginnote, picinpar
334 If they are not installed you can export the document anyway but the sections
335 where the packages are required won't appear in the output.
338 \begin_layout Plain Layout
339 The latest PDF-version of this document can be found here:
340 \begin_inset Newline newline
345 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
353 \begin_layout Chapter
355 \begin_inset Index idx
358 \begin_layout Plain Layout
365 \begin_inset Index idx
368 \begin_layout Plain Layout
373 \begin_layout Plain Layout
384 \begin_layout Plain Layout
399 \begin_layout Section
401 \begin_inset Index idx
404 \begin_layout Plain Layout
405 Figures ! Graphics Dialog
411 \begin_inset CommandInset label
413 name "sec:Graphics-Dialog"
420 \begin_layout Standard
421 To insert an image into your document, place the cursor at the text position
422 you want and click on the toolbar icon
425 arg "dialog-show-new-inset graphics"
430 Insert\SpecialChar menuseparator
434 Then a dialog will appear to choose the file to load.
435 The image will appear in the output exactly at the position where it is
439 \begin_layout Standard
440 The graphics dialog can be called at any time by clicking on an image.
441 This dialog has three tabs:
444 \begin_layout Description
449 Here you can choose an image file and adjust its appearance in the output.
450 The available units for the image size are explained in appendix
455 \begin_inset CommandInset ref
457 reference "cha:Units-available-in"
462 \begin_inset Newline newline
466 \begin_inset Index idx
469 \begin_layout Plain Layout
475 You can rotate images counter-clockwise by setting a rotation angle and
477 The image will also be rotated inside \SpecialChar LyX
479 \begin_inset Newline newline
483 \begin_inset Index idx
486 \begin_layout Plain Layout
492 Images can be scaled by using a percentage value or by setting the width
493 and height explicitly.
494 If you set only the width or only the height, the other size will be determined
496 If you set both, then the image will be transformed to the given size,
497 possibly distorting it.
498 To prevent the image from distortion, use the option
500 Maintain aspect ratio
503 The image will then be scaled so that its width and height don't exceed
504 the specified dimensions.
505 \begin_inset Newline newline
508 Images can be opened in a program of your choice by right-clicking on it
509 and choosing the entry
518 The program can be set for every image format in the file format settings
523 \begin_layout Description
528 Alternatively to the usage of scaling units it is possible to set image
529 coordinates to adjust the height and width of the image in the output.
530 The coordinates can also be calculated automatically by pressing the button
560 will only print the image region within the given coordinates.
561 Normally you don't need to worry about image coordinates and can ignore
565 \begin_layout Description
582 In this tab you can modify the appearance of the image within \SpecialChar LyX
583 and \SpecialChar LaTeX
585 can specify additional \SpecialChar LaTeX
587 \begin_inset Newline newline
598 makes the image appear in the output only as a frame with the size of the
600 \begin_inset Newline newline
611 you can define or join an image settings group.
612 \begin_inset Index idx
615 \begin_layout Plain Layout
616 Figures ! Settings grouping
621 Images within such a group share their settings, so adjusting one image
622 of the group automatically also adjusts all other images of the group in
624 So you can for example change the size for a bunch of images without the
625 need to manually change each of them.
626 Joining an existing group can also be done using the context menu of the
627 image by checking the name of the desired group.
630 \begin_layout Standard
631 \begin_inset VSpace bigskip
637 \begin_layout Standard
638 This is an example image in EPS format
642 \begin_layout Plain Layout
643 Image formats are explained in section
648 \begin_inset CommandInset ref
650 reference "sec:Image-Formats"
659 within a separate, horizontally centered paragraph:
660 \begin_inset Separator parbreak
666 \begin_layout Standard
668 \begin_inset Graphics
669 filename clipart/mobius.eps
679 \begin_layout Standard
680 This is the same image like the one above but in draft mode:
681 \begin_inset Separator parbreak
687 \begin_layout Standard
689 \begin_inset Graphics
690 filename clipart/mobius.eps
701 \begin_layout Standard
702 \begin_inset Newpage newpage
708 \begin_layout Section
710 \begin_inset CommandInset label
712 name "sec:Figure-Floats"
717 \begin_inset Index idx
720 \begin_layout Plain Layout
727 \begin_inset Index idx
730 \begin_layout Plain Layout
739 \begin_layout Standard
740 For general explanations about floats, have a look at section
745 \begin_inset CommandInset ref
747 reference "sec:FloatIntroduction"
754 \begin_layout Standard
758 arg "float-insert figure"
763 Insert\SpecialChar menuseparator
764 Float\SpecialChar menuseparator
767 inserts a float with a caption that has the label
768 \begin_inset Quotes eld
776 \begin_inset Quotes erd
779 (# is the actual number).
780 You can insert the image above the caption, like in Figure
785 \begin_inset CommandInset ref
787 reference "fig:kill-plat"
791 or below the caption, like in Figure
796 \begin_inset CommandInset ref
798 reference "fig:escher"
803 More about caption placement is described in section
808 \begin_inset CommandInset ref
810 reference "sec:Caption-Placement"
817 \begin_layout Standard
818 \begin_inset Float figure
823 \begin_layout Plain Layout
825 \begin_inset Graphics
826 filename clipart/platypus.eps
836 \begin_layout Plain Layout
837 \begin_inset Caption Standard
839 \begin_layout Plain Layout
840 \begin_inset CommandInset label
846 A severely distorted platypus in a float.
859 \begin_layout Standard
860 \begin_inset Float figure
865 \begin_layout Plain Layout
866 \begin_inset Caption Standard
868 \begin_layout Plain Layout
869 \begin_inset CommandInset label
884 \begin_layout Plain Layout
886 \begin_inset Graphics
887 filename clipart/escher-lsd.eps
902 \begin_layout Standard
903 \begin_inset Index idx
906 \begin_layout Plain Layout
907 References ! to Figures
917 \begin_inset CommandInset ref
919 reference "fig:kill-plat"
924 \begin_inset CommandInset ref
926 reference "fig:escher"
930 are examples of referenced figures.
931 Figures can be referenced in the text by referencing their label.
932 To do this insert a label in the caption using the menu
934 Insert\SpecialChar menuseparator
937 or the toolbar button
944 You can now refer to the label using the menu
946 Insert\SpecialChar menuseparator
953 or the toolbar button
956 arg "dialog-show-new-inset ref"
960 It is important to use references to floats, rather than using vague references
962 \begin_inset Quotes eld
966 \begin_inset Quotes erd
969 , because \SpecialChar LaTeX
970 will reposition the floats in the final document and it might
972 \begin_inset Quotes eld
976 \begin_inset Quotes erd
980 \begin_inset Newline newline
983 Referencing is explained in detail in section
988 \begin_inset CommandInset ref
990 reference "sec:Referencing-Floats"
997 \begin_layout Standard
998 Normally only one image is inserted to a figure float, but sometimes you
999 might want to use two images with separate subcaptions.
1000 This can be done by inserting image floats into existing image floats.
1001 Note that only the main caption of the float is added to the List of Figures.
1003 \begin_inset space ~
1007 \begin_inset CommandInset ref
1009 reference "fig:Two-distorted-images"
1013 is an example of a figure float with two images set side by side.
1014 You can also set the images one below the other.
1016 \begin_inset space ~
1020 \begin_inset CommandInset ref
1022 reference "fig:Undefinable-structure"
1027 \begin_inset CommandInset ref
1029 reference "fig:A-Platypus"
1036 \begin_layout Standard
1037 \begin_inset Float figure
1042 \begin_layout Plain Layout
1043 \begin_inset space \hfill{}
1047 \begin_inset Float figure
1052 \begin_layout Plain Layout
1053 \begin_inset Caption Standard
1055 \begin_layout Plain Layout
1056 \begin_inset CommandInset label
1058 name "fig:Undefinable-structure"
1062 Undefinable structure.
1070 \begin_layout Plain Layout
1071 \begin_inset Graphics
1072 filename clipart/escher-lsd.eps
1085 \begin_inset space \hfill{}
1089 \begin_inset Float figure
1094 \begin_layout Plain Layout
1095 \begin_inset Caption Standard
1097 \begin_layout Plain Layout
1098 \begin_inset CommandInset label
1100 name "fig:A-Platypus"
1112 \begin_layout Plain Layout
1113 \begin_inset Graphics
1114 filename clipart/platypus.eps
1127 \begin_inset space \hfill{}
1133 \begin_layout Plain Layout
1134 \begin_inset Caption Standard
1136 \begin_layout Plain Layout
1137 \begin_inset CommandInset label
1139 name "fig:Two-distorted-images"
1143 Two distorted images.
1144 Both images are in the image settings group named
1145 \begin_inset Quotes eld
1149 \begin_inset Quotes erd
1165 \begin_layout Standard
1166 \begin_inset Newpage newpage
1172 \begin_layout Section
1174 \begin_inset CommandInset label
1176 name "sec:Image-Formats"
1181 \begin_inset Index idx
1184 \begin_layout Plain Layout
1191 \begin_inset Index idx
1194 \begin_layout Plain Layout
1195 Figures ! Image Formats
1203 \begin_layout Standard
1204 You can insert images in any known file format.
1205 But as explained in appendix
1206 \begin_inset space ~
1210 \begin_inset CommandInset ref
1212 reference "cha:Output-File-Formats"
1216 , each output document format allows only a few image formats.
1218 uses therefore the program
1222 in the background to convert the images to the right format.
1223 To increase your work flow by avoiding these conversions in the background,
1224 you could choose to use only the image formats that can directly be embedded
1225 in the output file format.
1226 The output file formats are explained in appendix
1227 \begin_inset space ~
1231 \begin_inset CommandInset ref
1233 reference "cha:Output-File-Formats"
1240 \begin_layout Standard
1241 Similar to fonts there are two types of image formats:
1244 \begin_layout Description
1246 \begin_inset space ~
1249 images consist of pixel values, often in a compressed form.
1250 They are therefore not fully scalable and look pixelated in large zooms.
1251 Well-known bitmap image formats are
1252 \begin_inset Quotes eld
1255 Graphics Interchange Format
1256 \begin_inset Quotes erd
1259 (GIF, file extension
1260 \begin_inset Quotes eld
1268 \begin_inset Quotes erd
1272 \begin_inset Index idx
1275 \begin_layout Plain Layout
1280 \begin_layout Plain Layout
1291 \begin_layout Plain Layout
1304 \begin_inset Quotes eld
1307 Portable Network Graphics
1308 \begin_inset Quotes erd
1311 (PNG, file extension
1312 \begin_inset Quotes eld
1320 \begin_inset Quotes erd
1324 \begin_inset Index idx
1327 \begin_layout Plain Layout
1332 \begin_layout Plain Layout
1343 \begin_layout Plain Layout
1356 \begin_inset Quotes eld
1359 Joint Photographic Experts Group
1360 \begin_inset Quotes erd
1363 (JPG, file extension
1364 \begin_inset Quotes eld
1372 \begin_inset Quotes erd
1376 \begin_inset Quotes eld
1384 \begin_inset Quotes erd
1388 \begin_inset Index idx
1391 \begin_layout Plain Layout
1396 \begin_layout Plain Layout
1407 \begin_layout Plain Layout
1422 \begin_layout Description
1424 \begin_inset space ~
1427 images consist of vectors and can therefore be scaled to any size without
1429 The scaling ability is necessary if you want to create presentations, because
1430 presentations are always scaled by the video projector.
1431 Scaling is also useful for online documents to let the user zoom into diagrams.
1432 \begin_inset Newline newline
1435 Well-known scalable image formats are
1436 \begin_inset Quotes eld
1439 Scalable Vector Graphics
1440 \begin_inset Quotes erd
1443 (SVG, file extension
1444 \begin_inset Quotes eld
1452 \begin_inset Quotes erd
1456 \begin_inset Index idx
1459 \begin_layout Plain Layout
1464 \begin_layout Plain Layout
1475 \begin_layout Plain Layout
1488 \begin_inset Quotes eld
1491 Encapsulated PostScript
1492 \begin_inset Quotes erd
1495 (EPS, file extension
1496 \begin_inset Quotes eld
1504 \begin_inset Quotes erd
1508 \begin_inset Index idx
1511 \begin_layout Plain Layout
1516 \begin_layout Plain Layout
1527 \begin_layout Plain Layout
1540 \begin_inset Quotes eld
1543 Portable Document Format
1544 \begin_inset Quotes erd
1547 (PDF, file extension
1548 \begin_inset Quotes eld
1556 \begin_inset Quotes erd
1560 \begin_inset Index idx
1563 \begin_layout Plain Layout
1570 \begin_inset Quotes eld
1574 \begin_inset Quotes erd
1577 (WMF, file extension
1578 \begin_inset Quotes eld
1586 \begin_inset Quotes erd
1590 \begin_inset Index idx
1593 \begin_layout Plain Layout
1598 \begin_layout Plain Layout
1609 \begin_layout Plain Layout
1623 \begin_inset Quotes eld
1627 \begin_inset Quotes erd
1630 , because you can convert any bitmap image to a PDF or EPS-image and the
1631 result will still be a bitmap image.
1632 In such cases only a header with the image properties is added to the original
1637 \begin_layout Plain Layout
1638 In the case of PDF, the original image is additionally compressed.
1644 The PDF-files generated by
1648 are for example bitmap images.
1651 \begin_layout Standard
1652 Normally it is not possible to convert a bitmap image into a scalable one,
1654 Only the image formats PDF and EPS can directly be embedded to PDF and
1655 PostScript output files, respectively.
1656 SVG and WMF-images are recalculated to bitmaps when the output file is
1657 generated because there is currently no adequate WMF/SVG
1658 \begin_inset Formula $\to$
1661 PDF/EPS converter available.
1664 \begin_layout Chapter
1666 \begin_inset Index idx
1669 \begin_layout Plain Layout
1678 \begin_layout Section
1680 \begin_inset Index idx
1683 \begin_layout Plain Layout
1684 Table ! Introduction
1692 \begin_layout Standard
1693 You can insert a table using either the toolbar button
1696 arg "tabular-insert"
1701 Insert\SpecialChar menuseparator
1705 The toolbar button offers you a graphical selection: move the mouse to
1706 set the column/row number of the table that should be created and then
1707 press a mouse button.
1708 When you use the menu to create a table, a dialog will appear, asking you
1709 for the number of rows and columns.
1710 \begin_inset Newline newline
1713 The default table has lines around any cell and the first row appears separated
1714 from the rest of the table.
1715 This separation occurs due to a double line: The cells of the first row
1716 have a line below them and the cells of the second row have a line above
1718 Here is an example table:
1719 \begin_inset Separator parbreak
1725 \begin_layout Standard
1727 \begin_inset Tabular
1728 <lyxtabular version="3" rows="4" columns="4">
1729 <features tabularvalignment="middle">
1730 <column alignment="center" valignment="top">
1731 <column alignment="center" valignment="top">
1732 <column alignment="center" valignment="top">
1733 <column alignment="center" valignment="top">
1735 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1738 \begin_layout Plain Layout
1744 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1747 \begin_layout Plain Layout
1762 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1765 \begin_layout Plain Layout
1771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1774 \begin_layout Plain Layout
1782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1785 \begin_layout Plain Layout
1800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1803 \begin_layout Plain Layout
1809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1812 \begin_layout Plain Layout
1818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1821 \begin_layout Plain Layout
1829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1832 \begin_layout Plain Layout
1847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1850 \begin_layout Plain Layout
1856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1859 \begin_layout Plain Layout
1865 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1868 \begin_layout Plain Layout
1876 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1879 \begin_layout Plain Layout
1894 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1897 \begin_layout Plain Layout
1903 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1906 \begin_layout Plain Layout
1912 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1915 \begin_layout Plain Layout
1929 \begin_layout Section
1931 \begin_inset Index idx
1934 \begin_layout Plain Layout
1943 \begin_layout Standard
1944 You can alter a table by clicking on it with the right mouse button, which
1945 brings up the context menu.
1946 Under the menu entry
1950 you can adjust the settings of that cell and row/column respectively where
1951 the cursor is currently placed.
1954 More\SpecialChar menuseparator
1957 opens the table dialog where you can adjust more things.
1958 Most of the dialog options also work on selections.
1959 This means if you select more cells, columns or rows, the action is done
1960 for the whole selection.
1961 Note that there is a difference between selecting the
1965 of the cell, and the cell itself.
1966 \begin_inset Newline newline
1969 With the dialog option
1972 \begin_inset space ~
1977 every change you make in the dialog is directly applied.
1978 If you move the cursor to another table cell the dialog will then also
1979 be updated with the parameters of the new cell.
1980 If you change length values in the dialog you must press
1984 to get the change applied.
1985 \begin_inset Newline newline
1988 You can alter tables with the following tabs of the table dialog:
1991 \begin_layout Description
1995 \begin_inset space ~
2000 Here you can set the table width
2001 \begin_inset Index idx
2004 \begin_layout Plain Layout
2010 , and the horizontal alignment and the width of the current column.
2014 \begin_inset space ~
2018 \begin_inset space ~
2023 is described in section
2024 \begin_inset space ~
2028 \begin_inset CommandInset ref
2030 reference "subsec:Special-Cell-Alignment"
2035 When you have set a width you can also adjust the vertical alignment of
2037 A given width will allow the cell to have line breaks and multiple paragraphs
2039 \begin_inset space \thinspace{}
2043 \begin_inset CommandInset ref
2045 reference "subsec:Multiple-Lines-in"
2050 If you set no width, the column is as wide as the content of its widest
2052 \begin_inset Newline newline
2055 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2057 \begin_inset space \thinspace{}
2061 \begin_inset CommandInset ref
2063 reference "subsec:Multicolumns"
2067 or the cells of one column as multirow cell, see sec.
2068 \begin_inset space \thinspace{}
2072 \begin_inset CommandInset ref
2074 reference "subsec:Multirows"
2079 \begin_inset Newline newline
2082 The rotate check boxes rotate the current cell, a selection, or the whole
2083 table counter-clockwise by 90
2084 \begin_inset space \thinspace{}
2088 The rotation is not shown within \SpecialChar LyX
2089 , only in the output.
2090 For more information see sec.
2091 \begin_inset space \thinspace{}
2095 \begin_inset CommandInset ref
2097 reference "sec:Rotated-Table-Cells"
2102 \begin_inset Newline newline
2106 \begin_inset Note Greyedout
2109 \begin_layout Plain Layout
2114 Not all DVI-viewers are able to display rotations.
2120 \begin_inset Newline newline
2123 The table-wide vertical alignment is used for tables within text lines:
2124 \begin_inset Newline newline
2127 A line with tables with different alignments:
2128 \begin_inset Tabular
2129 <lyxtabular version="3" rows="2" columns="2">
2130 <features tabularvalignment="top">
2131 <column alignment="center" valignment="top" width="0pt">
2132 <column alignment="center" valignment="top">
2134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2137 \begin_layout Plain Layout
2143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2146 \begin_layout Plain Layout
2163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2166 \begin_layout Plain Layout
2181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2184 \begin_layout Plain Layout
2196 \begin_inset Tabular
2197 <lyxtabular version="3" rows="2" columns="2">
2198 <features tabularvalignment="middle">
2199 <column alignment="center" valignment="top">
2200 <column alignment="center" valignment="top">
2202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2205 \begin_layout Plain Layout
2211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2214 \begin_layout Plain Layout
2231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2234 \begin_layout Plain Layout
2249 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2252 \begin_layout Plain Layout
2264 \begin_inset Tabular
2265 <lyxtabular version="3" rows="2" columns="2">
2266 <features tabularvalignment="bottom">
2267 <column alignment="center" valignment="top" width="0pt">
2268 <column alignment="center" valignment="top">
2270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2273 \begin_layout Plain Layout
2279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2282 \begin_layout Plain Layout
2299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2302 \begin_layout Plain Layout
2317 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2320 \begin_layout Plain Layout
2332 \begin_inset Newline newline
2335 It is also possible to enter a \SpecialChar LaTeX
2336 -argument which is needed for special table
2337 formattings, see sec.
2338 \begin_inset space \thinspace{}
2342 \begin_inset CommandInset ref
2344 reference "subsec:Multicolumn-Calculations"
2349 \begin_inset CommandInset ref
2351 reference "sec:Colored-Tables"
2358 \begin_layout Description
2363 In this tab you can add and delete border lines for the current row/column.
2364 \begin_inset Newline newline
2367 Using the style option
2371 will convert the table to a formal table as described in sec.
2372 \begin_inset space \thinspace{}
2376 \begin_inset CommandInset ref
2378 reference "sec:Formal-Tables"
2383 \begin_inset Newline newline
2386 You can also add space here to table rows as described in sec.
2387 \begin_inset space \thinspace{}
2391 \begin_inset CommandInset ref
2393 reference "subsec:Row-Spacing"
2400 \begin_layout Description
2405 This tab is to make a table a so called
2406 \begin_inset Quotes eld
2414 \begin_inset Quotes erd
2417 that can run over several pages.
2419 \begin_inset space ~
2423 \begin_inset CommandInset ref
2425 reference "sec:Longtables"
2430 \begin_inset CommandInset ref
2432 reference "sec:Special-Longtable-Issues"
2436 describe the longtable features in detail.
2439 \begin_layout Section
2441 \begin_inset Index idx
2444 \begin_layout Plain Layout
2453 \begin_layout Standard
2454 The table toolbar is an alternative to the table dialog to be able to alter
2456 It should normally appear at the bottom of \SpecialChar LyX
2457 's main window when the cursor
2459 You can alternatively switch it on to appear always, by right-clicking
2464 \begin_layout Standard
2465 The toolbar has the following icons:
2468 \begin_layout Labeling
2469 \labelwidthstring 00.00.0000
2472 arg "inset-modify tabular append-row"
2475 adds a row below the current cell or selection
2478 \begin_layout Labeling
2479 \labelwidthstring 00.00.0000
2482 arg "inset-modify tabular append-column"
2485 adds a column right beside the current cell or selection
2488 \begin_layout Labeling
2489 \labelwidthstring 00.00.0000
2492 arg "inset-modify tabular delete-row"
2495 deletes the current row or selection
2498 \begin_layout Labeling
2499 \labelwidthstring 00.00.0000
2502 arg "inset-modify tabular delete-column"
2505 deletes the current column or selection
2508 \begin_layout Labeling
2509 \labelwidthstring 00.00.0000
2512 arg "inset-modify tabular move-row-up"
2518 \begin_layout Labeling
2519 \labelwidthstring 00.00.0000
2522 arg "inset-modify tabular move-column-left"
2525 moves the column to the left
2528 \begin_layout Labeling
2529 \labelwidthstring 00.00.0000
2532 arg "inset-modify tabular move-row-down"
2538 \begin_layout Labeling
2539 \labelwidthstring 00.00.0000
2542 arg "inset-modify tabular move-column-right"
2545 moves the column to the right
2548 \begin_layout Labeling
2549 \labelwidthstring 00.00.0000
2552 arg "inset-modify tabular toggle-line-top"
2555 adds a line at the top of the current cell / row or of a selection
2558 \begin_layout Labeling
2559 \labelwidthstring 00.00.0000
2562 arg "inset-modify tabular toggle-line-bottom"
2565 adds a line at the bottom of the current cell / row or of a selection
2568 \begin_layout Labeling
2569 \labelwidthstring 00.00.0000
2572 arg "inset-modify tabular toggle-line-left"
2575 adds a line at the left side of the current cell / row or of a selection
2578 \begin_layout Labeling
2579 \labelwidthstring 00.00.0000
2582 arg "inset-modify tabular toggle-line-right"
2585 adds a line at the right side of the current cell / row or of a selection
2588 \begin_layout Labeling
2589 \labelwidthstring 00.00.0000
2592 arg "inset-modify tabular set-all-lines"
2595 adds lines around the current or selected cells - if the current cell no
2596 multicolumn cell this also affects the current row and column
2599 \begin_layout Labeling
2600 \labelwidthstring 00.00.0000
2603 arg "inset-modify tabular unset-all-lines"
2606 deletes all lines of the current or selected cells - if the current cell
2607 no multicolumn cell this also affects the current row and column
2610 \begin_layout Labeling
2611 \labelwidthstring 00.00.0000
2614 arg "inset-modify tabular m-align-left"
2617 left-aligns the content of the current cell / column
2620 \begin_layout Labeling
2621 \labelwidthstring 00.00.0000
2624 arg "inset-modify tabular m-align-center"
2627 centers the content of the current cell / column horizontally
2630 \begin_layout Labeling
2631 \labelwidthstring 00.00.0000
2634 arg "inset-modify tabular m-align-right"
2637 right-aligns the content of the current cell / column
2640 \begin_layout Labeling
2641 \labelwidthstring 00.00.0000
2644 arg "inset-modify tabular align-decimal"
2647 aligns the content of the current column at a character
2650 \begin_layout Labeling
2651 \labelwidthstring 00.00.0000
2654 arg "inset-modify tabular m-valign-top"
2657 aligns the content of the current cell vertically to the top
2660 \begin_layout Labeling
2661 \labelwidthstring 00.00.0000
2664 arg "inset-modify tabular m-valign-middle"
2667 centers the content of the current cell vertically
2670 \begin_layout Labeling
2671 \labelwidthstring 00.00.0000
2674 arg "inset-modify tabular m-valign-bottom"
2677 aligns the content of the current cell vertically to the bottom
2680 \begin_layout Labeling
2681 \labelwidthstring 00.00.0000
2684 arg "inset-modify tabular set-rotate-cell"
2687 rotates the current cell or selection counter-clockwise by 90°
2690 \begin_layout Labeling
2691 \labelwidthstring 00.00.0000
2694 arg "inset-modify tabular set-rotate-tabular"
2697 rotates the whole table counter-clockwise by 90°
2700 \begin_layout Labeling
2701 \labelwidthstring 00.00.0000
2704 arg "inset-modify tabular multicolumn"
2707 sets the current cell or selection as a multicolumn
2710 \begin_layout Labeling
2711 \labelwidthstring 00.00.0000
2714 arg "inset-modify tabular multirow"
2717 sets the current cell or selection as a multirow
2720 \begin_layout Standard
2721 \begin_inset Note Greyedout
2724 \begin_layout Plain Layout
2729 For the output the vertical alignment of the first cell in a row is used
2730 for all following cells in the row.
2738 \begin_layout Section
2740 \begin_inset Index idx
2743 \begin_layout Plain Layout
2752 \begin_layout Standard
2753 In addition to the table dialog and toolbar, the menu
2755 Edit\SpecialChar menuseparator
2758 allows you to add and delete border lines for the current row/column and
2759 to set the current selection as multicolumn.
2760 The menu is only available when the cursor is inside a table.
2763 \begin_layout Section
2765 \begin_inset CommandInset label
2767 name "sec:Table-Floats"
2772 \begin_inset Index idx
2775 \begin_layout Plain Layout
2782 \begin_inset Index idx
2785 \begin_layout Plain Layout
2794 \begin_layout Standard
2795 For general explanations about floats, have a look at section
2796 \begin_inset space ~
2800 \begin_inset CommandInset ref
2802 reference "sec:FloatIntroduction"
2809 \begin_layout Standard
2810 \begin_inset Float table
2816 \begin_layout Plain Layout
2817 \begin_inset Caption Standard
2819 \begin_layout Plain Layout
2820 \begin_inset CommandInset label
2822 name "tab:a table float"
2834 \begin_layout Plain Layout
2836 \begin_inset Tabular
2837 <lyxtabular version="3" rows="3" columns="3">
2838 <features tabularvalignment="middle">
2839 <column alignment="center" valignment="top" width="0pt">
2840 <column alignment="center" valignment="top" width="0pt">
2841 <column alignment="center" valignment="top" width="0pt">
2843 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2846 \begin_layout Plain Layout
2861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2864 \begin_layout Plain Layout
2879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2882 \begin_layout Plain Layout
2899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2902 \begin_layout Plain Layout
2917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2920 \begin_layout Plain Layout
2935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2938 \begin_layout Plain Layout
2955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2958 \begin_layout Plain Layout
2968 \begin_inset Formula $\int x^{2}dx$
2976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2979 \begin_layout Plain Layout
2989 \begin_inset Formula $\left[\begin{array}{cc}
3000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3003 \begin_layout Plain Layout
3013 \begin_inset Formula $1+1=2$
3034 \begin_layout Standard
3035 Table floats can be inserted using the menu
3037 Insert\SpecialChar menuseparator
3038 Float\SpecialChar menuseparator
3041 or the toolbar button
3044 arg "float-insert table"
3050 \begin_layout Standard
3051 The float appears as a collapsible box with a caption that has the label
3053 \begin_inset Quotes eld
3057 \begin_inset space ~
3061 \begin_inset Quotes erd
3064 (# is the actual table number).
3065 You can insert tables in the float above or below the caption.
3068 \begin_layout Standard
3070 \begin_inset space ~
3074 \begin_inset CommandInset ref
3076 reference "tab:a table float"
3080 is an example table within a table float.
3083 \begin_layout Standard
3084 Having the caption above the table is the common rule that is unfortunately
3085 not supported in \SpecialChar LaTeX
3086 's standard classes.
3087 This means that, if you are using the document classes
3103 , there will be no space between the caption and the table.
3104 To insert the needed space, add the following option to the load command
3105 of the \SpecialChar LaTeX
3111 \begin_inset Index idx
3114 \begin_layout Plain Layout
3121 in your document preamble
3125 \begin_layout Plain Layout
3126 For more information have a look at section
3127 \begin_inset space ~
3131 \begin_inset CommandInset ref
3133 reference "sec:Caption-Placement"
3145 \begin_layout Standard
3151 \begin_layout Standard
3156 , which is described in section
3157 \begin_inset space ~
3161 \begin_inset CommandInset ref
3163 reference "sec:Caption-Formatting"
3167 , is used to adjust the caption format.
3170 \begin_layout Standard
3171 \begin_inset Index idx
3174 \begin_layout Plain Layout
3175 References ! to Tables
3180 Tables can be cross-referenced in the text by referencing their label.
3181 To do this insert a label in the caption using the menu
3183 Insert\SpecialChar menuseparator
3186 or the toolbar button
3193 You can now refer to the label using the menu
3195 Insert\SpecialChar menuseparator
3197 \begin_inset space ~
3202 or the toolbar button
3205 arg "dialog-show-new-inset ref"
3209 \begin_inset Newline newline
3212 Referencing is explained in detail in section
3213 \begin_inset space ~
3217 \begin_inset CommandInset ref
3219 reference "sec:Referencing-Floats"
3226 \begin_layout Section
3228 \begin_inset CommandInset label
3230 name "sec:Longtables"
3235 \begin_inset Index idx
3238 \begin_layout Plain Layout
3245 \begin_inset Index idx
3248 \begin_layout Plain Layout
3257 \begin_layout Standard
3258 If the table is too long to fit on one page, you can use the option
3261 \begin_inset space ~
3265 \begin_inset space ~
3274 of the table dialog to split the table automatically over more pages.
3275 Doing this enables the following options:
3278 \begin_layout Description
3279 Header: The current row is defined to be a header row that appears on all
3280 pages of the longtable; except for the first page, if
3283 \begin_inset space ~
3289 This is therefore called the main header.
3292 \begin_layout Description
3294 \begin_inset space ~
3297 header: The current row is defined to be a header row that appears on the
3298 first page of the longtable.
3301 \begin_layout Description
3302 Footer: The current row is defined to be a footer row that appears on all
3303 pages of the longtable; except for the last page, if
3306 \begin_inset space ~
3314 \begin_layout Description
3316 \begin_inset space ~
3319 footer: The current row is defined to be a footer row that appears on the
3320 last page of the longtable.
3323 \begin_layout Description
3324 Caption: The current row contains the table caption.
3325 The row is reset as single column and a caption is inserted.
3326 More about longtable captions is explained in sec.
3327 \begin_inset space \thinspace{}
3331 \begin_inset CommandInset ref
3333 reference "subsec:Longtable-Captions"
3340 \begin_layout Standard
3341 You can also specify a row where the table is split.
3342 See the following longtable to see how it works:
3343 \begin_inset Separator parbreak
3349 \begin_layout Standard
3351 \begin_inset Tabular
3352 <lyxtabular version="3" rows="69" columns="3">
3353 <features islongtable="true" longtabularalignment="center">
3354 <column alignment="left" valignment="top" width="0cm">
3355 <column alignment="left" valignment="top" width="0pt">
3356 <column alignment="center" valignment="top" width="0pt">
3357 <row endfirsthead="true">
3358 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3361 \begin_layout Plain Layout
3364 Example Phone List (ignore the names)
3369 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3372 \begin_layout Plain Layout
3378 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3381 \begin_layout Plain Layout
3388 <row endfirsthead="true">
3389 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3392 \begin_layout Plain Layout
3400 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3403 \begin_layout Plain Layout
3409 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3412 \begin_layout Plain Layout
3421 <row endhead="true">
3422 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3425 \begin_layout Plain Layout
3433 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3436 \begin_layout Plain Layout
3442 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3445 \begin_layout Plain Layout
3452 <row endhead="true">
3453 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3456 \begin_layout Plain Layout
3464 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3467 \begin_layout Plain Layout
3473 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3476 \begin_layout Plain Layout
3485 <row endfoot="true">
3486 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3489 \begin_layout Plain Layout
3490 continued on next page
3495 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3498 \begin_layout Plain Layout
3504 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3507 \begin_layout Plain Layout
3515 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3518 \begin_layout Plain Layout
3526 <cell alignment="center" valignment="top" usebox="none">
3529 \begin_layout Plain Layout
3535 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3538 \begin_layout Plain Layout
3546 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3549 \begin_layout Plain Layout
3557 <cell alignment="center" valignment="top" usebox="none">
3560 \begin_layout Plain Layout
3566 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3569 \begin_layout Plain Layout
3577 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3580 \begin_layout Plain Layout
3588 <cell alignment="center" valignment="top" usebox="none">
3591 \begin_layout Plain Layout
3597 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3600 \begin_layout Plain Layout
3608 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3611 \begin_layout Plain Layout
3619 <cell alignment="center" valignment="top" usebox="none">
3622 \begin_layout Plain Layout
3628 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3631 \begin_layout Plain Layout
3639 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3642 \begin_layout Plain Layout
3650 <cell alignment="center" valignment="top" usebox="none">
3653 \begin_layout Plain Layout
3659 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3662 \begin_layout Plain Layout
3670 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3673 \begin_layout Plain Layout
3681 <cell alignment="center" valignment="top" usebox="none">
3684 \begin_layout Plain Layout
3690 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3693 \begin_layout Plain Layout
3701 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3704 \begin_layout Plain Layout
3712 <cell alignment="center" valignment="top" usebox="none">
3715 \begin_layout Plain Layout
3721 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3724 \begin_layout Plain Layout
3732 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3735 \begin_layout Plain Layout
3743 <cell alignment="center" valignment="top" usebox="none">
3746 \begin_layout Plain Layout
3752 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3755 \begin_layout Plain Layout
3763 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3766 \begin_layout Plain Layout
3774 <cell alignment="center" valignment="top" usebox="none">
3777 \begin_layout Plain Layout
3783 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3786 \begin_layout Plain Layout
3794 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3797 \begin_layout Plain Layout
3805 <cell alignment="center" valignment="top" usebox="none">
3808 \begin_layout Plain Layout
3814 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3817 \begin_layout Plain Layout
3825 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3828 \begin_layout Plain Layout
3836 <cell alignment="center" valignment="top" usebox="none">
3839 \begin_layout Plain Layout
3845 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3848 \begin_layout Plain Layout
3856 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3859 \begin_layout Plain Layout
3867 <cell alignment="center" valignment="top" usebox="none">
3870 \begin_layout Plain Layout
3876 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3879 \begin_layout Plain Layout
3887 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3890 \begin_layout Plain Layout
3898 <cell alignment="center" valignment="top" usebox="none">
3901 \begin_layout Plain Layout
3907 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3910 \begin_layout Plain Layout
3918 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3921 \begin_layout Plain Layout
3929 <cell alignment="center" valignment="top" usebox="none">
3932 \begin_layout Plain Layout
3938 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3941 \begin_layout Plain Layout
3949 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3952 \begin_layout Plain Layout
3960 <cell alignment="center" valignment="top" usebox="none">
3963 \begin_layout Plain Layout
3969 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3972 \begin_layout Plain Layout
3980 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3983 \begin_layout Plain Layout
3991 <cell alignment="center" valignment="top" usebox="none">
3994 \begin_layout Plain Layout
4000 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4003 \begin_layout Plain Layout
4011 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4014 \begin_layout Plain Layout
4022 <cell alignment="center" valignment="top" usebox="none">
4025 \begin_layout Plain Layout
4031 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4034 \begin_layout Plain Layout
4042 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4045 \begin_layout Plain Layout
4053 <cell alignment="center" valignment="top" usebox="none">
4056 \begin_layout Plain Layout
4062 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4065 \begin_layout Plain Layout
4073 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4076 \begin_layout Plain Layout
4084 <cell alignment="center" valignment="top" usebox="none">
4087 \begin_layout Plain Layout
4093 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4096 \begin_layout Plain Layout
4104 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4107 \begin_layout Plain Layout
4115 <cell alignment="center" valignment="top" usebox="none">
4118 \begin_layout Plain Layout
4124 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4127 \begin_layout Plain Layout
4135 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4138 \begin_layout Plain Layout
4146 <cell alignment="center" valignment="top" usebox="none">
4149 \begin_layout Plain Layout
4155 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4158 \begin_layout Plain Layout
4166 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4169 \begin_layout Plain Layout
4177 <cell alignment="center" valignment="top" usebox="none">
4180 \begin_layout Plain Layout
4186 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4189 \begin_layout Plain Layout
4197 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4200 \begin_layout Plain Layout
4208 <cell alignment="center" valignment="top" usebox="none">
4211 \begin_layout Plain Layout
4217 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4220 \begin_layout Plain Layout
4228 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4231 \begin_layout Plain Layout
4239 <cell alignment="center" valignment="top" usebox="none">
4242 \begin_layout Plain Layout
4248 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4251 \begin_layout Plain Layout
4259 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4262 \begin_layout Plain Layout
4270 <cell alignment="center" valignment="top" usebox="none">
4273 \begin_layout Plain Layout
4279 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4282 \begin_layout Plain Layout
4290 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4293 \begin_layout Plain Layout
4301 <cell alignment="center" valignment="top" usebox="none">
4304 \begin_layout Plain Layout
4310 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4313 \begin_layout Plain Layout
4321 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4324 \begin_layout Plain Layout
4332 <cell alignment="center" valignment="top" usebox="none">
4335 \begin_layout Plain Layout
4341 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4344 \begin_layout Plain Layout
4352 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4355 \begin_layout Plain Layout
4363 <cell alignment="center" valignment="top" usebox="none">
4366 \begin_layout Plain Layout
4372 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4375 \begin_layout Plain Layout
4383 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4386 \begin_layout Plain Layout
4394 <cell alignment="center" valignment="top" usebox="none">
4397 \begin_layout Plain Layout
4403 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4406 \begin_layout Plain Layout
4414 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4417 \begin_layout Plain Layout
4425 <cell alignment="center" valignment="top" usebox="none">
4428 \begin_layout Plain Layout
4434 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4437 \begin_layout Plain Layout
4445 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4448 \begin_layout Plain Layout
4456 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4459 \begin_layout Plain Layout
4465 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4468 \begin_layout Plain Layout
4476 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4479 \begin_layout Plain Layout
4485 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4488 \begin_layout Plain Layout
4494 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4497 \begin_layout Plain Layout
4505 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4508 \begin_layout Plain Layout
4516 <cell alignment="center" valignment="top" usebox="none">
4519 \begin_layout Plain Layout
4525 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4528 \begin_layout Plain Layout
4536 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4539 \begin_layout Plain Layout
4547 <cell alignment="center" valignment="top" usebox="none">
4550 \begin_layout Plain Layout
4556 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4559 \begin_layout Plain Layout
4567 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4570 \begin_layout Plain Layout
4578 <cell alignment="center" valignment="top" usebox="none">
4581 \begin_layout Plain Layout
4587 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4590 \begin_layout Plain Layout
4598 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4601 \begin_layout Plain Layout
4609 <cell alignment="center" valignment="top" usebox="none">
4612 \begin_layout Plain Layout
4618 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4621 \begin_layout Plain Layout
4629 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4632 \begin_layout Plain Layout
4640 <cell alignment="center" valignment="top" usebox="none">
4643 \begin_layout Plain Layout
4649 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4652 \begin_layout Plain Layout
4660 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4663 \begin_layout Plain Layout
4671 <cell alignment="center" valignment="top" usebox="none">
4674 \begin_layout Plain Layout
4680 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4683 \begin_layout Plain Layout
4691 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4694 \begin_layout Plain Layout
4702 <cell alignment="center" valignment="top" usebox="none">
4705 \begin_layout Plain Layout
4711 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4714 \begin_layout Plain Layout
4722 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4725 \begin_layout Plain Layout
4733 <cell alignment="center" valignment="top" usebox="none">
4736 \begin_layout Plain Layout
4742 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4745 \begin_layout Plain Layout
4753 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4756 \begin_layout Plain Layout
4764 <cell alignment="center" valignment="top" usebox="none">
4767 \begin_layout Plain Layout
4773 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4776 \begin_layout Plain Layout
4784 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4787 \begin_layout Plain Layout
4795 <cell alignment="center" valignment="top" usebox="none">
4798 \begin_layout Plain Layout
4804 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4807 \begin_layout Plain Layout
4815 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4818 \begin_layout Plain Layout
4826 <cell alignment="center" valignment="top" usebox="none">
4829 \begin_layout Plain Layout
4835 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4838 \begin_layout Plain Layout
4846 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4849 \begin_layout Plain Layout
4857 <cell alignment="center" valignment="top" usebox="none">
4860 \begin_layout Plain Layout
4866 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4869 \begin_layout Plain Layout
4877 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4880 \begin_layout Plain Layout
4888 <cell alignment="center" valignment="top" usebox="none">
4891 \begin_layout Plain Layout
4897 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4900 \begin_layout Plain Layout
4908 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4911 \begin_layout Plain Layout
4919 <cell alignment="center" valignment="top" usebox="none">
4922 \begin_layout Plain Layout
4928 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4931 \begin_layout Plain Layout
4939 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4942 \begin_layout Plain Layout
4950 <cell alignment="center" valignment="top" usebox="none">
4953 \begin_layout Plain Layout
4959 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4962 \begin_layout Plain Layout
4970 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4973 \begin_layout Plain Layout
4981 <cell alignment="center" valignment="top" usebox="none">
4984 \begin_layout Plain Layout
4990 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4993 \begin_layout Plain Layout
5001 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5004 \begin_layout Plain Layout
5012 <cell alignment="center" valignment="top" usebox="none">
5015 \begin_layout Plain Layout
5021 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5024 \begin_layout Plain Layout
5032 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5035 \begin_layout Plain Layout
5043 <cell alignment="center" valignment="top" usebox="none">
5046 \begin_layout Plain Layout
5052 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5055 \begin_layout Plain Layout
5063 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5066 \begin_layout Plain Layout
5074 <cell alignment="center" valignment="top" usebox="none">
5077 \begin_layout Plain Layout
5083 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5086 \begin_layout Plain Layout
5094 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5097 \begin_layout Plain Layout
5105 <cell alignment="center" valignment="top" usebox="none">
5108 \begin_layout Plain Layout
5114 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5117 \begin_layout Plain Layout
5125 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5128 \begin_layout Plain Layout
5136 <cell alignment="center" valignment="top" usebox="none">
5139 \begin_layout Plain Layout
5145 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5148 \begin_layout Plain Layout
5156 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5159 \begin_layout Plain Layout
5167 <cell alignment="center" valignment="top" usebox="none">
5170 \begin_layout Plain Layout
5176 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5179 \begin_layout Plain Layout
5187 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5190 \begin_layout Plain Layout
5198 <cell alignment="center" valignment="top" usebox="none">
5201 \begin_layout Plain Layout
5207 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5210 \begin_layout Plain Layout
5218 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5221 \begin_layout Plain Layout
5229 <cell alignment="center" valignment="top" usebox="none">
5232 \begin_layout Plain Layout
5238 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5241 \begin_layout Plain Layout
5249 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5252 \begin_layout Plain Layout
5260 <cell alignment="center" valignment="top" usebox="none">
5263 \begin_layout Plain Layout
5269 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5272 \begin_layout Plain Layout
5280 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5283 \begin_layout Plain Layout
5291 <cell alignment="center" valignment="top" usebox="none">
5294 \begin_layout Plain Layout
5300 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5303 \begin_layout Plain Layout
5311 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5314 \begin_layout Plain Layout
5322 <cell alignment="center" valignment="top" usebox="none">
5325 \begin_layout Plain Layout
5331 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5334 \begin_layout Plain Layout
5342 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5345 \begin_layout Plain Layout
5353 <cell alignment="center" valignment="top" usebox="none">
5356 \begin_layout Plain Layout
5362 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5365 \begin_layout Plain Layout
5373 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5376 \begin_layout Plain Layout
5384 <cell alignment="center" valignment="top" usebox="none">
5387 \begin_layout Plain Layout
5393 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5396 \begin_layout Plain Layout
5404 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5407 \begin_layout Plain Layout
5415 <cell alignment="center" valignment="top" usebox="none">
5418 \begin_layout Plain Layout
5424 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5427 \begin_layout Plain Layout
5435 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5438 \begin_layout Plain Layout
5446 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5449 \begin_layout Plain Layout
5455 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5458 \begin_layout Plain Layout
5465 <row endlastfoot="true">
5466 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5469 \begin_layout Plain Layout
5475 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5478 \begin_layout Plain Layout
5484 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5487 \begin_layout Plain Layout
5502 \begin_layout Plain Layout
5506 addtocounter{table}{-1}
5512 \begin_inset Note Note
5515 \begin_layout Plain Layout
5516 See the first greyed-out note in section
5517 \begin_inset space ~
5521 \begin_inset CommandInset ref
5523 reference "subsec:Longtable-Captions"
5527 for an explanation of this command.
5535 \begin_layout Subsection
5536 Footnotes in Longtables
5537 \begin_inset CommandInset label
5539 name "subsec:Footnotes-in-Longtables"
5544 \begin_inset Index idx
5547 \begin_layout Plain Layout
5548 Longtables ! Footnotes
5556 \begin_layout Standard
5557 Footnotes can be inserted to every longtable cell.
5558 They appear at the bottom of the page where the table cell with the footnote
5561 \begin_inset space ~
5565 \begin_inset CommandInset ref
5567 reference "tab:DiffCaptions"
5571 has for example a footnote.
5574 \begin_layout Subsection
5576 \begin_inset Index idx
5579 \begin_layout Plain Layout
5580 Longtables ! Alignment
5588 \begin_layout Standard
5589 The horizontal alignment of longtables can be set in the table settings
5591 For left- and right-alignment the table will be directly at the page border.
5592 To add space between the table and the border one has to set the alignment
5593 to center and change the value of the \SpecialChar LaTeX
5606 by inserting this line as \SpecialChar TeX
5607 Code before the longtable:
5610 \begin_layout Standard
5620 \begin_layout Standard
5621 The value can have any of the units listed in Table
5622 \begin_inset space ~
5626 \begin_inset CommandInset ref
5628 reference "tab:Units"
5639 controls the horizontal distance from the left page border to the longtable,
5646 the distance from the right side.
5647 The default value for both lengths is
5653 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5657 \begin_layout Standard
5658 The following longtable was centered and
5674 \begin_layout Plain Layout
5690 \begin_layout Standard
5691 \begin_inset Tabular
5692 <lyxtabular version="3" rows="5" columns="5">
5693 <features islongtable="true" longtabularalignment="center">
5694 <column alignment="center" valignment="top">
5695 <column alignment="center" valignment="top" width="0pt">
5696 <column alignment="center" valignment="top">
5697 <column alignment="center" valignment="top">
5698 <column alignment="center" valignment="top">
5700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5703 \begin_layout Plain Layout
5709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5712 \begin_layout Plain Layout
5718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5721 \begin_layout Plain Layout
5727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5730 \begin_layout Plain Layout
5736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5739 \begin_layout Plain Layout
5747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5750 \begin_layout Plain Layout
5756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5759 \begin_layout Plain Layout
5765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5768 \begin_layout Plain Layout
5774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5777 \begin_layout Plain Layout
5783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5786 \begin_layout Plain Layout
5794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5797 \begin_layout Plain Layout
5803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5806 \begin_layout Plain Layout
5812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5815 \begin_layout Plain Layout
5821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5824 \begin_layout Plain Layout
5830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5833 \begin_layout Plain Layout
5841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5844 \begin_layout Plain Layout
5850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5853 \begin_layout Plain Layout
5859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5862 \begin_layout Plain Layout
5868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5871 \begin_layout Plain Layout
5877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5880 \begin_layout Plain Layout
5888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5891 \begin_layout Plain Layout
5897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5900 \begin_layout Plain Layout
5906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5909 \begin_layout Plain Layout
5915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5918 \begin_layout Plain Layout
5924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5927 \begin_layout Plain Layout
5942 \begin_layout Plain Layout
5959 \begin_layout Plain Layout
5963 addtocounter{table}{-1}
5969 \begin_inset Note Note
5972 \begin_layout Plain Layout
5973 See the first greyed-out note in section
5974 \begin_inset space ~
5978 \begin_inset CommandInset ref
5980 reference "subsec:Longtable-Captions"
5984 for an explanation of this command.
5992 \begin_layout Subsection
5994 \begin_inset Index idx
5997 \begin_layout Plain Layout
5998 Longtables ! Captions
6004 \begin_inset CommandInset label
6006 name "subsec:Longtable-Captions"
6013 \begin_layout Standard
6014 A longtable cannot be put into a table float because floats can only be
6016 But the caption environment of floats can also be used for longtables when
6017 you use the longtable option
6021 as described in sec.
6022 \begin_inset space \thinspace{}
6026 \begin_inset CommandInset ref
6028 reference "sec:Longtables"
6033 Only one table row should contain a caption, either a header or a footer
6037 \begin_layout Standard
6038 Here is a short longtable to see how it works:
6041 \begin_layout Standard
6042 \begin_inset Tabular
6043 <lyxtabular version="3" rows="6" columns="5">
6044 <features islongtable="true" longtabularalignment="center">
6045 <column alignment="center" valignment="top">
6046 <column alignment="center" valignment="top">
6047 <column alignment="center" valignment="top">
6048 <column alignment="center" valignment="top">
6049 <column alignment="center" valignment="top">
6050 <row endfirsthead="true" caption="true">
6051 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6054 \begin_layout Plain Layout
6055 \begin_inset Caption Standard
6057 \begin_layout Plain Layout
6058 Longtable with caption
6059 \begin_inset Argument 1
6062 \begin_layout Plain Layout
6078 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6081 \begin_layout Plain Layout
6087 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6090 \begin_layout Plain Layout
6096 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6099 \begin_layout Plain Layout
6105 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6108 \begin_layout Plain Layout
6116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6119 \begin_layout Plain Layout
6125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6128 \begin_layout Plain Layout
6134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6137 \begin_layout Plain Layout
6143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6146 \begin_layout Plain Layout
6152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6155 \begin_layout Plain Layout
6163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6166 \begin_layout Plain Layout
6172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6175 \begin_layout Plain Layout
6181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6184 \begin_layout Plain Layout
6190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6193 \begin_layout Plain Layout
6199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6202 \begin_layout Plain Layout
6210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6213 \begin_layout Plain Layout
6219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6222 \begin_layout Plain Layout
6228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6231 \begin_layout Plain Layout
6237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6240 \begin_layout Plain Layout
6246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6249 \begin_layout Plain Layout
6257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6260 \begin_layout Plain Layout
6266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6269 \begin_layout Plain Layout
6275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6278 \begin_layout Plain Layout
6284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6287 \begin_layout Plain Layout
6293 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6296 \begin_layout Plain Layout
6304 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6307 \begin_layout Plain Layout
6313 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6316 \begin_layout Plain Layout
6322 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6325 \begin_layout Plain Layout
6331 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6334 \begin_layout Plain Layout
6340 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6343 \begin_layout Plain Layout
6357 \begin_layout Standard
6358 \begin_inset VSpace medskip
6362 \begin_inset Note Greyedout
6365 \begin_layout Plain Layout
6369 \begin_inset space ~
6374 The table number is increased for every longtable, even if you did not
6375 set a caption for it.
6376 For this reason you could have the case that e.
6377 \begin_inset space \thinspace{}
6381 \begin_inset space \space{}
6385 \begin_inset space ~
6389 \begin_inset space ~
6392 2.1 in the list of tables if there are two longtables without captions.
6393 To avoid this you can add the following command in \SpecialChar TeX
6394 Code after every longtable
6398 \begin_layout Plain Layout
6403 addtocounter{table}{-1}
6406 \begin_layout Plain Layout
6407 This is not needed when none of your longtables has a caption and you add
6408 the following code to the document preamble:
6411 \begin_layout Plain Layout
6421 \begin_inset Newline newline
6432 addtocounter{table}{-1}}
6440 \begin_layout Standard
6441 \begin_inset Note Greyedout
6444 \begin_layout Plain Layout
6448 \begin_inset space ~
6458 \begin_inset Index idx
6461 \begin_layout Plain Layout
6463 -packages ! hyperref
6476 dialog to link cross-references, the link to a longtable caption will always
6477 point to the beginning of the document.
6485 \begin_layout Subsubsection
6486 References to Longtables
6487 \begin_inset Index idx
6490 \begin_layout Plain Layout
6491 Longtables ! References
6499 \begin_layout Standard
6500 \begin_inset Tabular
6501 <lyxtabular version="3" rows="6" columns="5">
6502 <features islongtable="true" longtabularalignment="center">
6503 <column alignment="center" valignment="top">
6504 <column alignment="center" valignment="top">
6505 <column alignment="center" valignment="top">
6506 <column alignment="center" valignment="top">
6507 <column alignment="center" valignment="top">
6508 <row endfirsthead="true" caption="true">
6509 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6512 \begin_layout Plain Layout
6513 \begin_inset Caption Standard
6515 \begin_layout Plain Layout
6516 Referenced longtable
6517 \begin_inset CommandInset label
6519 name "tab:RefExample"
6533 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6536 \begin_layout Plain Layout
6542 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6545 \begin_layout Plain Layout
6551 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6554 \begin_layout Plain Layout
6560 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6563 \begin_layout Plain Layout
6571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6574 \begin_layout Plain Layout
6580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6583 \begin_layout Plain Layout
6589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6592 \begin_layout Plain Layout
6598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6601 \begin_layout Plain Layout
6607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6610 \begin_layout Plain Layout
6618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6621 \begin_layout Plain Layout
6627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6630 \begin_layout Plain Layout
6636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6639 \begin_layout Plain Layout
6645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6648 \begin_layout Plain Layout
6654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6657 \begin_layout Plain Layout
6665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6668 \begin_layout Plain Layout
6674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6677 \begin_layout Plain Layout
6683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6686 \begin_layout Plain Layout
6692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6695 \begin_layout Plain Layout
6701 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6704 \begin_layout Plain Layout
6712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6715 \begin_layout Plain Layout
6721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6724 \begin_layout Plain Layout
6730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6733 \begin_layout Plain Layout
6739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6742 \begin_layout Plain Layout
6748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6751 \begin_layout Plain Layout
6759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6762 \begin_layout Plain Layout
6768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6771 \begin_layout Plain Layout
6777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6780 \begin_layout Plain Layout
6786 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6789 \begin_layout Plain Layout
6795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6798 \begin_layout Plain Layout
6812 \begin_layout Standard
6813 To reference a longtable, insert a label into the caption.
6816 \begin_layout Standard
6817 This is a reference to Table
6818 \begin_inset space ~
6822 \begin_inset CommandInset ref
6824 reference "tab:RefExample"
6831 \begin_layout Standard
6832 The caption layout can be set together with all other captions of your document
6833 using the \SpecialChar LaTeX
6839 \begin_inset Index idx
6842 \begin_layout Plain Layout
6850 \begin_inset space ~
6854 \begin_inset CommandInset ref
6856 reference "sec:Caption-Formatting"
6863 \begin_layout Subsubsection
6865 \begin_inset Index idx
6868 \begin_layout Plain Layout
6869 Longtables ! Caption Width
6877 \begin_layout Standard
6878 The maximal width of caption lines is defined by the length
6885 Its default value is 4
6886 \begin_inset space \thinspace{}
6890 To change it add the following command to your document preamble or as
6892 Code into your document before the longtable that should be affected
6895 \begin_layout Standard
6905 \begin_layout Standard
6906 where the width could have one of the units listed in appendix
6907 \begin_inset space ~
6911 \begin_inset CommandInset ref
6913 reference "cha:Units-available-in"
6920 \begin_layout Standard
6921 The following tables show the difference:
6924 \begin_layout Standard
6925 \begin_inset Tabular
6926 <lyxtabular version="3" rows="6" columns="5">
6927 <features islongtable="true" longtabularalignment="center">
6928 <column alignment="center" valignment="top">
6929 <column alignment="center" valignment="top">
6930 <column alignment="center" valignment="top">
6931 <column alignment="center" valignment="top">
6932 <column alignment="center" valignment="top">
6933 <row endfirsthead="true" caption="true">
6934 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6937 \begin_layout Plain Layout
6938 \begin_inset Caption Standard
6940 \begin_layout Plain Layout
6941 long full title with default width long full title with default width long
6942 full title with default width
6943 \begin_inset Argument 1
6946 \begin_layout Plain Layout
6947 caption with default width
6962 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6965 \begin_layout Plain Layout
6971 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6974 \begin_layout Plain Layout
6980 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6983 \begin_layout Plain Layout
6989 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6992 \begin_layout Plain Layout
7000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7003 \begin_layout Plain Layout
7009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7012 \begin_layout Plain Layout
7018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7021 \begin_layout Plain Layout
7027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7030 \begin_layout Plain Layout
7036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7039 \begin_layout Plain Layout
7047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7050 \begin_layout Plain Layout
7056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7059 \begin_layout Plain Layout
7065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7068 \begin_layout Plain Layout
7074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7077 \begin_layout Plain Layout
7083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7086 \begin_layout Plain Layout
7094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7097 \begin_layout Plain Layout
7103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7106 \begin_layout Plain Layout
7112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7115 \begin_layout Plain Layout
7121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7124 \begin_layout Plain Layout
7130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7133 \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" usebox="none">
7153 \begin_layout Plain Layout
7159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7162 \begin_layout Plain Layout
7168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7171 \begin_layout Plain Layout
7177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7180 \begin_layout Plain Layout
7188 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7191 \begin_layout Plain Layout
7197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7200 \begin_layout Plain Layout
7206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7209 \begin_layout Plain Layout
7215 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7218 \begin_layout Plain Layout
7224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7227 \begin_layout Plain Layout
7241 \begin_layout Standard
7245 \begin_layout Plain Layout
7257 \begin_inset Tabular
7258 <lyxtabular version="3" rows="6" columns="5">
7259 <features islongtable="true" longtabularalignment="center">
7260 <column alignment="center" valignment="top">
7261 <column alignment="center" valignment="top">
7262 <column alignment="center" valignment="top">
7263 <column alignment="center" valignment="top">
7264 <column alignment="center" valignment="top">
7265 <row endfirsthead="true" caption="true">
7266 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7269 \begin_layout Plain Layout
7270 \begin_inset Caption Standard
7272 \begin_layout Plain Layout
7273 long full title with width set to 5
7274 \begin_inset space \thinspace{}
7277 cm long full title with width set to 5
7278 \begin_inset space \thinspace{}
7281 cm long full title with width set to 5
7282 \begin_inset space \thinspace{}
7286 \begin_inset Argument 1
7289 \begin_layout Plain Layout
7291 \begin_inset space \thinspace{}
7295 \begin_inset space \thinspace{}
7299 \begin_inset space \thinspace{}
7317 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7320 \begin_layout Plain Layout
7326 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7329 \begin_layout Plain Layout
7335 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7338 \begin_layout Plain Layout
7344 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7347 \begin_layout Plain Layout
7355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7358 \begin_layout Plain Layout
7364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7367 \begin_layout Plain Layout
7373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7376 \begin_layout Plain Layout
7382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7385 \begin_layout Plain Layout
7391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7394 \begin_layout Plain Layout
7402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7405 \begin_layout Plain Layout
7411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7414 \begin_layout Plain Layout
7420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7423 \begin_layout Plain Layout
7429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7432 \begin_layout Plain Layout
7438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7441 \begin_layout Plain Layout
7449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7452 \begin_layout Plain Layout
7458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7461 \begin_layout Plain Layout
7467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7470 \begin_layout Plain Layout
7476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7479 \begin_layout Plain Layout
7485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7488 \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" usebox="none">
7508 \begin_layout Plain Layout
7514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7517 \begin_layout Plain Layout
7523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7526 \begin_layout Plain Layout
7532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7535 \begin_layout Plain Layout
7543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7546 \begin_layout Plain Layout
7552 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7555 \begin_layout Plain Layout
7561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7564 \begin_layout Plain Layout
7570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7573 \begin_layout Plain Layout
7579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7582 \begin_layout Plain Layout
7596 \begin_layout Standard
7600 \begin_layout Plain Layout
7614 \begin_layout Standard
7615 \begin_inset Note Greyedout
7618 \begin_layout Plain Layout
7623 When the \SpecialChar LaTeX
7629 \begin_inset Index idx
7632 \begin_layout Plain Layout
7639 is used, as in this document, the full page width is used for the caption
7640 when you use the default value of 4
7641 \begin_inset space \thinspace{}
7651 To get in this case exactly a 4
7652 \begin_inset space \thinspace{}
7655 in wide caption, you can either use a value slightly different from 4.0
7656 \begin_inset space \thinspace{}
7660 \begin_inset space \thinspace{}
7664 \begin_inset space \space{}
7668 \begin_inset space \thinspace{}
7671 in, or the \SpecialChar LaTeX
7676 captionsetup{width=value}
7678 that is provided by the
7690 \begin_layout Subsubsection
7691 Different Captions for Table Pages
7692 \begin_inset Index idx
7695 \begin_layout Plain Layout
7696 Longtables ! Different Captions for Pages
7704 \begin_layout Standard
7705 When the table captions for the following pages should differ from the one
7706 of the first table page, mark a empty row as header which contains a caption.
7707 Then right-click on the caption and select in the context menu
7710 \begin_inset space ~
7717 \begin_inset space ~
7721 \begin_inset CommandInset ref
7723 reference "tab:DiffCaptions"
7727 is an example of a longtable with different heading where the second caption
7728 does not include the table number.
7729 \begin_inset Separator parbreak
7735 \begin_layout Standard
7737 \begin_inset Tabular
7738 <lyxtabular version="3" rows="59" columns="3">
7739 <features islongtable="true" longtabularalignment="center">
7740 <column alignment="left" valignment="top" width="0cm">
7741 <column alignment="left" valignment="top" width="0pt">
7742 <column alignment="center" valignment="top" width="0pt">
7743 <row endfirsthead="true" caption="true">
7744 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7747 \begin_layout Plain Layout
7748 \begin_inset Caption Standard
7750 \begin_layout Plain Layout
7752 \begin_inset CommandInset label
7754 name "tab:DiffCaptions"
7759 \begin_inset Argument 1
7762 \begin_layout Plain Layout
7778 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7781 \begin_layout Plain Layout
7787 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7790 \begin_layout Plain Layout
7797 <row endfirsthead="true">
7798 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7801 \begin_layout Plain Layout
7804 Example Phone List (ignore the names)
7809 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7812 \begin_layout Plain Layout
7818 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7821 \begin_layout Plain Layout
7828 <row endfirsthead="true">
7829 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7832 \begin_layout Plain Layout
7840 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7843 \begin_layout Plain Layout
7849 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7852 \begin_layout Plain Layout
7861 <row endhead="true" caption="true">
7862 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7865 \begin_layout Plain Layout
7866 \begin_inset Caption LongTableNoNumber
7868 \begin_layout Plain Layout
7869 Continued Example Phone List
7879 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7882 \begin_layout Plain Layout
7888 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7891 \begin_layout Plain Layout
7898 <row endhead="true">
7899 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7902 \begin_layout Plain Layout
7910 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7913 \begin_layout Plain Layout
7919 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7922 \begin_layout Plain Layout
7929 <row endhead="true">
7930 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7933 \begin_layout Plain Layout
7941 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7944 \begin_layout Plain Layout
7950 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7953 \begin_layout Plain Layout
7962 <row endfoot="true">
7963 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7966 \begin_layout Plain Layout
7967 continued on next page
7972 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7975 \begin_layout Plain Layout
7981 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7984 \begin_layout Plain Layout
7992 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7995 \begin_layout Plain Layout
8003 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8006 \begin_layout Plain Layout
8012 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8015 \begin_layout Plain Layout
8023 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8026 \begin_layout Plain Layout
8034 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8037 \begin_layout Plain Layout
8043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8046 \begin_layout Plain Layout
8054 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8057 \begin_layout Plain Layout
8065 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8068 \begin_layout Plain Layout
8074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8077 \begin_layout Plain Layout
8085 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8088 \begin_layout Plain Layout
8096 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8099 \begin_layout Plain Layout
8105 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8108 \begin_layout Plain Layout
8116 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8119 \begin_layout Plain Layout
8127 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8130 \begin_layout Plain Layout
8136 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8139 \begin_layout Plain Layout
8147 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8150 \begin_layout Plain Layout
8158 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8161 \begin_layout Plain Layout
8167 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8170 \begin_layout Plain Layout
8178 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8181 \begin_layout Plain Layout
8189 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8192 \begin_layout Plain Layout
8198 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8201 \begin_layout Plain Layout
8209 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8212 \begin_layout Plain Layout
8220 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8223 \begin_layout Plain Layout
8229 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8232 \begin_layout Plain Layout
8240 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8243 \begin_layout Plain Layout
8251 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8254 \begin_layout Plain Layout
8260 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8263 \begin_layout Plain Layout
8271 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8274 \begin_layout Plain Layout
8282 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8285 \begin_layout Plain Layout
8291 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8294 \begin_layout Plain Layout
8302 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8305 \begin_layout Plain Layout
8313 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8316 \begin_layout Plain Layout
8322 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8325 \begin_layout Plain Layout
8333 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8336 \begin_layout Plain Layout
8344 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8347 \begin_layout Plain Layout
8353 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8356 \begin_layout Plain Layout
8364 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8367 \begin_layout Plain Layout
8375 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8378 \begin_layout Plain Layout
8384 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8387 \begin_layout Plain Layout
8395 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8398 \begin_layout Plain Layout
8406 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8409 \begin_layout Plain Layout
8415 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8418 \begin_layout Plain Layout
8426 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8429 \begin_layout Plain Layout
8438 \begin_layout Plain Layout
8449 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8452 \begin_layout Plain Layout
8458 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8461 \begin_layout Plain Layout
8469 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8472 \begin_layout Plain Layout
8480 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8483 \begin_layout Plain Layout
8489 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8492 \begin_layout Plain Layout
8500 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8503 \begin_layout Plain Layout
8511 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8514 \begin_layout Plain Layout
8520 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8523 \begin_layout Plain Layout
8531 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8534 \begin_layout Plain Layout
8542 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8545 \begin_layout Plain Layout
8551 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8554 \begin_layout Plain Layout
8562 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8565 \begin_layout Plain Layout
8573 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8576 \begin_layout Plain Layout
8582 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8585 \begin_layout Plain Layout
8593 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8596 \begin_layout Plain Layout
8604 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8607 \begin_layout Plain Layout
8613 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8616 \begin_layout Plain Layout
8624 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8627 \begin_layout Plain Layout
8635 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8638 \begin_layout Plain Layout
8644 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8647 \begin_layout Plain Layout
8655 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8658 \begin_layout Plain Layout
8666 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8669 \begin_layout Plain Layout
8675 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8678 \begin_layout Plain Layout
8686 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8689 \begin_layout Plain Layout
8697 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8700 \begin_layout Plain Layout
8706 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8709 \begin_layout Plain Layout
8717 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8720 \begin_layout Plain Layout
8728 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8731 \begin_layout Plain Layout
8737 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8740 \begin_layout Plain Layout
8748 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8751 \begin_layout Plain Layout
8759 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8762 \begin_layout Plain Layout
8768 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8771 \begin_layout Plain Layout
8779 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8782 \begin_layout Plain Layout
8790 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8793 \begin_layout Plain Layout
8799 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8802 \begin_layout Plain Layout
8810 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8813 \begin_layout Plain Layout
8821 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8824 \begin_layout Plain Layout
8830 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8833 \begin_layout Plain Layout
8841 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8844 \begin_layout Plain Layout
8852 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8855 \begin_layout Plain Layout
8861 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8864 \begin_layout Plain Layout
8872 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8875 \begin_layout Plain Layout
8883 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8886 \begin_layout Plain Layout
8892 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8895 \begin_layout Plain Layout
8903 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8906 \begin_layout Plain Layout
8914 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8917 \begin_layout Plain Layout
8923 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8926 \begin_layout Plain Layout
8934 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8937 \begin_layout Plain Layout
8945 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8948 \begin_layout Plain Layout
8954 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8957 \begin_layout Plain Layout
8965 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8968 \begin_layout Plain Layout
8974 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8977 \begin_layout Plain Layout
8983 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8986 \begin_layout Plain Layout
8994 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8997 \begin_layout Plain Layout
9005 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9008 \begin_layout Plain Layout
9014 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9017 \begin_layout Plain Layout
9025 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9028 \begin_layout Plain Layout
9036 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9039 \begin_layout Plain Layout
9045 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9048 \begin_layout Plain Layout
9056 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9059 \begin_layout Plain Layout
9067 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9070 \begin_layout Plain Layout
9076 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9079 \begin_layout Plain Layout
9087 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9090 \begin_layout Plain Layout
9098 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9101 \begin_layout Plain Layout
9107 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9110 \begin_layout Plain Layout
9118 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9121 \begin_layout Plain Layout
9129 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9132 \begin_layout Plain Layout
9138 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9141 \begin_layout Plain Layout
9149 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9152 \begin_layout Plain Layout
9160 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9163 \begin_layout Plain Layout
9169 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9172 \begin_layout Plain Layout
9180 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9183 \begin_layout Plain Layout
9191 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9194 \begin_layout Plain Layout
9200 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9203 \begin_layout Plain Layout
9211 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9214 \begin_layout Plain Layout
9222 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9225 \begin_layout Plain Layout
9231 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9234 \begin_layout Plain Layout
9242 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9245 \begin_layout Plain Layout
9253 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9256 \begin_layout Plain Layout
9262 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9265 \begin_layout Plain Layout
9273 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9276 \begin_layout Plain Layout
9284 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9287 \begin_layout Plain Layout
9293 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9296 \begin_layout Plain Layout
9304 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9307 \begin_layout Plain Layout
9315 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9318 \begin_layout Plain Layout
9324 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9327 \begin_layout Plain Layout
9335 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9338 \begin_layout Plain Layout
9346 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9349 \begin_layout Plain Layout
9355 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9358 \begin_layout Plain Layout
9366 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9369 \begin_layout Plain Layout
9377 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9380 \begin_layout Plain Layout
9386 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9389 \begin_layout Plain Layout
9397 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9400 \begin_layout Plain Layout
9408 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9411 \begin_layout Plain Layout
9417 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9420 \begin_layout Plain Layout
9428 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9431 \begin_layout Plain Layout
9439 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9442 \begin_layout Plain Layout
9448 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9451 \begin_layout Plain Layout
9459 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9462 \begin_layout Plain Layout
9470 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9473 \begin_layout Plain Layout
9479 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9482 \begin_layout Plain Layout
9490 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9493 \begin_layout Plain Layout
9501 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9504 \begin_layout Plain Layout
9510 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9513 \begin_layout Plain Layout
9521 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9524 \begin_layout Plain Layout
9532 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9535 \begin_layout Plain Layout
9541 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9544 \begin_layout Plain Layout
9552 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9555 \begin_layout Plain Layout
9563 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9566 \begin_layout Plain Layout
9572 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9575 \begin_layout Plain Layout
9583 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9586 \begin_layout Plain Layout
9594 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9597 \begin_layout Plain Layout
9603 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9606 \begin_layout Plain Layout
9620 \begin_layout Section
9621 Special Longtable Issues
9622 \begin_inset CommandInset label
9624 name "sec:Special-Longtable-Issues"
9631 \begin_layout Subsection
9632 Longtable Calculation
9633 \begin_inset Index idx
9636 \begin_layout Plain Layout
9637 Longtables ! Calculation
9645 \begin_layout Standard
9647 calculates the height of table pages and their page breaks using so called
9649 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9651 The default value was historically set to only 20 table rows.
9652 If you are using longtables with many pages this may slow down the creation
9654 You can safely increase the chunk size to values of 100-1000 by adding
9655 this command line to your document preamble:
9658 \begin_layout Standard
9663 setcounter{LTchunksize}{100}
9666 \begin_layout Subsection
9667 Floats and Longtables
9668 \begin_inset Index idx
9671 \begin_layout Plain Layout
9680 \begin_layout Standard
9681 There might be problems when a float appears on the same page where a longtable
9683 To avoid such a situation, insert a
9684 \begin_inset Quotes eld
9688 \begin_inset Quotes erd
9693 Insert\SpecialChar menuseparator
9694 Formatting\SpecialChar menuseparator
9696 \begin_inset space ~
9701 ) before your longtable.
9704 \begin_layout Subsection
9706 \begin_inset Index idx
9709 \begin_layout Plain Layout
9710 Longtables ! Forced Page Breaks
9718 \begin_layout Standard
9719 By default tables are only broken between rows.
9720 If you have a cell with multiples lines and want to have a page break within
9721 the cell, insert the new line command
9722 \begin_inset Quotes eld
9734 \begin_inset Quotes erd
9738 Code at the point of the cell where it can be broken.
9747 command you have to insert in \SpecialChar TeX
9749 \begin_inset Quotes eld
9757 \begin_inset Quotes erd
9760 characters as the number of the following table columns.
9765 is the character to separate table cells.
9766 Write in \SpecialChar TeX
9771 the content of the corresponding following cell and delete the content
9773 \begin_inset Newline newline
9784 command, insert as many
9788 characters as the number of table columns before the current column.
9790 \begin_inset space ~
9794 \begin_inset CommandInset ref
9796 reference "tab:ForcedPagebreak"
9800 the cell that should be broken is in the second column followed by another
9802 Therefore the following command was inserted in the cell as \SpecialChar TeX
9805 \begin_inset Quotes eld
9813 \begin_inset Quotes erd
9819 \begin_layout Standard
9829 \begin_inset Newline newline
9835 \begin_layout Standard
9837 \begin_inset Quotes eld
9841 \begin_inset Quotes erd
9844 in the third column of the row was deleted.
9851 is only needed when a page break should definitely occur at this position,
9852 otherwise it would be a conditional break.
9853 If your footer row of the longtable has for a certain reason no upper line
9854 but you would have a horizontal line where the cell is broken, use this
9858 \begin_layout Standard
9866 \begin_inset Newline newline
9874 \begin_layout Standard
9875 When the cell to be broken is in the last column, the command
9878 \begin_layout Standard
9888 \begin_layout Standard
9889 must be inserted as \SpecialChar TeX
9890 Code at the beginning of the cell.
9891 This ensures that the part of the cell that will be displayed on the new
9892 page appears with the full width.
9893 \begin_inset Separator parbreak
9899 \begin_layout Standard
9901 \begin_inset Tabular
9902 <lyxtabular version="3" rows="38" columns="3">
9903 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9904 <column alignment="left" valignment="top" width="0cm">
9905 <column alignment="left" valignment="top" width="3cm">
9906 <column alignment="center" valignment="top" width="0pt">
9907 <row endfirsthead="true" caption="true">
9908 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9911 \begin_layout Plain Layout
9912 \begin_inset Caption Standard
9914 \begin_layout Plain Layout
9915 Table with forced page break in table cell
9916 \begin_inset CommandInset label
9918 name "tab:ForcedPagebreak"
9923 \begin_inset Argument 1
9926 \begin_layout Plain Layout
9927 Table with forced page break in table cell
9942 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9945 \begin_layout Plain Layout
9951 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9954 \begin_layout Plain Layout
9961 <row endfirsthead="true">
9962 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9965 \begin_layout Plain Layout
9968 Example Phone List (ignore the names)
9973 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9976 \begin_layout Plain Layout
9982 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9985 \begin_layout Plain Layout
9992 <row endfirsthead="true">
9993 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9996 \begin_layout Plain Layout
10004 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10007 \begin_layout Plain Layout
10013 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10016 \begin_layout Plain Layout
10025 <row endhead="true">
10026 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10029 \begin_layout Plain Layout
10033 \begin_layout Plain Layout
10037 caption*{Continued Example Phone List}
10051 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10054 \begin_layout Plain Layout
10060 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10063 \begin_layout Plain Layout
10070 <row endhead="true">
10071 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10074 \begin_layout Plain Layout
10082 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10085 \begin_layout Plain Layout
10091 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10094 \begin_layout Plain Layout
10101 <row endhead="true">
10102 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10105 \begin_layout Plain Layout
10113 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10116 \begin_layout Plain Layout
10122 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10125 \begin_layout Plain Layout
10134 <row endfoot="true">
10135 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10138 \begin_layout Plain Layout
10139 continued on next page
10144 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10147 \begin_layout Plain Layout
10153 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10156 \begin_layout Plain Layout
10164 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10167 \begin_layout Plain Layout
10175 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10178 \begin_layout Plain Layout
10184 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10187 \begin_layout Plain Layout
10195 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10198 \begin_layout Plain Layout
10206 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10209 \begin_layout Plain Layout
10215 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10218 \begin_layout Plain Layout
10226 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10229 \begin_layout Plain Layout
10237 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10240 \begin_layout Plain Layout
10246 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10249 \begin_layout Plain Layout
10257 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10260 \begin_layout Plain Layout
10268 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10271 \begin_layout Plain Layout
10277 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10280 \begin_layout Plain Layout
10288 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10291 \begin_layout Plain Layout
10299 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10302 \begin_layout Plain Layout
10308 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10311 \begin_layout Plain Layout
10319 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10322 \begin_layout Plain Layout
10330 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10333 \begin_layout Plain Layout
10339 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10342 \begin_layout Plain Layout
10350 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10353 \begin_layout Plain Layout
10361 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10364 \begin_layout Plain Layout
10370 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10373 \begin_layout Plain Layout
10381 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10384 \begin_layout Plain Layout
10392 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10395 \begin_layout Plain Layout
10401 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10404 \begin_layout Plain Layout
10412 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10415 \begin_layout Plain Layout
10423 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10426 \begin_layout Plain Layout
10432 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10435 \begin_layout Plain Layout
10443 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10446 \begin_layout Plain Layout
10454 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10457 \begin_layout Plain Layout
10463 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10466 \begin_layout Plain Layout
10474 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10477 \begin_layout Plain Layout
10485 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10488 \begin_layout Plain Layout
10494 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10497 \begin_layout Plain Layout
10505 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10508 \begin_layout Plain Layout
10516 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10519 \begin_layout Plain Layout
10525 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10528 \begin_layout Plain Layout
10536 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10539 \begin_layout Plain Layout
10547 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10550 \begin_layout Plain Layout
10556 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10559 \begin_layout Plain Layout
10567 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10570 \begin_layout Plain Layout
10578 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10581 \begin_layout Plain Layout
10587 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10590 \begin_layout Plain Layout
10598 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10601 \begin_layout Plain Layout
10609 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10612 \begin_layout Plain Layout
10618 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10621 \begin_layout Plain Layout
10629 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10632 \begin_layout Plain Layout
10640 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10643 \begin_layout Plain Layout
10649 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10652 \begin_layout Plain Layout
10660 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10663 \begin_layout Plain Layout
10671 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10674 \begin_layout Plain Layout
10680 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10683 \begin_layout Plain Layout
10691 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10694 \begin_layout Plain Layout
10702 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10705 \begin_layout Plain Layout
10711 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10714 \begin_layout Plain Layout
10722 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10725 \begin_layout Plain Layout
10733 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10736 \begin_layout Plain Layout
10742 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10745 \begin_layout Plain Layout
10753 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10756 \begin_layout Plain Layout
10764 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10767 \begin_layout Plain Layout
10773 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10776 \begin_layout Plain Layout
10784 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10787 \begin_layout Plain Layout
10795 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10798 \begin_layout Plain Layout
10804 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10807 \begin_layout Plain Layout
10815 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10818 \begin_layout Plain Layout
10826 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10829 \begin_layout Plain Layout
10835 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10838 \begin_layout Plain Layout
10846 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10849 \begin_layout Plain Layout
10857 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10860 \begin_layout Plain Layout
10862 Fürst von Montecompatri, 11.
10863 Fürst von Sulmona und Vivaro, 10.
10864 Fürst von Rossano, 5.
10865 Herzog von Canemorte, 11.
10866 Herzog von Palombara, 5.
10867 Herzog von Castelchiodato,
10871 \begin_layout Plain Layout
10882 \begin_layout Plain Layout
10890 Herzog von Poggionativo, 11.
10891 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10892 Graf von Valinfreda, 11.
10893 Baron von Cropalati, 11.
10894 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10899 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10902 \begin_layout Plain Layout
10910 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10913 \begin_layout Plain Layout
10921 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10924 \begin_layout Plain Layout
10930 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10933 \begin_layout Plain Layout
10941 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10944 \begin_layout Plain Layout
10952 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10955 \begin_layout Plain Layout
10961 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10964 \begin_layout Plain Layout
10972 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10975 \begin_layout Plain Layout
10983 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10986 \begin_layout Plain Layout
10992 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10995 \begin_layout Plain Layout
11003 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11006 \begin_layout Plain Layout
11014 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11017 \begin_layout Plain Layout
11023 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11026 \begin_layout Plain Layout
11034 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11037 \begin_layout Plain Layout
11045 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11048 \begin_layout Plain Layout
11054 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11057 \begin_layout Plain Layout
11065 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11068 \begin_layout Plain Layout
11076 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11079 \begin_layout Plain Layout
11085 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11088 \begin_layout Plain Layout
11096 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11099 \begin_layout Plain Layout
11107 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11110 \begin_layout Plain Layout
11116 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11119 \begin_layout Plain Layout
11127 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11130 \begin_layout Plain Layout
11138 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11141 \begin_layout Plain Layout
11147 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11150 \begin_layout Plain Layout
11164 \begin_layout Section
11165 Multiple Lines, Columns and Rows
11168 \begin_layout Subsection
11169 Multiple Lines in Table Cells
11170 \begin_inset CommandInset label
11172 name "subsec:Multiple-Lines-in"
11177 \begin_inset Index idx
11180 \begin_layout Plain Layout
11181 Multiple Lines in Table Cells
11187 \begin_inset Index idx
11190 \begin_layout Plain Layout
11199 \begin_layout Standard
11201 \begin_inset Float table
11207 \begin_layout Plain Layout
11208 \begin_inset Caption Standard
11210 \begin_layout Plain Layout
11211 \begin_inset CommandInset label
11213 name "tab:Table-with-multiple"
11217 Table with multiple lines in cells
11225 \begin_layout Plain Layout
11227 \begin_inset Tabular
11228 <lyxtabular version="3" rows="3" columns="3">
11229 <features tabularvalignment="middle">
11230 <column alignment="center" valignment="middle" width="2.5cm">
11231 <column alignment="center" valignment="middle">
11232 <column alignment="center" valignment="middle">
11234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11237 \begin_layout Plain Layout
11239 \begin_inset Newline linebreak
11247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11250 \begin_layout Plain Layout
11256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11259 \begin_layout Plain Layout
11267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11270 \begin_layout Plain Layout
11276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11279 \begin_layout Plain Layout
11285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11288 \begin_layout Plain Layout
11296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11299 \begin_layout Plain Layout
11305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11308 \begin_layout Plain Layout
11314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11317 \begin_layout Plain Layout
11336 \begin_layout Standard
11337 Setting a fixed width for a column enables you to enter text as a paragraph
11338 with multiple lines and hyphenation.
11341 \begin_layout Standard
11343 \begin_inset space ~
11347 \begin_inset CommandInset ref
11349 reference "tab:Table-with-multiple"
11353 , create a 3×3 table, mark the first cell and right-click on it.
11354 In the appearing table dialog we set a cell width of 2.5
11355 \begin_inset space \thinspace{}
11358 cm and choose centered for the vertical and horizontal alignment.
11359 The vertical alignment is used for all cells of the row.
11360 As our text is smaller than 2.5
11361 \begin_inset space \thinspace{}
11364 cm, only one line will appear.
11365 To get two lines, a justified line break (shortcut
11368 arg "newline-insert linebreak"
11372 If the text is wider than the set cell width, it will automatically be
11373 broken to several lines.
11376 \begin_layout Standard
11377 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11378 by \SpecialChar LaTeX
11379 if it is the first entry.
11380 Therefore you need to insert something to prevent the word not being the
11382 So add a horizontal space of 0
11383 \begin_inset space \thinspace{}
11386 pt before the word.
11387 As the space is zero, it doesn't change the output.
11389 \begin_inset space ~
11393 \begin_inset CommandInset ref
11395 reference "tab:Table-with-and"
11402 \begin_layout Standard
11403 \begin_inset Float table
11409 \begin_layout Plain Layout
11410 \begin_inset Caption Standard
11412 \begin_layout Plain Layout
11413 \begin_inset CommandInset label
11415 name "tab:Table-with-and"
11419 Table with and without hyphenation
11427 \begin_layout Plain Layout
11428 \begin_inset space \hfill{}
11432 \begin_inset Tabular
11433 <lyxtabular version="3" rows="3" columns="3">
11434 <features tabularvalignment="middle">
11435 <column alignment="center" valignment="middle" width="2.5cm">
11436 <column alignment="center" valignment="middle">
11437 <column alignment="center" valignment="middle">
11439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11442 \begin_layout Plain Layout
11443 verylongtablecellword
11448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11451 \begin_layout Plain Layout
11457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11460 \begin_layout Plain Layout
11468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11471 \begin_layout Plain Layout
11477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11480 \begin_layout Plain Layout
11486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11489 \begin_layout Plain Layout
11497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11500 \begin_layout Plain Layout
11506 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11509 \begin_layout Plain Layout
11515 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11518 \begin_layout Plain Layout
11530 \begin_inset space \hfill{}
11534 \begin_inset Tabular
11535 <lyxtabular version="3" rows="3" columns="3">
11536 <features tabularvalignment="middle">
11537 <column alignment="center" valignment="middle" width="2.5cm">
11538 <column alignment="center" valignment="middle">
11539 <column alignment="center" valignment="middle">
11541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11544 \begin_layout Plain Layout
11545 \begin_inset space \hspace{}
11549 verylongtablecellword
11554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11557 \begin_layout Plain Layout
11563 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11566 \begin_layout Plain Layout
11574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11577 \begin_layout Plain Layout
11583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11586 \begin_layout Plain Layout
11592 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11595 \begin_layout Plain Layout
11603 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11606 \begin_layout Plain Layout
11612 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11615 \begin_layout Plain Layout
11621 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11624 \begin_layout Plain Layout
11636 \begin_inset space \hfill{}
11647 \begin_layout Subsection
11649 \begin_inset CommandInset label
11651 name "subsec:Multicolumns"
11656 \begin_inset Index idx
11659 \begin_layout Plain Layout
11666 \begin_inset Index idx
11669 \begin_layout Plain Layout
11670 Table ! Multicolumns
11678 \begin_layout Subsubsection
11682 \begin_layout Standard
11683 To merge cells over multiple columns, select as many cells within a row
11684 as you want to merge and use either the table-toolbar button
11687 arg "inset-modify tabular multicolumn"
11692 Edit\SpecialChar menuseparator
11693 Table\SpecialChar menuseparator
11696 , or right click on the marked cells and choose
11700 in the context menu.
11703 \begin_layout Standard
11704 Multicolumns have there own cell settings.
11705 That means changing cell borders, cell alignment, and the width only affects
11707 Here is an example table with a multicolumn cell in the first row and one
11708 in the last row without the upper border:
11709 \begin_inset Separator parbreak
11715 \begin_layout Standard
11717 \begin_inset Tabular
11718 <lyxtabular version="3" rows="3" columns="4">
11719 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11720 <column alignment="center" valignment="top" width="0pt">
11721 <column alignment="center" valignment="middle">
11722 <column alignment="center" valignment="top" width="0in">
11723 <column alignment="center" valignment="top" width="0pt">
11725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11728 \begin_layout Plain Layout
11734 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11737 \begin_layout Plain Layout
11743 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11746 \begin_layout Plain Layout
11752 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11755 \begin_layout Plain Layout
11763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11766 \begin_layout Plain Layout
11781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11784 \begin_layout Plain Layout
11790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11793 \begin_layout Plain Layout
11799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11802 \begin_layout Plain Layout
11810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11813 \begin_layout Plain Layout
11819 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11822 \begin_layout Plain Layout
11828 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11831 \begin_layout Plain Layout
11837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11840 \begin_layout Plain Layout
11854 \begin_layout Subsubsection
11855 Multicolumn Calculations
11856 \begin_inset CommandInset label
11858 name "subsec:Multicolumn-Calculations"
11863 \begin_inset Index idx
11866 \begin_layout Plain Layout
11867 Multicolumns ! Calculations
11875 \begin_layout Standard
11877 supports multicolumns directly, but we have to take account of the cell
11878 width of the columns spanned by the multicolumn cell.
11881 \begin_layout Standard
11882 \begin_inset Float table
11888 \begin_layout Plain Layout
11889 \begin_inset Caption Standard
11891 \begin_layout Plain Layout
11892 \begin_inset CommandInset label
11894 name "tab:Table-with-centered"
11898 Table with centered multicolumn text above two columns that have exactly
11899 half the width of the multicolumn cell
11900 \begin_inset Argument 1
11903 \begin_layout Plain Layout
11904 Perfect multicolumn table
11917 \begin_layout Plain Layout
11919 \begin_inset Tabular
11920 <lyxtabular version="3" rows="3" columns="3">
11921 <features tabularvalignment="middle">
11922 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11923 <column alignment="center" valignment="middle">
11924 <column alignment="center" valignment="top">
11926 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11929 \begin_layout Plain Layout
11930 multiple lines multicolumn
11935 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11938 \begin_layout Plain Layout
11944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11947 \begin_layout Plain Layout
11955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11958 \begin_layout Plain Layout
11964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11967 \begin_layout Plain Layout
11973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11976 \begin_layout Plain Layout
11984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11987 \begin_layout Plain Layout
11993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11996 \begin_layout Plain Layout
12002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12005 \begin_layout Plain Layout
12024 \begin_layout Standard
12025 To create for example Table
12026 \begin_inset space ~
12030 \begin_inset CommandInset ref
12032 reference "tab:Table-with-centered"
12036 , mark the first two cells in the first row of a 3×3 table and right-click
12038 Now choose for this cell
12047 \begin_inset space \thinspace{}
12050 cm in the table dialog.
12051 The merged columns should have exactly half the width of the multicolumn
12052 cell, so that you would set a width of 1.25
12053 \begin_inset space \thinspace{}
12056 cm for the first column.
12057 The second column has then automatically a width of 1.25
12058 \begin_inset space \thinspace{}
12061 cm (multicolumn width - width of first column).
12062 This was done for Table
12063 \begin_inset space ~
12067 \begin_inset CommandInset ref
12069 reference "tab:Table-without-half"
12076 \begin_layout Standard
12077 \begin_inset Float table
12082 \begin_layout Plain Layout
12083 \begin_inset Caption Standard
12085 \begin_layout Plain Layout
12086 \begin_inset CommandInset label
12088 name "tab:Table-without-half"
12092 Table where the spanned table columns are not exactly half the width of
12093 the multicolumn cell
12094 \begin_inset Argument 1
12097 \begin_layout Plain Layout
12098 Imperfect multicolumn table
12111 \begin_layout Plain Layout
12113 \begin_inset Tabular
12114 <lyxtabular version="3" rows="3" columns="3">
12115 <features tabularvalignment="middle">
12116 <column alignment="center" valignment="top" width="1.25cm">
12117 <column alignment="center" valignment="top">
12118 <column alignment="center" valignment="top">
12120 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12123 \begin_layout Plain Layout
12124 multiple lines multicolumn
12129 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12132 \begin_layout Plain Layout
12138 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12141 \begin_layout Plain Layout
12149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12152 \begin_layout Plain Layout
12158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12161 \begin_layout Plain Layout
12167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12170 \begin_layout Plain Layout
12178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12181 \begin_layout Plain Layout
12187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12190 \begin_layout Plain Layout
12196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12199 \begin_layout Plain Layout
12218 \begin_layout Standard
12219 You can see that the first column is not half the width of the multicolumn
12220 cell, it is a bit bigger.
12221 The reason is that the specified width of a cell
12222 \begin_inset Formula $W_{g}$
12225 is not its total width
12226 \begin_inset Formula $W_{\mathrm{tot}}$
12229 because a cell is always a bit larger than specified.
12231 \begin_inset space ~
12235 \begin_inset CommandInset ref
12237 reference "cha:Explanation-of-Equation"
12241 explains this in detail.
12244 \begin_layout Standard
12246 \begin_inset Formula $W_{g\,n}$
12249 which the user needs to set when
12253 columns are spanned can be calculated, so that each column has a total
12255 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12259 \begin_inset Formula
12261 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12269 \begin_layout Standard
12270 In our case we have
12271 \begin_inset Formula $n=2$
12275 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12278 cm and the default values for the lengths, so that equation
12279 \begin_inset CommandInset ref
12286 \begin_inset Formula
12288 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12296 \begin_layout Standard
12297 To enable calculations in \SpecialChar LaTeX
12298 , the \SpecialChar LaTeX
12303 must be loaded with the document preamble line
12304 \begin_inset Index idx
12307 \begin_layout Plain Layout
12317 \begin_layout Standard
12325 \begin_layout Standard
12327 does not allow you to calculate lengths in the
12331 field of the table dialog.
12332 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12335 Here is an overview about the arguments:
12338 \begin_layout Itemize
12343 creates cell with a fixed width, its text is vertically top-aligned
12346 \begin_layout Itemize
12351 creates cell with a fixed width, its text is vertically centered
12354 \begin_layout Itemize
12359 creates cell with a fixed width, its text is vertically bottom-aligned
12362 \begin_layout Standard
12363 By entering a \SpecialChar LaTeX
12364 -argument, all cell settings set in the table dialog are overwritt
12368 \begin_layout Standard
12369 \begin_inset Note Greyedout
12372 \begin_layout Plain Layout
12377 Due to a bug, \SpecialChar LyX
12378 shows the overwritten settings anyway.
12386 \begin_layout Standard
12387 As the text should be horizontally centered, the command
12394 You can now enter the following \SpecialChar LaTeX
12395 -argument for the first spanned column:
12398 \begin_layout Standard
12403 centering}m{1.25cm-6.2pt}
12406 \begin_layout Standard
12411 means, that the commands inside the braces are applied before the cell
12415 \begin_layout Standard
12416 Although we have chosen centered alignment for the text of the multicolumn
12417 cell, it is still left aligned.
12418 This is because \SpecialChar LyX
12419 only applies the alignment to single columns.
12420 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12424 \begin_layout Standard
12432 \begin_layout Subsection
12434 \begin_inset CommandInset label
12436 name "subsec:Multirows"
12441 \begin_inset Index idx
12444 \begin_layout Plain Layout
12451 \begin_inset Index idx
12454 \begin_layout Plain Layout
12463 \begin_layout Standard
12464 To merge cells over multiple rows, select as many cells within a column
12465 as you want to merge and use either the table-toolbar button
12468 arg "inset-modify tabular multirow"
12473 Edit\SpecialChar menuseparator
12474 Table\SpecialChar menuseparator
12477 , or right click on the marked cells and choose
12481 in the context menu.
12484 \begin_layout Standard
12485 Here is an example table with a multirow in the first column:
12486 \begin_inset Separator parbreak
12492 \begin_layout Standard
12494 \begin_inset Tabular
12495 <lyxtabular version="3" rows="3" columns="3">
12496 <features tabularvalignment="middle">
12497 <column alignment="center" valignment="top" width="0pt">
12498 <column alignment="center" valignment="top">
12499 <column alignment="center" valignment="top">
12501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12504 \begin_layout Plain Layout
12510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12513 \begin_layout Plain Layout
12519 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12522 \begin_layout Plain Layout
12530 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12533 \begin_layout Plain Layout
12539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12542 \begin_layout Plain Layout
12548 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12551 \begin_layout Plain Layout
12559 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12562 \begin_layout Plain Layout
12568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12571 \begin_layout Plain Layout
12577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12580 \begin_layout Plain Layout
12594 \begin_layout Standard
12595 The width of multirow cells is set by setting the width and alignment for
12601 shifts the content of the multirow up/down if the offset is positive/negative.
12604 \begin_layout Standard
12605 If the column of a multirow cell has no explicit width, the multirow cell
12606 inherits the alignment of the column.
12607 Otherwise it is by default left-aligned.
12608 To override the default, renew the command
12617 \begin_layout Standard
12629 \begin_layout Standard
12630 in the document preamble.
12631 Then all entries of multirow cells in the document are centered.
12632 If centering is only needed for several tables, you can renew the command
12633 in a \SpecialChar TeX
12634 Code box just before the table instead of the preamble.
12635 If the text should be right-aligned, replace
12648 To return to left-alignment
12657 \begin_layout Standard
12658 This is an example table with a right-aligned multirow cell that has a vertical
12660 \begin_inset space \thinspace{}
12664 \begin_inset space \thinspace{}
12668 \begin_inset Separator parbreak
12674 \begin_layout Standard
12680 \begin_layout Plain Layout
12694 \begin_inset Tabular
12695 <lyxtabular version="3" rows="4" columns="3">
12696 <features tabularvalignment="middle">
12697 <column alignment="center" valignment="top" width="3cm">
12698 <column alignment="center" valignment="top">
12699 <column alignment="center" valignment="top">
12701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12704 \begin_layout Plain Layout
12710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12713 \begin_layout Plain Layout
12719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12722 \begin_layout Plain Layout
12730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12733 \begin_layout Plain Layout
12739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12742 \begin_layout Plain Layout
12748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12751 \begin_layout Plain Layout
12759 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12762 \begin_layout Plain Layout
12768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12771 \begin_layout Plain Layout
12777 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12780 \begin_layout Plain Layout
12788 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12791 \begin_layout Plain Layout
12797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12800 \begin_layout Plain Layout
12806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12809 \begin_layout Plain Layout
12824 \begin_layout Plain Layout
12840 \begin_layout Standard
12841 To start a new line in a multirow you can use a forced line break (shortcut
12845 arg "newline-insert newline"
12848 ) but this will not respect the cell lines as demonstrated in this table:
12849 \begin_inset Separator parbreak
12855 \begin_layout Standard
12858 \begin_inset Tabular
12859 <lyxtabular version="3" rows="3" columns="2">
12860 <features tabularvalignment="middle">
12861 <column alignment="left" valignment="middle" width="2cm">
12862 <column alignment="center" valignment="top">
12864 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12867 \begin_layout Plain Layout
12869 \begin_inset Newline newline
12873 \begin_inset Newline newline
12881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12884 \begin_layout Plain Layout
12892 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12895 \begin_layout Plain Layout
12901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12904 \begin_layout Plain Layout
12912 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12915 \begin_layout Plain Layout
12921 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12924 \begin_layout Plain Layout
12938 \begin_layout Standard
12939 Therefore be careful with forced line breaks.
12942 \begin_layout Subsection
12943 Cells with diagonal line(s)
12946 \begin_layout Standard
12947 To tell the reader what is meant by column and row headings in a table,
12948 it is helpful to split the first cell of the table by one or two diagonal
12950 This can be achieved by loading the \SpecialChar LaTeX
12956 \begin_inset Index idx
12959 \begin_layout Plain Layout
12961 -packages ! picinpar
12966 in the document preamble.
12967 The package provides the command
12973 that is inserted as \SpecialChar TeX
12974 Code and that can take 2 or 3
12975 \begin_inset space ~
12981 \begin_layout Standard
12986 diagbox[options]{lower left}{upper right}
12989 \begin_layout Standard
12994 diagbox[options]{lower left}{upper left}{upper right}
12997 \begin_layout Standard
12998 The first scheme divides the cell by a single diagonal line and the arguments
12999 are placed below and above this line.
13000 The second scheme divides the cell by 2
13001 \begin_inset space ~
13007 \begin_layout Standard
13011 \begin_layout Plain Layout
13021 \begin_inset Note Note
13024 \begin_layout Plain Layout
13025 The following section will only be displayed when the \SpecialChar LaTeX
13038 \begin_layout Standard
13039 Here is an example table where
13045 is used in the 2-argument scheme in the first cell:
13046 \begin_inset VSpace medskip
13052 \begin_layout Standard
13054 \begin_inset Tabular
13055 <lyxtabular version="3" rows="4" columns="4">
13056 <features tabularvalignment="middle">
13057 <column alignment="center" valignment="top">
13058 <column alignment="center" valignment="top">
13059 <column alignment="center" valignment="top">
13060 <column alignment="center" valignment="top">
13062 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13065 \begin_layout Plain Layout
13069 \begin_layout Plain Layout
13082 \begin_layout Plain Layout
13093 \begin_layout Plain Layout
13105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13108 \begin_layout Plain Layout
13114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13117 \begin_layout Plain Layout
13123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13126 \begin_layout Plain Layout
13134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13137 \begin_layout Plain Layout
13143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13146 \begin_layout Plain Layout
13152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13155 \begin_layout Plain Layout
13161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13164 \begin_layout Plain Layout
13172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13175 \begin_layout Plain Layout
13181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13184 \begin_layout Plain Layout
13190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13193 \begin_layout Plain Layout
13199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13202 \begin_layout Plain Layout
13210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13213 \begin_layout Plain Layout
13219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13222 \begin_layout Plain Layout
13228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13231 \begin_layout Plain Layout
13237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13240 \begin_layout Plain Layout
13252 \begin_inset VSpace medskip
13258 \begin_layout Standard
13259 The 3-argument scheme is for example useful for cross-tables of sports leagues
13261 \begin_inset Separator parbreak
13267 \begin_layout Standard
13270 \begin_inset Tabular
13271 <lyxtabular version="3" rows="4" columns="4">
13272 <features tabularvalignment="middle">
13273 <column alignment="center" valignment="top" width="0pt">
13274 <column alignment="center" valignment="top">
13275 <column alignment="center" valignment="top">
13276 <column alignment="center" valignment="top">
13278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13281 \begin_layout Plain Layout
13285 \begin_layout Plain Layout
13298 \begin_layout Plain Layout
13309 \begin_layout Plain Layout
13320 \begin_layout Plain Layout
13332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13335 \begin_layout Plain Layout
13341 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13344 \begin_layout Plain Layout
13350 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13353 \begin_layout Plain Layout
13361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13364 \begin_layout Plain Layout
13370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13373 \begin_layout Plain Layout
13379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13382 \begin_layout Plain Layout
13388 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13391 \begin_layout Plain Layout
13399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13402 \begin_layout Plain Layout
13408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13411 \begin_layout Plain Layout
13417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13420 \begin_layout Plain Layout
13426 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13429 \begin_layout Plain Layout
13437 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13440 \begin_layout Plain Layout
13446 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13449 \begin_layout Plain Layout
13455 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13458 \begin_layout Plain Layout
13464 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13467 \begin_layout Plain Layout
13481 \begin_layout Standard
13482 For larger cross-tables one might use split cells in 2 or every corner of
13483 the table like in this example:
13484 \begin_inset Separator parbreak
13490 \begin_layout Standard
13493 \begin_inset Tabular
13494 <lyxtabular version="3" rows="5" columns="5">
13495 <features tabularvalignment="middle">
13496 <column alignment="center" valignment="top" width="0pt">
13497 <column alignment="center" valignment="top">
13498 <column alignment="center" valignment="top">
13499 <column alignment="center" valignment="top">
13500 <column alignment="center" valignment="top">
13502 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13505 \begin_layout Plain Layout
13509 \begin_layout Plain Layout
13522 \begin_layout Plain Layout
13533 \begin_layout Plain Layout
13544 \begin_layout Plain Layout
13556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13559 \begin_layout Plain Layout
13565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13568 \begin_layout Plain Layout
13574 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13577 \begin_layout Plain Layout
13583 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13586 \begin_layout Plain Layout
13590 \begin_layout Plain Layout
13603 \begin_layout Plain Layout
13614 \begin_layout Plain Layout
13625 \begin_layout Plain Layout
13639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13642 \begin_layout Plain Layout
13648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13651 \begin_layout Plain Layout
13657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13660 \begin_layout Plain Layout
13666 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13669 \begin_layout Plain Layout
13675 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13678 \begin_layout Plain Layout
13686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13689 \begin_layout Plain Layout
13695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13698 \begin_layout Plain Layout
13704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13707 \begin_layout Plain Layout
13713 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13716 \begin_layout Plain Layout
13722 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13725 \begin_layout Plain Layout
13733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13736 \begin_layout Plain Layout
13742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13745 \begin_layout Plain Layout
13751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13754 \begin_layout Plain Layout
13760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13763 \begin_layout Plain Layout
13769 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13772 \begin_layout Plain Layout
13780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13783 \begin_layout Plain Layout
13787 \begin_layout Plain Layout
13800 \begin_layout Plain Layout
13811 \begin_layout Plain Layout
13822 \begin_layout Plain Layout
13834 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13837 \begin_layout Plain Layout
13843 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13846 \begin_layout Plain Layout
13852 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13855 \begin_layout Plain Layout
13861 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13864 \begin_layout Plain Layout
13868 \begin_layout Plain Layout
13881 \begin_layout Plain Layout
13892 \begin_layout Plain Layout
13903 \begin_layout Plain Layout
13923 \begin_layout Standard
13924 To rotate the diagonal lines, the command option
13949 and represent a point of a compass.
13954 is for example the south-west corner.
13955 Thus in the lower left cell of the above table the command
13958 \begin_layout Standard
13963 diagbox[dir=SW]{Team home}{Result}{Team away}
13966 \begin_layout Standard
13968 If no direction is given, it will be NW.
13971 \begin_layout Standard
13972 The necessary width of split cells is automatically calculated.
13973 Thus if you set a fixed column width smaller than the calculated one, the
13974 cell's content will protrude the cell borders:
13975 \begin_inset Separator parbreak
13981 \begin_layout Standard
13984 \begin_inset Tabular
13985 <lyxtabular version="3" rows="2" columns="2">
13986 <features tabularvalignment="middle">
13987 <column alignment="center" valignment="top" width="3cm">
13988 <column alignment="center" valignment="top">
13990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13993 \begin_layout Plain Layout
13997 \begin_layout Plain Layout
14010 \begin_layout Plain Layout
14021 \begin_layout Plain Layout
14033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14036 \begin_layout Plain Layout
14044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14047 \begin_layout Plain Layout
14053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14056 \begin_layout Plain Layout
14070 \begin_layout Standard
14071 If you need a certain width for columns with a split cell, use the command
14076 (replace '3cm' by the width you need).
14077 In the following table the width of the first column is set to 4
14078 \begin_inset space \thinspace{}
14089 \begin_inset space \thinspace{}
14093 \begin_inset space \thinspace{}
14098 tabcolsep is necessary because the overall width is the width for the text
14099 (in this case the 4
14100 \begin_inset space \thinspace{}
14103 cm) plus two times the separation of the text and the cell border.
14104 The calculation of the width cannot be done in the command option of
14110 so one needs to create a new length which can be used later.
14111 This is done with the \SpecialChar TeX
14115 \begin_layout Standard
14123 \begin_inset Newline newline
14135 \begin_layout Standard
14139 \begin_layout Plain Layout
14148 \begin_layout Plain Layout
14164 \begin_layout Standard
14165 To enable calculations in \SpecialChar LaTeX
14166 one needs to load the package
14171 \begin_inset Index idx
14174 \begin_layout Plain Layout
14181 in the document preamble.
14184 \begin_layout Standard
14185 In this table you can now use the command
14188 \begin_layout Standard
14198 \begin_layout Standard
14200 \begin_inset Separator parbreak
14206 \begin_layout Standard
14209 \begin_inset Tabular
14210 <lyxtabular version="3" rows="2" columns="2">
14211 <features tabularvalignment="middle">
14212 <column alignment="center" valignment="top" width="4cm">
14213 <column alignment="center" valignment="top">
14215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14218 \begin_layout Plain Layout
14222 \begin_layout Plain Layout
14237 \begin_layout Plain Layout
14248 \begin_layout Plain Layout
14260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14263 \begin_layout Plain Layout
14271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14274 \begin_layout Plain Layout
14280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14283 \begin_layout Plain Layout
14297 \begin_layout Standard
14298 Note that the split cell needs to be the widest one in the column.
14299 Otherwise the length of the diagonal line cannot be calculated correctly
14300 like in this table:
14301 \begin_inset Separator parbreak
14307 \begin_layout Standard
14310 \begin_inset Tabular
14311 <lyxtabular version="3" rows="2" columns="2">
14312 <features tabularvalignment="middle">
14313 <column alignment="center" valignment="top" width="0pt">
14314 <column alignment="center" valignment="top">
14316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14319 \begin_layout Plain Layout
14323 \begin_layout Plain Layout
14336 \begin_layout Plain Layout
14347 \begin_layout Plain Layout
14359 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14362 \begin_layout Plain Layout
14370 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14373 \begin_layout Plain Layout
14379 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14382 \begin_layout Plain Layout
14396 \begin_layout Standard
14397 In this case use the
14408 It is then not necessary to add 2
14410 tabcolsep because the cell width is now the width of the column.
14411 In this table a width of 3
14412 \begin_inset space \thinspace{}
14416 \begin_inset Separator parbreak
14422 \begin_layout Standard
14425 \begin_inset Tabular
14426 <lyxtabular version="3" rows="2" columns="2">
14427 <features tabularvalignment="middle">
14428 <column alignment="center" valignment="top" width="0pt">
14429 <column alignment="center" valignment="top">
14431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14434 \begin_layout Plain Layout
14438 \begin_layout Plain Layout
14442 diagbox[width=3cm]{
14451 \begin_layout Plain Layout
14462 \begin_layout Plain Layout
14474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14477 \begin_layout Plain Layout
14485 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14488 \begin_layout Plain Layout
14494 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14497 \begin_layout Plain Layout
14511 \begin_layout Standard
14512 For multiple text lines in split cells one needs some extra height to fit
14513 the text to the cell.
14514 This can be achieved with the
14524 (replace '3cm' by the height you need).
14525 In the following table the command
14528 \begin_layout Standard
14533 diagbox[width=3cm,height=1.4cm]{A
14544 \begin_layout Standard
14545 is used in the first cell.
14554 creates hereby the line break.
14558 \begin_layout Plain Layout
14559 Breaking lines with
14563 is only possible when the column has a fixed width.
14569 \begin_inset Separator parbreak
14575 \begin_layout Standard
14578 \begin_inset Tabular
14579 <lyxtabular version="3" rows="2" columns="2">
14580 <features tabularvalignment="middle">
14581 <column alignment="center" valignment="top">
14582 <column alignment="center" valignment="top">
14584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14587 \begin_layout Plain Layout
14591 \begin_layout Plain Layout
14595 diagbox[width=3cm,height=1.4cm]{
14604 \begin_layout Plain Layout
14619 \begin_layout Plain Layout
14630 \begin_layout Plain Layout
14645 \begin_layout Plain Layout
14657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14660 \begin_layout Plain Layout
14668 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14671 \begin_layout Plain Layout
14677 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14680 \begin_layout Plain Layout
14694 \begin_layout Standard
14698 \begin_layout Plain Layout
14708 \begin_inset Note Note
14711 \begin_layout Plain Layout
14712 The following will be displayed when the \SpecialChar LaTeX
14725 \begin_layout Standard
14726 You need to install the \SpecialChar LaTeX
14731 to see the following part of this section in the output.
14734 \begin_layout Standard
14738 \begin_layout Plain Layout
14750 \begin_layout Standard
14751 For more info about the \SpecialChar LaTeX
14756 , see its documentation,
14757 \begin_inset CommandInset citation
14766 \begin_layout Section
14768 \begin_inset CommandInset label
14770 name "sec:Formal-Tables"
14775 \begin_inset Index idx
14778 \begin_layout Plain Layout
14787 \begin_layout Standard
14788 Tables are often typeset in books similar to Table
14789 \begin_inset space ~
14793 \begin_inset CommandInset ref
14795 reference "tab:Example-booktabs-table"
14800 This kind of tables is called
14801 \begin_inset Quotes eld
14809 \begin_inset Quotes erd
14813 To make a table a formal table use the option
14821 tab of the table dialog.
14824 \begin_layout Standard
14825 \begin_inset Float table
14831 \begin_layout Plain Layout
14832 \begin_inset Caption Standard
14834 \begin_layout Plain Layout
14835 \begin_inset CommandInset label
14837 name "tab:Example-booktabs-table"
14841 Example booktabs-table
14849 \begin_layout Plain Layout
14851 \begin_inset Tabular
14852 <lyxtabular version="3" rows="8" columns="4">
14853 <features booktabs="true" tabularvalignment="middle">
14854 <column alignment="center" valignment="top">
14855 <column alignment="center" valignment="top">
14856 <column alignment="center" valignment="top">
14857 <column alignment="center" valignment="top">
14859 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14862 \begin_layout Plain Layout
14868 <cell alignment="center" valignment="top" topline="true" usebox="none">
14871 \begin_layout Plain Layout
14873 \begin_inset space \thinspace{}
14881 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14884 \begin_layout Plain Layout
14886 \begin_inset space \thinspace{}
14894 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14897 \begin_layout Plain Layout
14905 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14908 \begin_layout Plain Layout
14912 \begin_layout Plain Layout
14925 \begin_layout Plain Layout
14934 Detector thickness in µm
14939 <cell alignment="center" valignment="top" usebox="none">
14942 \begin_layout Plain Layout
14948 <cell alignment="center" valignment="top" usebox="none">
14951 \begin_layout Plain Layout
14957 <cell alignment="center" valignment="top" usebox="none">
14960 \begin_layout Plain Layout
14968 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14971 \begin_layout Plain Layout
14977 <cell alignment="center" valignment="top" topline="true" usebox="none">
14980 \begin_layout Plain Layout
14986 <cell alignment="center" valignment="top" topline="true" usebox="none">
14989 \begin_layout Plain Layout
14995 <cell alignment="center" valignment="top" topline="true" usebox="none">
14998 \begin_layout Plain Layout
15005 <row topspace="default">
15006 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15009 \begin_layout Plain Layout
15010 Spatial resolution in µm
15015 <cell alignment="center" valignment="top" usebox="none">
15018 \begin_layout Plain Layout
15024 <cell alignment="center" valignment="top" usebox="none">
15027 \begin_layout Plain Layout
15033 <cell alignment="center" valignment="top" usebox="none">
15036 \begin_layout Plain Layout
15043 <row topspace="default">
15044 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15047 \begin_layout Plain Layout
15049 \begin_inset Formula $f_{\mathrm{max}}$
15057 <cell alignment="center" valignment="top" usebox="none">
15060 \begin_layout Plain Layout
15066 <cell alignment="center" valignment="top" usebox="none">
15069 \begin_layout Plain Layout
15075 <cell alignment="center" valignment="top" usebox="none">
15078 \begin_layout Plain Layout
15085 <row topspace="default">
15086 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15089 \begin_layout Plain Layout
15093 \begin_layout Plain Layout
15097 cmidrule[2pt](l{10pt}){1-1}
15102 LSF-spatial resolution
15107 <cell alignment="center" valignment="top" usebox="none">
15110 \begin_layout Plain Layout
15116 <cell alignment="center" valignment="top" usebox="none">
15119 \begin_layout Plain Layout
15125 <cell alignment="center" valignment="top" usebox="none">
15128 \begin_layout Plain Layout
15136 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15139 \begin_layout Plain Layout
15145 <cell alignment="center" valignment="top" usebox="none">
15148 \begin_layout Plain Layout
15154 <cell alignment="center" valignment="top" usebox="none">
15157 \begin_layout Plain Layout
15163 <cell alignment="center" valignment="top" usebox="none">
15166 \begin_layout Plain Layout
15174 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15177 \begin_layout Plain Layout
15183 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15186 \begin_layout Plain Layout
15192 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15195 \begin_layout Plain Layout
15201 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15204 \begin_layout Plain Layout
15223 \begin_layout Standard
15224 Spaces to table rows can be added using the
15228 tab of the table dialog as described in section
15229 \begin_inset space ~
15233 \begin_inset CommandInset ref
15235 reference "subsec:Row-Spacing"
15242 \begin_layout Standard
15243 Unlike normal tables, formal tables have no vertical table lines.
15244 The horizontal table lines can be set as for normal tables but they appear
15245 with different widths in the output:
15246 \begin_inset Newline newline
15249 The first and the last table line have a default width of 0.08
15250 \begin_inset space \thinspace{}
15253 em while the other lines have a default width of 0.05
15254 \begin_inset space \thinspace{}
15260 \begin_layout Standard
15261 The default widths can be changed with the following preamble lines
15264 \begin_layout Standard
15274 \begin_inset Newline newline
15286 \begin_layout Standard
15287 This example is for the first line, the so called
15292 If you want to change the width for the last line, replace
15301 To change the width for the other lines replace
15310 You can use all units listed in appendix
15311 \begin_inset space ~
15315 \begin_inset CommandInset ref
15317 reference "cha:Units-available-in"
15324 \begin_layout Standard
15325 Lines that do not span all table columns can be created by setting a table
15326 line for multicolumn cells.
15328 will then internally use the command
15334 to create this line.
15338 \begin_layout Standard
15343 cmidrule[height](trim){startcol-endcol}
15346 \begin_layout Standard
15353 are currently not supported by \SpecialChar LyX
15354 so you have to use \SpecialChar TeX
15363 s can manually be created by inserting the command as \SpecialChar TeX
15365 cell entry of the first cell of a row.
15366 The line is then drawn in the output above the current row.
15369 \begin_layout Standard
15370 The default for the optional
15375 \begin_inset space \thinspace{}
15383 is the number of the column where the line starts and
15387 the column number where the line ends.
15392 always needs to be specified, also when the line should span only one column.
15393 The optional parameter
15410 Using for example the parameter
15414 means that the line is trimmed from its left end by 2
15415 \begin_inset space \thinspace{}
15419 If you don't specify the
15423 the line is trimmed by the default of 0.5
15424 \begin_inset space \thinspace{}
15430 \begin_layout Standard
15431 \begin_inset VSpace bigskip
15435 \begin_inset space ~
15439 \begin_inset CommandInset ref
15441 reference "tab:Example-booktabs-table"
15445 was created using the commands
15448 \begin_layout Standard
15458 \begin_layout Standard
15459 at the beginning of the second row and
15462 \begin_layout Standard
15467 cmidrule[2pt](l{10pt}){1-1}
15470 \begin_layout Standard
15474 \begin_layout Standard
15475 \begin_inset VSpace bigskip
15481 \begin_layout Standard
15482 You might want to have overlapping
15489 \begin_inset space ~
15493 \begin_inset CommandInset ref
15495 reference "tab:Special-booktabs-table"
15500 This can be achieved with the \SpecialChar TeX
15504 \begin_layout Standard
15512 \begin_layout Standard
15513 The command that was used for the second row of Table
15514 \begin_inset space ~
15518 \begin_inset CommandInset ref
15520 reference "tab:Special-booktabs-table"
15527 \begin_layout Standard
15541 \begin_layout Standard
15542 The command for the sixth row is
15545 \begin_layout Standard
15557 \begin_layout Standard
15558 \begin_inset VSpace bigskip
15564 \begin_layout Standard
15565 If you are in any way not satisfied with the border line spacing, you can
15566 use the following command to produce lines that span over all table columns
15571 \begin_layout Standard
15576 specialrule{width}{space above}{space below}
15579 \begin_layout Standard
15580 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15587 \begin_inset CommandInset citation
15594 \begin_inset Index idx
15597 \begin_layout Plain Layout
15599 -packages ! booktabs
15607 \begin_layout Standard
15608 \begin_inset Float table
15614 \begin_layout Plain Layout
15615 \begin_inset Caption Standard
15617 \begin_layout Plain Layout
15618 \begin_inset CommandInset label
15620 name "tab:Special-booktabs-table"
15624 Special booktabs-table
15632 \begin_layout Plain Layout
15634 \begin_inset Tabular
15635 <lyxtabular version="3" rows="8" columns="4">
15636 <features booktabs="true" tabularvalignment="middle">
15637 <column alignment="center" valignment="top">
15638 <column alignment="center" valignment="top">
15639 <column alignment="center" valignment="top">
15640 <column alignment="center" valignment="top">
15642 <cell alignment="center" valignment="top" topline="true" usebox="none">
15645 \begin_layout Plain Layout
15651 <cell alignment="center" valignment="top" topline="true" usebox="none">
15654 \begin_layout Plain Layout
15656 \begin_inset space \thinspace{}
15664 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15667 \begin_layout Plain Layout
15669 \begin_inset space \thinspace{}
15677 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15680 \begin_layout Plain Layout
15688 <cell alignment="center" valignment="top" usebox="none">
15691 \begin_layout Plain Layout
15695 \begin_layout Plain Layout
15708 \begin_layout Plain Layout
15721 \begin_layout Plain Layout
15734 \begin_layout Plain Layout
15743 Detector thickness in µm
15748 <cell alignment="center" valignment="top" usebox="none">
15751 \begin_layout Plain Layout
15757 <cell alignment="center" valignment="top" usebox="none">
15760 \begin_layout Plain Layout
15766 <cell alignment="center" valignment="top" usebox="none">
15769 \begin_layout Plain Layout
15777 <cell alignment="center" valignment="top" topline="true" usebox="none">
15780 \begin_layout Plain Layout
15786 <cell alignment="center" valignment="top" topline="true" usebox="none">
15789 \begin_layout Plain Layout
15795 <cell alignment="center" valignment="top" topline="true" usebox="none">
15798 \begin_layout Plain Layout
15804 <cell alignment="center" valignment="top" topline="true" usebox="none">
15807 \begin_layout Plain Layout
15814 <row topspace="default">
15815 <cell alignment="center" valignment="top" usebox="none">
15818 \begin_layout Plain Layout
15819 Spatial resolution in µm
15824 <cell alignment="center" valignment="top" usebox="none">
15827 \begin_layout Plain Layout
15833 <cell alignment="center" valignment="top" usebox="none">
15836 \begin_layout Plain Layout
15842 <cell alignment="center" valignment="top" usebox="none">
15845 \begin_layout Plain Layout
15852 <row topspace="default">
15853 <cell alignment="center" valignment="top" usebox="none">
15856 \begin_layout Plain Layout
15858 \begin_inset Formula $f_{\mathrm{max}}$
15866 <cell alignment="center" valignment="top" usebox="none">
15869 \begin_layout Plain Layout
15875 <cell alignment="center" valignment="top" usebox="none">
15878 \begin_layout Plain Layout
15884 <cell alignment="center" valignment="top" usebox="none">
15887 \begin_layout Plain Layout
15895 <cell alignment="center" valignment="top" topline="true" usebox="none">
15898 \begin_layout Plain Layout
15902 \begin_layout Plain Layout
15915 \begin_layout Plain Layout
15924 LSF-spatial resolution
15929 <cell alignment="center" valignment="top" topline="true" usebox="none">
15932 \begin_layout Plain Layout
15938 <cell alignment="center" valignment="top" topline="true" usebox="none">
15941 \begin_layout Plain Layout
15947 <cell alignment="center" valignment="top" topline="true" usebox="none">
15950 \begin_layout Plain Layout
15958 <cell alignment="center" valignment="top" usebox="none">
15961 \begin_layout Plain Layout
15967 <cell alignment="center" valignment="top" usebox="none">
15970 \begin_layout Plain Layout
15976 <cell alignment="center" valignment="top" usebox="none">
15979 \begin_layout Plain Layout
15985 <cell alignment="center" valignment="top" usebox="none">
15988 \begin_layout Plain Layout
15996 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15999 \begin_layout Plain Layout
16005 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16008 \begin_layout Plain Layout
16014 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16017 \begin_layout Plain Layout
16023 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16026 \begin_layout Plain Layout
16045 \begin_layout Section
16046 Vertical Table Alignment
16047 \begin_inset Index idx
16050 \begin_layout Plain Layout
16059 \begin_layout Standard
16060 To align tables vertically in a text line, the table must be inside a box.
16061 The box can then be vertically aligned as described in section
16062 \begin_inset space ~
16066 \begin_inset CommandInset ref
16068 reference "sec:Box-Dialog"
16075 \begin_layout Standard
16076 In the following example the tables are inside a minipage
16080 \begin_layout Plain Layout
16081 Minipages are described in section
16082 \begin_inset space ~
16086 \begin_inset CommandInset ref
16088 reference "sec:Minipages"
16097 box that has a width of 15
16098 \begin_inset space \thinspace{}
16104 \begin_layout Itemize
16106 \begin_inset Box Frameless
16116 height_special "totalheight"
16121 backgroundcolor "none"
16124 \begin_layout Plain Layout
16125 \begin_inset Tabular
16126 <lyxtabular version="3" rows="3" columns="3">
16127 <features tabularvalignment="middle">
16128 <column alignment="center" valignment="top">
16129 <column alignment="center" valignment="top">
16130 <column alignment="center" valignment="top">
16132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16135 \begin_layout Plain Layout
16141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16144 \begin_layout Plain Layout
16150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16153 \begin_layout Plain Layout
16161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16164 \begin_layout Plain Layout
16170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16173 \begin_layout Plain Layout
16179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16182 \begin_layout Plain Layout
16190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16193 \begin_layout Plain Layout
16199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16202 \begin_layout Plain Layout
16208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16211 \begin_layout Plain Layout
16231 \begin_layout Plain Layout
16243 \begin_inset Box Frameless
16253 height_special "totalheight"
16258 backgroundcolor "none"
16261 \begin_layout Plain Layout
16262 \begin_inset Tabular
16263 <lyxtabular version="3" rows="3" columns="3">
16264 <features tabularvalignment="middle">
16265 <column alignment="center" valignment="top">
16266 <column alignment="center" valignment="top">
16267 <column alignment="center" valignment="top">
16269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16272 \begin_layout Plain Layout
16278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16281 \begin_layout Plain Layout
16287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16290 \begin_layout Plain Layout
16298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16301 \begin_layout Plain Layout
16307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16310 \begin_layout Plain Layout
16316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16319 \begin_layout Plain Layout
16327 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16330 \begin_layout Plain Layout
16336 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16339 \begin_layout Plain Layout
16345 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16348 \begin_layout Plain Layout
16368 \begin_layout Plain Layout
16378 \begin_layout Itemize
16380 \begin_inset Box Frameless
16390 height_special "totalheight"
16395 backgroundcolor "none"
16398 \begin_layout Plain Layout
16399 \begin_inset Tabular
16400 <lyxtabular version="3" rows="3" columns="3">
16401 <features tabularvalignment="middle">
16402 <column alignment="center" valignment="top">
16403 <column alignment="center" valignment="top">
16404 <column alignment="center" valignment="top">
16406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16409 \begin_layout Plain Layout
16415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16418 \begin_layout Plain Layout
16424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16427 \begin_layout Plain Layout
16435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16438 \begin_layout Plain Layout
16444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16447 \begin_layout Plain Layout
16453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16456 \begin_layout Plain Layout
16464 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16467 \begin_layout Plain Layout
16473 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16476 \begin_layout Plain Layout
16482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16485 \begin_layout Plain Layout
16504 \begin_layout Itemize
16506 \begin_inset Box Frameless
16516 height_special "totalheight"
16521 backgroundcolor "none"
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">
16529 <column alignment="center" valignment="top">
16530 <column alignment="center" valignment="top">
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"
16658 backgroundcolor "none"
16661 \begin_layout Plain Layout
16662 \begin_inset Tabular
16663 <lyxtabular version="3" rows="3" columns="3">
16664 <features tabularvalignment="middle">
16665 <column alignment="center" valignment="top">
16666 <column alignment="center" valignment="top">
16667 <column alignment="center" valignment="top">
16669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16672 \begin_layout Plain Layout
16678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16681 \begin_layout Plain Layout
16687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16690 \begin_layout Plain Layout
16698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16701 \begin_layout Plain Layout
16707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16710 \begin_layout Plain Layout
16716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16719 \begin_layout Plain Layout
16727 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16730 \begin_layout Plain Layout
16736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16739 \begin_layout Plain Layout
16745 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16748 \begin_layout Plain Layout
16768 \begin_layout Plain Layout
16778 \begin_layout Standard
16779 As you will see, the content of the first and last table row is not correctly
16781 To get this alignment, the minipage box must be set into a raisebox
16785 \begin_layout Plain Layout
16786 Raiseboxes are described in section
16787 \begin_inset space ~
16791 \begin_inset CommandInset ref
16793 reference "subsec:Vertical-Alignment"
16803 In the example above the second table in the first item is aligned using
16804 the \SpecialChar TeX
16808 \begin_layout Standard
16818 \begin_layout Standard
16820 After the box the closing brace
16824 is inserted as \SpecialChar TeX
16826 For the second table in the last item the command
16829 \begin_layout Standard
16839 \begin_layout Standard
16843 \begin_layout Standard
16844 \begin_inset Note Greyedout
16847 \begin_layout Plain Layout
16852 The alignment of the table row content to the surrounding text line is
16854 The required value for the
16860 command for this alignment depends on the document font, the font size,
16861 and the table line thickness.
16869 \begin_layout Section
16871 \begin_inset CommandInset label
16873 name "sec:Colored-Tables"
16878 \begin_inset Index idx
16881 \begin_layout Plain Layout
16890 \begin_layout Subsection
16892 \begin_inset Index idx
16895 \begin_layout Plain Layout
16896 Table Color ! for Cells
16902 \begin_inset Index idx
16905 \begin_layout Plain Layout
16906 Color ! for Table Cells
16914 \begin_layout Standard
16915 \begin_inset Float table
16921 \begin_layout Plain Layout
16922 \begin_inset Caption Standard
16924 \begin_layout Plain Layout
16925 \begin_inset CommandInset label
16927 name "tab:Table-colored-without"
16931 Table colored without using the package
16936 \begin_inset Argument 1
16939 \begin_layout Plain Layout
16940 Table without colortbl
16953 \begin_layout Plain Layout
16955 \begin_inset Tabular
16956 <lyxtabular version="3" rows="3" columns="3">
16957 <features tabularvalignment="middle">
16958 <column alignment="center" valignment="top">
16959 <column alignment="center" valignment="top">
16960 <column alignment="center" valignment="top">
16962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16965 \begin_layout Plain Layout
16973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16976 \begin_layout Plain Layout
16984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16987 \begin_layout Plain Layout
16997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17000 \begin_layout Plain Layout
17008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17011 \begin_layout Plain Layout
17019 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17022 \begin_layout Plain Layout
17032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17035 \begin_layout Plain Layout
17043 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17046 \begin_layout Plain Layout
17054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17057 \begin_layout Plain Layout
17078 \begin_layout Standard
17079 If you only need colored text, mark the cells and choose a color in the
17083 \begin_inset space ~
17088 dialog (toolbar button
17091 arg "dialog-show character"
17095 This was used to create Table
17096 \begin_inset space ~
17100 \begin_inset CommandInset ref
17102 reference "tab:Table-colored-without"
17107 In any other case you have to use the \SpecialChar LaTeX
17113 \begin_inset Index idx
17116 \begin_layout Plain Layout
17118 -packages ! colortbl
17126 \begin_layout Standard
17130 \begin_layout Plain Layout
17140 \begin_inset Note Note
17143 \begin_layout Plain Layout
17144 The following section part will only be displayed when the \SpecialChar LaTeX
17157 \begin_layout Standard
17158 To create colored tables,
17162 must be loaded in the preamble with the line
17165 \begin_layout Standard
17170 usepackage{colortbl}
17173 \begin_layout Standard
17174 The color of a column is adjusted with the command
17177 \begin_layout Standard
17182 columncolor{name of color}
17185 \begin_layout Standard
17191 More about the command
17195 is contained in section
17196 \begin_inset space ~
17200 \begin_inset CommandInset ref
17202 reference "subsec:Multicolumn-Calculations"
17209 \begin_layout Standard
17210 The following color names are predefined:
17213 \begin_layout Standard
17247 \begin_layout Standard
17248 \begin_inset VSpace medskip
17254 \begin_layout Standard
17255 If you add the options
17258 \begin_layout Standard
17261 usenames,dvipsnames
17264 \begin_layout Standard
17265 to the document class options in the document settings, you can additionally
17267 \begin_inset space ~
17271 These colors are listed in appendix
17272 \begin_inset space ~
17276 \begin_inset CommandInset ref
17278 reference "chap:List-of-dvips-colornames"
17283 One of these colors,
17287 , is used as example in Table
17288 \begin_inset space ~
17292 \begin_inset CommandInset ref
17294 reference "tab:Table-colored-using"
17301 \begin_layout Standard
17302 \begin_inset VSpace medskip
17308 \begin_layout Standard
17309 You can also define your own color with the command
17312 \begin_layout Standard
17317 definecolor{color name}{color model}{color values}
17320 \begin_layout Standard
17321 The color model can be
17324 \begin_layout Labeling
17325 \labelwidthstring 00.00.0000
17326 cmyk: cyan, magenta, yellow, black
17329 \begin_layout Labeling
17330 \labelwidthstring 00.00.0000
17331 rgb: red, green blue
17334 \begin_layout Labeling
17335 \labelwidthstring 00.00.0000
17339 \begin_layout Standard
17340 and the color values are comma separated numbers between 0 and 1 describing
17341 the factor for the corresponding color of the color model.
17344 \begin_layout Standard
17346 \begin_inset space \thinspace{}
17350 \begin_inset space \space{}
17357 " in the preamble with
17360 \begin_layout Standard
17365 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17368 \begin_layout Standard
17376 \begin_layout Standard
17381 definecolor{lightgray}{gray}{0.8}
17384 \begin_layout Standard
17385 \begin_inset VSpace medskip
17391 \begin_layout Standard
17392 Lines are colored with the command
17395 \begin_layout Standard
17400 rowcolor{name of color}
17403 \begin_layout Standard
17404 and cells are colored with the command
17407 \begin_layout Standard
17412 cellcolor{name of color}
17415 \begin_layout Standard
17416 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17420 \begin_layout Standard
17421 To color characters in the table, mark the cells and use the
17424 \begin_inset space ~
17430 If a cell contains \SpecialChar TeX
17431 Code mark only the characters, otherwise the colored
17433 Code will cause \SpecialChar LaTeX
17437 \begin_layout Standard
17438 \begin_inset Note Greyedout
17441 \begin_layout Plain Layout
17446 Not all DVI-viewers are able to display self-defined colors.
17454 \begin_layout Standard
17455 \begin_inset VSpace bigskip
17461 \begin_layout Standard
17463 \begin_inset space ~
17467 \begin_inset CommandInset ref
17469 reference "tab:Table-colored-using"
17473 do the following: The color of the first column should be
17481 \begin_layout Standard
17486 columncolor{darkgreen}
17491 \begin_layout Standard
17492 as \SpecialChar LaTeX
17493 -argument for this column.
17494 The first row should be light blue, therefore the \SpecialChar TeX
17498 \begin_layout Standard
17506 \begin_layout Standard
17507 is inserted to the first cell of this row.
17508 Note that this overwrites the column color for the first cell.
17509 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17514 \begin_layout Standard
17522 \begin_layout Standard
17523 The characters could now be colored using the menu
17525 Edit\SpecialChar menuseparator
17527 \begin_inset space ~
17535 \begin_layout Standard
17536 \begin_inset Float table
17542 \begin_layout Plain Layout
17543 \begin_inset Caption Standard
17545 \begin_layout Plain Layout
17546 \begin_inset CommandInset label
17548 name "tab:Table-colored-using"
17552 Table colored using the package
17557 \begin_inset Argument 1
17560 \begin_layout Plain Layout
17561 Table with colortbl
17574 \begin_layout Plain Layout
17576 \begin_inset Tabular
17577 <lyxtabular version="3" rows="3" columns="3">
17578 <features tabularvalignment="middle">
17579 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17580 <column alignment="center" valignment="top">
17581 <column alignment="center" valignment="top">
17583 <cell alignment="center" valignment="top" usebox="none">
17586 \begin_layout Plain Layout
17590 \begin_layout Plain Layout
17606 <cell alignment="center" valignment="top" usebox="none">
17609 \begin_layout Plain Layout
17617 <cell alignment="center" valignment="top" usebox="none">
17620 \begin_layout Plain Layout
17630 <cell alignment="center" valignment="top" usebox="none">
17633 \begin_layout Plain Layout
17641 <cell alignment="center" valignment="top" usebox="none">
17644 \begin_layout Plain Layout
17652 <cell alignment="center" valignment="top" usebox="none">
17655 \begin_layout Plain Layout
17665 <cell alignment="center" valignment="top" usebox="none">
17668 \begin_layout Plain Layout
17676 <cell alignment="center" valignment="top" usebox="none">
17679 \begin_layout Plain Layout
17687 <cell alignment="center" valignment="top" usebox="none">
17690 \begin_layout Plain Layout
17694 \begin_layout Plain Layout
17723 \begin_layout Standard
17727 \begin_layout Plain Layout
17737 \begin_inset Note Note
17740 \begin_layout Plain Layout
17741 The following will be displayed when the \SpecialChar LaTeX
17754 \begin_layout Standard
17755 You need to install the package
17759 to see the content of this section in the output.
17762 \begin_layout Standard
17766 \begin_layout Plain Layout
17778 \begin_layout Subsection
17780 \begin_inset Index idx
17783 \begin_layout Plain Layout
17784 Table Color ! for Rows
17790 \begin_inset Index idx
17793 \begin_layout Plain Layout
17794 Color ! for Table Rows
17802 \begin_layout Standard
17803 In case every second table row needs to be colored there is an alternative
17804 to the method described in the previous section: One loads the package
17810 \begin_inset Index idx
17813 \begin_layout Plain Layout
17819 \begin_layout Plain Layout
17833 in the document preamble with the command
17836 \begin_layout Standard
17841 usepackage[table]{xcolor}
17844 \begin_layout Standard
17849 automatically loads also the package
17854 \begin_inset Index idx
17857 \begin_layout Plain Layout
17859 -packages ! colortbl
17868 must be installed in your \SpecialChar LaTeX
17869 -distribution, otherwise you get \SpecialChar LaTeX
17873 \begin_layout Standard
17877 \begin_layout Plain Layout
17887 \begin_inset Note Note
17890 \begin_layout Plain Layout
17891 The following section part will only be displayed when the \SpecialChar LaTeX
17904 \begin_layout Standard
17905 The table rows are colored with the command
17908 \begin_layout Standard
17913 rowcolors[commands]{row number}{odd row color}{even row color}
17916 \begin_layout Standard
17917 that is either inserted in the document preamble or as \SpecialChar TeX
17919 first table to be colored.
17921 \begin_inset space ~
17924 number is the number of the first row which should be colored according
17925 to the odd row color.
17926 commands can be additional commands that are executed before every table
17928 So for example the command
17931 \begin_layout Standard
17936 rowcolors{1}{white}{lightgray}
17939 \begin_layout Standard
17940 leads to the coloring scheme of Table
17941 \begin_inset space ~
17945 \begin_inset CommandInset ref
17947 reference "tab:Table-rowcolors"
17955 \begin_layout Standard
17962 hline]{1}{lightgray}{cyan}
17965 \begin_layout Standard
17966 leads to the coloring scheme of Table
17967 \begin_inset space ~
17971 \begin_inset CommandInset ref
17973 reference "tab:Table-rowcolors-2"
17979 \begin_inset space ~
17983 \begin_inset space ~
17987 \begin_inset space ~
17991 \begin_inset space ~
17994 color are left empty, no color will be used so that the command
17997 \begin_layout Standard
18005 \begin_layout Standard
18006 deletes all colors.
18013 affects all tables following that command.
18016 \begin_layout Standard
18020 \begin_layout Plain Layout
18024 rowcolors{1}{white}{lightgray}
18032 \begin_layout Standard
18033 \begin_inset Float table
18039 \begin_layout Plain Layout
18040 \begin_inset Caption Standard
18042 \begin_layout Plain Layout
18043 \begin_inset CommandInset label
18045 name "tab:Table-rowcolors"
18049 Table where every second row is colored light gray.
18057 \begin_layout Plain Layout
18059 \begin_inset Tabular
18060 <lyxtabular version="3" rows="4" columns="3">
18061 <features tabularvalignment="middle">
18062 <column alignment="center" valignment="top">
18063 <column alignment="center" valignment="top" width="0pt">
18064 <column alignment="center" valignment="top" width="0pt">
18066 <cell alignment="center" valignment="top" usebox="none">
18069 \begin_layout Plain Layout
18075 <cell alignment="center" valignment="top" usebox="none">
18078 \begin_layout Plain Layout
18084 <cell alignment="center" valignment="top" usebox="none">
18087 \begin_layout Plain Layout
18095 <cell alignment="center" valignment="top" usebox="none">
18098 \begin_layout Plain Layout
18104 <cell alignment="center" valignment="top" usebox="none">
18107 \begin_layout Plain Layout
18113 <cell alignment="center" valignment="top" usebox="none">
18116 \begin_layout Plain Layout
18124 <cell alignment="center" valignment="top" usebox="none">
18127 \begin_layout Plain Layout
18133 <cell alignment="center" valignment="top" usebox="none">
18136 \begin_layout Plain Layout
18142 <cell alignment="center" valignment="top" usebox="none">
18145 \begin_layout Plain Layout
18153 <cell alignment="center" valignment="top" usebox="none">
18156 \begin_layout Plain Layout
18162 <cell alignment="center" valignment="top" usebox="none">
18165 \begin_layout Plain Layout
18171 <cell alignment="center" valignment="top" usebox="none">
18174 \begin_layout Plain Layout
18193 \begin_layout Standard
18197 \begin_layout Plain Layout
18203 hline]{1}{lightgray}{cyan}
18211 \begin_layout Standard
18212 \begin_inset Float table
18218 \begin_layout Plain Layout
18219 \begin_inset Caption Standard
18221 \begin_layout Plain Layout
18222 \begin_inset CommandInset label
18224 name "tab:Table-rowcolors-2"
18228 Table where every second row is colored cyan and at which there is a line
18237 \begin_layout Plain Layout
18239 \begin_inset Tabular
18240 <lyxtabular version="3" rows="4" columns="3">
18241 <features tabularvalignment="middle">
18242 <column alignment="center" valignment="top">
18243 <column alignment="center" valignment="top">
18244 <column alignment="center" valignment="top" width="0pt">
18246 <cell alignment="center" valignment="top" usebox="none">
18249 \begin_layout Plain Layout
18255 <cell alignment="center" valignment="top" usebox="none">
18258 \begin_layout Plain Layout
18264 <cell alignment="center" valignment="top" usebox="none">
18267 \begin_layout Plain Layout
18275 <cell alignment="center" valignment="top" usebox="none">
18278 \begin_layout Plain Layout
18284 <cell alignment="center" valignment="top" usebox="none">
18287 \begin_layout Plain Layout
18293 <cell alignment="center" valignment="top" usebox="none">
18296 \begin_layout Plain Layout
18304 <cell alignment="center" valignment="top" usebox="none">
18307 \begin_layout Plain Layout
18313 <cell alignment="center" valignment="top" usebox="none">
18316 \begin_layout Plain Layout
18322 <cell alignment="center" valignment="top" usebox="none">
18325 \begin_layout Plain Layout
18333 <cell alignment="center" valignment="top" usebox="none">
18336 \begin_layout Plain Layout
18342 <cell alignment="center" valignment="top" usebox="none">
18345 \begin_layout Plain Layout
18351 <cell alignment="center" valignment="top" usebox="none">
18354 \begin_layout Plain Layout
18373 \begin_layout Standard
18377 \begin_layout Plain Layout
18387 \begin_inset Note Note
18390 \begin_layout Plain Layout
18391 turns off the row coloring
18399 \begin_layout Standard
18403 \begin_layout Plain Layout
18413 \begin_inset Note Note
18416 \begin_layout Plain Layout
18417 The following will be displayed when the \SpecialChar LaTeX
18430 \begin_layout Standard
18431 You need to install the package
18435 to see the content of this section in the output.
18438 \begin_layout Standard
18442 \begin_layout Plain Layout
18454 \begin_layout Subsection
18456 \begin_inset Index idx
18459 \begin_layout Plain Layout
18460 Table Color ! for Lines
18466 \begin_inset Index idx
18469 \begin_layout Plain Layout
18470 Color ! for Table Lines
18478 \begin_layout Standard
18479 As described in section
18480 \begin_inset space ~
18484 \begin_inset CommandInset ref
18486 reference "subsec:Line-Thickness"
18490 , the line thickness for all lines in a table can be adjusted with the length
18499 \begin_inset space \thinspace{}
18502 pt for all tables of this section.
18506 \begin_layout Plain Layout
18512 arrayrulewidth}{1.5pt}
18520 \begin_layout Standard
18521 To color vertical lines for example with green, create the following column
18522 format in the document preamble, according to the description in section
18523 \begin_inset space ~
18527 \begin_inset CommandInset ref
18529 reference "subsec:Customized-Format"
18536 \begin_layout Standard
18541 newcolumntype{W}{!{
18548 \begin_layout Standard
18550 \begin_inset space ~
18554 \begin_inset CommandInset ref
18556 reference "tab:Table-with-vertical-colored"
18560 the \SpecialChar LaTeX
18565 was used for the last column and
18569 for the other columns.
18572 \begin_layout Standard
18573 If you want to have several colors, define more column formats.
18576 \begin_layout Standard
18577 \begin_inset Float table
18583 \begin_layout Plain Layout
18584 \begin_inset Caption Standard
18586 \begin_layout Plain Layout
18587 \begin_inset CommandInset label
18589 name "tab:Table-with-vertical-colored"
18593 Table with colored vertical lines
18601 \begin_layout Plain Layout
18603 \begin_inset Tabular
18604 <lyxtabular version="3" rows="3" columns="3">
18605 <features tabularvalignment="middle">
18606 <column alignment="center" valignment="top" special="Wc">
18607 <column alignment="center" valignment="top" special="Wc">
18608 <column alignment="center" valignment="top" special="WcW">
18610 <cell alignment="center" valignment="top" topline="true" usebox="none">
18613 \begin_layout Plain Layout
18619 <cell alignment="center" valignment="top" topline="true" usebox="none">
18622 \begin_layout Plain Layout
18628 <cell alignment="center" valignment="top" topline="true" usebox="none">
18631 \begin_layout Plain Layout
18639 <cell alignment="center" valignment="top" topline="true" usebox="none">
18642 \begin_layout Plain Layout
18648 <cell alignment="center" valignment="top" topline="true" usebox="none">
18651 \begin_layout Plain Layout
18657 <cell alignment="center" valignment="top" topline="true" usebox="none">
18660 \begin_layout Plain Layout
18668 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18671 \begin_layout Plain Layout
18677 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18680 \begin_layout Plain Layout
18686 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18689 \begin_layout Plain Layout
18708 \begin_layout Standard
18709 \begin_inset VSpace bigskip
18712 To color horizontal lines for example with red, as in Table
18713 \begin_inset space ~
18717 \begin_inset CommandInset ref
18719 reference "tab:Table-with-horizontal-colored"
18723 , insert these commands in \SpecialChar TeX
18724 Code before the table or table float:
18727 \begin_layout Standard
18737 \begin_inset Newline newline
18745 \begin_inset Newline newline
18749 \begin_inset Phantom HPhantom
18752 \begin_layout Plain Layout
18755 \begin_inset space ~
18765 arrayrulecolor{red}
18769 arrayrulecolor{black}}
18772 \begin_layout Standard
18776 \begin_layout Plain Layout
18787 \begin_layout Plain Layout
18796 \begin_layout Plain Layout
18800 arrayrulecolor{red}
18804 arrayrulecolor{black}}
18810 \begin_inset Float table
18816 \begin_layout Plain Layout
18817 \begin_inset Caption Standard
18819 \begin_layout Plain Layout
18820 \begin_inset CommandInset label
18822 name "tab:Table-with-horizontal-colored"
18826 Table with colored horizontal lines
18834 \begin_layout Plain Layout
18836 \begin_inset Tabular
18837 <lyxtabular version="3" rows="3" columns="3">
18838 <features tabularvalignment="middle">
18839 <column alignment="center" valignment="top">
18840 <column alignment="center" valignment="top">
18841 <column alignment="center" valignment="top">
18843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18846 \begin_layout Plain Layout
18852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18855 \begin_layout Plain Layout
18861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18864 \begin_layout Plain Layout
18872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18875 \begin_layout Plain Layout
18881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18884 \begin_layout Plain Layout
18890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18893 \begin_layout Plain Layout
18901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18904 \begin_layout Plain Layout
18910 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18913 \begin_layout Plain Layout
18919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18922 \begin_layout Plain Layout
18941 \begin_layout Standard
18942 To return to the default line color black, insert this command in \SpecialChar TeX
18944 after the table or table float:
18947 \begin_layout Standard
18959 \begin_layout Standard
18961 \begin_inset space ~
18965 \begin_inset CommandInset ref
18967 reference "tab:Table-with-colored"
18971 is an example with colored vertical and horizontal lines.
18974 \begin_layout Standard
18975 \begin_inset Float table
18981 \begin_layout Plain Layout
18982 \begin_inset Caption Standard
18984 \begin_layout Plain Layout
18985 \begin_inset CommandInset label
18987 name "tab:Table-with-colored"
18991 Table with colored lines
18999 \begin_layout Plain Layout
19001 \begin_inset Tabular
19002 <lyxtabular version="3" rows="3" columns="3">
19003 <features tabularvalignment="middle">
19004 <column alignment="center" valignment="top" special="Wc">
19005 <column alignment="center" valignment="top" special="Wc">
19006 <column alignment="center" valignment="top" special="WcW">
19008 <cell alignment="center" valignment="top" topline="true" usebox="none">
19011 \begin_layout Plain Layout
19017 <cell alignment="center" valignment="top" topline="true" usebox="none">
19020 \begin_layout Plain Layout
19026 <cell alignment="center" valignment="top" topline="true" usebox="none">
19029 \begin_layout Plain Layout
19037 <cell alignment="center" valignment="top" topline="true" usebox="none">
19040 \begin_layout Plain Layout
19046 <cell alignment="center" valignment="top" topline="true" usebox="none">
19049 \begin_layout Plain Layout
19055 <cell alignment="center" valignment="top" topline="true" usebox="none">
19058 \begin_layout Plain Layout
19065 <row topspace="default">
19066 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19069 \begin_layout Plain Layout
19075 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19078 \begin_layout Plain Layout
19084 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19087 \begin_layout Plain Layout
19106 \begin_layout Standard
19110 \begin_layout Plain Layout
19126 \begin_layout Standard
19130 \begin_layout Plain Layout
19136 arrayrulewidth}{0.4pt}
19144 \begin_layout Section
19145 Rotated Table Cells
19146 \begin_inset CommandInset label
19148 name "sec:Rotated-Table-Cells"
19153 \begin_inset Index idx
19156 \begin_layout Plain Layout
19157 Table ! Rotated Cells
19163 \begin_inset Index idx
19166 \begin_layout Plain Layout
19175 \begin_layout Standard
19176 \begin_inset Note Greyedout
19179 \begin_layout Plain Layout
19184 Not all DVI-viewers are able to display rotations.
19192 \begin_layout Standard
19194 \begin_inset space ~
19198 \begin_inset CommandInset ref
19200 reference "tab:Table-with-rotated-multi"
19204 is an example where 3
19205 \begin_inset space ~
19208 cells were rotated by 45
19209 \begin_inset space \thinspace{}
19215 \begin_layout Standard
19216 \begin_inset Float table
19222 \begin_layout Plain Layout
19223 \begin_inset Caption Standard
19225 \begin_layout Plain Layout
19226 \begin_inset CommandInset label
19228 name "tab:Table-with-rotated"
19232 Table with rotated cells in the first row.
19240 \begin_layout Plain Layout
19243 \begin_inset Tabular
19244 <lyxtabular version="3" rows="2" columns="3">
19245 <features tabularvalignment="middle">
19246 <column alignment="center" valignment="top" width="0pt">
19247 <column alignment="center" valignment="top" width="0pt">
19248 <column alignment="center" valignment="top" width="0pt">
19250 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19253 \begin_layout Plain Layout
19259 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19262 \begin_layout Plain Layout
19268 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19271 \begin_layout Plain Layout
19279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19282 \begin_layout Plain Layout
19288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19291 \begin_layout Plain Layout
19297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19300 \begin_layout Plain Layout
19319 \begin_layout Standard
19320 \begin_inset Note Greyedout
19323 \begin_layout Plain Layout
19328 Line breaks (shortcut
19331 arg "newline-insert newline"
19334 ) are not allowed in rotated cells.
19342 \begin_layout Standard
19343 If you want to rotate table cells containing line breaks, you have to put
19344 the cell content into a minipage or a parbox.
19348 \begin_layout Plain Layout
19349 For more about these boxes see sec.
19350 \begin_inset space \thinspace{}
19354 \begin_inset CommandInset ref
19356 reference "sec:Minipages"
19361 \begin_inset CommandInset ref
19363 reference "sec:Parboxes"
19372 If you rotate this cell by 90
19373 \begin_inset space \thinspace{}
19376 ° the width of the box is the height of the cell.
19378 \begin_inset space ~
19382 \begin_inset CommandInset ref
19384 reference "tab:Table-with-rotated-multi"
19388 is an example for a rotated multiline cell where the box width was set
19390 \begin_inset space \thinspace{}
19396 \begin_layout Standard
19397 \begin_inset Float table
19402 \begin_layout Plain Layout
19403 \begin_inset Caption Standard
19405 \begin_layout Plain Layout
19406 \begin_inset CommandInset label
19408 name "tab:Table-with-rotated-multi"
19412 Table with rotated multiline cell.
19420 \begin_layout Plain Layout
19423 \begin_inset Tabular
19424 <lyxtabular version="3" rows="2" columns="3">
19425 <features tabularvalignment="middle">
19426 <column alignment="center" valignment="top">
19427 <column alignment="center" valignment="top" width="0pt">
19428 <column alignment="center" valignment="top">
19430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19433 \begin_layout Plain Layout
19439 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19442 \begin_layout Plain Layout
19443 \begin_inset Box Frameless
19453 height_special "totalheight"
19458 backgroundcolor "none"
19461 \begin_layout Plain Layout
19463 \begin_inset Newline newline
19476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19479 \begin_layout Plain Layout
19487 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19490 \begin_layout Plain Layout
19496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19499 \begin_layout Plain Layout
19505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19508 \begin_layout Plain Layout
19527 \begin_layout Section
19528 Table Width Calculation
19529 \begin_inset CommandInset label
19531 name "sec:Table-Width-Calculation"
19538 \begin_layout Standard
19539 For wide tables it is sometimes difficult to assure that the table does
19540 not protrude over the page margin.
19541 Setting a fixed width for every column of the table is the solution, but
19542 what amount of space is needed for each column?
19545 \begin_layout Standard
19547 \begin_inset Formula $W_{\mathrm{table}}$
19550 can be calculated: Every column has the width of the specified column width
19552 \begin_inset Formula $W_{\mathrm{column}}$
19555 (that the content of the column can consume) plus two times the separation
19556 between the column content and the column border (\SpecialChar LaTeX
19564 \begin_inset space \thinspace{}
19567 pt) plus the width of a border line (\SpecialChar LaTeX
19575 \begin_inset space \thinspace{}
19579 \begin_inset Formula $n$
19583 \begin_inset space ~
19586 columns have the same width, the table width is
19587 \begin_inset Formula
19589 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19597 \begin_layout Standard
19598 The available width for a table is the space between the page margins or
19599 the width of a text column (for a two-column document) (\SpecialChar LaTeX
19607 If all table columns should have the same width and
19608 \begin_inset Formula $W_{\mathrm{table}}$
19612 \begin_inset space \thinspace{}
19618 \begin_inset Formula $W_{\mathrm{column}}$
19621 can easily be calculated.
19624 \begin_layout Standard
19625 To be able to perform calculations you need to load the \SpecialChar LaTeX
19631 \begin_inset Index idx
19634 \begin_layout Plain Layout
19641 in the document preamble.
19642 To set the width in the table dialog you have to use the field
19648 The command scheme for this field is the same that is explained in section
19649 \begin_inset space ~
19653 \begin_inset CommandInset ref
19655 reference "subsec:Multicolumn-Calculations"
19661 \begin_inset space \thinspace{}
19664 columns with an uniform width and centered text, enter there for each column
19668 \begin_layout Standard
19675 columnwidth-62.4pt)/5}
19678 \begin_layout Standard
19680 \begin_inset space \thinspace{}
19683 columns where 2 should have 0.75
19684 \begin_inset space ~
19687 times the width than the 3 others, the calculation is
19688 \begin_inset Formula
19690 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19691 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19692 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19693 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19701 \begin_layout Standard
19702 In the table therefore the command
19705 \begin_layout Standard
19712 columnwidth-62.4pt)/
19717 \begin_layout Standard
19718 is used for the wider columns and
19721 \begin_layout Standard
19728 columnwidth-62.4pt)/
19735 \begin_layout Standard
19736 for the smaller ones:
19739 \begin_layout Standard
19740 \begin_inset Tabular
19741 <lyxtabular version="3" rows="2" columns="5">
19742 <features tabularvalignment="middle">
19743 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19744 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19745 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19746 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19747 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19749 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19752 \begin_layout Plain Layout
19758 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19761 \begin_layout Plain Layout
19767 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19770 \begin_layout Plain Layout
19776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19779 \begin_layout Plain Layout
19785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19788 \begin_layout Plain Layout
19796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19799 \begin_layout Plain Layout
19800 111111 1111111 111111 111111111 11111 11111 1111
19805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19808 \begin_layout Plain Layout
19814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19817 \begin_layout Plain Layout
19818 2222 22222 222222 222222222 2222222 22 22222
19823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19826 \begin_layout Plain Layout
19832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19835 \begin_layout Plain Layout
19836 333333 333333 333333 33333 3333333 333
19849 \begin_layout Section
19850 Table Customization
19851 \begin_inset Index idx
19854 \begin_layout Plain Layout
19855 Table Customization
19861 \begin_inset Index idx
19864 \begin_layout Plain Layout
19865 Table ! Customization
19873 \begin_layout Subsection
19875 \begin_inset CommandInset label
19877 name "subsec:Row-Spacing"
19882 \begin_inset Index idx
19885 \begin_layout Plain Layout
19886 Table Customization ! Row Spacing
19894 \begin_layout Standard
19895 You can add vertical space to table rows in the
19899 tab of the table dialog.
19900 You find there three possibilities:
19903 \begin_layout Description
19905 \begin_inset space ~
19909 \begin_inset space ~
19912 row will add space above the characters of the table row.
19913 If the table is a formal table
19917 \begin_layout Plain Layout
19918 Formal tables are explained in section
19919 \begin_inset space ~
19923 \begin_inset CommandInset ref
19925 reference "sec:Formal-Tables"
19935 will insert as default 0.5
19936 \begin_inset space \thinspace{}
19940 For normal tables the inserted space will unfortunately destroy the vertical
19941 table lines as in the following table:
19942 \begin_inset VSpace medskip
19946 \begin_inset Newline newline
19950 \begin_inset space \hspace*{}
19955 \begin_inset space \hfill{}
19959 \begin_inset Tabular
19960 <lyxtabular version="3" rows="3" columns="1">
19961 <features tabularvalignment="middle">
19962 <column alignment="center" valignment="top">
19964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19967 \begin_layout Plain Layout
19974 <row topspace="3mm">
19975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19978 \begin_layout Plain Layout
19980 \begin_inset space \thinspace{}
19983 mm space top of row
19990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19993 \begin_layout Plain Layout
20005 \begin_inset space \hfill{}
20009 \begin_inset space \hspace*{}
20014 \begin_inset VSpace medskip
20018 \begin_inset Newline newline
20021 So inserting space in the top of row for normal tables is only useful when
20022 you don't have vertical lines.
20025 \begin_layout Description
20027 \begin_inset space ~
20031 \begin_inset space ~
20034 row will add space below the characters of the table row.
20035 If the table is a formal table \SpecialChar LyX
20036 will insert as default 0.5
20037 \begin_inset space \thinspace{}
20040 em space, for normal tables the default size is 2
20041 \begin_inset space \thinspace{}
20047 \begin_layout Description
20049 \begin_inset space ~
20052 rows adds space between the current and the following row.
20053 If the table is a formal table \SpecialChar LyX
20054 will insert as default 0.5
20055 \begin_inset space \thinspace{}
20059 For normal tables the inserted space will unfortunately destroy the vertical
20060 table lines as in the following table:
20061 \begin_inset VSpace medskip
20065 \begin_inset Newline newline
20069 \begin_inset space \hspace*{}
20074 \begin_inset space \hfill{}
20078 \begin_inset Tabular
20079 <lyxtabular version="3" rows="3" columns="1">
20080 <features tabularvalignment="middle">
20081 <column alignment="center" valignment="top">
20083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20086 \begin_layout Plain Layout
20093 <row interlinespace="3mm">
20094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20097 \begin_layout Plain Layout
20098 \begin_inset Formula $\downarrow$
20102 \begin_inset space \thinspace{}
20105 mm space between row
20106 \begin_inset Formula $\downarrow$
20116 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20119 \begin_layout Plain Layout
20120 \begin_inset Formula $\uparrow$
20124 \begin_inset space \thinspace{}
20127 mm space between row
20128 \begin_inset Formula $\uparrow$
20142 \begin_inset space \hfill{}
20146 \begin_inset space \hspace*{}
20151 \begin_inset VSpace medskip
20155 \begin_inset Newline newline
20158 So inserting space between rows for normal tables is only useful when you
20159 don't have vertical lines.
20162 \begin_layout Standard
20163 \begin_inset VSpace bigskip
20166 When you want to add extra height to all cells of all tables, you can do
20167 this with the following preamble lines:
20170 \begin_layout Standard
20175 @ifundefined{extrarowheight}
20176 \begin_inset Newline newline
20180 \begin_inset Phantom HPhantom
20183 \begin_layout Plain Layout
20186 \begin_inset space ~
20196 usepackage{array}}{}
20197 \begin_inset Newline newline
20204 extrarowheight}{height}
20207 \begin_layout Standard
20208 But this has the disadvantage that the cell texts are no longer exactly
20209 vertically centered.
20214 will be loaded automatically by \SpecialChar LyX
20215 when you use self defined table formats.
20216 To avoid that it being loaded twice the command
20222 is used in the above command.)
20225 \begin_layout Standard
20226 If you are using font sizes larger than the normal size, the table borders
20227 are often too close to the letters.
20228 This can be corrected by inserting the command
20234 in \SpecialChar TeX
20235 Code at the beginning of a table row.
20237 \begin_inset space ~
20241 \begin_inset CommandInset ref
20243 reference "tab:Vertical-alignment-of"
20247 illustrates the effect.
20250 \begin_layout Standard
20252 \begin_inset Float table
20258 \begin_layout Plain Layout
20259 \begin_inset Caption Standard
20261 \begin_layout Plain Layout
20262 \begin_inset CommandInset label
20264 name "tab:Vertical-alignment-of"
20268 Vertical alignment of text with large font sizes.
20276 \begin_layout Plain Layout
20277 \begin_inset space \hfill{}
20281 \begin_inset Float table
20286 \begin_layout Plain Layout
20287 \begin_inset Caption Standard
20289 \begin_layout Plain Layout
20298 \begin_layout Plain Layout
20301 \begin_inset Tabular
20302 <lyxtabular version="3" rows="6" columns="1">
20303 <features tabularvalignment="middle">
20304 <column alignment="left" valignment="top">
20306 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20309 \begin_layout Plain Layout
20317 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20320 \begin_layout Plain Layout
20330 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20333 \begin_layout Plain Layout
20343 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20346 \begin_layout Plain Layout
20356 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20359 \begin_layout Plain Layout
20369 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20372 \begin_layout Plain Layout
20391 \begin_inset space \hfill{}
20395 \begin_inset Float table
20400 \begin_layout Plain Layout
20401 \begin_inset Caption Standard
20403 \begin_layout Plain Layout
20404 Table using the command
20418 \begin_layout Plain Layout
20421 \begin_inset Tabular
20422 <lyxtabular version="3" rows="6" columns="1">
20423 <features tabularvalignment="middle">
20424 <column alignment="left" valignment="top">
20426 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20429 \begin_layout Plain Layout
20437 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20440 \begin_layout Plain Layout
20446 \begin_layout Plain Layout
20462 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20465 \begin_layout Plain Layout
20471 \begin_layout Plain Layout
20487 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20490 \begin_layout Plain Layout
20496 \begin_layout Plain Layout
20512 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20515 \begin_layout Plain Layout
20521 \begin_layout Plain Layout
20537 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20540 \begin_layout Plain Layout
20546 \begin_layout Plain Layout
20573 \begin_inset space \hfill{}
20584 \begin_layout Subsection
20585 Special Cell Alignment
20586 \begin_inset CommandInset label
20588 name "subsec:Special-Cell-Alignment"
20593 \begin_inset Index idx
20596 \begin_layout Plain Layout
20597 Table Customization ! Special Cell Alignment
20605 \begin_layout Standard
20606 Sometimes it looks better when the cell entries of a column are aligned
20607 with a special character, e.
20608 \begin_inset space \thinspace{}
20612 \begin_inset space \space{}
20615 with the decimal separator as in Table
20616 \begin_inset space ~
20620 \begin_inset CommandInset ref
20622 reference "tab:Table-cells-align"
20627 This alignment is achieved by setting the cursor into the column and then
20628 either pressing the toolbar button
20631 arg "inset-modify tabular align-decimal"
20634 or setting the alignment in the table settings to
20637 \begin_inset space ~
20641 \begin_inset space ~
20647 The alignment character can be a character of your choice and is specified
20648 in the table settings.
20651 \begin_layout Standard
20652 \begin_inset Float table
20658 \begin_layout Plain Layout
20659 \begin_inset Caption Standard
20661 \begin_layout Plain Layout
20662 \begin_inset CommandInset label
20664 name "tab:Table-cells-align"
20668 Table cells of a column aligned with the decimal separator.
20676 \begin_layout Plain Layout
20678 \begin_inset Tabular
20679 <lyxtabular version="3" rows="4" columns="1">
20680 <features booktabs="true" tabularvalignment="middle">
20681 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20683 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20686 \begin_layout Plain Layout
20694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20697 \begin_layout Plain Layout
20705 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20708 \begin_layout Plain Layout
20716 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20719 \begin_layout Plain Layout
20738 \begin_layout Standard
20739 \begin_inset Float table
20745 \begin_layout Plain Layout
20746 \begin_inset Caption Standard
20748 \begin_layout Plain Layout
20749 \begin_inset CommandInset label
20751 name "tab:Table-align-operator"
20755 Table cells of a column aligned with the operators.
20763 \begin_layout Plain Layout
20765 \begin_inset Tabular
20766 <lyxtabular version="3" rows="4" columns="2">
20767 <features booktabs="true" tabularvalignment="middle">
20768 <column alignment="right" valignment="top" width="0pt">
20769 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20771 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20774 \begin_layout Plain Layout
20780 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20783 \begin_layout Plain Layout
20791 <cell alignment="center" valignment="top" usebox="none">
20794 \begin_layout Plain Layout
20795 \begin_inset Formula $12\,+$
20803 <cell alignment="center" valignment="top" usebox="none">
20806 \begin_layout Plain Layout
20807 \begin_inset Formula $\,6$
20817 <cell alignment="center" valignment="top" usebox="none">
20820 \begin_layout Plain Layout
20821 \begin_inset Formula $0\,-$
20829 <cell alignment="center" valignment="top" usebox="none">
20832 \begin_layout Plain Layout
20833 \begin_inset Formula $\,68$
20843 <cell alignment="center" valignment="top" usebox="none">
20846 \begin_layout Plain Layout
20847 \begin_inset Formula $-123\,/$
20855 <cell alignment="center" valignment="top" usebox="none">
20858 \begin_layout Plain Layout
20859 \begin_inset Formula $\,0$
20880 \begin_layout Standard
20881 For alignments at characters in formulas this method does not work because
20882 the field to specify the alignment character does not allow formulas.
20883 In this case one need to use the method from Table
20884 \begin_inset space ~
20888 \begin_inset CommandInset ref
20890 reference "tab:Table-align-operator"
20895 This table was created with a 4×2 table.
20896 The heading is a centered multicolumn.
20897 The first column is right-aligned and contains the first part including
20899 The second column is left aligned and contains the rest.
20900 A small space was added at the beginning of each cell of the second column
20901 to get the space that is usually around operators.
20902 To omit the space that is normally between two table columns, the following
20904 -argument was used for the second column:
20907 \begin_layout Standard
20913 \begin_layout Standard
20915 \begin_inset space ~
20919 \begin_inset CommandInset ref
20921 reference "tab:Several-table-cell"
20925 shows some example alignments.
20926 For the alignment with the relation sign, a small space was added like
20927 for the second column of Table
20928 \begin_inset space ~
20932 \begin_inset CommandInset ref
20934 reference "tab:Table-align-operator"
20941 \begin_layout Standard
20942 \begin_inset Float table
20948 \begin_layout Plain Layout
20949 \begin_inset Caption Standard
20951 \begin_layout Plain Layout
20952 \begin_inset CommandInset label
20954 name "tab:Several-table-cell"
20958 Several table cell alignments.
20966 \begin_layout Plain Layout
20968 \begin_inset Tabular
20969 <lyxtabular version="3" rows="4" columns="6">
20970 <features tabularvalignment="middle">
20971 <column alignment="right" valignment="top">
20972 <column alignment="left" valignment="top" special="@{}l">
20973 <column alignment="right" valignment="top">
20974 <column alignment="left" valignment="top" special="@{}l">
20975 <column alignment="right" valignment="top">
20976 <column alignment="left" valignment="top" special="@{}l">
20978 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20981 \begin_layout Plain Layout
20987 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20990 \begin_layout Plain Layout
20996 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20999 \begin_layout Plain Layout
21005 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21008 \begin_layout Plain Layout
21014 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21017 \begin_layout Plain Layout
21023 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21026 \begin_layout Plain Layout
21034 <cell alignment="center" valignment="top" usebox="none">
21037 \begin_layout Plain Layout
21043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21046 \begin_layout Plain Layout
21048 \begin_inset space \thinspace{}
21056 <cell alignment="center" valignment="top" usebox="none">
21059 \begin_layout Plain Layout
21060 \begin_inset Formula $10\cdot$
21068 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21071 \begin_layout Plain Layout
21072 \begin_inset Formula $10^{\mbox{-}17}$
21080 <cell alignment="center" valignment="top" usebox="none">
21083 \begin_layout Plain Layout
21084 \begin_inset Formula $\Gamma(t)\propto$
21092 <cell alignment="center" valignment="top" usebox="none">
21095 \begin_layout Plain Layout
21096 \begin_inset Formula $\:\Upsilon(t)$
21106 <cell alignment="center" valignment="top" usebox="none">
21109 \begin_layout Plain Layout
21115 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21118 \begin_layout Plain Layout
21120 \begin_inset space \thinspace{}
21128 <cell alignment="center" valignment="top" usebox="none">
21131 \begin_layout Plain Layout
21132 \begin_inset Formula $5.78\cdot$
21140 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21143 \begin_layout Plain Layout
21144 \begin_inset Formula $10^{7}$
21152 <cell alignment="center" valignment="top" usebox="none">
21155 \begin_layout Plain Layout
21156 \begin_inset Formula $A\ne$
21164 <cell alignment="center" valignment="top" usebox="none">
21167 \begin_layout Plain Layout
21168 \begin_inset Formula $\:B_{\mathrm{red}}$
21178 <cell alignment="center" valignment="top" usebox="none">
21181 \begin_layout Plain Layout
21187 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21190 \begin_layout Plain Layout
21192 \begin_inset space \thinspace{}
21200 <cell alignment="center" valignment="top" usebox="none">
21203 \begin_layout Plain Layout
21205 \begin_inset Formula $33.5\cdot$
21213 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21216 \begin_layout Plain Layout
21217 \begin_inset Formula $10^{4}$
21225 <cell alignment="center" valignment="top" usebox="none">
21228 \begin_layout Plain Layout
21229 \begin_inset Formula $\sin(\alpha)\ge$
21237 <cell alignment="center" valignment="top" usebox="none">
21240 \begin_layout Plain Layout
21241 \begin_inset Formula $\:\sin(\beta)$
21262 \begin_layout Subsection
21263 Customized Cell/Column Format
21264 \begin_inset CommandInset label
21266 name "subsec:Customized-Format"
21271 \begin_inset Index idx
21274 \begin_layout Plain Layout
21275 Table Customization ! Cell/Column Format
21283 \begin_layout Standard
21284 Calculating the required width for normal columns as described in section
21285 \begin_inset space ~
21289 \begin_inset CommandInset ref
21291 reference "sec:Table-Width-Calculation"
21295 or for spanned columns as described in section
21296 \begin_inset space ~
21300 \begin_inset CommandInset ref
21302 reference "subsec:Multicolumn-Calculations"
21306 is very annoying if you have several tables where a calculation is necessary.
21307 To make life easier, you can define a cell/column format in the preamble,
21308 that can be used in all tables of the document.
21309 The format is defined with the command
21312 \begin_layout Standard
21317 newcolumntype{name of format}[number of arguments]{commands}
21320 \begin_layout Standard
21321 The format name may only consist of one letter.
21346 are predefined and cannot be used.
21347 But all letters are allowed as capitals.
21350 \begin_layout Standard
21351 \begin_inset VSpace medskip
21357 \begin_layout Standard
21358 For vertically and horizontally centered multicolumn cells with a fixed
21359 width you can define the cell format
21362 \begin_layout Standard
21367 newcolumntype{M}[1]{>{
21374 \begin_layout Standard
21381 avoids the problem of hyphenating the first word, as described in section
21382 \begin_inset space ~
21386 \begin_inset CommandInset ref
21388 reference "subsec:Multiple-Lines-in"
21393 Now you can simply enter
21396 \begin_layout Standard
21402 \begin_layout Standard
21408 in the table dialog to create a multicolumn.
21411 \begin_layout Standard
21412 \begin_inset VSpace bigskip
21418 \begin_layout Standard
21419 For cells spanned by a multicolumn cell, you can define the format
21422 \begin_layout Standard
21427 newcolumntype{S}[2]{>{
21432 \begin_inset Newline newline
21436 \begin_inset Phantom HPhantom
21439 \begin_layout Plain Layout
21453 arrayrulewidth)*(1-#2))/#2}}
21456 \begin_layout Standard
21457 This format uses equation
21458 \begin_inset CommandInset ref
21464 to calculate the required width so that each spanned cell has the same
21468 \begin_layout Standard
21472 \begin_layout Standard
21475 S{width of multicolumn cell}{number of spanned columns}
21478 \begin_layout Standard
21479 as \SpecialChar LaTeX
21480 -argument of the column.
21483 \begin_layout Standard
21484 \begin_inset VSpace bigskip
21490 \begin_layout Standard
21491 For colored columns, you can define
21494 \begin_layout Standard
21499 newcolumntype{K}[1]{>{
21506 \begin_layout Standard
21508 \begin_inset Quotes eld
21512 \begin_inset Quotes erd
21515 at the end creates a column with a flexible width whose text is horizontally
21520 \begin_layout Standard
21526 \begin_layout Standard
21527 as \SpecialChar LaTeX
21531 \begin_layout Standard
21532 \begin_inset VSpace bigskip
21538 \begin_layout Standard
21540 \begin_inset space ~
21544 \begin_inset CommandInset ref
21546 reference "tab:Table-using-user-defined"
21550 use the \SpecialChar LaTeX
21554 \begin_layout Standard
21560 \begin_layout Standard
21561 for the first column and the multicolumn,
21564 \begin_layout Standard
21570 \begin_layout Standard
21571 for the last column, and
21574 \begin_layout Standard
21580 \begin_layout Standard
21581 for the cells in the second column.
21584 \begin_layout Standard
21585 \begin_inset Float table
21591 \begin_layout Plain Layout
21592 \begin_inset Caption Standard
21594 \begin_layout Plain Layout
21595 \begin_inset CommandInset label
21597 name "tab:Table-using-user-defined"
21601 Table using user-defined table formats
21609 \begin_layout Plain Layout
21611 \begin_inset Tabular
21612 <lyxtabular version="3" rows="3" columns="4">
21613 <features tabularvalignment="middle">
21614 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21615 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21616 <column alignment="center" valignment="middle">
21617 <column alignment="center" valignment="middle" special="K{red}">
21619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21622 \begin_layout Plain Layout
21623 verylongtablecellword
21628 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21631 \begin_layout Plain Layout
21632 multiple lines multicolumn
21637 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21640 \begin_layout Plain Layout
21646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21649 \begin_layout Plain Layout
21657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21660 \begin_layout Plain Layout
21666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21669 \begin_layout Plain Layout
21675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21678 \begin_layout Plain Layout
21684 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21687 \begin_layout Plain Layout
21695 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21698 \begin_layout Plain Layout
21704 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21707 \begin_layout Plain Layout
21713 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21716 \begin_layout Plain Layout
21722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21725 \begin_layout Plain Layout
21744 \begin_layout Subsection
21746 \begin_inset CommandInset label
21748 name "subsec:Line-Thickness"
21753 \begin_inset Index idx
21756 \begin_layout Plain Layout
21757 Table Customization ! Line Thickness
21765 \begin_layout Standard
21766 The line thickness for all lines in a table can be adjusted with the length
21774 To set for example a line thickness of 1.5
21775 \begin_inset space \thinspace{}
21779 \begin_inset space ~
21783 \begin_inset CommandInset ref
21785 reference "tab:Table-with-1.5"
21789 , insert the command
21792 \begin_layout Standard
21799 arrayrulewidth}{1.5pt}
21802 \begin_layout Standard
21803 in \SpecialChar TeX
21804 Code before the table or table float.
21805 The changed thickness is valid for all subsequent tables.
21806 To use the default value again, set
21813 \begin_inset space \thinspace{}
21816 pt in \SpecialChar TeX
21817 Code after the table or table float.
21820 \begin_layout Standard
21824 \begin_layout Plain Layout
21830 arrayrulewidth}{1.5pt}
21836 \begin_inset Float table
21841 \begin_layout Plain Layout
21842 \begin_inset Caption Standard
21844 \begin_layout Plain Layout
21845 \begin_inset CommandInset label
21847 name "tab:Table-with-1.5"
21852 \begin_inset space \thinspace{}
21863 \begin_layout Plain Layout
21865 \begin_inset Tabular
21866 <lyxtabular version="3" rows="3" columns="3">
21867 <features tabularvalignment="middle">
21868 <column alignment="center" valignment="top">
21869 <column alignment="center" valignment="top">
21870 <column alignment="center" valignment="top">
21872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21875 \begin_layout Plain Layout
21881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21884 \begin_layout Plain Layout
21890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21893 \begin_layout Plain Layout
21901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21904 \begin_layout Plain Layout
21910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21913 \begin_layout Plain Layout
21919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21922 \begin_layout Plain Layout
21930 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21933 \begin_layout Plain Layout
21939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21942 \begin_layout Plain Layout
21948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21951 \begin_layout Plain Layout
21971 \begin_layout Plain Layout
21977 arrayrulewidth}{0.4pt}
21985 \begin_layout Standard
21986 \begin_inset VSpace bigskip
21989 To set the line thickness to 1.5
21990 \begin_inset space \thinspace{}
21993 pt only for horizontal lines, as in Table
21994 \begin_inset space ~
21998 \begin_inset CommandInset ref
22000 reference "tab:Table-with-horizontal"
22004 , insert these commands in \SpecialChar TeX
22005 Code before the table or table float:
22008 \begin_layout Standard
22018 \begin_inset Newline newline
22026 \begin_inset Newline newline
22035 arrayrulewidth 1.5pt}
22036 \begin_inset Newline newline
22047 arrayrulewidth 0.4pt}}
22050 \begin_layout Standard
22051 To return to the default line thickness, insert this command in \SpecialChar TeX
22053 the table or table float:
22056 \begin_layout Standard
22068 \begin_layout Standard
22072 \begin_layout Plain Layout
22083 \begin_layout Plain Layout
22092 \begin_layout Plain Layout
22100 arrayrulewidth 1.5pt}
22103 \begin_layout Plain Layout
22113 arrayrulewidth 0.4pt}}
22119 \begin_inset Float table
22124 \begin_layout Plain Layout
22125 \begin_inset Caption Standard
22127 \begin_layout Plain Layout
22128 \begin_inset CommandInset label
22130 name "tab:Table-with-horizontal"
22135 \begin_inset space \thinspace{}
22138 pt thick horizontal lines
22146 \begin_layout Plain Layout
22148 \begin_inset Tabular
22149 <lyxtabular version="3" rows="3" columns="3">
22150 <features tabularvalignment="middle">
22151 <column alignment="center" valignment="top">
22152 <column alignment="center" valignment="top">
22153 <column alignment="center" valignment="top">
22155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22158 \begin_layout Plain Layout
22164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22167 \begin_layout Plain Layout
22173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22176 \begin_layout Plain Layout
22184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22187 \begin_layout Plain Layout
22193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22196 \begin_layout Plain Layout
22202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22205 \begin_layout Plain Layout
22213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22216 \begin_layout Plain Layout
22222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22225 \begin_layout Plain Layout
22231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22234 \begin_layout Plain Layout
22254 \begin_layout Plain Layout
22270 \begin_layout Standard
22271 \begin_inset VSpace bigskip
22274 To set the line thickness to 1.5
22275 \begin_inset space \thinspace{}
22278 pt only for vertical lines, create the following column format in the document
22279 preamble, according to the description in section
22280 \begin_inset space ~
22284 \begin_inset CommandInset ref
22286 reference "subsec:Customized-Format"
22293 \begin_layout Standard
22298 newcolumntype{V}{!{
22300 vrule width 1.5pt}}
22303 \begin_layout Standard
22305 \begin_inset space ~
22309 \begin_inset CommandInset ref
22311 reference "tab:Table-with-vertical"
22315 the \SpecialChar LaTeX
22319 \begin_layout Standard
22325 \begin_layout Standard
22326 was used for the last column and
22329 \begin_layout Standard
22335 \begin_layout Standard
22336 for the other columns.
22339 \begin_layout Standard
22340 \begin_inset Float table
22345 \begin_layout Plain Layout
22346 \begin_inset Caption Standard
22348 \begin_layout Plain Layout
22349 \begin_inset CommandInset label
22351 name "tab:Table-with-vertical"
22356 \begin_inset space \thinspace{}
22359 pt thick vertical lines
22367 \begin_layout Plain Layout
22369 \begin_inset Tabular
22370 <lyxtabular version="3" rows="3" columns="3">
22371 <features tabularvalignment="middle">
22372 <column alignment="center" valignment="top" special="Vc">
22373 <column alignment="center" valignment="top" special="Vc">
22374 <column alignment="center" valignment="top" special="VcV">
22376 <cell alignment="center" valignment="top" topline="true" usebox="none">
22379 \begin_layout Plain Layout
22385 <cell alignment="center" valignment="top" topline="true" usebox="none">
22388 \begin_layout Plain Layout
22394 <cell alignment="center" valignment="top" topline="true" usebox="none">
22397 \begin_layout Plain Layout
22405 <cell alignment="center" valignment="top" topline="true" usebox="none">
22408 \begin_layout Plain Layout
22414 <cell alignment="center" valignment="top" topline="true" usebox="none">
22417 \begin_layout Plain Layout
22423 <cell alignment="center" valignment="top" topline="true" usebox="none">
22426 \begin_layout Plain Layout
22434 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22437 \begin_layout Plain Layout
22443 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22446 \begin_layout Plain Layout
22452 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22455 \begin_layout Plain Layout
22474 \begin_layout Subsection
22476 \begin_inset Index idx
22479 \begin_layout Plain Layout
22480 Table Customization ! Dashed Lines
22488 \begin_layout Standard
22492 \begin_layout Plain Layout
22502 \begin_inset Note Note
22505 \begin_layout Plain Layout
22506 The following section will only be displayed when the \SpecialChar LaTeX
22519 \begin_layout Standard
22520 \begin_inset Float table
22526 \begin_layout Plain Layout
22527 \begin_inset Caption Standard
22529 \begin_layout Plain Layout
22530 \begin_inset CommandInset label
22532 name "tab:Table-with-dashed"
22536 Table with dashed lines
22544 \begin_layout Plain Layout
22546 \begin_inset Tabular
22547 <lyxtabular version="3" rows="5" columns="5">
22548 <features tabularvalignment="middle">
22549 <column alignment="center" valignment="top">
22550 <column alignment="center" valignment="top">
22551 <column alignment="center" valignment="top" special=":c">
22552 <column alignment="center" valignment="top">
22553 <column alignment="center" valignment="top">
22555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22558 \begin_layout Plain Layout
22564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22567 \begin_layout Plain Layout
22573 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22576 \begin_layout Plain Layout
22582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22585 \begin_layout Plain Layout
22591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22594 \begin_layout Plain Layout
22602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22605 \begin_layout Plain Layout
22611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22614 \begin_layout Plain Layout
22620 <cell alignment="center" valignment="top" topline="true" usebox="none">
22623 \begin_layout Plain Layout
22629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22632 \begin_layout Plain Layout
22638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22641 \begin_layout Plain Layout
22649 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22652 \begin_layout Plain Layout
22656 \begin_layout Plain Layout
22670 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22673 \begin_layout Plain Layout
22679 <cell alignment="center" valignment="top" usebox="none">
22682 \begin_layout Plain Layout
22688 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22691 \begin_layout Plain Layout
22697 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22700 \begin_layout Plain Layout
22708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22711 \begin_layout Plain Layout
22715 \begin_layout Plain Layout
22729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22732 \begin_layout Plain Layout
22738 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22741 \begin_layout Plain Layout
22747 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22750 \begin_layout Plain Layout
22756 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22759 \begin_layout Plain Layout
22767 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22770 \begin_layout Plain Layout
22776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22779 \begin_layout Plain Layout
22785 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22788 \begin_layout Plain Layout
22794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22797 \begin_layout Plain Layout
22803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22806 \begin_layout Plain Layout
22825 \begin_layout Standard
22827 does not natively support dashed lines, so you have to use \SpecialChar TeX
22829 As a prerequisite the \SpecialChar LaTeX
22835 \begin_inset Index idx
22838 \begin_layout Plain Layout
22840 -packages ! arydshln
22845 must be loaded in the document preamble with the command
22848 \begin_layout Standard
22853 usepackage{arydshln}
22856 \begin_layout Standard
22857 To make a vertical line dashed, enter the colon
22858 \begin_inset Quotes eld
22862 \begin_inset Quotes erd
22865 together with the character for the horizontal alignment as \SpecialChar LaTeX
22867 the table cell dialog.
22870 \begin_layout Standard
22871 For a horizontal dashed line add the command
22874 \begin_layout Standard
22882 \begin_layout Standard
22883 in \SpecialChar TeX
22884 Code as first element of the first cell in the table row.
22887 \begin_layout Standard
22888 For dashed multicolumn lines use the command
22891 \begin_layout Standard
22896 cdashline{line number
22901 \begin_layout Standard
22902 in \SpecialChar TeX
22903 Code as the first element of the first cell in the table row.
22904 If you have for example a multicolumn spanning columns 2 to 4 and you want
22905 to have a dashed line above, add the command
22908 \begin_layout Standard
22916 \begin_layout Standard
22917 as the first element of the first cell in the row of the multicolumn.
22920 \begin_layout Standard
22921 \begin_inset VSpace bigskip
22927 \begin_layout Standard
22929 \begin_inset space ~
22933 \begin_inset CommandInset ref
22935 reference "tab:Table-with-dashed"
22940 \begin_inset Quotes eld
22948 \begin_inset Quotes erd
22951 as \SpecialChar LaTeX
22952 argument of the third column.
22953 The \SpecialChar TeX
22960 was inserted in the first cell of the third row and the \SpecialChar TeX
22962 \begin_inset Newline newline
22971 was inserted in the first cell of the fourth row.
22974 \begin_layout Standard
22975 \begin_inset VSpace bigskip
22981 \begin_layout Standard
22982 Tables with dashed lines can also be colored as shown by Table
22983 \begin_inset space ~
22987 \begin_inset CommandInset ref
22989 reference "tab:Colored-table-with"
22996 \begin_layout Standard
23000 \begin_layout Plain Layout
23006 arrayrulewidth}{1pt}
23012 \begin_inset Note Note
23015 \begin_layout Plain Layout
23016 thicker lines for better visualization of the line color
23024 \begin_layout Standard
23028 \begin_layout Plain Layout
23032 dashgapcolor{green}
23038 \begin_inset Note Note
23041 \begin_layout Plain Layout
23042 color gaps between dashes green
23050 \begin_layout Standard
23054 \begin_layout Plain Layout
23065 \begin_layout Plain Layout
23074 \begin_layout Plain Layout
23078 arrayrulecolor{red}
23082 arrayrulecolor{black}}
23088 \begin_inset Note Note
23091 \begin_layout Plain Layout
23092 color horizontal, dashed lines red
23100 \begin_layout Standard
23104 \begin_layout Plain Layout
23115 \begin_layout Plain Layout
23124 \begin_layout Plain Layout
23128 arrayrulecolor{yellow}
23132 arrayrulecolor{black}}
23138 \begin_inset Note Note
23141 \begin_layout Plain Layout
23142 color partial horizontal, dashed lines yellow
23150 \begin_layout Standard
23151 \begin_inset Float table
23157 \begin_layout Plain Layout
23158 \begin_inset Caption Standard
23160 \begin_layout Plain Layout
23161 \begin_inset CommandInset label
23163 name "tab:Colored-table-with"
23167 Colored table with dashed lines
23175 \begin_layout Plain Layout
23177 \begin_inset Tabular
23178 <lyxtabular version="3" rows="5" columns="5">
23179 <features tabularvalignment="middle">
23180 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23181 <column alignment="center" valignment="top" width="0pt">
23182 <column alignment="center" valignment="top" width="0pt" special=":c">
23183 <column alignment="center" valignment="top">
23184 <column alignment="center" valignment="top">
23186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23189 \begin_layout Plain Layout
23195 <cell alignment="center" valignment="top" topline="true" usebox="none">
23198 \begin_layout Plain Layout
23204 <cell alignment="center" valignment="top" topline="true" usebox="none">
23207 \begin_layout Plain Layout
23213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23216 \begin_layout Plain Layout
23222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23225 \begin_layout Plain Layout
23233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23236 \begin_layout Plain Layout
23242 <cell alignment="center" valignment="top" topline="true" usebox="none">
23245 \begin_layout Plain Layout
23251 <cell alignment="center" valignment="top" topline="true" usebox="none">
23254 \begin_layout Plain Layout
23260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23263 \begin_layout Plain Layout
23269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23272 \begin_layout Plain Layout
23280 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23283 \begin_layout Plain Layout
23287 \begin_layout Plain Layout
23300 \begin_layout Plain Layout
23314 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23317 \begin_layout Plain Layout
23323 <cell alignment="center" valignment="top" usebox="none">
23326 \begin_layout Plain Layout
23332 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23335 \begin_layout Plain Layout
23341 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23344 \begin_layout Plain Layout
23352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23355 \begin_layout Plain Layout
23359 \begin_layout Plain Layout
23373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23376 \begin_layout Plain Layout
23382 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23385 \begin_layout Plain Layout
23391 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23394 \begin_layout Plain Layout
23400 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23403 \begin_layout Plain Layout
23411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23414 \begin_layout Plain Layout
23420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23423 \begin_layout Plain Layout
23429 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23432 \begin_layout Plain Layout
23438 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23441 \begin_layout Plain Layout
23447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23450 \begin_layout Plain Layout
23454 \begin_layout Plain Layout
23481 \begin_layout Standard
23485 \begin_layout Plain Layout
23499 \begin_inset Note Note
23502 \begin_layout Plain Layout
23511 \begin_layout Standard
23515 \begin_layout Plain Layout
23529 \begin_inset Note Note
23532 \begin_layout Plain Layout
23541 \begin_layout Standard
23545 \begin_layout Plain Layout
23555 \begin_inset Note Note
23558 \begin_layout Plain Layout
23567 \begin_layout Standard
23571 \begin_layout Plain Layout
23577 arrayrulewidth}{0.4pt}
23583 \begin_inset Note Note
23586 \begin_layout Plain Layout
23595 \begin_layout Standard
23596 The coloring of lines, columns and lines works as decribed in section
23597 \begin_inset space ~
23601 \begin_inset CommandInset ref
23603 reference "sec:Colored-Tables"
23608 Coloring horizontal lines works analogically as described there as well,
23609 one only needs to replace in the commands
23633 ; so one uses the command
23636 \begin_layout Standard
23646 \begin_inset Newline newline
23654 \begin_inset Newline newline
23658 \begin_inset Phantom HPhantom
23661 \begin_layout Plain Layout
23662 \begin_inset space ~
23672 arrayrulecolor{red}
23676 arrayrulecolor{black}}
23679 \begin_layout Standard
23689 \begin_layout Standard
23699 \begin_inset Newline newline
23707 \begin_inset Newline newline
23711 \begin_inset Phantom HPhantom
23714 \begin_layout Plain Layout
23715 \begin_inset space ~
23725 arrayrulecolor{red}
23729 arrayrulecolor{black}}
23732 \begin_layout Standard
23733 To get back the black line color, one needs to insert the following commands
23734 as \SpecialChar TeX
23735 Code behind the table:
23738 \begin_layout Standard
23746 \begin_layout Standard
23758 \begin_layout Standard
23766 \begin_layout Standard
23778 \begin_layout Standard
23779 To color the gaps between the dashes the command
23782 \begin_layout Standard
23787 dashgapcolor{color}
23790 \begin_layout Standard
23791 can be used in front of a table as \SpecialChar TeX
23793 color is hereby the name of a defined color.
23797 \begin_layout Standard
23805 \begin_layout Standard
23806 unsets the changes made by
23815 \begin_layout Standard
23816 \begin_inset Note Greyedout
23819 \begin_layout Plain Layout
23825 : If there are multiple commands in a cell, the command of
23829 needs to be the first one in the cell.
23835 \begin_inset space ~
23839 \begin_inset CommandInset ref
23841 reference "tab:Colored-table-with"
23865 \begin_layout Standard
23866 \begin_inset Note Greyedout
23869 \begin_layout Plain Layout
23875 The \SpecialChar LaTeX
23880 must be loaded in the document preamble before the \SpecialChar LaTeX
23886 \begin_inset Index idx
23889 \begin_layout Plain Layout
23891 -packages ! colortbl
23904 \begin_layout Standard
23908 \begin_layout Plain Layout
23918 \begin_inset Note Note
23921 \begin_layout Plain Layout
23922 The following will be displayed when the \SpecialChar LaTeX
23935 \begin_layout Standard
23936 You need to install the package
23940 to see the content of this section in the output.
23943 \begin_layout Standard
23947 \begin_layout Plain Layout
23959 \begin_layout Standard
23960 For more information about dashed lines see the documentation of
23965 \begin_inset CommandInset citation
23974 \begin_layout Chapter
23976 \begin_inset CommandInset label
23983 \begin_inset Index idx
23986 \begin_layout Plain Layout
23995 \begin_layout Section
23997 \begin_inset CommandInset label
23999 name "sec:FloatIntroduction"
24004 \begin_inset Index idx
24007 \begin_layout Plain Layout
24008 Floats ! Introduction
24016 \begin_layout Standard
24017 A float is a block of text associated with some sort of label, which doesn't
24018 have a fixed location.
24020 \begin_inset Quotes eld
24024 \begin_inset Quotes erd
24027 forward or backward a page or two, to wherever it fits best.
24035 \begin_inset space ~
24040 are also floats because they can float to the next page when there are
24041 too many notes on the page.
24044 \begin_layout Standard
24045 Floats allow a high quality layout.
24046 Images and tables can be spread evenly among the pages to avoid white space
24047 and pages without text.
24048 As the floating often destroys the context between the text and the image/table
24049 , every float can be referenced in the text.
24050 Floats are therefore numbered.
24051 Referencing is described in section
24052 \begin_inset space ~
24056 \begin_inset CommandInset ref
24058 reference "sec:Referencing-Floats"
24065 \begin_layout Standard
24066 To insert a float, use the menu
24068 Insert\SpecialChar menuseparator
24074 arg "float-insert figure"
24080 arg "float-insert table"
24088 inset, a box with a label.
24089 The label will automatically be translated to the document language in
24091 After the label you can insert the caption text.
24092 The image or table is inserted above or below the caption in a separate
24093 paragraph within the float.
24094 More about the caption placement is contained in section
24095 \begin_inset space ~
24099 \begin_inset CommandInset ref
24101 reference "sec:Caption-Placement"
24106 To keep your \SpecialChar LyX
24107 document readable, you can open and close the float box by
24108 left-clicking on the box label.
24109 A closed float box looks like this:
24110 \begin_inset Graphics
24111 filename clipart/floatQt4.png
24113 scaleBeforeRotation
24117 – a gray button with a red label.
24120 \begin_layout Standard
24121 It is recommended that you insert floats as separate standard paragraphs
24122 to avoid possible \SpecialChar LaTeX
24123 -errors that can occur when the surrounding text is specially
24127 \begin_layout Standard
24128 Existing figures or tables can be put into a float by highlighting them
24129 and then pressing the corresponding toolbar button for a new float.
24132 \begin_layout Section
24136 \begin_layout Standard
24137 Besides figure and table floats that are described in sections
24138 \begin_inset space ~
24142 \begin_inset CommandInset ref
24144 reference "sec:Figure-Floats"
24149 \begin_inset CommandInset ref
24151 reference "sec:Table-Floats"
24155 respectively, \SpecialChar LyX
24156 offers the float types
24165 The latter are explained in sec.
24166 \begin_inset space \thinspace{}
24170 \begin_inset CommandInset ref
24172 reference "sec:Wrap-Floats"
24179 \begin_layout Subsection
24181 \begin_inset Index idx
24184 \begin_layout Plain Layout
24185 Floats ! Algorithms
24193 \begin_layout Standard
24194 \begin_inset Float algorithm
24200 \begin_layout Plain Layout
24201 \begin_inset Caption Standard
24203 \begin_layout Plain Layout
24204 \begin_inset CommandInset label
24206 name "alg:Example-Algorithm-float"
24210 Example Algorithm float
24218 \begin_layout LyX-Code
24220 \begin_inset Newline newline
24223 Sum:= Sum + A(I); /*comment*/
24224 \begin_inset Newline newline
24228 \begin_inset VSpace -4mm
24239 \begin_layout Standard
24240 This float type is inserted with the menu
24242 Insert\SpecialChar menuseparator
24243 Float\SpecialChar menuseparator
24247 It is used for program codes and descriptions of algorithms and can be
24248 seen as an alternative to program code listings that are explained in chapter
24249 \begin_inset space ~
24253 \begin_inset CommandInset ref
24255 reference "cha:Program-Code-Listings"
24260 A possible environment for algorithms is the
24265 , described in \SpecialChar LyX
24272 \begin_inset space ~
24276 \begin_inset CommandInset ref
24278 reference "alg:Example-Algorithm-float"
24282 is an example of an algorithm float where -4
24283 \begin_inset space \thinspace{}
24286 mm vertical space was added at the end of the float to have the bottom rule
24287 exactly below the last text line.
24290 \begin_layout Standard
24291 The float label is not automatically translated into the document language.
24292 If your document is not in English, you have to do this manually by adding
24293 the following line to the document preamble
24298 \begin_layout Standard
24303 floatname{algorithm}{your
24304 \begin_inset space ~
24310 \begin_layout Standard
24314 \begin_inset space ~
24320 \begin_inset Quotes eld
24328 \begin_inset Quotes erd
24334 \begin_layout Standard
24335 To insert the list of algorithms you can use the menu
24337 Insert\SpecialChar menuseparator
24339 \begin_inset space \thinspace{}
24343 \begin_inset space \thinspace{}
24346 TOC\SpecialChar menuseparator
24349 when your document has the same language as \SpecialChar LyX
24351 In other cases use this command in \SpecialChar TeX
24355 \begin_layout Standard
24360 listof{algorithm}{your
24361 \begin_inset space ~
24367 \begin_layout Standard
24371 \begin_inset space ~
24377 \begin_inset Quotes eld
24385 \begin_inset Quotes erd
24391 \begin_layout Standard
24392 Algorithm floats are not by default numbered in the scheme
24393 \begin_inset Quotes eld
24397 \begin_inset Quotes erd
24400 as is the case for table and figure floats in many document-classes.
24401 To number algorithm floats in the same scheme, add this command to your
24405 \begin_layout Standard
24410 numberwithin{algorithm}{chapter}
24413 \begin_layout Standard
24414 To be able to use the command
24423 \begin_inset space ~
24428 in the document settings the option
24431 \begin_inset space ~
24435 \begin_inset space ~
24439 \begin_inset space ~
24447 \begin_layout Section
24449 \begin_inset Index idx
24452 \begin_layout Plain Layout
24461 \begin_layout Standard
24462 Floats are usually numbered either independently from the sections the floats
24463 are in, or in the scheme
24464 \begin_inset Quotes eld
24468 \begin_inset Quotes erd
24472 \begin_inset Quotes eld
24476 \begin_inset Quotes erd
24480 This depends on the document class used.
24483 \begin_layout Standard
24484 To change section-independent numbering, you can use this command in the
24488 \begin_layout Standard
24500 \begin_layout Standard
24507 is the command that prints the table number.
24508 For figure floats, the command would be
24521 in the command above prints the table number as a small roman number.
24524 \begin_layout Standard
24525 To change the numbering scheme for example to
24526 \begin_inset Quotes eld
24530 \begin_inset Quotes erd
24533 , use this command in the preamble:
24536 \begin_layout Standard
24541 numberwithin{table}{subsection}
24544 \begin_layout Standard
24545 To be able to use the command
24554 \begin_inset space ~
24559 in the document settings the option
24562 \begin_inset space ~
24566 \begin_inset space ~
24570 \begin_inset space ~
24578 \begin_layout Standard
24579 Please also have a look at section
24580 \begin_inset space ~
24584 \begin_inset CommandInset ref
24586 reference "subsec:Footnote-Numbering"
24590 for the details and important notes about the numbering commands.
24593 \begin_layout Section
24595 \begin_inset CommandInset label
24597 name "sec:Referencing-Floats"
24602 \begin_inset Index idx
24605 \begin_layout Plain Layout
24606 Floats ! References
24612 \begin_inset Index idx
24615 \begin_layout Plain Layout
24616 References ! to Floats
24624 \begin_layout Standard
24625 To reference a float, insert a label into its caption using the menu
24627 Insert\SpecialChar menuseparator
24630 or the toolbar button
24637 A grey label box like this one:
24638 \begin_inset Graphics
24639 filename clipart/labelQt4.png
24641 scaleBeforeRotation
24645 will be inserted and the label window pops up asking for the label text.
24647 offers as text the first words of the caption with a prefix.
24648 The prefix depends on the float type, e.
24649 \begin_inset space \thinspace{}
24653 \begin_inset space \space{}
24656 for figure floats the prefix will be "
24663 \begin_layout Standard
24664 The label is used as anchor and name for the reference.
24665 You can refer to the label using the menu
24667 Insert\SpecialChar menuseparator
24670 or the toolbar button
24673 arg "dialog-show-new-inset ref"
24677 The cross-reference window appears showing all labels of the document.
24678 If you have multiple \SpecialChar LyX
24679 documents opened, choose the one you are working
24680 on from the drop-list at the top of the dialog.
24681 You can now sort the labels alphabetically and then choose one.
24682 A grey cross-reference box like this one:
24683 \begin_inset Graphics
24684 filename clipart/referenceQt4.png
24686 scaleBeforeRotation
24691 At the position of the cross-reference box the float number will appear
24695 \begin_layout Standard
24696 It is recommended that you use a protected space between the cross-reference
24697 name and its number to avoid line breaks between them.
24698 If a cross-reference refers to a non-existing label, you will see two question
24699 marks in the output instead of the reference.
24702 \begin_layout Standard
24703 You can change labels at any time by clicking on the label box.
24704 References to the changed label will automatically update their links to
24705 the new label text.
24708 \begin_layout Standard
24712 \begin_inset space ~
24716 \begin_inset space ~
24721 in the cross-reference window sets the cursor before the referred label.
24722 The button text changes then to Go
24723 \begin_inset space ~
24726 Back and you can use it to set the cursor back to the cross-reference.
24729 \begin_layout Subsection
24730 Cross-Reference Formats
24731 \begin_inset CommandInset label
24733 name "subsec:Cross-Reference-Formats"
24738 \begin_inset Index idx
24741 \begin_layout Plain Layout
24742 References ! Formats
24750 \begin_layout Standard
24751 There are six varieties of cross-references:
24754 \begin_layout Description
24755 <reference>: prints the float number, this is the default:
24756 \begin_inset CommandInset ref
24758 reference "fig:Two-distorted-images"
24765 \begin_layout Description
24766 (<reference>): prints the float number within two parentheses, this is the
24767 style normally used to reference formulas, especially when the reference
24769 \begin_inset Quotes eld
24773 \begin_inset Quotes erd
24777 \begin_inset CommandInset ref
24786 \begin_layout Description
24787 <page>: prints the page number: Page
24788 \begin_inset space ~
24792 \begin_inset CommandInset ref
24793 LatexCommand pageref
24794 reference "fig:Two-distorted-images"
24801 \begin_layout Description
24803 \begin_inset space ~
24807 \begin_inset space ~
24810 <page>: prints the text "on page" and the page number:
24811 \begin_inset CommandInset ref
24812 LatexCommand vpageref
24813 reference "fig:Two-distorted-images"
24820 \begin_layout Description
24822 \begin_inset space ~
24826 \begin_inset space ~
24830 \begin_inset space ~
24833 <page>: prints the float number, the text "on page", and the page number:
24835 \begin_inset CommandInset ref
24837 reference "fig:Two-distorted-images"
24844 \begin_layout Description
24846 \begin_inset space ~
24849 reference: prints a self-defined cross-reference format.
24850 \begin_inset Newline newline
24854 \begin_inset Note Greyedout
24857 \begin_layout Plain Layout
24862 This feature is only available when you have the \SpecialChar LaTeX
24872 \begin_inset Index idx
24875 \begin_layout Plain Layout
24877 -packages ! prettyref
24883 \begin_inset Index idx
24886 \begin_layout Plain Layout
24888 -packages ! refstyle
24899 \begin_inset Newline newline
24902 You can select which \SpecialChar LaTeX
24903 -package should be used for this feature by setting
24906 Use refstyle (not prettyref) for cross-references
24910 Document\SpecialChar menuseparator
24911 Settings\SpecialChar menuseparator
24915 The format is specified by adding the command
24927 (refstyle) to the preamble of the document.
24928 For example redefining all references to figures (which have the label
24930 \begin_inset Quotes eld
24938 \begin_inset Quotes erd
24941 ) can be done with this command
24942 \begin_inset Newline newline
24949 newref{fig}{refcmd={Image on page
24954 \begin_inset Newline newline
24957 For more information about the format, have a look at the package documentations
24959 \begin_inset CommandInset citation
24961 key "prettyref,refstyle"
24968 \begin_layout Description
24970 \begin_inset space ~
24973 reference: prints the caption of the reference:
24974 \begin_inset CommandInset ref
24975 LatexCommand nameref
24976 reference "fig:Two-distorted-images"
24983 \begin_layout Standard
24988 will not print the page number if the label is on the previous, the same,
24991 \begin_inset space \thinspace{}
24995 \begin_inset space \space{}
24999 \begin_inset Quotes eld
25007 \begin_inset Quotes erd
25013 <reference> on page <page>
25015 will not print anything about the page if the label is on the same page.
25018 \begin_layout Standard
25019 The number and current page of the part of the document referred to in the
25020 output is automatically calculated by \SpecialChar LaTeX
25022 The varieties are adjusted in the field
25026 of the cross-reference window that appears when you click on the cross-referenc
25030 \begin_layout Standard
25031 \begin_inset Note Greyedout
25034 \begin_layout Plain Layout
25039 It is recommended to use the \SpecialChar LaTeX
25045 \begin_inset Index idx
25048 \begin_layout Plain Layout
25050 -packages ! refstyle
25060 \begin_inset Index idx
25063 \begin_layout Plain Layout
25065 -packages ! prettyref
25070 does not know all of \SpecialChar LyX
25071 's possible label shortcuts
25075 \begin_layout Plain Layout
25076 \begin_inset Quotes eld
25080 \begin_inset Quotes erd
25083 is for example \SpecialChar LyX
25084 's shortcut for labels in figure captions.
25089 and is not internationalized.
25097 \begin_layout Subsection
25098 Automatic Reference Naming
25099 \begin_inset Index idx
25102 \begin_layout Plain Layout
25103 References ! Automatic Reference Naming
25111 \begin_layout Standard
25112 The \SpecialChar LaTeX
25118 \begin_inset Index idx
25121 \begin_layout Plain Layout
25123 -packages ! hyperref
25128 , that is enabled in the
25136 dialog, provides a very useful feature that cross-references automatically
25137 include the name of the referenced floats (or text parts like
25142 So you will save having to write e.
25143 \begin_inset space \thinspace{}
25147 \begin_inset space \space{}
25151 \begin_inset Quotes eld
25155 \begin_inset Quotes erd
25158 before every reference to a figure.
25159 To use this feature, enable
25163 and insert this line to the \SpecialChar LaTeX
25167 \begin_layout Standard
25183 \begin_layout Standard
25184 When you prefer other reference names than the default ones, for example
25185 you want instead of
25186 \begin_inset Quotes eld
25190 \begin_inset Quotes erd
25194 \begin_inset Quotes eld
25198 \begin_inset space \thinspace{}
25202 \begin_inset Quotes eld
25205 , you can redefine the name by inserting this in the preamble:
25208 \begin_layout Standard
25219 sectionautorefname}
25220 \begin_inset Newline newline
25224 \begin_inset Phantom HPhantom
25227 \begin_layout Plain Layout
25230 \begin_inset space ~
25243 \begin_layout Standard
25244 When you are using another document language than English, replace
25245 \begin_inset Newline newline
25260 , where *** is the name of the language used.
25263 \begin_layout Standard
25264 To get automatic names, but not for certain reference types, for example
25265 not for equations, use this preamble code:
25268 \begin_layout Standard
25279 equationautorefname}[1]{}}
25282 \begin_layout Standard
25283 More about this topic can be found in
25288 \begin_inset CommandInset citation
25297 \begin_layout Standard
25298 \begin_inset Note Greyedout
25301 \begin_layout Plain Layout
25306 Automatic reference naming cannot be used when you use cross-references
25310 \begin_inset space ~
25315 style, as described in section
25316 \begin_inset space ~
25320 \begin_inset CommandInset ref
25322 reference "subsec:Cross-Reference-Formats"
25334 \begin_layout Standard
25339 manual is an example where automatic reference naming is used.
25342 \begin_layout Subsection
25344 \begin_inset CommandInset label
25346 name "subsec:Reference-Position"
25351 \begin_inset Index idx
25354 \begin_layout Plain Layout
25355 References ! Reference Position
25363 \begin_layout Standard
25369 \begin_inset Index idx
25372 \begin_layout Plain Layout
25374 -packages ! hyperref
25387 dialog to link cross-references in the output, you will see that clicking
25388 on an image float reference jumps to the image label.
25389 The caption will be the first text part on the screen, so that you cannot
25390 see the image without scrolling.
25391 This is because the reference link anchor is placed at the position of
25393 With the use of the package
25398 \begin_inset Index idx
25401 \begin_layout Plain Layout
25408 , which is part of the \SpecialChar LaTeX
25414 \begin_inset Index idx
25417 \begin_layout Plain Layout
25419 -packages ! oberdiek
25424 , the link anchor is placed at the beginning of a float.
25425 To use this feature for figure floats, load
25429 in the document preamble with the line
25432 \begin_layout Standard
25437 usepackage[figure]{hypcap}
25440 \begin_layout Standard
25445 for all float types but this is not recommended for stability reasons.
25446 For more information, have a look at
25451 \begin_inset CommandInset citation
25460 \begin_layout Standard
25461 \begin_inset Note Greyedout
25464 \begin_layout Plain Layout
25473 has no effect on references to subfigures.
25481 \begin_layout Section
25483 \begin_inset CommandInset label
25485 name "sec:Float-Placement"
25490 \begin_inset Index idx
25493 \begin_layout Plain Layout
25502 \begin_layout Standard
25503 Right-clicking on a float-box and clicking on
25507 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25509 positioning the float.
25510 \begin_inset Newline newline
25516 \begin_inset space ~
25521 is only useful for two-column documents: If you select it, the float will
25522 span both columns on the page instead of being confined to just one.
25523 \begin_inset Newline newline
25529 \begin_inset space ~
25534 is used to rotate floats, see section
25535 \begin_inset CommandInset ref
25537 reference "sec:Rotated-Floats"
25544 \begin_layout Standard
25545 You can use one or more of the following options in the float dialog to
25546 set the placement for a particular float when you uncheck the option
25549 \begin_inset space ~
25553 \begin_inset space ~
25561 \begin_layout Description
25563 \begin_inset space ~
25567 \begin_inset space ~
25570 possible try to place the float on the position where it has been inserted
25573 \begin_layout Description
25575 \begin_inset space ~
25579 \begin_inset space ~
25582 page try to place the float at the top of the current page
25585 \begin_layout Description
25587 \begin_inset space ~
25591 \begin_inset space ~
25594 page try to place the float at the bottom of the current page
25597 \begin_layout Description
25599 \begin_inset space ~
25603 \begin_inset space ~
25606 floats try to place the float on its own page
25609 \begin_layout Standard
25610 The order of the above option is
25614 used by \SpecialChar LaTeX
25616 That means, if you use the default placement, \SpecialChar LaTeX
25620 \begin_inset space ~
25624 \begin_inset space ~
25632 \begin_inset space ~
25636 \begin_inset space ~
25641 , and then the others.
25642 If you do not use the default, \SpecialChar LaTeX
25643 will try only the checked options but in
25646 \begin_inset space ~
25649 placements is possible the procedure is internally repeated trying to put
25650 the float on the following page.
25653 \begin_layout Standard
25654 By default, each option has its own rules:
25657 \begin_layout Labeling
25658 \labelwidthstring 00.00.0000
25662 \begin_inset space ~
25666 \begin_inset space ~
25671 only floats occupying less than 70
25672 \begin_inset space \thinspace{}
25675 % of the page can be placed at the top of a page (
25684 \begin_layout Labeling
25685 \labelwidthstring 00.00.0000
25689 \begin_inset space ~
25693 \begin_inset space ~
25698 : only floats occupying less than 30
25699 \begin_inset space \thinspace{}
25702 % of the page can be placed at the bottom of a page.
25712 \begin_layout Labeling
25713 \labelwidthstring 00.00.0000
25717 \begin_inset space ~
25721 \begin_inset space ~
25726 : only if more than 50
25727 \begin_inset space \thinspace{}
25730 % of the page is occupied by floats, several floats can be set together
25741 \begin_layout Standard
25742 If you don't like these rules, you can ignore them by using the additional
25746 \begin_inset space ~
25751 \begin_inset space ~
25757 \begin_inset Newline newline
25760 You can also redefine the rules with \SpecialChar LaTeX
25761 -commands that are given in parentheses
25762 after the rules description above.
25763 To increase for example the often too small default of the bottom-rule
25765 \begin_inset space \thinspace{}
25768 % of the page, add this line to your document preamble:
25771 \begin_layout Standard
25778 bottomfraction}{0.5}
25781 \begin_layout Standard
25782 Sometimes you might need, under all circumstances, a float to be placed
25783 exactly at the position where it is inserted.
25784 For this case you can use the option
25787 \begin_inset space ~
25793 Use this option very rarely and only if the document is almost ready to
25794 be printed, because the float is then no longer able to
25795 \begin_inset Quotes eld
25799 \begin_inset Quotes erd
25802 when you change your document and this will often destroy the page layout.
25805 \begin_layout Standard
25806 There are no placement options for text wrap floats, because they are always
25807 surrounded by the text of a certain paragraph.
25808 \begin_inset VSpace bigskip
25814 \begin_layout Standard
25815 Sometimes you have the problem that a float is placed at the top of a page
25816 while its corresponding section starts at the middle of the page, so that
25817 the reader could think the float is part of the previous section.
25818 To avoid this the \SpecialChar LaTeX
25826 It suppresses a given float placement for the page where it is inserted
25827 and can therefore be used to avoid floats being set before a section starts.
25828 To get this, add these commands to your document preamble:
25831 \begin_layout Standard
25841 \begin_inset Newline newline
25855 \begin_layout Standard
25856 You can define the same for all section headings, like chapters and subsections.
25857 This definition is not recommended to be used for small text parts like
25858 subsubsections because \SpecialChar LaTeX
25859 may then have problems finding a suitable placement.
25862 \begin_layout Standard
25863 \begin_inset VSpace bigskip
25866 In some cases it is required to have all figures/tables at the end of the
25868 For this purpose the \SpecialChar LaTeX
25874 \begin_inset Index idx
25877 \begin_layout Plain Layout
25879 -packages ! endfloat
25885 It puts all figure and table floats at the end of the document into their
25887 At the original float position a text hint like
25888 \begin_inset Quotes eld
25894 \begin_inset space ~
25900 \begin_inset Quotes erd
25904 The endfloat-package is loaded in the preamble with the line
25907 \begin_layout Standard
25912 usepackage[options]{endfloat}
25915 \begin_layout Standard
25916 There are various package options to format the created figure/table sections.
25917 For more information we refer you to the
25922 \begin_inset CommandInset citation
25929 \begin_inset Newline newline
25933 \begin_inset Note Greyedout
25936 \begin_layout Plain Layout
25941 doesn't provide an automatic translation for the text hint, you have to
25942 do this manually, see section
25943 \begin_inset space ~
25947 \begin_inset CommandInset citation
25959 \begin_inset Newline newline
25963 \begin_inset Note Greyedout
25966 \begin_layout Plain Layout
25971 There is currently a bug in
25975 when the caption contains a German
25976 \begin_inset Quotes eld
25980 \begin_inset Quotes erd
25984 Use in this case the command
25985 \begin_inset Quotes eld
25995 \begin_inset Quotes erd
25998 in \SpecialChar TeX
26000 \begin_inset Quotes eld
26004 \begin_inset Quotes erd
26015 \begin_layout Standard
26016 \begin_inset VSpace bigskip
26019 For more details about float placements, have a look at \SpecialChar LaTeX
26021 \begin_inset CommandInset citation
26023 key "latexcompanion,latexguide,latexbook"
26030 \begin_layout Section
26032 \begin_inset CommandInset label
26034 name "sec:Rotated-Floats"
26039 \begin_inset Index idx
26042 \begin_layout Plain Layout
26051 \begin_layout Standard
26052 Especially for wide tables you might have floats rotated.
26053 To rotate a whole float including the caption, right-click on the float-box
26057 \begin_inset space ~
26065 \begin_layout Standard
26066 Rotated floats are always placed on a page of their own (or column of their
26067 own; in case you have a multi-column document).
26068 You can let them span several columns using the float settings option
26071 \begin_inset space ~
26077 Floats are rotated so that you can read them from the outside margin.
26078 To force a certain rotation direction for all pages, you can add either
26087 to the document class options.
26090 \begin_layout Standard
26091 Referencing rotated floats is the same as for normal floats, the caption
26092 format is also the same: Table
26093 \begin_inset space ~
26097 \begin_inset CommandInset ref
26099 reference "tab:Rotated-table"
26103 is an example of a rotated table float.
26106 \begin_layout Standard
26107 \begin_inset Note Greyedout
26110 \begin_layout Plain Layout
26115 Not all DVI-viewers are able to display rotated floats.
26123 \begin_layout Standard
26124 \begin_inset Float table
26129 \begin_layout Plain Layout
26130 \begin_inset Caption Standard
26132 \begin_layout Plain Layout
26133 \begin_inset CommandInset label
26135 name "tab:Rotated-table"
26147 \begin_layout Plain Layout
26149 \begin_inset Tabular
26150 <lyxtabular version="3" rows="1" columns="5">
26151 <features tabularvalignment="middle">
26152 <column alignment="center" valignment="top">
26153 <column alignment="center" valignment="top">
26154 <column alignment="center" valignment="top">
26155 <column alignment="center" valignment="top">
26156 <column alignment="center" valignment="top">
26158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26161 \begin_layout Plain Layout
26167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26170 \begin_layout Plain Layout
26176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26179 \begin_layout Plain Layout
26185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26188 \begin_layout Plain Layout
26194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26197 \begin_layout Plain Layout
26216 \begin_layout Section
26218 \begin_inset Index idx
26221 \begin_layout Plain Layout
26230 \begin_layout Standard
26231 Subfloats are for example used when a figure consists of several images.
26232 They are created by inserting a float into an existing float.
26233 The placement of the subfloats can be controlled in the same way as for
26234 paragraphs as shown in table
26235 \begin_inset space ~
26239 \begin_inset CommandInset ref
26241 reference "tab:Two-subtables-side"
26246 \begin_inset CommandInset ref
26248 reference "tab:Two-subtables-upon"
26255 \begin_layout Standard
26256 Referencing subfloats works as for normal floats: Table
26257 \begin_inset space ~
26261 \begin_inset CommandInset ref
26263 reference "tab:This-is-subtable-a"
26268 \begin_inset CommandInset ref
26270 reference "tab:This-is-subtable-b"
26274 are subtables of table
26275 \begin_inset space ~
26279 \begin_inset CommandInset ref
26281 reference "tab:Two-subtables-side"
26288 \begin_layout Standard
26289 \begin_inset Float table
26294 \begin_layout Plain Layout
26295 \begin_inset Caption Standard
26297 \begin_layout Plain Layout
26298 \begin_inset CommandInset label
26300 name "tab:Two-subtables-side"
26304 Two subtables placed side by side.
26312 \begin_layout Plain Layout
26314 \begin_inset space \hfill{}
26318 \begin_inset Float table
26323 \begin_layout Plain Layout
26324 \begin_inset Caption Standard
26326 \begin_layout Plain Layout
26327 \begin_inset CommandInset label
26329 name "tab:This-is-subtable-a"
26333 This is subtable a.
26341 \begin_layout Plain Layout
26343 \begin_inset Tabular
26344 <lyxtabular version="3" rows="1" columns="5">
26345 <features tabularvalignment="middle">
26346 <column alignment="center" valignment="top">
26347 <column alignment="center" valignment="top">
26348 <column alignment="center" valignment="top">
26349 <column alignment="center" valignment="top">
26350 <column alignment="center" valignment="top">
26352 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26355 \begin_layout Plain Layout
26361 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26364 \begin_layout Plain Layout
26370 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26373 \begin_layout Plain Layout
26379 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26382 \begin_layout Plain Layout
26388 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26391 \begin_layout Plain Layout
26408 \begin_inset space \hfill{}
26412 \begin_inset Float table
26417 \begin_layout Plain Layout
26418 \begin_inset Caption Standard
26420 \begin_layout Plain Layout
26421 \begin_inset CommandInset label
26423 name "tab:This-is-subtable-b"
26427 This is subtable b.
26435 \begin_layout Plain Layout
26437 \begin_inset Tabular
26438 <lyxtabular version="3" rows="1" columns="5">
26439 <features tabularvalignment="middle">
26440 <column alignment="center" valignment="top">
26441 <column alignment="center" valignment="top">
26442 <column alignment="center" valignment="top">
26443 <column alignment="center" valignment="top">
26444 <column alignment="center" valignment="top">
26446 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26449 \begin_layout Plain Layout
26455 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26458 \begin_layout Plain Layout
26464 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26467 \begin_layout Plain Layout
26473 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26476 \begin_layout Plain Layout
26482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26485 \begin_layout Plain Layout
26502 \begin_inset space \hfill{}
26513 \begin_layout Standard
26514 \begin_inset Float table
26519 \begin_layout Plain Layout
26520 \begin_inset Caption Standard
26522 \begin_layout Plain Layout
26523 \begin_inset CommandInset label
26525 name "tab:Two-subtables-upon"
26529 Two subtables placed one above the other.
26530 (a) table with 4 cells, (b) table with 5 cells.
26538 \begin_layout Plain Layout
26540 \begin_inset Float table
26545 \begin_layout Plain Layout
26546 \begin_inset Caption Standard
26548 \begin_layout Plain Layout
26557 \begin_layout Plain Layout
26559 \begin_inset Tabular
26560 <lyxtabular version="3" rows="1" columns="4">
26561 <features tabularvalignment="middle">
26562 <column alignment="center" valignment="top">
26563 <column alignment="center" valignment="top">
26564 <column alignment="center" valignment="top">
26565 <column alignment="center" valignment="top">
26567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26570 \begin_layout Plain Layout
26576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26579 \begin_layout Plain Layout
26585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26588 \begin_layout Plain Layout
26594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26597 \begin_layout Plain Layout
26616 \begin_layout Plain Layout
26618 \begin_inset Float table
26623 \begin_layout Plain Layout
26624 \begin_inset Caption Standard
26626 \begin_layout Plain Layout
26635 \begin_layout Plain Layout
26637 \begin_inset Tabular
26638 <lyxtabular version="3" rows="1" columns="5">
26639 <features tabularvalignment="middle">
26640 <column alignment="center" valignment="top">
26641 <column alignment="center" valignment="top">
26642 <column alignment="center" valignment="top">
26643 <column alignment="center" valignment="top">
26644 <column alignment="center" valignment="top">
26646 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26649 \begin_layout Plain Layout
26655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26658 \begin_layout Plain Layout
26664 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26667 \begin_layout Plain Layout
26673 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26676 \begin_layout Plain Layout
26682 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26685 \begin_layout Plain Layout
26709 \begin_layout Section
26710 Floats Side by Side
26711 \begin_inset Index idx
26714 \begin_layout Plain Layout
26715 Floats ! Side by side
26723 \begin_layout Standard
26724 To place floats side by side, as in Figures
26725 \begin_inset space ~
26729 \begin_inset CommandInset ref
26731 reference "fig:Float-left"
26736 \begin_inset CommandInset ref
26738 reference "fig:Float-right"
26747 In it two minipage boxes are inserted.
26751 \begin_layout Plain Layout
26752 Minipages are explained in section
26753 \begin_inset space ~
26757 \begin_inset CommandInset ref
26759 reference "sec:Minipages"
26768 The width is set to 45
26769 \begin_inset space \thinspace{}
26773 \begin_inset space \thinspace{}
26776 column% and the box alignment to
26781 The minipage boxes contain the image and the caption in the same way as
26782 they are in a float.
26783 The only difference is that the image unit
26786 \begin_inset space ~
26790 \begin_inset space ~
26795 is now calculated according to the width of the minipage boxes.
26798 \begin_layout Standard
26799 \begin_inset Float figure
26804 \begin_layout Plain Layout
26805 \begin_inset Box Frameless
26815 height_special "totalheight"
26820 backgroundcolor "none"
26823 \begin_layout Plain Layout
26825 \begin_inset Graphics
26826 filename clipart/mobius.eps
26829 scaleBeforeRotation
26836 \begin_layout Plain Layout
26837 \begin_inset Caption Standard
26839 \begin_layout Plain Layout
26840 \begin_inset CommandInset label
26842 name "fig:Float-left"
26846 Float on the left side.
26857 \begin_inset space \hfill{}
26861 \begin_inset Box Frameless
26871 height_special "totalheight"
26876 backgroundcolor "none"
26879 \begin_layout Plain Layout
26881 \begin_inset Graphics
26882 filename clipart/platypus.eps
26885 scaleBeforeRotation
26892 \begin_layout Plain Layout
26893 \begin_inset Caption Standard
26895 \begin_layout Plain Layout
26896 \begin_inset CommandInset label
26898 name "fig:Float-right"
26902 Float on the right side.
26915 \begin_layout Plain Layout
26924 \begin_layout Section
26926 \begin_inset Index idx
26929 \begin_layout Plain Layout
26930 Caption ! Formatting
26936 \begin_inset Index idx
26939 \begin_layout Plain Layout
26940 Floats ! Caption Formatting
26946 \begin_inset CommandInset label
26948 name "sec:Caption-Formatting"
26955 \begin_layout Standard
26960 environment is the default paragraph environment for
26965 On the \SpecialChar LyX
26966 screen captions appear as a label, e.
26967 \begin_inset space \thinspace{}
26971 \begin_inset space \space{}
26975 \begin_inset Quotes eld
26983 \begin_inset Quotes erd
26986 followed by the caption text.
26988 \begin_inset Quotes eld
26992 \begin_inset Quotes erd
26995 is the actual reference number.
26996 By default the label and the number are in the same font as the caption
26997 text and a colon follows the number to divide the label from the text.
26998 This caption format is suitable for many but not all documents.
27002 \begin_layout Standard
27003 To change the default caption format, load the \SpecialChar LaTeX
27009 \begin_inset Index idx
27012 \begin_layout Plain Layout
27014 -packages ! caption
27019 in the document preamble with this line:
27022 \begin_layout Standard
27027 usepackage[format definition]{caption}
27030 \begin_layout Standard
27031 To have for example the label and the number in sans-serif, bold font and
27032 the table captions always above the table as in this document, use the
27036 \begin_layout Standard
27041 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27044 \begin_layout Standard
27045 You can also define different caption formats for the different float types.
27046 In this case load the
27050 package without format specific options and define the different formats
27051 with the help of the command
27054 \begin_layout Standard
27059 captionsetup[float type]{format definition}
27062 \begin_layout Standard
27063 in the document preamble.
27064 For example the caption formats of Figure
27065 \begin_inset space ~
27069 \begin_inset CommandInset ref
27071 reference "fig:This-is-an-fig"
27076 \begin_inset space ~
27080 \begin_inset CommandInset ref
27082 reference "tab:This-is-an-tab"
27086 can be created using these commands in the document preamble:
27089 \begin_layout Standard
27094 usepackage[tableposition=top]{caption}
27097 \begin_inset Newline newline
27104 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27105 \begin_inset Newline newline
27109 \begin_inset Phantom HPhantom
27112 \begin_layout Plain Layout
27117 captionsetup[figure]{
27123 \begin_inset Newline newline
27128 captionsetup[table]{labelfont={bf,sf}}
27131 \begin_layout Standard
27132 \begin_inset Note Greyedout
27135 \begin_layout Plain Layout
27144 has no effect when a
27149 \begin_inset Index idx
27152 \begin_layout Plain Layout
27154 -packages ! KOMA-Script
27159 document class is used.
27160 In this case the document class option
27162 captions=tableheading
27172 \begin_layout Standard
27173 For more information about the package
27177 we refer to its documentation
27178 \begin_inset CommandInset citation
27187 \begin_layout Standard
27188 To change the label name from e.
27189 \begin_inset space \thinspace{}
27193 \begin_inset space \space{}
27197 \begin_inset Quotes eld
27201 \begin_inset Quotes erd
27205 \begin_inset Quotes eld
27209 \begin_inset Quotes erd
27212 use this preamble command:
27215 \begin_layout Standard
27222 fnum@figure}{Image~
27227 \begin_layout Standard
27234 inserts the figure number and
27237 \begin_inset Quotes eld
27243 \begin_inset Quotes erd
27246 creates a protected space.
27249 \begin_layout Standard
27250 \begin_inset VSpace bigskip
27258 \begin_inset Index idx
27261 \begin_layout Plain Layout
27263 -packages ! KOMA-Script
27270 article (KOMA-Script)
27278 letter (KOMA-Script)
27282 report (KOMA-Script)
27285 \begin_inset space \thinspace{}
27288 ), you can alternatively to the
27296 's built-in command
27303 For example, to have the caption label in bold, add this command to your
27307 \begin_layout Standard
27312 setkomafont{captionlabel}{
27317 \begin_layout Standard
27318 For more information about
27329 \begin_inset CommandInset citation
27338 \begin_layout Standard
27342 \begin_layout Plain Layout
27346 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27353 \begin_inset Note Note
27356 \begin_layout Plain Layout
27357 The caption format is changed only for this example.
27365 \begin_layout Standard
27366 \begin_inset Float figure
27372 \begin_layout Plain Layout
27374 \begin_inset Graphics
27375 filename clipart/mobius.eps
27378 scaleBeforeRotation
27385 \begin_layout Plain Layout
27386 \begin_inset Caption Standard
27388 \begin_layout Plain Layout
27389 \begin_inset CommandInset label
27391 name "fig:This-is-an-fig"
27395 This is an example figure caption that is longer than one line to show the
27396 different caption format.
27397 Here a self-defined caption format is used.
27410 \begin_layout Standard
27414 \begin_layout Plain Layout
27418 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27427 \begin_layout Standard
27428 \begin_inset Float table
27434 \begin_layout Plain Layout
27435 \begin_inset Caption Standard
27437 \begin_layout Plain Layout
27438 \begin_inset CommandInset label
27440 name "tab:This-is-an-tab"
27444 This is an example table caption that is longer than one line to show the
27445 different caption format.
27446 Here the standard caption format for tables in this document is used.
27454 \begin_layout Plain Layout
27456 \begin_inset Tabular
27457 <lyxtabular version="3" rows="1" columns="5">
27458 <features tabularvalignment="middle">
27459 <column alignment="center" valignment="top">
27460 <column alignment="center" valignment="top">
27461 <column alignment="center" valignment="top">
27462 <column alignment="center" valignment="top">
27463 <column alignment="center" valignment="top">
27465 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27468 \begin_layout Plain Layout
27474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27477 \begin_layout Plain Layout
27483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27486 \begin_layout Plain Layout
27492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27495 \begin_layout Plain Layout
27501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27504 \begin_layout Plain Layout
27523 \begin_layout Section
27525 \begin_inset Index idx
27528 \begin_layout Plain Layout
27529 Caption ! Placement
27535 \begin_inset Index idx
27538 \begin_layout Plain Layout
27539 Floats ! Caption Placement
27545 \begin_inset CommandInset label
27547 name "sec:Caption-Placement"
27554 \begin_layout Standard
27555 The common caption placement rule is:
27558 \begin_layout Description
27559 Figure: Caption is set below the figure
27562 \begin_layout Description
27563 Table: Caption is set above the table
27566 \begin_layout Standard
27567 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27570 That means if you are using the document classes
27586 there will be no space between the caption and the table.
27587 To insert the necessary space, load the \SpecialChar LaTeX
27593 \begin_inset Index idx
27596 \begin_layout Plain Layout
27598 -packages ! caption
27603 in your document preamble with the option
27607 \begin_layout Plain Layout
27609 \begin_inset space ~
27613 \begin_inset CommandInset ref
27615 reference "sec:Caption-Formatting"
27619 for more information of the package
27631 \begin_layout Standard
27637 \begin_layout Standard
27643 \begin_inset Index idx
27646 \begin_layout Plain Layout
27648 -packages ! KOMA-Script
27655 article (KOMA-Script)
27663 letter (KOMA-Script)
27667 report (KOMA-Script)
27670 \begin_inset space \thinspace{}
27673 ), you can alternatively to the
27677 package set the document class option
27681 \begin_layout Plain Layout
27682 That option is used in this document.
27690 \begin_layout Standard
27693 captions=tableheading
27696 \begin_layout Standard
27697 In documents with a KOMA-Script document class you can also right-click
27698 on a caption and mark in the context menu if this should be a caption above
27699 or below the table/figure.
27700 This way you can override the document-wide caption placement for certain
27703 \begin_inset space ~
27707 \begin_inset CommandInset ref
27709 reference "tab:A-caption-marked"
27713 is an example where the caption is marked a being below the table while
27715 For comparison the caption in Table
27716 \begin_inset space ~
27720 \begin_inset CommandInset ref
27722 reference "tab:A-standard-table"
27729 \begin_layout Standard
27730 \begin_inset Float table
27735 \begin_layout Plain Layout
27736 \begin_inset Caption Below
27738 \begin_layout Plain Layout
27739 \begin_inset CommandInset label
27741 name "tab:A-caption-marked"
27745 A caption marked as being below the table.
27753 \begin_layout Plain Layout
27755 \begin_inset Tabular
27756 <lyxtabular version="3" rows="3" columns="3">
27757 <features tabularvalignment="middle">
27758 <column alignment="center" valignment="top" width="0pt">
27759 <column alignment="center" valignment="top" width="0pt">
27760 <column alignment="center" valignment="top" width="0pt">
27762 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27765 \begin_layout Plain Layout
27771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27774 \begin_layout Plain Layout
27780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27783 \begin_layout Plain Layout
27791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27794 \begin_layout Plain Layout
27800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27803 \begin_layout Plain Layout
27809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27812 \begin_layout Plain Layout
27820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27823 \begin_layout Plain Layout
27824 \begin_inset Formula $\int x^{2}dx$
27832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27835 \begin_layout Plain Layout
27836 \begin_inset Formula $\left[\begin{array}{cc}
27839 \end{array}\right]$
27847 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27850 \begin_layout Plain Layout
27851 \begin_inset Formula $1+1=2$
27872 \begin_layout Standard
27873 \begin_inset Float table
27878 \begin_layout Plain Layout
27879 \begin_inset Caption Standard
27881 \begin_layout Plain Layout
27882 \begin_inset CommandInset label
27884 name "tab:A-standard-table"
27888 A standard table caption.
27896 \begin_layout Plain Layout
27898 \begin_inset Tabular
27899 <lyxtabular version="3" rows="3" columns="3">
27900 <features tabularvalignment="middle">
27901 <column alignment="center" valignment="top" width="0pt">
27902 <column alignment="center" valignment="top" width="0pt">
27903 <column alignment="center" valignment="top" width="0pt">
27905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27908 \begin_layout Plain Layout
27914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27917 \begin_layout Plain Layout
27923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27926 \begin_layout Plain Layout
27934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27937 \begin_layout Plain Layout
27943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27946 \begin_layout Plain Layout
27952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27955 \begin_layout Plain Layout
27963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27966 \begin_layout Plain Layout
27967 \begin_inset Formula $\int x^{2}dx$
27975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27978 \begin_layout Plain Layout
27979 \begin_inset Formula $\left[\begin{array}{cc}
27982 \end{array}\right]$
27990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27993 \begin_layout Plain Layout
27994 \begin_inset Formula $1+1=2$
28015 \begin_layout Standard
28016 \begin_inset VSpace bigskip
28019 It is also possible to set the caption beside a figure or table.
28020 To get this the \SpecialChar LaTeX
28026 \begin_inset Index idx
28029 \begin_layout Plain Layout
28031 -packages ! sidecap
28036 has to be loaded in the document preamble with the line
28039 \begin_layout Standard
28044 usepackage[option]{sidecap}
28047 \begin_layout Standard
28048 If you set no option, the caption is placed on the side of the outer page
28049 margin – to the right on odd pages, to the left on even pages.
28050 You can change the placement to inner margin with the option
28055 To force the placement always to the right or left, use the option
28066 \begin_layout Standard
28070 \begin_layout Plain Layout
28080 \begin_inset Note Note
28083 \begin_layout Plain Layout
28084 The following section will only be displayed when the \SpecialChar LaTeX
28097 \begin_layout Standard
28098 To place in \SpecialChar LyX
28099 the caption of a float on the side, it is necessary to add
28100 these commands to the document preamble:
28103 \begin_layout Standard
28105 \begin_inset CommandInset line
28116 \begin_layout Standard
28123 TabBesBeg}[1][1.0]{%
28124 \begin_inset Newline newline
28128 \begin_inset Phantom HPhantom
28131 \begin_layout Plain Layout
28132 \begin_inset space ~
28147 \begin_inset Newline newline
28151 \begin_inset Phantom HPhantom
28154 \begin_layout Plain Layout
28157 \begin_inset space ~
28172 \begin_inset Newline newline
28176 \begin_inset Phantom HPhantom
28179 \begin_layout Plain Layout
28182 \begin_inset space ~
28192 renewenvironment{table}[1]{
28194 begin{SCtable}[#1]##1}{
28199 \begin_layout Standard
28207 \begin_inset Newline newline
28211 \begin_inset Phantom HPhantom
28214 \begin_layout Plain Layout
28215 \begin_inset space ~
28230 \begin_inset Newline newline
28234 \begin_inset Phantom HPhantom
28237 \begin_layout Plain Layout
28238 \begin_inset space ~
28255 \begin_layout Standard
28262 FigBesBeg}[1][1.0]{%
28263 \begin_inset Newline newline
28267 \begin_inset Phantom HPhantom
28270 \begin_layout Plain Layout
28271 \begin_inset space ~
28286 \begin_inset Newline newline
28290 \begin_inset Phantom HPhantom
28293 \begin_layout Plain Layout
28294 \begin_inset space ~
28309 \begin_inset Newline newline
28313 \begin_inset Phantom HPhantom
28316 \begin_layout Plain Layout
28317 \begin_inset space ~
28327 renewenvironment{figure}[1]{
28329 begin{SCfigure}[#1]##1}{
28334 \begin_layout Standard
28342 \begin_inset Newline newline
28346 \begin_inset Phantom HPhantom
28349 \begin_layout Plain Layout
28350 \begin_inset space ~
28365 \begin_inset Newline newline
28369 \begin_inset Phantom HPhantom
28372 \begin_layout Plain Layout
28373 \begin_inset space ~
28390 \begin_layout Standard
28392 \begin_inset CommandInset line
28403 \begin_layout Standard
28404 The commands allow you to redefine the floats so that the caption is set
28406 For figure floats use the command
28409 \begin_layout Standard
28417 \begin_layout Standard
28418 in \SpecialChar TeX
28419 Code before the float.
28420 And insert the command
28423 \begin_layout Standard
28431 \begin_layout Standard
28432 in \SpecialChar TeX
28433 Code at the point where you want to get back to the original float definitio
28437 \begin_layout Standard
28438 For table floats use the corresponding commands
28441 \begin_layout Standard
28455 \begin_layout Standard
28457 \begin_inset space ~
28461 \begin_inset CommandInset ref
28463 reference "fig:cap-beside-fig"
28468 \begin_inset space ~
28472 \begin_inset CommandInset ref
28474 reference "tab:cap-beside-tab"
28478 are examples where the caption is set beside.
28481 \begin_layout Standard
28482 You can see in the examples that the caption text appears at the top of
28483 the floats for table floats and at the bottom for figure floats.
28484 To change this, you can use the command
28487 \begin_layout Standard
28492 sidecaptionvpos{float type}{placement}
28495 \begin_layout Standard
28496 in the document preamble or in \SpecialChar TeX
28497 Code before the float.
28498 The float type is either
28506 , the placement can be
28507 \begin_inset Quotes eld
28515 \begin_inset Quotes erd
28519 \begin_inset Quotes eld
28527 \begin_inset Quotes erd
28531 \begin_inset Quotes eld
28539 \begin_inset Quotes erd
28543 To have for example the caption of figure floats vertically centered, use
28547 \begin_layout Standard
28552 sidecaptionvpos{figure}{c}
28555 \begin_layout Standard
28556 This was used for Figure
28557 \begin_inset space ~
28561 \begin_inset CommandInset ref
28563 reference "fig:cap-beside-fig-2"
28570 \begin_layout Standard
28571 \begin_inset VSpace medskip
28577 \begin_layout Standard
28578 The default caption width is the width of the image/table.
28579 For thin image/tables, like in Table
28580 \begin_inset space ~
28584 \begin_inset CommandInset ref
28586 reference "tab:cap-beside-tab"
28590 , this leads to captions that are too thin.
28591 You can increase the width by specifying a factor that will be multiplied
28592 with the image/table width to get the caption width.
28593 The caption width will automatically be recalculated in case it would protrude
28594 over the page or column margin due to the specified width.
28599 can either be given as optional argument for
28608 \begin_layout Standard
28616 \begin_layout Standard
28617 or in the definition of
28627 with another value.
28628 If you do the latter, your factor will be the default if
28634 is used without an argument.
28636 \begin_inset space ~
28640 \begin_inset CommandInset ref
28642 reference "tab:cap-beside-tab-wider"
28646 the factor 5 was used.
28649 \begin_layout Standard
28650 \begin_inset Note Greyedout
28653 \begin_layout Plain Layout
28658 For floats with captions set beside, you cannot use the float placement
28662 \begin_inset space ~
28667 because it is not supported by
28679 \begin_layout Standard
28680 \begin_inset VSpace medskip
28683 For more information about the package
28687 we refer to its documentation
28688 \begin_inset CommandInset citation
28697 \begin_layout Standard
28698 \begin_inset Note Greyedout
28701 \begin_layout Plain Layout
28706 The \SpecialChar LaTeX
28712 \begin_inset Index idx
28715 \begin_layout Plain Layout
28722 , described in section
28723 \begin_inset space ~
28727 \begin_inset CommandInset ref
28729 reference "subsec:Reference-Position"
28733 , has no effect on floats with the caption set beside.
28741 \begin_layout Standard
28745 \begin_layout Plain Layout
28757 \begin_layout Standard
28758 \begin_inset Float figure
28763 \begin_layout Plain Layout
28764 \begin_inset Graphics
28765 filename clipart/escher-lsd.eps
28767 scaleBeforeRotation
28774 \begin_layout Plain Layout
28775 \begin_inset Caption Standard
28777 \begin_layout Plain Layout
28778 \begin_inset CommandInset label
28780 name "fig:cap-beside-fig"
28784 This is a caption beside a figure.
28797 \begin_layout Standard
28801 \begin_layout Plain Layout
28813 \begin_layout Standard
28817 \begin_layout Plain Layout
28829 \begin_layout Standard
28830 \begin_inset Float table
28835 \begin_layout Plain Layout
28836 \begin_inset Caption Standard
28838 \begin_layout Plain Layout
28839 \begin_inset CommandInset label
28841 name "tab:cap-beside-tab"
28845 This is a caption beside a table.
28853 \begin_layout Plain Layout
28854 \begin_inset Tabular
28855 <lyxtabular version="3" rows="4" columns="5">
28856 <features tabularvalignment="middle">
28857 <column alignment="center" valignment="top">
28858 <column alignment="center" valignment="top">
28859 <column alignment="center" valignment="top">
28860 <column alignment="center" valignment="top">
28861 <column alignment="center" valignment="top">
28863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28866 \begin_layout Plain Layout
28872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28875 \begin_layout Plain Layout
28881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28884 \begin_layout Plain Layout
28890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28893 \begin_layout Plain Layout
28899 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28902 \begin_layout Plain Layout
28910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28913 \begin_layout Plain Layout
28919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28922 \begin_layout Plain Layout
28928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28931 \begin_layout Plain Layout
28937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28940 \begin_layout Plain Layout
28946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28949 \begin_layout Plain Layout
28957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28960 \begin_layout Plain Layout
28966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28969 \begin_layout Plain Layout
28975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28978 \begin_layout Plain Layout
28984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28987 \begin_layout Plain Layout
28993 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28996 \begin_layout Plain Layout
29004 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29007 \begin_layout Plain Layout
29013 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29016 \begin_layout Plain Layout
29022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29025 \begin_layout Plain Layout
29031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29034 \begin_layout Plain Layout
29040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29043 \begin_layout Plain Layout
29062 \begin_layout Standard
29066 \begin_layout Plain Layout
29078 \begin_layout Standard
29082 \begin_layout Plain Layout
29095 \begin_layout Plain Layout
29099 sidecaptionvpos{figure}{c}
29105 \begin_inset Float figure
29110 \begin_layout Plain Layout
29111 \begin_inset Graphics
29112 filename clipart/escher-lsd.eps
29114 scaleBeforeRotation
29121 \begin_layout Plain Layout
29122 \begin_inset Caption Standard
29124 \begin_layout Plain Layout
29125 \begin_inset CommandInset label
29127 name "fig:cap-beside-fig-2"
29131 This is a vertically centered caption beside a figure.
29144 \begin_layout Standard
29148 \begin_layout Plain Layout
29160 \begin_layout Standard
29164 \begin_layout Plain Layout
29176 \begin_layout Standard
29177 \begin_inset Float table
29182 \begin_layout Plain Layout
29183 \begin_inset Caption Standard
29185 \begin_layout Plain Layout
29186 \begin_inset CommandInset label
29188 name "tab:cap-beside-tab-wider"
29192 This caption is wider than the one in Table
29193 \begin_inset space ~
29197 \begin_inset CommandInset ref
29199 reference "tab:cap-beside-tab"
29211 \begin_layout Plain Layout
29212 \begin_inset Tabular
29213 <lyxtabular version="3" rows="4" columns="5">
29214 <features tabularvalignment="middle">
29215 <column alignment="center" valignment="top">
29216 <column alignment="center" valignment="top">
29217 <column alignment="center" valignment="top">
29218 <column alignment="center" valignment="top">
29219 <column alignment="center" valignment="top">
29221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29224 \begin_layout Plain Layout
29230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29233 \begin_layout Plain Layout
29239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29242 \begin_layout Plain Layout
29248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29251 \begin_layout Plain Layout
29257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29260 \begin_layout Plain Layout
29268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29271 \begin_layout Plain Layout
29277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29280 \begin_layout Plain Layout
29286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29289 \begin_layout Plain Layout
29295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29298 \begin_layout Plain Layout
29304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29307 \begin_layout Plain Layout
29315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29318 \begin_layout Plain Layout
29324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29327 \begin_layout Plain Layout
29333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29336 \begin_layout Plain Layout
29342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29345 \begin_layout Plain Layout
29351 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29354 \begin_layout Plain Layout
29362 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29365 \begin_layout Plain Layout
29371 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29374 \begin_layout Plain Layout
29380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29383 \begin_layout Plain Layout
29389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29392 \begin_layout Plain Layout
29398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29401 \begin_layout Plain Layout
29420 \begin_layout Standard
29424 \begin_layout Plain Layout
29436 \begin_layout Standard
29440 \begin_layout Plain Layout
29450 \begin_inset Note Note
29453 \begin_layout Plain Layout
29454 The following will be displayed when the \SpecialChar LaTeX
29467 \begin_layout Standard
29468 You need to install the \SpecialChar LaTeX
29473 to see the following part of this section in the output.
29476 \begin_layout Standard
29480 \begin_layout Plain Layout
29492 \begin_layout Section
29494 \begin_inset Index idx
29497 \begin_layout Plain Layout
29498 Floats ! Float Lists
29506 \begin_layout Standard
29507 Similar to the table of contents where the sections of the document are
29508 listed, there are listings for all float types, like the figures of the
29510 You can insert them via the
29512 Insert\SpecialChar menuseparator
29514 \begin_inset space ~
29518 \begin_inset space ~
29526 \begin_layout Standard
29527 The list entries are the float captions or its short title, the float number,
29528 and the page number where they appear in the document.
29531 \begin_layout Standard
29532 You can find the list of figures and tables at the end of this document.
29535 \begin_layout Chapter
29539 \begin_layout Section
29542 \begin_inset Index idx
29545 \begin_layout Plain Layout
29546 Notes ! \SpecialChar LyX
29555 \begin_layout Standard
29556 Notes are inserted with the toolbar button
29564 Insert\SpecialChar menuseparator
29568 There are three types of notes:
29571 \begin_layout Description
29574 \begin_inset space ~
29577 Note This note type is for internal notes that won't appear in the output.
29578 Its note-box looks like this:
29579 \begin_inset Newline newline
29583 \begin_inset Newline newline
29587 \begin_inset Graphics
29588 filename clipart/LyXNoteImageQt4.png
29591 scaleBeforeRotation
29596 \begin_inset Note Note
29599 \begin_layout Plain Layout
29600 This is text in a note box that doesn't appear in the output.
29608 \begin_layout Description
29609 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29611 when you export the document to \SpecialChar LaTeX
29614 File\SpecialChar menuseparator
29615 Export\SpecialChar menuseparator
29617 (pdflatex) / (plain)
29620 Its note-box looks like this:
29621 \begin_inset Newline newline
29625 \begin_inset Newline newline
29629 \begin_inset Graphics
29630 filename clipart/CommentNoteImageQt4.png
29633 scaleBeforeRotation
29638 \begin_inset Note Comment
29641 \begin_layout Plain Layout
29642 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29651 \begin_layout Description
29653 \begin_inset space ~
29656 Out This note will appear in the output as grey text.
29657 Its note-box looks like this:
29658 \begin_inset Newline newline
29662 \begin_inset Newline newline
29666 \begin_inset Graphics
29667 filename clipart/GreyedOutNoteImageQt4.png
29670 scaleBeforeRotation
29675 \begin_inset Newline newline
29682 \begin_layout Plain Layout
29686 renewenvironment{lyxgreyedout}
29689 \begin_layout Plain Layout
29693 textcolor[gray]{0.8}
29703 \begin_inset Note Greyedout
29706 \begin_layout Plain Layout
29711 \begin_layout Plain Layout
29712 This is an example footnote within a greyed out note.
29717 of a comment that appears in the output as grey text.
29726 \begin_layout Plain Layout
29730 renewenvironment{lyxgreyedout}
29733 \begin_layout Plain Layout
29747 \begin_inset Note Note
29750 \begin_layout Plain Layout
29751 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29753 because greyed out notes are redefined in the preamble of this document,
29754 as described below, to have blue text.
29760 \begin_inset Newline newline
29764 \begin_inset Newline newline
29767 As you can see in the example, the first line of greyed out notes is a bit
29768 indented and greyed out notes can have footnotes.
29771 \begin_layout Standard
29772 \begin_inset VSpace bigskip
29775 When you use the toolbar button
29785 \begin_inset space ~
29791 You can switch between the three note types by right-clicking on the note-box.
29796 If you want to turn existing text into a note, mark it and click on the
29810 To change a note to text, press the backspace key when the cursor is in
29811 the first position of a note, or press the delete key when the cursor is
29812 in the very last position of the note, respectively.
29815 \begin_layout Standard
29816 \begin_inset VSpace bigskip
29819 You can change the text color of the greyed out notes in the menu
29821 Document\SpecialChar menuseparator
29822 Settings\SpecialChar menuseparator
29828 \begin_layout Section
29830 \begin_inset CommandInset label
29832 name "sec:Footnotes"
29837 \begin_inset Index idx
29840 \begin_layout Plain Layout
29847 \begin_inset Index idx
29850 \begin_layout Plain Layout
29859 \begin_layout Standard
29860 Footnotes can be inserted using the toolbar button
29863 arg "footnote-insert"
29868 Insert\SpecialChar menuseparator
29872 You will then see the following footnote-box:
29873 \begin_inset Graphics
29874 filename clipart/footnoteQt4.png
29876 scaleBeforeRotation
29884 where you can enter the footnote text.
29885 If you want to turn existing text into a footnote, mark it and click on
29911 key when the cursor is in the first position of a
29923 key when the cursor is in the very last position of the
29934 \begin_layout Standard
29935 Here is an example footnote:
29943 \begin_layout Plain Layout
29944 \begin_inset CommandInset label
29946 name "foot:This-is-an"
29950 This is an example footnote.
29963 \begin_layout Plain Layout
29967 newcounter{MyRepeatFoot}
29970 \begin_layout Plain Layout
29974 setcounter{MyRepeatFoot}{
29984 \begin_layout Standard
29985 The footnote will appear in the output as a superscript number at the text
29986 position where the footnote box is placed.
29987 The footnote text is placed at the bottom of the current page.
29988 The footnote number is calculated by \SpecialChar LaTeX
29989 ; the numbers are consecutive.
29990 Whether the footnote number is reset for every chapter depends on your
29994 \begin_layout Standard
29995 Footnotes can be referenced like floats: Insert a label into the footnote
29996 and cross-reference this label in the text as described in section
29997 \begin_inset space ~
30001 \begin_inset CommandInset ref
30003 reference "sec:Referencing-Floats"
30008 \begin_inset Newline newline
30011 This is a cross-reference of Footnote
30012 \begin_inset space ~
30016 \begin_inset CommandInset ref
30018 reference "foot:This-is-an"
30025 \begin_layout Standard
30026 \begin_inset VSpace defskip
30029 Footnotes in title environments are usually not numbered with symbols and
30030 they cannot contain several paragraphs.
30031 See for example the footnote in the titling of this document.
30034 \begin_layout Standard
30035 \begin_inset VSpace defskip
30038 Footnotes in tables are not printed by \SpecialChar LaTeX
30039 due to technical reasons.
30040 However there exists another method to print them: Instead of the footnote
30047 is inserted as \SpecialChar TeX
30049 The text of the footnote is entered as an argument of the \SpecialChar TeX
30058 \begin_inset Newline newline
30061 This was done for the following table with the command
30064 \begin_layout Standard
30071 Printed table footnote.
30076 \begin_layout Standard
30077 \begin_inset Tabular
30078 <lyxtabular version="3" rows="2" columns="1">
30079 <features tabularvalignment="middle">
30080 <column alignment="center" valignment="top">
30082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30085 \begin_layout Plain Layout
30086 This an example text.
30090 \begin_layout Plain Layout
30091 This footnote will not be printed!
30103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30106 \begin_layout Plain Layout
30107 This an example text.
30111 \begin_layout Plain Layout
30134 \begin_layout Plain Layout
30143 Printed table footnote.
30147 \begin_layout Plain Layout
30157 \begin_layout Standard
30158 Footnotes in longtables are described in section
30159 \begin_inset space ~
30163 \begin_inset CommandInset ref
30165 reference "subsec:Footnotes-in-Longtables"
30172 \begin_layout Standard
30173 Footnotes in minipage boxes are printed, but inside the box and with a different
30174 numbering because a minipage box is like a page inside a page.
30175 (For more about minipages, see section
30176 \begin_inset space ~
30180 \begin_inset CommandInset ref
30182 reference "sec:Minipages"
30186 .) To get a footnote in the minipage that is output at the bottom of the
30187 page like normal footnotes, also use the method of
30202 \begin_layout Standard
30203 \begin_inset Box Frameless
30213 height_special "totalheight"
30218 backgroundcolor "none"
30221 \begin_layout Plain Layout
30222 This an example text in a minipage.
30226 \begin_layout Plain Layout
30227 Footnote in the minipage.
30235 \begin_layout Plain Layout
30236 This an example text in a minipage.
30240 \begin_layout Plain Layout
30257 \begin_layout Standard
30261 \begin_layout Plain Layout
30270 Footnote outside the minipage.
30274 \begin_layout Plain Layout
30284 \begin_layout Standard
30285 \begin_inset VSpace defskip
30291 \begin_layout Standard
30292 To refer to the same footnote several times without printing the footnote
30293 text every time, use the command
30297 footnotemark[number]
30299 in \SpecialChar TeX
30301 \begin_inset Newline newline
30304 As you do not know the number of the repeating footnote while you are writing
30305 the text, you have to store its number.
30306 For the following footnote mark example, these commands were inserted in
30308 code after Footnote
30309 \begin_inset space ~
30313 \begin_inset CommandInset ref
30315 reference "foot:This-is-an"
30319 to store the footnote number:
30322 \begin_layout Standard
30327 newcounter{MyRepeatFoot}
30328 \begin_inset Newline newline
30333 setcounter{MyRepeatFoot}{
30338 \begin_layout Standard
30339 The footnote mark was then created with this command:
30342 \begin_layout Standard
30352 \begin_layout Standard
30353 Here is a repeated footnote:
30361 \begin_layout Plain Layout
30375 \begin_layout Standard
30376 If you want to repeat the previous footnote, you can omit the storage of
30377 the footnote number and just use this command instead:
30380 \begin_layout Standard
30390 \begin_layout Standard
30391 Here is another repeated footnote:
30399 \begin_layout Plain Layout
30413 \begin_layout Subsection
30415 \begin_inset CommandInset label
30417 name "subsec:Footnote-Numbering"
30422 \begin_inset Index idx
30425 \begin_layout Plain Layout
30426 Footnotes ! Numbering
30434 \begin_layout Standard
30435 To reset the footnote number back to 1 after each section
30437 , add this command to your document preamble:
30440 \begin_layout Standard
30445 @addtoreset{footnote}{section}
30448 \begin_layout Standard
30449 \begin_inset VSpace bigskip
30452 The following preamble command changes the footnote numbering style to small
30456 \begin_layout Standard
30468 \begin_layout Standard
30472 \begin_layout Plain Layout
30485 This is a footnote with roman numbering:
30489 \begin_layout Plain Layout
30490 This is an example footnote with roman numbering.
30498 \begin_layout Standard
30499 To change the numbering style to capital roman numerals replace in the command
30514 \begin_inset Quotes eld
30518 \begin_inset Quotes erd
30521 footnotes with capital or small Latin letters use
30535 \begin_inset Quotes eld
30539 \begin_inset Quotes erd
30542 footnotes with symbols use
30551 \begin_layout Standard
30552 \begin_inset Note Greyedout
30555 \begin_layout Plain Layout
30560 You can only number 26 footnotes with Latin letters, because this numbering
30561 is limited to single letters.
30567 \begin_inset Newline newline
30571 \begin_inset Note Greyedout
30574 \begin_layout Plain Layout
30579 You can only number 9 footnotes with symbols.
30587 \begin_layout Standard
30588 To return to the default numbering style after you have changed to another
30601 in the command above.
30605 \begin_layout Plain Layout
30621 \begin_layout Standard
30622 \begin_inset VSpace bigskip
30628 \begin_layout Standard
30629 If you want to have footnotes numbered in the scheme
30630 \begin_inset Quotes eld
30634 \begin_inset Quotes erd
30637 , add the following command to your document preamble:
30640 \begin_layout Standard
30645 numberwithin{footnote}{chapter}
30648 \begin_layout Standard
30649 To be able to use the command
30658 \begin_inset space ~
30663 in the document settings the option
30666 \begin_inset space ~
30670 \begin_inset space ~
30674 \begin_inset space ~
30682 \begin_layout Standard
30686 \begin_layout Plain Layout
30690 numberwithin{footnote}{chapter}
30695 This is another example footnote:
30701 \begin_layout Plain Layout
30702 This is a footnote numbered in the scheme
30703 \begin_inset Quotes eld
30707 \begin_inset Quotes erd
30721 \begin_layout Plain Layout
30737 \begin_layout Standard
30738 \begin_inset Note Greyedout
30741 \begin_layout Plain Layout
30752 always prints out the footnote number as arabic number; previous redefinitions
30753 to get non-arabic numbers are overwritten.
30761 \begin_layout Standard
30762 So to get for example the scheme
30763 \begin_inset Quotes eld
30769 \begin_inset Quotes erd
30772 , use this command instead of
30781 \begin_layout Standard
30795 \begin_layout Subsection
30797 \begin_inset Index idx
30800 \begin_layout Plain Layout
30801 Footnotes ! Placement
30809 \begin_layout Standard
30810 If you have several footnotes in one page, they appear without vertical
30811 space between them at the bottom of the page.
30812 To make them more readable you can e.
30813 \begin_inset space \thinspace{}
30817 \begin_inset space \space{}
30821 \begin_inset space \thinspace{}
30824 mm space with the following preamble command:
30827 \begin_layout Standard
30837 \begin_inset Newline newline
30851 \begin_layout Standard
30852 \begin_inset VSpace bigskip
30855 In a two-column document the footnotes appear at the bottom of every column,
30857 \begin_inset space ~
30861 \begin_inset CommandInset ref
30863 reference "fig:Standard-footnote-placement"
30868 If the footnotes should only appear at the bottom of the right column,
30870 \begin_inset space ~
30874 \begin_inset CommandInset ref
30876 reference "fig:Footnote-placement-in"
30880 , use the \SpecialChar LaTeX
30886 \begin_inset Index idx
30889 \begin_layout Plain Layout
30891 -packages ! ftnright
30896 with this command in the document preamble:
30899 \begin_layout Standard
30904 usepackage{ftnright}
30907 \begin_layout Standard
30908 \begin_inset Float figure
30914 \begin_layout Plain Layout
30918 \begin_layout Plain Layout
30928 \begin_inset Graphics
30929 filename clipart/without_fntright.pdf
30931 scaleBeforeRotation
30939 \begin_layout Plain Layout
30949 \begin_layout Plain Layout
30950 \begin_inset Caption Standard
30952 \begin_layout Plain Layout
30953 \begin_inset CommandInset label
30955 name "fig:Standard-footnote-placement"
30959 Standard footnote placement in two-column documents.
30972 \begin_layout Standard
30973 \begin_inset Float figure
30979 \begin_layout Plain Layout
30983 \begin_layout Plain Layout
30993 \begin_inset Graphics
30994 filename clipart/with_fntright.pdf
30996 scaleBeforeRotation
31004 \begin_layout Plain Layout
31014 \begin_layout Plain Layout
31015 \begin_inset Caption Standard
31017 \begin_layout Plain Layout
31018 \begin_inset CommandInset label
31020 name "fig:Footnote-placement-in"
31024 Footnote placement in two-column documents when the \SpecialChar LaTeX
31042 \begin_layout Standard
31043 \begin_inset VSpace bigskip
31046 In some scientific literature it is usual to collect the footnotes and print
31047 them in a separate paragraph at the end of a section, as in Figure
31048 \begin_inset space ~
31052 \begin_inset CommandInset ref
31054 reference "fig:Endnotes"
31059 They are then called
31060 \begin_inset Quotes eld
31064 \begin_inset Quotes erd
31068 \begin_inset Index idx
31071 \begin_layout Plain Layout
31077 To use endnotes instead of footnotes in your document, load in the menu
31080 Document\SpecialChar menuseparator
31081 Settings\SpecialChar menuseparator
31087 \begin_inset space ~
31091 \begin_inset space ~
31097 To insert the collected footnotes, insert the command
31100 \begin_layout Standard
31108 \begin_layout Standard
31109 in \SpecialChar TeX
31110 Code at the end of a section or chapter.
31113 \begin_layout Standard
31114 \begin_inset Float figure
31119 \begin_layout Plain Layout
31124 \begin_layout Plain Layout
31134 \begin_inset Graphics
31135 filename clipart/endnotes.pdf
31136 scaleBeforeRotation
31144 \begin_layout Plain Layout
31154 \begin_layout Plain Layout
31155 \begin_inset Caption Standard
31157 \begin_layout Plain Layout
31158 \begin_inset CommandInset label
31160 name "fig:Endnotes"
31164 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31178 \begin_layout Standard
31179 \begin_inset VSpace medskip
31182 The paragraph heading for the endnotes isn't automatically translated into
31183 the document language, this must be done manually.
31184 The following preamble command translates the default English
31185 \begin_inset Quotes eld
31189 \begin_inset Quotes erd
31193 \begin_inset Quotes eld
31197 \begin_inset Quotes erd
31203 \begin_layout Standard
31210 notesname}{Anmerkungen}
31213 \begin_layout Standard
31214 \begin_inset VSpace medskip
31217 The numbering of endnotes can be changed like the footnote numbering as
31218 described in section
31219 \begin_inset space ~
31223 \begin_inset CommandInset ref
31225 reference "subsec:Footnote-Numbering"
31229 ; just replace the command
31242 To reset the endnote number use the command
31248 as described in section
31249 \begin_inset space ~
31253 \begin_inset CommandInset ref
31255 reference "subsec:Footnote-Numbering"
31259 and replace the command parameter
31270 \begin_layout Standard
31271 For endnotes there is the command
31275 endnotemark[number]
31277 similar to the command
31283 , that is described in section
31284 \begin_inset space ~
31288 \begin_inset CommandInset ref
31290 reference "sec:Footnotes"
31297 \begin_layout Standard
31298 \begin_inset VSpace bigskip
31301 Footnotes can also be placed in the page margin and the footnote text alignment
31302 can be changed, see the \SpecialChar LaTeX
31308 \begin_inset Index idx
31311 \begin_layout Plain Layout
31313 -packages ! footmisc
31319 \begin_inset CommandInset citation
31325 for more information about this.
31328 \begin_layout Standard
31329 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31331 \begin_inset CommandInset citation
31333 key "latexcompanion,latexguide,latexbook"
31343 \begin_inset Index idx
31346 \begin_layout Plain Layout
31348 -packages ! KOMA-Script
31353 document class, you can adjust all footnote settings using class-specific
31355 \begin_inset CommandInset citation
31364 \begin_layout Section
31366 \begin_inset Index idx
31369 \begin_layout Plain Layout
31370 Notes ! Margin Notes
31378 \begin_layout Standard
31379 Margin notes look and behave in \SpecialChar LyX
31381 They are inserted via the menu
31383 Insert\SpecialChar menuseparator
31385 \begin_inset space ~
31390 or the toolbar button
31393 arg "marginalnote-insert"
31407 \begin_inset Quotes eld
31411 \begin_inset Quotes erd
31414 appears where you can enter the text of the margin note.
31417 \begin_layout Standard
31418 At the side is an example margin note.
31423 \begin_inset Marginal
31426 \begin_layout Plain Layout
31427 This is a margin note.
31435 \begin_layout Standard
31436 Margin notes appear at the right side in single-sided documents.
31437 In double-sided documents they appear in the outer margin – left on even
31438 pages, right on odd pages.
31439 The text of margin notes is aligned opposite to the outer margin – right-aligne
31440 d when the note appears in the left margin.
31441 The first line of the margin note is placed at the position of the text
31442 line where it is inserted in the document.
31445 \begin_layout Standard
31446 \begin_inset VSpace bigskip
31449 To place the margin note in the inner margin, add the command
31452 \begin_layout Standard
31460 \begin_layout Standard
31461 in \SpecialChar TeX
31462 Code before a margin note.
31463 The new placement is valid for all subsequent margin notes.
31468 \begin_layout Plain Layout
31478 \begin_inset Marginal
31481 \begin_layout Plain Layout
31482 This is a margin note in the inner margin.
31490 \begin_inset Newline newline
31496 \begin_inset Note Greyedout
31499 \begin_layout Plain Layout
31504 There is often not enough space in the inner margin so that the notes are
31505 not correctly displayed in the output.
31513 \begin_layout Standard
31514 To return to the default placement insert the command
31517 \begin_layout Standard
31525 \begin_layout Standard
31526 in \SpecialChar TeX
31531 \begin_layout Plain Layout
31541 \begin_inset Note Greyedout
31544 \begin_layout Plain Layout
31549 The command is ignored when it is within a paragraph where also the command
31564 \begin_layout Standard
31565 \begin_inset VSpace bigskip
31572 \begin_inset Marginal
31575 \begin_layout Plain Layout
31576 AVeryLongMarginParWord that isn't hyphenated.
31584 Similar to the case described in section
31585 \begin_inset space ~
31589 \begin_inset CommandInset ref
31591 reference "subsec:Multiple-Lines-in"
31595 , long words cannot be hyphenated when they are the first word in a margin
31597 To avoid this, insert 0
31598 \begin_inset space \thinspace{}
31601 pt horizontal space before the word
31606 \begin_inset Marginal
31609 \begin_layout Plain Layout
31610 \begin_inset space \hspace*{}
31614 AVeryLongMarginParWord that is hyphenated.
31622 \begin_layout Standard
31623 \begin_inset VSpace bigskip
31629 \begin_layout Standard
31630 \begin_inset Note Greyedout
31633 \begin_layout Plain Layout
31638 Margin notes can normally not be used inside tables, floats, and footnotes.
31646 \begin_layout Standard
31647 \begin_inset VSpace bigskip
31653 \begin_layout Standard
31657 \begin_layout Plain Layout
31667 \begin_inset Note Note
31670 \begin_layout Plain Layout
31671 The following section will only be displayed when the \SpecialChar LaTeX
31684 \begin_layout Standard
31685 This restriction can be evaded by using the \SpecialChar LaTeX
31691 \begin_inset Index idx
31694 \begin_layout Plain Layout
31696 -packages ! marginnote
31702 By adding these two lines to your document preamble, the command used by
31704 for margin notes is redefined to use the command provided by the
31711 \begin_layout Standard
31716 usepackage{marginnote}
31717 \begin_inset Newline newline
31729 \begin_layout Standard
31730 This is also used in this document because
31734 has another useful feature: You can set a vertical offset for the note.
31735 This is often needed when too many margin notes are too close together
31736 or for a better page layout.
31737 The offset is set in \SpecialChar LyX
31738 as \SpecialChar TeX
31739 Code directly after the margin note in the scheme
31742 \begin_layout Standard
31748 \begin_layout Standard
31749 where the offset is a length with one of the units listed in Table
31750 \begin_inset space ~
31754 \begin_inset CommandInset ref
31756 reference "tab:Units"
31761 A negative value shifts the note up, a positive value shifts it down.
31765 For example the margin note beside this text line is shifted up 1.5
31766 \begin_inset space \thinspace{}
31769 cm with the \SpecialChar TeX
31771 \begin_inset Quotes eld
31781 \begin_inset Quotes erd
31785 \begin_inset Marginal
31788 \begin_layout Plain Layout
31789 This margin note is shifted up 1.5
31790 \begin_inset space \thinspace{}
31793 cm from its original position.
31805 \begin_layout Plain Layout
31815 \begin_layout Standard
31816 \begin_inset VSpace medskip
31823 you can also change the alignment of the text in the margin note.
31824 For example the commands
31827 \begin_layout Standard
31834 raggedleftmarginnote}{
31837 \begin_inset Newline newline
31844 raggedrightmarginnote}{
31849 \begin_layout Standard
31850 set the alignment to centered.
31855 raggedleftmarginnote
31857 denotes margin notes that appear at the left side.
31864 \begin_layout Plain Layout
31870 raggedleftmarginnote}{
31875 \begin_layout Plain Layout
31881 raggedrightmarginnote}{
31889 \begin_inset Marginal
31892 \begin_layout Plain Layout
31893 The text of this margin note is centered.
31904 \begin_layout Standard
31911 raggedleftmarginnote}{
31914 \begin_inset Newline newline
31921 raggedrightmarginnote}{
31930 \begin_layout Plain Layout
31936 raggedleftmarginnote}{
31941 \begin_layout Plain Layout
31947 raggedrightmarginnote}{
31957 \begin_layout Standard
31958 \begin_inset VSpace medskip
31961 For the other features of
31965 refer to its documentation
31966 \begin_inset CommandInset citation
31975 \begin_layout Standard
31976 \begin_inset VSpace bigskip
31979 You can adjust the layout of margin notes by changing its definition.
31980 To create for example a header for all margin notes with the underlined,
31981 sans-serif, and bold header text
31982 \begin_inset Quotes eld
31994 \begin_inset Quotes erd
31997 , add this to your document preamble:
32000 \begin_layout Standard
32010 \begin_inset Newline newline
32020 \begin_inset Newline newline
32024 \begin_inset Phantom HPhantom
32027 \begin_layout Plain Layout
32030 \begin_inset space ~
32046 underbar{Attention!}}}%
32047 \begin_inset Newline newline
32051 \begin_inset Phantom HPhantom
32054 \begin_layout Plain Layout
32057 \begin_inset space ~
32074 \begin_layout Standard
32081 \begin_layout Plain Layout
32092 \begin_layout Plain Layout
32103 \begin_layout Plain Layout
32111 underbar{Attention!}}}%
32114 \begin_layout Plain Layout
32128 \begin_inset Marginal
32131 \begin_layout Plain Layout
32132 This is a margin note with a defined heading.
32144 \begin_layout Plain Layout
32158 \begin_layout Plain Layout
32175 \begin_inset Note Note
32178 \begin_layout Plain Layout
32179 The margin note format is changed only for this example.
32187 \begin_layout Standard
32191 \begin_layout Plain Layout
32201 \begin_inset Note Note
32204 \begin_layout Plain Layout
32205 The following will be displayed when the \SpecialChar LaTeX
32218 \begin_layout Standard
32219 You need to install the \SpecialChar LaTeX
32224 to see the following part of this section in the output.
32227 \begin_layout Standard
32231 \begin_layout Plain Layout
32243 \begin_layout Chapter
32247 \begin_layout Section
32249 \begin_inset Index idx
32252 \begin_layout Plain Layout
32253 Boxes ! Introduction
32261 \begin_layout Standard
32262 Boxes are used to format a block of text.
32263 Boxes can be used to write documents with multiple languages, see section
32264 \begin_inset space ~
32268 \begin_inset CommandInset ref
32270 reference "sec:Minipages"
32274 , to frame texts, see section
32275 \begin_inset space ~
32279 \begin_inset CommandInset ref
32281 reference "sec:Decoration"
32285 , to prevent words from being hyphenated, see section
32286 \begin_inset space ~
32290 \begin_inset CommandInset ref
32292 reference "sec:Prevent-Hyphenation"
32296 , to align text, see section
32297 \begin_inset space ~
32301 \begin_inset CommandInset ref
32303 reference "subsec:Vertical-Alignment"
32307 , or to set the background color of texts, see section
32308 \begin_inset space ~
32312 \begin_inset CommandInset ref
32314 reference "sec:Colored-Boxes"
32321 \begin_layout Standard
32322 Boxes can be inserted with the menu
32324 Insert\SpecialChar menuseparator
32327 or the toolbar button
32330 arg "box-insert Frameless"
32334 A grey box with the label
32339 \begin_inset Graphics
32340 filename clipart/BoxInsetDefaultQt4.png
32342 scaleBeforeRotation
32347 The box type can be specified by right-clicking on the box and selecting
32353 The box dialog offers the
32356 \begin_inset space ~
32378 is the default for new boxes and is explained in section
32379 \begin_inset space ~
32383 \begin_inset CommandInset ref
32385 reference "sec:Minipages"
32393 is described in section
32394 \begin_inset space ~
32398 \begin_inset CommandInset ref
32400 reference "sec:Parboxes"
32409 \begin_inset CommandInset ref
32411 reference "sec:Prevent-Hyphenation"
32418 \begin_layout Standard
32419 Boxes are not numbered and can therefore not be referenced like floats or
32423 \begin_layout Standard
32424 \begin_inset Note Greyedout
32427 \begin_layout Plain Layout
32432 Boxes must not be the item in an
32448 \begin_layout Standard
32449 \begin_inset Note Greyedout
32452 \begin_layout Plain Layout
32457 For an unknown reason you can only set the
32460 \begin_inset space ~
32469 when you use a framed box.
32473 \begin_inset space ~
32478 type and without frames are explained in section
32479 \begin_inset space ~
32483 \begin_inset CommandInset ref
32485 reference "sec:Prevent-Hyphenation"
32497 \begin_layout Section
32499 \begin_inset CommandInset label
32501 name "sec:Box-Dialog"
32506 \begin_inset Index idx
32509 \begin_layout Plain Layout
32518 \begin_layout Subsection
32520 \begin_inset Index idx
32523 \begin_layout Plain Layout
32532 \begin_layout Standard
32533 In the box dialog you can adjust the box geometry in the fields
32542 The available units for the geometry are explained in Table
32543 \begin_inset space ~
32547 \begin_inset CommandInset ref
32549 reference "tab:Units"
32558 offers the following additional sizes:
32561 \begin_layout Description
32562 Depth This is the plain text
32563 \begin_inset Quotes eld
32567 \begin_inset Quotes erd
32571 It ignores the total depth when there are multiple text lines in the box:
32572 \begin_inset Newline newline
32576 \begin_inset Newline newline
32580 \begin_inset Newline newline
32584 \begin_inset Box Boxed
32594 height_special "depth"
32599 backgroundcolor "none"
32602 \begin_layout Plain Layout
32604 Box height set to 1
32605 \begin_inset space \thinspace{}
32614 \begin_inset Newline newline
32618 \begin_inset Newline newline
32624 \begin_layout Description
32625 Height This is the height of the text that is inside the box.
32627 \begin_inset space \thinspace{}
32631 \begin_inset space \space{}
32634 2 for this size will set the box height to 2
32635 \begin_inset space ~
32638 times the text height:
32639 \begin_inset Box Boxed
32649 height_special "height"
32654 backgroundcolor "none"
32657 \begin_layout Plain Layout
32659 Box height set to 2
32660 \begin_inset space \thinspace{}
32671 \begin_layout Description
32673 \begin_inset space ~
32676 Height This is the Height
32677 \begin_inset space \thinspace{}
32681 \begin_inset space \thinspace{}
32685 \begin_inset Box Boxed
32695 height_special "totalheight"
32700 backgroundcolor "none"
32703 \begin_layout Plain Layout
32705 Box height set to 1
32706 \begin_inset space \thinspace{}
32710 \begin_inset space ~
32721 \begin_layout Description
32722 Width This sets the width of the box as height:
32723 \begin_inset Box Boxed
32733 height_special "width"
32738 backgroundcolor "none"
32741 \begin_layout Plain Layout
32743 Box height set to 1
32744 \begin_inset space \thinspace{}
32755 \begin_layout Subsection
32757 \begin_inset Index idx
32760 \begin_layout Plain Layout
32769 \begin_layout Standard
32770 When you have chosen an
32773 \begin_inset space ~
32778 , the vertical box alignment can be:
32781 \begin_layout Description
32782 Top This is an example text line.
32784 \begin_inset Box Boxed
32794 height_special "totalheight"
32799 backgroundcolor "none"
32802 \begin_layout Plain Layout
32804 This box is top-aligned.
32809 This is an example text line.
32812 \begin_layout Description
32813 Middle This is an example text line.
32815 \begin_inset Box Boxed
32825 height_special "totalheight"
32830 backgroundcolor "none"
32833 \begin_layout Plain Layout
32835 This box is middle-aligned.
32840 This is an example text line.
32843 \begin_layout Description
32844 Bottom This is an example text line.
32846 \begin_inset Box Boxed
32856 height_special "totalheight"
32861 backgroundcolor "none"
32864 \begin_layout Plain Layout
32866 This box is bottom-aligned.
32871 This is an example text line.
32874 \begin_layout Standard
32875 \begin_inset Note Greyedout
32878 \begin_layout Plain Layout
32883 The vertical box alignment can be lost in the output when you have two
32884 boxes in a line and one has e.
32885 \begin_inset space \thinspace{}
32889 \begin_inset space \space{}
32892 a shadow and the other one not.
32900 \begin_layout Standard
32901 The horizontal box alignment can be set via \SpecialChar LyX
32902 's paragraph dialog when you
32903 set the box into its own paragraph.
32906 \begin_layout Standard
32907 \begin_inset VSpace bigskip
32910 When you have chosen an
32913 \begin_inset space ~
32918 , the box content can be aligned vertically to:
32921 \begin_layout Description
32922 top This is an example text line.
32924 \begin_inset Box Boxed
32934 height_special "totalheight"
32939 backgroundcolor "none"
32942 \begin_layout Plain Layout
32944 This box text is top-aligned.
32949 This is an example text line.
32952 \begin_layout Description
32953 middle This is an example text line.
32955 \begin_inset Box Boxed
32965 height_special "totalheight"
32970 backgroundcolor "none"
32973 \begin_layout Plain Layout
32975 This box text is middle-aligned.
32980 This is an example text line.
32983 \begin_layout Description
32984 bottom This is an example text line.
32986 \begin_inset Box Boxed
32996 height_special "totalheight"
33001 backgroundcolor "none"
33004 \begin_layout Plain Layout
33006 This box text is bottom-aligned.
33011 This is an example text line.
33014 \begin_layout Description
33015 stretch This is an example text line.
33017 \begin_inset Box Boxed
33027 height_special "totalheight"
33032 backgroundcolor "none"
33035 \begin_layout Plain Layout
33040 \begin_layout Plain Layout
33045 \begin_layout Plain Layout
33052 This is an example text line.
33055 \begin_layout Standard
33056 To stretch the box content, it must consist of more than one paragraph.
33057 In the example above every text line is in an own paragraph.
33060 \begin_layout Standard
33061 \begin_inset VSpace bigskip
33064 To align the box content horizontally you can use \SpecialChar LyX
33065 's paragraph dialog when
33069 \begin_inset space ~
33077 \begin_layout Standard
33079 \begin_inset Box Boxed
33089 height_special "totalheight"
33094 backgroundcolor "none"
33097 \begin_layout Plain Layout
33102 \begin_layout Plain Layout
33107 \begin_layout Plain Layout
33117 \begin_layout Standard
33118 If you have not set an
33121 \begin_inset space ~
33126 , you can align the box content horizontally in the box dialog.
33127 \begin_inset Separator parbreak
33133 \begin_layout Standard
33135 \begin_inset Box Boxed
33145 height_special "totalheight"
33150 backgroundcolor "none"
33153 \begin_layout Plain Layout
33154 This box text is horizontally stretched.
33162 \begin_layout Subsection
33164 \begin_inset CommandInset label
33166 name "sec:Decoration"
33171 \begin_inset Index idx
33174 \begin_layout Plain Layout
33183 \begin_layout Standard
33184 The type of the box can be specified in the box dialog in the drop-down
33190 The following types are possible:
33193 \begin_layout Description
33195 \begin_inset space ~
33198 frame Nothing is drawn.
33201 \begin_layout Description
33203 \begin_inset space ~
33207 \begin_inset space ~
33210 frame This draws a rectangular frame around the box.
33211 The frame line thickness can be specified.
33213 \begin_inset Box Boxed
33223 height_special "totalheight"
33228 backgroundcolor "none"
33231 \begin_layout Plain Layout
33241 \begin_layout Description
33243 \begin_inset space ~
33247 \begin_inset space ~
33250 thin This draws an oval frame around the box.
33251 The frame line thickness has the size 0.4
33252 \begin_inset space \thinspace{}
33257 \begin_inset Box ovalbox
33267 height_special "totalheight"
33272 backgroundcolor "none"
33275 \begin_layout Plain Layout
33285 \begin_layout Description
33287 \begin_inset space ~
33291 \begin_inset space ~
33294 thick This draws an oval frame around the box.
33295 The frame line thickness has the size 0.8
33296 \begin_inset space \thinspace{}
33301 \begin_inset Box Ovalbox
33311 height_special "totalheight"
33316 backgroundcolor "none"
33319 \begin_layout Plain Layout
33329 \begin_layout Description
33331 \begin_inset space ~
33334 shadow This draws a rectangular frame with a shadow around the box.
33335 The frame line thickness and the shadow can be specified.
33337 \begin_inset Box Shadowbox
33347 height_special "totalheight"
33352 backgroundcolor "none"
33355 \begin_layout Plain Layout
33365 \begin_layout Description
33367 \begin_inset space ~
33370 background This draws a box with a red background.
33371 Unlike colored boxes
33375 \begin_layout Plain Layout
33377 \begin_inset space \thinspace{}
33381 \begin_inset CommandInset ref
33383 reference "sec:Colored-Boxes"
33392 , it always uses the whole column width and the box is set as its own paragraph.
33394 \begin_inset Box Shaded
33404 height_special "totalheight"
33409 backgroundcolor "none"
33412 \begin_layout Plain Layout
33413 Shaded background box
33421 \begin_layout Description
33423 \begin_inset space ~
33427 \begin_inset space ~
33430 frame This draws a double-line rectangular frame around the box.
33431 The line thickness of the inner frame is 0.75
33432 \begin_inset space \thinspace{}
33436 \begin_inset space ~
33439 thickness, the thickness of the outer frame is 1.5
33440 \begin_inset space \thinspace{}
33444 \begin_inset space ~
33448 The distance between the lines is 1.5
33449 \begin_inset space \thinspace{}
33453 \begin_inset space ~
33457 \begin_inset space \thinspace{}
33461 \begin_inset space \thinspace{}
33465 \begin_inset space \thinspace{}
33470 \begin_inset Box Doublebox
33480 height_special "totalheight"
33485 backgroundcolor "none"
33488 \begin_layout Plain Layout
33490 Double rectangular box
33498 \begin_layout Standard
33499 \begin_inset VSpace bigskip
33503 's box label will reflect the different frame types.
33504 To be able to use all types, the \SpecialChar LaTeX
33510 \begin_inset Index idx
33513 \begin_layout Plain Layout
33515 -packages ! fancybox
33523 \begin_layout Standard
33524 \begin_inset VSpace bigskip
33527 When you use the decoration
33529 simple rectangular frame
33531 and no inner box, you can allow page breaks within a box.
33532 Note that then, unlike other framed boxes, the frame always uses the whole
33533 column width and the box is set as its own paragraph:
33534 \begin_inset Box Framed
33544 height_special "totalheight"
33549 backgroundcolor "none"
33552 \begin_layout Plain Layout
33553 Allow page break box
33561 \begin_layout Section
33563 \begin_inset Index idx
33566 \begin_layout Plain Layout
33567 Boxes ! Customization
33575 \begin_layout Standard
33576 The diameter of the round corners of the oval boxes can be set with the
33587 \begin_layout Standard
33595 \begin_layout Standard
33596 sets the diameter to 1
33597 \begin_inset space \thinspace{}
33604 \begin_layout Standard
33612 \begin_layout Standard
33613 sets the diameter to
33616 \begin_inset space \thinspace{}
33620 \begin_inset space \thinspace{}
33623 minimum(width and height of box)
33635 \begin_layout Standard
33639 \begin_layout Plain Layout
33649 \begin_inset Box Ovalbox
33659 height_special "totalheight"
33664 backgroundcolor "none"
33667 \begin_layout Plain Layout
33676 \begin_inset space \thinspace{}
33680 \begin_inset space \thinspace{}
33684 \begin_inset space \thinspace{}
33696 \begin_layout Plain Layout
33708 \begin_layout Standard
33709 \begin_inset VSpace bigskip
33715 \begin_layout Standard
33716 The default background color red of
33720 boxes can either be changed locally with the command
33724 definecolor{shadecolor}
33726 or globally with the menu
33728 Tools\SpecialChar menuseparator
33729 Preferences\SpecialChar menuseparator
33730 Colors\SpecialChar menuseparator
33732 \begin_inset space ~
33744 command is explained in section
33745 \begin_inset space ~
33749 \begin_inset CommandInset ref
33751 reference "sec:Colored-Tables"
33759 \begin_layout Plain Layout
33766 requires the \SpecialChar LaTeX
33771 in the preamble, see section
33772 \begin_inset space ~
33776 \begin_inset CommandInset ref
33778 reference "sec:Colored-Boxes"
33787 For example the appearance of the following shaded background box is set
33788 with the \SpecialChar TeX
33792 \begin_layout Standard
33797 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33800 \begin_layout Standard
33804 \begin_layout Plain Layout
33808 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33814 \begin_inset Box Shaded
33824 height_special "totalheight"
33829 backgroundcolor "none"
33832 \begin_layout Plain Layout
33835 This is yellow text in a
33845 box with dark green background.
33854 \begin_layout Plain Layout
33858 definecolor{shadecolor}{rgb}{1,0,0}
33866 \begin_layout Standard
33867 \begin_inset VSpace bigskip
33870 Manually changed sizes and colors are valid for all boxes following the
33871 commands that change them.
33874 \begin_layout Section
33876 \begin_inset CommandInset label
33878 name "sec:Minipages"
33883 \begin_inset Index idx
33886 \begin_layout Plain Layout
33895 \begin_layout Standard
33896 Minipages are treated by \SpecialChar LaTeX
33897 as pages within pages and can therefore for example
33898 have their own footnotes.
33901 \begin_layout Standard
33902 Minipages are useful when you write documents with different languages.
33905 \begin_layout Standard
33906 Below are two example minipages side by side.
33907 Their width is set to 45
33908 \begin_inset space \thinspace{}
33911 col% and they are separated by a horizontal fill, that was inserted via
33914 Insert\SpecialChar menuseparator
33916 \begin_inset space ~
33919 Formatting\SpecialChar menuseparator
33921 \begin_inset space ~
33927 \begin_inset Newpage newpage
33933 \begin_layout Standard
33934 \begin_inset Box Frameless
33944 height_special "totalheight"
33949 backgroundcolor "none"
33952 \begin_layout Plain Layout
33955 Dies ist ein deutscher Text.
33956 Dies ist ein deutscher Text.
33957 Dies ist ein deutscher Text.
33958 Dies ist ein deutscher Text.
33959 Dies ist ein deutscher Text.
33960 Dies ist ein deutscher Text.
33961 Dies ist ein deutscher Text.
33962 Dies ist ein deutscher Text.
33963 Dies ist ein deutscher Text.
33964 Dies ist ein deutscher Text.
33965 Dies ist ein deutscher Text.
33966 Dies ist ein deutscher Text.
33967 Dies ist ein deutscher Text
33971 \begin_layout Plain Layout
33974 Dies ist eine deutsche Fußnote.
33980 Dies ist ein deutscher Text.
33981 Dies ist ein deutscher Text.
33987 \begin_inset space \hfill{}
33991 \begin_inset Box Frameless
34001 height_special "totalheight"
34006 backgroundcolor "none"
34009 \begin_layout Plain Layout
34010 This is an English Text.
34011 This is an English Text.
34012 This is an English Text.
34013 This is an English Text.
34014 This is an English Text.
34015 This is an English Text.
34016 This is an English Text.
34017 This is an English Text.
34018 This is an English Text.
34019 This is an English Text.
34020 This is an English Text.
34021 This is an English Text.
34022 This is an English Text.
34023 This is an English Text.
34024 This is an English Text.
34025 This is an English Text.
34029 \begin_layout Plain Layout
34030 This is an English footnote.
34035 This is an English Text.
34043 \begin_layout Standard
34044 \begin_inset VSpace bigskip
34047 The document-wide paragraph settings are ignored within minipages.
34048 That means that there will be no space between paragraphs in minipages
34049 although you set it to e.
34050 \begin_inset space \thinspace{}
34054 \begin_inset space \space{}
34061 in the document settings.
34064 \begin_layout Standard
34065 Minipages can also be used to set a background color for text parts, see
34067 \begin_inset space ~
34071 \begin_inset CommandInset ref
34073 reference "sec:Colored-Boxes"
34080 \begin_layout Standard
34081 \begin_inset Note Greyedout
34084 \begin_layout Plain Layout
34089 You cannot have floats or margin notes inside minipages but minipages can
34090 be used inside tables, floats, and other boxes.
34098 \begin_layout Section
34100 \begin_inset CommandInset label
34102 name "sec:Parboxes"
34107 \begin_inset Index idx
34110 \begin_layout Plain Layout
34119 \begin_layout Standard
34120 Parboxes are very similar to minipages with the difference that they cannot
34122 \begin_inset Separator parbreak
34128 \begin_layout Standard
34130 \begin_inset Box Frameless
34140 height_special "totalheight"
34145 backgroundcolor "none"
34148 \begin_layout Plain Layout
34149 This a text within a parbox.
34150 This a text within a parbox.
34153 \begin_layout Plain Layout
34154 This footnote won't appear:
34158 \begin_layout Plain Layout
34159 This footnote is inside a parbox and will therefore not appear.
34172 \begin_layout Section
34173 Boxes for Words and Characters
34174 \begin_inset Index idx
34177 \begin_layout Plain Layout
34178 Boxes ! for Characters
34186 \begin_layout Subsection
34187 Prevent Hyphenation
34188 \begin_inset CommandInset label
34190 name "sec:Prevent-Hyphenation"
34195 \begin_inset Index idx
34198 \begin_layout Plain Layout
34199 Boxes ! to Prevent Hyphenation
34207 \begin_layout Standard
34208 You can use the box type
34212 to prevent words or text from being hyphenated.
34213 \begin_inset Newline newline
34216 Here is an example text:
34219 \begin_layout Standard
34220 This line is an example to show how you can prevent the hyphenation of
34221 \begin_inset Quotes eld
34225 \begin_inset Quotes erd
34231 \begin_layout Standard
34232 To prevent the hyphenation of the word
34233 \begin_inset Quotes eld
34237 \begin_inset Quotes erd
34240 , put the word into a box, set the
34243 \begin_inset space ~
34252 and use no explicit width.
34255 \begin_layout Standard
34256 This is the result:
34259 \begin_layout Standard
34260 This line is an example to show how you can prevent the hyphenation of
34261 \begin_inset Box Frameless
34271 height_special "totalheight"
34276 backgroundcolor "none"
34279 \begin_layout Plain Layout
34280 \begin_inset Quotes eld
34284 \begin_inset Quotes erd
34295 \begin_layout Standard
34296 You can alternatively set the command
34297 \begin_inset Quotes eld
34307 \begin_inset Quotes grd
34310 as \SpecialChar TeX
34311 Code directly before the word:
34314 \begin_layout Standard
34315 This line is an example to show how you can prevent the hyphenation of
34316 \begin_inset Quotes eld
34323 \begin_layout Plain Layout
34333 \begin_inset Quotes erd
34339 \begin_layout Standard
34340 Of course the word now protrudes over the side margin.
34341 To avoid this, add via the menu
34343 Insert\SpecialChar menuseparator
34344 Formatting\SpecialChar menuseparator
34346 \begin_inset space ~
34350 \begin_inset space ~
34358 arg "newline-insert newline"
34361 ) a line break before the word:
34364 \begin_layout Standard
34365 This line is an example to show how you can prevent the hyphenation of
34366 \begin_inset Newline newline
34370 \begin_inset Box Frameless
34380 height_special "totalheight"
34385 backgroundcolor "none"
34388 \begin_layout Plain Layout
34389 \begin_inset Quotes eld
34393 \begin_inset Quotes erd
34404 \begin_layout Subsection
34406 \begin_inset CommandInset label
34408 name "subsec:Vertical-Alignment"
34413 \begin_inset Index idx
34416 \begin_layout Plain Layout
34417 Boxes ! for Vertical Alignment
34423 \begin_inset Index idx
34426 \begin_layout Plain Layout
34435 \begin_layout Standard
34436 With the help of the command
34442 you can align words, characters or other boxes vertically relative to the
34450 is used with the following scheme:
34453 \begin_layout Standard
34458 raisebox{lift}[height][depth]{box content}
34461 \begin_layout Standard
34462 The lift can be a positive value to raise the box or a negative value to
34466 \begin_layout Standard
34467 To align for example the word
34468 \begin_inset Quotes eld
34472 \begin_inset Quotes erd
34475 so that the bottom of the
34476 \begin_inset Quotes eld
34480 \begin_inset Quotes erd
34484 \begin_inset Quotes eld
34488 \begin_inset Quotes erd
34491 is at the baseline, insert the command
34494 \begin_layout Standard
34504 \begin_layout Standard
34505 in \SpecialChar TeX
34506 Code before the word.
34507 After the word insert a closing brace
34508 \begin_inset Quotes eld
34516 \begin_inset Quotes erd
34519 in \SpecialChar TeX
34521 \begin_inset Newline newline
34524 This is the result:
34527 \begin_layout Standard
34528 This is a text line with the word
34532 \begin_layout Plain Layout
34544 \begin_inset Quotes eld
34548 \begin_inset Quotes erd
34555 \begin_layout Plain Layout
34565 \begin_layout Standard
34566 \begin_inset VSpace bigskip
34569 When you raise or lower characters in a line, the line distance will be
34573 \begin_layout Standard
34574 This is a text line with the word
34578 \begin_layout Plain Layout
34590 \begin_inset Quotes eld
34594 \begin_inset Quotes erd
34601 \begin_layout Plain Layout
34609 \begin_inset Newline newline
34612 This is a text line with the word
34616 \begin_layout Plain Layout
34626 \begin_inset Quotes eld
34630 \begin_inset Quotes erd
34637 \begin_layout Plain Layout
34647 \begin_layout Standard
34648 If you want to prevent this for a certain reason, set the box height to
34653 \begin_layout Standard
34663 \begin_layout Standard
34664 This is a text line with the word
34668 \begin_layout Plain Layout
34680 \begin_inset Quotes eld
34684 \begin_inset Quotes erd
34691 \begin_layout Plain Layout
34699 \begin_inset Newline newline
34703 \begin_inset Newline newline
34706 This is a text line with the word
34710 \begin_layout Plain Layout
34714 raisebox{0.5cm}[0pt]{
34720 \begin_inset Quotes eld
34724 \begin_inset Quotes erd
34731 \begin_layout Plain Layout
34741 \begin_layout Section
34743 \begin_inset CommandInset label
34745 name "sec:Colored-Boxes"
34750 \begin_inset Index idx
34753 \begin_layout Plain Layout
34762 \begin_layout Standard
34763 To color the background of a box just select the color you like in the box
34765 This is for example a box with orange background:
34766 \begin_inset Box Frameless
34776 height_special "totalheight"
34781 backgroundcolor "orange"
34784 \begin_layout Plain Layout
34785 Box with orange background
34793 \begin_layout Standard
34794 If you use the decoration
34797 \begin_inset space ~
34801 \begin_inset space ~
34806 you can set a frame color.
34807 In this case you must also specify a background color (LyX sets white as
34809 Here is an example:
34810 \begin_inset Box Boxed
34820 height_special "totalheight"
34825 backgroundcolor "yellow"
34828 \begin_layout Plain Layout
34829 Box with teal frame color and yellow background color
34837 \begin_layout Standard
34838 \begin_inset VSpace bigskip
34841 Of course you can also have colored text inside a colored box:
34842 \begin_inset Newline newline
34846 \begin_inset Box Boxed
34856 height_special "totalheight"
34861 backgroundcolor "magenta"
34864 \begin_layout Plain Layout
34867 This is colored text within a colored, framed box
34875 \begin_layout Standard
34876 \begin_inset VSpace bigskip
34882 \begin_layout Standard
34883 If you need another color than the predefined ones, you can define your
34884 own color as described in section
34885 \begin_inset space ~
34889 \begin_inset CommandInset ref
34891 reference "sec:Colored-Tables"
34896 To use your own color you must typeset the box by using TeX code:
34899 \begin_layout Standard
34900 Colored boxes without frame are created with the command
34907 It has the following scheme:
34910 \begin_layout Standard
34915 colorbox{color}{box content}
34918 \begin_layout Standard
34919 The box content can also be a box and colored boxes can also be within other
34922 \begin_inset space \thinspace{}
34926 \begin_inset space \space{}
34929 a darkgreen background for a word, insert the command
34932 \begin_layout Standard
34937 colorbox{darkgreen}{
34940 \begin_layout Standard
34941 before the word in \SpecialChar TeX
34943 After the word insert a closing brace
34944 \begin_inset Quotes eld
34952 \begin_inset Quotes erd
34955 in \SpecialChar TeX
34957 \begin_inset Newline newline
34960 This is the result:
34963 \begin_layout Standard
34964 This is a line where the word
34968 \begin_layout Plain Layout
34972 colorbox{darkgreen}{
34978 \begin_inset Quotes eld
34982 \begin_inset Quotes erd
34989 \begin_layout Plain Layout
34996 has a darkgreen background.
34999 \begin_layout Standard
35000 Framed, colored boxes are created with the command
35007 It has the following scheme:
35010 \begin_layout Standard
35015 fcolorbox{frame color}{box color}{box content}
35018 \begin_layout Section
35019 Rotated and Scaled Boxes
35022 \begin_layout Standard
35023 To use the commands described in this section, the \SpecialChar LaTeX
35029 \begin_inset Index idx
35032 \begin_layout Plain Layout
35034 -packages ! graphicx
35039 needs to be loaded in the document preamble with the command
35042 \begin_layout Standard
35047 @ifundefined{rotatebox}
35048 \begin_inset Newline newline
35052 \begin_inset Phantom HPhantom
35055 \begin_layout Plain Layout
35058 \begin_inset space ~
35068 usepackage{graphicx}}{}
35071 \begin_layout Standard
35072 \begin_inset Note Greyedout
35075 \begin_layout Plain Layout
35080 Not all DVI-viewers are able to display rotated or scaled material.
35088 \begin_layout Standard
35089 \begin_inset Note Greyedout
35092 \begin_layout Plain Layout
35097 Floats are not allowed inside a rotated or scaled box.
35105 \begin_layout Subsection
35107 \begin_inset Index idx
35110 \begin_layout Plain Layout
35117 \begin_inset Index idx
35120 \begin_layout Plain Layout
35129 \begin_layout Standard
35130 To rotate material, you can put it into a rotated box.
35131 Such a box is created using the command
35137 in \SpecialChar TeX
35138 Code with the following scheme:
35141 \begin_layout Standard
35146 rotatebox[rotation origin]{rotation angle}{box content}
35149 \begin_layout Standard
35150 The rotation origin is specified in the form
35155 The following positions are possible:
35175 (top), along with meaningful combinations of the four base positions.
35180 means that the rotation origin is at the top left corner of the box.
35181 When no rotation origin is specified, the position
35186 The rotation angle is a number that can be negative that specifies the
35188 The rotation direction is counterclockwise.
35191 \begin_layout Standard
35192 In the following example the command
35196 rotatebox[origin=c]{60}{
35198 was inserted as \SpecialChar TeX
35199 Code before the text
35200 \begin_inset Quotes eld
35204 \begin_inset Quotes erd
35207 ; after the text the box was closed by a closing brace
35211 in \SpecialChar TeX
35215 \begin_layout Standard
35220 \begin_layout Plain Layout
35224 rotatebox[origin=c]{60}{
35233 \begin_layout Plain Layout
35243 \begin_layout Standard
35244 The box content can also be another box or an inline formula:
35247 \begin_layout Standard
35252 \begin_layout Plain Layout
35256 rotatebox[origin=r]{-60}{
35262 \begin_inset Box Doublebox
35272 height_special "totalheight"
35277 backgroundcolor "none"
35280 \begin_layout Plain Layout
35290 \begin_layout Plain Layout
35301 \begin_layout Plain Layout
35305 rotatebox[origin=lb]{60}{
35311 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35318 \begin_layout Plain Layout
35328 \begin_layout Standard
35329 or an image or table:
35332 \begin_layout Standard
35337 \begin_layout Plain Layout
35341 rotatebox[origin=lb]{90}{
35347 \begin_inset Graphics
35348 filename clipart/platypus.eps
35358 \begin_layout Plain Layout
35365 with a rotated image
35369 \begin_layout Plain Layout
35373 rotatebox[origin=l]{-90}{
35379 \begin_inset Tabular
35380 <lyxtabular version="3" rows="2" columns="2">
35381 <features tabularvalignment="middle">
35382 <column alignment="center" valignment="top">
35383 <column alignment="center" valignment="top">
35385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35388 \begin_layout Plain Layout
35394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35397 \begin_layout Plain Layout
35405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35408 \begin_layout Plain Layout
35414 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35417 \begin_layout Plain Layout
35432 \begin_layout Plain Layout
35440 \begin_inset Index idx
35443 \begin_layout Plain Layout
35450 \begin_inset Index idx
35453 \begin_layout Plain Layout
35454 Table Customization ! Rotating
35462 \begin_layout Subsection
35464 \begin_inset Index idx
35467 \begin_layout Plain Layout
35474 \begin_inset Index idx
35477 \begin_layout Plain Layout
35486 \begin_layout Standard
35487 To scale material the commands
35499 can be used as \SpecialChar TeX
35503 \begin_layout Standard
35510 is used with the following scheme:
35513 \begin_layout Standard
35518 scalebox{horizontal}[vertical]{box content}
35521 \begin_layout Standard
35522 Horizontal and vertical are the corresponding scaling factors.
35523 If no vertical scaling factor is given, the horizontal factor will also
35524 be used as the vertical one.
35527 \begin_layout Standard
35534 creates for example a double size
35538 \begin_layout Plain Layout
35551 \begin_layout Plain Layout
35558 , compared with the document text size.
35561 \begin_layout Standard
35566 scalebox{2}[1]{Hello}
35568 on the other hand distorts the
35572 \begin_layout Plain Layout
35585 \begin_layout Plain Layout
35595 \begin_layout Standard
35596 If the scaling factor is negative, the box content will be mirrored.
35597 Therefore the command
35601 scalebox{-1}[1]{Hello}
35603 can be used to create mirror writing:
35607 \begin_layout Plain Layout
35620 \begin_layout Plain Layout
35630 \begin_layout Standard
35635 scalebox{1}[-1]{Hello}
35641 \begin_layout Plain Layout
35654 \begin_layout Plain Layout
35664 \begin_layout Standard
35669 scalebox{-1}[1]{box content}
35671 there exists the command
35672 \begin_inset Newline newline
35679 reflectbox{box content}
35684 \begin_layout Standard
35685 \begin_inset VSpace bigskip
35694 is used to scale the box to a defined width and height.
35695 The command scheme is:
35698 \begin_layout Standard
35703 resizebox{width}{height}{box content}
35706 \begin_layout Standard
35707 If one of the two command arguments given is an exclamation mark
35711 , the size is set so that the aspect ratio of the box content is kept.
35714 \begin_layout Standard
35719 resizebox{2cm}{1cm}{Hello}
35725 \begin_layout Plain Layout
35729 resizebox{2cm}{1cm}{
35738 \begin_layout Plain Layout
35746 \begin_inset Newline newline
35753 resizebox{2cm}{!}{Hello}
35759 \begin_layout Plain Layout
35772 \begin_layout Plain Layout
35782 \begin_layout Standard
35783 \begin_inset VSpace bigskip
35787 \begin_inset Note Greyedout
35790 \begin_layout Plain Layout
35807 are set to zero, no \SpecialChar LaTeX
35808 -errors occur when exporting the document but the exported
35809 files can not or only partly be displayed.
35817 \begin_layout Standard
35818 \begin_inset VSpace bigskip
35824 \begin_layout Standard
35825 The boxes can be combined in any order.
35827 \begin_inset space \thinspace{}
35831 \begin_inset space \space{}
35835 \begin_inset Newline newline
35842 rotatebox[origin=c]{-45}{
35846 reflectbox{Hello}}}
35847 \begin_inset Newline newline
35853 \begin_inset Separator parbreak
35859 \begin_layout Standard
35864 \begin_layout Plain Layout
35868 rotatebox[origin=c]{-45}{
35881 \begin_layout Plain Layout
35891 \begin_layout Standard
35893 Images, tables, and inline formulas are allowed as box content:
35894 \begin_inset Separator parbreak
35900 \begin_layout Standard
35905 \begin_layout Plain Layout
35909 rotatebox[origin=c]{-30}{
35919 \begin_inset Graphics
35920 filename clipart/platypus.eps
35930 \begin_layout Plain Layout
35941 \begin_layout Plain Layout
35945 rotatebox[origin=c]{-45}{
35955 \begin_inset Tabular
35956 <lyxtabular version="3" rows="2" columns="2">
35957 <features tabularvalignment="middle">
35958 <column alignment="center" valignment="top">
35959 <column alignment="center" valignment="top">
35961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35964 \begin_layout Plain Layout
35970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35973 \begin_layout Plain Layout
35981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35984 \begin_layout Plain Layout
35990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35993 \begin_layout Plain Layout
36008 \begin_layout Plain Layout
36019 \begin_layout Plain Layout
36023 rotatebox[origin=c]{-45}{
36033 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36040 \begin_layout Plain Layout
36048 \begin_inset Index idx
36051 \begin_layout Plain Layout
36058 \begin_inset Index idx
36061 \begin_layout Plain Layout
36062 Table Customization ! Scaling
36070 \begin_layout Standard
36071 When the global formula style
36075 is used in the document
36079 \begin_layout Plain Layout
36081 \begin_inset Quotes eld
36085 \begin_inset Quotes erd
36088 is added to the document class options.
36093 , display style formulas can also be scaled.
36096 \begin_layout Chapter
36097 Objects Surrounded by Text
36098 \begin_inset Index idx
36101 \begin_layout Plain Layout
36110 \begin_layout Section
36112 \begin_inset CommandInset label
36114 name "sec:Wrap-Floats"
36119 \begin_inset Index idx
36122 \begin_layout Plain Layout
36123 Floats ! Wrap Floats
36129 \begin_inset Index idx
36132 \begin_layout Plain Layout
36133 Surrounded by text ! Wrap Floats
36141 \begin_layout Standard
36142 \begin_inset Wrap figure
36149 \begin_layout Plain Layout
36150 \begin_inset Graphics
36151 filename clipart/mobius.eps
36153 scaleBeforeRotation
36154 rotateOrigin center
36161 \begin_layout Plain Layout
36162 \begin_inset Caption Standard
36164 \begin_layout Plain Layout
36165 \begin_inset CommandInset label
36167 name "fig:This-is-a"
36171 This is a figure wrap float.
36181 This float type is used if you want to wrap text around a figure or table
36182 so that it only occupies some fraction of the column width.
36183 It can be inserted using the menu
36185 Insert\SpecialChar menuseparator
36186 Floats\SpecialChar menuseparator
36188 \begin_inset space ~
36192 \begin_inset space ~
36200 \begin_inset space ~
36204 \begin_inset space ~
36209 if the \SpecialChar LaTeX
36215 \begin_inset Index idx
36218 \begin_layout Plain Layout
36220 -packages ! wrapfig
36229 \begin_layout Plain Layout
36230 Installing a \SpecialChar LaTeX
36231 -package is explained it in the
36235 \begin_inset space ~
36245 The settings of the float can be modified by right-clicking on the float
36247 The mandatory settings are the float
36260 that specifies how much the float is set into the paragraph
36261 \begin_inset space \thinspace{}
36265 \begin_inset space \thinspace{}
36268 page margin, and the
36271 \begin_inset space ~
36276 that specifies how many text lines the float will approximately need.
36277 The line span is often hard to approximate; so it is better only to use
36278 it when you encounter float placement problems.
36279 You can furthermore decide if \SpecialChar LaTeX
36280 is allowed to let the float float within
36281 the paragraph or to surrounding paragraphs.
36283 \begin_inset space ~
36287 \begin_inset CommandInset ref
36289 reference "fig:This-is-a"
36293 is an example text wrap float with a width of 40
36294 \begin_inset space \thinspace{}
36298 \begin_inset space \thinspace{}
36301 cm overhang, set to the left.
36304 \begin_layout Standard
36305 \begin_inset Note Greyedout
36308 \begin_layout Plain Layout
36314 \begin_inset space ~
36317 wrap float floats are fragile! E.
36318 \begin_inset space \thinspace{}
36322 \begin_inset space \space{}
36325 having a figure too close to the bottom of the page can mess things up in
36326 such a way that the float does not appear in the output or that it is placed
36327 over some other text.
36335 \begin_layout Standard
36336 In general, the following applies for wrap floats:
36339 \begin_layout Itemize
36340 They should not be placed in paragraphs that run over a page break.
36341 That means that wrap floats are better inserted in their exact place when
36342 the document is almost finished and you are able to estimate where page
36343 breaks will appear.
36346 \begin_layout Itemize
36347 They should either be placed in their own paragraph before the paragraph
36348 where they should wrap into or within a paragraph.
36351 \begin_layout Itemize
36352 In consecutive paragraphs they may cause troubles, so ensure that there
36353 is a text paragraph between them as separator.
36356 \begin_layout Itemize
36357 They are not allowed in section headings or tables.
36360 \begin_layout Itemize
36361 Their numbering and referencing works as described in chap.
36362 \begin_inset space \thinspace{}
36366 \begin_inset CommandInset ref
36368 reference "chap:Floats"
36375 \begin_layout Section
36376 Surrounded Fixed Objects
36377 \begin_inset Index idx
36380 \begin_layout Plain Layout
36381 Surrounded by text ! Fixed objects
36389 \begin_layout Standard
36390 The wrap floats described in sec.
36391 \begin_inset space \thinspace{}
36395 \begin_inset CommandInset ref
36397 reference "sec:Wrap-Floats"
36401 have these positions in the paragraph:
36402 \begin_inset Separator parbreak
36408 \begin_layout Standard
36411 \begin_inset Tabular
36412 <lyxtabular version="3" rows="2" columns="2">
36413 <features tabularvalignment="middle">
36414 <column alignment="center" valignment="top">
36415 <column alignment="center" valignment="top">
36417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36420 \begin_layout Plain Layout
36421 \begin_inset Graphics
36422 filename ../images/dialog-show-new-inset_graphics.png
36424 scaleBeforeRotation
36433 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36436 \begin_layout Plain Layout
36444 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36447 \begin_layout Plain Layout
36453 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36456 \begin_layout Plain Layout
36468 \begin_inset Tabular
36469 <lyxtabular version="3" rows="2" columns="2">
36470 <features tabularvalignment="middle">
36471 <column alignment="center" valignment="top">
36472 <column alignment="center" valignment="top">
36474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36477 \begin_layout Plain Layout
36483 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36486 \begin_layout Plain Layout
36487 \begin_inset Graphics
36488 filename ../images/dialog-show-new-inset_graphics.png
36490 scaleBeforeRotation
36501 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36504 \begin_layout Plain Layout
36510 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36513 \begin_layout Plain Layout
36527 \begin_layout Standard
36528 To get an object exactly at the position where it is inserted, for example
36529 to get one of these positions:
36530 \begin_inset VSpace defskip
36536 \begin_layout Standard
36539 \begin_inset Tabular
36540 <lyxtabular version="3" rows="2" columns="2">
36541 <features tabularvalignment="middle">
36542 <column alignment="center" valignment="top">
36543 <column alignment="center" valignment="top">
36545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36548 \begin_layout Plain Layout
36554 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36557 \begin_layout Plain Layout
36565 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36568 \begin_layout Plain Layout
36569 \begin_inset Graphics
36570 filename ../images/dialog-show-new-inset_graphics.png
36572 scaleBeforeRotation
36581 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36584 \begin_layout Plain Layout
36596 \begin_inset Tabular
36597 <lyxtabular version="3" rows="2" columns="2">
36598 <features tabularvalignment="middle">
36599 <column alignment="center" valignment="top">
36600 <column alignment="center" valignment="top">
36602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36605 \begin_layout Plain Layout
36611 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36614 \begin_layout Plain Layout
36622 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36625 \begin_layout Plain Layout
36631 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36634 \begin_layout Plain Layout
36635 \begin_inset Graphics
36636 filename ../images/dialog-show-new-inset_graphics.png
36638 scaleBeforeRotation
36653 \begin_inset Tabular
36654 <lyxtabular version="3" rows="2" columns="3">
36655 <features tabularvalignment="middle">
36656 <column alignment="center" valignment="top">
36657 <column alignment="center" valignment="top">
36658 <column alignment="center" valignment="top">
36660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36663 \begin_layout Plain Layout
36669 <cell alignment="center" valignment="top" topline="true" usebox="none">
36672 \begin_layout Plain Layout
36673 \begin_inset Graphics
36674 filename ../images/dialog-show-new-inset_graphics.png
36676 scaleBeforeRotation
36685 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36688 \begin_layout Plain Layout
36696 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36699 \begin_layout Plain Layout
36705 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36708 \begin_layout Plain Layout
36714 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36717 \begin_layout Plain Layout
36729 \begin_inset Tabular
36730 <lyxtabular version="3" rows="2" columns="3">
36731 <features tabularvalignment="middle">
36732 <column alignment="center" valignment="top">
36733 <column alignment="center" valignment="top">
36734 <column alignment="center" valignment="top">
36736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36739 \begin_layout Plain Layout
36745 <cell alignment="center" valignment="top" topline="true" usebox="none">
36748 \begin_layout Plain Layout
36754 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36757 \begin_layout Plain Layout
36765 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36768 \begin_layout Plain Layout
36774 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36777 \begin_layout Plain Layout
36778 \begin_inset Graphics
36779 filename ../images/dialog-show-new-inset_graphics.png
36781 scaleBeforeRotation
36790 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36793 \begin_layout Plain Layout
36807 \begin_layout Standard
36810 \begin_inset Tabular
36811 <lyxtabular version="3" rows="3" columns="2">
36812 <features tabularvalignment="middle">
36813 <column alignment="center" valignment="top">
36814 <column alignment="center" valignment="top">
36816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36819 \begin_layout Plain Layout
36825 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36828 \begin_layout Plain Layout
36836 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36839 \begin_layout Plain Layout
36840 \begin_inset Graphics
36841 filename ../images/dialog-show-new-inset_graphics.png
36843 scaleBeforeRotation
36852 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36855 \begin_layout Plain Layout
36863 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36866 \begin_layout Plain Layout
36872 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36875 \begin_layout Plain Layout
36887 \begin_inset Tabular
36888 <lyxtabular version="3" rows="3" columns="3">
36889 <features tabularvalignment="middle">
36890 <column alignment="center" valignment="top">
36891 <column alignment="center" valignment="top">
36892 <column alignment="center" valignment="top">
36894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36897 \begin_layout Plain Layout
36903 <cell alignment="center" valignment="top" topline="true" usebox="none">
36906 \begin_layout Plain Layout
36912 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36915 \begin_layout Plain Layout
36923 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36926 \begin_layout Plain Layout
36932 <cell alignment="center" valignment="top" usebox="none">
36935 \begin_layout Plain Layout
36936 \begin_inset Graphics
36937 filename ../images/dialog-show-new-inset_graphics.png
36939 scaleBeforeRotation
36948 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36951 \begin_layout Plain Layout
36959 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36962 \begin_layout Plain Layout
36968 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36971 \begin_layout Plain Layout
36977 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36980 \begin_layout Plain Layout
36992 \begin_inset Tabular
36993 <lyxtabular version="3" rows="3" columns="2">
36994 <features tabularvalignment="middle">
36995 <column alignment="center" valignment="top">
36996 <column alignment="center" valignment="top">
36998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37001 \begin_layout Plain Layout
37007 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37010 \begin_layout Plain Layout
37018 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37021 \begin_layout Plain Layout
37027 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37030 \begin_layout Plain Layout
37031 \begin_inset Graphics
37032 filename ../images/dialog-show-new-inset_graphics.png
37034 scaleBeforeRotation
37045 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37048 \begin_layout Plain Layout
37054 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37057 \begin_layout Plain Layout
37071 \begin_layout Standard
37073 you can use the \SpecialChar LaTeX
37079 \begin_inset Index idx
37082 \begin_layout Plain Layout
37084 -packages ! picinpar
37090 Here is an example:
37093 \begin_layout Standard
37097 \begin_layout Plain Layout
37107 \begin_inset Note Note
37110 \begin_layout Plain Layout
37111 The following section will only be displayed when the \SpecialChar LaTeX
37124 \begin_layout Standard
37128 \begin_layout Plain Layout
37132 begin{window}[2,c,{
37138 \begin_inset Graphics
37139 filename clipart/mobius.eps
37142 scaleBeforeRotation
37143 rotateOrigin center
37151 \begin_layout Plain Layout
37156 \begin_layout Plain Layout
37165 It was in the spring of the year 1894 that all London was interested, and
37166 the fashionable world dismayed, by the murder of the Honourable Ronald
37167 Adair under most unusual and inexplicable circumstances.
37168 The public has already learned those particulars of the crime which
37174 \begin_layout Plain Layout
37185 came out in the police investigation, but a good deal was suppressed upon
37186 that occasion, since the case for the prosecution was so overwhelmingly
37187 strong that it was not necessary to bring forward all the facts.
37188 Only now, at the end of nearly ten years, am I allowed to supply those
37189 missing links which make up the whole of that remarkable chain.
37195 \begin_layout Plain Layout
37207 \begin_layout Standard
37211 \begin_layout Plain Layout
37220 Footnote of the paragraph with the fixed object.
37224 \begin_layout Plain Layout
37234 \begin_layout Standard
37235 Surrounded fixed objects are used to let text float around them, at which
37236 the object's position in the paragraph can be determined by the number
37238 In contrary to floats is it not possible to have a numbered caption.
37241 \begin_layout Standard
37242 A fixed object is inserted by adding the command
37245 \begin_layout Standard
37250 begin{window}[2,c,{
37253 \begin_layout Standard
37254 as \SpecialChar TeX
37255 Code at the beginning of the paragraph.
37256 The first parameter in the bracket, here '2', defines the number of lines
37257 above the object, the second, here 'c', the position of the object.
37258 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37259 Behind the command you insert the object.
37260 In this example an image with a width of 40
37261 \begin_inset space \thinspace{}
37264 % of the text column width was inserted.
37265 The object can also be a table, a box or an equation.
37266 Behind the object the command
37269 \begin_layout Standard
37272 },description text]
37273 \begin_inset Newline newline
37279 \begin_layout Standard
37282 \begin_inset Quotes eld
37290 \begin_inset Quotes erd
37293 is in the second line.
37294 The description text is optional.
37295 The text surrounding the object must be in the same paragraph as the object,
37296 so it must begin directly after the
37301 At the end of the paragraph insert the command:
37304 \begin_layout Standard
37312 \begin_layout Standard
37313 Within a paragraph with a fixed object, you cannot insert footnotes in the
37315 You have to use instead the command
37321 inside the paragraph and outside the command
37327 as described in sec.
37328 \begin_inset space \thinspace{}
37332 \begin_inset CommandInset ref
37334 reference "sec:Footnotes"
37341 \begin_layout Standard
37345 \begin_layout Plain Layout
37355 \begin_inset Note Note
37358 \begin_layout Plain Layout
37359 The following will be displayed when the \SpecialChar LaTeX
37372 \begin_layout Standard
37373 You need to install the \SpecialChar LaTeX
37378 to see the following part of this section in the output.
37381 \begin_layout Standard
37385 \begin_layout Plain Layout
37397 \begin_layout Section
37399 \begin_inset Index idx
37402 \begin_layout Plain Layout
37409 \begin_inset Index idx
37412 \begin_layout Plain Layout
37413 Surrounded by text ! Initials
37421 \begin_layout Standard
37422 To use initials, you must have the \SpecialChar LaTeX
37428 \begin_inset Index idx
37431 \begin_layout Plain Layout
37433 -packages ! lettrine
37438 installed and use the module
37442 in your document (menu
37444 Document\SpecialChar menuseparator
37445 Settings\SpecialChar menuseparator
37449 To insert an initial, use the style
37454 This style has a mandatory and two optional arguments.
37455 The arguments are inserted via the
37460 The mandatory argument
37464 contains the letter(s) that is the initial, the argument
37467 \begin_inset space ~
37471 \begin_inset space ~
37476 contains the rest of the word or text of the initial letter(s).
37481 contains parameters to modify the initial.
37482 For more information about the possible parameters see the documentation
37488 \begin_inset CommandInset citation
37495 The style itself contains the text that is surrounding the initial.
37496 The usual style is hereby that the word whose first letter is the initial,
37504 \begin_layout Standard
37505 Here are some examples:
37508 \begin_layout Standard
37512 \begin_layout Plain Layout
37522 \begin_inset Note Note
37525 \begin_layout Plain Layout
37526 The following section will only be displayed when the \SpecialChar LaTeX
37539 \begin_layout Enumerate
37540 No optional argument, the initial is the letter 'I' in the math font
37541 \begin_inset Formula $\mathfrak{Fraktur}$
37545 \begin_inset Separator parbreak
37552 \begin_layout Initial
37553 \begin_inset Argument 2
37556 \begin_layout Plain Layout
37557 \begin_inset Formula $\mathfrak{I}$
37566 \begin_inset Argument 3
37569 \begin_layout Plain Layout
37575 was in the spring of the year 1894 that all London was interested, and
37576 the fashionable world dismayed, by the murder of the Honourable Ronald
37577 Adair under most unusual and inexplicable circumstances.
37578 The public has already learned those particulars of the crime which came
37579 out in the police investigation, but a good deal was suppressed upon that
37580 occasion, since the case for the prosecution was so overwhelmingly strong
37581 that it was not necessary to bring forward all the facts.
37582 \begin_inset Newpage newpage
37589 \begin_layout Enumerate
37590 Only one line is surrounding the initial, which is formed by two letters
37591 in standard font and no text is printed in small caps:
37592 \begin_inset Separator parbreak
37599 \begin_layout Initial
37600 \begin_inset Argument 1
37603 \begin_layout Plain Layout
37610 \begin_inset Argument 2
37613 \begin_layout Plain Layout
37619 was in the spring of the year 1894 that all London was interested, and
37620 the fashionable world dismayed, by the murder of the Honourable Ronald
37621 Adair under most unusual and inexplicable circumstances.
37622 The public has already learned those particulars of the crime which came
37623 out in the police investigation, but a good deal was suppressed upon that
37624 occasion, since the case for the prosecution was so overwhelmingly strong
37625 that it was not necessary to bring forward all the facts.
37629 \begin_layout Enumerate
37630 Magenta, hanging initial over 3
37631 \begin_inset space ~
37634 lines in the math font
37635 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37639 \begin_inset Quotes eld
37642 t was in the spring
37643 \begin_inset Quotes erd
37650 ; to color the initial, you must insert this command before the initial:
37651 \begin_inset Newline newline
37665 \begin_inset Newline newline
37673 \begin_inset Quotes eld
37677 \begin_inset Quotes erd
37681 \begin_inset Quotes eld
37685 \begin_inset Quotes erd
37689 \begin_inset Quotes eld
37693 \begin_inset Quotes erd
37697 \begin_inset Quotes eld
37701 \begin_inset Quotes erd
37705 \begin_inset Quotes eld
37709 \begin_inset Quotes erd
37713 \begin_inset Quotes eld
37717 \begin_inset Quotes erd
37721 \begin_inset Quotes eld
37725 \begin_inset Quotes erd
37729 \begin_inset Quotes eld
37733 \begin_inset Quotes erd
37736 , and add this command to the document preamble:
37737 \begin_inset Newline newline
37744 @ifundefined{textcolor}
37745 \begin_inset Newline newline
37749 \begin_inset space ~
37754 usepackage{color}}{}
37757 \begin_inset Separator parbreak
37764 \begin_layout Standard
37768 \begin_layout Plain Layout
37782 \begin_inset Note Note
37785 \begin_layout Plain Layout
37786 makes the initial magenta
37794 \begin_layout Initial
37795 \begin_inset Argument 1
37798 \begin_layout Plain Layout
37799 lines=3, lhang=0.33, loversize=0.25
37805 \begin_inset Argument 2
37808 \begin_layout Plain Layout
37809 \begin_inset Formula $\mathcal{I}$
37818 \begin_inset Argument 3
37821 \begin_layout Plain Layout
37822 t was in the spring
37827 of the year 1894 that all London was interested, and the fashionable world
37828 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37829 and inexplicable circumstances.
37830 The public has already learned those particulars of the crime which came
37831 out in the police investigation, but a good deal was suppressed upon that
37832 occasion, since the case for the prosecution was so overwhelmingly strong
37833 that it was not necessary to bring forward all the facts.
37837 \begin_layout Standard
37841 \begin_layout Plain Layout
37851 \begin_inset Note Note
37854 \begin_layout Plain Layout
37855 The following will be displayed when the \SpecialChar LaTeX
37868 \begin_layout Standard
37869 You need to install the \SpecialChar LaTeX
37874 to see the following part of this section in the output.
37877 \begin_layout Standard
37881 \begin_layout Plain Layout
37893 \begin_layout Chapter
37894 External Document Parts
37895 \begin_inset Index idx
37898 \begin_layout Plain Layout
37899 External Document Parts
37907 \begin_layout Standard
37910 Insert\SpecialChar menuseparator
37913 you can insert external material into your document.
37917 \begin_layout Description
37919 \begin_inset space ~
37922 Document Another \SpecialChar LyX
37923 document; its content is directly inserted to your document.
37926 \begin_layout Description
37928 \begin_inset space ~
37931 Text A text document; each line is inserted in your document as a separate
37935 \begin_layout Description
37937 \begin_inset space ~
37941 \begin_inset space ~
37945 \begin_inset space ~
37948 Lines A text document; text lines are inserted in your document continuously
37949 but an empty text line creates a new paragraph.
37952 \begin_layout Description
37954 \begin_inset space ~
37957 Material Files in various formats.
37960 \begin_layout Description
37962 \begin_inset space ~
37965 Document \SpecialChar LyX
37966 or \SpecialChar LaTeX
37970 \begin_layout Section
37972 \begin_inset Index idx
37975 \begin_layout Plain Layout
37976 External Document Parts ! External Material
37984 \begin_layout Standard
37985 The external material feature allows you to insert files into your document
37986 without converting them to a format that can be read by the document output
37989 takes care of the necessary conversions.
37990 This is similar to images that can be inserted in various image formats
37991 in \SpecialChar LyX
37993 When you have enabled Instant Preview in \SpecialChar LyX
37994 's preferences under
37997 \begin_inset space ~
38001 \begin_inset space ~
38004 feel\SpecialChar menuseparator
38007 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38011 \begin_layout Standard
38012 External material can be inserted via the
38016 dialog that is accessible with the menu
38018 Insert\SpecialChar menuseparator
38019 File\SpecialChar menuseparator
38021 \begin_inset space ~
38027 Currently the following file types (
38034 \begin_layout Description
38035 ChessDiagram This template supports chess position diagrams made with the
38039 \begin_inset CommandInset href
38042 target "http://en.wikipedia.org/wiki/XBoard"
38051 \begin_layout Description
38052 Date This inserts the date in the form
38057 This is a date inserted as external material:
38058 \begin_inset External
38065 \begin_inset space ~
38069 \begin_inset Note Note
38072 \begin_layout Plain Layout
38073 Remove the protected space when bug 4398 is fixed!
38079 \begin_inset Newline newline
38082 The date is not shown within \SpecialChar LyX
38083 , only in the output.
38084 There are two other methods of inserting a date: Via menu
38086 Insert\SpecialChar menuseparator
38089 and with the \SpecialChar LaTeX
38096 as \SpecialChar TeX
38098 The different methods are compared in Table
38099 \begin_inset space ~
38103 \begin_inset CommandInset ref
38105 reference "tab:Comparison-of-the"
38112 \begin_layout Description
38113 Dia This template supports diagrams created with the program
38116 \begin_inset CommandInset href
38119 target "http://en.wikipedia.org/wiki/Dia_(software)"
38128 \begin_layout Description
38129 GnumericSpreadsheet With this template you can insert spreadsheets
38130 \begin_inset space \thinspace{}
38134 \begin_inset space \thinspace{}
38137 tables in the format of
38140 \begin_inset CommandInset href
38143 target "http://en.wikipedia.org/wiki/Gnumeric"
38150 \begin_inset CommandInset href
38152 name "OpenDocument"
38153 target "http://en.wikipedia.org/wiki/OpenDocument"
38158 \begin_inset CommandInset href
38160 name "Microsoft Office XML"
38161 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38166 \begin_inset CommandInset href
38168 name "Office Open XML"
38169 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38174 For this feature \SpecialChar LyX
38175 must have found the program
38179 during its configuration.
38180 This program is part of Gnumeric, so that you must have Gnumeric installed,
38181 also if you don't have tables in the Gnumeric format.
38182 For examples and possible limitations have a look at \SpecialChar LyX
38190 \begin_layout Description
38191 LilyPond This template is used for music notation typeset with the program
38192 \begin_inset Newline linebreak
38198 \begin_inset CommandInset href
38201 target "http://en.wikipedia.org/wiki/LilyPond"
38208 For \SpecialChar LyX
38209 's extended support for LilyPond have a look at \SpecialChar LyX
38217 \begin_layout Description
38218 PDFPages With this template you can insert PDF documents to your document.
38219 To specify the range of pages that should be included, use the option
38229 LaTeX and LyX options
38232 The argument of this option is a comma separated list, containing page
38233 numbers (insert as option
38237 ), ranges of page numbers (
38241 ) or any combination.
38242 To insert empty pages use {}.
38244 \begin_inset space \thinspace{}
38248 \begin_inset space ~
38253 pages={3,{},8-11,15}
38255 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38256 Page ranges are specified in the syntax
38265 This selects all pages from
38278 defaults to the first page; omitting
38282 defaults to the last page of the document.
38283 The last page can also be selected with the keyword
38288 (This is only permitted in a page range.) So
38292 will insert all pages of the document and
38296 will insert all pages in reverse order.
38297 If the pages option is not specified, only the first page of the PDF is
38299 \begin_inset Newline newline
38306 inserts the pages with their original size, if this option is not given,
38307 the pages will be resized to fith the width of the page of your document.
38312 you can specify the width and height of the input pages and their rotation.
38313 If another width than 100
38314 \begin_inset space \thinspace{}
38317 Scale% is used, the option
38321 will be overwritten.
38322 For more info and possible options, have a look into the documentation
38323 of the \SpecialChar LaTeX
38329 \begin_inset CommandInset citation
38336 \begin_inset Index idx
38339 \begin_layout Plain Layout
38341 -packages ! pdfpages
38347 \begin_inset Newline newline
38350 To use this template in a
38354 presentation you need to first insert an
38358 environment and in a subsequent paragraph a \SpecialChar TeX
38359 Code box containing the command
38364 setbeamertemplate{background canvas}{}
38367 Then you can insert as many paragraphs containing the PDFPages template
38369 Behind the included PDF pages you can resume the Beamer presentation by
38370 beginning a new frame or by starting a new section.
38371 To avoid stray blank pages prior to the PDF pages, make sure to use the
38376 alignment for the paragraph containing the template.
38377 \begin_inset Newline newline
38380 Here is an included PDF which is rotated by -5°:
38381 \begin_inset External
38383 filename clipart/Abstract.pdf
38384 extra LaTeX "noautoscale, pages=-"
38386 rotateOrigin bottomleft
38393 \begin_layout Description
38394 RasterImage This can be used for bitmap images.
38395 The image can be treated in the
38399 dialog like the images that are usually included via the
38403 dialog as described in section
38404 \begin_inset space ~
38408 \begin_inset CommandInset ref
38410 reference "sec:Graphics-Dialog"
38415 The difference to the normal image input is that only raster images are
38416 allowed; that means that PDF and EPS-images are not supported.
38417 Here is an inserted raster image:
38418 \begin_inset External
38419 template RasterImage
38420 filename clipart/ToolbarEnvBox.png
38427 \begin_layout Description
38428 XFig This template supports images created with the program
38431 \begin_inset CommandInset href
38434 target "http://en.wikipedia.org/wiki/Xfig"
38443 \begin_layout Standard
38444 \begin_inset Float table
38450 \begin_layout Plain Layout
38451 \begin_inset Caption Standard
38453 \begin_layout Plain Layout
38454 \begin_inset CommandInset label
38456 name "tab:Comparison-of-the"
38460 Comparison of the date input methods.
38468 \begin_layout Plain Layout
38470 \begin_inset Tabular
38471 <lyxtabular version="3" rows="4" columns="4">
38472 <features tabularvalignment="middle">
38473 <column alignment="center" valignment="top">
38474 <column alignment="center" valignment="top">
38475 <column alignment="center" valignment="top">
38476 <column alignment="center" valignment="top">
38478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38481 \begin_layout Plain Layout
38487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38490 \begin_layout Plain Layout
38493 External Material\SpecialChar menuseparator
38499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38502 \begin_layout Plain Layout
38505 Insert\SpecialChar menuseparator
38511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38514 \begin_layout Plain Layout
38526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38529 \begin_layout Plain Layout
38536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38539 \begin_layout Plain Layout
38545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38548 \begin_layout Plain Layout
38554 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38557 \begin_layout Plain Layout
38558 as \SpecialChar TeX
38566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38569 \begin_layout Plain Layout
38576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38579 \begin_layout Plain Layout
38585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38588 \begin_layout Plain Layout
38594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38597 \begin_layout Plain Layout
38605 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38608 \begin_layout Plain Layout
38614 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38617 \begin_layout Plain Layout
38623 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38626 \begin_layout Plain Layout
38632 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38635 \begin_layout Plain Layout
38654 \begin_layout Standard
38655 When you use the option
38667 dialog, only the path to the inserted file is shown in the output.
38668 \begin_inset Newline newline
38671 External material is displayed in \SpecialChar LyX
38672 either as a box like this:
38673 \begin_inset Graphics
38674 filename clipart/ExternalMaterialQt4.png
38676 scaleBeforeRotation
38680 or as image, depending on the option
38686 LaTeX and LyX options
38691 \begin_layout Standard
38698 manual explains how you can define your own templates.
38701 \begin_layout Section
38703 \begin_inset CommandInset label
38705 name "sec:Child-Documents"
38710 \begin_inset Index idx
38713 \begin_layout Plain Layout
38714 External Document Parts ! Child Documents
38720 \begin_inset Index idx
38723 \begin_layout Plain Layout
38732 \begin_layout Standard
38733 Child documents are used if you have a long document consisting of several
38734 larger parts or sections.
38735 For maintenance it is often useful and sometimes even required to split
38736 the document into several files that can be revised separately.
38737 The different documents are then the so called
38738 \begin_inset Quotes eld
38742 \begin_inset Quotes erd
38745 , and a master document connects them to print the full document or parts
38747 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38749 the bibliography, and labels for cross-references.
38752 \begin_layout Standard
38753 To be able to work on child documents without the need to open their master,
38754 specify in the child document the master in the menu
38756 Document\SpecialChar menuseparator
38757 Settings\SpecialChar menuseparator
38759 \begin_inset space ~
38765 This master document will then be used in the background by \SpecialChar LyX
38767 the child document.
38770 \begin_layout Standard
38771 Included documents are displayed in \SpecialChar LyX
38772 as a box like this:
38773 \begin_inset Graphics
38774 filename clipart/ChildDocumentQt4.png
38776 scaleBeforeRotation
38780 To include child documents in a master document use the menu
38782 Insert\SpecialChar menuseparator
38783 File\SpecialChar menuseparator
38785 \begin_inset space ~
38791 A dialog pops up where you can choose between four include methods:
38794 \begin_layout Description
38795 Include You can include \SpecialChar LyX
38796 and \SpecialChar LaTeX
38806 dialog, the included document will be opened in \SpecialChar LyX
38807 in a new file tab so that
38809 \begin_inset Newline newline
38815 \begin_layout Standard
38816 Here is a child document inserted using
38821 \begin_inset CommandInset include
38822 LatexCommand include
38823 filename "DummyDocument1.lyx"
38830 \begin_layout Standard
38831 The section numbering includes the sections of the included files in the
38832 order they are inserted in the master document.
38833 The included example document has for example a subsection that is numbered
38834 as a subsection of this section.
38835 Labels of included documents can be referenced: Subsection
38836 \begin_inset space ~
38840 \begin_inset CommandInset ref
38842 reference "subsec:External-Subsection-1"
38849 \begin_layout Standard
38850 The preamble of the child document is ignored; only the preamble of the
38851 master document is used.
38852 Branches in child documents will be ignored by the master document when
38853 the master document does not have a branch with the same name.
38854 Included documents are inserted starting on a new page and ending with
38858 \begin_layout Standard
38859 \begin_inset Note Greyedout
38862 \begin_layout Plain Layout
38867 If you have included a \SpecialChar LyX
38868 or \SpecialChar LaTeX
38869 file, you are warned when you export/view the
38870 document in case the child document uses another document class than the
38871 master document as this will lead to unexpected outputs.
38879 \begin_layout Description
38880 Input This method is very similar to the Include method.
38881 The differences are:
38882 \begin_inset Separator parbreak
38889 \begin_layout Itemize
38890 Input files don't start with a new page and don't end with a page break.
38893 \begin_layout Itemize
38894 Input files can be previewed in \SpecialChar LyX
38898 \begin_inset space ~
38903 is enabled in \SpecialChar LyX
38904 's preferences under
38907 \begin_inset space ~
38911 \begin_inset space ~
38914 feel\SpecialChar menuseparator
38920 \begin_layout Itemize
38921 You cannot exclude Input files via the menu
38923 Document\SpecialChar menuseparator
38924 Settings\SpecialChar menuseparator
38931 \begin_layout Standard
38932 Here is a child document inserted using
38937 \begin_inset CommandInset include
38939 filename "DummyDocument2.lyx"
38946 \begin_layout Description
38947 Verbatim With this method any text file can be included.
38948 The file is shown in the output with its source code; no command used in
38949 the text is invoked.
38950 You can use the option
38952 Mark spaces in output
38954 that displays the character
38955 \begin_inset Quotes eld
38962 \begin_layout Plain Layout
38972 \begin_inset Quotes erd
38975 for every space character in the source code.
38976 The difference from the method via the menu
38978 Insert\SpecialChar menuseparator
38979 File\SpecialChar menuseparator
38981 \begin_inset space ~
38986 is that the document content is not shown in \SpecialChar LyX
38990 \begin_layout Standard
38991 Here is a child document inserted as Verbatim:
38992 \begin_inset CommandInset include
38993 LatexCommand verbatiminput
38994 filename "DummyTextDocument.txt"
38999 \begin_inset VSpace bigskip
39002 Here is a child document inserted as Verbatim using the
39004 Mark spaces in output
39007 \begin_inset CommandInset include
39008 LatexCommand verbatiminput*
39009 filename "DummyTextDocument.txt"
39016 \begin_layout Standard
39017 \begin_inset VSpace bigskip
39023 \begin_layout Standard
39024 \begin_inset Note Greyedout
39027 \begin_layout Plain Layout
39032 As you can see in the examples above, the text of the documents included
39037 is not broken at the end of the document lines.
39045 \begin_layout Description
39046 Listings This type is described in chapter
39047 \begin_inset space ~
39051 \begin_inset CommandInset ref
39053 reference "cha:Program-Code-Listings"
39060 \begin_layout Standard
39061 \begin_inset Note Greyedout
39064 \begin_layout Plain Layout
39069 Including the same document twice in a document using different methods
39070 could cause \SpecialChar LaTeX
39079 \begin_layout Standard
39080 If you want to view/export only selected children of your master document,
39081 either because you want to save compiling time or because you want to distribut
39082 e single chapters of the book you are just writing, you can exclude children
39084 This is done via the menu
39086 Document\SpecialChar menuseparator
39087 Settings\SpecialChar menuseparator
39091 You can exclude\SpecialChar breakableslash
39092 include children by double-clicking on the
39096 column of the respective child document in the list (note that this only
39097 works for documents embedded via
39098 \begin_inset Quotes eld
39102 \begin_inset Quotes erd
39106 \begin_inset Quotes eld
39110 \begin_inset Quotes erd
39116 Maintain counters and references
39118 is enabled, \SpecialChar LyX
39119 will assure that all page numbers, references etc.
39120 \begin_inset space ~
39123 are correct as if the whole document was processed.
39124 This is useful if you want the selected sub-documents to look exactly as
39125 in the context of the whole document.
39126 However, \SpecialChar LyX
39127 needs to process the whole document in the background for this
39129 So if you want to save compile time and if counters and references do not
39130 need to be correct, disable this checkbox.
39133 \begin_layout Standard
39134 Alternatively, you can put each included file into a branch.
39138 \begin_layout Plain Layout
39139 Branches are described in section
39143 of the \SpecialChar LyX
39153 By enabling\SpecialChar breakableslash
39154 disabling branches you can decide which included files will
39155 appear in the output.
39156 This has the advantage that it also works with Input'ed sub-documents.
39157 However, counters and references will not be maintained with this approach.
39160 \begin_layout Chapter
39161 Program Code Listings
39162 \begin_inset CommandInset label
39164 name "cha:Program-Code-Listings"
39169 \begin_inset Index idx
39172 \begin_layout Plain Layout
39179 \begin_inset Index idx
39182 \begin_layout Plain Layout
39189 \begin_inset Index idx
39192 \begin_layout Plain Layout
39201 \begin_layout Standard
39202 To include and typeset program code you can use the
39206 inset that can be inserted via the menu
39208 Insert\SpecialChar menuseparator
39212 The \SpecialChar LaTeX
39218 \begin_inset Index idx
39221 \begin_layout Plain Layout
39223 -packages ! listings
39228 provides a powerful and flexible way to insert program source code into
39232 \begin_layout Standard
39233 Right-clicking on a listings inset opens the context menu containing where
39234 you can set the listings format.
39237 \begin_layout Standard
39238 By default, a listing starts a new paragraph in the output.
39239 The placement option
39242 \begin_inset space ~
39247 prints the listing inline like this:
39248 \begin_inset listings
39249 lstparams "language={C++}"
39253 \begin_layout Plain Layout
39261 \begin_inset Newline newline
39268 creates a listings float where you can specify the placement options
39269 \begin_inset Quotes eld
39277 \begin_inset Quotes erd
39281 \begin_inset Quotes eld
39289 \begin_inset Quotes erd
39293 \begin_inset Quotes eld
39301 \begin_inset Quotes erd
39305 \begin_inset Quotes eld
39313 \begin_inset Quotes erd
39316 corresponding to the float placement options described in section
39317 \begin_inset space ~
39321 \begin_inset CommandInset ref
39323 reference "sec:Float-Placement"
39328 The placement options can be mixed and are inserted without any separation,
39330 \begin_inset space \thinspace{}
39334 \begin_inset space \space{}
39338 \begin_inset Quotes eld
39346 \begin_inset Quotes erd
39351 \begin_inset Quotes eld
39355 \begin_inset Quotes erd
39358 has sometimes no effect, but you don't need to use the
39362 option in this case as also non-float listings can have captions and be
39366 \begin_layout Standard
39367 You can add captions to listings with the menu
39369 Insert\SpecialChar menuseparator
39373 Listings can be referenced like floats: Listing
39374 \begin_inset space ~
39378 \begin_inset CommandInset ref
39380 reference "lst:Example-Listing"
39385 A list of listings which contains all listings with captions can be created
39388 Insert\SpecialChar menuseparator
39390 \begin_inset space ~
39394 \begin_inset space ~
39397 TOC\SpecialChar menuseparator
39401 The list entries are the listing caption and the listing number.
39404 \begin_layout Standard
39405 \begin_inset listings
39406 lstparams "language=Python"
39410 \begin_layout Plain Layout
39412 \begin_inset Caption Standard
39414 \begin_layout Plain Layout
39415 \begin_inset CommandInset label
39417 name "lst:Example-Listing"
39421 Example Listing float
39426 # Example listing float
39429 \begin_layout Plain Layout
39434 \begin_layout Plain Layout
39436 'this is a python function'
39439 \begin_layout Plain Layout
39449 \begin_layout Standard
39450 When you have set a programming language in the listings dialog, the keywords
39451 of this language will be recognized and specially typeset in the output.
39452 In the example listings the Python keyword
39453 \begin_inset Quotes eld
39457 \begin_inset Quotes erd
39460 is recognized and printed bold in the output.
39463 \begin_layout Standard
39464 \begin_inset Note Greyedout
39467 \begin_layout Plain Layout
39472 If you don't get bold keywords when using typewriter fonts, your
39476 font probably doesn't provide a bold shape.
39477 In this case select a different one in the menu
39479 Document\SpecialChar menuseparator
39480 Settings\SpecialChar menuseparator
39492 provide bold shapes.)
39500 \begin_layout Standard
39504 \begin_inset space ~
39509 of the listings dialog you can specify the line numbering style.
39510 You can insert a number to specify which lines are numbered in the field
39517 \begin_inset space \thinspace{}
39521 \begin_inset space \space{}
39525 \begin_inset Quotes eld
39529 \begin_inset Quotes erd
39532 , only every 3rd line will be numbered.
39535 \begin_layout Standard
39536 You can furthermore specify a range of lines; only these will then appear
39540 Extended character table
39542 should be used when you use national characters like the German umlauts
39544 \begin_inset Newline newline
39547 Here is an example listing with left line numbering, step
39548 \begin_inset Quotes eld
39552 \begin_inset Quotes erd
39556 \begin_inset Quotes eld
39560 \begin_inset Quotes erd
39564 \begin_inset Quotes eld
39567 Extended character table
39568 \begin_inset Quotes erd
39572 \begin_inset Quotes eld
39576 \begin_inset space ~
39580 \begin_inset space ~
39584 \begin_inset Quotes erd
39588 \begin_inset space \thinspace{}
39592 \begin_inset space \thinspace{}
39598 \begin_layout Standard
39599 \begin_inset listings
39600 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39604 \begin_layout Plain Layout
39609 \begin_layout Plain Layout
39611 'this is a python function'
39614 \begin_layout Plain Layout
39619 \begin_layout Plain Layout
39624 \begin_layout Plain Layout
39626 'This is a German word: Tschüß'
39629 \begin_layout Plain Layout
39634 \begin_layout Plain Layout
39639 \begin_layout Plain Layout
39641 'this is a python function'
39644 \begin_layout Plain Layout
39654 \begin_layout Standard
39655 When you have tabulators in your listing, you can specify the number of
39656 characters that are spanned by a tabulator in the field
39659 \begin_inset space ~
39667 \begin_layout Standard
39668 \begin_inset Note Greyedout
39671 \begin_layout Plain Layout
39676 Due to a bug in the
39680 package the line numbering is shifted by a line by every previous listing.
39681 That's the reason why the lines 2 and 5 are numbered in the above listing
39682 and not the lines 3 and 6.
39690 \begin_layout Standard
39691 \begin_inset VSpace bigskip
39697 \begin_layout Standard
39698 It is also possible to print lines from a file as listing.
39699 To do this, use the menu
39701 Insert\SpecialChar menuseparator
39702 File\SpecialChar menuseparator
39705 and choose the type
39713 \begin_layout Plain Layout
39714 The other child document types are described in section
39715 \begin_inset space ~
39719 \begin_inset CommandInset ref
39721 reference "sec:Child-Documents"
39730 In the child document dialog you can specify the listing parameters in
39732 To show a list of all available parameters, type in a question mark
39733 \begin_inset Quotes eld
39737 \begin_inset Quotes erd
39743 \begin_layout Standard
39744 To reference child document listings, write a label text into the corresponding
39745 field of the child document dialog.
39746 The label can then be referenced using the menu
39748 Insert\SpecialChar menuseparator
39754 \begin_layout Standard
39756 \begin_inset space ~
39760 \begin_inset CommandInset ref
39762 reference "lst:file-listing"
39766 is an example for a listing of a file; there the lines 10
39767 \begin_inset space \thinspace{}
39771 \begin_inset space \thinspace{}
39774 15 of this \SpecialChar LyX
39778 \begin_layout Standard
39779 \begin_inset CommandInset include
39780 LatexCommand lstinputlisting
39781 filename "EmbeddedObjects.lyx"
39782 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39789 \begin_layout Standard
39790 \begin_inset VSpace bigskip
39796 \begin_layout Standard
39797 Inserting a formula into a listing can be done the following way:
39800 \begin_layout Enumerate
39801 Open the listings dialog and add
39802 \begin_inset Newline newline
39810 \begin_inset Newline newline
39813 to the field of the
39820 \begin_layout Enumerate
39821 Create a formula outside the listing
39824 \begin_layout Enumerate
39825 Copy the content of the formula (not the formula inset) to the clipboard
39835 \begin_layout Enumerate
39836 In the listing write
39837 \begin_inset Quotes eld
39845 \begin_inset Quotes erd
39848 and copy from the clipboard between the dollar-signs (shortcut
39857 \begin_layout Standard
39858 \begin_inset listings
39859 lstparams "language=Python,mathescape=true"
39863 \begin_layout Plain Layout
39865 \begin_inset Caption Standard
39867 \begin_layout Plain Layout
39868 Example Listing float containing a formula
39873 # Example listing float
39876 \begin_layout Plain Layout
39881 \begin_layout Plain Layout
39894 \begin_layout Plain Layout
39904 \begin_layout Standard
39905 \begin_inset VSpace bigskip
39911 \begin_layout Standard
39912 Global listings settings can be set in the
39914 Document\SpecialChar menuseparator
39915 Settings\SpecialChar menuseparator
39919 To get there a list of available options, type in a question mark
39920 \begin_inset Quotes eld
39924 \begin_inset Quotes erd
39930 \begin_layout Standard
39931 For more information about the
39935 package, we refer to its documentation
39936 \begin_inset CommandInset citation
39945 \begin_layout Standard
39946 \begin_inset Newpage newpage
39952 \begin_layout Chapter
39954 Units available in \SpecialChar LyX
39956 \begin_inset Index idx
39959 \begin_layout Plain Layout
39966 \begin_inset CommandInset label
39968 name "cha:Units-available-in"
39975 \begin_layout Standard
39976 To understand the units described in this documentation, Table
39977 \begin_inset space ~
39981 \begin_inset CommandInset ref
39983 reference "tab:Units"
39987 explains all units available in \SpecialChar LyX
39991 \begin_layout Standard
39992 \begin_inset Float table
39998 \begin_layout Plain Layout
39999 \begin_inset Caption Standard
40001 \begin_layout Plain Layout
40002 \begin_inset CommandInset label
40016 \begin_layout Plain Layout
40017 \begin_inset VSpace medskip
40023 \begin_layout Plain Layout
40025 \begin_inset Tabular
40026 <lyxtabular version="3" rows="20" columns="3">
40027 <features tabularvalignment="middle">
40028 <column alignment="center" valignment="top">
40029 <column alignment="center" valignment="top">
40030 <column alignment="center" valignment="top">
40032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40035 \begin_layout Plain Layout
40041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40044 \begin_layout Plain Layout
40050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40053 \begin_layout Plain Layout
40062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40065 \begin_layout Plain Layout
40071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40074 \begin_layout Plain Layout
40080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40083 \begin_layout Plain Layout
40091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40094 \begin_layout Plain Layout
40100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40103 \begin_layout Plain Layout
40109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40112 \begin_layout Plain Layout
40120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40123 \begin_layout Plain Layout
40129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40132 \begin_layout Plain Layout
40138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40141 \begin_layout Plain Layout
40149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40152 \begin_layout Plain Layout
40158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40161 \begin_layout Plain Layout
40163 \begin_inset space \thinspace{}
40167 \begin_inset space \thinspace{}
40175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40178 \begin_layout Plain Layout
40186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40189 \begin_layout Plain Layout
40195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40198 \begin_layout Plain Layout
40200 \begin_inset space \thinspace{}
40204 \begin_inset space \thinspace{}
40212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40215 \begin_layout Plain Layout
40223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40226 \begin_layout Plain Layout
40232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40235 \begin_layout Plain Layout
40236 scaled point (65536
40237 \begin_inset space \thinspace{}
40241 \begin_inset space \thinspace{}
40249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40252 \begin_layout Plain Layout
40260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40263 \begin_layout Plain Layout
40269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40272 \begin_layout Plain Layout
40274 \begin_inset space \thinspace{}
40278 \begin_inset space \thinspace{}
40286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40289 \begin_layout Plain Layout
40297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40300 \begin_layout Plain Layout
40306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40309 \begin_layout Plain Layout
40311 \begin_inset space \thinspace{}
40315 \begin_inset Formula $\approx$
40319 \begin_inset space \thinspace{}
40327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40330 \begin_layout Plain Layout
40338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40341 \begin_layout Plain Layout
40347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40350 \begin_layout Plain Layout
40352 \begin_inset space \thinspace{}
40356 \begin_inset space \thinspace{}
40364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40367 \begin_layout Plain Layout
40375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40378 \begin_layout Plain Layout
40384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40387 \begin_layout Plain Layout
40388 % of original image width
40393 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40396 \begin_layout Plain Layout
40404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40407 \begin_layout Plain Layout
40413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40416 \begin_layout Plain Layout
40422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40425 \begin_layout Plain Layout
40435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40438 \begin_layout Plain Layout
40444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40447 \begin_layout Plain Layout
40453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40456 \begin_layout Plain Layout
40466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40469 \begin_layout Plain Layout
40475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40478 \begin_layout Plain Layout
40484 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40487 \begin_layout Plain Layout
40497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40500 \begin_layout Plain Layout
40506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40509 \begin_layout Plain Layout
40515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40518 \begin_layout Plain Layout
40528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40531 \begin_layout Plain Layout
40537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40540 \begin_layout Plain Layout
40546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40549 \begin_layout Plain Layout
40559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40562 \begin_layout Plain Layout
40568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40571 \begin_layout Plain Layout
40577 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40580 \begin_layout Plain Layout
40590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40593 \begin_layout Plain Layout
40599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40602 \begin_layout Plain Layout
40612 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40615 \begin_layout Plain Layout
40623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40626 \begin_layout Plain Layout
40632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40635 \begin_layout Plain Layout
40645 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40648 \begin_layout Plain Layout
40656 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40659 \begin_layout Plain Layout
40665 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40668 \begin_layout Plain Layout
40670 \begin_inset space \thinspace{}
40674 \begin_inset space \thinspace{}
40682 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40685 \begin_layout Plain Layout
40704 \begin_layout Chapter
40705 Output File Formats with Graphics
40706 \begin_inset CommandInset label
40708 name "cha:Output-File-Formats"
40715 \begin_layout Section
40717 \begin_inset Index idx
40720 \begin_layout Plain Layout
40727 \begin_inset Index idx
40730 \begin_layout Plain Layout
40735 \begin_layout Plain Layout
40746 \begin_layout Plain Layout
40761 \begin_layout Standard
40762 This file type has the extension
40763 \begin_inset Quotes eld
40771 \begin_inset Quotes erd
40776 \begin_inset Quotes eld
40780 \begin_inset Quotes erd
40783 (DVI), because it is completely portable; you can move them from one machine
40784 to another without needing to do any sort of conversion.
40785 At the time when this file-format was developed, this was no matter of
40787 DVIs are used for quick previews and as pre-stage for other output formats,
40791 \begin_layout Standard
40792 \begin_inset Note Greyedout
40795 \begin_layout Plain Layout
40800 DVI-files do not contain images; they will only be a linked.
40805 So don't forget this, if you move your
40809 file to another computer.
40810 This property can also slow down your computer when you view the DVI, because
40811 the DVI-viewer has to convert the image in the background to make it visible
40812 when you scroll in the DVI.
40813 So it is recommended that you use PDF for files with many images.
40816 \begin_layout Standard
40817 You can export your document to DVI by using the menu
40819 File\SpecialChar menuseparator
40820 Export\SpecialChar menuseparator
40824 You can view your document as DVI via the
40831 \begin_layout Section
40833 \begin_inset Index idx
40836 \begin_layout Plain Layout
40837 File Formats ! PostScript
40843 \begin_inset Index idx
40846 \begin_layout Plain Layout
40851 \begin_layout Plain Layout
40862 \begin_layout Plain Layout
40877 \begin_layout Standard
40878 This file type has the extension
40879 \begin_inset Quotes eld
40887 \begin_inset Quotes erd
40891 PostScript was developed by the company
40895 as a printer language.
40896 The file therefore contains commands that the printer uses to print the
40898 PostScript can be seen as a
40899 \begin_inset Quotes eld
40902 programming language
40903 \begin_inset Quotes erd
40906 ; you can calculate with it and draw diagrams and images
40910 \begin_layout Plain Layout
40911 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
40918 \begin_inset CommandInset citation
40930 Due to this ability, the files are often bigger than PDFs.
40933 \begin_layout Standard
40934 PostScript can only contain images in the format
40935 \begin_inset Quotes eld
40938 Encapsulated PostScript
40939 \begin_inset Quotes erd
40942 (EPS, file extension
40943 \begin_inset Quotes eld
40951 \begin_inset Quotes erd
40955 As \SpecialChar LyX
40956 allows you to use any known image format in your document, it has to
40957 convert images in the background to EPS.
40959 \begin_inset space ~
40963 \begin_inset space ~
40966 images in your document, \SpecialChar LyX
40968 \begin_inset space ~
40971 conversions whenever you view or export your document.
40972 This will slow down your work flow with \SpecialChar LyX
40974 So if you plan to use PostScript, you can insert your images directly as
40975 EPS to avoid this problem.
40978 \begin_layout Standard
40979 You can export your document to PostScript using the menu
40981 File\SpecialChar menuseparator
40982 Export\SpecialChar menuseparator
40986 You can view your document as PostScript via the
40993 \begin_layout Section
40995 \begin_inset Index idx
40998 \begin_layout Plain Layout
41005 \begin_inset Index idx
41008 \begin_layout Plain Layout
41017 \begin_layout Standard
41018 This file type has the extension
41019 \begin_inset Quotes eld
41027 \begin_inset Quotes erd
41032 \begin_inset Quotes eld
41035 Portable Document Format
41036 \begin_inset Quotes erd
41039 (PDF) was developed by
41043 as a derivative of PostScript.
41044 It is more compressed and it uses fewer commands than PostScript.
41046 \begin_inset Quotes eld
41050 \begin_inset Quotes erd
41053 implies, it can be processed at any computer system and the printed output
41054 looks exactly the same.
41057 \begin_layout Standard
41058 PDF can contain images in its own PDF format, in the format
41059 \begin_inset Quotes eld
41062 Joint Photographic Experts Group
41063 \begin_inset Quotes erd
41066 (JPG, file extension
41067 \begin_inset Quotes eld
41075 \begin_inset Quotes erd
41079 \begin_inset Quotes eld
41087 \begin_inset Quotes erd
41090 ), and in the format
41091 \begin_inset Quotes eld
41094 Portable Network Graphics
41095 \begin_inset Quotes erd
41098 (PNG, file extension
41099 \begin_inset Quotes eld
41107 \begin_inset Quotes erd
41111 Nevertheless you can use any other image format, because \SpecialChar LyX
41113 in the background to one of these formats.
41114 But as described in the section about PostScript, the image conversion
41115 will slow down your work flow.
41116 So it is recommended that you use images in one of the three mentioned
41120 \begin_layout Standard
41121 You can export your document to PDF via the menu
41123 File\SpecialChar menuseparator
41126 in three different ways:
41129 \begin_layout Description
41131 \begin_inset space ~
41134 (ps2pdf) This uses the program
41138 that creates a PDF from a PostScript-version of your file.
41139 The PostScript-version is produced by the program
41143 which uses a DVI-version as intermediate step.
41144 So this export variant consists of three conversions.
41147 \begin_layout Description
41149 \begin_inset space ~
41152 (dvipdfm) This uses the program
41156 that converts your file in the background to DVI and in a second step to
41160 \begin_layout Description
41162 \begin_inset space ~
41165 (pdflatex) This uses the program
41169 that converts your file directly to PDF.
41172 \begin_layout Standard
41173 It is recommended that you use
41176 \begin_inset space ~
41185 supports all features of actual PDF-versions, is quick and works stable.
41190 is not under development and therefore a bit outdated.
41193 \begin_layout Standard
41194 You can view your document as PDF via the
41198 menu or by using a toolbar button.
41201 \begin_layout Chapter
41202 List of dvips color names
41203 \begin_inset CommandInset label
41205 name "chap:List-of-dvips-colornames"
41212 \begin_layout Standard
41213 \begin_inset Tabular
41214 <lyxtabular version="3" rows="17" columns="4">
41215 <features tabularvalignment="middle">
41216 <column alignment="left" valignment="top" width="0pt">
41217 <column alignment="left" valignment="top" width="0pt">
41218 <column alignment="left" valignment="top" width="0pt">
41219 <column alignment="left" valignment="top" width="0pt">
41221 <cell alignment="left" valignment="top" usebox="none">
41224 \begin_layout Plain Layout
41228 \begin_layout Plain Layout
41241 \begin_layout Plain Layout
41252 \begin_layout Plain Layout
41264 <cell alignment="left" valignment="top" usebox="none">
41267 \begin_layout Plain Layout
41271 \begin_layout Plain Layout
41284 \begin_layout Plain Layout
41295 \begin_layout Plain Layout
41307 <cell alignment="left" valignment="top" usebox="none">
41310 \begin_layout Plain Layout
41314 \begin_layout Plain Layout
41327 \begin_layout Plain Layout
41338 \begin_layout Plain Layout
41350 <cell alignment="left" valignment="top" usebox="none">
41353 \begin_layout Plain Layout
41357 \begin_layout Plain Layout
41370 \begin_layout Plain Layout
41381 \begin_layout Plain Layout
41395 <cell alignment="center" valignment="top" usebox="none">
41398 \begin_layout Plain Layout
41402 \begin_layout Plain Layout
41415 \begin_layout Plain Layout
41423 \begin_inset Phantom Phantom
41426 \begin_layout Plain Layout
41436 \begin_layout Plain Layout
41448 <cell alignment="center" valignment="top" usebox="none">
41451 \begin_layout Plain Layout
41455 \begin_layout Plain Layout
41468 \begin_layout Plain Layout
41476 \begin_inset Phantom Phantom
41479 \begin_layout Plain Layout
41489 \begin_layout Plain Layout
41501 <cell alignment="center" valignment="top" usebox="none">
41504 \begin_layout Plain Layout
41508 \begin_layout Plain Layout
41521 \begin_layout Plain Layout
41529 \begin_inset Phantom Phantom
41532 \begin_layout Plain Layout
41542 \begin_layout Plain Layout
41554 <cell alignment="center" valignment="top" usebox="none">
41557 \begin_layout Plain Layout
41561 \begin_layout Plain Layout
41574 \begin_layout Plain Layout
41582 \begin_inset Phantom Phantom
41585 \begin_layout Plain Layout
41595 \begin_layout Plain Layout
41609 <cell alignment="left" valignment="top" usebox="none">
41612 \begin_layout Plain Layout
41616 \begin_layout Plain Layout
41629 \begin_layout Plain Layout
41637 \begin_inset Phantom Phantom
41640 \begin_layout Plain Layout
41650 \begin_layout Plain Layout
41662 <cell alignment="left" valignment="top" usebox="none">
41665 \begin_layout Plain Layout
41669 \begin_layout Plain Layout
41682 \begin_layout Plain Layout
41690 \begin_inset Phantom Phantom
41693 \begin_layout Plain Layout
41703 \begin_layout Plain Layout
41715 <cell alignment="left" valignment="top" usebox="none">
41718 \begin_layout Plain Layout
41722 \begin_layout Plain Layout
41735 \begin_layout Plain Layout
41743 \begin_inset Phantom Phantom
41746 \begin_layout Plain Layout
41756 \begin_layout Plain Layout
41768 <cell alignment="left" valignment="top" usebox="none">
41771 \begin_layout Plain Layout
41775 \begin_layout Plain Layout
41788 \begin_layout Plain Layout
41796 \begin_inset Phantom Phantom
41799 \begin_layout Plain Layout
41809 \begin_layout Plain Layout
41823 <cell alignment="left" valignment="top" usebox="none">
41826 \begin_layout Plain Layout
41830 \begin_layout Plain Layout
41843 \begin_layout Plain Layout
41851 \begin_inset Phantom Phantom
41854 \begin_layout Plain Layout
41864 \begin_layout Plain Layout
41876 <cell alignment="left" valignment="top" usebox="none">
41879 \begin_layout Plain Layout
41883 \begin_layout Plain Layout
41896 \begin_layout Plain Layout
41904 \begin_inset Phantom Phantom
41907 \begin_layout Plain Layout
41917 \begin_layout Plain Layout
41929 <cell alignment="left" valignment="top" usebox="none">
41932 \begin_layout Plain Layout
41936 \begin_layout Plain Layout
41949 \begin_layout Plain Layout
41957 \begin_inset Phantom Phantom
41960 \begin_layout Plain Layout
41970 \begin_layout Plain Layout
41982 <cell alignment="left" valignment="top" usebox="none">
41985 \begin_layout Plain Layout
41989 \begin_layout Plain Layout
42002 \begin_layout Plain Layout
42010 \begin_inset Phantom Phantom
42013 \begin_layout Plain Layout
42023 \begin_layout Plain Layout
42037 <cell alignment="left" valignment="top" usebox="none">
42040 \begin_layout Plain Layout
42044 \begin_layout Plain Layout
42057 \begin_layout Plain Layout
42065 \begin_inset Phantom Phantom
42068 \begin_layout Plain Layout
42078 \begin_layout Plain Layout
42090 <cell alignment="left" valignment="top" usebox="none">
42093 \begin_layout Plain Layout
42097 \begin_layout Plain Layout
42110 \begin_layout Plain Layout
42118 \begin_inset Phantom Phantom
42121 \begin_layout Plain Layout
42131 \begin_layout Plain Layout
42143 <cell alignment="left" valignment="top" usebox="none">
42146 \begin_layout Plain Layout
42150 \begin_layout Plain Layout
42163 \begin_layout Plain Layout
42171 \begin_inset Phantom Phantom
42174 \begin_layout Plain Layout
42184 \begin_layout Plain Layout
42196 <cell alignment="left" valignment="top" usebox="none">
42199 \begin_layout Plain Layout
42203 \begin_layout Plain Layout
42216 \begin_layout Plain Layout
42224 \begin_inset Phantom Phantom
42227 \begin_layout Plain Layout
42237 \begin_layout Plain Layout
42251 <cell alignment="left" valignment="top" usebox="none">
42254 \begin_layout Plain Layout
42258 \begin_layout Plain Layout
42271 \begin_layout Plain Layout
42279 \begin_inset Phantom Phantom
42282 \begin_layout Plain Layout
42292 \begin_layout Plain Layout
42304 <cell alignment="left" valignment="top" usebox="none">
42307 \begin_layout Plain Layout
42311 \begin_layout Plain Layout
42324 \begin_layout Plain Layout
42332 \begin_inset Phantom Phantom
42335 \begin_layout Plain Layout
42345 \begin_layout Plain Layout
42357 <cell alignment="left" valignment="top" usebox="none">
42360 \begin_layout Plain Layout
42364 \begin_layout Plain Layout
42377 \begin_layout Plain Layout
42385 \begin_inset Phantom Phantom
42388 \begin_layout Plain Layout
42398 \begin_layout Plain Layout
42410 <cell alignment="left" valignment="top" usebox="none">
42413 \begin_layout Plain Layout
42417 \begin_layout Plain Layout
42430 \begin_layout Plain Layout
42438 \begin_inset Phantom Phantom
42441 \begin_layout Plain Layout
42451 \begin_layout Plain Layout
42465 <cell alignment="center" valignment="top" usebox="none">
42468 \begin_layout Plain Layout
42472 \begin_layout Plain Layout
42485 \begin_layout Plain Layout
42493 \begin_inset Phantom Phantom
42496 \begin_layout Plain Layout
42506 \begin_layout Plain Layout
42518 <cell alignment="center" valignment="top" usebox="none">
42521 \begin_layout Plain Layout
42525 \begin_layout Plain Layout
42538 \begin_layout Plain Layout
42546 \begin_inset Phantom Phantom
42549 \begin_layout Plain Layout
42559 \begin_layout Plain Layout
42571 <cell alignment="center" valignment="top" usebox="none">
42574 \begin_layout Plain Layout
42578 \begin_layout Plain Layout
42591 \begin_layout Plain Layout
42599 \begin_inset Phantom Phantom
42602 \begin_layout Plain Layout
42612 \begin_layout Plain Layout
42624 <cell alignment="center" valignment="top" usebox="none">
42627 \begin_layout Plain Layout
42631 \begin_layout Plain Layout
42644 \begin_layout Plain Layout
42652 \begin_inset Phantom Phantom
42655 \begin_layout Plain Layout
42665 \begin_layout Plain Layout
42679 <cell alignment="left" valignment="top" usebox="none">
42682 \begin_layout Plain Layout
42686 \begin_layout Plain Layout
42699 \begin_layout Plain Layout
42707 \begin_inset Phantom Phantom
42710 \begin_layout Plain Layout
42720 \begin_layout Plain Layout
42732 <cell alignment="left" valignment="top" usebox="none">
42735 \begin_layout Plain Layout
42739 \begin_layout Plain Layout
42752 \begin_layout Plain Layout
42760 \begin_inset Phantom Phantom
42763 \begin_layout Plain Layout
42773 \begin_layout Plain Layout
42785 <cell alignment="left" valignment="top" usebox="none">
42788 \begin_layout Plain Layout
42792 \begin_layout Plain Layout
42805 \begin_layout Plain Layout
42813 \begin_inset Phantom Phantom
42816 \begin_layout Plain Layout
42826 \begin_layout Plain Layout
42838 <cell alignment="left" valignment="top" usebox="none">
42841 \begin_layout Plain Layout
42845 \begin_layout Plain Layout
42858 \begin_layout Plain Layout
42866 \begin_inset Phantom Phantom
42869 \begin_layout Plain Layout
42879 \begin_layout Plain Layout
42893 <cell alignment="left" valignment="top" usebox="none">
42896 \begin_layout Plain Layout
42900 \begin_layout Plain Layout
42913 \begin_layout Plain Layout
42921 \begin_inset Phantom Phantom
42924 \begin_layout Plain Layout
42934 \begin_layout Plain Layout
42946 <cell alignment="left" valignment="top" usebox="none">
42949 \begin_layout Plain Layout
42953 \begin_layout Plain Layout
42966 \begin_layout Plain Layout
42974 \begin_inset Phantom Phantom
42977 \begin_layout Plain Layout
42987 \begin_layout Plain Layout
42999 <cell alignment="left" valignment="top" usebox="none">
43002 \begin_layout Plain Layout
43006 \begin_layout Plain Layout
43019 \begin_layout Plain Layout
43027 \begin_inset Phantom Phantom
43030 \begin_layout Plain Layout
43040 \begin_layout Plain Layout
43052 <cell alignment="left" valignment="top" usebox="none">
43055 \begin_layout Plain Layout
43059 \begin_layout Plain Layout
43072 \begin_layout Plain Layout
43080 \begin_inset Phantom Phantom
43083 \begin_layout Plain Layout
43093 \begin_layout Plain Layout
43107 <cell alignment="left" valignment="top" usebox="none">
43110 \begin_layout Plain Layout
43114 \begin_layout Plain Layout
43127 \begin_layout Plain Layout
43135 \begin_inset Phantom Phantom
43138 \begin_layout Plain Layout
43148 \begin_layout Plain Layout
43160 <cell alignment="left" valignment="top" usebox="none">
43163 \begin_layout Plain Layout
43167 \begin_layout Plain Layout
43180 \begin_layout Plain Layout
43188 \begin_inset Phantom Phantom
43191 \begin_layout Plain Layout
43201 \begin_layout Plain Layout
43213 <cell alignment="left" valignment="top" usebox="none">
43216 \begin_layout Plain Layout
43220 \begin_layout Plain Layout
43233 \begin_layout Plain Layout
43241 \begin_inset Phantom Phantom
43244 \begin_layout Plain Layout
43254 \begin_layout Plain Layout
43266 <cell alignment="left" valignment="top" usebox="none">
43269 \begin_layout Plain Layout
43273 \begin_layout Plain Layout
43286 \begin_layout Plain Layout
43294 \begin_inset Phantom Phantom
43297 \begin_layout Plain Layout
43307 \begin_layout Plain Layout
43321 <cell alignment="left" valignment="top" usebox="none">
43324 \begin_layout Plain Layout
43328 \begin_layout Plain Layout
43341 \begin_layout Plain Layout
43349 \begin_inset Phantom Phantom
43352 \begin_layout Plain Layout
43362 \begin_layout Plain Layout
43374 <cell alignment="left" valignment="top" usebox="none">
43377 \begin_layout Plain Layout
43381 \begin_layout Plain Layout
43394 \begin_layout Plain Layout
43402 \begin_inset Phantom Phantom
43405 \begin_layout Plain Layout
43415 \begin_layout Plain Layout
43427 <cell alignment="left" valignment="top" usebox="none">
43430 \begin_layout Plain Layout
43434 \begin_layout Plain Layout
43447 \begin_layout Plain Layout
43455 \begin_inset Phantom Phantom
43458 \begin_layout Plain Layout
43468 \begin_layout Plain Layout
43480 <cell alignment="left" valignment="top" usebox="none">
43483 \begin_layout Plain Layout
43487 \begin_layout Plain Layout
43500 \begin_layout Plain Layout
43508 \begin_inset Phantom Phantom
43511 \begin_layout Plain Layout
43521 \begin_layout Plain Layout
43535 <cell alignment="left" valignment="top" usebox="none">
43538 \begin_layout Plain Layout
43542 \begin_layout Plain Layout
43555 \begin_layout Plain Layout
43563 \begin_inset Phantom Phantom
43566 \begin_layout Plain Layout
43576 \begin_layout Plain Layout
43588 <cell alignment="left" valignment="top" usebox="none">
43591 \begin_layout Plain Layout
43595 \begin_layout Plain Layout
43608 \begin_layout Plain Layout
43616 \begin_inset Phantom Phantom
43619 \begin_layout Plain Layout
43629 \begin_layout Plain Layout
43641 <cell alignment="left" valignment="top" usebox="none">
43644 \begin_layout Plain Layout
43648 \begin_layout Plain Layout
43661 \begin_layout Plain Layout
43669 \begin_inset Phantom Phantom
43672 \begin_layout Plain Layout
43682 \begin_layout Plain Layout
43694 <cell alignment="left" valignment="top" usebox="none">
43697 \begin_layout Plain Layout
43701 \begin_layout Plain Layout
43714 \begin_layout Plain Layout
43722 \begin_inset Phantom Phantom
43725 \begin_layout Plain Layout
43735 \begin_layout Plain Layout
43749 <cell alignment="left" valignment="top" usebox="none">
43752 \begin_layout Plain Layout
43756 \begin_layout Plain Layout
43769 \begin_layout Plain Layout
43777 \begin_inset Phantom Phantom
43780 \begin_layout Plain Layout
43790 \begin_layout Plain Layout
43802 <cell alignment="left" valignment="top" usebox="none">
43805 \begin_layout Plain Layout
43809 \begin_layout Plain Layout
43822 \begin_layout Plain Layout
43830 \begin_inset Phantom Phantom
43833 \begin_layout Plain Layout
43843 \begin_layout Plain Layout
43855 <cell alignment="left" valignment="top" usebox="none">
43858 \begin_layout Plain Layout
43862 \begin_layout Plain Layout
43875 \begin_layout Plain Layout
43883 \begin_inset Phantom Phantom
43886 \begin_layout Plain Layout
43896 \begin_layout Plain Layout
43908 <cell alignment="left" valignment="top" usebox="none">
43911 \begin_layout Plain Layout
43915 \begin_layout Plain Layout
43928 \begin_layout Plain Layout
43936 \begin_inset Phantom Phantom
43939 \begin_layout Plain Layout
43949 \begin_layout Plain Layout
43963 <cell alignment="left" valignment="top" usebox="none">
43966 \begin_layout Plain Layout
43970 \begin_layout Plain Layout
43983 \begin_layout Plain Layout
43991 \begin_inset Phantom Phantom
43994 \begin_layout Plain Layout
44004 \begin_layout Plain Layout
44016 <cell alignment="left" valignment="top" usebox="none">
44019 \begin_layout Plain Layout
44023 \begin_layout Plain Layout
44036 \begin_layout Plain Layout
44044 \begin_inset Phantom Phantom
44047 \begin_layout Plain Layout
44057 \begin_layout Plain Layout
44069 <cell alignment="left" valignment="top" usebox="none">
44072 \begin_layout Plain Layout
44076 \begin_layout Plain Layout
44089 \begin_layout Plain Layout
44097 \begin_inset Phantom Phantom
44100 \begin_layout Plain Layout
44110 \begin_layout Plain Layout
44122 <cell alignment="left" valignment="top" usebox="none">
44125 \begin_layout Plain Layout
44129 \begin_layout Plain Layout
44142 \begin_layout Plain Layout
44150 \begin_inset Phantom Phantom
44153 \begin_layout Plain Layout
44163 \begin_layout Plain Layout
44177 <cell alignment="left" valignment="top" usebox="none">
44180 \begin_layout Plain Layout
44184 \begin_layout Plain Layout
44197 \begin_layout Plain Layout
44205 \begin_inset Phantom Phantom
44208 \begin_layout Plain Layout
44218 \begin_layout Plain Layout
44230 <cell alignment="left" valignment="top" usebox="none">
44233 \begin_layout Plain Layout
44237 \begin_layout Plain Layout
44250 \begin_layout Plain Layout
44258 \begin_inset Phantom Phantom
44261 \begin_layout Plain Layout
44271 \begin_layout Plain Layout
44283 <cell alignment="left" valignment="top" usebox="none">
44286 \begin_layout Plain Layout
44290 \begin_layout Plain Layout
44303 \begin_layout Plain Layout
44311 \begin_inset Phantom Phantom
44314 \begin_layout Plain Layout
44324 \begin_layout Plain Layout
44336 <cell alignment="left" valignment="top" usebox="none">
44339 \begin_layout Plain Layout
44343 \begin_layout Plain Layout
44356 \begin_layout Plain Layout
44364 \begin_inset Phantom Phantom
44367 \begin_layout Plain Layout
44377 \begin_layout Plain Layout
44391 <cell alignment="left" valignment="top" usebox="none">
44394 \begin_layout Plain Layout
44398 \begin_layout Plain Layout
44411 \begin_layout Plain Layout
44419 \begin_inset Phantom Phantom
44422 \begin_layout Plain Layout
44432 \begin_layout Plain Layout
44444 <cell alignment="left" valignment="top" usebox="none">
44447 \begin_layout Plain Layout
44451 \begin_layout Plain Layout
44464 \begin_layout Plain Layout
44472 \begin_inset Phantom Phantom
44475 \begin_layout Plain Layout
44485 \begin_layout Plain Layout
44497 <cell alignment="left" valignment="top" usebox="none">
44500 \begin_layout Plain Layout
44504 \begin_layout Plain Layout
44517 \begin_layout Plain Layout
44525 \begin_inset Phantom Phantom
44528 \begin_layout Plain Layout
44538 \begin_layout Plain Layout
44550 <cell alignment="left" valignment="top" usebox="none">
44553 \begin_layout Plain Layout
44557 \begin_layout Plain Layout
44570 \begin_layout Plain Layout
44578 \begin_inset Phantom Phantom
44581 \begin_layout Plain Layout
44591 \begin_layout Plain Layout
44605 <cell alignment="left" valignment="top" usebox="none">
44608 \begin_layout Plain Layout
44612 \begin_layout Plain Layout
44625 \begin_layout Plain Layout
44633 \begin_inset Phantom Phantom
44636 \begin_layout Plain Layout
44646 \begin_layout Plain Layout
44658 <cell alignment="left" valignment="top" usebox="none">
44661 \begin_layout Plain Layout
44667 <cell alignment="left" valignment="top" usebox="none">
44670 \begin_layout Plain Layout
44676 <cell alignment="left" valignment="top" usebox="none">
44679 \begin_layout Plain Layout
44693 \begin_layout Chapter
44694 Explanation of Equation
44695 \begin_inset space ~
44699 \begin_inset CommandInset ref
44706 \begin_inset CommandInset label
44708 name "cha:Explanation-of-Equation"
44715 \begin_layout Standard
44716 We can calculate the total width of
44721 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44725 \begin_inset Formula
44727 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44733 \begin_inset Formula $W_{g\,n}$
44736 is the given width of all cells,
44742 is the \SpecialChar LaTeX
44743 -length between the cell text and the cell border (its default value
44745 \begin_inset space \thinspace{}
44755 is the thickness of the cell border line, the default is 0.4
44756 \begin_inset space \thinspace{}
44762 \begin_layout Standard
44764 \begin_inset space ~
44768 \begin_inset CommandInset ref
44770 reference "eq:Wtot_n"
44774 , the total width of a multicolumn
44775 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
44779 \begin_inset Formula
44781 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44789 \begin_layout Standard
44790 By setting equation
44791 \begin_inset space ~
44795 \begin_inset CommandInset ref
44797 reference "eq:Wtot_n"
44802 \begin_inset CommandInset ref
44804 reference "eq:Wtot_mult"
44808 equal we can calculate the needed given width
44809 \begin_inset Formula $W_{g\,n}$
44816 columns are spanned, so that each column has a total width of
44817 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
44821 \begin_inset Formula
44823 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
44831 \begin_layout Bibliography
44832 \begin_inset CommandInset bibitem
44833 LatexCommand bibitem
44834 key "latexcompanion"
44838 Frank Mittelbach and Michel Goossens:
44840 The \SpecialChar LaTeX
44841 Companion Second Edition.
44844 Addison-Wesley, 2004
44847 \begin_layout Bibliography
44848 \begin_inset CommandInset bibitem
44849 LatexCommand bibitem
44854 Helmut Kopka and Patrick W.
44857 A Guide to \SpecialChar LaTeX
44861 Addison-Wesley, 2003
44864 \begin_layout Bibliography
44865 \begin_inset CommandInset bibitem
44866 LatexCommand bibitem
44874 : A Document Preparation System.
44877 Addison-Wesley, second edition, 1994
44880 \begin_layout Bibliography
44881 \begin_inset CommandInset bibitem
44882 LatexCommand bibitem
44887 Documentation of the \SpecialChar LaTeX
44891 \begin_inset CommandInset href
44894 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
44901 \begin_inset Index idx
44904 \begin_layout Plain Layout
44906 -packages ! arydshln
44914 \begin_layout Bibliography
44915 \begin_inset CommandInset bibitem
44916 LatexCommand bibitem
44921 Documentation of the \SpecialChar LaTeX
44925 \begin_inset CommandInset href
44928 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
44935 \begin_inset Index idx
44938 \begin_layout Plain Layout
44940 -packages ! booktabs
44948 \begin_layout Bibliography
44949 \begin_inset CommandInset bibitem
44950 LatexCommand bibitem
44955 Documentation of the \SpecialChar LaTeX
44959 \begin_inset CommandInset href
44962 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
44969 \begin_inset Index idx
44972 \begin_layout Plain Layout
44974 -packages ! caption
44982 \begin_layout Bibliography
44983 \begin_inset CommandInset bibitem
44984 LatexCommand bibitem
44989 Documentation of the \SpecialChar LaTeX
44993 \begin_inset CommandInset href
44996 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45003 \begin_inset Index idx
45006 \begin_layout Plain Layout
45008 -packages ! diagbox
45016 \begin_layout Bibliography
45017 \begin_inset CommandInset bibitem
45018 LatexCommand bibitem
45023 Documentation of the \SpecialChar LaTeX
45027 \begin_inset CommandInset href
45030 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45037 \begin_inset Index idx
45040 \begin_layout Plain Layout
45042 -packages ! endfloat
45050 \begin_layout Bibliography
45051 \begin_inset CommandInset bibitem
45052 LatexCommand bibitem
45057 Documentation of the \SpecialChar LaTeX
45061 \begin_inset CommandInset href
45064 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45071 \begin_inset Index idx
45074 \begin_layout Plain Layout
45076 -packages ! footmisc
45084 \begin_layout Bibliography
45085 \begin_inset CommandInset bibitem
45086 LatexCommand bibitem
45091 Documentation of the \SpecialChar LaTeX
45095 \begin_inset CommandInset href
45098 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45105 \begin_inset Index idx
45108 \begin_layout Plain Layout
45110 -packages ! hyperref
45118 \begin_layout Bibliography
45119 \begin_inset CommandInset bibitem
45120 LatexCommand bibitem
45125 Documentation of the \SpecialChar LaTeX
45129 \begin_inset CommandInset href
45132 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45139 \begin_inset Index idx
45142 \begin_layout Plain Layout
45144 -packages ! hyperref
45152 \begin_layout Bibliography
45153 \begin_inset CommandInset bibitem
45154 LatexCommand bibitem
45159 Documentation of the \SpecialChar LaTeX
45163 \begin_inset CommandInset href
45166 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45173 \begin_inset Index idx
45176 \begin_layout Plain Layout
45178 -packages ! KOMA-Script
45186 \begin_layout Bibliography
45187 \begin_inset CommandInset bibitem
45188 LatexCommand bibitem
45193 Documentation of the \SpecialChar LaTeX
45197 \begin_inset CommandInset href
45200 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45207 \begin_inset CommandInset href
45210 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45215 \begin_inset Index idx
45218 \begin_layout Plain Layout
45220 -packages ! lettrine
45228 \begin_layout Bibliography
45229 \begin_inset CommandInset bibitem
45230 LatexCommand bibitem
45235 Documentation of the \SpecialChar LaTeX
45239 \begin_inset CommandInset href
45242 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45249 \begin_inset Index idx
45252 \begin_layout Plain Layout
45254 -packages ! listings
45262 \begin_layout Bibliography
45263 \begin_inset CommandInset bibitem
45264 LatexCommand bibitem
45269 Documentation of the \SpecialChar LaTeX
45273 \begin_inset CommandInset href
45276 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45283 \begin_inset Index idx
45286 \begin_layout Plain Layout
45288 -packages ! marginnote
45296 \begin_layout Bibliography
45297 \begin_inset CommandInset bibitem
45298 LatexCommand bibitem
45303 Documentation of the \SpecialChar LaTeX
45307 \begin_inset CommandInset href
45310 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45317 \begin_inset Index idx
45320 \begin_layout Plain Layout
45322 -packages ! pdfpages
45330 \begin_layout Bibliography
45331 \begin_inset CommandInset bibitem
45332 LatexCommand bibitem
45337 Documentation of the \SpecialChar LaTeX
45341 \begin_inset CommandInset href
45344 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45351 \begin_inset Index idx
45354 \begin_layout Plain Layout
45356 -packages ! prettyref
45364 \begin_layout Bibliography
45365 \begin_inset CommandInset bibitem
45366 LatexCommand bibitem
45371 Web page of the \SpecialChar LaTeX
45375 \begin_inset CommandInset href
45378 target "http://tug.org/PSTricks/"
45385 \begin_inset Index idx
45388 \begin_layout Plain Layout
45390 -packages ! PSTricks
45398 \begin_layout Bibliography
45399 \begin_inset CommandInset bibitem
45400 LatexCommand bibitem
45405 Documentation of the \SpecialChar LaTeX
45409 \begin_inset CommandInset href
45412 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45419 \begin_inset Index idx
45422 \begin_layout Plain Layout
45424 -packages ! refstyle
45432 \begin_layout Bibliography
45433 \begin_inset CommandInset bibitem
45434 LatexCommand bibitem
45439 Documentation of the \SpecialChar LaTeX
45443 \begin_inset CommandInset href
45446 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45453 \begin_inset Index idx
45456 \begin_layout Plain Layout
45458 -packages ! sidecap
45466 \begin_layout Bibliography
45467 \begin_inset CommandInset bibitem
45468 LatexCommand bibitem
45474 \begin_inset CommandInset href
45477 target "http://wiki.lyx.org/LyX/NewInLyX20"
45481 about new features in
45489 \begin_layout Standard
45490 \begin_inset CommandInset index_print
45491 LatexCommand printindex