1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
5 \origin /systemlyxdir/doc/
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 Standard
25098 \begin_inset Note Greyedout
25101 \begin_layout Plain Layout
25106 Due to a bug in the \SpecialChar LaTeX
25111 version 1.4w, some cross-reference formats will cause \SpecialChar LaTeX
25112 errors for document
25113 languages that make the period character active (like French).
25114 For a workaround, see
25115 \begin_inset Newline newline
25119 \begin_inset CommandInset href
25121 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
25133 \begin_layout Subsection
25134 Automatic Reference Naming
25135 \begin_inset Index idx
25138 \begin_layout Plain Layout
25139 References ! Automatic Reference Naming
25147 \begin_layout Standard
25148 The \SpecialChar LaTeX
25154 \begin_inset Index idx
25157 \begin_layout Plain Layout
25159 -packages ! hyperref
25164 , that is enabled in the
25172 dialog, provides a very useful feature that cross-references automatically
25173 include the name of the referenced floats (or text parts like
25178 So you will save having to write e.
25179 \begin_inset space \thinspace{}
25183 \begin_inset space \space{}
25187 \begin_inset Quotes eld
25191 \begin_inset Quotes erd
25194 before every reference to a figure.
25195 To use this feature, enable
25199 and insert this line to the \SpecialChar LaTeX
25203 \begin_layout Standard
25219 \begin_layout Standard
25220 When you prefer other reference names than the default ones, for example
25221 you want instead of
25222 \begin_inset Quotes eld
25226 \begin_inset Quotes erd
25230 \begin_inset Quotes eld
25234 \begin_inset space \thinspace{}
25238 \begin_inset Quotes eld
25241 , you can redefine the name by inserting this in the preamble:
25244 \begin_layout Standard
25255 sectionautorefname}
25256 \begin_inset Newline newline
25260 \begin_inset Phantom HPhantom
25263 \begin_layout Plain Layout
25266 \begin_inset space ~
25279 \begin_layout Standard
25280 When you are using another document language than English, replace
25281 \begin_inset Newline newline
25296 , where *** is the name of the language used.
25299 \begin_layout Standard
25300 To get automatic names, but not for certain reference types, for example
25301 not for equations, use this preamble code:
25304 \begin_layout Standard
25315 equationautorefname}[1]{}}
25318 \begin_layout Standard
25319 More about this topic can be found in
25324 \begin_inset CommandInset citation
25333 \begin_layout Standard
25334 \begin_inset Note Greyedout
25337 \begin_layout Plain Layout
25342 Automatic reference naming cannot be used when you use cross-references
25346 \begin_inset space ~
25351 style, as described in section
25352 \begin_inset space ~
25356 \begin_inset CommandInset ref
25358 reference "subsec:Cross-Reference-Formats"
25370 \begin_layout Standard
25375 manual is an example where automatic reference naming is used.
25378 \begin_layout Subsection
25380 \begin_inset CommandInset label
25382 name "subsec:Reference-Position"
25387 \begin_inset Index idx
25390 \begin_layout Plain Layout
25391 References ! Reference Position
25399 \begin_layout Standard
25405 \begin_inset Index idx
25408 \begin_layout Plain Layout
25410 -packages ! hyperref
25423 dialog to link cross-references in the output, you will see that clicking
25424 on an image float reference jumps to the image label.
25425 The caption will be the first text part on the screen, so that you cannot
25426 see the image without scrolling.
25427 This is because the reference link anchor is placed at the position of
25429 With the use of the package
25434 \begin_inset Index idx
25437 \begin_layout Plain Layout
25444 , which is part of the \SpecialChar LaTeX
25450 \begin_inset Index idx
25453 \begin_layout Plain Layout
25455 -packages ! oberdiek
25460 , the link anchor is placed at the beginning of a float.
25461 To use this feature for figure floats, load
25465 in the document preamble with the line
25468 \begin_layout Standard
25473 usepackage[figure]{hypcap}
25476 \begin_layout Standard
25481 for all float types but this is not recommended for stability reasons.
25482 For more information, have a look at
25487 \begin_inset CommandInset citation
25496 \begin_layout Standard
25497 \begin_inset Note Greyedout
25500 \begin_layout Plain Layout
25509 has no effect on references to subfigures.
25517 \begin_layout Section
25519 \begin_inset CommandInset label
25521 name "sec:Float-Placement"
25526 \begin_inset Index idx
25529 \begin_layout Plain Layout
25538 \begin_layout Standard
25539 Right-clicking on a float-box and clicking on
25543 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25545 positioning the float.
25546 \begin_inset Newline newline
25552 \begin_inset space ~
25557 is only useful for two-column documents: If you select it, the float will
25558 span both columns on the page instead of being confined to just one.
25559 \begin_inset Newline newline
25565 \begin_inset space ~
25570 is used to rotate floats, see section
25571 \begin_inset CommandInset ref
25573 reference "sec:Rotated-Floats"
25580 \begin_layout Standard
25581 You can use one or more of the following options in the float dialog to
25582 set the placement for a particular float when you uncheck the option
25585 \begin_inset space ~
25589 \begin_inset space ~
25597 \begin_layout Description
25599 \begin_inset space ~
25603 \begin_inset space ~
25606 possible try to place the float on the position where it has been inserted
25609 \begin_layout Description
25611 \begin_inset space ~
25615 \begin_inset space ~
25618 page try to place the float at the top of the current page
25621 \begin_layout Description
25623 \begin_inset space ~
25627 \begin_inset space ~
25630 page try to place the float at the bottom of the current page
25633 \begin_layout Description
25635 \begin_inset space ~
25639 \begin_inset space ~
25642 floats try to place the float on its own page
25645 \begin_layout Standard
25646 The order of the above option is
25650 used by \SpecialChar LaTeX
25652 That means, if you use the default placement, \SpecialChar LaTeX
25656 \begin_inset space ~
25660 \begin_inset space ~
25668 \begin_inset space ~
25672 \begin_inset space ~
25677 , and then the others.
25678 If you do not use the default, \SpecialChar LaTeX
25679 will try only the checked options but in
25682 \begin_inset space ~
25685 placements is possible the procedure is internally repeated trying to put
25686 the float on the following page.
25689 \begin_layout Standard
25690 By default, each option has its own rules:
25693 \begin_layout Labeling
25694 \labelwidthstring 00.00.0000
25698 \begin_inset space ~
25702 \begin_inset space ~
25707 only floats occupying less than 70
25708 \begin_inset space \thinspace{}
25711 % of the page can be placed at the top of a page (
25720 \begin_layout Labeling
25721 \labelwidthstring 00.00.0000
25725 \begin_inset space ~
25729 \begin_inset space ~
25734 : only floats occupying less than 30
25735 \begin_inset space \thinspace{}
25738 % of the page can be placed at the bottom of a page.
25748 \begin_layout Labeling
25749 \labelwidthstring 00.00.0000
25753 \begin_inset space ~
25757 \begin_inset space ~
25762 : only if more than 50
25763 \begin_inset space \thinspace{}
25766 % of the page is occupied by floats, several floats can be set together
25777 \begin_layout Standard
25778 If you don't like these rules, you can ignore them by using the additional
25782 \begin_inset space ~
25787 \begin_inset space ~
25793 \begin_inset Newline newline
25796 You can also redefine the rules with \SpecialChar LaTeX
25797 -commands that are given in parentheses
25798 after the rules description above.
25799 To increase for example the often too small default of the bottom-rule
25801 \begin_inset space \thinspace{}
25804 % of the page, add this line to your document preamble:
25807 \begin_layout Standard
25814 bottomfraction}{0.5}
25817 \begin_layout Standard
25818 Sometimes you might need, under all circumstances, a float to be placed
25819 exactly at the position where it is inserted.
25820 For this case you can use the option
25823 \begin_inset space ~
25829 Use this option very rarely and only if the document is almost ready to
25830 be printed, because the float is then no longer able to
25831 \begin_inset Quotes eld
25835 \begin_inset Quotes erd
25838 when you change your document and this will often destroy the page layout.
25841 \begin_layout Standard
25842 There are no placement options for text wrap floats, because they are always
25843 surrounded by the text of a certain paragraph.
25844 \begin_inset VSpace bigskip
25850 \begin_layout Standard
25851 Sometimes you have the problem that a float is placed at the top of a page
25852 while its corresponding section starts at the middle of the page, so that
25853 the reader could think the float is part of the previous section.
25854 To avoid this the \SpecialChar LaTeX
25862 It suppresses a given float placement for the page where it is inserted
25863 and can therefore be used to avoid floats being set before a section starts.
25864 To get this, add these commands to your document preamble:
25867 \begin_layout Standard
25877 \begin_inset Newline newline
25891 \begin_layout Standard
25892 You can define the same for all section headings, like chapters and subsections.
25893 This definition is not recommended to be used for small text parts like
25894 subsubsections because \SpecialChar LaTeX
25895 may then have problems finding a suitable placement.
25898 \begin_layout Standard
25899 \begin_inset VSpace bigskip
25902 In some cases it is required to have all figures/tables at the end of the
25904 For this purpose the \SpecialChar LaTeX
25910 \begin_inset Index idx
25913 \begin_layout Plain Layout
25915 -packages ! endfloat
25921 It puts all figure and table floats at the end of the document into their
25923 At the original float position a text hint like
25924 \begin_inset Quotes eld
25930 \begin_inset space ~
25936 \begin_inset Quotes erd
25940 The endfloat-package is loaded in the preamble with the line
25943 \begin_layout Standard
25948 usepackage[options]{endfloat}
25951 \begin_layout Standard
25952 There are various package options to format the created figure/table sections.
25953 For more information we refer you to the
25958 \begin_inset CommandInset citation
25965 \begin_inset Newline newline
25969 \begin_inset Note Greyedout
25972 \begin_layout Plain Layout
25977 doesn't provide an automatic translation for the text hint, you have to
25978 do this manually, see section
25979 \begin_inset space ~
25983 \begin_inset CommandInset citation
25995 \begin_inset Newline newline
25999 \begin_inset Note Greyedout
26002 \begin_layout Plain Layout
26007 There is currently a bug in
26011 when the caption contains a German
26012 \begin_inset Quotes eld
26016 \begin_inset Quotes erd
26020 Use in this case the command
26021 \begin_inset Quotes eld
26031 \begin_inset Quotes erd
26034 in \SpecialChar TeX
26036 \begin_inset Quotes eld
26040 \begin_inset Quotes erd
26051 \begin_layout Standard
26052 \begin_inset VSpace bigskip
26055 For more details about float placements, have a look at \SpecialChar LaTeX
26057 \begin_inset CommandInset citation
26059 key "latexcompanion,latexguide,latexbook"
26066 \begin_layout Section
26068 \begin_inset CommandInset label
26070 name "sec:Rotated-Floats"
26075 \begin_inset Index idx
26078 \begin_layout Plain Layout
26087 \begin_layout Standard
26088 Especially for wide tables you might have floats rotated.
26089 To rotate a whole float including the caption, right-click on the float-box
26093 \begin_inset space ~
26101 \begin_layout Standard
26102 Rotated floats are always placed on a page of their own (or column of their
26103 own; in case you have a multi-column document).
26104 You can let them span several columns using the float settings option
26107 \begin_inset space ~
26113 Floats are rotated so that you can read them from the outside margin.
26114 To force a certain rotation direction for all pages, you can add either
26123 to the document class options.
26126 \begin_layout Standard
26127 Referencing rotated floats is the same as for normal floats, the caption
26128 format is also the same: Table
26129 \begin_inset space ~
26133 \begin_inset CommandInset ref
26135 reference "tab:Rotated-table"
26139 is an example of a rotated table float.
26142 \begin_layout Standard
26143 \begin_inset Note Greyedout
26146 \begin_layout Plain Layout
26151 Not all DVI-viewers are able to display rotated floats.
26159 \begin_layout Standard
26160 \begin_inset Float table
26165 \begin_layout Plain Layout
26166 \begin_inset Caption Standard
26168 \begin_layout Plain Layout
26169 \begin_inset CommandInset label
26171 name "tab:Rotated-table"
26183 \begin_layout Plain Layout
26185 \begin_inset Tabular
26186 <lyxtabular version="3" rows="1" columns="5">
26187 <features tabularvalignment="middle">
26188 <column alignment="center" valignment="top">
26189 <column alignment="center" valignment="top">
26190 <column alignment="center" valignment="top">
26191 <column alignment="center" valignment="top">
26192 <column alignment="center" valignment="top">
26194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26197 \begin_layout Plain Layout
26203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26206 \begin_layout Plain Layout
26212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26215 \begin_layout Plain Layout
26221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26224 \begin_layout Plain Layout
26230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26233 \begin_layout Plain Layout
26252 \begin_layout Section
26254 \begin_inset Index idx
26257 \begin_layout Plain Layout
26266 \begin_layout Standard
26267 Subfloats are for example used when a figure consists of several images.
26268 They are created by inserting a float into an existing float.
26269 The placement of the subfloats can be controlled in the same way as for
26270 paragraphs as shown in table
26271 \begin_inset space ~
26275 \begin_inset CommandInset ref
26277 reference "tab:Two-subtables-side"
26282 \begin_inset CommandInset ref
26284 reference "tab:Two-subtables-upon"
26291 \begin_layout Standard
26292 Referencing subfloats works as for normal floats: Table
26293 \begin_inset space ~
26297 \begin_inset CommandInset ref
26299 reference "tab:This-is-subtable-a"
26304 \begin_inset CommandInset ref
26306 reference "tab:This-is-subtable-b"
26310 are subtables of table
26311 \begin_inset space ~
26315 \begin_inset CommandInset ref
26317 reference "tab:Two-subtables-side"
26324 \begin_layout Standard
26325 \begin_inset Float table
26330 \begin_layout Plain Layout
26331 \begin_inset Caption Standard
26333 \begin_layout Plain Layout
26334 \begin_inset CommandInset label
26336 name "tab:Two-subtables-side"
26340 Two subtables placed side by side.
26348 \begin_layout Plain Layout
26350 \begin_inset space \hfill{}
26354 \begin_inset Float table
26359 \begin_layout Plain Layout
26360 \begin_inset Caption Standard
26362 \begin_layout Plain Layout
26363 \begin_inset CommandInset label
26365 name "tab:This-is-subtable-a"
26369 This is subtable a.
26377 \begin_layout Plain Layout
26379 \begin_inset Tabular
26380 <lyxtabular version="3" rows="1" columns="5">
26381 <features tabularvalignment="middle">
26382 <column alignment="center" valignment="top">
26383 <column alignment="center" valignment="top">
26384 <column alignment="center" valignment="top">
26385 <column alignment="center" valignment="top">
26386 <column alignment="center" valignment="top">
26388 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26391 \begin_layout Plain Layout
26397 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26400 \begin_layout Plain Layout
26406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26409 \begin_layout Plain Layout
26415 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26418 \begin_layout Plain Layout
26424 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26427 \begin_layout Plain Layout
26444 \begin_inset space \hfill{}
26448 \begin_inset Float table
26453 \begin_layout Plain Layout
26454 \begin_inset Caption Standard
26456 \begin_layout Plain Layout
26457 \begin_inset CommandInset label
26459 name "tab:This-is-subtable-b"
26463 This is subtable b.
26471 \begin_layout Plain Layout
26473 \begin_inset Tabular
26474 <lyxtabular version="3" rows="1" columns="5">
26475 <features tabularvalignment="middle">
26476 <column alignment="center" valignment="top">
26477 <column alignment="center" valignment="top">
26478 <column alignment="center" valignment="top">
26479 <column alignment="center" valignment="top">
26480 <column alignment="center" valignment="top">
26482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26485 \begin_layout Plain Layout
26491 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26494 \begin_layout Plain Layout
26500 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26503 \begin_layout Plain Layout
26509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26512 \begin_layout Plain Layout
26518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26521 \begin_layout Plain Layout
26538 \begin_inset space \hfill{}
26549 \begin_layout Standard
26550 \begin_inset Float table
26555 \begin_layout Plain Layout
26556 \begin_inset Caption Standard
26558 \begin_layout Plain Layout
26559 \begin_inset CommandInset label
26561 name "tab:Two-subtables-upon"
26565 Two subtables placed one above the other.
26566 (a) table with 4 cells, (b) table with 5 cells.
26574 \begin_layout Plain Layout
26576 \begin_inset Float table
26581 \begin_layout Plain Layout
26582 \begin_inset Caption Standard
26584 \begin_layout Plain Layout
26593 \begin_layout Plain Layout
26595 \begin_inset Tabular
26596 <lyxtabular version="3" rows="1" columns="4">
26597 <features tabularvalignment="middle">
26598 <column alignment="center" valignment="top">
26599 <column alignment="center" valignment="top">
26600 <column alignment="center" valignment="top">
26601 <column alignment="center" valignment="top">
26603 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26606 \begin_layout Plain Layout
26612 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26615 \begin_layout Plain Layout
26621 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26624 \begin_layout Plain Layout
26630 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26633 \begin_layout Plain Layout
26652 \begin_layout Plain Layout
26654 \begin_inset Float table
26659 \begin_layout Plain Layout
26660 \begin_inset Caption Standard
26662 \begin_layout Plain Layout
26671 \begin_layout Plain Layout
26673 \begin_inset Tabular
26674 <lyxtabular version="3" rows="1" columns="5">
26675 <features tabularvalignment="middle">
26676 <column alignment="center" valignment="top">
26677 <column alignment="center" valignment="top">
26678 <column alignment="center" valignment="top">
26679 <column alignment="center" valignment="top">
26680 <column alignment="center" valignment="top">
26682 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26685 \begin_layout Plain Layout
26691 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26694 \begin_layout Plain Layout
26700 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26703 \begin_layout Plain Layout
26709 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26712 \begin_layout Plain Layout
26718 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26721 \begin_layout Plain Layout
26745 \begin_layout Section
26746 Floats Side by Side
26747 \begin_inset Index idx
26750 \begin_layout Plain Layout
26751 Floats ! Side by side
26759 \begin_layout Standard
26760 To place floats side by side, as in Figures
26761 \begin_inset space ~
26765 \begin_inset CommandInset ref
26767 reference "fig:Float-left"
26772 \begin_inset CommandInset ref
26774 reference "fig:Float-right"
26783 In it two minipage boxes are inserted.
26787 \begin_layout Plain Layout
26788 Minipages are explained in section
26789 \begin_inset space ~
26793 \begin_inset CommandInset ref
26795 reference "sec:Minipages"
26804 The width is set to 45
26805 \begin_inset space \thinspace{}
26809 \begin_inset space \thinspace{}
26812 column% and the box alignment to
26817 The minipage boxes contain the image and the caption in the same way as
26818 they are in a float.
26819 The only difference is that the image unit
26822 \begin_inset space ~
26826 \begin_inset space ~
26831 is now calculated according to the width of the minipage boxes.
26834 \begin_layout Standard
26835 \begin_inset Float figure
26840 \begin_layout Plain Layout
26841 \begin_inset Box Frameless
26851 height_special "totalheight"
26856 backgroundcolor "none"
26859 \begin_layout Plain Layout
26861 \begin_inset Graphics
26862 filename clipart/mobius.eps
26865 scaleBeforeRotation
26872 \begin_layout Plain Layout
26873 \begin_inset Caption Standard
26875 \begin_layout Plain Layout
26876 \begin_inset CommandInset label
26878 name "fig:Float-left"
26882 Float on the left side.
26893 \begin_inset space \hfill{}
26897 \begin_inset Box Frameless
26907 height_special "totalheight"
26912 backgroundcolor "none"
26915 \begin_layout Plain Layout
26917 \begin_inset Graphics
26918 filename clipart/platypus.eps
26921 scaleBeforeRotation
26928 \begin_layout Plain Layout
26929 \begin_inset Caption Standard
26931 \begin_layout Plain Layout
26932 \begin_inset CommandInset label
26934 name "fig:Float-right"
26938 Float on the right side.
26951 \begin_layout Plain Layout
26960 \begin_layout Section
26962 \begin_inset Index idx
26965 \begin_layout Plain Layout
26966 Caption ! Formatting
26972 \begin_inset Index idx
26975 \begin_layout Plain Layout
26976 Floats ! Caption Formatting
26982 \begin_inset CommandInset label
26984 name "sec:Caption-Formatting"
26991 \begin_layout Standard
26996 environment is the default paragraph environment for
27001 On the \SpecialChar LyX
27002 screen captions appear as a label, e.
27003 \begin_inset space \thinspace{}
27007 \begin_inset space \space{}
27011 \begin_inset Quotes eld
27019 \begin_inset Quotes erd
27022 followed by the caption text.
27024 \begin_inset Quotes eld
27028 \begin_inset Quotes erd
27031 is the actual reference number.
27032 By default the label and the number are in the same font as the caption
27033 text and a colon follows the number to divide the label from the text.
27034 This caption format is suitable for many but not all documents.
27038 \begin_layout Standard
27039 To change the default caption format, load the \SpecialChar LaTeX
27045 \begin_inset Index idx
27048 \begin_layout Plain Layout
27050 -packages ! caption
27055 in the document preamble with this line:
27058 \begin_layout Standard
27063 usepackage[format definition]{caption}
27066 \begin_layout Standard
27067 To have for example the label and the number in sans-serif, bold font and
27068 the table captions always above the table as in this document, use the
27072 \begin_layout Standard
27077 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27080 \begin_layout Standard
27081 You can also define different caption formats for the different float types.
27082 In this case load the
27086 package without format specific options and define the different formats
27087 with the help of the command
27090 \begin_layout Standard
27095 captionsetup[float type]{format definition}
27098 \begin_layout Standard
27099 in the document preamble.
27100 For example the caption formats of Figure
27101 \begin_inset space ~
27105 \begin_inset CommandInset ref
27107 reference "fig:This-is-an-fig"
27112 \begin_inset space ~
27116 \begin_inset CommandInset ref
27118 reference "tab:This-is-an-tab"
27122 can be created using these commands in the document preamble:
27125 \begin_layout Standard
27130 usepackage[tableposition=top]{caption}
27133 \begin_inset Newline newline
27140 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27141 \begin_inset Newline newline
27145 \begin_inset Phantom HPhantom
27148 \begin_layout Plain Layout
27153 captionsetup[figure]{
27159 \begin_inset Newline newline
27164 captionsetup[table]{labelfont={bf,sf}}
27167 \begin_layout Standard
27168 \begin_inset Note Greyedout
27171 \begin_layout Plain Layout
27180 has no effect when a
27185 \begin_inset Index idx
27188 \begin_layout Plain Layout
27190 -packages ! KOMA-Script
27195 document class is used.
27196 In this case the document class option
27198 captions=tableheading
27208 \begin_layout Standard
27209 For more information about the package
27213 we refer to its documentation
27214 \begin_inset CommandInset citation
27223 \begin_layout Standard
27224 To change the label name from e.
27225 \begin_inset space \thinspace{}
27229 \begin_inset space \space{}
27233 \begin_inset Quotes eld
27237 \begin_inset Quotes erd
27241 \begin_inset Quotes eld
27245 \begin_inset Quotes erd
27248 use this preamble command:
27251 \begin_layout Standard
27258 fnum@figure}{Image~
27263 \begin_layout Standard
27270 inserts the figure number and
27273 \begin_inset Quotes eld
27279 \begin_inset Quotes erd
27282 creates a protected space.
27285 \begin_layout Standard
27286 \begin_inset VSpace bigskip
27294 \begin_inset Index idx
27297 \begin_layout Plain Layout
27299 -packages ! KOMA-Script
27306 article (KOMA-Script)
27314 letter (KOMA-Script)
27318 report (KOMA-Script)
27321 \begin_inset space \thinspace{}
27324 ), you can alternatively to the
27332 's built-in command
27339 For example, to have the caption label in bold, add this command to your
27343 \begin_layout Standard
27348 setkomafont{captionlabel}{
27353 \begin_layout Standard
27354 For more information about
27365 \begin_inset CommandInset citation
27374 \begin_layout Standard
27378 \begin_layout Plain Layout
27382 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27389 \begin_inset Note Note
27392 \begin_layout Plain Layout
27393 The caption format is changed only for this example.
27401 \begin_layout Standard
27402 \begin_inset Float figure
27408 \begin_layout Plain Layout
27410 \begin_inset Graphics
27411 filename clipart/mobius.eps
27414 scaleBeforeRotation
27421 \begin_layout Plain Layout
27422 \begin_inset Caption Standard
27424 \begin_layout Plain Layout
27425 \begin_inset CommandInset label
27427 name "fig:This-is-an-fig"
27431 This is an example figure caption that is longer than one line to show the
27432 different caption format.
27433 Here a self-defined caption format is used.
27446 \begin_layout Standard
27450 \begin_layout Plain Layout
27454 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27463 \begin_layout Standard
27464 \begin_inset Float table
27470 \begin_layout Plain Layout
27471 \begin_inset Caption Standard
27473 \begin_layout Plain Layout
27474 \begin_inset CommandInset label
27476 name "tab:This-is-an-tab"
27480 This is an example table caption that is longer than one line to show the
27481 different caption format.
27482 Here the standard caption format for tables in this document is used.
27490 \begin_layout Plain Layout
27492 \begin_inset Tabular
27493 <lyxtabular version="3" rows="1" columns="5">
27494 <features tabularvalignment="middle">
27495 <column alignment="center" valignment="top">
27496 <column alignment="center" valignment="top">
27497 <column alignment="center" valignment="top">
27498 <column alignment="center" valignment="top">
27499 <column alignment="center" valignment="top">
27501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27504 \begin_layout Plain Layout
27510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27513 \begin_layout Plain Layout
27519 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27522 \begin_layout Plain Layout
27528 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27531 \begin_layout Plain Layout
27537 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27540 \begin_layout Plain Layout
27559 \begin_layout Section
27561 \begin_inset Index idx
27564 \begin_layout Plain Layout
27565 Caption ! Placement
27571 \begin_inset Index idx
27574 \begin_layout Plain Layout
27575 Floats ! Caption Placement
27581 \begin_inset CommandInset label
27583 name "sec:Caption-Placement"
27590 \begin_layout Standard
27591 The common caption placement rule is:
27594 \begin_layout Description
27595 Figure: Caption is set below the figure
27598 \begin_layout Description
27599 Table: Caption is set above the table
27602 \begin_layout Standard
27603 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27606 That means if you are using the document classes
27622 there will be no space between the caption and the table.
27623 To insert the necessary space, load the \SpecialChar LaTeX
27629 \begin_inset Index idx
27632 \begin_layout Plain Layout
27634 -packages ! caption
27639 in your document preamble with the option
27643 \begin_layout Plain Layout
27645 \begin_inset space ~
27649 \begin_inset CommandInset ref
27651 reference "sec:Caption-Formatting"
27655 for more information of the package
27667 \begin_layout Standard
27673 \begin_layout Standard
27679 \begin_inset Index idx
27682 \begin_layout Plain Layout
27684 -packages ! KOMA-Script
27691 article (KOMA-Script)
27699 letter (KOMA-Script)
27703 report (KOMA-Script)
27706 \begin_inset space \thinspace{}
27709 ), you can alternatively to the
27713 package set the document class option
27717 \begin_layout Plain Layout
27718 That option is used in this document.
27726 \begin_layout Standard
27729 captions=tableheading
27732 \begin_layout Standard
27733 In documents with a KOMA-Script document class you can also right-click
27734 on a caption and mark in the context menu if this should be a caption above
27735 or below the table/figure.
27736 This way you can override the document-wide caption placement for certain
27739 \begin_inset space ~
27743 \begin_inset CommandInset ref
27745 reference "tab:A-caption-marked"
27749 is an example where the caption is marked a being below the table while
27751 For comparison the caption in Table
27752 \begin_inset space ~
27756 \begin_inset CommandInset ref
27758 reference "tab:A-standard-table"
27765 \begin_layout Standard
27766 \begin_inset Float table
27771 \begin_layout Plain Layout
27772 \begin_inset Caption Below
27774 \begin_layout Plain Layout
27775 \begin_inset CommandInset label
27777 name "tab:A-caption-marked"
27781 A caption marked as being below the table.
27789 \begin_layout Plain Layout
27791 \begin_inset Tabular
27792 <lyxtabular version="3" rows="3" columns="3">
27793 <features tabularvalignment="middle">
27794 <column alignment="center" valignment="top" width="0pt">
27795 <column alignment="center" valignment="top" width="0pt">
27796 <column alignment="center" valignment="top" width="0pt">
27798 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27801 \begin_layout Plain Layout
27807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27810 \begin_layout Plain Layout
27816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27819 \begin_layout Plain Layout
27827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27830 \begin_layout Plain Layout
27836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27839 \begin_layout Plain Layout
27845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27848 \begin_layout Plain Layout
27856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27859 \begin_layout Plain Layout
27860 \begin_inset Formula $\int x^{2}dx$
27868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27871 \begin_layout Plain Layout
27872 \begin_inset Formula $\left[\begin{array}{cc}
27875 \end{array}\right]$
27883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27886 \begin_layout Plain Layout
27887 \begin_inset Formula $1+1=2$
27908 \begin_layout Standard
27909 \begin_inset Float table
27914 \begin_layout Plain Layout
27915 \begin_inset Caption Standard
27917 \begin_layout Plain Layout
27918 \begin_inset CommandInset label
27920 name "tab:A-standard-table"
27924 A standard table caption.
27932 \begin_layout Plain Layout
27934 \begin_inset Tabular
27935 <lyxtabular version="3" rows="3" columns="3">
27936 <features tabularvalignment="middle">
27937 <column alignment="center" valignment="top" width="0pt">
27938 <column alignment="center" valignment="top" width="0pt">
27939 <column alignment="center" valignment="top" width="0pt">
27941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27944 \begin_layout Plain Layout
27950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27953 \begin_layout Plain Layout
27959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27962 \begin_layout Plain Layout
27970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27973 \begin_layout Plain Layout
27979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27982 \begin_layout Plain Layout
27988 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27991 \begin_layout Plain Layout
27999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28002 \begin_layout Plain Layout
28003 \begin_inset Formula $\int x^{2}dx$
28011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28014 \begin_layout Plain Layout
28015 \begin_inset Formula $\left[\begin{array}{cc}
28018 \end{array}\right]$
28026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28029 \begin_layout Plain Layout
28030 \begin_inset Formula $1+1=2$
28051 \begin_layout Standard
28052 \begin_inset VSpace bigskip
28055 It is also possible to set the caption beside a figure or table.
28056 To get this the \SpecialChar LaTeX
28062 \begin_inset Index idx
28065 \begin_layout Plain Layout
28067 -packages ! sidecap
28072 has to be loaded in the document preamble with the line
28075 \begin_layout Standard
28080 usepackage[option]{sidecap}
28083 \begin_layout Standard
28084 If you set no option, the caption is placed on the side of the outer page
28085 margin – to the right on odd pages, to the left on even pages.
28086 You can change the placement to inner margin with the option
28091 To force the placement always to the right or left, use the option
28102 \begin_layout Standard
28106 \begin_layout Plain Layout
28116 \begin_inset Note Note
28119 \begin_layout Plain Layout
28120 The following section will only be displayed when the \SpecialChar LaTeX
28133 \begin_layout Standard
28134 To place in \SpecialChar LyX
28135 the caption of a float on the side, it is necessary to add
28136 these commands to the document preamble:
28139 \begin_layout Standard
28141 \begin_inset CommandInset line
28152 \begin_layout Standard
28159 TabBesBeg}[1][1.0]{%
28160 \begin_inset Newline newline
28164 \begin_inset Phantom HPhantom
28167 \begin_layout Plain Layout
28168 \begin_inset space ~
28183 \begin_inset Newline newline
28187 \begin_inset Phantom HPhantom
28190 \begin_layout Plain Layout
28193 \begin_inset space ~
28208 \begin_inset Newline newline
28212 \begin_inset Phantom HPhantom
28215 \begin_layout Plain Layout
28218 \begin_inset space ~
28228 renewenvironment{table}[1]{
28230 begin{SCtable}[#1]##1}{
28235 \begin_layout Standard
28243 \begin_inset Newline newline
28247 \begin_inset Phantom HPhantom
28250 \begin_layout Plain Layout
28251 \begin_inset space ~
28266 \begin_inset Newline newline
28270 \begin_inset Phantom HPhantom
28273 \begin_layout Plain Layout
28274 \begin_inset space ~
28291 \begin_layout Standard
28298 FigBesBeg}[1][1.0]{%
28299 \begin_inset Newline newline
28303 \begin_inset Phantom HPhantom
28306 \begin_layout Plain Layout
28307 \begin_inset space ~
28322 \begin_inset Newline newline
28326 \begin_inset Phantom HPhantom
28329 \begin_layout Plain Layout
28330 \begin_inset space ~
28345 \begin_inset Newline newline
28349 \begin_inset Phantom HPhantom
28352 \begin_layout Plain Layout
28353 \begin_inset space ~
28363 renewenvironment{figure}[1]{
28365 begin{SCfigure}[#1]##1}{
28370 \begin_layout Standard
28378 \begin_inset Newline newline
28382 \begin_inset Phantom HPhantom
28385 \begin_layout Plain Layout
28386 \begin_inset space ~
28401 \begin_inset Newline newline
28405 \begin_inset Phantom HPhantom
28408 \begin_layout Plain Layout
28409 \begin_inset space ~
28426 \begin_layout Standard
28428 \begin_inset CommandInset line
28439 \begin_layout Standard
28440 The commands allow you to redefine the floats so that the caption is set
28442 For figure floats use the command
28445 \begin_layout Standard
28453 \begin_layout Standard
28454 in \SpecialChar TeX
28455 Code before the float.
28456 And insert the command
28459 \begin_layout Standard
28467 \begin_layout Standard
28468 in \SpecialChar TeX
28469 Code at the point where you want to get back to the original float definitio
28473 \begin_layout Standard
28474 For table floats use the corresponding commands
28477 \begin_layout Standard
28491 \begin_layout Standard
28493 \begin_inset space ~
28497 \begin_inset CommandInset ref
28499 reference "fig:cap-beside-fig"
28504 \begin_inset space ~
28508 \begin_inset CommandInset ref
28510 reference "tab:cap-beside-tab"
28514 are examples where the caption is set beside.
28517 \begin_layout Standard
28518 You can see in the examples that the caption text appears at the top of
28519 the floats for table floats and at the bottom for figure floats.
28520 To change this, you can use the command
28523 \begin_layout Standard
28528 sidecaptionvpos{float type}{placement}
28531 \begin_layout Standard
28532 in the document preamble or in \SpecialChar TeX
28533 Code before the float.
28534 The float type is either
28542 , the placement can be
28543 \begin_inset Quotes eld
28551 \begin_inset Quotes erd
28555 \begin_inset Quotes eld
28563 \begin_inset Quotes erd
28567 \begin_inset Quotes eld
28575 \begin_inset Quotes erd
28579 To have for example the caption of figure floats vertically centered, use
28583 \begin_layout Standard
28588 sidecaptionvpos{figure}{c}
28591 \begin_layout Standard
28592 This was used for Figure
28593 \begin_inset space ~
28597 \begin_inset CommandInset ref
28599 reference "fig:cap-beside-fig-2"
28606 \begin_layout Standard
28607 \begin_inset VSpace medskip
28613 \begin_layout Standard
28614 The default caption width is the width of the image/table.
28615 For thin image/tables, like in Table
28616 \begin_inset space ~
28620 \begin_inset CommandInset ref
28622 reference "tab:cap-beside-tab"
28626 , this leads to captions that are too thin.
28627 You can increase the width by specifying a factor that will be multiplied
28628 with the image/table width to get the caption width.
28629 The caption width will automatically be recalculated in case it would protrude
28630 over the page or column margin due to the specified width.
28635 can either be given as optional argument for
28644 \begin_layout Standard
28652 \begin_layout Standard
28653 or in the definition of
28663 with another value.
28664 If you do the latter, your factor will be the default if
28670 is used without an argument.
28672 \begin_inset space ~
28676 \begin_inset CommandInset ref
28678 reference "tab:cap-beside-tab-wider"
28682 the factor 5 was used.
28685 \begin_layout Standard
28686 \begin_inset Note Greyedout
28689 \begin_layout Plain Layout
28694 For floats with captions set beside, you cannot use the float placement
28698 \begin_inset space ~
28703 because it is not supported by
28715 \begin_layout Standard
28716 \begin_inset VSpace medskip
28719 For more information about the package
28723 we refer to its documentation
28724 \begin_inset CommandInset citation
28733 \begin_layout Standard
28734 \begin_inset Note Greyedout
28737 \begin_layout Plain Layout
28742 The \SpecialChar LaTeX
28748 \begin_inset Index idx
28751 \begin_layout Plain Layout
28758 , described in section
28759 \begin_inset space ~
28763 \begin_inset CommandInset ref
28765 reference "subsec:Reference-Position"
28769 , has no effect on floats with the caption set beside.
28777 \begin_layout Standard
28781 \begin_layout Plain Layout
28793 \begin_layout Standard
28794 \begin_inset Float figure
28799 \begin_layout Plain Layout
28800 \begin_inset Graphics
28801 filename clipart/escher-lsd.eps
28803 scaleBeforeRotation
28810 \begin_layout Plain Layout
28811 \begin_inset Caption Standard
28813 \begin_layout Plain Layout
28814 \begin_inset CommandInset label
28816 name "fig:cap-beside-fig"
28820 This is a caption beside a figure.
28833 \begin_layout Standard
28837 \begin_layout Plain Layout
28849 \begin_layout Standard
28853 \begin_layout Plain Layout
28865 \begin_layout Standard
28866 \begin_inset Float table
28871 \begin_layout Plain Layout
28872 \begin_inset Caption Standard
28874 \begin_layout Plain Layout
28875 \begin_inset CommandInset label
28877 name "tab:cap-beside-tab"
28881 This is a caption beside a table.
28889 \begin_layout Plain Layout
28890 \begin_inset Tabular
28891 <lyxtabular version="3" rows="4" columns="5">
28892 <features tabularvalignment="middle">
28893 <column alignment="center" valignment="top">
28894 <column alignment="center" valignment="top">
28895 <column alignment="center" valignment="top">
28896 <column alignment="center" valignment="top">
28897 <column alignment="center" valignment="top">
28899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28902 \begin_layout Plain Layout
28908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28911 \begin_layout Plain Layout
28917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28920 \begin_layout Plain Layout
28926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28929 \begin_layout Plain Layout
28935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28938 \begin_layout Plain Layout
28946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28949 \begin_layout Plain Layout
28955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28958 \begin_layout Plain Layout
28964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28967 \begin_layout Plain Layout
28973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28976 \begin_layout Plain Layout
28982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28985 \begin_layout Plain Layout
28993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28996 \begin_layout Plain Layout
29002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29005 \begin_layout Plain Layout
29011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29014 \begin_layout Plain Layout
29020 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29023 \begin_layout Plain Layout
29029 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29032 \begin_layout Plain Layout
29040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29043 \begin_layout Plain Layout
29049 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29052 \begin_layout Plain Layout
29058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29061 \begin_layout Plain Layout
29067 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29070 \begin_layout Plain Layout
29076 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29079 \begin_layout Plain Layout
29098 \begin_layout Standard
29102 \begin_layout Plain Layout
29114 \begin_layout Standard
29118 \begin_layout Plain Layout
29131 \begin_layout Plain Layout
29135 sidecaptionvpos{figure}{c}
29141 \begin_inset Float figure
29146 \begin_layout Plain Layout
29147 \begin_inset Graphics
29148 filename clipart/escher-lsd.eps
29150 scaleBeforeRotation
29157 \begin_layout Plain Layout
29158 \begin_inset Caption Standard
29160 \begin_layout Plain Layout
29161 \begin_inset CommandInset label
29163 name "fig:cap-beside-fig-2"
29167 This is a vertically centered caption beside a figure.
29180 \begin_layout Standard
29184 \begin_layout Plain Layout
29196 \begin_layout Standard
29200 \begin_layout Plain Layout
29212 \begin_layout Standard
29213 \begin_inset Float table
29218 \begin_layout Plain Layout
29219 \begin_inset Caption Standard
29221 \begin_layout Plain Layout
29222 \begin_inset CommandInset label
29224 name "tab:cap-beside-tab-wider"
29228 This caption is wider than the one in Table
29229 \begin_inset space ~
29233 \begin_inset CommandInset ref
29235 reference "tab:cap-beside-tab"
29247 \begin_layout Plain Layout
29248 \begin_inset Tabular
29249 <lyxtabular version="3" rows="4" columns="5">
29250 <features tabularvalignment="middle">
29251 <column alignment="center" valignment="top">
29252 <column alignment="center" valignment="top">
29253 <column alignment="center" valignment="top">
29254 <column alignment="center" valignment="top">
29255 <column alignment="center" valignment="top">
29257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29260 \begin_layout Plain Layout
29266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29269 \begin_layout Plain Layout
29275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29278 \begin_layout Plain Layout
29284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29287 \begin_layout Plain Layout
29293 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29296 \begin_layout Plain Layout
29304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29307 \begin_layout Plain Layout
29313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29316 \begin_layout Plain Layout
29322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29325 \begin_layout Plain Layout
29331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29334 \begin_layout Plain Layout
29340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29343 \begin_layout Plain Layout
29351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29354 \begin_layout Plain Layout
29360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29363 \begin_layout Plain Layout
29369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29372 \begin_layout Plain Layout
29378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29381 \begin_layout Plain Layout
29387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29390 \begin_layout Plain Layout
29398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29401 \begin_layout Plain Layout
29407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29410 \begin_layout Plain Layout
29416 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29419 \begin_layout Plain Layout
29425 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29428 \begin_layout Plain Layout
29434 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29437 \begin_layout Plain Layout
29456 \begin_layout Standard
29460 \begin_layout Plain Layout
29472 \begin_layout Standard
29476 \begin_layout Plain Layout
29486 \begin_inset Note Note
29489 \begin_layout Plain Layout
29490 The following will be displayed when the \SpecialChar LaTeX
29503 \begin_layout Standard
29504 You need to install the \SpecialChar LaTeX
29509 to see the following part of this section in the output.
29512 \begin_layout Standard
29516 \begin_layout Plain Layout
29528 \begin_layout Section
29530 \begin_inset Index idx
29533 \begin_layout Plain Layout
29534 Floats ! Float Lists
29542 \begin_layout Standard
29543 Similar to the table of contents where the sections of the document are
29544 listed, there are listings for all float types, like the figures of the
29546 You can insert them via the
29548 Insert\SpecialChar menuseparator
29550 \begin_inset space ~
29554 \begin_inset space ~
29562 \begin_layout Standard
29563 The list entries are the float captions or its short title, the float number,
29564 and the page number where they appear in the document.
29567 \begin_layout Standard
29568 You can find the list of figures and tables at the end of this document.
29571 \begin_layout Chapter
29575 \begin_layout Section
29578 \begin_inset Index idx
29581 \begin_layout Plain Layout
29582 Notes ! \SpecialChar LyX
29591 \begin_layout Standard
29592 Notes are inserted with the toolbar button
29600 Insert\SpecialChar menuseparator
29604 There are three types of notes:
29607 \begin_layout Description
29610 \begin_inset space ~
29613 Note This note type is for internal notes that won't appear in the output.
29614 Its note-box looks like this:
29615 \begin_inset Newline newline
29619 \begin_inset Newline newline
29623 \begin_inset Graphics
29624 filename clipart/LyXNoteImageQt4.png
29627 scaleBeforeRotation
29632 \begin_inset Note Note
29635 \begin_layout Plain Layout
29636 This is text in a note box that doesn't appear in the output.
29644 \begin_layout Description
29645 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29647 when you export the document to \SpecialChar LaTeX
29650 File\SpecialChar menuseparator
29651 Export\SpecialChar menuseparator
29653 (pdflatex) / (plain)
29656 Its note-box looks like this:
29657 \begin_inset Newline newline
29661 \begin_inset Newline newline
29665 \begin_inset Graphics
29666 filename clipart/CommentNoteImageQt4.png
29669 scaleBeforeRotation
29674 \begin_inset Note Comment
29677 \begin_layout Plain Layout
29678 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29687 \begin_layout Description
29689 \begin_inset space ~
29692 Out This note will appear in the output as grey text.
29693 Its note-box looks like this:
29694 \begin_inset Newline newline
29698 \begin_inset Newline newline
29702 \begin_inset Graphics
29703 filename clipart/GreyedOutNoteImageQt4.png
29706 scaleBeforeRotation
29711 \begin_inset Newline newline
29718 \begin_layout Plain Layout
29722 renewenvironment{lyxgreyedout}
29725 \begin_layout Plain Layout
29729 textcolor[gray]{0.8}
29739 \begin_inset Note Greyedout
29742 \begin_layout Plain Layout
29747 \begin_layout Plain Layout
29748 This is an example footnote within a greyed out note.
29753 of a comment that appears in the output as grey text.
29762 \begin_layout Plain Layout
29766 renewenvironment{lyxgreyedout}
29769 \begin_layout Plain Layout
29783 \begin_inset Note Note
29786 \begin_layout Plain Layout
29787 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29789 because greyed out notes are redefined in the preamble of this document,
29790 as described below, to have blue text.
29796 \begin_inset Newline newline
29800 \begin_inset Newline newline
29803 As you can see in the example, the first line of greyed out notes is a bit
29804 indented and greyed out notes can have footnotes.
29807 \begin_layout Standard
29808 \begin_inset VSpace bigskip
29811 When you use the toolbar button
29821 \begin_inset space ~
29827 You can switch between the three note types by right-clicking on the note-box.
29832 If you want to turn existing text into a note, mark it and click on the
29846 To change a note to text, press the backspace key when the cursor is in
29847 the first position of a note, or press the delete key when the cursor is
29848 in the very last position of the note, respectively.
29851 \begin_layout Standard
29852 \begin_inset VSpace bigskip
29855 You can change the text color of the greyed out notes in the menu
29857 Document\SpecialChar menuseparator
29858 Settings\SpecialChar menuseparator
29864 \begin_layout Section
29866 \begin_inset CommandInset label
29868 name "sec:Footnotes"
29873 \begin_inset Index idx
29876 \begin_layout Plain Layout
29883 \begin_inset Index idx
29886 \begin_layout Plain Layout
29895 \begin_layout Standard
29896 Footnotes can be inserted using the toolbar button
29899 arg "footnote-insert"
29904 Insert\SpecialChar menuseparator
29908 You will then see the following footnote-box:
29909 \begin_inset Graphics
29910 filename clipart/footnoteQt4.png
29912 scaleBeforeRotation
29920 where you can enter the footnote text.
29921 If you want to turn existing text into a footnote, mark it and click on
29947 key when the cursor is in the first position of a
29959 key when the cursor is in the very last position of the
29970 \begin_layout Standard
29971 Here is an example footnote:
29979 \begin_layout Plain Layout
29980 \begin_inset CommandInset label
29982 name "foot:This-is-an"
29986 This is an example footnote.
29999 \begin_layout Plain Layout
30003 newcounter{MyRepeatFoot}
30006 \begin_layout Plain Layout
30010 setcounter{MyRepeatFoot}{
30020 \begin_layout Standard
30021 The footnote will appear in the output as a superscript number at the text
30022 position where the footnote box is placed.
30023 The footnote text is placed at the bottom of the current page.
30024 The footnote number is calculated by \SpecialChar LaTeX
30025 ; the numbers are consecutive.
30026 Whether the footnote number is reset for every chapter depends on your
30030 \begin_layout Standard
30031 Footnotes can be referenced like floats: Insert a label into the footnote
30032 and cross-reference this label in the text as described in section
30033 \begin_inset space ~
30037 \begin_inset CommandInset ref
30039 reference "sec:Referencing-Floats"
30044 \begin_inset Newline newline
30047 This is a cross-reference of Footnote
30048 \begin_inset space ~
30052 \begin_inset CommandInset ref
30054 reference "foot:This-is-an"
30061 \begin_layout Standard
30062 \begin_inset VSpace defskip
30065 Footnotes in title environments are usually not numbered with symbols and
30066 they cannot contain several paragraphs.
30067 See for example the footnote in the titling of this document.
30070 \begin_layout Standard
30071 \begin_inset VSpace defskip
30074 Footnotes in tables are not printed by \SpecialChar LaTeX
30075 due to technical reasons.
30076 However there exists another method to print them: Instead of the footnote
30083 is inserted as \SpecialChar TeX
30085 The text of the footnote is entered as an argument of the \SpecialChar TeX
30094 \begin_inset Newline newline
30097 This was done for the following table with the command
30100 \begin_layout Standard
30107 Printed table footnote.
30112 \begin_layout Standard
30113 \begin_inset Tabular
30114 <lyxtabular version="3" rows="2" columns="1">
30115 <features tabularvalignment="middle">
30116 <column alignment="center" valignment="top">
30118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30121 \begin_layout Plain Layout
30122 This an example text.
30126 \begin_layout Plain Layout
30127 This footnote will not be printed!
30139 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30142 \begin_layout Plain Layout
30143 This an example text.
30147 \begin_layout Plain Layout
30170 \begin_layout Plain Layout
30179 Printed table footnote.
30183 \begin_layout Plain Layout
30193 \begin_layout Standard
30194 Footnotes in longtables are described in section
30195 \begin_inset space ~
30199 \begin_inset CommandInset ref
30201 reference "subsec:Footnotes-in-Longtables"
30208 \begin_layout Standard
30209 Footnotes in minipage boxes are printed, but inside the box and with a different
30210 numbering because a minipage box is like a page inside a page.
30211 (For more about minipages, see section
30212 \begin_inset space ~
30216 \begin_inset CommandInset ref
30218 reference "sec:Minipages"
30222 .) To get a footnote in the minipage that is output at the bottom of the
30223 page like normal footnotes, also use the method of
30238 \begin_layout Standard
30239 \begin_inset Box Frameless
30249 height_special "totalheight"
30254 backgroundcolor "none"
30257 \begin_layout Plain Layout
30258 This an example text in a minipage.
30262 \begin_layout Plain Layout
30263 Footnote in the minipage.
30271 \begin_layout Plain Layout
30272 This an example text in a minipage.
30276 \begin_layout Plain Layout
30293 \begin_layout Standard
30297 \begin_layout Plain Layout
30306 Footnote outside the minipage.
30310 \begin_layout Plain Layout
30320 \begin_layout Standard
30321 \begin_inset VSpace defskip
30327 \begin_layout Standard
30328 To refer to the same footnote several times without printing the footnote
30329 text every time, use the command
30333 footnotemark[number]
30335 in \SpecialChar TeX
30337 \begin_inset Newline newline
30340 As you do not know the number of the repeating footnote while you are writing
30341 the text, you have to store its number.
30342 For the following footnote mark example, these commands were inserted in
30344 code after Footnote
30345 \begin_inset space ~
30349 \begin_inset CommandInset ref
30351 reference "foot:This-is-an"
30355 to store the footnote number:
30358 \begin_layout Standard
30363 newcounter{MyRepeatFoot}
30364 \begin_inset Newline newline
30369 setcounter{MyRepeatFoot}{
30374 \begin_layout Standard
30375 The footnote mark was then created with this command:
30378 \begin_layout Standard
30388 \begin_layout Standard
30389 Here is a repeated footnote:
30397 \begin_layout Plain Layout
30411 \begin_layout Standard
30412 If you want to repeat the previous footnote, you can omit the storage of
30413 the footnote number and just use this command instead:
30416 \begin_layout Standard
30426 \begin_layout Standard
30427 Here is another repeated footnote:
30435 \begin_layout Plain Layout
30449 \begin_layout Subsection
30451 \begin_inset CommandInset label
30453 name "subsec:Footnote-Numbering"
30458 \begin_inset Index idx
30461 \begin_layout Plain Layout
30462 Footnotes ! Numbering
30470 \begin_layout Standard
30471 To reset the footnote number back to 1 after each section
30473 , add this command to your document preamble:
30476 \begin_layout Standard
30481 @addtoreset{footnote}{section}
30484 \begin_layout Standard
30485 \begin_inset VSpace bigskip
30488 The following preamble command changes the footnote numbering style to small
30492 \begin_layout Standard
30504 \begin_layout Standard
30508 \begin_layout Plain Layout
30521 This is a footnote with roman numbering:
30525 \begin_layout Plain Layout
30526 This is an example footnote with roman numbering.
30534 \begin_layout Standard
30535 To change the numbering style to capital roman numerals replace in the command
30550 \begin_inset Quotes eld
30554 \begin_inset Quotes erd
30557 footnotes with capital or small Latin letters use
30571 \begin_inset Quotes eld
30575 \begin_inset Quotes erd
30578 footnotes with symbols use
30587 \begin_layout Standard
30588 \begin_inset Note Greyedout
30591 \begin_layout Plain Layout
30596 You can only number 26 footnotes with Latin letters, because this numbering
30597 is limited to single letters.
30603 \begin_inset Newline newline
30607 \begin_inset Note Greyedout
30610 \begin_layout Plain Layout
30615 You can only number 9 footnotes with symbols.
30623 \begin_layout Standard
30624 To return to the default numbering style after you have changed to another
30637 in the command above.
30641 \begin_layout Plain Layout
30657 \begin_layout Standard
30658 \begin_inset VSpace bigskip
30664 \begin_layout Standard
30665 If you want to have footnotes numbered in the scheme
30666 \begin_inset Quotes eld
30670 \begin_inset Quotes erd
30673 , add the following command to your document preamble:
30676 \begin_layout Standard
30681 numberwithin{footnote}{chapter}
30684 \begin_layout Standard
30685 To be able to use the command
30694 \begin_inset space ~
30699 in the document settings the option
30702 \begin_inset space ~
30706 \begin_inset space ~
30710 \begin_inset space ~
30718 \begin_layout Standard
30722 \begin_layout Plain Layout
30726 numberwithin{footnote}{chapter}
30731 This is another example footnote:
30737 \begin_layout Plain Layout
30738 This is a footnote numbered in the scheme
30739 \begin_inset Quotes eld
30743 \begin_inset Quotes erd
30757 \begin_layout Plain Layout
30773 \begin_layout Standard
30774 \begin_inset Note Greyedout
30777 \begin_layout Plain Layout
30788 always prints out the footnote number as arabic number; previous redefinitions
30789 to get non-arabic numbers are overwritten.
30797 \begin_layout Standard
30798 So to get for example the scheme
30799 \begin_inset Quotes eld
30805 \begin_inset Quotes erd
30808 , use this command instead of
30817 \begin_layout Standard
30831 \begin_layout Subsection
30833 \begin_inset Index idx
30836 \begin_layout Plain Layout
30837 Footnotes ! Placement
30845 \begin_layout Standard
30846 If you have several footnotes in one page, they appear without vertical
30847 space between them at the bottom of the page.
30848 To make them more readable you can e.
30849 \begin_inset space \thinspace{}
30853 \begin_inset space \space{}
30857 \begin_inset space \thinspace{}
30860 mm space with the following preamble command:
30863 \begin_layout Standard
30873 \begin_inset Newline newline
30887 \begin_layout Standard
30888 \begin_inset VSpace bigskip
30891 In a two-column document the footnotes appear at the bottom of every column,
30893 \begin_inset space ~
30897 \begin_inset CommandInset ref
30899 reference "fig:Standard-footnote-placement"
30904 If the footnotes should only appear at the bottom of the right column,
30906 \begin_inset space ~
30910 \begin_inset CommandInset ref
30912 reference "fig:Footnote-placement-in"
30916 , use the \SpecialChar LaTeX
30922 \begin_inset Index idx
30925 \begin_layout Plain Layout
30927 -packages ! ftnright
30932 with this command in the document preamble:
30935 \begin_layout Standard
30940 usepackage{ftnright}
30943 \begin_layout Standard
30944 \begin_inset Float figure
30950 \begin_layout Plain Layout
30954 \begin_layout Plain Layout
30964 \begin_inset Graphics
30965 filename clipart/without_fntright.pdf
30967 scaleBeforeRotation
30975 \begin_layout Plain Layout
30985 \begin_layout Plain Layout
30986 \begin_inset Caption Standard
30988 \begin_layout Plain Layout
30989 \begin_inset CommandInset label
30991 name "fig:Standard-footnote-placement"
30995 Standard footnote placement in two-column documents.
31008 \begin_layout Standard
31009 \begin_inset Float figure
31015 \begin_layout Plain Layout
31019 \begin_layout Plain Layout
31029 \begin_inset Graphics
31030 filename clipart/with_fntright.pdf
31032 scaleBeforeRotation
31040 \begin_layout Plain Layout
31050 \begin_layout Plain Layout
31051 \begin_inset Caption Standard
31053 \begin_layout Plain Layout
31054 \begin_inset CommandInset label
31056 name "fig:Footnote-placement-in"
31060 Footnote placement in two-column documents when the \SpecialChar LaTeX
31078 \begin_layout Standard
31079 \begin_inset VSpace bigskip
31082 In some scientific literature it is usual to collect the footnotes and print
31083 them in a separate paragraph at the end of a section, as in Figure
31084 \begin_inset space ~
31088 \begin_inset CommandInset ref
31090 reference "fig:Endnotes"
31095 They are then called
31096 \begin_inset Quotes eld
31100 \begin_inset Quotes erd
31104 \begin_inset Index idx
31107 \begin_layout Plain Layout
31113 To use endnotes instead of footnotes in your document, load in the menu
31116 Document\SpecialChar menuseparator
31117 Settings\SpecialChar menuseparator
31123 \begin_inset space ~
31127 \begin_inset space ~
31133 To insert the collected footnotes, insert the command
31136 \begin_layout Standard
31144 \begin_layout Standard
31145 in \SpecialChar TeX
31146 Code at the end of a section or chapter.
31149 \begin_layout Standard
31150 \begin_inset Float figure
31155 \begin_layout Plain Layout
31160 \begin_layout Plain Layout
31170 \begin_inset Graphics
31171 filename clipart/endnotes.pdf
31172 scaleBeforeRotation
31180 \begin_layout Plain Layout
31190 \begin_layout Plain Layout
31191 \begin_inset Caption Standard
31193 \begin_layout Plain Layout
31194 \begin_inset CommandInset label
31196 name "fig:Endnotes"
31200 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31214 \begin_layout Standard
31215 \begin_inset VSpace medskip
31218 The paragraph heading for the endnotes isn't automatically translated into
31219 the document language, this must be done manually.
31220 The following preamble command translates the default English
31221 \begin_inset Quotes eld
31225 \begin_inset Quotes erd
31229 \begin_inset Quotes eld
31233 \begin_inset Quotes erd
31239 \begin_layout Standard
31246 notesname}{Anmerkungen}
31249 \begin_layout Standard
31250 \begin_inset VSpace medskip
31253 The numbering of endnotes can be changed like the footnote numbering as
31254 described in section
31255 \begin_inset space ~
31259 \begin_inset CommandInset ref
31261 reference "subsec:Footnote-Numbering"
31265 ; just replace the command
31278 To reset the endnote number use the command
31284 as described in section
31285 \begin_inset space ~
31289 \begin_inset CommandInset ref
31291 reference "subsec:Footnote-Numbering"
31295 and replace the command parameter
31306 \begin_layout Standard
31307 For endnotes there is the command
31311 endnotemark[number]
31313 similar to the command
31319 , that is described in section
31320 \begin_inset space ~
31324 \begin_inset CommandInset ref
31326 reference "sec:Footnotes"
31333 \begin_layout Standard
31334 \begin_inset VSpace bigskip
31337 Footnotes can also be placed in the page margin and the footnote text alignment
31338 can be changed, see the \SpecialChar LaTeX
31344 \begin_inset Index idx
31347 \begin_layout Plain Layout
31349 -packages ! footmisc
31355 \begin_inset CommandInset citation
31361 for more information about this.
31364 \begin_layout Standard
31365 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31367 \begin_inset CommandInset citation
31369 key "latexcompanion,latexguide,latexbook"
31379 \begin_inset Index idx
31382 \begin_layout Plain Layout
31384 -packages ! KOMA-Script
31389 document class, you can adjust all footnote settings using class-specific
31391 \begin_inset CommandInset citation
31400 \begin_layout Section
31402 \begin_inset Index idx
31405 \begin_layout Plain Layout
31406 Notes ! Margin Notes
31414 \begin_layout Standard
31415 Margin notes look and behave in \SpecialChar LyX
31417 They are inserted via the menu
31419 Insert\SpecialChar menuseparator
31421 \begin_inset space ~
31426 or the toolbar button
31429 arg "marginalnote-insert"
31443 \begin_inset Quotes eld
31447 \begin_inset Quotes erd
31450 appears where you can enter the text of the margin note.
31453 \begin_layout Standard
31454 At the side is an example margin note.
31459 \begin_inset Marginal
31462 \begin_layout Plain Layout
31463 This is a margin note.
31471 \begin_layout Standard
31472 Margin notes appear at the right side in single-sided documents.
31473 In double-sided documents they appear in the outer margin – left on even
31474 pages, right on odd pages.
31475 The text of margin notes is aligned opposite to the outer margin – right-aligne
31476 d when the note appears in the left margin.
31477 The first line of the margin note is placed at the position of the text
31478 line where it is inserted in the document.
31481 \begin_layout Standard
31482 \begin_inset VSpace bigskip
31485 To place the margin note in the inner margin, add the command
31488 \begin_layout Standard
31496 \begin_layout Standard
31497 in \SpecialChar TeX
31498 Code before a margin note.
31499 The new placement is valid for all subsequent margin notes.
31504 \begin_layout Plain Layout
31514 \begin_inset Marginal
31517 \begin_layout Plain Layout
31518 This is a margin note in the inner margin.
31526 \begin_inset Newline newline
31532 \begin_inset Note Greyedout
31535 \begin_layout Plain Layout
31540 There is often not enough space in the inner margin so that the notes are
31541 not correctly displayed in the output.
31549 \begin_layout Standard
31550 To return to the default placement insert the command
31553 \begin_layout Standard
31561 \begin_layout Standard
31562 in \SpecialChar TeX
31567 \begin_layout Plain Layout
31577 \begin_inset Note Greyedout
31580 \begin_layout Plain Layout
31585 The command is ignored when it is within a paragraph where also the command
31600 \begin_layout Standard
31601 \begin_inset VSpace bigskip
31608 \begin_inset Marginal
31611 \begin_layout Plain Layout
31612 AVeryLongMarginParWord that isn't hyphenated.
31620 Similar to the case described in section
31621 \begin_inset space ~
31625 \begin_inset CommandInset ref
31627 reference "subsec:Multiple-Lines-in"
31631 , long words cannot be hyphenated when they are the first word in a margin
31633 To avoid this, insert 0
31634 \begin_inset space \thinspace{}
31637 pt horizontal space before the word
31642 \begin_inset Marginal
31645 \begin_layout Plain Layout
31646 \begin_inset space \hspace*{}
31650 AVeryLongMarginParWord that is hyphenated.
31658 \begin_layout Standard
31659 \begin_inset VSpace bigskip
31665 \begin_layout Standard
31666 \begin_inset Note Greyedout
31669 \begin_layout Plain Layout
31674 Margin notes can normally not be used inside tables, floats, and footnotes.
31682 \begin_layout Standard
31683 \begin_inset VSpace bigskip
31689 \begin_layout Standard
31693 \begin_layout Plain Layout
31703 \begin_inset Note Note
31706 \begin_layout Plain Layout
31707 The following section will only be displayed when the \SpecialChar LaTeX
31720 \begin_layout Standard
31721 This restriction can be evaded by using the \SpecialChar LaTeX
31727 \begin_inset Index idx
31730 \begin_layout Plain Layout
31732 -packages ! marginnote
31738 By adding these two lines to your document preamble, the command used by
31740 for margin notes is redefined to use the command provided by the
31747 \begin_layout Standard
31752 usepackage{marginnote}
31753 \begin_inset Newline newline
31765 \begin_layout Standard
31766 This is also used in this document because
31770 has another useful feature: You can set a vertical offset for the note.
31771 This is often needed when too many margin notes are too close together
31772 or for a better page layout.
31773 The offset is set in \SpecialChar LyX
31774 as \SpecialChar TeX
31775 Code directly after the margin note in the scheme
31778 \begin_layout Standard
31784 \begin_layout Standard
31785 where the offset is a length with one of the units listed in Table
31786 \begin_inset space ~
31790 \begin_inset CommandInset ref
31792 reference "tab:Units"
31797 A negative value shifts the note up, a positive value shifts it down.
31801 For example the margin note beside this text line is shifted up 1.5
31802 \begin_inset space \thinspace{}
31805 cm with the \SpecialChar TeX
31807 \begin_inset Quotes eld
31817 \begin_inset Quotes erd
31821 \begin_inset Marginal
31824 \begin_layout Plain Layout
31825 This margin note is shifted up 1.5
31826 \begin_inset space \thinspace{}
31829 cm from its original position.
31841 \begin_layout Plain Layout
31851 \begin_layout Standard
31852 \begin_inset VSpace medskip
31859 you can also change the alignment of the text in the margin note.
31860 For example the commands
31863 \begin_layout Standard
31870 raggedleftmarginnote}{
31873 \begin_inset Newline newline
31880 raggedrightmarginnote}{
31885 \begin_layout Standard
31886 set the alignment to centered.
31891 raggedleftmarginnote
31893 denotes margin notes that appear at the left side.
31900 \begin_layout Plain Layout
31906 raggedleftmarginnote}{
31911 \begin_layout Plain Layout
31917 raggedrightmarginnote}{
31925 \begin_inset Marginal
31928 \begin_layout Plain Layout
31929 The text of this margin note is centered.
31940 \begin_layout Standard
31947 raggedleftmarginnote}{
31950 \begin_inset Newline newline
31957 raggedrightmarginnote}{
31966 \begin_layout Plain Layout
31972 raggedleftmarginnote}{
31977 \begin_layout Plain Layout
31983 raggedrightmarginnote}{
31993 \begin_layout Standard
31994 \begin_inset VSpace medskip
31997 For the other features of
32001 refer to its documentation
32002 \begin_inset CommandInset citation
32011 \begin_layout Standard
32012 \begin_inset VSpace bigskip
32015 You can adjust the layout of margin notes by changing its definition.
32016 To create for example a header for all margin notes with the underlined,
32017 sans-serif, and bold header text
32018 \begin_inset Quotes eld
32030 \begin_inset Quotes erd
32033 , add this to your document preamble:
32036 \begin_layout Standard
32046 \begin_inset Newline newline
32056 \begin_inset Newline newline
32060 \begin_inset Phantom HPhantom
32063 \begin_layout Plain Layout
32066 \begin_inset space ~
32082 underbar{Attention!}}}%
32083 \begin_inset Newline newline
32087 \begin_inset Phantom HPhantom
32090 \begin_layout Plain Layout
32093 \begin_inset space ~
32110 \begin_layout Standard
32117 \begin_layout Plain Layout
32128 \begin_layout Plain Layout
32139 \begin_layout Plain Layout
32147 underbar{Attention!}}}%
32150 \begin_layout Plain Layout
32164 \begin_inset Marginal
32167 \begin_layout Plain Layout
32168 This is a margin note with a defined heading.
32180 \begin_layout Plain Layout
32194 \begin_layout Plain Layout
32211 \begin_inset Note Note
32214 \begin_layout Plain Layout
32215 The margin note format is changed only for this example.
32223 \begin_layout Standard
32227 \begin_layout Plain Layout
32237 \begin_inset Note Note
32240 \begin_layout Plain Layout
32241 The following will be displayed when the \SpecialChar LaTeX
32254 \begin_layout Standard
32255 You need to install the \SpecialChar LaTeX
32260 to see the following part of this section in the output.
32263 \begin_layout Standard
32267 \begin_layout Plain Layout
32279 \begin_layout Chapter
32283 \begin_layout Section
32285 \begin_inset Index idx
32288 \begin_layout Plain Layout
32289 Boxes ! Introduction
32297 \begin_layout Standard
32298 Boxes are used to format a block of text.
32299 Boxes can be used to write documents with multiple languages, see section
32300 \begin_inset space ~
32304 \begin_inset CommandInset ref
32306 reference "sec:Minipages"
32310 , to frame texts, see section
32311 \begin_inset space ~
32315 \begin_inset CommandInset ref
32317 reference "sec:Decoration"
32321 , to prevent words from being hyphenated, see section
32322 \begin_inset space ~
32326 \begin_inset CommandInset ref
32328 reference "sec:Prevent-Hyphenation"
32332 , to align text, see section
32333 \begin_inset space ~
32337 \begin_inset CommandInset ref
32339 reference "subsec:Vertical-Alignment"
32343 , or to set the background color of texts, see section
32344 \begin_inset space ~
32348 \begin_inset CommandInset ref
32350 reference "sec:Colored-Boxes"
32357 \begin_layout Standard
32358 Boxes can be inserted with the menu
32360 Insert\SpecialChar menuseparator
32363 or the toolbar button
32366 arg "box-insert Frameless"
32370 A grey box with the label
32375 \begin_inset Graphics
32376 filename clipart/BoxInsetDefaultQt4.png
32378 scaleBeforeRotation
32383 The box type can be specified by right-clicking on the box and selecting
32389 The box dialog offers the
32392 \begin_inset space ~
32414 is the default for new boxes and is explained in section
32415 \begin_inset space ~
32419 \begin_inset CommandInset ref
32421 reference "sec:Minipages"
32429 is described in section
32430 \begin_inset space ~
32434 \begin_inset CommandInset ref
32436 reference "sec:Parboxes"
32445 \begin_inset CommandInset ref
32447 reference "sec:Prevent-Hyphenation"
32454 \begin_layout Standard
32455 Boxes are not numbered and can therefore not be referenced like floats or
32459 \begin_layout Standard
32460 \begin_inset Note Greyedout
32463 \begin_layout Plain Layout
32468 Boxes must not be the item in an
32484 \begin_layout Standard
32485 \begin_inset Note Greyedout
32488 \begin_layout Plain Layout
32493 For an unknown reason you can only set the
32496 \begin_inset space ~
32505 when you use a framed box.
32509 \begin_inset space ~
32514 type and without frames are explained in section
32515 \begin_inset space ~
32519 \begin_inset CommandInset ref
32521 reference "sec:Prevent-Hyphenation"
32533 \begin_layout Section
32535 \begin_inset CommandInset label
32537 name "sec:Box-Dialog"
32542 \begin_inset Index idx
32545 \begin_layout Plain Layout
32554 \begin_layout Subsection
32556 \begin_inset Index idx
32559 \begin_layout Plain Layout
32568 \begin_layout Standard
32569 In the box dialog you can adjust the box geometry in the fields
32578 The available units for the geometry are explained in Table
32579 \begin_inset space ~
32583 \begin_inset CommandInset ref
32585 reference "tab:Units"
32594 offers the following additional sizes:
32597 \begin_layout Description
32598 Depth This is the plain text
32599 \begin_inset Quotes eld
32603 \begin_inset Quotes erd
32607 It ignores the total depth when there are multiple text lines in the box:
32608 \begin_inset Newline newline
32612 \begin_inset Newline newline
32616 \begin_inset Newline newline
32620 \begin_inset Box Boxed
32630 height_special "depth"
32635 backgroundcolor "none"
32638 \begin_layout Plain Layout
32640 Box height set to 1
32641 \begin_inset space \thinspace{}
32650 \begin_inset Newline newline
32654 \begin_inset Newline newline
32660 \begin_layout Description
32661 Height This is the height of the text that is inside the box.
32663 \begin_inset space \thinspace{}
32667 \begin_inset space \space{}
32670 2 for this size will set the box height to 2
32671 \begin_inset space ~
32674 times the text height:
32675 \begin_inset Box Boxed
32685 height_special "height"
32690 backgroundcolor "none"
32693 \begin_layout Plain Layout
32695 Box height set to 2
32696 \begin_inset space \thinspace{}
32707 \begin_layout Description
32709 \begin_inset space ~
32712 Height This is the Height
32713 \begin_inset space \thinspace{}
32717 \begin_inset space \thinspace{}
32721 \begin_inset Box Boxed
32731 height_special "totalheight"
32736 backgroundcolor "none"
32739 \begin_layout Plain Layout
32741 Box height set to 1
32742 \begin_inset space \thinspace{}
32746 \begin_inset space ~
32757 \begin_layout Description
32758 Width This sets the width of the box as height:
32759 \begin_inset Box Boxed
32769 height_special "width"
32774 backgroundcolor "none"
32777 \begin_layout Plain Layout
32779 Box height set to 1
32780 \begin_inset space \thinspace{}
32791 \begin_layout Subsection
32793 \begin_inset Index idx
32796 \begin_layout Plain Layout
32805 \begin_layout Standard
32806 When you have chosen an
32809 \begin_inset space ~
32814 , the vertical box alignment can be:
32817 \begin_layout Description
32818 Top This is an example text line.
32820 \begin_inset Box Boxed
32830 height_special "totalheight"
32835 backgroundcolor "none"
32838 \begin_layout Plain Layout
32840 This box is top-aligned.
32845 This is an example text line.
32848 \begin_layout Description
32849 Middle This is an example text line.
32851 \begin_inset Box Boxed
32861 height_special "totalheight"
32866 backgroundcolor "none"
32869 \begin_layout Plain Layout
32871 This box is middle-aligned.
32876 This is an example text line.
32879 \begin_layout Description
32880 Bottom This is an example text line.
32882 \begin_inset Box Boxed
32892 height_special "totalheight"
32897 backgroundcolor "none"
32900 \begin_layout Plain Layout
32902 This box is bottom-aligned.
32907 This is an example text line.
32910 \begin_layout Standard
32911 \begin_inset Note Greyedout
32914 \begin_layout Plain Layout
32919 The vertical box alignment can be lost in the output when you have two
32920 boxes in a line and one has e.
32921 \begin_inset space \thinspace{}
32925 \begin_inset space \space{}
32928 a shadow and the other one not.
32936 \begin_layout Standard
32937 The horizontal box alignment can be set via \SpecialChar LyX
32938 's paragraph dialog when you
32939 set the box into its own paragraph.
32942 \begin_layout Standard
32943 \begin_inset VSpace bigskip
32946 When you have chosen an
32949 \begin_inset space ~
32954 , the box content can be aligned vertically to:
32957 \begin_layout Description
32958 top This is an example text line.
32960 \begin_inset Box Boxed
32970 height_special "totalheight"
32975 backgroundcolor "none"
32978 \begin_layout Plain Layout
32980 This box text is top-aligned.
32985 This is an example text line.
32988 \begin_layout Description
32989 middle This is an example text line.
32991 \begin_inset Box Boxed
33001 height_special "totalheight"
33006 backgroundcolor "none"
33009 \begin_layout Plain Layout
33011 This box text is middle-aligned.
33016 This is an example text line.
33019 \begin_layout Description
33020 bottom This is an example text line.
33022 \begin_inset Box Boxed
33032 height_special "totalheight"
33037 backgroundcolor "none"
33040 \begin_layout Plain Layout
33042 This box text is bottom-aligned.
33047 This is an example text line.
33050 \begin_layout Description
33051 stretch This is an example text line.
33053 \begin_inset Box Boxed
33063 height_special "totalheight"
33068 backgroundcolor "none"
33071 \begin_layout Plain Layout
33076 \begin_layout Plain Layout
33081 \begin_layout Plain Layout
33088 This is an example text line.
33091 \begin_layout Standard
33092 To stretch the box content, it must consist of more than one paragraph.
33093 In the example above every text line is in an own paragraph.
33096 \begin_layout Standard
33097 \begin_inset VSpace bigskip
33100 To align the box content horizontally you can use \SpecialChar LyX
33101 's paragraph dialog when
33105 \begin_inset space ~
33113 \begin_layout Standard
33115 \begin_inset Box Boxed
33125 height_special "totalheight"
33130 backgroundcolor "none"
33133 \begin_layout Plain Layout
33138 \begin_layout Plain Layout
33143 \begin_layout Plain Layout
33153 \begin_layout Standard
33154 If you have not set an
33157 \begin_inset space ~
33162 , you can align the box content horizontally in the box dialog.
33163 \begin_inset Separator parbreak
33169 \begin_layout Standard
33171 \begin_inset Box Boxed
33181 height_special "totalheight"
33186 backgroundcolor "none"
33189 \begin_layout Plain Layout
33190 This box text is horizontally stretched.
33198 \begin_layout Subsection
33200 \begin_inset CommandInset label
33202 name "sec:Decoration"
33207 \begin_inset Index idx
33210 \begin_layout Plain Layout
33219 \begin_layout Standard
33220 The type of the box can be specified in the box dialog in the drop-down
33226 The following types are possible:
33229 \begin_layout Description
33231 \begin_inset space ~
33234 frame Nothing is drawn.
33237 \begin_layout Description
33239 \begin_inset space ~
33243 \begin_inset space ~
33246 frame This draws a rectangular frame around the box.
33247 The frame line thickness can be specified.
33249 \begin_inset Box Boxed
33259 height_special "totalheight"
33264 backgroundcolor "none"
33267 \begin_layout Plain Layout
33277 \begin_layout Description
33279 \begin_inset space ~
33283 \begin_inset space ~
33286 thin This draws an oval frame around the box.
33287 The frame line thickness has the size 0.4
33288 \begin_inset space \thinspace{}
33293 \begin_inset Box ovalbox
33303 height_special "totalheight"
33308 backgroundcolor "none"
33311 \begin_layout Plain Layout
33321 \begin_layout Description
33323 \begin_inset space ~
33327 \begin_inset space ~
33330 thick This draws an oval frame around the box.
33331 The frame line thickness has the size 0.8
33332 \begin_inset space \thinspace{}
33337 \begin_inset Box Ovalbox
33347 height_special "totalheight"
33352 backgroundcolor "none"
33355 \begin_layout Plain Layout
33365 \begin_layout Description
33367 \begin_inset space ~
33370 shadow This draws a rectangular frame with a shadow around the box.
33371 The frame line thickness and the shadow can be specified.
33373 \begin_inset Box Shadowbox
33383 height_special "totalheight"
33388 backgroundcolor "none"
33391 \begin_layout Plain Layout
33401 \begin_layout Description
33403 \begin_inset space ~
33406 background This draws a box with a red background.
33407 Unlike colored boxes
33411 \begin_layout Plain Layout
33413 \begin_inset space \thinspace{}
33417 \begin_inset CommandInset ref
33419 reference "sec:Colored-Boxes"
33428 , it always uses the whole column width and the box is set as its own paragraph.
33430 \begin_inset Box Shaded
33440 height_special "totalheight"
33445 backgroundcolor "none"
33448 \begin_layout Plain Layout
33449 Shaded background box
33457 \begin_layout Description
33459 \begin_inset space ~
33463 \begin_inset space ~
33466 frame This draws a double-line rectangular frame around the box.
33467 The line thickness of the inner frame is 0.75
33468 \begin_inset space \thinspace{}
33472 \begin_inset space ~
33475 thickness, the thickness of the outer frame is 1.5
33476 \begin_inset space \thinspace{}
33480 \begin_inset space ~
33484 The distance between the lines is 1.5
33485 \begin_inset space \thinspace{}
33489 \begin_inset space ~
33493 \begin_inset space \thinspace{}
33497 \begin_inset space \thinspace{}
33501 \begin_inset space \thinspace{}
33506 \begin_inset Box Doublebox
33516 height_special "totalheight"
33521 backgroundcolor "none"
33524 \begin_layout Plain Layout
33526 Double rectangular box
33534 \begin_layout Standard
33535 \begin_inset VSpace bigskip
33539 's box label will reflect the different frame types.
33540 To be able to use all types, the \SpecialChar LaTeX
33546 \begin_inset Index idx
33549 \begin_layout Plain Layout
33551 -packages ! fancybox
33559 \begin_layout Standard
33560 \begin_inset VSpace bigskip
33563 When you use the decoration
33565 simple rectangular frame
33567 and no inner box, you can allow page breaks within a box.
33568 Note that then, unlike other framed boxes, the frame always uses the whole
33569 column width and the box is set as its own paragraph:
33570 \begin_inset Box Framed
33580 height_special "totalheight"
33585 backgroundcolor "none"
33588 \begin_layout Plain Layout
33589 Allow page break box
33597 \begin_layout Section
33599 \begin_inset Index idx
33602 \begin_layout Plain Layout
33603 Boxes ! Customization
33611 \begin_layout Standard
33612 The diameter of the round corners of the oval boxes can be set with the
33623 \begin_layout Standard
33631 \begin_layout Standard
33632 sets the diameter to 1
33633 \begin_inset space \thinspace{}
33640 \begin_layout Standard
33648 \begin_layout Standard
33649 sets the diameter to
33652 \begin_inset space \thinspace{}
33656 \begin_inset space \thinspace{}
33659 minimum(width and height of box)
33671 \begin_layout Standard
33675 \begin_layout Plain Layout
33685 \begin_inset Box Ovalbox
33695 height_special "totalheight"
33700 backgroundcolor "none"
33703 \begin_layout Plain Layout
33712 \begin_inset space \thinspace{}
33716 \begin_inset space \thinspace{}
33720 \begin_inset space \thinspace{}
33732 \begin_layout Plain Layout
33744 \begin_layout Standard
33745 \begin_inset VSpace bigskip
33751 \begin_layout Standard
33752 The default background color red of
33756 boxes can either be changed locally with the command
33760 definecolor{shadecolor}
33762 or globally with the menu
33764 Tools\SpecialChar menuseparator
33765 Preferences\SpecialChar menuseparator
33766 Colors\SpecialChar menuseparator
33768 \begin_inset space ~
33780 command is explained in section
33781 \begin_inset space ~
33785 \begin_inset CommandInset ref
33787 reference "sec:Colored-Tables"
33795 \begin_layout Plain Layout
33802 requires the \SpecialChar LaTeX
33807 in the preamble, see section
33808 \begin_inset space ~
33812 \begin_inset CommandInset ref
33814 reference "sec:Colored-Boxes"
33823 For example the appearance of the following shaded background box is set
33824 with the \SpecialChar TeX
33828 \begin_layout Standard
33833 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33836 \begin_layout Standard
33840 \begin_layout Plain Layout
33844 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33850 \begin_inset Box Shaded
33860 height_special "totalheight"
33865 backgroundcolor "none"
33868 \begin_layout Plain Layout
33871 This is yellow text in a
33881 box with dark green background.
33890 \begin_layout Plain Layout
33894 definecolor{shadecolor}{rgb}{1,0,0}
33902 \begin_layout Standard
33903 \begin_inset VSpace bigskip
33906 Manually changed sizes and colors are valid for all boxes following the
33907 commands that change them.
33910 \begin_layout Section
33912 \begin_inset CommandInset label
33914 name "sec:Minipages"
33919 \begin_inset Index idx
33922 \begin_layout Plain Layout
33931 \begin_layout Standard
33932 Minipages are treated by \SpecialChar LaTeX
33933 as pages within pages and can therefore for example
33934 have their own footnotes.
33937 \begin_layout Standard
33938 Minipages are useful when you write documents with different languages.
33941 \begin_layout Standard
33942 Below are two example minipages side by side.
33943 Their width is set to 45
33944 \begin_inset space \thinspace{}
33947 col% and they are separated by a horizontal fill, that was inserted via
33950 Insert\SpecialChar menuseparator
33952 \begin_inset space ~
33955 Formatting\SpecialChar menuseparator
33957 \begin_inset space ~
33963 \begin_inset Newpage newpage
33969 \begin_layout Standard
33970 \begin_inset Box Frameless
33980 height_special "totalheight"
33985 backgroundcolor "none"
33988 \begin_layout Plain Layout
33991 Dies ist ein deutscher Text.
33992 Dies ist ein deutscher Text.
33993 Dies ist ein deutscher Text.
33994 Dies ist ein deutscher Text.
33995 Dies ist ein deutscher Text.
33996 Dies ist ein deutscher Text.
33997 Dies ist ein deutscher Text.
33998 Dies ist ein deutscher Text.
33999 Dies ist ein deutscher Text.
34000 Dies ist ein deutscher Text.
34001 Dies ist ein deutscher Text.
34002 Dies ist ein deutscher Text.
34003 Dies ist ein deutscher Text
34007 \begin_layout Plain Layout
34010 Dies ist eine deutsche Fußnote.
34016 Dies ist ein deutscher Text.
34017 Dies ist ein deutscher Text.
34023 \begin_inset space \hfill{}
34027 \begin_inset Box Frameless
34037 height_special "totalheight"
34042 backgroundcolor "none"
34045 \begin_layout Plain Layout
34046 This is an English Text.
34047 This is an English Text.
34048 This is an English Text.
34049 This is an English Text.
34050 This is an English Text.
34051 This is an English Text.
34052 This is an English Text.
34053 This is an English Text.
34054 This is an English Text.
34055 This is an English Text.
34056 This is an English Text.
34057 This is an English Text.
34058 This is an English Text.
34059 This is an English Text.
34060 This is an English Text.
34061 This is an English Text.
34065 \begin_layout Plain Layout
34066 This is an English footnote.
34071 This is an English Text.
34079 \begin_layout Standard
34080 \begin_inset VSpace bigskip
34083 The document-wide paragraph settings are ignored within minipages.
34084 That means that there will be no space between paragraphs in minipages
34085 although you set it to e.
34086 \begin_inset space \thinspace{}
34090 \begin_inset space \space{}
34097 in the document settings.
34100 \begin_layout Standard
34101 Minipages can also be used to set a background color for text parts, see
34103 \begin_inset space ~
34107 \begin_inset CommandInset ref
34109 reference "sec:Colored-Boxes"
34116 \begin_layout Standard
34117 \begin_inset Note Greyedout
34120 \begin_layout Plain Layout
34125 You cannot have floats or margin notes inside minipages but minipages can
34126 be used inside tables, floats, and other boxes.
34134 \begin_layout Section
34136 \begin_inset CommandInset label
34138 name "sec:Parboxes"
34143 \begin_inset Index idx
34146 \begin_layout Plain Layout
34155 \begin_layout Standard
34156 Parboxes are very similar to minipages with the difference that they cannot
34158 \begin_inset Separator parbreak
34164 \begin_layout Standard
34166 \begin_inset Box Frameless
34176 height_special "totalheight"
34181 backgroundcolor "none"
34184 \begin_layout Plain Layout
34185 This a text within a parbox.
34186 This a text within a parbox.
34189 \begin_layout Plain Layout
34190 This footnote won't appear:
34194 \begin_layout Plain Layout
34195 This footnote is inside a parbox and will therefore not appear.
34208 \begin_layout Section
34209 Boxes for Words and Characters
34210 \begin_inset Index idx
34213 \begin_layout Plain Layout
34214 Boxes ! for Characters
34222 \begin_layout Subsection
34223 Prevent Hyphenation
34224 \begin_inset CommandInset label
34226 name "sec:Prevent-Hyphenation"
34231 \begin_inset Index idx
34234 \begin_layout Plain Layout
34235 Boxes ! to Prevent Hyphenation
34243 \begin_layout Standard
34244 You can use the box type
34248 to prevent words or text from being hyphenated.
34249 \begin_inset Newline newline
34252 Here is an example text:
34255 \begin_layout Standard
34256 This line is an example to show how you can prevent the hyphenation of
34257 \begin_inset Quotes eld
34261 \begin_inset Quotes erd
34267 \begin_layout Standard
34268 To prevent the hyphenation of the word
34269 \begin_inset Quotes eld
34273 \begin_inset Quotes erd
34276 , put the word into a box, set the
34279 \begin_inset space ~
34288 and use no explicit width.
34291 \begin_layout Standard
34292 This is the result:
34295 \begin_layout Standard
34296 This line is an example to show how you can prevent the hyphenation of
34297 \begin_inset Box Frameless
34307 height_special "totalheight"
34312 backgroundcolor "none"
34315 \begin_layout Plain Layout
34316 \begin_inset Quotes eld
34320 \begin_inset Quotes erd
34331 \begin_layout Standard
34332 You can alternatively set the command
34333 \begin_inset Quotes eld
34343 \begin_inset Quotes grd
34346 as \SpecialChar TeX
34347 Code directly before the word:
34350 \begin_layout Standard
34351 This line is an example to show how you can prevent the hyphenation of
34352 \begin_inset Quotes eld
34359 \begin_layout Plain Layout
34369 \begin_inset Quotes erd
34375 \begin_layout Standard
34376 Of course the word now protrudes over the side margin.
34377 To avoid this, add via the menu
34379 Insert\SpecialChar menuseparator
34380 Formatting\SpecialChar menuseparator
34382 \begin_inset space ~
34386 \begin_inset space ~
34394 arg "newline-insert newline"
34397 ) a line break before the word:
34400 \begin_layout Standard
34401 This line is an example to show how you can prevent the hyphenation of
34402 \begin_inset Newline newline
34406 \begin_inset Box Frameless
34416 height_special "totalheight"
34421 backgroundcolor "none"
34424 \begin_layout Plain Layout
34425 \begin_inset Quotes eld
34429 \begin_inset Quotes erd
34440 \begin_layout Subsection
34442 \begin_inset CommandInset label
34444 name "subsec:Vertical-Alignment"
34449 \begin_inset Index idx
34452 \begin_layout Plain Layout
34453 Boxes ! for Vertical Alignment
34459 \begin_inset Index idx
34462 \begin_layout Plain Layout
34471 \begin_layout Standard
34472 With the help of the command
34478 you can align words, characters or other boxes vertically relative to the
34486 is used with the following scheme:
34489 \begin_layout Standard
34494 raisebox{lift}[height][depth]{box content}
34497 \begin_layout Standard
34498 The lift can be a positive value to raise the box or a negative value to
34502 \begin_layout Standard
34503 To align for example the word
34504 \begin_inset Quotes eld
34508 \begin_inset Quotes erd
34511 so that the bottom of the
34512 \begin_inset Quotes eld
34516 \begin_inset Quotes erd
34520 \begin_inset Quotes eld
34524 \begin_inset Quotes erd
34527 is at the baseline, insert the command
34530 \begin_layout Standard
34540 \begin_layout Standard
34541 in \SpecialChar TeX
34542 Code before the word.
34543 After the word insert a closing brace
34544 \begin_inset Quotes eld
34552 \begin_inset Quotes erd
34555 in \SpecialChar TeX
34557 \begin_inset Newline newline
34560 This is the result:
34563 \begin_layout Standard
34564 This is a text line with the word
34568 \begin_layout Plain Layout
34580 \begin_inset Quotes eld
34584 \begin_inset Quotes erd
34591 \begin_layout Plain Layout
34601 \begin_layout Standard
34602 \begin_inset VSpace bigskip
34605 When you raise or lower characters in a line, the line distance will be
34609 \begin_layout Standard
34610 This is a text line with the word
34614 \begin_layout Plain Layout
34626 \begin_inset Quotes eld
34630 \begin_inset Quotes erd
34637 \begin_layout Plain Layout
34645 \begin_inset Newline newline
34648 This is a text line with the word
34652 \begin_layout Plain Layout
34662 \begin_inset Quotes eld
34666 \begin_inset Quotes erd
34673 \begin_layout Plain Layout
34683 \begin_layout Standard
34684 If you want to prevent this for a certain reason, set the box height to
34689 \begin_layout Standard
34699 \begin_layout Standard
34700 This is a text line with the word
34704 \begin_layout Plain Layout
34716 \begin_inset Quotes eld
34720 \begin_inset Quotes erd
34727 \begin_layout Plain Layout
34735 \begin_inset Newline newline
34739 \begin_inset Newline newline
34742 This is a text line with the word
34746 \begin_layout Plain Layout
34750 raisebox{0.5cm}[0pt]{
34756 \begin_inset Quotes eld
34760 \begin_inset Quotes erd
34767 \begin_layout Plain Layout
34777 \begin_layout Section
34779 \begin_inset CommandInset label
34781 name "sec:Colored-Boxes"
34786 \begin_inset Index idx
34789 \begin_layout Plain Layout
34798 \begin_layout Standard
34799 To color the background of a box just select the color you like in the box
34801 This is for example a box with orange background:
34802 \begin_inset Box Frameless
34812 height_special "totalheight"
34817 backgroundcolor "orange"
34820 \begin_layout Plain Layout
34821 Box with orange background
34829 \begin_layout Standard
34830 If you use the decoration
34833 \begin_inset space ~
34837 \begin_inset space ~
34842 you can set a frame color.
34843 In this case you must also specify a background color (LyX sets white as
34845 Here is an example:
34846 \begin_inset Box Boxed
34856 height_special "totalheight"
34861 backgroundcolor "yellow"
34864 \begin_layout Plain Layout
34865 Box with teal frame color and yellow background color
34873 \begin_layout Standard
34874 \begin_inset VSpace bigskip
34877 Of course you can also have colored text inside a colored box:
34878 \begin_inset Newline newline
34882 \begin_inset Box Boxed
34892 height_special "totalheight"
34897 backgroundcolor "magenta"
34900 \begin_layout Plain Layout
34903 This is colored text within a colored, framed box
34911 \begin_layout Standard
34912 \begin_inset VSpace bigskip
34918 \begin_layout Standard
34919 If you need another color than the predefined ones, you can define your
34920 own color as described in section
34921 \begin_inset space ~
34925 \begin_inset CommandInset ref
34927 reference "sec:Colored-Tables"
34932 To use your own color you must typeset the box by using TeX code:
34935 \begin_layout Standard
34936 Colored boxes without frame are created with the command
34943 It has the following scheme:
34946 \begin_layout Standard
34951 colorbox{color}{box content}
34954 \begin_layout Standard
34955 The box content can also be a box and colored boxes can also be within other
34958 \begin_inset space \thinspace{}
34962 \begin_inset space \space{}
34965 a darkgreen background for a word, insert the command
34968 \begin_layout Standard
34973 colorbox{darkgreen}{
34976 \begin_layout Standard
34977 before the word in \SpecialChar TeX
34979 After the word insert a closing brace
34980 \begin_inset Quotes eld
34988 \begin_inset Quotes erd
34991 in \SpecialChar TeX
34993 \begin_inset Newline newline
34996 This is the result:
34999 \begin_layout Standard
35000 This is a line where the word
35004 \begin_layout Plain Layout
35008 colorbox{darkgreen}{
35014 \begin_inset Quotes eld
35018 \begin_inset Quotes erd
35025 \begin_layout Plain Layout
35032 has a darkgreen background.
35035 \begin_layout Standard
35036 Framed, colored boxes are created with the command
35043 It has the following scheme:
35046 \begin_layout Standard
35051 fcolorbox{frame color}{box color}{box content}
35054 \begin_layout Section
35055 Rotated and Scaled Boxes
35058 \begin_layout Standard
35059 To use the commands described in this section, the \SpecialChar LaTeX
35065 \begin_inset Index idx
35068 \begin_layout Plain Layout
35070 -packages ! graphicx
35075 needs to be loaded in the document preamble with the command
35078 \begin_layout Standard
35083 @ifundefined{rotatebox}
35084 \begin_inset Newline newline
35088 \begin_inset Phantom HPhantom
35091 \begin_layout Plain Layout
35094 \begin_inset space ~
35104 usepackage{graphicx}}{}
35107 \begin_layout Standard
35108 \begin_inset Note Greyedout
35111 \begin_layout Plain Layout
35116 Not all DVI-viewers are able to display rotated or scaled material.
35124 \begin_layout Standard
35125 \begin_inset Note Greyedout
35128 \begin_layout Plain Layout
35133 Floats are not allowed inside a rotated or scaled box.
35141 \begin_layout Subsection
35143 \begin_inset Index idx
35146 \begin_layout Plain Layout
35153 \begin_inset Index idx
35156 \begin_layout Plain Layout
35165 \begin_layout Standard
35166 To rotate material, you can put it into a rotated box.
35167 Such a box is created using the command
35173 in \SpecialChar TeX
35174 Code with the following scheme:
35177 \begin_layout Standard
35182 rotatebox[rotation origin]{rotation angle}{box content}
35185 \begin_layout Standard
35186 The rotation origin is specified in the form
35191 The following positions are possible:
35211 (top), along with meaningful combinations of the four base positions.
35216 means that the rotation origin is at the top left corner of the box.
35217 When no rotation origin is specified, the position
35222 The rotation angle is a number that can be negative that specifies the
35224 The rotation direction is counterclockwise.
35227 \begin_layout Standard
35228 In the following example the command
35232 rotatebox[origin=c]{60}{
35234 was inserted as \SpecialChar TeX
35235 Code before the text
35236 \begin_inset Quotes eld
35240 \begin_inset Quotes erd
35243 ; after the text the box was closed by a closing brace
35247 in \SpecialChar TeX
35251 \begin_layout Standard
35256 \begin_layout Plain Layout
35260 rotatebox[origin=c]{60}{
35269 \begin_layout Plain Layout
35279 \begin_layout Standard
35280 The box content can also be another box or an inline formula:
35283 \begin_layout Standard
35288 \begin_layout Plain Layout
35292 rotatebox[origin=r]{-60}{
35298 \begin_inset Box Doublebox
35308 height_special "totalheight"
35313 backgroundcolor "none"
35316 \begin_layout Plain Layout
35326 \begin_layout Plain Layout
35337 \begin_layout Plain Layout
35341 rotatebox[origin=lb]{60}{
35347 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35354 \begin_layout Plain Layout
35364 \begin_layout Standard
35365 or an image or table:
35368 \begin_layout Standard
35373 \begin_layout Plain Layout
35377 rotatebox[origin=lb]{90}{
35383 \begin_inset Graphics
35384 filename clipart/platypus.eps
35394 \begin_layout Plain Layout
35401 with a rotated image
35405 \begin_layout Plain Layout
35409 rotatebox[origin=l]{-90}{
35415 \begin_inset Tabular
35416 <lyxtabular version="3" rows="2" columns="2">
35417 <features tabularvalignment="middle">
35418 <column alignment="center" valignment="top">
35419 <column alignment="center" valignment="top">
35421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35424 \begin_layout Plain Layout
35430 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35433 \begin_layout Plain Layout
35441 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35444 \begin_layout Plain Layout
35450 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35453 \begin_layout Plain Layout
35468 \begin_layout Plain Layout
35476 \begin_inset Index idx
35479 \begin_layout Plain Layout
35486 \begin_inset Index idx
35489 \begin_layout Plain Layout
35490 Table Customization ! Rotating
35498 \begin_layout Subsection
35500 \begin_inset Index idx
35503 \begin_layout Plain Layout
35510 \begin_inset Index idx
35513 \begin_layout Plain Layout
35522 \begin_layout Standard
35523 To scale material the commands
35535 can be used as \SpecialChar TeX
35539 \begin_layout Standard
35546 is used with the following scheme:
35549 \begin_layout Standard
35554 scalebox{horizontal}[vertical]{box content}
35557 \begin_layout Standard
35558 Horizontal and vertical are the corresponding scaling factors.
35559 If no vertical scaling factor is given, the horizontal factor will also
35560 be used as the vertical one.
35563 \begin_layout Standard
35570 creates for example a double size
35574 \begin_layout Plain Layout
35587 \begin_layout Plain Layout
35594 , compared with the document text size.
35597 \begin_layout Standard
35602 scalebox{2}[1]{Hello}
35604 on the other hand distorts the
35608 \begin_layout Plain Layout
35621 \begin_layout Plain Layout
35631 \begin_layout Standard
35632 If the scaling factor is negative, the box content will be mirrored.
35633 Therefore the command
35637 scalebox{-1}[1]{Hello}
35639 can be used to create mirror writing:
35643 \begin_layout Plain Layout
35656 \begin_layout Plain Layout
35666 \begin_layout Standard
35671 scalebox{1}[-1]{Hello}
35677 \begin_layout Plain Layout
35690 \begin_layout Plain Layout
35700 \begin_layout Standard
35705 scalebox{-1}[1]{box content}
35707 there exists the command
35708 \begin_inset Newline newline
35715 reflectbox{box content}
35720 \begin_layout Standard
35721 \begin_inset VSpace bigskip
35730 is used to scale the box to a defined width and height.
35731 The command scheme is:
35734 \begin_layout Standard
35739 resizebox{width}{height}{box content}
35742 \begin_layout Standard
35743 If one of the two command arguments given is an exclamation mark
35747 , the size is set so that the aspect ratio of the box content is kept.
35750 \begin_layout Standard
35755 resizebox{2cm}{1cm}{Hello}
35761 \begin_layout Plain Layout
35765 resizebox{2cm}{1cm}{
35774 \begin_layout Plain Layout
35782 \begin_inset Newline newline
35789 resizebox{2cm}{!}{Hello}
35795 \begin_layout Plain Layout
35808 \begin_layout Plain Layout
35818 \begin_layout Standard
35819 \begin_inset VSpace bigskip
35823 \begin_inset Note Greyedout
35826 \begin_layout Plain Layout
35843 are set to zero, no \SpecialChar LaTeX
35844 -errors occur when exporting the document but the exported
35845 files can not or only partly be displayed.
35853 \begin_layout Standard
35854 \begin_inset VSpace bigskip
35860 \begin_layout Standard
35861 The boxes can be combined in any order.
35863 \begin_inset space \thinspace{}
35867 \begin_inset space \space{}
35871 \begin_inset Newline newline
35878 rotatebox[origin=c]{-45}{
35882 reflectbox{Hello}}}
35883 \begin_inset Newline newline
35889 \begin_inset Separator parbreak
35895 \begin_layout Standard
35900 \begin_layout Plain Layout
35904 rotatebox[origin=c]{-45}{
35917 \begin_layout Plain Layout
35927 \begin_layout Standard
35929 Images, tables, and inline formulas are allowed as box content:
35930 \begin_inset Separator parbreak
35936 \begin_layout Standard
35941 \begin_layout Plain Layout
35945 rotatebox[origin=c]{-30}{
35955 \begin_inset Graphics
35956 filename clipart/platypus.eps
35966 \begin_layout Plain Layout
35977 \begin_layout Plain Layout
35981 rotatebox[origin=c]{-45}{
35991 \begin_inset Tabular
35992 <lyxtabular version="3" rows="2" columns="2">
35993 <features tabularvalignment="middle">
35994 <column alignment="center" valignment="top">
35995 <column alignment="center" valignment="top">
35997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36000 \begin_layout Plain Layout
36006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36009 \begin_layout Plain Layout
36017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36020 \begin_layout Plain Layout
36026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36029 \begin_layout Plain Layout
36044 \begin_layout Plain Layout
36055 \begin_layout Plain Layout
36059 rotatebox[origin=c]{-45}{
36069 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36076 \begin_layout Plain Layout
36084 \begin_inset Index idx
36087 \begin_layout Plain Layout
36094 \begin_inset Index idx
36097 \begin_layout Plain Layout
36098 Table Customization ! Scaling
36106 \begin_layout Standard
36107 When the global formula style
36111 is used in the document
36115 \begin_layout Plain Layout
36117 \begin_inset Quotes eld
36121 \begin_inset Quotes erd
36124 is added to the document class options.
36129 , display style formulas can also be scaled.
36132 \begin_layout Chapter
36133 Objects Surrounded by Text
36134 \begin_inset Index idx
36137 \begin_layout Plain Layout
36146 \begin_layout Section
36148 \begin_inset CommandInset label
36150 name "sec:Wrap-Floats"
36155 \begin_inset Index idx
36158 \begin_layout Plain Layout
36159 Floats ! Wrap Floats
36165 \begin_inset Index idx
36168 \begin_layout Plain Layout
36169 Surrounded by text ! Wrap Floats
36177 \begin_layout Standard
36178 \begin_inset Wrap figure
36185 \begin_layout Plain Layout
36186 \begin_inset Graphics
36187 filename clipart/mobius.eps
36189 scaleBeforeRotation
36190 rotateOrigin center
36197 \begin_layout Plain Layout
36198 \begin_inset Caption Standard
36200 \begin_layout Plain Layout
36201 \begin_inset CommandInset label
36203 name "fig:This-is-a"
36207 This is a figure wrap float.
36217 This float type is used if you want to wrap text around a figure or table
36218 so that it only occupies some fraction of the column width.
36219 It can be inserted using the menu
36221 Insert\SpecialChar menuseparator
36222 Floats\SpecialChar menuseparator
36224 \begin_inset space ~
36228 \begin_inset space ~
36236 \begin_inset space ~
36240 \begin_inset space ~
36245 if the \SpecialChar LaTeX
36251 \begin_inset Index idx
36254 \begin_layout Plain Layout
36256 -packages ! wrapfig
36265 \begin_layout Plain Layout
36266 Installing a \SpecialChar LaTeX
36267 -package is explained it in the
36271 \begin_inset space ~
36281 The settings of the float can be modified by right-clicking on the float
36283 The mandatory settings are the float
36296 that specifies how much the float is set into the paragraph
36297 \begin_inset space \thinspace{}
36301 \begin_inset space \thinspace{}
36304 page margin, and the
36307 \begin_inset space ~
36312 that specifies how many text lines the float will approximately need.
36313 The line span is often hard to approximate; so it is better only to use
36314 it when you encounter float placement problems.
36315 You can furthermore decide if \SpecialChar LaTeX
36316 is allowed to let the float float within
36317 the paragraph or to surrounding paragraphs.
36319 \begin_inset space ~
36323 \begin_inset CommandInset ref
36325 reference "fig:This-is-a"
36329 is an example text wrap float with a width of 40
36330 \begin_inset space \thinspace{}
36334 \begin_inset space \thinspace{}
36337 cm overhang, set to the left.
36340 \begin_layout Standard
36341 \begin_inset Note Greyedout
36344 \begin_layout Plain Layout
36350 \begin_inset space ~
36353 wrap float floats are fragile! E.
36354 \begin_inset space \thinspace{}
36358 \begin_inset space \space{}
36361 having a figure too close to the bottom of the page can mess things up in
36362 such a way that the float does not appear in the output or that it is placed
36363 over some other text.
36371 \begin_layout Standard
36372 In general, the following applies for wrap floats:
36375 \begin_layout Itemize
36376 They should not be placed in paragraphs that run over a page break.
36377 That means that wrap floats are better inserted in their exact place when
36378 the document is almost finished and you are able to estimate where page
36379 breaks will appear.
36382 \begin_layout Itemize
36383 They should either be placed in their own paragraph before the paragraph
36384 where they should wrap into or within a paragraph.
36387 \begin_layout Itemize
36388 In consecutive paragraphs they may cause troubles, so ensure that there
36389 is a text paragraph between them as separator.
36392 \begin_layout Itemize
36393 They are not allowed in section headings or tables.
36396 \begin_layout Itemize
36397 Their numbering and referencing works as described in chap.
36398 \begin_inset space \thinspace{}
36402 \begin_inset CommandInset ref
36404 reference "chap:Floats"
36411 \begin_layout Section
36412 Surrounded Fixed Objects
36413 \begin_inset Index idx
36416 \begin_layout Plain Layout
36417 Surrounded by text ! Fixed objects
36425 \begin_layout Standard
36426 The wrap floats described in sec.
36427 \begin_inset space \thinspace{}
36431 \begin_inset CommandInset ref
36433 reference "sec:Wrap-Floats"
36437 have these positions in the paragraph:
36438 \begin_inset Separator parbreak
36444 \begin_layout Standard
36447 \begin_inset Tabular
36448 <lyxtabular version="3" rows="2" columns="2">
36449 <features tabularvalignment="middle">
36450 <column alignment="center" valignment="top">
36451 <column alignment="center" valignment="top">
36453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36456 \begin_layout Plain Layout
36457 \begin_inset Graphics
36458 filename ../images/dialog-show-new-inset_graphics.png
36460 scaleBeforeRotation
36469 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36472 \begin_layout Plain Layout
36480 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36483 \begin_layout Plain Layout
36489 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36492 \begin_layout Plain Layout
36504 \begin_inset Tabular
36505 <lyxtabular version="3" rows="2" columns="2">
36506 <features tabularvalignment="middle">
36507 <column alignment="center" valignment="top">
36508 <column alignment="center" valignment="top">
36510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36513 \begin_layout Plain Layout
36519 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36522 \begin_layout Plain Layout
36523 \begin_inset Graphics
36524 filename ../images/dialog-show-new-inset_graphics.png
36526 scaleBeforeRotation
36537 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36540 \begin_layout Plain Layout
36546 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36549 \begin_layout Plain Layout
36563 \begin_layout Standard
36564 To get an object exactly at the position where it is inserted, for example
36565 to get one of these positions:
36566 \begin_inset VSpace defskip
36572 \begin_layout Standard
36575 \begin_inset Tabular
36576 <lyxtabular version="3" rows="2" columns="2">
36577 <features tabularvalignment="middle">
36578 <column alignment="center" valignment="top">
36579 <column alignment="center" valignment="top">
36581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36584 \begin_layout Plain Layout
36590 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36593 \begin_layout Plain Layout
36601 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36604 \begin_layout Plain Layout
36605 \begin_inset Graphics
36606 filename ../images/dialog-show-new-inset_graphics.png
36608 scaleBeforeRotation
36617 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36620 \begin_layout Plain Layout
36632 \begin_inset Tabular
36633 <lyxtabular version="3" rows="2" columns="2">
36634 <features tabularvalignment="middle">
36635 <column alignment="center" valignment="top">
36636 <column alignment="center" valignment="top">
36638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36641 \begin_layout Plain Layout
36647 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36650 \begin_layout Plain Layout
36658 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36661 \begin_layout Plain Layout
36667 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36670 \begin_layout Plain Layout
36671 \begin_inset Graphics
36672 filename ../images/dialog-show-new-inset_graphics.png
36674 scaleBeforeRotation
36689 \begin_inset Tabular
36690 <lyxtabular version="3" rows="2" columns="3">
36691 <features tabularvalignment="middle">
36692 <column alignment="center" valignment="top">
36693 <column alignment="center" valignment="top">
36694 <column alignment="center" valignment="top">
36696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36699 \begin_layout Plain Layout
36705 <cell alignment="center" valignment="top" topline="true" usebox="none">
36708 \begin_layout Plain Layout
36709 \begin_inset Graphics
36710 filename ../images/dialog-show-new-inset_graphics.png
36712 scaleBeforeRotation
36721 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36724 \begin_layout Plain Layout
36732 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36735 \begin_layout Plain Layout
36741 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36744 \begin_layout Plain Layout
36750 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36753 \begin_layout Plain Layout
36765 \begin_inset Tabular
36766 <lyxtabular version="3" rows="2" columns="3">
36767 <features tabularvalignment="middle">
36768 <column alignment="center" valignment="top">
36769 <column alignment="center" valignment="top">
36770 <column alignment="center" valignment="top">
36772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36775 \begin_layout Plain Layout
36781 <cell alignment="center" valignment="top" topline="true" usebox="none">
36784 \begin_layout Plain Layout
36790 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36793 \begin_layout Plain Layout
36801 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36804 \begin_layout Plain Layout
36810 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36813 \begin_layout Plain Layout
36814 \begin_inset Graphics
36815 filename ../images/dialog-show-new-inset_graphics.png
36817 scaleBeforeRotation
36826 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36829 \begin_layout Plain Layout
36843 \begin_layout Standard
36846 \begin_inset Tabular
36847 <lyxtabular version="3" rows="3" columns="2">
36848 <features tabularvalignment="middle">
36849 <column alignment="center" valignment="top">
36850 <column alignment="center" valignment="top">
36852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36855 \begin_layout Plain Layout
36861 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36864 \begin_layout Plain Layout
36872 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36875 \begin_layout Plain Layout
36876 \begin_inset Graphics
36877 filename ../images/dialog-show-new-inset_graphics.png
36879 scaleBeforeRotation
36888 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36891 \begin_layout Plain Layout
36899 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36902 \begin_layout Plain Layout
36908 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36911 \begin_layout Plain Layout
36923 \begin_inset Tabular
36924 <lyxtabular version="3" rows="3" columns="3">
36925 <features tabularvalignment="middle">
36926 <column alignment="center" valignment="top">
36927 <column alignment="center" valignment="top">
36928 <column alignment="center" valignment="top">
36930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36933 \begin_layout Plain Layout
36939 <cell alignment="center" valignment="top" topline="true" usebox="none">
36942 \begin_layout Plain Layout
36948 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36951 \begin_layout Plain Layout
36959 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36962 \begin_layout Plain Layout
36968 <cell alignment="center" valignment="top" usebox="none">
36971 \begin_layout Plain Layout
36972 \begin_inset Graphics
36973 filename ../images/dialog-show-new-inset_graphics.png
36975 scaleBeforeRotation
36984 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36987 \begin_layout Plain Layout
36995 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36998 \begin_layout Plain Layout
37004 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37007 \begin_layout Plain Layout
37013 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37016 \begin_layout Plain Layout
37028 \begin_inset Tabular
37029 <lyxtabular version="3" rows="3" columns="2">
37030 <features tabularvalignment="middle">
37031 <column alignment="center" valignment="top">
37032 <column alignment="center" valignment="top">
37034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37037 \begin_layout Plain Layout
37043 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37046 \begin_layout Plain Layout
37054 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37057 \begin_layout Plain Layout
37063 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37066 \begin_layout Plain Layout
37067 \begin_inset Graphics
37068 filename ../images/dialog-show-new-inset_graphics.png
37070 scaleBeforeRotation
37081 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37084 \begin_layout Plain Layout
37090 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37093 \begin_layout Plain Layout
37107 \begin_layout Standard
37109 you can use the \SpecialChar LaTeX
37115 \begin_inset Index idx
37118 \begin_layout Plain Layout
37120 -packages ! picinpar
37126 Here is an example:
37129 \begin_layout Standard
37133 \begin_layout Plain Layout
37143 \begin_inset Note Note
37146 \begin_layout Plain Layout
37147 The following section will only be displayed when the \SpecialChar LaTeX
37160 \begin_layout Standard
37164 \begin_layout Plain Layout
37168 begin{window}[2,c,{
37174 \begin_inset Graphics
37175 filename clipart/mobius.eps
37178 scaleBeforeRotation
37179 rotateOrigin center
37187 \begin_layout Plain Layout
37192 \begin_layout Plain Layout
37201 It was in the spring of the year 1894 that all London was interested, and
37202 the fashionable world dismayed, by the murder of the Honourable Ronald
37203 Adair under most unusual and inexplicable circumstances.
37204 The public has already learned those particulars of the crime which
37210 \begin_layout Plain Layout
37221 came out in the police investigation, but a good deal was suppressed upon
37222 that occasion, since the case for the prosecution was so overwhelmingly
37223 strong that it was not necessary to bring forward all the facts.
37224 Only now, at the end of nearly ten years, am I allowed to supply those
37225 missing links which make up the whole of that remarkable chain.
37231 \begin_layout Plain Layout
37243 \begin_layout Standard
37247 \begin_layout Plain Layout
37256 Footnote of the paragraph with the fixed object.
37260 \begin_layout Plain Layout
37270 \begin_layout Standard
37271 Surrounded fixed objects are used to let text float around them, at which
37272 the object's position in the paragraph can be determined by the number
37274 In contrary to floats is it not possible to have a numbered caption.
37277 \begin_layout Standard
37278 A fixed object is inserted by adding the command
37281 \begin_layout Standard
37286 begin{window}[2,c,{
37289 \begin_layout Standard
37290 as \SpecialChar TeX
37291 Code at the beginning of the paragraph.
37292 The first parameter in the bracket, here '2', defines the number of lines
37293 above the object, the second, here 'c', the position of the object.
37294 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37295 Behind the command you insert the object.
37296 In this example an image with a width of 40
37297 \begin_inset space \thinspace{}
37300 % of the text column width was inserted.
37301 The object can also be a table, a box or an equation.
37302 Behind the object the command
37305 \begin_layout Standard
37308 },description text]
37309 \begin_inset Newline newline
37315 \begin_layout Standard
37318 \begin_inset Quotes eld
37326 \begin_inset Quotes erd
37329 is in the second line.
37330 The description text is optional.
37331 The text surrounding the object must be in the same paragraph as the object,
37332 so it must begin directly after the
37337 At the end of the paragraph insert the command:
37340 \begin_layout Standard
37348 \begin_layout Standard
37349 Within a paragraph with a fixed object, you cannot insert footnotes in the
37351 You have to use instead the command
37357 inside the paragraph and outside the command
37363 as described in sec.
37364 \begin_inset space \thinspace{}
37368 \begin_inset CommandInset ref
37370 reference "sec:Footnotes"
37377 \begin_layout Standard
37381 \begin_layout Plain Layout
37391 \begin_inset Note Note
37394 \begin_layout Plain Layout
37395 The following will be displayed when the \SpecialChar LaTeX
37408 \begin_layout Standard
37409 You need to install the \SpecialChar LaTeX
37414 to see the following part of this section in the output.
37417 \begin_layout Standard
37421 \begin_layout Plain Layout
37433 \begin_layout Section
37435 \begin_inset Index idx
37438 \begin_layout Plain Layout
37445 \begin_inset Index idx
37448 \begin_layout Plain Layout
37449 Surrounded by text ! Initials
37457 \begin_layout Standard
37458 To use initials, you must have the \SpecialChar LaTeX
37464 \begin_inset Index idx
37467 \begin_layout Plain Layout
37469 -packages ! lettrine
37474 installed and use the module
37478 in your document (menu
37480 Document\SpecialChar menuseparator
37481 Settings\SpecialChar menuseparator
37485 To insert an initial, use the style
37490 This style has a mandatory and two optional arguments.
37491 The arguments are inserted via the
37496 The mandatory argument
37500 contains the letter(s) that is the initial, the argument
37503 \begin_inset space ~
37507 \begin_inset space ~
37512 contains the rest of the word or text of the initial letter(s).
37517 contains parameters to modify the initial.
37518 For more information about the possible parameters see the documentation
37524 \begin_inset CommandInset citation
37531 The style itself contains the text that is surrounding the initial.
37532 The usual style is hereby that the word whose first letter is the initial,
37540 \begin_layout Standard
37541 Here are some examples:
37544 \begin_layout Standard
37548 \begin_layout Plain Layout
37558 \begin_inset Note Note
37561 \begin_layout Plain Layout
37562 The following section will only be displayed when the \SpecialChar LaTeX
37575 \begin_layout Enumerate
37576 No optional argument, the initial is the letter 'I' in the math font
37577 \begin_inset Formula $\mathfrak{Fraktur}$
37581 \begin_inset Separator parbreak
37588 \begin_layout Initial
37589 \begin_inset Argument 2
37592 \begin_layout Plain Layout
37593 \begin_inset Formula $\mathfrak{I}$
37602 \begin_inset Argument 3
37605 \begin_layout Plain Layout
37611 was in the spring of the year 1894 that all London was interested, and
37612 the fashionable world dismayed, by the murder of the Honourable Ronald
37613 Adair under most unusual and inexplicable circumstances.
37614 The public has already learned those particulars of the crime which came
37615 out in the police investigation, but a good deal was suppressed upon that
37616 occasion, since the case for the prosecution was so overwhelmingly strong
37617 that it was not necessary to bring forward all the facts.
37618 \begin_inset Newpage newpage
37625 \begin_layout Enumerate
37626 Only one line is surrounding the initial, which is formed by two letters
37627 in standard font and no text is printed in small caps:
37628 \begin_inset Separator parbreak
37635 \begin_layout Initial
37636 \begin_inset Argument 1
37639 \begin_layout Plain Layout
37646 \begin_inset Argument 2
37649 \begin_layout Plain Layout
37655 was in the spring of the year 1894 that all London was interested, and
37656 the fashionable world dismayed, by the murder of the Honourable Ronald
37657 Adair under most unusual and inexplicable circumstances.
37658 The public has already learned those particulars of the crime which came
37659 out in the police investigation, but a good deal was suppressed upon that
37660 occasion, since the case for the prosecution was so overwhelmingly strong
37661 that it was not necessary to bring forward all the facts.
37665 \begin_layout Enumerate
37666 Magenta, hanging initial over 3
37667 \begin_inset space ~
37670 lines in the math font
37671 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37675 \begin_inset Quotes eld
37678 t was in the spring
37679 \begin_inset Quotes erd
37686 ; to color the initial, you must insert this command before the initial:
37687 \begin_inset Newline newline
37701 \begin_inset Newline newline
37709 \begin_inset Quotes eld
37713 \begin_inset Quotes erd
37717 \begin_inset Quotes eld
37721 \begin_inset Quotes erd
37725 \begin_inset Quotes eld
37729 \begin_inset Quotes erd
37733 \begin_inset Quotes eld
37737 \begin_inset Quotes erd
37741 \begin_inset Quotes eld
37745 \begin_inset Quotes erd
37749 \begin_inset Quotes eld
37753 \begin_inset Quotes erd
37757 \begin_inset Quotes eld
37761 \begin_inset Quotes erd
37765 \begin_inset Quotes eld
37769 \begin_inset Quotes erd
37772 , and add this command to the document preamble:
37773 \begin_inset Newline newline
37780 @ifundefined{textcolor}
37781 \begin_inset Newline newline
37785 \begin_inset space ~
37790 usepackage{color}}{}
37793 \begin_inset Separator parbreak
37800 \begin_layout Standard
37804 \begin_layout Plain Layout
37818 \begin_inset Note Note
37821 \begin_layout Plain Layout
37822 makes the initial magenta
37830 \begin_layout Initial
37831 \begin_inset Argument 1
37834 \begin_layout Plain Layout
37835 lines=3, lhang=0.33, loversize=0.25
37841 \begin_inset Argument 2
37844 \begin_layout Plain Layout
37845 \begin_inset Formula $\mathcal{I}$
37854 \begin_inset Argument 3
37857 \begin_layout Plain Layout
37858 t was in the spring
37863 of the year 1894 that all London was interested, and the fashionable world
37864 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37865 and inexplicable circumstances.
37866 The public has already learned those particulars of the crime which came
37867 out in the police investigation, but a good deal was suppressed upon that
37868 occasion, since the case for the prosecution was so overwhelmingly strong
37869 that it was not necessary to bring forward all the facts.
37873 \begin_layout Standard
37877 \begin_layout Plain Layout
37887 \begin_inset Note Note
37890 \begin_layout Plain Layout
37891 The following will be displayed when the \SpecialChar LaTeX
37904 \begin_layout Standard
37905 You need to install the \SpecialChar LaTeX
37910 to see the following part of this section in the output.
37913 \begin_layout Standard
37917 \begin_layout Plain Layout
37929 \begin_layout Chapter
37930 External Document Parts
37931 \begin_inset Index idx
37934 \begin_layout Plain Layout
37935 External Document Parts
37943 \begin_layout Standard
37946 Insert\SpecialChar menuseparator
37949 you can insert external material into your document.
37953 \begin_layout Description
37955 \begin_inset space ~
37958 Document Another \SpecialChar LyX
37959 document; its content is directly inserted to your document.
37962 \begin_layout Description
37964 \begin_inset space ~
37967 Text A text document; each line is inserted in your document as a separate
37971 \begin_layout Description
37973 \begin_inset space ~
37977 \begin_inset space ~
37981 \begin_inset space ~
37984 Lines A text document; text lines are inserted in your document continuously
37985 but an empty text line creates a new paragraph.
37988 \begin_layout Description
37990 \begin_inset space ~
37993 Material Files in various formats.
37996 \begin_layout Description
37998 \begin_inset space ~
38001 Document \SpecialChar LyX
38002 or \SpecialChar LaTeX
38006 \begin_layout Section
38008 \begin_inset Index idx
38011 \begin_layout Plain Layout
38012 External Document Parts ! External Material
38020 \begin_layout Standard
38021 The external material feature allows you to insert files into your document
38022 without converting them to a format that can be read by the document output
38025 takes care of the necessary conversions.
38026 This is similar to images that can be inserted in various image formats
38027 in \SpecialChar LyX
38029 When you have enabled Instant Preview in \SpecialChar LyX
38030 's preferences under
38033 \begin_inset space ~
38037 \begin_inset space ~
38040 feel\SpecialChar menuseparator
38043 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38047 \begin_layout Standard
38048 External material can be inserted via the
38052 dialog that is accessible with the menu
38054 Insert\SpecialChar menuseparator
38055 File\SpecialChar menuseparator
38057 \begin_inset space ~
38063 Currently the following file types (
38070 \begin_layout Description
38071 ChessDiagram This template supports chess position diagrams made with the
38075 \begin_inset CommandInset href
38078 target "http://en.wikipedia.org/wiki/XBoard"
38087 \begin_layout Description
38088 Date This inserts the date in the form
38093 This is a date inserted as external material:
38094 \begin_inset External
38101 \begin_inset space ~
38105 \begin_inset Note Note
38108 \begin_layout Plain Layout
38109 Remove the protected space when bug 4398 is fixed!
38115 \begin_inset Newline newline
38118 The date is not shown within \SpecialChar LyX
38119 , only in the output.
38120 There are two other methods of inserting a date: Via menu
38122 Insert\SpecialChar menuseparator
38125 and with the \SpecialChar LaTeX
38132 as \SpecialChar TeX
38134 The different methods are compared in Table
38135 \begin_inset space ~
38139 \begin_inset CommandInset ref
38141 reference "tab:Comparison-of-the"
38148 \begin_layout Description
38149 Dia This template supports diagrams created with the program
38152 \begin_inset CommandInset href
38155 target "http://en.wikipedia.org/wiki/Dia_(software)"
38164 \begin_layout Description
38165 GnumericSpreadsheet With this template you can insert spreadsheets
38166 \begin_inset space \thinspace{}
38170 \begin_inset space \thinspace{}
38173 tables in the format of
38176 \begin_inset CommandInset href
38179 target "http://en.wikipedia.org/wiki/Gnumeric"
38186 \begin_inset CommandInset href
38188 name "OpenDocument"
38189 target "http://en.wikipedia.org/wiki/OpenDocument"
38194 \begin_inset CommandInset href
38196 name "Microsoft Office XML"
38197 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38202 \begin_inset CommandInset href
38204 name "Office Open XML"
38205 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38210 For this feature \SpecialChar LyX
38211 must have found the program
38215 during its configuration.
38216 This program is part of Gnumeric, so that you must have Gnumeric installed,
38217 also if you don't have tables in the Gnumeric format.
38218 For examples and possible limitations have a look at \SpecialChar LyX
38226 \begin_layout Description
38227 LilyPond This template is used for music notation typeset with the program
38228 \begin_inset Newline linebreak
38234 \begin_inset CommandInset href
38237 target "http://en.wikipedia.org/wiki/LilyPond"
38244 For \SpecialChar LyX
38245 's extended support for LilyPond have a look at \SpecialChar LyX
38253 \begin_layout Description
38254 PDFPages With this template you can insert PDF documents to your document.
38255 To specify the range of pages that should be included, use the option
38265 LaTeX and LyX options
38268 The argument of this option is a comma separated list, containing page
38269 numbers (insert as option
38273 ), ranges of page numbers (
38277 ) or any combination.
38278 To insert empty pages use {}.
38280 \begin_inset space \thinspace{}
38284 \begin_inset space ~
38289 pages={3,{},8-11,15}
38291 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38292 Page ranges are specified in the syntax
38301 This selects all pages from
38314 defaults to the first page; omitting
38318 defaults to the last page of the document.
38319 The last page can also be selected with the keyword
38324 (This is only permitted in a page range.) So
38328 will insert all pages of the document and
38332 will insert all pages in reverse order.
38333 If the pages option is not specified, only the first page of the PDF is
38335 \begin_inset Newline newline
38342 inserts the pages with their original size, if this option is not given,
38343 the pages will be resized to fith the width of the page of your document.
38348 you can specify the width and height of the input pages and their rotation.
38349 If another width than 100
38350 \begin_inset space \thinspace{}
38353 Scale% is used, the option
38357 will be overwritten.
38358 For more info and possible options, have a look into the documentation
38359 of the \SpecialChar LaTeX
38365 \begin_inset CommandInset citation
38372 \begin_inset Index idx
38375 \begin_layout Plain Layout
38377 -packages ! pdfpages
38383 \begin_inset Newline newline
38386 To use this template in a
38390 presentation you need to first insert an
38394 environment and in a subsequent paragraph a \SpecialChar TeX
38395 Code box containing the command
38400 setbeamertemplate{background canvas}{}
38403 Then you can insert as many paragraphs containing the PDFPages template
38405 Behind the included PDF pages you can resume the Beamer presentation by
38406 beginning a new frame or by starting a new section.
38407 To avoid stray blank pages prior to the PDF pages, make sure to use the
38412 alignment for the paragraph containing the template.
38413 \begin_inset Newline newline
38416 Here is an included PDF which is rotated by -5°:
38417 \begin_inset External
38419 filename clipart/Abstract.pdf
38420 extra LaTeX "noautoscale, pages=-"
38422 rotateOrigin bottomleft
38429 \begin_layout Description
38430 RasterImage This can be used for bitmap images.
38431 The image can be treated in the
38435 dialog like the images that are usually included via the
38439 dialog as described in section
38440 \begin_inset space ~
38444 \begin_inset CommandInset ref
38446 reference "sec:Graphics-Dialog"
38451 The difference to the normal image input is that only raster images are
38452 allowed; that means that PDF and EPS-images are not supported.
38453 Here is an inserted raster image:
38454 \begin_inset External
38455 template RasterImage
38456 filename clipart/ToolbarEnvBox.png
38463 \begin_layout Description
38464 XFig This template supports images created with the program
38467 \begin_inset CommandInset href
38470 target "http://en.wikipedia.org/wiki/Xfig"
38479 \begin_layout Standard
38480 \begin_inset Float table
38486 \begin_layout Plain Layout
38487 \begin_inset Caption Standard
38489 \begin_layout Plain Layout
38490 \begin_inset CommandInset label
38492 name "tab:Comparison-of-the"
38496 Comparison of the date input methods.
38504 \begin_layout Plain Layout
38506 \begin_inset Tabular
38507 <lyxtabular version="3" rows="4" columns="4">
38508 <features tabularvalignment="middle">
38509 <column alignment="center" valignment="top">
38510 <column alignment="center" valignment="top">
38511 <column alignment="center" valignment="top">
38512 <column alignment="center" valignment="top">
38514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38517 \begin_layout Plain Layout
38523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38526 \begin_layout Plain Layout
38529 External Material\SpecialChar menuseparator
38535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38538 \begin_layout Plain Layout
38541 Insert\SpecialChar menuseparator
38547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38550 \begin_layout Plain Layout
38562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38565 \begin_layout Plain Layout
38572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38575 \begin_layout Plain Layout
38581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38584 \begin_layout Plain Layout
38590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38593 \begin_layout Plain Layout
38594 as \SpecialChar TeX
38602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38605 \begin_layout Plain Layout
38612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38615 \begin_layout Plain Layout
38621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38624 \begin_layout Plain Layout
38630 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38633 \begin_layout Plain Layout
38641 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38644 \begin_layout Plain Layout
38650 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38653 \begin_layout Plain Layout
38659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38662 \begin_layout Plain Layout
38668 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38671 \begin_layout Plain Layout
38690 \begin_layout Standard
38691 When you use the option
38703 dialog, only the path to the inserted file is shown in the output.
38704 \begin_inset Newline newline
38707 External material is displayed in \SpecialChar LyX
38708 either as a box like this:
38709 \begin_inset Graphics
38710 filename clipart/ExternalMaterialQt4.png
38712 scaleBeforeRotation
38716 or as image, depending on the option
38722 LaTeX and LyX options
38727 \begin_layout Standard
38734 manual explains how you can define your own templates.
38737 \begin_layout Section
38739 \begin_inset CommandInset label
38741 name "sec:Child-Documents"
38746 \begin_inset Index idx
38749 \begin_layout Plain Layout
38750 External Document Parts ! Child Documents
38756 \begin_inset Index idx
38759 \begin_layout Plain Layout
38768 \begin_layout Standard
38769 Child documents are used if you have a long document consisting of several
38770 larger parts or sections.
38771 For maintenance it is often useful and sometimes even required to split
38772 the document into several files that can be revised separately.
38773 The different documents are then the so called
38774 \begin_inset Quotes eld
38778 \begin_inset Quotes erd
38781 , and a master document connects them to print the full document or parts
38783 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38785 the bibliography, and labels for cross-references.
38788 \begin_layout Standard
38789 To be able to work on child documents without the need to open their master,
38790 specify in the child document the master in the menu
38792 Document\SpecialChar menuseparator
38793 Settings\SpecialChar menuseparator
38795 \begin_inset space ~
38801 This master document will then be used in the background by \SpecialChar LyX
38803 the child document.
38806 \begin_layout Standard
38807 Included documents are displayed in \SpecialChar LyX
38808 as a box like this:
38809 \begin_inset Graphics
38810 filename clipart/ChildDocumentQt4.png
38812 scaleBeforeRotation
38816 To include child documents in a master document use the menu
38818 Insert\SpecialChar menuseparator
38819 File\SpecialChar menuseparator
38821 \begin_inset space ~
38827 A dialog pops up where you can choose between four include methods:
38830 \begin_layout Description
38831 Include You can include \SpecialChar LyX
38832 and \SpecialChar LaTeX
38842 dialog, the included document will be opened in \SpecialChar LyX
38843 in a new file tab so that
38845 \begin_inset Newline newline
38851 \begin_layout Standard
38852 Here is a child document inserted using
38857 \begin_inset CommandInset include
38858 LatexCommand include
38859 filename "DummyDocument1.lyx"
38866 \begin_layout Standard
38867 The section numbering includes the sections of the included files in the
38868 order they are inserted in the master document.
38869 The included example document has for example a subsection that is numbered
38870 as a subsection of this section.
38871 Labels of included documents can be referenced: Subsection
38872 \begin_inset space ~
38876 \begin_inset CommandInset ref
38878 reference "subsec:External-Subsection-1"
38885 \begin_layout Standard
38886 The preamble of the child document is ignored; only the preamble of the
38887 master document is used.
38888 Branches in child documents will be ignored by the master document when
38889 the master document does not have a branch with the same name.
38890 Included documents are inserted starting on a new page and ending with
38894 \begin_layout Standard
38895 \begin_inset Note Greyedout
38898 \begin_layout Plain Layout
38903 If you have included a \SpecialChar LyX
38904 or \SpecialChar LaTeX
38905 file, you are warned when you export/view the
38906 document in case the child document uses another document class than the
38907 master document as this will lead to unexpected outputs.
38915 \begin_layout Description
38916 Input This method is very similar to the Include method.
38917 The differences are:
38918 \begin_inset Separator parbreak
38925 \begin_layout Itemize
38926 Input files don't start with a new page and don't end with a page break.
38929 \begin_layout Itemize
38930 Input files can be previewed in \SpecialChar LyX
38934 \begin_inset space ~
38939 is enabled in \SpecialChar LyX
38940 's preferences under
38943 \begin_inset space ~
38947 \begin_inset space ~
38950 feel\SpecialChar menuseparator
38956 \begin_layout Itemize
38957 You cannot exclude Input files via the menu
38959 Document\SpecialChar menuseparator
38960 Settings\SpecialChar menuseparator
38967 \begin_layout Standard
38968 Here is a child document inserted using
38973 \begin_inset CommandInset include
38975 filename "DummyDocument2.lyx"
38982 \begin_layout Description
38983 Verbatim With this method any text file can be included.
38984 The file is shown in the output with its source code; no command used in
38985 the text is invoked.
38986 You can use the option
38988 Mark spaces in output
38990 that displays the character
38991 \begin_inset Quotes eld
38998 \begin_layout Plain Layout
39008 \begin_inset Quotes erd
39011 for every space character in the source code.
39012 The difference from the method via the menu
39014 Insert\SpecialChar menuseparator
39015 File\SpecialChar menuseparator
39017 \begin_inset space ~
39022 is that the document content is not shown in \SpecialChar LyX
39026 \begin_layout Standard
39027 Here is a child document inserted as Verbatim:
39028 \begin_inset CommandInset include
39029 LatexCommand verbatiminput
39030 filename "DummyTextDocument.txt"
39035 \begin_inset VSpace bigskip
39038 Here is a child document inserted as Verbatim using the
39040 Mark spaces in output
39043 \begin_inset CommandInset include
39044 LatexCommand verbatiminput*
39045 filename "DummyTextDocument.txt"
39052 \begin_layout Standard
39053 \begin_inset VSpace bigskip
39059 \begin_layout Standard
39060 \begin_inset Note Greyedout
39063 \begin_layout Plain Layout
39068 As you can see in the examples above, the text of the documents included
39073 is not broken at the end of the document lines.
39081 \begin_layout Description
39082 Listings This type is described in chapter
39083 \begin_inset space ~
39087 \begin_inset CommandInset ref
39089 reference "cha:Program-Code-Listings"
39096 \begin_layout Standard
39097 \begin_inset Note Greyedout
39100 \begin_layout Plain Layout
39105 Including the same document twice in a document using different methods
39106 could cause \SpecialChar LaTeX
39115 \begin_layout Standard
39116 If you want to view/export only selected children of your master document,
39117 either because you want to save compiling time or because you want to distribut
39118 e single chapters of the book you are just writing, you can exclude children
39120 This is done via the menu
39122 Document\SpecialChar menuseparator
39123 Settings\SpecialChar menuseparator
39127 You can exclude\SpecialChar breakableslash
39128 include children by double-clicking on the
39132 column of the respective child document in the list (note that this only
39133 works for documents embedded via
39134 \begin_inset Quotes eld
39138 \begin_inset Quotes erd
39142 \begin_inset Quotes eld
39146 \begin_inset Quotes erd
39152 Maintain counters and references
39154 is enabled, \SpecialChar LyX
39155 will assure that all page numbers, references etc.
39156 \begin_inset space ~
39159 are correct as if the whole document was processed.
39160 This is useful if you want the selected sub-documents to look exactly as
39161 in the context of the whole document.
39162 However, \SpecialChar LyX
39163 needs to process the whole document in the background for this
39165 So if you want to save compile time and if counters and references do not
39166 need to be correct, disable this checkbox.
39169 \begin_layout Standard
39170 Alternatively, you can put each included file into a branch.
39174 \begin_layout Plain Layout
39175 Branches are described in section
39179 of the \SpecialChar LyX
39189 By enabling\SpecialChar breakableslash
39190 disabling branches you can decide which included files will
39191 appear in the output.
39192 This has the advantage that it also works with Input'ed sub-documents.
39193 However, counters and references will not be maintained with this approach.
39196 \begin_layout Chapter
39197 Program Code Listings
39198 \begin_inset CommandInset label
39200 name "cha:Program-Code-Listings"
39205 \begin_inset Index idx
39208 \begin_layout Plain Layout
39215 \begin_inset Index idx
39218 \begin_layout Plain Layout
39225 \begin_inset Index idx
39228 \begin_layout Plain Layout
39237 \begin_layout Standard
39238 To include and typeset program code you can use the
39242 inset that can be inserted via the menu
39244 Insert\SpecialChar menuseparator
39248 The \SpecialChar LaTeX
39254 \begin_inset Index idx
39257 \begin_layout Plain Layout
39259 -packages ! listings
39264 provides a powerful and flexible way to insert program source code into
39268 \begin_layout Standard
39269 Right-clicking on a listings inset opens the context menu containing where
39270 you can set the listings format.
39273 \begin_layout Standard
39274 By default, a listing starts a new paragraph in the output.
39275 The placement option
39278 \begin_inset space ~
39283 prints the listing inline like this:
39284 \begin_inset listings
39285 lstparams "language={C++}"
39289 \begin_layout Plain Layout
39297 \begin_inset Newline newline
39304 creates a listings float where you can specify the placement options
39305 \begin_inset Quotes eld
39313 \begin_inset Quotes erd
39317 \begin_inset Quotes eld
39325 \begin_inset Quotes erd
39329 \begin_inset Quotes eld
39337 \begin_inset Quotes erd
39341 \begin_inset Quotes eld
39349 \begin_inset Quotes erd
39352 corresponding to the float placement options described in section
39353 \begin_inset space ~
39357 \begin_inset CommandInset ref
39359 reference "sec:Float-Placement"
39364 The placement options can be mixed and are inserted without any separation,
39366 \begin_inset space \thinspace{}
39370 \begin_inset space \space{}
39374 \begin_inset Quotes eld
39382 \begin_inset Quotes erd
39387 \begin_inset Quotes eld
39391 \begin_inset Quotes erd
39394 has sometimes no effect, but you don't need to use the
39398 option in this case as also non-float listings can have captions and be
39402 \begin_layout Standard
39403 You can add captions to listings with the menu
39405 Insert\SpecialChar menuseparator
39409 Listings can be referenced like floats: Listing
39410 \begin_inset space ~
39414 \begin_inset CommandInset ref
39416 reference "lst:Example-Listing"
39421 A list of listings which contains all listings with captions can be created
39424 Insert\SpecialChar menuseparator
39426 \begin_inset space ~
39430 \begin_inset space ~
39433 TOC\SpecialChar menuseparator
39437 The list entries are the listing caption and the listing number.
39440 \begin_layout Standard
39441 \begin_inset listings
39442 lstparams "language=Python"
39446 \begin_layout Plain Layout
39448 \begin_inset Caption Standard
39450 \begin_layout Plain Layout
39451 \begin_inset CommandInset label
39453 name "lst:Example-Listing"
39457 Example Listing float
39462 # Example listing float
39465 \begin_layout Plain Layout
39470 \begin_layout Plain Layout
39472 'this is a python function'
39475 \begin_layout Plain Layout
39485 \begin_layout Standard
39486 When you have set a programming language in the listings dialog, the keywords
39487 of this language will be recognized and specially typeset in the output.
39488 In the example listings the Python keyword
39489 \begin_inset Quotes eld
39493 \begin_inset Quotes erd
39496 is recognized and printed bold in the output.
39499 \begin_layout Standard
39500 \begin_inset Note Greyedout
39503 \begin_layout Plain Layout
39508 If you don't get bold keywords when using typewriter fonts, your
39512 font probably doesn't provide a bold shape.
39513 In this case select a different one in the menu
39515 Document\SpecialChar menuseparator
39516 Settings\SpecialChar menuseparator
39528 provide bold shapes.)
39536 \begin_layout Standard
39540 \begin_inset space ~
39545 of the listings dialog you can specify the line numbering style.
39546 You can insert a number to specify which lines are numbered in the field
39553 \begin_inset space \thinspace{}
39557 \begin_inset space \space{}
39561 \begin_inset Quotes eld
39565 \begin_inset Quotes erd
39568 , only every 3rd line will be numbered.
39571 \begin_layout Standard
39572 You can furthermore specify a range of lines; only these will then appear
39576 Extended character table
39578 should be used when you use national characters like the German umlauts
39580 \begin_inset Newline newline
39583 Here is an example listing with left line numbering, step
39584 \begin_inset Quotes eld
39588 \begin_inset Quotes erd
39592 \begin_inset Quotes eld
39596 \begin_inset Quotes erd
39600 \begin_inset Quotes eld
39603 Extended character table
39604 \begin_inset Quotes erd
39608 \begin_inset Quotes eld
39612 \begin_inset space ~
39616 \begin_inset space ~
39620 \begin_inset Quotes erd
39624 \begin_inset space \thinspace{}
39628 \begin_inset space \thinspace{}
39634 \begin_layout Standard
39635 \begin_inset listings
39636 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39640 \begin_layout Plain Layout
39645 \begin_layout Plain Layout
39647 'this is a python function'
39650 \begin_layout Plain Layout
39655 \begin_layout Plain Layout
39660 \begin_layout Plain Layout
39662 'This is a German word: Tschüß'
39665 \begin_layout Plain Layout
39670 \begin_layout Plain Layout
39675 \begin_layout Plain Layout
39677 'this is a python function'
39680 \begin_layout Plain Layout
39690 \begin_layout Standard
39691 When you have tabulators in your listing, you can specify the number of
39692 characters that are spanned by a tabulator in the field
39695 \begin_inset space ~
39703 \begin_layout Standard
39704 \begin_inset Note Greyedout
39707 \begin_layout Plain Layout
39712 Due to a bug in the
39716 package the line numbering is shifted by a line by every previous listing.
39717 That's the reason why the lines 2 and 5 are numbered in the above listing
39718 and not the lines 3 and 6.
39726 \begin_layout Standard
39727 \begin_inset VSpace bigskip
39733 \begin_layout Standard
39734 It is also possible to print lines from a file as listing.
39735 To do this, use the menu
39737 Insert\SpecialChar menuseparator
39738 File\SpecialChar menuseparator
39741 and choose the type
39749 \begin_layout Plain Layout
39750 The other child document types are described in section
39751 \begin_inset space ~
39755 \begin_inset CommandInset ref
39757 reference "sec:Child-Documents"
39766 In the child document dialog you can specify the listing parameters in
39768 To show a list of all available parameters, type in a question mark
39769 \begin_inset Quotes eld
39773 \begin_inset Quotes erd
39779 \begin_layout Standard
39780 To reference child document listings, write a label text into the corresponding
39781 field of the child document dialog.
39782 The label can then be referenced using the menu
39784 Insert\SpecialChar menuseparator
39790 \begin_layout Standard
39792 \begin_inset space ~
39796 \begin_inset CommandInset ref
39798 reference "lst:file-listing"
39802 is an example for a listing of a file; there the lines 10
39803 \begin_inset space \thinspace{}
39807 \begin_inset space \thinspace{}
39810 15 of this \SpecialChar LyX
39814 \begin_layout Standard
39815 \begin_inset CommandInset include
39816 LatexCommand lstinputlisting
39817 filename "EmbeddedObjects.lyx"
39818 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39825 \begin_layout Standard
39826 \begin_inset VSpace bigskip
39832 \begin_layout Standard
39833 Inserting a formula into a listing can be done the following way:
39836 \begin_layout Enumerate
39837 Open the listings dialog and add
39838 \begin_inset Newline newline
39846 \begin_inset Newline newline
39849 to the field of the
39856 \begin_layout Enumerate
39857 Create a formula outside the listing
39860 \begin_layout Enumerate
39861 Copy the content of the formula (not the formula inset) to the clipboard
39871 \begin_layout Enumerate
39872 In the listing write
39873 \begin_inset Quotes eld
39881 \begin_inset Quotes erd
39884 and copy from the clipboard between the dollar-signs (shortcut
39893 \begin_layout Standard
39894 \begin_inset listings
39895 lstparams "language=Python,mathescape=true"
39899 \begin_layout Plain Layout
39901 \begin_inset Caption Standard
39903 \begin_layout Plain Layout
39904 Example Listing float containing a formula
39909 # Example listing float
39912 \begin_layout Plain Layout
39917 \begin_layout Plain Layout
39930 \begin_layout Plain Layout
39940 \begin_layout Standard
39941 \begin_inset VSpace bigskip
39947 \begin_layout Standard
39948 Global listings settings can be set in the
39950 Document\SpecialChar menuseparator
39951 Settings\SpecialChar menuseparator
39955 To get there a list of available options, type in a question mark
39956 \begin_inset Quotes eld
39960 \begin_inset Quotes erd
39966 \begin_layout Standard
39967 For more information about the
39971 package, we refer to its documentation
39972 \begin_inset CommandInset citation
39981 \begin_layout Standard
39982 \begin_inset Newpage newpage
39988 \begin_layout Chapter
39990 Units available in \SpecialChar LyX
39992 \begin_inset Index idx
39995 \begin_layout Plain Layout
40002 \begin_inset CommandInset label
40004 name "cha:Units-available-in"
40011 \begin_layout Standard
40012 To understand the units described in this documentation, Table
40013 \begin_inset space ~
40017 \begin_inset CommandInset ref
40019 reference "tab:Units"
40023 explains all units available in \SpecialChar LyX
40027 \begin_layout Standard
40028 \begin_inset Float table
40034 \begin_layout Plain Layout
40035 \begin_inset Caption Standard
40037 \begin_layout Plain Layout
40038 \begin_inset CommandInset label
40052 \begin_layout Plain Layout
40053 \begin_inset VSpace medskip
40059 \begin_layout Plain Layout
40061 \begin_inset Tabular
40062 <lyxtabular version="3" rows="20" columns="3">
40063 <features tabularvalignment="middle">
40064 <column alignment="center" valignment="top">
40065 <column alignment="center" valignment="top">
40066 <column alignment="center" valignment="top">
40068 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40071 \begin_layout Plain Layout
40077 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40080 \begin_layout Plain Layout
40086 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40089 \begin_layout Plain Layout
40098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40101 \begin_layout Plain Layout
40107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40110 \begin_layout Plain Layout
40116 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40119 \begin_layout Plain Layout
40127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40130 \begin_layout Plain Layout
40136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40139 \begin_layout Plain Layout
40145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40148 \begin_layout Plain Layout
40156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40159 \begin_layout Plain Layout
40165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40168 \begin_layout Plain Layout
40174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40177 \begin_layout Plain Layout
40185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40188 \begin_layout Plain Layout
40194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40197 \begin_layout Plain Layout
40199 \begin_inset space \thinspace{}
40203 \begin_inset space \thinspace{}
40211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40214 \begin_layout Plain Layout
40222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40225 \begin_layout Plain Layout
40231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40234 \begin_layout Plain Layout
40236 \begin_inset space \thinspace{}
40240 \begin_inset space \thinspace{}
40248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40251 \begin_layout Plain Layout
40259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40262 \begin_layout Plain Layout
40268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40271 \begin_layout Plain Layout
40272 scaled point (65536
40273 \begin_inset space \thinspace{}
40277 \begin_inset space \thinspace{}
40285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40288 \begin_layout Plain Layout
40296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40299 \begin_layout Plain Layout
40305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40308 \begin_layout Plain Layout
40310 \begin_inset space \thinspace{}
40314 \begin_inset space \thinspace{}
40322 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40325 \begin_layout Plain Layout
40333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40336 \begin_layout Plain Layout
40342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40345 \begin_layout Plain Layout
40347 \begin_inset space \thinspace{}
40351 \begin_inset Formula $\approx$
40355 \begin_inset space \thinspace{}
40363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40366 \begin_layout Plain Layout
40374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40377 \begin_layout Plain Layout
40383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40386 \begin_layout Plain Layout
40388 \begin_inset space \thinspace{}
40392 \begin_inset space \thinspace{}
40400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40403 \begin_layout Plain Layout
40411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40414 \begin_layout Plain Layout
40420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40423 \begin_layout Plain Layout
40424 % of original image width
40429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40432 \begin_layout Plain Layout
40440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40443 \begin_layout Plain Layout
40449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40452 \begin_layout Plain Layout
40458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40461 \begin_layout Plain Layout
40471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40474 \begin_layout Plain Layout
40480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40483 \begin_layout Plain Layout
40489 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40492 \begin_layout Plain Layout
40502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40505 \begin_layout Plain Layout
40511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40514 \begin_layout Plain Layout
40520 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40523 \begin_layout Plain Layout
40533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40536 \begin_layout Plain Layout
40542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40545 \begin_layout Plain Layout
40551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40554 \begin_layout Plain Layout
40564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40567 \begin_layout Plain Layout
40573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40576 \begin_layout Plain Layout
40582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40585 \begin_layout Plain Layout
40595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40598 \begin_layout Plain Layout
40604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40607 \begin_layout Plain Layout
40613 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40616 \begin_layout Plain Layout
40626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40629 \begin_layout Plain Layout
40635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40638 \begin_layout Plain Layout
40648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40651 \begin_layout Plain Layout
40659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40662 \begin_layout Plain Layout
40668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40671 \begin_layout Plain Layout
40681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40684 \begin_layout Plain Layout
40692 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40695 \begin_layout Plain Layout
40701 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40704 \begin_layout Plain Layout
40706 \begin_inset space \thinspace{}
40710 \begin_inset space \thinspace{}
40718 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40721 \begin_layout Plain Layout
40740 \begin_layout Chapter
40741 Output File Formats with Graphics
40742 \begin_inset CommandInset label
40744 name "cha:Output-File-Formats"
40751 \begin_layout Section
40753 \begin_inset Index idx
40756 \begin_layout Plain Layout
40763 \begin_inset Index idx
40766 \begin_layout Plain Layout
40771 \begin_layout Plain Layout
40782 \begin_layout Plain Layout
40797 \begin_layout Standard
40798 This file type has the extension
40799 \begin_inset Quotes eld
40807 \begin_inset Quotes erd
40812 \begin_inset Quotes eld
40816 \begin_inset Quotes erd
40819 (DVI), because it is completely portable; you can move them from one machine
40820 to another without needing to do any sort of conversion.
40821 At the time when this file-format was developed, this was no matter of
40823 DVIs are used for quick previews and as pre-stage for other output formats,
40827 \begin_layout Standard
40828 \begin_inset Note Greyedout
40831 \begin_layout Plain Layout
40836 DVI-files do not contain images; they will only be a linked.
40841 So don't forget this, if you move your
40845 file to another computer.
40846 This property can also slow down your computer when you view the DVI, because
40847 the DVI-viewer has to convert the image in the background to make it visible
40848 when you scroll in the DVI.
40849 So it is recommended that you use PDF for files with many images.
40852 \begin_layout Standard
40853 You can export your document to DVI by using the menu
40855 File\SpecialChar menuseparator
40856 Export\SpecialChar menuseparator
40860 You can view your document as DVI via the
40867 \begin_layout Section
40869 \begin_inset Index idx
40872 \begin_layout Plain Layout
40873 File Formats ! PostScript
40879 \begin_inset Index idx
40882 \begin_layout Plain Layout
40887 \begin_layout Plain Layout
40898 \begin_layout Plain Layout
40913 \begin_layout Standard
40914 This file type has the extension
40915 \begin_inset Quotes eld
40923 \begin_inset Quotes erd
40927 PostScript was developed by the company
40931 as a printer language.
40932 The file therefore contains commands that the printer uses to print the
40934 PostScript can be seen as a
40935 \begin_inset Quotes eld
40938 programming language
40939 \begin_inset Quotes erd
40942 ; you can calculate with it and draw diagrams and images
40946 \begin_layout Plain Layout
40947 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
40954 \begin_inset CommandInset citation
40966 Due to this ability, the files are often bigger than PDFs.
40969 \begin_layout Standard
40970 PostScript can only contain images in the format
40971 \begin_inset Quotes eld
40974 Encapsulated PostScript
40975 \begin_inset Quotes erd
40978 (EPS, file extension
40979 \begin_inset Quotes eld
40987 \begin_inset Quotes erd
40991 As \SpecialChar LyX
40992 allows you to use any known image format in your document, it has to
40993 convert images in the background to EPS.
40995 \begin_inset space ~
40999 \begin_inset space ~
41002 images in your document, \SpecialChar LyX
41004 \begin_inset space ~
41007 conversions whenever you view or export your document.
41008 This will slow down your work flow with \SpecialChar LyX
41010 So if you plan to use PostScript, you can insert your images directly as
41011 EPS to avoid this problem.
41014 \begin_layout Standard
41015 You can export your document to PostScript using the menu
41017 File\SpecialChar menuseparator
41018 Export\SpecialChar menuseparator
41022 You can view your document as PostScript via the
41029 \begin_layout Section
41031 \begin_inset Index idx
41034 \begin_layout Plain Layout
41041 \begin_inset Index idx
41044 \begin_layout Plain Layout
41053 \begin_layout Standard
41054 This file type has the extension
41055 \begin_inset Quotes eld
41063 \begin_inset Quotes erd
41068 \begin_inset Quotes eld
41071 Portable Document Format
41072 \begin_inset Quotes erd
41075 (PDF) was developed by
41079 as a derivative of PostScript.
41080 It is more compressed and it uses fewer commands than PostScript.
41082 \begin_inset Quotes eld
41086 \begin_inset Quotes erd
41089 implies, it can be processed at any computer system and the printed output
41090 looks exactly the same.
41093 \begin_layout Standard
41094 PDF can contain images in its own PDF format, in the format
41095 \begin_inset Quotes eld
41098 Joint Photographic Experts Group
41099 \begin_inset Quotes erd
41102 (JPG, file extension
41103 \begin_inset Quotes eld
41111 \begin_inset Quotes erd
41115 \begin_inset Quotes eld
41123 \begin_inset Quotes erd
41126 ), and in the format
41127 \begin_inset Quotes eld
41130 Portable Network Graphics
41131 \begin_inset Quotes erd
41134 (PNG, file extension
41135 \begin_inset Quotes eld
41143 \begin_inset Quotes erd
41147 Nevertheless you can use any other image format, because \SpecialChar LyX
41149 in the background to one of these formats.
41150 But as described in the section about PostScript, the image conversion
41151 will slow down your work flow.
41152 So it is recommended that you use images in one of the three mentioned
41156 \begin_layout Standard
41157 You can export your document to PDF via the menu
41159 File\SpecialChar menuseparator
41162 in three different ways:
41165 \begin_layout Description
41167 \begin_inset space ~
41170 (ps2pdf) This uses the program
41174 that creates a PDF from a PostScript-version of your file.
41175 The PostScript-version is produced by the program
41179 which uses a DVI-version as intermediate step.
41180 So this export variant consists of three conversions.
41183 \begin_layout Description
41185 \begin_inset space ~
41188 (dvipdfm) This uses the program
41192 that converts your file in the background to DVI and in a second step to
41196 \begin_layout Description
41198 \begin_inset space ~
41201 (pdflatex) This uses the program
41205 that converts your file directly to PDF.
41208 \begin_layout Standard
41209 It is recommended that you use
41212 \begin_inset space ~
41221 supports all features of actual PDF-versions, is quick and works stable.
41226 is not under development and therefore a bit outdated.
41229 \begin_layout Standard
41230 You can view your document as PDF via the
41234 menu or by using a toolbar button.
41237 \begin_layout Chapter
41238 List of dvips color names
41239 \begin_inset CommandInset label
41241 name "chap:List-of-dvips-colornames"
41248 \begin_layout Standard
41249 \begin_inset Tabular
41250 <lyxtabular version="3" rows="17" columns="4">
41251 <features tabularvalignment="middle">
41252 <column alignment="left" valignment="top" width="0pt">
41253 <column alignment="left" valignment="top" width="0pt">
41254 <column alignment="left" valignment="top" width="0pt">
41255 <column alignment="left" valignment="top" width="0pt">
41257 <cell alignment="left" valignment="top" usebox="none">
41260 \begin_layout Plain Layout
41264 \begin_layout Plain Layout
41277 \begin_layout Plain Layout
41288 \begin_layout Plain Layout
41300 <cell alignment="left" valignment="top" usebox="none">
41303 \begin_layout Plain Layout
41307 \begin_layout Plain Layout
41320 \begin_layout Plain Layout
41331 \begin_layout Plain Layout
41343 <cell alignment="left" valignment="top" usebox="none">
41346 \begin_layout Plain Layout
41350 \begin_layout Plain Layout
41363 \begin_layout Plain Layout
41374 \begin_layout Plain Layout
41386 <cell alignment="left" valignment="top" usebox="none">
41389 \begin_layout Plain Layout
41393 \begin_layout Plain Layout
41406 \begin_layout Plain Layout
41417 \begin_layout Plain Layout
41431 <cell alignment="center" valignment="top" usebox="none">
41434 \begin_layout Plain Layout
41438 \begin_layout Plain Layout
41451 \begin_layout Plain Layout
41459 \begin_inset Phantom Phantom
41462 \begin_layout Plain Layout
41472 \begin_layout Plain Layout
41484 <cell alignment="center" valignment="top" usebox="none">
41487 \begin_layout Plain Layout
41491 \begin_layout Plain Layout
41504 \begin_layout Plain Layout
41512 \begin_inset Phantom Phantom
41515 \begin_layout Plain Layout
41525 \begin_layout Plain Layout
41537 <cell alignment="center" valignment="top" usebox="none">
41540 \begin_layout Plain Layout
41544 \begin_layout Plain Layout
41557 \begin_layout Plain Layout
41565 \begin_inset Phantom Phantom
41568 \begin_layout Plain Layout
41578 \begin_layout Plain Layout
41590 <cell alignment="center" valignment="top" usebox="none">
41593 \begin_layout Plain Layout
41597 \begin_layout Plain Layout
41610 \begin_layout Plain Layout
41618 \begin_inset Phantom Phantom
41621 \begin_layout Plain Layout
41631 \begin_layout Plain Layout
41645 <cell alignment="left" valignment="top" usebox="none">
41648 \begin_layout Plain Layout
41652 \begin_layout Plain Layout
41665 \begin_layout Plain Layout
41673 \begin_inset Phantom Phantom
41676 \begin_layout Plain Layout
41686 \begin_layout Plain Layout
41698 <cell alignment="left" valignment="top" usebox="none">
41701 \begin_layout Plain Layout
41705 \begin_layout Plain Layout
41718 \begin_layout Plain Layout
41726 \begin_inset Phantom Phantom
41729 \begin_layout Plain Layout
41739 \begin_layout Plain Layout
41751 <cell alignment="left" valignment="top" usebox="none">
41754 \begin_layout Plain Layout
41758 \begin_layout Plain Layout
41771 \begin_layout Plain Layout
41779 \begin_inset Phantom Phantom
41782 \begin_layout Plain Layout
41792 \begin_layout Plain Layout
41804 <cell alignment="left" valignment="top" usebox="none">
41807 \begin_layout Plain Layout
41811 \begin_layout Plain Layout
41824 \begin_layout Plain Layout
41832 \begin_inset Phantom Phantom
41835 \begin_layout Plain Layout
41845 \begin_layout Plain Layout
41859 <cell alignment="left" valignment="top" usebox="none">
41862 \begin_layout Plain Layout
41866 \begin_layout Plain Layout
41879 \begin_layout Plain Layout
41887 \begin_inset Phantom Phantom
41890 \begin_layout Plain Layout
41900 \begin_layout Plain Layout
41912 <cell alignment="left" valignment="top" usebox="none">
41915 \begin_layout Plain Layout
41919 \begin_layout Plain Layout
41932 \begin_layout Plain Layout
41940 \begin_inset Phantom Phantom
41943 \begin_layout Plain Layout
41953 \begin_layout Plain Layout
41965 <cell alignment="left" valignment="top" usebox="none">
41968 \begin_layout Plain Layout
41972 \begin_layout Plain Layout
41985 \begin_layout Plain Layout
41993 \begin_inset Phantom Phantom
41996 \begin_layout Plain Layout
42006 \begin_layout Plain Layout
42018 <cell alignment="left" valignment="top" usebox="none">
42021 \begin_layout Plain Layout
42025 \begin_layout Plain Layout
42038 \begin_layout Plain Layout
42046 \begin_inset Phantom Phantom
42049 \begin_layout Plain Layout
42059 \begin_layout Plain Layout
42073 <cell alignment="left" valignment="top" usebox="none">
42076 \begin_layout Plain Layout
42080 \begin_layout Plain Layout
42093 \begin_layout Plain Layout
42101 \begin_inset Phantom Phantom
42104 \begin_layout Plain Layout
42114 \begin_layout Plain Layout
42126 <cell alignment="left" valignment="top" usebox="none">
42129 \begin_layout Plain Layout
42133 \begin_layout Plain Layout
42146 \begin_layout Plain Layout
42154 \begin_inset Phantom Phantom
42157 \begin_layout Plain Layout
42167 \begin_layout Plain Layout
42179 <cell alignment="left" valignment="top" usebox="none">
42182 \begin_layout Plain Layout
42186 \begin_layout Plain Layout
42199 \begin_layout Plain Layout
42207 \begin_inset Phantom Phantom
42210 \begin_layout Plain Layout
42220 \begin_layout Plain Layout
42232 <cell alignment="left" valignment="top" usebox="none">
42235 \begin_layout Plain Layout
42239 \begin_layout Plain Layout
42252 \begin_layout Plain Layout
42260 \begin_inset Phantom Phantom
42263 \begin_layout Plain Layout
42273 \begin_layout Plain Layout
42287 <cell alignment="left" valignment="top" usebox="none">
42290 \begin_layout Plain Layout
42294 \begin_layout Plain Layout
42307 \begin_layout Plain Layout
42315 \begin_inset Phantom Phantom
42318 \begin_layout Plain Layout
42328 \begin_layout Plain Layout
42340 <cell alignment="left" valignment="top" usebox="none">
42343 \begin_layout Plain Layout
42347 \begin_layout Plain Layout
42360 \begin_layout Plain Layout
42368 \begin_inset Phantom Phantom
42371 \begin_layout Plain Layout
42381 \begin_layout Plain Layout
42393 <cell alignment="left" valignment="top" usebox="none">
42396 \begin_layout Plain Layout
42400 \begin_layout Plain Layout
42413 \begin_layout Plain Layout
42421 \begin_inset Phantom Phantom
42424 \begin_layout Plain Layout
42434 \begin_layout Plain Layout
42446 <cell alignment="left" valignment="top" usebox="none">
42449 \begin_layout Plain Layout
42453 \begin_layout Plain Layout
42466 \begin_layout Plain Layout
42474 \begin_inset Phantom Phantom
42477 \begin_layout Plain Layout
42487 \begin_layout Plain Layout
42501 <cell alignment="center" valignment="top" usebox="none">
42504 \begin_layout Plain Layout
42508 \begin_layout Plain Layout
42521 \begin_layout Plain Layout
42529 \begin_inset Phantom Phantom
42532 \begin_layout Plain Layout
42542 \begin_layout Plain Layout
42554 <cell alignment="center" valignment="top" usebox="none">
42557 \begin_layout Plain Layout
42561 \begin_layout Plain Layout
42574 \begin_layout Plain Layout
42582 \begin_inset Phantom Phantom
42585 \begin_layout Plain Layout
42595 \begin_layout Plain Layout
42607 <cell alignment="center" valignment="top" usebox="none">
42610 \begin_layout Plain Layout
42614 \begin_layout Plain Layout
42627 \begin_layout Plain Layout
42635 \begin_inset Phantom Phantom
42638 \begin_layout Plain Layout
42648 \begin_layout Plain Layout
42660 <cell alignment="center" valignment="top" usebox="none">
42663 \begin_layout Plain Layout
42667 \begin_layout Plain Layout
42680 \begin_layout Plain Layout
42688 \begin_inset Phantom Phantom
42691 \begin_layout Plain Layout
42701 \begin_layout Plain Layout
42715 <cell alignment="left" valignment="top" usebox="none">
42718 \begin_layout Plain Layout
42722 \begin_layout Plain Layout
42735 \begin_layout Plain Layout
42743 \begin_inset Phantom Phantom
42746 \begin_layout Plain Layout
42756 \begin_layout Plain Layout
42768 <cell alignment="left" valignment="top" usebox="none">
42771 \begin_layout Plain Layout
42775 \begin_layout Plain Layout
42788 \begin_layout Plain Layout
42796 \begin_inset Phantom Phantom
42799 \begin_layout Plain Layout
42809 \begin_layout Plain Layout
42821 <cell alignment="left" valignment="top" usebox="none">
42824 \begin_layout Plain Layout
42828 \begin_layout Plain Layout
42841 \begin_layout Plain Layout
42849 \begin_inset Phantom Phantom
42852 \begin_layout Plain Layout
42862 \begin_layout Plain Layout
42874 <cell alignment="left" valignment="top" usebox="none">
42877 \begin_layout Plain Layout
42881 \begin_layout Plain Layout
42894 \begin_layout Plain Layout
42902 \begin_inset Phantom Phantom
42905 \begin_layout Plain Layout
42915 \begin_layout Plain Layout
42929 <cell alignment="left" valignment="top" usebox="none">
42932 \begin_layout Plain Layout
42936 \begin_layout Plain Layout
42949 \begin_layout Plain Layout
42957 \begin_inset Phantom Phantom
42960 \begin_layout Plain Layout
42970 \begin_layout Plain Layout
42982 <cell alignment="left" valignment="top" usebox="none">
42985 \begin_layout Plain Layout
42989 \begin_layout Plain Layout
43002 \begin_layout Plain Layout
43010 \begin_inset Phantom Phantom
43013 \begin_layout Plain Layout
43023 \begin_layout Plain Layout
43035 <cell alignment="left" valignment="top" usebox="none">
43038 \begin_layout Plain Layout
43042 \begin_layout Plain Layout
43055 \begin_layout Plain Layout
43063 \begin_inset Phantom Phantom
43066 \begin_layout Plain Layout
43076 \begin_layout Plain Layout
43088 <cell alignment="left" valignment="top" usebox="none">
43091 \begin_layout Plain Layout
43095 \begin_layout Plain Layout
43108 \begin_layout Plain Layout
43116 \begin_inset Phantom Phantom
43119 \begin_layout Plain Layout
43129 \begin_layout Plain Layout
43143 <cell alignment="left" valignment="top" usebox="none">
43146 \begin_layout Plain Layout
43150 \begin_layout Plain Layout
43163 \begin_layout Plain Layout
43171 \begin_inset Phantom Phantom
43174 \begin_layout Plain Layout
43184 \begin_layout Plain Layout
43196 <cell alignment="left" valignment="top" usebox="none">
43199 \begin_layout Plain Layout
43203 \begin_layout Plain Layout
43216 \begin_layout Plain Layout
43224 \begin_inset Phantom Phantom
43227 \begin_layout Plain Layout
43237 \begin_layout Plain Layout
43249 <cell alignment="left" valignment="top" usebox="none">
43252 \begin_layout Plain Layout
43256 \begin_layout Plain Layout
43269 \begin_layout Plain Layout
43277 \begin_inset Phantom Phantom
43280 \begin_layout Plain Layout
43290 \begin_layout Plain Layout
43302 <cell alignment="left" valignment="top" usebox="none">
43305 \begin_layout Plain Layout
43309 \begin_layout Plain Layout
43322 \begin_layout Plain Layout
43330 \begin_inset Phantom Phantom
43333 \begin_layout Plain Layout
43343 \begin_layout Plain Layout
43357 <cell alignment="left" valignment="top" usebox="none">
43360 \begin_layout Plain Layout
43364 \begin_layout Plain Layout
43377 \begin_layout Plain Layout
43385 \begin_inset Phantom Phantom
43388 \begin_layout Plain Layout
43398 \begin_layout Plain Layout
43410 <cell alignment="left" valignment="top" usebox="none">
43413 \begin_layout Plain Layout
43417 \begin_layout Plain Layout
43430 \begin_layout Plain Layout
43438 \begin_inset Phantom Phantom
43441 \begin_layout Plain Layout
43451 \begin_layout Plain Layout
43463 <cell alignment="left" valignment="top" usebox="none">
43466 \begin_layout Plain Layout
43470 \begin_layout Plain Layout
43483 \begin_layout Plain Layout
43491 \begin_inset Phantom Phantom
43494 \begin_layout Plain Layout
43504 \begin_layout Plain Layout
43516 <cell alignment="left" valignment="top" usebox="none">
43519 \begin_layout Plain Layout
43523 \begin_layout Plain Layout
43536 \begin_layout Plain Layout
43544 \begin_inset Phantom Phantom
43547 \begin_layout Plain Layout
43557 \begin_layout Plain Layout
43571 <cell alignment="left" valignment="top" usebox="none">
43574 \begin_layout Plain Layout
43578 \begin_layout Plain Layout
43591 \begin_layout Plain Layout
43599 \begin_inset Phantom Phantom
43602 \begin_layout Plain Layout
43612 \begin_layout Plain Layout
43624 <cell alignment="left" valignment="top" usebox="none">
43627 \begin_layout Plain Layout
43631 \begin_layout Plain Layout
43644 \begin_layout Plain Layout
43652 \begin_inset Phantom Phantom
43655 \begin_layout Plain Layout
43665 \begin_layout Plain Layout
43677 <cell alignment="left" valignment="top" usebox="none">
43680 \begin_layout Plain Layout
43684 \begin_layout Plain Layout
43697 \begin_layout Plain Layout
43705 \begin_inset Phantom Phantom
43708 \begin_layout Plain Layout
43718 \begin_layout Plain Layout
43730 <cell alignment="left" valignment="top" usebox="none">
43733 \begin_layout Plain Layout
43737 \begin_layout Plain Layout
43750 \begin_layout Plain Layout
43758 \begin_inset Phantom Phantom
43761 \begin_layout Plain Layout
43771 \begin_layout Plain Layout
43785 <cell alignment="left" valignment="top" usebox="none">
43788 \begin_layout Plain Layout
43792 \begin_layout Plain Layout
43805 \begin_layout Plain Layout
43813 \begin_inset Phantom Phantom
43816 \begin_layout Plain Layout
43826 \begin_layout Plain Layout
43838 <cell alignment="left" valignment="top" usebox="none">
43841 \begin_layout Plain Layout
43845 \begin_layout Plain Layout
43858 \begin_layout Plain Layout
43866 \begin_inset Phantom Phantom
43869 \begin_layout Plain Layout
43879 \begin_layout Plain Layout
43891 <cell alignment="left" valignment="top" usebox="none">
43894 \begin_layout Plain Layout
43898 \begin_layout Plain Layout
43911 \begin_layout Plain Layout
43919 \begin_inset Phantom Phantom
43922 \begin_layout Plain Layout
43932 \begin_layout Plain Layout
43944 <cell alignment="left" valignment="top" usebox="none">
43947 \begin_layout Plain Layout
43951 \begin_layout Plain Layout
43964 \begin_layout Plain Layout
43972 \begin_inset Phantom Phantom
43975 \begin_layout Plain Layout
43985 \begin_layout Plain Layout
43999 <cell alignment="left" valignment="top" usebox="none">
44002 \begin_layout Plain Layout
44006 \begin_layout Plain Layout
44019 \begin_layout Plain Layout
44027 \begin_inset Phantom Phantom
44030 \begin_layout Plain Layout
44040 \begin_layout Plain Layout
44052 <cell alignment="left" valignment="top" usebox="none">
44055 \begin_layout Plain Layout
44059 \begin_layout Plain Layout
44072 \begin_layout Plain Layout
44080 \begin_inset Phantom Phantom
44083 \begin_layout Plain Layout
44093 \begin_layout Plain Layout
44105 <cell alignment="left" valignment="top" usebox="none">
44108 \begin_layout Plain Layout
44112 \begin_layout Plain Layout
44125 \begin_layout Plain Layout
44133 \begin_inset Phantom Phantom
44136 \begin_layout Plain Layout
44146 \begin_layout Plain Layout
44158 <cell alignment="left" valignment="top" usebox="none">
44161 \begin_layout Plain Layout
44165 \begin_layout Plain Layout
44178 \begin_layout Plain Layout
44186 \begin_inset Phantom Phantom
44189 \begin_layout Plain Layout
44199 \begin_layout Plain Layout
44213 <cell alignment="left" valignment="top" usebox="none">
44216 \begin_layout Plain Layout
44220 \begin_layout Plain Layout
44233 \begin_layout Plain Layout
44241 \begin_inset Phantom Phantom
44244 \begin_layout Plain Layout
44254 \begin_layout Plain Layout
44266 <cell alignment="left" valignment="top" usebox="none">
44269 \begin_layout Plain Layout
44273 \begin_layout Plain Layout
44286 \begin_layout Plain Layout
44294 \begin_inset Phantom Phantom
44297 \begin_layout Plain Layout
44307 \begin_layout Plain Layout
44319 <cell alignment="left" valignment="top" usebox="none">
44322 \begin_layout Plain Layout
44326 \begin_layout Plain Layout
44339 \begin_layout Plain Layout
44347 \begin_inset Phantom Phantom
44350 \begin_layout Plain Layout
44360 \begin_layout Plain Layout
44372 <cell alignment="left" valignment="top" usebox="none">
44375 \begin_layout Plain Layout
44379 \begin_layout Plain Layout
44392 \begin_layout Plain Layout
44400 \begin_inset Phantom Phantom
44403 \begin_layout Plain Layout
44413 \begin_layout Plain Layout
44427 <cell alignment="left" valignment="top" usebox="none">
44430 \begin_layout Plain Layout
44434 \begin_layout Plain Layout
44447 \begin_layout Plain Layout
44455 \begin_inset Phantom Phantom
44458 \begin_layout Plain Layout
44468 \begin_layout Plain Layout
44480 <cell alignment="left" valignment="top" usebox="none">
44483 \begin_layout Plain Layout
44487 \begin_layout Plain Layout
44500 \begin_layout Plain Layout
44508 \begin_inset Phantom Phantom
44511 \begin_layout Plain Layout
44521 \begin_layout Plain Layout
44533 <cell alignment="left" valignment="top" usebox="none">
44536 \begin_layout Plain Layout
44540 \begin_layout Plain Layout
44553 \begin_layout Plain Layout
44561 \begin_inset Phantom Phantom
44564 \begin_layout Plain Layout
44574 \begin_layout Plain Layout
44586 <cell alignment="left" valignment="top" usebox="none">
44589 \begin_layout Plain Layout
44593 \begin_layout Plain Layout
44606 \begin_layout Plain Layout
44614 \begin_inset Phantom Phantom
44617 \begin_layout Plain Layout
44627 \begin_layout Plain Layout
44641 <cell alignment="left" valignment="top" usebox="none">
44644 \begin_layout Plain Layout
44648 \begin_layout Plain Layout
44661 \begin_layout Plain Layout
44669 \begin_inset Phantom Phantom
44672 \begin_layout Plain Layout
44682 \begin_layout Plain Layout
44694 <cell alignment="left" valignment="top" usebox="none">
44697 \begin_layout Plain Layout
44703 <cell alignment="left" valignment="top" usebox="none">
44706 \begin_layout Plain Layout
44712 <cell alignment="left" valignment="top" usebox="none">
44715 \begin_layout Plain Layout
44729 \begin_layout Chapter
44730 Explanation of Equation
44731 \begin_inset space ~
44735 \begin_inset CommandInset ref
44742 \begin_inset CommandInset label
44744 name "cha:Explanation-of-Equation"
44751 \begin_layout Standard
44752 We can calculate the total width of
44757 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44761 \begin_inset Formula
44763 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44769 \begin_inset Formula $W_{g\,n}$
44772 is the given width of all cells,
44778 is the \SpecialChar LaTeX
44779 -length between the cell text and the cell border (its default value
44781 \begin_inset space \thinspace{}
44791 is the thickness of the cell border line, the default is 0.4
44792 \begin_inset space \thinspace{}
44798 \begin_layout Standard
44800 \begin_inset space ~
44804 \begin_inset CommandInset ref
44806 reference "eq:Wtot_n"
44810 , the total width of a multicolumn
44811 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
44815 \begin_inset Formula
44817 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44825 \begin_layout Standard
44826 By setting equation
44827 \begin_inset space ~
44831 \begin_inset CommandInset ref
44833 reference "eq:Wtot_n"
44838 \begin_inset CommandInset ref
44840 reference "eq:Wtot_mult"
44844 equal we can calculate the needed given width
44845 \begin_inset Formula $W_{g\,n}$
44852 columns are spanned, so that each column has a total width of
44853 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
44857 \begin_inset Formula
44859 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
44867 \begin_layout Bibliography
44868 \begin_inset CommandInset bibitem
44869 LatexCommand bibitem
44870 key "latexcompanion"
44874 Frank Mittelbach and Michel Goossens:
44876 The \SpecialChar LaTeX
44877 Companion Second Edition.
44880 Addison-Wesley, 2004
44883 \begin_layout Bibliography
44884 \begin_inset CommandInset bibitem
44885 LatexCommand bibitem
44890 Helmut Kopka and Patrick W.
44893 A Guide to \SpecialChar LaTeX
44897 Addison-Wesley, 2003
44900 \begin_layout Bibliography
44901 \begin_inset CommandInset bibitem
44902 LatexCommand bibitem
44910 : A Document Preparation System.
44913 Addison-Wesley, second edition, 1994
44916 \begin_layout Bibliography
44917 \begin_inset CommandInset bibitem
44918 LatexCommand bibitem
44923 Documentation of the \SpecialChar LaTeX
44927 \begin_inset CommandInset href
44930 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
44937 \begin_inset Index idx
44940 \begin_layout Plain Layout
44942 -packages ! arydshln
44950 \begin_layout Bibliography
44951 \begin_inset CommandInset bibitem
44952 LatexCommand bibitem
44957 Documentation of the \SpecialChar LaTeX
44961 \begin_inset CommandInset href
44964 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
44971 \begin_inset Index idx
44974 \begin_layout Plain Layout
44976 -packages ! booktabs
44984 \begin_layout Bibliography
44985 \begin_inset CommandInset bibitem
44986 LatexCommand bibitem
44991 Documentation of the \SpecialChar LaTeX
44995 \begin_inset CommandInset href
44998 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45005 \begin_inset Index idx
45008 \begin_layout Plain Layout
45010 -packages ! caption
45018 \begin_layout Bibliography
45019 \begin_inset CommandInset bibitem
45020 LatexCommand bibitem
45025 Documentation of the \SpecialChar LaTeX
45029 \begin_inset CommandInset href
45032 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45039 \begin_inset Index idx
45042 \begin_layout Plain Layout
45044 -packages ! diagbox
45052 \begin_layout Bibliography
45053 \begin_inset CommandInset bibitem
45054 LatexCommand bibitem
45059 Documentation of the \SpecialChar LaTeX
45063 \begin_inset CommandInset href
45066 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45073 \begin_inset Index idx
45076 \begin_layout Plain Layout
45078 -packages ! endfloat
45086 \begin_layout Bibliography
45087 \begin_inset CommandInset bibitem
45088 LatexCommand bibitem
45093 Documentation of the \SpecialChar LaTeX
45097 \begin_inset CommandInset href
45100 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45107 \begin_inset Index idx
45110 \begin_layout Plain Layout
45112 -packages ! footmisc
45120 \begin_layout Bibliography
45121 \begin_inset CommandInset bibitem
45122 LatexCommand bibitem
45127 Documentation of the \SpecialChar LaTeX
45131 \begin_inset CommandInset href
45134 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45141 \begin_inset Index idx
45144 \begin_layout Plain Layout
45146 -packages ! hyperref
45154 \begin_layout Bibliography
45155 \begin_inset CommandInset bibitem
45156 LatexCommand bibitem
45161 Documentation of the \SpecialChar LaTeX
45165 \begin_inset CommandInset href
45168 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45175 \begin_inset Index idx
45178 \begin_layout Plain Layout
45180 -packages ! hyperref
45188 \begin_layout Bibliography
45189 \begin_inset CommandInset bibitem
45190 LatexCommand bibitem
45195 Documentation of the \SpecialChar LaTeX
45199 \begin_inset CommandInset href
45202 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45209 \begin_inset Index idx
45212 \begin_layout Plain Layout
45214 -packages ! KOMA-Script
45222 \begin_layout Bibliography
45223 \begin_inset CommandInset bibitem
45224 LatexCommand bibitem
45229 Documentation of the \SpecialChar LaTeX
45233 \begin_inset CommandInset href
45236 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45243 \begin_inset CommandInset href
45246 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45251 \begin_inset Index idx
45254 \begin_layout Plain Layout
45256 -packages ! lettrine
45264 \begin_layout Bibliography
45265 \begin_inset CommandInset bibitem
45266 LatexCommand bibitem
45271 Documentation of the \SpecialChar LaTeX
45275 \begin_inset CommandInset href
45278 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45285 \begin_inset Index idx
45288 \begin_layout Plain Layout
45290 -packages ! listings
45298 \begin_layout Bibliography
45299 \begin_inset CommandInset bibitem
45300 LatexCommand bibitem
45305 Documentation of the \SpecialChar LaTeX
45309 \begin_inset CommandInset href
45312 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45319 \begin_inset Index idx
45322 \begin_layout Plain Layout
45324 -packages ! marginnote
45332 \begin_layout Bibliography
45333 \begin_inset CommandInset bibitem
45334 LatexCommand bibitem
45339 Documentation of the \SpecialChar LaTeX
45343 \begin_inset CommandInset href
45346 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45353 \begin_inset Index idx
45356 \begin_layout Plain Layout
45358 -packages ! pdfpages
45366 \begin_layout Bibliography
45367 \begin_inset CommandInset bibitem
45368 LatexCommand bibitem
45373 Documentation of the \SpecialChar LaTeX
45377 \begin_inset CommandInset href
45380 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45387 \begin_inset Index idx
45390 \begin_layout Plain Layout
45392 -packages ! prettyref
45400 \begin_layout Bibliography
45401 \begin_inset CommandInset bibitem
45402 LatexCommand bibitem
45407 Web page of the \SpecialChar LaTeX
45411 \begin_inset CommandInset href
45414 target "http://tug.org/PSTricks/"
45421 \begin_inset Index idx
45424 \begin_layout Plain Layout
45426 -packages ! PSTricks
45434 \begin_layout Bibliography
45435 \begin_inset CommandInset bibitem
45436 LatexCommand bibitem
45441 Documentation of the \SpecialChar LaTeX
45445 \begin_inset CommandInset href
45448 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45455 \begin_inset Index idx
45458 \begin_layout Plain Layout
45460 -packages ! refstyle
45468 \begin_layout Bibliography
45469 \begin_inset CommandInset bibitem
45470 LatexCommand bibitem
45475 Documentation of the \SpecialChar LaTeX
45479 \begin_inset CommandInset href
45482 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45489 \begin_inset Index idx
45492 \begin_layout Plain Layout
45494 -packages ! sidecap
45502 \begin_layout Bibliography
45503 \begin_inset CommandInset bibitem
45504 LatexCommand bibitem
45510 \begin_inset CommandInset href
45513 target "http://wiki.lyx.org/LyX/NewInLyX20"
45517 about new features in
45525 \begin_layout Standard
45526 \begin_inset CommandInset index_print
45527 LatexCommand printindex