1 #LyX 2.0.0beta2 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % increase the bottom float placement fraction
60 \renewcommand{\bottomfraction}{0.5}
62 % avoids that floats are placed before their
63 % corresponding section starts
64 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
66 % speed up the longtable calculation
67 \setcounter{LTchunksize}{100}
69 % used for scaled and rotated boxes
70 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
72 % used for colored tables
73 \@ifundefined{textcolor}
74 {\usepackage{color}}{}
75 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
76 \definecolor{lightgrey}{gray}{0.8}
78 % check for package colortbl
79 % used for colored table cells
81 \IfFileExists{colortbl.sty}
82 {\usepackage{colortbl}
83 \setboolean{colortbl}{true}}
84 {\setboolean{colortbl}{false}}
86 % used for book-style tables
89 % used to have extra space in table cells
90 \@ifundefined{extrarowheight}
91 {\usepackage{array}}{}
92 \setlength{\extrarowheight}{2pt}
94 % used for customized tables
97 {>{\centering\hspace{0pt}}m{#1}}
100 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
103 {>{\columncolor{#1}\hspace{0pt}}c}
105 \newcolumntype{V}{!{\vrule width 1.5pt}}
107 \newcolumntype{W}{!{\color{green}\vline}}
110 % insert additional vertical space of
111 % 1.5 mm between footnotes
113 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
115 % number algorithm floats within chapters
116 \numberwithin{algorithm}{chapter}
118 % ------------------------------------
119 % used to check for needed LaTeX packages
122 % check for package arydshln
123 % used for tables with dashed lines
124 \newboolean{arydshln}
125 \IfFileExists{arydshln.sty}
126 {\usepackage{arydshln}
127 \setboolean{arydshln}{true}}
128 {\setboolean{arydshln}{false}}
130 % check for package marginnote
131 % used for margin notes
132 \newboolean{marginnote}
133 \IfFileExists{marginnote.sty}
134 {\usepackage{marginnote}
135 \let\marginpar\marginnote
136 \setboolean{marginnote}{true}}
137 {\setboolean{marginnote}{false}}
139 % check for package sidecap
140 % used for captions on the side
142 \IfFileExists{sidecap.sty}
143 {\usepackage{sidecap}
144 \setboolean{sidecap}{true}}
145 {\setboolean{sidecap}{false}}
147 % redefine the \LyX macro for PDF bookmarks
148 \def\LyX{\texorpdfstring{%
149 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
152 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
153 \use_default_options false
154 \maintain_unincluded_children false
160 \font_typewriter default
161 \font_default_family default
162 \use_non_tex_fonts false
169 \default_output_format default
171 \bibtex_command default
172 \index_command default
176 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
177 \pdf_author "LyX Team, Uwe Stöhr"
178 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
179 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
181 \pdf_bookmarksnumbered true
182 \pdf_bookmarksopen true
183 \pdf_bookmarksopenlevel 1
184 \pdf_breaklinks false
188 \pdf_pdfusetitle false
189 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
199 \paperorientation portrait
202 \notefontcolor #0000ff
209 \paragraph_separation skip
211 \quotes_language english
214 \paperpagestyle default
218 \tracking_changes false
219 \output_changes false
221 \html_be_strict false
227 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
236 \begin_layout Plain Layout
238 If you have comments or error corrections, please send them to the LyX Documenta
240 \begin_inset CommandInset href
242 name "lyx-docs@lists.lyx.org"
243 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
254 \begin_inset Note Note
257 \begin_layout Plain Layout
264 \begin_inset Newline newline
268 \begin_inset Newline newline
276 \begin_layout Standard
277 \begin_inset CommandInset toc
278 LatexCommand tableofcontents
285 \begin_layout Standard
286 \begin_inset Note Note
289 \begin_layout Plain Layout
290 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
308 If they are not installed you can export the document anyway but the sections
309 where the packages are required won't appear in the output.
312 \begin_layout Plain Layout
313 The latest PDF-version of this document can be found here:
314 \begin_inset Newline newline
319 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
327 \begin_layout Chapter
329 \begin_inset Index idx
332 \begin_layout Plain Layout
339 \begin_inset Index idx
342 \begin_layout Plain Layout
347 \begin_layout Plain Layout
358 \begin_layout Plain Layout
373 \begin_layout Section
375 \begin_inset Index idx
378 \begin_layout Plain Layout
379 Figures ! Graphics Dialog
385 \begin_inset CommandInset label
387 name "sec:Graphics-Dialog"
394 \begin_layout Standard
395 To insert an image into your document, place the cursor at the text position
396 you want and click on the toolbar icon
397 \begin_inset Graphics
398 filename ../images/dialog-show-new-inset_graphics.png
406 Insert\SpecialChar \menuseparator
410 Then a dialog will appear to choose the file to load.
411 The image will appear in the output exactly at the position where it is
415 \begin_layout Standard
416 The graphics dialog can be called at any time by clicking on an image.
417 This dialog has three tabs:
420 \begin_layout Description
425 Here you can choose an image file and adjust its appearance in the output.
426 The available units for the image size are explained in appendix
431 \begin_inset CommandInset ref
433 reference "cha:Units-available-in"
438 \begin_inset Newline newline
442 \begin_inset Index idx
445 \begin_layout Plain Layout
451 You can rotate images counter-clockwise by setting a rotation angle and
453 The image will also be rotated inside LyX.
454 \begin_inset Newline newline
458 \begin_inset Index idx
461 \begin_layout Plain Layout
467 Images can be scaled by using a percentage value or by setting the width
468 and height explicitly.
469 If you set only the width or only the height, the other size will be determined
471 If you set both, then the image will be transformed to the given size,
472 possibly distorting it.
473 To prevent the image from distortion, use the option
475 Maintain aspect ratio
478 The image will then be scaled so that its width and height don't exceed
479 the specified dimensions.
480 \begin_inset Newline newline
483 Images can be opened in a program of your choice by right-clicking on it
484 and choosing the entry
493 The program can be set for every image format in the file format settings
494 in LyX's preferences.
497 \begin_layout Description
502 Alternatively to the usage of scaling units it is possible to set image
503 coordinates to adjust the height and width of the image in the output.
504 The coordinates can also be calculated automatically by pressing the button
534 will only print the image region within the given coordinates.
535 Normally you don't need to take care about image coordinates and can ignore
539 \begin_layout Description
556 In this tab you can modify the appearance of the image within LyX and LaTeX
557 experts can specify additional LaTeX options.
558 \begin_inset Newline newline
569 makes the image appear in the output only as a frame with the size of the
571 \begin_inset Newline newline
590 option only affects zipped EPS-graphics, e.
591 \begin_inset space \thinspace{}
595 \begin_inset space \space{}
603 When the option is used the images will not be unzipped on export, since
604 LaTeX can handle them as they are.
605 \begin_inset Newline newline
608 Zipped EPS-graphics are useful to save disk space when you choose PostScript
609 as output format, see appendix
614 \begin_inset CommandInset ref
616 reference "sec:PostScript"
621 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
623 \begin_inset Newline newline
631 \begin_inset Newline newline
636 zgrep %%Bounding x.eps.gz > x.eps.bb
639 \begin_inset Newline newline
642 The second command creates the bounding box file
643 \begin_inset Quotes eld
647 \begin_inset Quotes erd
650 that is needed by LaTeX for zipped graphics.
651 \begin_inset Newline newline
666 allows you define or join an image settings group.
667 \begin_inset Index idx
670 \begin_layout Plain Layout
671 Figures ! Settings grouping
676 Images within such a group share their settings, so adjusting one image
677 of the group automatically also adjusts all other images of the group in
679 So you can for example change the size for a bunch of images without the
680 need to manually change each of them.
681 Joining an existing group can also be done using the context menu of the
682 image by checking the name of the desired group.
685 \begin_layout Standard
686 \begin_inset VSpace bigskip
692 \begin_layout Standard
693 This is an example image in EPS format
697 \begin_layout Plain Layout
698 Image formats are explained in section
703 \begin_inset CommandInset ref
705 reference "sec:Image-Formats"
714 within a separate, horizontally centered paragraph:
717 \begin_layout Standard
719 \begin_inset Graphics
720 filename clipart/mobius.eps
730 \begin_layout Standard
731 This is the same image like the one above but in draft mode:
734 \begin_layout Standard
736 \begin_inset Graphics
737 filename clipart/mobius.eps
748 \begin_layout Standard
749 \begin_inset Newpage newpage
755 \begin_layout Section
757 \begin_inset CommandInset label
759 name "sec:Figure-Floats"
764 \begin_inset Index idx
767 \begin_layout Plain Layout
774 \begin_inset Index idx
777 \begin_layout Plain Layout
786 \begin_layout Standard
787 For general explanations about floats, have a look at section
792 \begin_inset CommandInset ref
794 reference "sec:FloatIntroduction"
801 \begin_layout Standard
803 \begin_inset Graphics
804 filename ../images/float-insert_figure.png
812 Insert\SpecialChar \menuseparator
813 Float\SpecialChar \menuseparator
816 inserts a float with a caption that has the label
817 \begin_inset Quotes eld
825 \begin_inset Quotes erd
828 (# is the actual number).
829 You can insert the image above the caption, like in Figure
834 \begin_inset CommandInset ref
836 reference "fig:kill-plat"
840 or below the caption, like in Figure
845 \begin_inset CommandInset ref
847 reference "fig:escher"
852 More about caption placement is described in section
857 \begin_inset CommandInset ref
859 reference "sec:Caption-Placement"
866 \begin_layout Standard
867 \begin_inset Float figure
872 \begin_layout Plain Layout
874 \begin_inset Graphics
875 filename clipart/platypus.eps
885 \begin_layout Plain Layout
888 \begin_layout Plain Layout
889 \begin_inset CommandInset label
895 A severely distorted platypus in a float.
908 \begin_layout Standard
909 \begin_inset Float figure
914 \begin_layout Plain Layout
917 \begin_layout Plain Layout
918 \begin_inset CommandInset label
933 \begin_layout Plain Layout
935 \begin_inset Graphics
936 filename clipart/escher-lsd.eps
951 \begin_layout Standard
952 \begin_inset Index idx
955 \begin_layout Plain Layout
956 References ! to Figures
966 \begin_inset CommandInset ref
968 reference "fig:kill-plat"
973 \begin_inset CommandInset ref
975 reference "fig:escher"
979 are examples of referenced figures.
980 Figures can be referenced in the text by referencing their label.
981 To do this insert a label in the caption using the menu
983 Insert\SpecialChar \menuseparator
986 or the toolbar button
987 \begin_inset Graphics
988 filename ../images/label-insert.png
995 You can now refer to the label using the menu
997 Insert\SpecialChar \menuseparator
1004 or the toolbar button
1005 \begin_inset Graphics
1006 filename ../images/dialog-show-new-inset_ref.png
1013 It is important to use references to floats, rather than using vague references
1015 \begin_inset Quotes eld
1019 \begin_inset Quotes erd
1022 , because LaTeX will reposition the floats in the final document and it
1024 \begin_inset Quotes eld
1028 \begin_inset Quotes erd
1032 \begin_inset Newline newline
1035 Referencing is explained in detail in section
1036 \begin_inset space ~
1040 \begin_inset CommandInset ref
1042 reference "sec:Referencing-Floats"
1049 \begin_layout Standard
1050 Normally only one image is inserted to a figure float, but sometimes you
1051 might want to use two images with separate subcaptions.
1052 This can be done by inserting image floats into existing image floats.
1053 Note that only the main caption of the float is added to the List of Figures.
1055 \begin_inset space ~
1059 \begin_inset CommandInset ref
1061 reference "fig:Two-distorted-images"
1065 is an example of a figure float with two images set side by side.
1066 You can also set the images one below the other.
1068 \begin_inset space ~
1072 \begin_inset CommandInset ref
1074 reference "fig:Undefinable-structure"
1079 \begin_inset CommandInset ref
1081 reference "fig:A-Platypus"
1088 \begin_layout Standard
1089 \begin_inset Float figure
1094 \begin_layout Plain Layout
1095 \begin_inset space \hfill{}
1099 \begin_inset Float figure
1104 \begin_layout Plain Layout
1105 \begin_inset Caption
1107 \begin_layout Plain Layout
1108 \begin_inset CommandInset label
1110 name "fig:Undefinable-structure"
1114 Undefinable structure.
1122 \begin_layout Plain Layout
1123 \begin_inset Graphics
1124 filename clipart/escher-lsd.eps
1137 \begin_inset space \hfill{}
1141 \begin_inset Float figure
1146 \begin_layout Plain Layout
1147 \begin_inset Caption
1149 \begin_layout Plain Layout
1150 \begin_inset CommandInset label
1152 name "fig:A-Platypus"
1164 \begin_layout Plain Layout
1165 \begin_inset Graphics
1166 filename clipart/platypus.eps
1179 \begin_inset space \hfill{}
1185 \begin_layout Plain Layout
1186 \begin_inset Caption
1188 \begin_layout Plain Layout
1189 \begin_inset CommandInset label
1191 name "fig:Two-distorted-images"
1196 \begin_inset CommandInset label
1198 name "fig2:Two-distorted-images-2"
1202 Two distorted images.
1203 Both images are in the image settings group named
1204 \begin_inset Quotes eld
1208 \begin_inset Quotes erd
1224 \begin_layout Standard
1225 \begin_inset Newpage newpage
1231 \begin_layout Section
1233 \begin_inset CommandInset label
1235 name "sec:Image-Formats"
1240 \begin_inset Index idx
1243 \begin_layout Plain Layout
1250 \begin_inset Index idx
1253 \begin_layout Plain Layout
1254 Figures ! Image Formats
1262 \begin_layout Standard
1263 You can insert images in any known file format.
1264 But as explained in appendix
1265 \begin_inset space ~
1269 \begin_inset CommandInset ref
1271 reference "cha:Output-File-Formats"
1275 , each output document format allows only a few image formats.
1276 LyX uses therefore the program
1280 in the background to convert the images to the right format.
1281 To increase your work flow by avoiding these conversions in the background,
1282 you can use only the image formats that can directly be embedded in the
1284 The output file formats are explained in appendix
1285 \begin_inset space ~
1289 \begin_inset CommandInset ref
1291 reference "cha:Output-File-Formats"
1298 \begin_layout Standard
1299 Similar to fonts there are two types of image formats:
1302 \begin_layout Description
1304 \begin_inset space ~
1307 images consist of pixel values, often in a compressed form.
1308 They are therefore not fully scalable and look pixelated in large zooms.
1309 Well-known bitmap image formats are
1310 \begin_inset Quotes eld
1313 Graphics Interchange Format
1314 \begin_inset Quotes erd
1317 (GIF, file extension
1318 \begin_inset Quotes eld
1326 \begin_inset Quotes erd
1330 \begin_inset Index idx
1333 \begin_layout Plain Layout
1338 \begin_layout Plain Layout
1349 \begin_layout Plain Layout
1362 \begin_inset Quotes eld
1365 Portable Network Graphics
1366 \begin_inset Quotes erd
1369 (PNG, file extension
1370 \begin_inset Quotes eld
1378 \begin_inset Quotes erd
1382 \begin_inset Index idx
1385 \begin_layout Plain Layout
1390 \begin_layout Plain Layout
1401 \begin_layout Plain Layout
1414 \begin_inset Quotes eld
1417 Joint Photographic Experts Group
1418 \begin_inset Quotes erd
1421 (JPG, file extension
1422 \begin_inset Quotes eld
1430 \begin_inset Quotes erd
1434 \begin_inset Quotes eld
1442 \begin_inset Quotes erd
1446 \begin_inset Index idx
1449 \begin_layout Plain Layout
1454 \begin_layout Plain Layout
1465 \begin_layout Plain Layout
1480 \begin_layout Description
1482 \begin_inset space ~
1485 images consist of vectors and can therefore be scaled to any size without
1487 The scaling ability is necessary if you want to create presentations, because
1488 presentations are always scaled by the video projector.
1489 Scaling is also useful for online documents to let the user zoom into diagrams.
1490 \begin_inset Newline newline
1493 Well-known scalable image formats are
1494 \begin_inset Quotes eld
1497 Scalable Vector Graphics
1498 \begin_inset Quotes erd
1501 (SVG, file extension
1502 \begin_inset Quotes eld
1510 \begin_inset Quotes erd
1514 \begin_inset Index idx
1517 \begin_layout Plain Layout
1522 \begin_layout Plain Layout
1533 \begin_layout Plain Layout
1546 \begin_inset Quotes eld
1549 Encapsulated PostScript
1550 \begin_inset Quotes erd
1553 (EPS, file extension
1554 \begin_inset Quotes eld
1562 \begin_inset Quotes erd
1566 \begin_inset Index idx
1569 \begin_layout Plain Layout
1574 \begin_layout Plain Layout
1585 \begin_layout Plain Layout
1598 \begin_inset Quotes eld
1601 Portable Document Format
1602 \begin_inset Quotes erd
1605 (PDF, file extension
1606 \begin_inset Quotes eld
1614 \begin_inset Quotes erd
1618 \begin_inset Index idx
1621 \begin_layout Plain Layout
1628 \begin_inset Quotes eld
1632 \begin_inset Quotes erd
1635 (WMF, file extension
1636 \begin_inset Quotes eld
1644 \begin_inset Quotes erd
1648 \begin_inset Index idx
1651 \begin_layout Plain Layout
1656 \begin_layout Plain Layout
1667 \begin_layout Plain Layout
1681 \begin_inset Quotes eld
1685 \begin_inset Quotes erd
1688 , because you can convert any bitmap image to a PDF or EPS-image and the
1689 result will still be a bitmap image.
1690 In such cases only a header with the image properties is added to the original
1695 \begin_layout Plain Layout
1696 In the case of PDF, the original image is additionally compressed.
1702 The PDF-files generated by
1706 are for example bitmap images.
1709 \begin_layout Standard
1710 Normally it is not possible to convert a bitmap image into a scalable one,
1712 Only the image formats PDF and EPS can directly be embedded to PDF and
1713 PostScript output files, respectively.
1714 SVG and WMF-images are recalculated to bitmaps when the output file is
1715 generated because there is currently no adequate WMF/SVG
1716 \begin_inset Formula $\to$
1719 PDF/EPS converter available.
1722 \begin_layout Chapter
1724 \begin_inset Index idx
1727 \begin_layout Plain Layout
1736 \begin_layout Section
1738 \begin_inset Index idx
1741 \begin_layout Plain Layout
1742 Table ! Introduction
1750 \begin_layout Standard
1751 You can insert a table using either the toolbar button
1752 \begin_inset Graphics
1753 filename ../images/tabular-insert.png
1761 Insert\SpecialChar \menuseparator
1765 The toolbar button offers you a graphical selection: move the mouse to
1766 set the column/row number of the table that should be created and then
1767 press a mouse button.
1768 When you use the menu to create a table, a dialog will appear, asking you
1769 for the number of rows and columns.
1770 \begin_inset Newline newline
1773 The default table has lines around any cell and the first row appears separated
1774 from the rest of the table.
1775 This separation occurs due to a double line: The cells of the first row
1776 have a line below them and the cells of the second row have a line above
1778 Here is an example table:
1781 \begin_layout Standard
1783 \begin_inset Tabular
1784 <lyxtabular version="3" rows="4" columns="4">
1785 <features tabularvalignment="middle">
1786 <column alignment="center" valignment="top" width="0">
1787 <column alignment="center" valignment="top" width="0">
1788 <column alignment="center" valignment="top" width="0">
1789 <column alignment="center" valignment="top" width="0">
1791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1794 \begin_layout Plain Layout
1800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1803 \begin_layout Plain Layout
1818 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1821 \begin_layout Plain Layout
1827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1830 \begin_layout Plain Layout
1838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1841 \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" usebox="none">
1868 \begin_layout Plain Layout
1874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1877 \begin_layout Plain Layout
1885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1888 \begin_layout Plain Layout
1903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1906 \begin_layout Plain Layout
1912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1915 \begin_layout Plain Layout
1921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1924 \begin_layout Plain Layout
1932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1935 \begin_layout Plain Layout
1950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1953 \begin_layout Plain Layout
1959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1962 \begin_layout Plain Layout
1968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1971 \begin_layout Plain Layout
1985 \begin_layout Section
1987 \begin_inset Index idx
1990 \begin_layout Plain Layout
1999 \begin_layout Standard
2000 You can alter a table by clicking on it with the right mouse button, which
2001 brings up the table dialog.
2002 Here you can adjust the settings of that cell and row/column respectively
2003 where the cursor is currently placed.
2004 Most of the dialog options also work on selections.
2005 This means if you select more cells, columns or rows, the action is done
2006 for the whole selection.
2007 Note that there is a difference between selecting the
2011 of the cell, and the cell itself.
2012 \begin_inset Newline newline
2015 With the dialog option
2018 \begin_inset space ~
2023 every change you make in the dialog is directly applied.
2024 If you move the cursor to another table cell the dialog will then also
2025 be updated with the parameters of the new cell.
2026 If you change length values in the dialog you must press return to get
2028 \begin_inset Newline newline
2031 You can alter tables with the following tabs of the table dialog:
2034 \begin_layout Description
2038 \begin_inset space ~
2043 Here you can set the horizontal alignment and the width of the current
2048 \begin_inset space ~
2052 \begin_inset space ~
2057 is described in section
2058 \begin_inset space ~
2062 \begin_inset CommandInset ref
2064 reference "sub:Special-Cell-Alignment"
2069 When you have set a width you can also adjust the vertical alignment of
2071 A given width will allow the cell to have line breaks and multiple paragraphs
2072 of text, see section
2073 \begin_inset space ~
2077 \begin_inset CommandInset ref
2079 reference "sub:Multiple-Lines-in"
2084 If you set no width, the column is as wide as the content of its widest
2086 \begin_inset Newline newline
2089 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2091 \begin_inset space ~
2095 \begin_inset CommandInset ref
2097 reference "sub:Multicolumns"
2101 or the cells of one column as multirow cell, see section
2102 \begin_inset space ~
2106 \begin_inset CommandInset ref
2108 reference "sub:Multirows"
2113 \begin_inset Newline newline
2116 The rotate check boxes rotate the current cell, a selection, or the whole
2117 table counter-clockwise by 90°.
2118 The rotation is not shown within LyX, only in the output.
2119 \begin_inset Newline newline
2123 \begin_inset Note Greyedout
2126 \begin_layout Plain Layout
2131 Not all DVI-viewers are able to display rotations.
2137 \begin_inset Newline newline
2140 The table-wide vertical alignment is used for tables within text lines:
2141 \begin_inset Newline newline
2144 A line with tables with different alignments:
2145 \begin_inset Tabular
2146 <lyxtabular version="3" rows="2" columns="2">
2147 <features tabularvalignment="top">
2148 <column alignment="center" valignment="top" width="0pt">
2149 <column alignment="center" valignment="top" width="0">
2151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2154 \begin_layout Plain Layout
2160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2163 \begin_layout Plain Layout
2180 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2183 \begin_layout Plain Layout
2198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2201 \begin_layout Plain Layout
2213 \begin_inset Tabular
2214 <lyxtabular version="3" rows="2" columns="2">
2215 <features tabularvalignment="middle">
2216 <column alignment="center" valignment="top" width="0">
2217 <column alignment="center" valignment="top" width="0">
2219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2222 \begin_layout Plain Layout
2228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2231 \begin_layout Plain Layout
2248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2251 \begin_layout Plain Layout
2266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2269 \begin_layout Plain Layout
2281 \begin_inset Tabular
2282 <lyxtabular version="3" rows="2" columns="2">
2283 <features tabularvalignment="bottom">
2284 <column alignment="center" valignment="top" width="0pt">
2285 <column alignment="center" valignment="top" width="0">
2287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2290 \begin_layout Plain Layout
2296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2299 \begin_layout Plain Layout
2316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2319 \begin_layout Plain Layout
2334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2337 \begin_layout Plain Layout
2349 \begin_inset Newline newline
2352 It is also possible to enter a LaTeX-argument which is needed for special
2353 table formattings, see section
2354 \begin_inset space ~
2358 \begin_inset CommandInset ref
2360 reference "sub:Multicolumn-Calculations"
2365 \begin_inset CommandInset ref
2367 reference "sec:Colored-Tables"
2374 \begin_layout Description
2379 In this tab you can add and delete border lines for the current row/column.
2380 \begin_inset Newline newline
2383 Using the style option
2387 will convert the table to a formal table as described in section
2388 \begin_inset space ~
2392 \begin_inset CommandInset ref
2394 reference "sec:Formal-Tables"
2399 \begin_inset Newline newline
2402 You can also add here space to table rows as described in section
2403 \begin_inset space ~
2407 \begin_inset CommandInset ref
2409 reference "sub:Row-Spacing"
2416 \begin_layout Description
2421 This tab is to make a table a so called
2422 \begin_inset Quotes eld
2430 \begin_inset Quotes erd
2433 that can run over several pages.
2435 \begin_inset space ~
2439 \begin_inset CommandInset ref
2441 reference "sec:Longtables"
2446 \begin_inset CommandInset ref
2448 reference "sec:Special-Longtable-Issues"
2452 describe the longtable features in detail.
2455 \begin_layout Section
2457 \begin_inset Index idx
2460 \begin_layout Plain Layout
2469 \begin_layout Standard
2470 The table toolbar is an alternative to the table dialog to be able to alter
2472 It should normally appear at the bottom of LyX's main window when the cursor
2474 You can alternatively switch it on to appear always, by right-clicking
2475 in LyX's main menu bar.
2478 \begin_layout Standard
2479 The toolbar has the following icons:
2482 \begin_layout Labeling
2483 \labelwidthstring 00.00.0000
2484 \begin_inset Graphics
2485 filename ../images/tabular-feature_append-row.png
2490 adds a row below the current cell or selection
2493 \begin_layout Labeling
2494 \labelwidthstring 00.00.0000
2495 \begin_inset Graphics
2496 filename ../images/tabular-feature_append-column.png
2501 adds a column right beside the current cell or selection
2504 \begin_layout Labeling
2505 \labelwidthstring 00.00.0000
2506 \begin_inset Graphics
2507 filename ../images/tabular-feature_delete-row.png
2512 deletes the current row or selection
2515 \begin_layout Labeling
2516 \labelwidthstring 00.00.0000
2517 \begin_inset Graphics
2518 filename ../images/tabular-feature_delete-column.png
2523 deletes the current column or selection
2526 \begin_layout Labeling
2527 \labelwidthstring 00.00.0000
2528 \begin_inset Graphics
2529 filename ../images/tabular-feature_toggle-line-top.png
2534 adds a line at the top of the current cell / row or of a selection
2537 \begin_layout Labeling
2538 \labelwidthstring 00.00.0000
2539 \begin_inset Graphics
2540 filename ../images/tabular-feature_toggle-line-bottom.png
2545 adds a line at the bottom of the current cell / row or of a selection
2548 \begin_layout Labeling
2549 \labelwidthstring 00.00.0000
2550 \begin_inset Graphics
2551 filename ../images/tabular-feature_toggle-line-left.png
2556 adds a line at the left side of the current cell / row or of a selection
2559 \begin_layout Labeling
2560 \labelwidthstring 00.00.0000
2561 \begin_inset Graphics
2562 filename ../images/tabular-feature_toggle-line-right.png
2567 adds a line at the right side of the current cell / row or of a selection
2570 \begin_layout Labeling
2571 \labelwidthstring 00.00.0000
2572 \begin_inset Graphics
2573 filename ../images/tabular-feature_set-all-lines.png
2578 adds lines around the current or selected cells - if the current cell no
2579 multicolumn cell this also affects the current row and column
2582 \begin_layout Labeling
2583 \labelwidthstring 00.00.0000
2584 \begin_inset Graphics
2585 filename ../images/tabular-feature_unset-all-lines.png
2590 deletes all lines of the current or selected cells - if the current cell
2591 no multicolumn cell this also affects the current row and column
2594 \begin_layout Labeling
2595 \labelwidthstring 00.00.0000
2596 \begin_inset Graphics
2597 filename ../images/tabular-feature_m-align-left.png
2602 left-aligns the content of the current cell / column
2605 \begin_layout Labeling
2606 \labelwidthstring 00.00.0000
2607 \begin_inset Graphics
2608 filename ../images/tabular-feature_m-align-center.png
2613 centers the content of the current cell / column horizontally
2616 \begin_layout Labeling
2617 \labelwidthstring 00.00.0000
2618 \begin_inset Graphics
2619 filename ../images/tabular-feature_m-align-right.png
2624 right-aligns the content of the current cell / column
2627 \begin_layout Labeling
2628 \labelwidthstring 00.00.0000
2629 \begin_inset Graphics
2630 filename ../images/tabular-feature_align-decimal.png
2635 aligns the content of the current column at a character
2638 \begin_layout Labeling
2639 \labelwidthstring 00.00.0000
2640 \begin_inset Graphics
2641 filename ../images/tabular-feature_m-valign-top.png
2646 aligns the content of the current cell vertically to the top
2649 \begin_layout Labeling
2650 \labelwidthstring 00.00.0000
2651 \begin_inset Graphics
2652 filename ../images/tabular-feature_m-valign-middle.png
2657 centers the content of the current cell vertically
2660 \begin_layout Labeling
2661 \labelwidthstring 00.00.0000
2662 \begin_inset Graphics
2663 filename ../images/tabular-feature_m-valign-bottom.png
2668 aligns the content of the current cell vertically to the bottom
2671 \begin_layout Labeling
2672 \labelwidthstring 00.00.0000
2673 \begin_inset Graphics
2674 filename ../images/tabular-feature_set-rotate-cell.png
2679 rotates the current cell or selection counter-clockwise by 90°
2682 \begin_layout Labeling
2683 \labelwidthstring 00.00.0000
2684 \begin_inset Graphics
2685 filename ../images/tabular-feature_set-rotate-tabular.png
2690 rotates the whole table counter-clockwise by 90°
2693 \begin_layout Labeling
2694 \labelwidthstring 00.00.0000
2695 \begin_inset Graphics
2696 filename ../images/tabular-feature_multicolumn.png
2701 sets the current cell or selection as a multicolumn
2704 \begin_layout Labeling
2705 \labelwidthstring 00.00.0000
2706 \begin_inset Graphics
2707 filename ../images/tabular-feature_multirow.png
2712 sets the current cell or selection as a multirow
2715 \begin_layout Standard
2716 \begin_inset Note Greyedout
2719 \begin_layout Plain Layout
2724 For the output the vertical alignment of the first cell in a row is used
2725 for all following cells in the row.
2733 \begin_layout Section
2735 \begin_inset Index idx
2738 \begin_layout Plain Layout
2747 \begin_layout Standard
2748 Additionally to the table dialog and toolbar, the menu
2750 Edit\SpecialChar \menuseparator
2753 allows you to add and delete border lines for the current row/column and
2754 to set the current selection as multicolumn.
2755 The menu is only available when the cursor is inside a table.
2758 \begin_layout Section
2760 \begin_inset CommandInset label
2762 name "sec:Table-Floats"
2767 \begin_inset Index idx
2770 \begin_layout Plain Layout
2777 \begin_inset Index idx
2780 \begin_layout Plain Layout
2789 \begin_layout Standard
2790 For general explanations about floats, have a look at section
2791 \begin_inset space ~
2795 \begin_inset CommandInset ref
2797 reference "sec:FloatIntroduction"
2804 \begin_layout Standard
2805 \begin_inset Float table
2811 \begin_layout Plain Layout
2812 \begin_inset Caption
2814 \begin_layout Plain Layout
2815 \begin_inset CommandInset label
2817 name "tab:a table float"
2829 \begin_layout Plain Layout
2831 \begin_inset Tabular
2832 <lyxtabular version="3" rows="3" columns="3">
2833 <features tabularvalignment="middle">
2834 <column alignment="center" valignment="top" width="0pt">
2835 <column alignment="center" valignment="top" width="0pt">
2836 <column alignment="center" valignment="top" width="0pt">
2838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2841 \begin_layout Plain Layout
2856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2859 \begin_layout Plain Layout
2874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2877 \begin_layout Plain Layout
2894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2897 \begin_layout Plain Layout
2912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2915 \begin_layout Plain Layout
2930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2933 \begin_layout Plain Layout
2950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2953 \begin_layout Plain Layout
2963 \begin_inset Formula $\int x^{2}dx$
2971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2974 \begin_layout Plain Layout
2984 \begin_inset Formula $\left[\begin{array}{cc}
2995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2998 \begin_layout Plain Layout
3008 \begin_inset Formula $1+1=2$
3029 \begin_layout Standard
3030 Table floats can be inserted using the menu
3032 Insert\SpecialChar \menuseparator
3033 Float\SpecialChar \menuseparator
3036 or the toolbar button
3037 \begin_inset Graphics
3038 filename ../images/float-insert_table.png
3047 \begin_layout Standard
3048 The float appears as a collapsible box with a caption that has the label
3050 \begin_inset Quotes eld
3054 \begin_inset space ~
3058 \begin_inset Quotes erd
3061 (# is the actual table number).
3062 You can insert tables in the float above or below the caption.
3065 \begin_layout Standard
3067 \begin_inset space ~
3071 \begin_inset CommandInset ref
3073 reference "tab:a table float"
3077 is an example table within a table float.
3080 \begin_layout Standard
3081 Having the caption above the table is the common rule that is unfortunately
3082 not supported in LaTeX's standard classes.
3083 This means that, if you are using the document classes
3099 , there will be no space between the caption and the table.
3100 To insert the needed space, add the following option to the load command
3101 of the LaTeX-package
3106 \begin_inset Index idx
3109 \begin_layout Plain Layout
3110 LaTeX-packages ! caption
3115 in your document preamble
3119 \begin_layout Plain Layout
3120 For more information have a look at section
3121 \begin_inset space ~
3125 \begin_inset CommandInset ref
3127 reference "sec:Caption-Placement"
3139 \begin_layout Standard
3145 \begin_layout Standard
3150 , which is described in section
3151 \begin_inset space ~
3155 \begin_inset CommandInset ref
3157 reference "sec:Caption-Formatting"
3161 , is used to adjust the caption format.
3164 \begin_layout Standard
3165 \begin_inset Index idx
3168 \begin_layout Plain Layout
3169 References ! to Tables
3174 Tables can be cross-referenced in the text by referencing their label.
3175 To do this insert a label in the caption using the menu
3177 Insert\SpecialChar \menuseparator
3180 or the toolbar button
3181 \begin_inset Graphics
3182 filename ../images/label-insert.png
3189 You can now refer to the label using the menu
3191 Insert\SpecialChar \menuseparator
3193 \begin_inset space ~
3198 or the toolbar button
3199 \begin_inset Graphics
3200 filename ../images/dialog-show-new-inset_ref.png
3207 \begin_inset Newline newline
3210 Referencing is explained in detail in section
3211 \begin_inset space ~
3215 \begin_inset CommandInset ref
3217 reference "sec:Referencing-Floats"
3224 \begin_layout Section
3226 \begin_inset CommandInset label
3228 name "sec:Longtables"
3233 \begin_inset Index idx
3236 \begin_layout Plain Layout
3243 \begin_inset Index idx
3246 \begin_layout Plain Layout
3255 \begin_layout Standard
3256 If the table is too long to fit on one page, you can use the option
3259 \begin_inset space ~
3263 \begin_inset space ~
3272 of the table dialog to split the table automatically over more pages.
3273 Doing this enables the following options:
3276 \begin_layout Description
3277 Header: The current row is defined to be a header row that appears on all
3278 pages of the longtable; except for the first page, if
3281 \begin_inset space ~
3287 This is therefore called the main header.
3290 \begin_layout Description
3292 \begin_inset space ~
3295 header: The current row is defined to be a header row that appears on the
3296 first page of the longtable.
3299 \begin_layout Description
3300 Footer: The current row is defined to be a footer row that appears on all
3301 pages of the longtable; except for the last page, if
3304 \begin_inset space ~
3312 \begin_layout Description
3314 \begin_inset space ~
3317 footer: The current row is defined to be a footer row that appears on the
3318 last page of the longtable.
3321 \begin_layout Description
3322 Caption: The current row contains the table caption.
3323 The row is reset as single column and a caption is inserted.
3324 More about longtable captions is explained in sec.
3325 \begin_inset space \thinspace{}
3329 \begin_inset CommandInset ref
3331 reference "sub:Longtable-Captions"
3338 \begin_layout Standard
3339 You can also specify a row where the table is split.
3340 See the following longtable to see how it works:
3343 \begin_layout Standard
3345 \begin_inset Tabular
3346 <lyxtabular version="3" rows="69" columns="3">
3347 <features islongtable="true" longtabularalignment="center">
3348 <column alignment="left" valignment="top" width="0cm">
3349 <column alignment="left" valignment="top" width="0pt">
3350 <column alignment="center" valignment="top" width="0pt">
3351 <row endfirsthead="true">
3352 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3355 \begin_layout Plain Layout
3358 Example Phone List (ignore the names)
3363 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3366 \begin_layout Plain Layout
3372 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3375 \begin_layout Plain Layout
3382 <row endfirsthead="true">
3383 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3386 \begin_layout Plain Layout
3394 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3397 \begin_layout Plain Layout
3403 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3406 \begin_layout Plain Layout
3415 <row endhead="true">
3416 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3419 \begin_layout Plain Layout
3427 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3430 \begin_layout Plain Layout
3436 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3439 \begin_layout Plain Layout
3446 <row endhead="true">
3447 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3450 \begin_layout Plain Layout
3458 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3461 \begin_layout Plain Layout
3467 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3470 \begin_layout Plain Layout
3479 <row endfoot="true">
3480 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3483 \begin_layout Plain Layout
3484 continued on next page
3489 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3492 \begin_layout Plain Layout
3498 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3501 \begin_layout Plain Layout
3509 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3512 \begin_layout Plain Layout
3520 <cell alignment="center" valignment="top" usebox="none">
3523 \begin_layout Plain Layout
3529 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3532 \begin_layout Plain Layout
3540 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3543 \begin_layout Plain Layout
3551 <cell alignment="center" valignment="top" usebox="none">
3554 \begin_layout Plain Layout
3560 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3563 \begin_layout Plain Layout
3571 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3574 \begin_layout Plain Layout
3582 <cell alignment="center" valignment="top" usebox="none">
3585 \begin_layout Plain Layout
3591 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3594 \begin_layout Plain Layout
3602 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3605 \begin_layout Plain Layout
3613 <cell alignment="center" valignment="top" usebox="none">
3616 \begin_layout Plain Layout
3622 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3625 \begin_layout Plain Layout
3633 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3636 \begin_layout Plain Layout
3644 <cell alignment="center" valignment="top" usebox="none">
3647 \begin_layout Plain Layout
3653 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3656 \begin_layout Plain Layout
3664 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3667 \begin_layout Plain Layout
3675 <cell alignment="center" valignment="top" usebox="none">
3678 \begin_layout Plain Layout
3684 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3687 \begin_layout Plain Layout
3695 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3698 \begin_layout Plain Layout
3706 <cell alignment="center" valignment="top" usebox="none">
3709 \begin_layout Plain Layout
3715 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3718 \begin_layout Plain Layout
3726 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3729 \begin_layout Plain Layout
3737 <cell alignment="center" valignment="top" usebox="none">
3740 \begin_layout Plain Layout
3746 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3749 \begin_layout Plain Layout
3757 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3760 \begin_layout Plain Layout
3768 <cell alignment="center" valignment="top" usebox="none">
3771 \begin_layout Plain Layout
3777 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3780 \begin_layout Plain Layout
3788 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3791 \begin_layout Plain Layout
3799 <cell alignment="center" valignment="top" usebox="none">
3802 \begin_layout Plain Layout
3808 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3811 \begin_layout Plain Layout
3819 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3822 \begin_layout Plain Layout
3830 <cell alignment="center" valignment="top" usebox="none">
3833 \begin_layout Plain Layout
3839 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3842 \begin_layout Plain Layout
3850 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3853 \begin_layout Plain Layout
3861 <cell alignment="center" valignment="top" usebox="none">
3864 \begin_layout Plain Layout
3870 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3873 \begin_layout Plain Layout
3881 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3884 \begin_layout Plain Layout
3892 <cell alignment="center" valignment="top" usebox="none">
3895 \begin_layout Plain Layout
3901 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3904 \begin_layout Plain Layout
3912 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3915 \begin_layout Plain Layout
3923 <cell alignment="center" valignment="top" usebox="none">
3926 \begin_layout Plain Layout
3932 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3935 \begin_layout Plain Layout
3943 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3946 \begin_layout Plain Layout
3954 <cell alignment="center" valignment="top" usebox="none">
3957 \begin_layout Plain Layout
3963 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3966 \begin_layout Plain Layout
3974 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3977 \begin_layout Plain Layout
3985 <cell alignment="center" valignment="top" usebox="none">
3988 \begin_layout Plain Layout
3994 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3997 \begin_layout Plain Layout
4005 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4008 \begin_layout Plain Layout
4016 <cell alignment="center" valignment="top" usebox="none">
4019 \begin_layout Plain Layout
4025 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4028 \begin_layout Plain Layout
4036 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4039 \begin_layout Plain Layout
4047 <cell alignment="center" valignment="top" usebox="none">
4050 \begin_layout Plain Layout
4056 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4059 \begin_layout Plain Layout
4067 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4070 \begin_layout Plain Layout
4078 <cell alignment="center" valignment="top" usebox="none">
4081 \begin_layout Plain Layout
4087 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4090 \begin_layout Plain Layout
4098 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4101 \begin_layout Plain Layout
4109 <cell alignment="center" valignment="top" usebox="none">
4112 \begin_layout Plain Layout
4118 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4121 \begin_layout Plain Layout
4129 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4132 \begin_layout Plain Layout
4140 <cell alignment="center" valignment="top" usebox="none">
4143 \begin_layout Plain Layout
4149 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4152 \begin_layout Plain Layout
4160 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4163 \begin_layout Plain Layout
4171 <cell alignment="center" valignment="top" usebox="none">
4174 \begin_layout Plain Layout
4180 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4183 \begin_layout Plain Layout
4191 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4194 \begin_layout Plain Layout
4202 <cell alignment="center" valignment="top" usebox="none">
4205 \begin_layout Plain Layout
4211 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4214 \begin_layout Plain Layout
4222 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4225 \begin_layout Plain Layout
4233 <cell alignment="center" valignment="top" usebox="none">
4236 \begin_layout Plain Layout
4242 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4245 \begin_layout Plain Layout
4253 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4256 \begin_layout Plain Layout
4264 <cell alignment="center" valignment="top" usebox="none">
4267 \begin_layout Plain Layout
4273 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4276 \begin_layout Plain Layout
4284 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4287 \begin_layout Plain Layout
4295 <cell alignment="center" valignment="top" usebox="none">
4298 \begin_layout Plain Layout
4304 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4307 \begin_layout Plain Layout
4315 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4318 \begin_layout Plain Layout
4326 <cell alignment="center" valignment="top" usebox="none">
4329 \begin_layout Plain Layout
4335 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4338 \begin_layout Plain Layout
4346 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4349 \begin_layout Plain Layout
4357 <cell alignment="center" valignment="top" usebox="none">
4360 \begin_layout Plain Layout
4366 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4369 \begin_layout Plain Layout
4377 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4380 \begin_layout Plain Layout
4388 <cell alignment="center" valignment="top" usebox="none">
4391 \begin_layout Plain Layout
4397 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4400 \begin_layout Plain Layout
4408 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4411 \begin_layout Plain Layout
4419 <cell alignment="center" valignment="top" usebox="none">
4422 \begin_layout Plain Layout
4428 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4431 \begin_layout Plain Layout
4439 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4442 \begin_layout Plain Layout
4450 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4453 \begin_layout Plain Layout
4459 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4462 \begin_layout Plain Layout
4470 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4473 \begin_layout Plain Layout
4479 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4482 \begin_layout Plain Layout
4488 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4491 \begin_layout Plain Layout
4499 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4502 \begin_layout Plain Layout
4510 <cell alignment="center" valignment="top" usebox="none">
4513 \begin_layout Plain Layout
4519 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4522 \begin_layout Plain Layout
4530 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4533 \begin_layout Plain Layout
4541 <cell alignment="center" valignment="top" usebox="none">
4544 \begin_layout Plain Layout
4550 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4553 \begin_layout Plain Layout
4561 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4564 \begin_layout Plain Layout
4572 <cell alignment="center" valignment="top" usebox="none">
4575 \begin_layout Plain Layout
4581 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4584 \begin_layout Plain Layout
4592 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4595 \begin_layout Plain Layout
4603 <cell alignment="center" valignment="top" usebox="none">
4606 \begin_layout Plain Layout
4612 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4615 \begin_layout Plain Layout
4623 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4626 \begin_layout Plain Layout
4634 <cell alignment="center" valignment="top" usebox="none">
4637 \begin_layout Plain Layout
4643 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4646 \begin_layout Plain Layout
4654 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4657 \begin_layout Plain Layout
4665 <cell alignment="center" valignment="top" usebox="none">
4668 \begin_layout Plain Layout
4674 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4677 \begin_layout Plain Layout
4685 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4688 \begin_layout Plain Layout
4696 <cell alignment="center" valignment="top" usebox="none">
4699 \begin_layout Plain Layout
4705 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4708 \begin_layout Plain Layout
4716 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4719 \begin_layout Plain Layout
4727 <cell alignment="center" valignment="top" usebox="none">
4730 \begin_layout Plain Layout
4736 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4739 \begin_layout Plain Layout
4747 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4750 \begin_layout Plain Layout
4758 <cell alignment="center" valignment="top" usebox="none">
4761 \begin_layout Plain Layout
4767 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4770 \begin_layout Plain Layout
4778 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4781 \begin_layout Plain Layout
4789 <cell alignment="center" valignment="top" usebox="none">
4792 \begin_layout Plain Layout
4798 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4801 \begin_layout Plain Layout
4809 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4812 \begin_layout Plain Layout
4820 <cell alignment="center" valignment="top" usebox="none">
4823 \begin_layout Plain Layout
4829 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4832 \begin_layout Plain Layout
4840 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4843 \begin_layout Plain Layout
4851 <cell alignment="center" valignment="top" usebox="none">
4854 \begin_layout Plain Layout
4860 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4863 \begin_layout Plain Layout
4871 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4874 \begin_layout Plain Layout
4882 <cell alignment="center" valignment="top" usebox="none">
4885 \begin_layout Plain Layout
4891 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4894 \begin_layout Plain Layout
4902 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4905 \begin_layout Plain Layout
4913 <cell alignment="center" valignment="top" usebox="none">
4916 \begin_layout Plain Layout
4922 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4925 \begin_layout Plain Layout
4933 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4936 \begin_layout Plain Layout
4944 <cell alignment="center" valignment="top" usebox="none">
4947 \begin_layout Plain Layout
4953 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4956 \begin_layout Plain Layout
4964 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4967 \begin_layout Plain Layout
4975 <cell alignment="center" valignment="top" usebox="none">
4978 \begin_layout Plain Layout
4984 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4987 \begin_layout Plain Layout
4995 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4998 \begin_layout Plain Layout
5006 <cell alignment="center" valignment="top" usebox="none">
5009 \begin_layout Plain Layout
5015 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5018 \begin_layout Plain Layout
5026 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5029 \begin_layout Plain Layout
5037 <cell alignment="center" valignment="top" usebox="none">
5040 \begin_layout Plain Layout
5046 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5049 \begin_layout Plain Layout
5057 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5060 \begin_layout Plain Layout
5068 <cell alignment="center" valignment="top" usebox="none">
5071 \begin_layout Plain Layout
5077 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5080 \begin_layout Plain Layout
5088 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5091 \begin_layout Plain Layout
5099 <cell alignment="center" valignment="top" usebox="none">
5102 \begin_layout Plain Layout
5108 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5111 \begin_layout Plain Layout
5119 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5122 \begin_layout Plain Layout
5130 <cell alignment="center" valignment="top" usebox="none">
5133 \begin_layout Plain Layout
5139 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5142 \begin_layout Plain Layout
5150 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5153 \begin_layout Plain Layout
5161 <cell alignment="center" valignment="top" usebox="none">
5164 \begin_layout Plain Layout
5170 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5173 \begin_layout Plain Layout
5181 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5184 \begin_layout Plain Layout
5192 <cell alignment="center" valignment="top" usebox="none">
5195 \begin_layout Plain Layout
5201 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5204 \begin_layout Plain Layout
5212 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5215 \begin_layout Plain Layout
5223 <cell alignment="center" valignment="top" usebox="none">
5226 \begin_layout Plain Layout
5232 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5235 \begin_layout Plain Layout
5243 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5246 \begin_layout Plain Layout
5254 <cell alignment="center" valignment="top" usebox="none">
5257 \begin_layout Plain Layout
5263 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5266 \begin_layout Plain Layout
5274 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5277 \begin_layout Plain Layout
5285 <cell alignment="center" valignment="top" usebox="none">
5288 \begin_layout Plain Layout
5294 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5297 \begin_layout Plain Layout
5305 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5308 \begin_layout Plain Layout
5316 <cell alignment="center" valignment="top" usebox="none">
5319 \begin_layout Plain Layout
5325 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5328 \begin_layout Plain Layout
5336 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5339 \begin_layout Plain Layout
5347 <cell alignment="center" valignment="top" usebox="none">
5350 \begin_layout Plain Layout
5356 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5359 \begin_layout Plain Layout
5367 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5370 \begin_layout Plain Layout
5378 <cell alignment="center" valignment="top" usebox="none">
5381 \begin_layout Plain Layout
5387 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5390 \begin_layout Plain Layout
5398 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5401 \begin_layout Plain Layout
5409 <cell alignment="center" valignment="top" usebox="none">
5412 \begin_layout Plain Layout
5418 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5421 \begin_layout Plain Layout
5429 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5432 \begin_layout Plain Layout
5440 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5443 \begin_layout Plain Layout
5449 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5452 \begin_layout Plain Layout
5459 <row endlastfoot="true">
5460 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5463 \begin_layout Plain Layout
5469 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5472 \begin_layout Plain Layout
5478 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5481 \begin_layout Plain Layout
5496 \begin_layout Plain Layout
5500 addtocounter{table}{-1}
5506 \begin_inset Note Note
5509 \begin_layout Plain Layout
5510 See the first greyed-out note in section
5511 \begin_inset space ~
5515 \begin_inset CommandInset ref
5517 reference "sub:Longtable-Captions"
5521 for an explanation of this command.
5529 \begin_layout Subsection
5530 Footnotes in Longtables
5531 \begin_inset CommandInset label
5533 name "sub:Footnotes-in-Longtables"
5538 \begin_inset Index idx
5541 \begin_layout Plain Layout
5542 Longtables ! Footnotes
5550 \begin_layout Standard
5551 Footnotes can be inserted to every longtable cell.
5552 They appear at the bottom of the page where the table cell with the footnote
5555 \begin_inset space ~
5559 \begin_inset CommandInset ref
5561 reference "tab:DiffCaptions"
5565 has for example a footnote.
5568 \begin_layout Subsection
5570 \begin_inset Index idx
5573 \begin_layout Plain Layout
5574 Longtables ! Alignment
5582 \begin_layout Standard
5583 The horizontal alignment of longtables can be set in the table settings
5585 For left- and right-alignment the table will be directly at the page border.
5586 To add space between the table and the border one has to set the alignment
5587 to center and change the value of the LaTeX-lengths
5599 by inserting this line as TeX-Code before the longtable:
5602 \begin_layout Standard
5612 \begin_layout Standard
5613 The value can have any of the units listed in Table
5614 \begin_inset space ~
5618 \begin_inset CommandInset ref
5620 reference "tab:Units"
5631 controls the horizontal distance from the left page border to the longtable,
5638 the distance from the right side.
5639 The default value for both lengths is
5645 , which is in this case the same as an horizontal fill in LyX.
5648 \begin_layout Standard
5649 The following longtable was centered and
5665 \begin_layout Plain Layout
5681 \begin_layout Standard
5682 \begin_inset Tabular
5683 <lyxtabular version="3" rows="5" columns="5">
5684 <features islongtable="true" longtabularalignment="center">
5685 <column alignment="center" valignment="top" width="0">
5686 <column alignment="center" valignment="top" width="0pt">
5687 <column alignment="center" valignment="top" width="0">
5688 <column alignment="center" valignment="top" width="0">
5689 <column alignment="center" valignment="top" width="0">
5691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5694 \begin_layout Plain Layout
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" rightline="true" usebox="none">
5730 \begin_layout Plain Layout
5738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5741 \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" rightline="true" usebox="none">
5777 \begin_layout Plain Layout
5785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5788 \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" rightline="true" usebox="none">
5824 \begin_layout Plain Layout
5832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5835 \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" rightline="true" usebox="none">
5871 \begin_layout Plain Layout
5879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5882 \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" rightline="true" usebox="none">
5918 \begin_layout Plain Layout
5933 \begin_layout Plain Layout
5950 \begin_layout Plain Layout
5954 addtocounter{table}{-1}
5960 \begin_inset Note Note
5963 \begin_layout Plain Layout
5964 See the first greyed-out note in section
5965 \begin_inset space ~
5969 \begin_inset CommandInset ref
5971 reference "sub:Longtable-Captions"
5975 for an explanation of this command.
5983 \begin_layout Subsection
5985 \begin_inset Index idx
5988 \begin_layout Plain Layout
5989 Longtables ! Captions
5995 \begin_inset CommandInset label
5997 name "sub:Longtable-Captions"
6004 \begin_layout Standard
6005 A longtable cannot be put into a table float because floats can only be
6007 But the caption environment of floats can also be used for longtables when
6008 you use the longtable option
6012 as described in sec.
6013 \begin_inset space \thinspace{}
6017 \begin_inset CommandInset ref
6019 reference "sec:Longtables"
6024 Only one table row can contain the caption.
6027 \begin_layout Standard
6028 Here is a short longtable to see how it works:
6031 \begin_layout Standard
6032 \begin_inset Tabular
6033 <lyxtabular version="3" rows="6" columns="5">
6034 <features islongtable="true" longtabularalignment="center">
6035 <column alignment="center" valignment="top" width="0">
6036 <column alignment="center" valignment="top" width="0">
6037 <column alignment="center" valignment="top" width="0">
6038 <column alignment="center" valignment="top" width="0">
6039 <column alignment="center" valignment="top" width="0">
6040 <row caption="true">
6041 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6044 \begin_layout Plain Layout
6045 \begin_inset Caption
6047 \begin_layout Plain Layout
6048 Longtable with caption
6049 \begin_inset Argument
6052 \begin_layout Plain Layout
6068 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6071 \begin_layout Plain Layout
6077 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6080 \begin_layout Plain Layout
6086 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6089 \begin_layout Plain Layout
6095 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6098 \begin_layout Plain Layout
6106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6109 \begin_layout Plain Layout
6115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6118 \begin_layout Plain Layout
6124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6127 \begin_layout Plain Layout
6133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6136 \begin_layout Plain Layout
6142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6145 \begin_layout Plain Layout
6153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6156 \begin_layout Plain Layout
6162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6165 \begin_layout Plain Layout
6171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6174 \begin_layout Plain Layout
6180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6183 \begin_layout Plain Layout
6189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6192 \begin_layout Plain Layout
6200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6203 \begin_layout Plain Layout
6209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6212 \begin_layout Plain Layout
6218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6221 \begin_layout Plain Layout
6227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6230 \begin_layout Plain Layout
6236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6239 \begin_layout Plain Layout
6247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6250 \begin_layout Plain Layout
6256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6259 \begin_layout Plain Layout
6265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6268 \begin_layout Plain Layout
6274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6277 \begin_layout Plain Layout
6283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6286 \begin_layout Plain Layout
6294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6297 \begin_layout Plain Layout
6303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6306 \begin_layout Plain Layout
6312 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6315 \begin_layout Plain Layout
6321 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6324 \begin_layout Plain Layout
6330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6333 \begin_layout Plain Layout
6347 \begin_layout Standard
6348 \begin_inset VSpace medskip
6352 \begin_inset Note Greyedout
6355 \begin_layout Plain Layout
6359 \begin_inset space ~
6364 The table number is increased for for every longtable, even if you did
6365 not set a caption for it.
6366 For this reason you could have the case that e.
6367 \begin_inset space \thinspace{}
6371 \begin_inset space \space{}
6375 \begin_inset space ~
6379 \begin_inset space ~
6382 2.1 in the list of tables if there are two longtables without captions.
6383 To avoid this you can add the following command in TeX-Code after every
6384 longtable without a caption:
6387 \begin_layout Plain Layout
6392 addtocounter{table}{-1}
6395 \begin_layout Plain Layout
6396 This is not needed when none of your longtables have a caption and you add
6397 the following code to the document preamble:
6400 \begin_layout Plain Layout
6410 \begin_inset Newline newline
6421 addtocounter{table}{-1}}
6429 \begin_layout Standard
6430 \begin_inset Note Greyedout
6433 \begin_layout Plain Layout
6437 \begin_inset space ~
6447 \begin_inset Index idx
6450 \begin_layout Plain Layout
6451 LaTeX-packages ! hyperref
6464 dialog to link cross-references, the link to a longtable caption will always
6465 point to the beginning of the document.
6473 \begin_layout Subsubsection
6474 References to Longtables
6475 \begin_inset Index idx
6478 \begin_layout Plain Layout
6479 Longtables ! References
6487 \begin_layout Standard
6488 \begin_inset Tabular
6489 <lyxtabular version="3" rows="6" columns="5">
6490 <features islongtable="true" longtabularalignment="center">
6491 <column alignment="center" valignment="top" width="0">
6492 <column alignment="center" valignment="top" width="0">
6493 <column alignment="center" valignment="top" width="0">
6494 <column alignment="center" valignment="top" width="0">
6495 <column alignment="center" valignment="top" width="0">
6496 <row caption="true">
6497 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6500 \begin_layout Plain Layout
6501 \begin_inset Caption
6503 \begin_layout Plain Layout
6504 Referenced longtable
6505 \begin_inset CommandInset label
6507 name "tab:RefExample"
6521 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6524 \begin_layout Plain Layout
6530 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6533 \begin_layout Plain Layout
6539 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6542 \begin_layout Plain Layout
6548 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6551 \begin_layout Plain Layout
6559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6562 \begin_layout Plain Layout
6568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6571 \begin_layout Plain Layout
6577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6580 \begin_layout Plain Layout
6586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6589 \begin_layout Plain Layout
6595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6598 \begin_layout Plain Layout
6606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6609 \begin_layout Plain Layout
6615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6618 \begin_layout Plain Layout
6624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6627 \begin_layout Plain Layout
6633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6636 \begin_layout Plain Layout
6642 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6645 \begin_layout Plain Layout
6653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6656 \begin_layout Plain Layout
6662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6665 \begin_layout Plain Layout
6671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6674 \begin_layout Plain Layout
6680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6683 \begin_layout Plain Layout
6689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6692 \begin_layout Plain Layout
6700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6703 \begin_layout Plain Layout
6709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6712 \begin_layout Plain Layout
6718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6721 \begin_layout Plain Layout
6727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6730 \begin_layout Plain Layout
6736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6739 \begin_layout Plain Layout
6747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6750 \begin_layout Plain Layout
6756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6759 \begin_layout Plain Layout
6765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6768 \begin_layout Plain Layout
6774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6777 \begin_layout Plain Layout
6783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6786 \begin_layout Plain Layout
6800 \begin_layout Standard
6801 To reference a longtable, insert a label into the caption.
6804 \begin_layout Standard
6805 This is a reference to Table
6806 \begin_inset space ~
6810 \begin_inset CommandInset ref
6812 reference "tab:RefExample"
6819 \begin_layout Standard
6820 The caption layout can be set together with all other captions of your document
6821 using the LaTeX-package
6826 \begin_inset Index idx
6829 \begin_layout Plain Layout
6830 LaTeX-packages ! caption
6836 \begin_inset space ~
6840 \begin_inset CommandInset ref
6842 reference "sec:Caption-Formatting"
6849 \begin_layout Subsubsection
6851 \begin_inset Index idx
6854 \begin_layout Plain Layout
6855 Longtables ! Caption Width
6863 \begin_layout Standard
6864 The maximal width of of caption lines is defined by the length
6871 Its default value is 4
6872 \begin_inset space \thinspace{}
6876 To change it add the following command to your document preamble or as
6877 TeX-Code into your document before the longtable that should be affected
6880 \begin_layout Standard
6890 \begin_layout Standard
6891 where the width could have one of the units listed in appendix
6892 \begin_inset space ~
6896 \begin_inset CommandInset ref
6898 reference "cha:Units-available-in"
6905 \begin_layout Standard
6906 The following tables show the difference:
6909 \begin_layout Standard
6910 \begin_inset Tabular
6911 <lyxtabular version="3" rows="6" columns="5">
6912 <features islongtable="true" longtabularalignment="center">
6913 <column alignment="center" valignment="top" width="0">
6914 <column alignment="center" valignment="top" width="0">
6915 <column alignment="center" valignment="top" width="0">
6916 <column alignment="center" valignment="top" width="0">
6917 <column alignment="center" valignment="top" width="0">
6918 <row caption="true">
6919 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6922 \begin_layout Plain Layout
6923 \begin_inset Caption
6925 \begin_layout Plain Layout
6926 long full title with default width long full title with default width long
6927 full title with default width
6928 \begin_inset Argument
6931 \begin_layout Plain Layout
6932 caption with default width
6947 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6950 \begin_layout Plain Layout
6956 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6959 \begin_layout Plain Layout
6965 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6968 \begin_layout Plain Layout
6974 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6977 \begin_layout Plain Layout
6985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6988 \begin_layout Plain Layout
6994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6997 \begin_layout Plain Layout
7003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7006 \begin_layout Plain Layout
7012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7015 \begin_layout Plain Layout
7021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7024 \begin_layout Plain Layout
7032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7035 \begin_layout Plain Layout
7041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7044 \begin_layout Plain Layout
7050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7053 \begin_layout Plain Layout
7059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7062 \begin_layout Plain Layout
7068 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7071 \begin_layout Plain Layout
7079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7082 \begin_layout Plain Layout
7088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7091 \begin_layout Plain Layout
7097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7100 \begin_layout Plain Layout
7106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7109 \begin_layout Plain Layout
7115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7118 \begin_layout Plain Layout
7126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7129 \begin_layout Plain Layout
7135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7138 \begin_layout Plain Layout
7144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7147 \begin_layout Plain Layout
7153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7156 \begin_layout Plain Layout
7162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7165 \begin_layout Plain Layout
7173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7176 \begin_layout Plain Layout
7182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7185 \begin_layout Plain Layout
7191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7194 \begin_layout Plain Layout
7200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7203 \begin_layout Plain Layout
7209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7212 \begin_layout Plain Layout
7226 \begin_layout Standard
7230 \begin_layout Plain Layout
7242 \begin_inset Tabular
7243 <lyxtabular version="3" rows="6" columns="5">
7244 <features islongtable="true" longtabularalignment="center">
7245 <column alignment="center" valignment="top" width="0">
7246 <column alignment="center" valignment="top" width="0">
7247 <column alignment="center" valignment="top" width="0">
7248 <column alignment="center" valignment="top" width="0">
7249 <column alignment="center" valignment="top" width="0">
7250 <row caption="true">
7251 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7254 \begin_layout Plain Layout
7255 \begin_inset Caption
7257 \begin_layout Plain Layout
7258 long full title with width set to 5
7259 \begin_inset space \thinspace{}
7262 cm long full title with width set to 5
7263 \begin_inset space \thinspace{}
7266 cm long full title with width set to 5
7267 \begin_inset space \thinspace{}
7271 \begin_inset Argument
7274 \begin_layout Plain Layout
7276 \begin_inset space \thinspace{}
7280 \begin_inset space \thinspace{}
7284 \begin_inset space \thinspace{}
7302 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7305 \begin_layout Plain Layout
7311 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7314 \begin_layout Plain Layout
7320 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7323 \begin_layout Plain Layout
7329 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7332 \begin_layout Plain Layout
7340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7343 \begin_layout Plain Layout
7349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7352 \begin_layout Plain Layout
7358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7361 \begin_layout Plain Layout
7367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7370 \begin_layout Plain Layout
7376 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7379 \begin_layout Plain Layout
7387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7390 \begin_layout Plain Layout
7396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7399 \begin_layout Plain Layout
7405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7408 \begin_layout Plain Layout
7414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7417 \begin_layout Plain Layout
7423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7426 \begin_layout Plain Layout
7434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7437 \begin_layout Plain Layout
7443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7446 \begin_layout Plain Layout
7452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7455 \begin_layout Plain Layout
7461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7464 \begin_layout Plain Layout
7470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7473 \begin_layout Plain Layout
7481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7484 \begin_layout Plain Layout
7490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7493 \begin_layout Plain Layout
7499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7502 \begin_layout Plain Layout
7508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7511 \begin_layout Plain Layout
7517 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7520 \begin_layout Plain Layout
7528 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7531 \begin_layout Plain Layout
7537 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7540 \begin_layout Plain Layout
7546 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7549 \begin_layout Plain Layout
7555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7558 \begin_layout Plain Layout
7564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7567 \begin_layout Plain Layout
7581 \begin_layout Standard
7585 \begin_layout Plain Layout
7599 \begin_layout Standard
7600 \begin_inset Note Greyedout
7603 \begin_layout Plain Layout
7608 When the LaTeX-package
7613 \begin_inset Index idx
7616 \begin_layout Plain Layout
7617 LaTeX-packages ! caption
7622 is used, as in this document, the full page width is used for the caption
7623 when you use the default value of 4
7624 \begin_inset space \thinspace{}
7634 To get in this case exactly a 4
7635 \begin_inset space \thinspace{}
7638 in wide caption, you can either use a value slightly different from 4.0
7639 \begin_inset space \thinspace{}
7643 \begin_inset space \thinspace{}
7647 \begin_inset space \space{}
7651 \begin_inset space \thinspace{}
7654 in, or the LaTeX-command
7658 captionsetup{width=value}
7660 that is provided by the
7672 \begin_layout Subsubsection
7673 Different Captions for Table Pages
7674 \begin_inset Index idx
7677 \begin_layout Plain Layout
7678 Longtables ! Different Captions for Pages
7686 \begin_layout Standard
7687 When the table captions for the following pages should differ from the one
7688 of the first table page, insert a caption with the TeX code command
7691 \begin_layout Standard
7696 caption*{caption text}
7703 \begin_layout Standard
7704 in a dummy caption row that is marked as a header.
7706 \begin_inset space ~
7710 \begin_inset CommandInset ref
7712 reference "tab:DiffCaptions"
7716 is an example of a longtable with different heading where the second caption
7717 doesn't include the table number.
7720 \begin_layout Standard
7722 \begin_inset Tabular
7723 <lyxtabular version="3" rows="59" columns="3">
7724 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7725 <column alignment="left" valignment="top" width="0cm">
7726 <column alignment="left" valignment="top" width="0pt">
7727 <column alignment="center" valignment="top" width="0pt">
7728 <row caption="true">
7729 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7732 \begin_layout Plain Layout
7733 \begin_inset Caption
7735 \begin_layout Plain Layout
7737 \begin_inset CommandInset label
7739 name "tab:DiffCaptions"
7744 \begin_inset Argument
7747 \begin_layout Plain Layout
7763 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7766 \begin_layout Plain Layout
7772 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7775 \begin_layout Plain Layout
7782 <row endfirsthead="true">
7783 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7786 \begin_layout Plain Layout
7789 Example Phone List (ignore the names)
7794 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7797 \begin_layout Plain Layout
7803 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7806 \begin_layout Plain Layout
7813 <row endfirsthead="true">
7814 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7817 \begin_layout Plain Layout
7825 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7828 \begin_layout Plain Layout
7834 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7837 \begin_layout Plain Layout
7846 <row endhead="true">
7847 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7850 \begin_layout Plain Layout
7854 \begin_layout Plain Layout
7858 caption*{Continued Example Phone List}
7872 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7875 \begin_layout Plain Layout
7881 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7884 \begin_layout Plain Layout
7891 <row endhead="true">
7892 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7895 \begin_layout Plain Layout
7903 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7906 \begin_layout Plain Layout
7912 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7915 \begin_layout Plain Layout
7922 <row endhead="true">
7923 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7926 \begin_layout Plain Layout
7934 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7937 \begin_layout Plain Layout
7943 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7946 \begin_layout Plain Layout
7955 <row endfoot="true">
7956 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7959 \begin_layout Plain Layout
7960 continued on next page
7965 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7968 \begin_layout Plain Layout
7974 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7977 \begin_layout Plain Layout
7985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7988 \begin_layout Plain Layout
7996 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7999 \begin_layout Plain Layout
8005 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
8008 \begin_layout Plain Layout
8016 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8019 \begin_layout Plain Layout
8027 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8030 \begin_layout Plain Layout
8036 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8039 \begin_layout Plain Layout
8047 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8050 \begin_layout Plain Layout
8058 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8061 \begin_layout Plain Layout
8067 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8070 \begin_layout Plain Layout
8078 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8081 \begin_layout Plain Layout
8089 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8092 \begin_layout Plain Layout
8098 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8101 \begin_layout Plain Layout
8109 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8112 \begin_layout Plain Layout
8120 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8123 \begin_layout Plain Layout
8129 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8132 \begin_layout Plain Layout
8140 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8143 \begin_layout Plain Layout
8151 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8154 \begin_layout Plain Layout
8160 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8163 \begin_layout Plain Layout
8171 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8174 \begin_layout Plain Layout
8182 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8185 \begin_layout Plain Layout
8191 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8194 \begin_layout Plain Layout
8202 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8205 \begin_layout Plain Layout
8213 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8216 \begin_layout Plain Layout
8222 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8225 \begin_layout Plain Layout
8233 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8236 \begin_layout Plain Layout
8244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8247 \begin_layout Plain Layout
8253 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8256 \begin_layout Plain Layout
8264 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8267 \begin_layout Plain Layout
8275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8278 \begin_layout Plain Layout
8284 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8287 \begin_layout Plain Layout
8295 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8298 \begin_layout Plain Layout
8306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8309 \begin_layout Plain Layout
8315 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8318 \begin_layout Plain Layout
8326 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8329 \begin_layout Plain Layout
8337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8340 \begin_layout Plain Layout
8346 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8349 \begin_layout Plain Layout
8357 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8360 \begin_layout Plain Layout
8368 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8371 \begin_layout Plain Layout
8377 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8380 \begin_layout Plain Layout
8388 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8391 \begin_layout Plain Layout
8399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8402 \begin_layout Plain Layout
8408 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8411 \begin_layout Plain Layout
8419 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8422 \begin_layout Plain Layout
8431 \begin_layout Plain Layout
8442 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8445 \begin_layout Plain Layout
8451 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8454 \begin_layout Plain Layout
8462 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8465 \begin_layout Plain Layout
8473 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8476 \begin_layout Plain Layout
8482 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8485 \begin_layout Plain Layout
8493 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8496 \begin_layout Plain Layout
8504 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8507 \begin_layout Plain Layout
8513 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8516 \begin_layout Plain Layout
8524 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8527 \begin_layout Plain Layout
8535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8538 \begin_layout Plain Layout
8544 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8547 \begin_layout Plain Layout
8555 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8558 \begin_layout Plain Layout
8566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8569 \begin_layout Plain Layout
8575 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8578 \begin_layout Plain Layout
8586 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8589 \begin_layout Plain Layout
8597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8600 \begin_layout Plain Layout
8606 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8609 \begin_layout Plain Layout
8617 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8620 \begin_layout Plain Layout
8628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8631 \begin_layout Plain Layout
8637 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8640 \begin_layout Plain Layout
8648 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8651 \begin_layout Plain Layout
8659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8662 \begin_layout Plain Layout
8668 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8671 \begin_layout Plain Layout
8679 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8682 \begin_layout Plain Layout
8690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8693 \begin_layout Plain Layout
8699 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8702 \begin_layout Plain Layout
8710 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8713 \begin_layout Plain Layout
8721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8724 \begin_layout Plain Layout
8730 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8733 \begin_layout Plain Layout
8741 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8744 \begin_layout Plain Layout
8752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8755 \begin_layout Plain Layout
8761 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8764 \begin_layout Plain Layout
8772 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8775 \begin_layout Plain Layout
8783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8786 \begin_layout Plain Layout
8792 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8795 \begin_layout Plain Layout
8803 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8806 \begin_layout Plain Layout
8814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8817 \begin_layout Plain Layout
8823 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8826 \begin_layout Plain Layout
8834 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8837 \begin_layout Plain Layout
8845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8848 \begin_layout Plain Layout
8854 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8857 \begin_layout Plain Layout
8865 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8868 \begin_layout Plain Layout
8876 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8879 \begin_layout Plain Layout
8885 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8888 \begin_layout Plain Layout
8896 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8899 \begin_layout Plain Layout
8907 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8910 \begin_layout Plain Layout
8916 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8919 \begin_layout Plain Layout
8927 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8930 \begin_layout Plain Layout
8938 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8941 \begin_layout Plain Layout
8947 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8950 \begin_layout Plain Layout
8958 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8961 \begin_layout Plain Layout
8967 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8970 \begin_layout Plain Layout
8976 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8979 \begin_layout Plain Layout
8987 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8990 \begin_layout Plain Layout
8998 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9001 \begin_layout Plain Layout
9007 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9010 \begin_layout Plain Layout
9018 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9021 \begin_layout Plain Layout
9029 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9032 \begin_layout Plain Layout
9038 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9041 \begin_layout Plain Layout
9049 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9052 \begin_layout Plain Layout
9060 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9063 \begin_layout Plain Layout
9069 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9072 \begin_layout Plain Layout
9080 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9083 \begin_layout Plain Layout
9091 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9094 \begin_layout Plain Layout
9100 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9103 \begin_layout Plain Layout
9111 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9114 \begin_layout Plain Layout
9122 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9125 \begin_layout Plain Layout
9131 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9134 \begin_layout Plain Layout
9142 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9145 \begin_layout Plain Layout
9153 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9156 \begin_layout Plain Layout
9162 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9165 \begin_layout Plain Layout
9173 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9176 \begin_layout Plain Layout
9184 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9187 \begin_layout Plain Layout
9193 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9196 \begin_layout Plain Layout
9204 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9207 \begin_layout Plain Layout
9215 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9218 \begin_layout Plain Layout
9224 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9227 \begin_layout Plain Layout
9235 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9238 \begin_layout Plain Layout
9246 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9249 \begin_layout Plain Layout
9255 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9258 \begin_layout Plain Layout
9266 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9269 \begin_layout Plain Layout
9277 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9280 \begin_layout Plain Layout
9286 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9289 \begin_layout Plain Layout
9297 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9300 \begin_layout Plain Layout
9308 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9311 \begin_layout Plain Layout
9317 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9320 \begin_layout Plain Layout
9328 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9331 \begin_layout Plain Layout
9339 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9342 \begin_layout Plain Layout
9348 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9351 \begin_layout Plain Layout
9359 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9362 \begin_layout Plain Layout
9370 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9373 \begin_layout Plain Layout
9379 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9382 \begin_layout Plain Layout
9390 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9393 \begin_layout Plain Layout
9401 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9404 \begin_layout Plain Layout
9410 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9413 \begin_layout Plain Layout
9421 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9424 \begin_layout Plain Layout
9432 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9435 \begin_layout Plain Layout
9441 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9444 \begin_layout Plain Layout
9452 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9455 \begin_layout Plain Layout
9463 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9466 \begin_layout Plain Layout
9472 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9475 \begin_layout Plain Layout
9483 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9486 \begin_layout Plain Layout
9494 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9497 \begin_layout Plain Layout
9503 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9506 \begin_layout Plain Layout
9514 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9517 \begin_layout Plain Layout
9525 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9528 \begin_layout Plain Layout
9534 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9537 \begin_layout Plain Layout
9545 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9548 \begin_layout Plain Layout
9556 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9559 \begin_layout Plain Layout
9565 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9568 \begin_layout Plain Layout
9576 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9579 \begin_layout Plain Layout
9587 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9590 \begin_layout Plain Layout
9596 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9599 \begin_layout Plain Layout
9613 \begin_layout Section
9614 Special Longtable Issues
9615 \begin_inset CommandInset label
9617 name "sec:Special-Longtable-Issues"
9624 \begin_layout Subsection
9625 Longtable Calculation
9626 \begin_inset Index idx
9629 \begin_layout Plain Layout
9630 Longtables ! Calculation
9638 \begin_layout Standard
9639 LaTeX calculates the height of table pages and their page breaks using so
9641 Chunks are parts of tables that held at the same time in LaTeX's memory.
9642 The default value was historically set to only 20 table rows.
9643 If you are using longtables with many pages this may slow down the creation
9645 You can safely increase the chunk size to values of 100-1000 by adding
9646 this command line to your document preamble:
9649 \begin_layout Standard
9654 setcounter{LTchunksize}{100}
9657 \begin_layout Subsection
9658 Floats and Longtables
9659 \begin_inset Index idx
9662 \begin_layout Plain Layout
9671 \begin_layout Standard
9672 There might be problems when a float appears on the same page where a longtable
9674 To avoid such a situation, insert a
9675 \begin_inset Quotes eld
9679 \begin_inset Quotes erd
9684 Insert\SpecialChar \menuseparator
9685 Formatting\SpecialChar \menuseparator
9687 \begin_inset space ~
9692 ) before your longtable.
9695 \begin_layout Subsection
9697 \begin_inset Index idx
9700 \begin_layout Plain Layout
9701 Longtables ! Forced Page Breaks
9709 \begin_layout Standard
9710 By default tables are only broken between rows.
9711 If you have a cell with multiples lines and want to have a page break within
9712 the cell, insert the new line command
9713 \begin_inset Quotes eld
9725 \begin_inset Quotes erd
9728 as TeX-Code at the point of the cell where it can be broken.
9737 command you have to insert in TeX-Code as many
9738 \begin_inset Quotes eld
9746 \begin_inset Quotes erd
9749 characters as the number of the following table columns.
9754 is the character to separate table cells.
9755 Write in TeX-Code after each
9759 the content of the corresponding following cell and delete the content
9761 \begin_inset Newline newline
9772 command, insert as many
9776 characters as the number of table columns before the current column.
9778 \begin_inset space ~
9782 \begin_inset CommandInset ref
9784 reference "tab:ForcedPagebreak"
9788 the cell that should be broken is in the second column followed by another
9790 Therefore the following command was inserted in the cell as TeX-Code after
9792 \begin_inset Quotes eld
9800 \begin_inset Quotes erd
9806 \begin_layout Standard
9816 \begin_inset Newline newline
9822 \begin_layout Standard
9824 \begin_inset Quotes eld
9828 \begin_inset Quotes erd
9831 in the third column of the row was deleted.
9838 is only needed when a page break should definitely occur at this position,
9839 otherwise it would be a conditional break.
9840 If your footer row of the longtable has for a certain reason no upper line
9841 but you would have a horizontal line where the cell is broken, use this
9845 \begin_layout Standard
9853 \begin_inset Newline newline
9861 \begin_layout Standard
9862 When the cell to be broken is in the last column, the command
9865 \begin_layout Standard
9875 \begin_layout Standard
9876 must be inserted as TeX-Code at the beginning of the cell.
9877 This ensures that the part of the cell that will be displayed on the new
9878 page appears with the full width.
9881 \begin_layout Standard
9883 \begin_inset Tabular
9884 <lyxtabular version="3" rows="38" columns="3">
9885 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9886 <column alignment="left" valignment="top" width="0cm">
9887 <column alignment="left" valignment="top" width="3cm">
9888 <column alignment="center" valignment="top" width="0pt">
9889 <row caption="true">
9890 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9893 \begin_layout Plain Layout
9894 \begin_inset Caption
9896 \begin_layout Plain Layout
9897 Table with forced page break in table cell
9898 \begin_inset CommandInset label
9900 name "tab:ForcedPagebreak"
9905 \begin_inset Argument
9908 \begin_layout Plain Layout
9909 Table with forced page break in table cell
9924 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9927 \begin_layout Plain Layout
9933 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9936 \begin_layout Plain Layout
9943 <row endfirsthead="true">
9944 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9947 \begin_layout Plain Layout
9950 Example Phone List (ignore the names)
9955 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9958 \begin_layout Plain Layout
9964 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9967 \begin_layout Plain Layout
9974 <row endfirsthead="true">
9975 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9978 \begin_layout Plain Layout
9986 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9989 \begin_layout Plain Layout
9995 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9998 \begin_layout Plain Layout
10007 <row endhead="true">
10008 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10011 \begin_layout Plain Layout
10015 \begin_layout Plain Layout
10019 caption*{Continued Example Phone List}
10033 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10036 \begin_layout Plain Layout
10042 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10045 \begin_layout Plain Layout
10052 <row endhead="true">
10053 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10056 \begin_layout Plain Layout
10064 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10067 \begin_layout Plain Layout
10073 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10076 \begin_layout Plain Layout
10083 <row endhead="true">
10084 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10087 \begin_layout Plain Layout
10095 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10098 \begin_layout Plain Layout
10104 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10107 \begin_layout Plain Layout
10116 <row endfoot="true">
10117 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10120 \begin_layout Plain Layout
10121 continued on next page
10126 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10129 \begin_layout Plain Layout
10135 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10138 \begin_layout Plain Layout
10146 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10149 \begin_layout Plain Layout
10157 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10160 \begin_layout Plain Layout
10166 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10169 \begin_layout Plain Layout
10177 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10180 \begin_layout Plain Layout
10188 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10191 \begin_layout Plain Layout
10197 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10200 \begin_layout Plain Layout
10208 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10211 \begin_layout Plain Layout
10219 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10222 \begin_layout Plain Layout
10228 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10231 \begin_layout Plain Layout
10239 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10242 \begin_layout Plain Layout
10250 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10253 \begin_layout Plain Layout
10259 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10262 \begin_layout Plain Layout
10270 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10273 \begin_layout Plain Layout
10281 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10284 \begin_layout Plain Layout
10290 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10293 \begin_layout Plain Layout
10301 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10304 \begin_layout Plain Layout
10312 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10315 \begin_layout Plain Layout
10321 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10324 \begin_layout Plain Layout
10332 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10335 \begin_layout Plain Layout
10343 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10346 \begin_layout Plain Layout
10352 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10355 \begin_layout Plain Layout
10363 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10366 \begin_layout Plain Layout
10374 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10377 \begin_layout Plain Layout
10383 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10386 \begin_layout Plain Layout
10394 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10397 \begin_layout Plain Layout
10405 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10408 \begin_layout Plain Layout
10414 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10417 \begin_layout Plain Layout
10425 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10428 \begin_layout Plain Layout
10436 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10439 \begin_layout Plain Layout
10445 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10448 \begin_layout Plain Layout
10456 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10459 \begin_layout Plain Layout
10467 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10470 \begin_layout Plain Layout
10476 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10479 \begin_layout Plain Layout
10487 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10490 \begin_layout Plain Layout
10498 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10501 \begin_layout Plain Layout
10507 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10510 \begin_layout Plain Layout
10518 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10521 \begin_layout Plain Layout
10529 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10532 \begin_layout Plain Layout
10538 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10541 \begin_layout Plain Layout
10549 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10552 \begin_layout Plain Layout
10560 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10563 \begin_layout Plain Layout
10569 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10572 \begin_layout Plain Layout
10580 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10583 \begin_layout Plain Layout
10591 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10594 \begin_layout Plain Layout
10600 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10603 \begin_layout Plain Layout
10611 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10614 \begin_layout Plain Layout
10622 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10625 \begin_layout Plain Layout
10631 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10634 \begin_layout Plain Layout
10642 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10645 \begin_layout Plain Layout
10653 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10656 \begin_layout Plain Layout
10662 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10665 \begin_layout Plain Layout
10673 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10676 \begin_layout Plain Layout
10684 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10687 \begin_layout Plain Layout
10693 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10696 \begin_layout Plain Layout
10704 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10707 \begin_layout Plain Layout
10715 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10718 \begin_layout Plain Layout
10724 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10727 \begin_layout Plain Layout
10735 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10738 \begin_layout Plain Layout
10746 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10749 \begin_layout Plain Layout
10755 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10758 \begin_layout Plain Layout
10766 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10769 \begin_layout Plain Layout
10777 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10780 \begin_layout Plain Layout
10786 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10789 \begin_layout Plain Layout
10797 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10800 \begin_layout Plain Layout
10808 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10811 \begin_layout Plain Layout
10817 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10820 \begin_layout Plain Layout
10828 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10831 \begin_layout Plain Layout
10839 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10842 \begin_layout Plain Layout
10844 Fürst von Montecompatri, 11.
10845 Fürst von Sulmona und Vivaro, 10.
10846 Fürst von Rossano, 5.
10847 Herzog von Canemorte, 11.
10848 Herzog von Palombara, 5.
10849 Herzog von Castelchiodato,
10853 \begin_layout Plain Layout
10864 \begin_layout Plain Layout
10872 Herzog von Poggionativo, 11.
10873 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10874 Graf von Valinfreda, 11.
10875 Baron von Cropalati, 11.
10876 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10881 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10884 \begin_layout Plain Layout
10892 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10895 \begin_layout Plain Layout
10903 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10906 \begin_layout Plain Layout
10912 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10915 \begin_layout Plain Layout
10923 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10926 \begin_layout Plain Layout
10934 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10937 \begin_layout Plain Layout
10943 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10946 \begin_layout Plain Layout
10954 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10957 \begin_layout Plain Layout
10965 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10968 \begin_layout Plain Layout
10974 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10977 \begin_layout Plain Layout
10985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10988 \begin_layout Plain Layout
10996 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10999 \begin_layout Plain Layout
11005 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11008 \begin_layout Plain Layout
11016 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11019 \begin_layout Plain Layout
11027 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11030 \begin_layout Plain Layout
11036 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11039 \begin_layout Plain Layout
11047 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11050 \begin_layout Plain Layout
11058 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11061 \begin_layout Plain Layout
11067 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11070 \begin_layout Plain Layout
11078 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11081 \begin_layout Plain Layout
11089 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11092 \begin_layout Plain Layout
11098 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11101 \begin_layout Plain Layout
11109 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11112 \begin_layout Plain Layout
11120 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11123 \begin_layout Plain Layout
11129 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11132 \begin_layout Plain Layout
11146 \begin_layout Section
11147 Multiple Lines Columns and Rows
11150 \begin_layout Subsection
11151 Multiple Lines in Table Cells
11152 \begin_inset CommandInset label
11154 name "sub:Multiple-Lines-in"
11159 \begin_inset Index idx
11162 \begin_layout Plain Layout
11163 Multiple Lines in Table Cells
11169 \begin_inset Index idx
11172 \begin_layout Plain Layout
11181 \begin_layout Standard
11183 \begin_inset Float table
11189 \begin_layout Plain Layout
11190 \begin_inset Caption
11192 \begin_layout Plain Layout
11193 \begin_inset CommandInset label
11195 name "tab:Table-with-multiple"
11199 Table with multiple lines in cells
11207 \begin_layout Plain Layout
11209 \begin_inset Tabular
11210 <lyxtabular version="3" rows="3" columns="3">
11211 <features tabularvalignment="middle">
11212 <column alignment="center" valignment="middle" width="2.5cm">
11213 <column alignment="center" valignment="middle" width="0">
11214 <column alignment="center" valignment="middle" width="0">
11216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11219 \begin_layout Plain Layout
11221 \begin_inset Newline linebreak
11229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11232 \begin_layout Plain Layout
11238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11241 \begin_layout Plain Layout
11249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11252 \begin_layout Plain Layout
11258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11261 \begin_layout Plain Layout
11267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11270 \begin_layout Plain Layout
11278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11281 \begin_layout Plain Layout
11287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11290 \begin_layout Plain Layout
11296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11299 \begin_layout Plain Layout
11318 \begin_layout Standard
11319 Setting a fixed width for a column enables you to enter text as a paragraph
11320 with multiple lines and hyphenation.
11323 \begin_layout Standard
11325 \begin_inset space ~
11329 \begin_inset CommandInset ref
11331 reference "tab:Table-with-multiple"
11335 , create a 3×3 table, mark the first cell and right-click on it.
11336 In the appearing table dialog we set a cell width of 2.5
11337 \begin_inset space \thinspace{}
11340 cm and choose centered for the vertical and horizontal alignment.
11341 The vertical alignment is used for all cells of the row.
11342 As our text is smaller than 2.5
11343 \begin_inset space \thinspace{}
11346 cm, only one line will appear.
11347 To get two lines, a justified line break (shortcut
11350 arg "newline-insert linebreak"
11354 If the text is wider than the set cell width, it will automatically be
11355 broken to several lines.
11358 \begin_layout Standard
11359 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11360 by LaTeX if it is the first entry.
11361 Therefore you need to insert something to prevent the word not being the
11363 So add a horizontal space of 0
11364 \begin_inset space \thinspace{}
11367 pt before the word.
11368 As the space is zero, it doesn't change the output.
11370 \begin_inset space ~
11374 \begin_inset CommandInset ref
11376 reference "tab:Table-with-and"
11383 \begin_layout Standard
11384 \begin_inset Float table
11390 \begin_layout Plain Layout
11391 \begin_inset Caption
11393 \begin_layout Plain Layout
11394 \begin_inset CommandInset label
11396 name "tab:Table-with-and"
11400 Table with and without hyphenation
11408 \begin_layout Plain Layout
11409 \begin_inset space \hfill{}
11413 \begin_inset Tabular
11414 <lyxtabular version="3" rows="3" columns="3">
11415 <features tabularvalignment="middle">
11416 <column alignment="center" valignment="middle" width="2.5cm">
11417 <column alignment="center" valignment="middle" width="0">
11418 <column alignment="center" valignment="middle" width="0">
11420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11423 \begin_layout Plain Layout
11424 verylongtablecellword
11429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11432 \begin_layout Plain Layout
11438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11441 \begin_layout Plain Layout
11449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11452 \begin_layout Plain Layout
11458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11461 \begin_layout Plain Layout
11467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11470 \begin_layout Plain Layout
11478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11481 \begin_layout Plain Layout
11487 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11490 \begin_layout Plain Layout
11496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11499 \begin_layout Plain Layout
11511 \begin_inset space \hfill{}
11515 \begin_inset Tabular
11516 <lyxtabular version="3" rows="3" columns="3">
11517 <features tabularvalignment="middle">
11518 <column alignment="center" valignment="middle" width="2.5cm">
11519 <column alignment="center" valignment="middle" width="0">
11520 <column alignment="center" valignment="middle" width="0">
11522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11525 \begin_layout Plain Layout
11526 \begin_inset space \hspace{}
11530 verylongtablecellword
11535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11538 \begin_layout Plain Layout
11544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11547 \begin_layout Plain Layout
11555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11558 \begin_layout Plain Layout
11564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11567 \begin_layout Plain Layout
11573 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11576 \begin_layout Plain Layout
11584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11587 \begin_layout Plain Layout
11593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11596 \begin_layout Plain Layout
11602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11605 \begin_layout Plain Layout
11617 \begin_inset space \hfill{}
11628 \begin_layout Subsection
11630 \begin_inset CommandInset label
11632 name "sub:Multicolumns"
11637 \begin_inset Index idx
11640 \begin_layout Plain Layout
11647 \begin_inset Index idx
11650 \begin_layout Plain Layout
11651 Table ! Multicolumns
11659 \begin_layout Subsubsection
11663 \begin_layout Standard
11664 To merge cells over multiple columns, select as many cells within a row
11665 as you want to merge and use either the table-toolbar button
11666 \begin_inset Graphics
11667 filename ../images/tabular-feature_multicolumn.png
11669 scaleBeforeRotation
11675 Edit\SpecialChar \menuseparator
11676 Table\SpecialChar \menuseparator
11679 , or right click on the marked cells and choose
11683 in the context menu.
11686 \begin_layout Standard
11687 Multicolumns have there own cell settings.
11688 That means changing cell borders, cell alignment, and the width only affects
11690 Here is an example table with a multicolumn cell in the first row and one
11691 in the last row without the upper border:
11694 \begin_layout Standard
11696 \begin_inset Tabular
11697 <lyxtabular version="3" rows="3" columns="4">
11698 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11699 <column alignment="center" valignment="top" width="0pt">
11700 <column alignment="center" valignment="middle" width="0">
11701 <column alignment="center" valignment="top" width="0in">
11702 <column alignment="center" valignment="top" width="0pt">
11704 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11707 \begin_layout Plain Layout
11713 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11716 \begin_layout Plain Layout
11722 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11725 \begin_layout Plain Layout
11731 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11734 \begin_layout Plain Layout
11742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11745 \begin_layout Plain Layout
11760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11763 \begin_layout Plain Layout
11769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11772 \begin_layout Plain Layout
11778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11781 \begin_layout Plain Layout
11789 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11792 \begin_layout Plain Layout
11798 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11801 \begin_layout Plain Layout
11807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11810 \begin_layout Plain Layout
11816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11819 \begin_layout Plain Layout
11833 \begin_layout Subsubsection
11834 Multicolumn Calculations
11835 \begin_inset CommandInset label
11837 name "sub:Multicolumn-Calculations"
11842 \begin_inset Index idx
11845 \begin_layout Plain Layout
11846 Multicolumns ! Calculations
11854 \begin_layout Standard
11855 LyX supports multicolumns directly, but we have to take account of the cell
11856 width of the columns spanned by the multicolumn cell.
11859 \begin_layout Standard
11860 \begin_inset Float table
11866 \begin_layout Plain Layout
11867 \begin_inset Caption
11869 \begin_layout Plain Layout
11870 \begin_inset CommandInset label
11872 name "tab:Table-with-centered"
11876 Table with centered multicolumn text above two columns that have exactly
11877 half the width of the multicolumn cell
11878 \begin_inset Argument
11881 \begin_layout Plain Layout
11882 Perfect multicolumn table
11895 \begin_layout Plain Layout
11897 \begin_inset Tabular
11898 <lyxtabular version="3" rows="3" columns="3">
11899 <features tabularvalignment="middle">
11900 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11901 <column alignment="center" valignment="middle" width="0">
11902 <column alignment="center" valignment="top" width="0">
11904 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11907 \begin_layout Plain Layout
11908 multiple lines multicolumn
11913 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11916 \begin_layout Plain Layout
11922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11925 \begin_layout Plain Layout
11933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11936 \begin_layout Plain Layout
11942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11945 \begin_layout Plain Layout
11951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11954 \begin_layout Plain Layout
11962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11965 \begin_layout Plain Layout
11971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11974 \begin_layout Plain Layout
11980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11983 \begin_layout Plain Layout
12002 \begin_layout Standard
12003 To create for example Table
12004 \begin_inset space ~
12008 \begin_inset CommandInset ref
12010 reference "tab:Table-with-centered"
12014 , mark the first two cells in the first row of a 3×3 table and right-click
12016 Now choose for this cell
12025 \begin_inset space \thinspace{}
12028 cm in the table dialog.
12029 The merged columns should have exactly half the width of the multicolumn
12030 cell, so that you would set a width of 1.25
12031 \begin_inset space \thinspace{}
12034 cm for the first column.
12035 The second column has then automatically a width of 1.25
12036 \begin_inset space \thinspace{}
12039 cm (multicolumn width - width of first column).
12040 This was done for Table
12041 \begin_inset space ~
12045 \begin_inset CommandInset ref
12047 reference "tab:Table-without-half"
12054 \begin_layout Standard
12055 \begin_inset Float table
12060 \begin_layout Plain Layout
12061 \begin_inset Caption
12063 \begin_layout Plain Layout
12064 \begin_inset CommandInset label
12066 name "tab:Table-without-half"
12070 Table where the spanned table columns are not exactly half the width of
12071 the multicolumn cell
12072 \begin_inset Argument
12075 \begin_layout Plain Layout
12076 Imperfect multicolumn table
12089 \begin_layout Plain Layout
12091 \begin_inset Tabular
12092 <lyxtabular version="3" rows="3" columns="3">
12093 <features tabularvalignment="middle">
12094 <column alignment="center" valignment="top" width="1.25cm">
12095 <column alignment="center" valignment="top" width="0">
12096 <column alignment="center" valignment="top" width="0">
12098 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12101 \begin_layout Plain Layout
12102 multiple lines multicolumn
12107 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12110 \begin_layout Plain Layout
12116 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12119 \begin_layout Plain Layout
12127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12130 \begin_layout Plain Layout
12136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12139 \begin_layout Plain Layout
12145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12148 \begin_layout Plain Layout
12156 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12159 \begin_layout Plain Layout
12165 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12168 \begin_layout Plain Layout
12174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12177 \begin_layout Plain Layout
12196 \begin_layout Standard
12197 You can see that the first column is not half the width of the multicolumn
12198 cell, it is a bit bigger.
12199 The reason is that the specified width of a cell
12200 \begin_inset Formula $W_{g}$
12203 is not its total width
12204 \begin_inset Formula $W_{\mathrm{tot}}$
12207 because a cell is always a bit larger than specified.
12209 \begin_inset space ~
12213 \begin_inset CommandInset ref
12215 reference "cha:Explanation-of-Equation"
12219 explains this in detail.
12222 \begin_layout Standard
12224 \begin_inset Formula $W_{g\, n}$
12227 which the user needs to set when
12231 columns are spanned can be calculated, so that each column has a total
12233 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12237 \begin_inset Formula \begin{equation}
12238 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12246 \begin_layout Standard
12247 In our case we have
12248 \begin_inset Formula $n=2$
12252 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12255 cm and the default values for the lengths, so that equation
12256 \begin_inset CommandInset ref
12263 \begin_inset Formula \begin{equation}
12264 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12272 \begin_layout Standard
12273 To enable calculations in LaTeX, the LaTeX-package
12277 must be loaded with the document preamble line
12278 \begin_inset Index idx
12281 \begin_layout Plain Layout
12282 LaTeX-packages ! calc
12290 \begin_layout Standard
12298 \begin_layout Standard
12299 LyX does not allow you to calculate lengths in the
12303 field of the table dialog.
12304 Therefore you have to format the column by inserting a LaTeX-argument in
12306 Here is an overview about the arguments:
12309 \begin_layout Itemize
12314 creates cell with a fixed width, its text is vertically top-aligned
12317 \begin_layout Itemize
12322 creates cell with a fixed width, its text is vertically centered
12325 \begin_layout Itemize
12330 creates cell with a fixed width, its text is vertically bottom-aligned
12333 \begin_layout Standard
12334 By entering a LaTeX-argument, all cell settings set in the table dialog
12338 \begin_layout Standard
12339 \begin_inset Note Greyedout
12342 \begin_layout Plain Layout
12347 Due to a bug, LyX shows the overwritten settings anyway.
12355 \begin_layout Standard
12356 As the text should be horizontally centered, the command
12363 You can now enter the following LaTeX-argument for the first spanned column:
12366 \begin_layout Standard
12371 centering}m{1.25cm-6.2pt}
12374 \begin_layout Standard
12379 means, that the commands inside the braces are applied before the cell
12383 \begin_layout Standard
12384 Although we have chosen centered alignment for the text of the multicolumn
12385 cell, it is still left aligned.
12386 This is because LyX only applies the alignment to single columns.
12387 So for the multicolumn cell we have to use the LaTeX-argument
12390 \begin_layout Standard
12398 \begin_layout Subsection
12400 \begin_inset CommandInset label
12402 name "sub:Multirows"
12407 \begin_inset Index idx
12410 \begin_layout Plain Layout
12417 \begin_inset Index idx
12420 \begin_layout Plain Layout
12429 \begin_layout Standard
12430 To merge cells over multiple rows, select as many cells within a column
12431 as you want to merge and use either the table-toolbar button
12432 \begin_inset Graphics
12433 filename ../images/tabular-feature_multirow.png
12435 scaleBeforeRotation
12441 Edit\SpecialChar \menuseparator
12442 Table\SpecialChar \menuseparator
12445 , or right click on the marked cells and choose
12449 in the context menu.
12452 \begin_layout Standard
12453 Here is an example table with a multirow in the first column:
12456 \begin_layout Standard
12458 \begin_inset Tabular
12459 <lyxtabular version="3" rows="3" columns="3">
12460 <features tabularvalignment="middle">
12461 <column alignment="center" valignment="top" width="0pt">
12462 <column alignment="center" valignment="top" width="0">
12463 <column alignment="center" valignment="top" width="0">
12465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12468 \begin_layout Plain Layout
12474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12477 \begin_layout Plain Layout
12483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12486 \begin_layout Plain Layout
12494 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12497 \begin_layout Plain Layout
12503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12506 \begin_layout Plain Layout
12512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12515 \begin_layout Plain Layout
12523 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12526 \begin_layout Plain Layout
12532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12535 \begin_layout Plain Layout
12541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12544 \begin_layout Plain Layout
12558 \begin_layout Standard
12559 The width of multirow cells is set by setting the width and alignment for
12565 shifts the content of the multirow up/down if the offset is positive/negative.
12568 \begin_layout Standard
12569 If the column of a multirow cell has no explicit width, the multirow cell
12570 inherits the alignment of the column.
12571 Otherwise it is by default left-aligned.
12572 To override the default, renew the command
12581 \begin_layout Standard
12593 \begin_layout Standard
12594 in the document preamble.
12595 Then all entries of multirow cells in the document are centered.
12596 If centering is only needed for several tables, you can renew the command
12597 in a TeX-Code box just before the table instead of the preamble.
12598 If the text should be right-aligned, replace
12611 To return to left-alignment
12620 \begin_layout Standard
12621 This is an example table with a right-aligned multirow cell that has a vertical
12623 \begin_inset space \thinspace{}
12627 \begin_inset space \thinspace{}
12633 \begin_layout Standard
12639 \begin_layout Plain Layout
12653 \begin_inset Tabular
12654 <lyxtabular version="3" rows="4" columns="3">
12655 <features tabularvalignment="middle">
12656 <column alignment="center" valignment="top" width="3cm">
12657 <column alignment="center" valignment="top" width="0">
12658 <column alignment="center" valignment="top" width="0">
12660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12663 \begin_layout Plain Layout
12669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12672 \begin_layout Plain Layout
12678 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12681 \begin_layout Plain Layout
12689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12692 \begin_layout Plain Layout
12698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12701 \begin_layout Plain Layout
12707 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12710 \begin_layout Plain Layout
12718 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12721 \begin_layout Plain Layout
12727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12730 \begin_layout Plain Layout
12736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12739 \begin_layout Plain Layout
12747 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12750 \begin_layout Plain Layout
12756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12759 \begin_layout Plain Layout
12765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12768 \begin_layout Plain Layout
12783 \begin_layout Plain Layout
12799 \begin_layout Section
12801 \begin_inset CommandInset label
12803 name "sec:Formal-Tables"
12808 \begin_inset Index idx
12811 \begin_layout Plain Layout
12820 \begin_layout Standard
12821 Tables are often typeset in books similar to Table
12822 \begin_inset space ~
12826 \begin_inset CommandInset ref
12828 reference "tab:Example-booktabs-table"
12833 This kind of tables is called
12834 \begin_inset Quotes eld
12842 \begin_inset Quotes erd
12846 To make a table a formal table use the option
12854 tab of the table dialog.
12857 \begin_layout Standard
12858 \begin_inset Float table
12864 \begin_layout Plain Layout
12865 \begin_inset Caption
12867 \begin_layout Plain Layout
12868 \begin_inset CommandInset label
12870 name "tab:Example-booktabs-table"
12874 Example booktabs-table
12882 \begin_layout Plain Layout
12884 \begin_inset Tabular
12885 <lyxtabular version="3" rows="8" columns="4">
12886 <features booktabs="true" tabularvalignment="middle">
12887 <column alignment="center" valignment="top" width="0">
12888 <column alignment="center" valignment="top" width="0">
12889 <column alignment="center" valignment="top" width="0">
12890 <column alignment="center" valignment="top" width="0">
12892 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12895 \begin_layout Plain Layout
12901 <cell alignment="center" valignment="top" topline="true" usebox="none">
12904 \begin_layout Plain Layout
12906 \begin_inset space \thinspace{}
12914 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
12917 \begin_layout Plain Layout
12919 \begin_inset space \thinspace{}
12927 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12930 \begin_layout Plain Layout
12938 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12941 \begin_layout Plain Layout
12945 \begin_layout Plain Layout
12958 \begin_layout Plain Layout
12967 Detector thickness in µm
12972 <cell alignment="center" valignment="top" usebox="none">
12975 \begin_layout Plain Layout
12981 <cell alignment="center" valignment="top" usebox="none">
12984 \begin_layout Plain Layout
12990 <cell alignment="center" valignment="top" usebox="none">
12993 \begin_layout Plain Layout
13001 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13004 \begin_layout Plain Layout
13010 <cell alignment="center" valignment="top" topline="true" usebox="none">
13013 \begin_layout Plain Layout
13019 <cell alignment="center" valignment="top" topline="true" usebox="none">
13022 \begin_layout Plain Layout
13028 <cell alignment="center" valignment="top" topline="true" usebox="none">
13031 \begin_layout Plain Layout
13038 <row topspace="default">
13039 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13042 \begin_layout Plain Layout
13043 Spatial resolution in µm
13048 <cell alignment="center" valignment="top" usebox="none">
13051 \begin_layout Plain Layout
13057 <cell alignment="center" valignment="top" usebox="none">
13060 \begin_layout Plain Layout
13066 <cell alignment="center" valignment="top" usebox="none">
13069 \begin_layout Plain Layout
13076 <row topspace="default">
13077 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13080 \begin_layout Plain Layout
13082 \begin_inset Formula $f_{\mathrm{max}}$
13090 <cell alignment="center" valignment="top" usebox="none">
13093 \begin_layout Plain Layout
13099 <cell alignment="center" valignment="top" usebox="none">
13102 \begin_layout Plain Layout
13108 <cell alignment="center" valignment="top" usebox="none">
13111 \begin_layout Plain Layout
13118 <row topspace="default">
13119 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13122 \begin_layout Plain Layout
13126 \begin_layout Plain Layout
13130 cmidrule(l{10pt}){1-1}
13135 LSF-spatial resolution
13140 <cell alignment="center" valignment="top" usebox="none">
13143 \begin_layout Plain Layout
13149 <cell alignment="center" valignment="top" usebox="none">
13152 \begin_layout Plain Layout
13158 <cell alignment="center" valignment="top" usebox="none">
13161 \begin_layout Plain Layout
13169 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13172 \begin_layout Plain Layout
13178 <cell alignment="center" valignment="top" usebox="none">
13181 \begin_layout Plain Layout
13187 <cell alignment="center" valignment="top" usebox="none">
13190 \begin_layout Plain Layout
13196 <cell alignment="center" valignment="top" usebox="none">
13199 \begin_layout Plain Layout
13207 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
13210 \begin_layout Plain Layout
13216 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13219 \begin_layout Plain Layout
13225 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13228 \begin_layout Plain Layout
13234 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13237 \begin_layout Plain Layout
13256 \begin_layout Standard
13257 Spaces to table rows can be added using the
13261 tab of the table dialog as described in section
13262 \begin_inset space ~
13266 \begin_inset CommandInset ref
13268 reference "sub:Row-Spacing"
13275 \begin_layout Standard
13276 Unlike normal tables, formal tables have no vertical table lines.
13277 The horizontal table lines can be set as for normal tables but they appear
13278 with different widths in the output:
13279 \begin_inset Newline newline
13282 The first and the last table line have a default width of 0.08
13283 \begin_inset space \thinspace{}
13286 em while the other lines have a default width of 0.05
13287 \begin_inset space \thinspace{}
13293 \begin_layout Standard
13294 The default widths can be changed with the following preamble lines
13297 \begin_layout Standard
13307 \begin_inset Newline newline
13319 \begin_layout Standard
13320 This example is for the first line, the so called
13325 If you want to change the width for the last line, replace
13334 To change the width for the other lines replace
13343 You can use all units listed in appendix
13344 \begin_inset space ~
13348 \begin_inset CommandInset ref
13350 reference "cha:Units-available-in"
13357 \begin_layout Standard
13358 Lines that do not span all table columns can be created by setting a table
13359 line for multicolumn cells.
13360 LyX will then internally use the command
13366 to create this line.
13370 \begin_layout Standard
13375 cmidrule[width](trim){startcol-endcol}
13378 \begin_layout Standard
13385 are currently not supported by LyX so you have to use TeX-Code to be able
13393 s can manually be created by inserting the command as TeX-Code as the first
13394 cell entry of the first cell of a row.
13395 The line is then drawn in the output above the current row.
13398 \begin_layout Standard
13399 The default for the width is 0.03
13400 \begin_inset space \thinspace{}
13404 Startcol is the number of the column where the line starts and endcol the
13405 column number where the line ends.
13406 The endcol always needs to be specified, also when the line should span
13408 The optional parameter trim could be either
13416 where the trimwidth is also optional.
13417 Using for example the parameter
13421 means that the line is trimmed from its left end by 2
13422 \begin_inset space \thinspace{}
13426 If you don't specify the trimwidth the lines are trimmed by the default
13428 \begin_inset space \thinspace{}
13434 \begin_layout Standard
13435 \begin_inset VSpace bigskip
13439 \begin_inset space ~
13443 \begin_inset CommandInset ref
13445 reference "tab:Example-booktabs-table"
13449 was created using the commands
13452 \begin_layout Standard
13462 \begin_layout Standard
13463 at the beginning of the second row and
13466 \begin_layout Standard
13471 cmidrule(l{10pt}){1-1}
13474 \begin_layout Standard
13478 \begin_layout Standard
13479 \begin_inset VSpace bigskip
13485 \begin_layout Standard
13486 You might want to have overlapping
13493 \begin_inset space ~
13497 \begin_inset CommandInset ref
13499 reference "tab:Special-booktabs-table"
13504 This can be achieved with the TeX-Code command
13507 \begin_layout Standard
13515 \begin_layout Standard
13516 The command that was used for the second row of Table
13517 \begin_inset space ~
13521 \begin_inset CommandInset ref
13523 reference "tab:Special-booktabs-table"
13530 \begin_layout Standard
13544 \begin_layout Standard
13545 The command for the sixth row is
13548 \begin_layout Standard
13560 \begin_layout Standard
13561 \begin_inset VSpace bigskip
13567 \begin_layout Standard
13568 If you are anyway not satisfied with the border line spacing, you can use
13569 the following command to produce lines that span over all table columns
13574 \begin_layout Standard
13579 specialrule{width}{space above}{space below}
13582 \begin_layout Standard
13583 For more information about these features, refer to the manual of the LaTeX-pack
13589 \begin_inset CommandInset citation
13596 \begin_inset Index idx
13599 \begin_layout Plain Layout
13600 LaTeX-packages ! booktabs
13608 \begin_layout Standard
13609 \begin_inset Float table
13615 \begin_layout Plain Layout
13616 \begin_inset Caption
13618 \begin_layout Plain Layout
13619 \begin_inset CommandInset label
13621 name "tab:Special-booktabs-table"
13625 Special booktabs-table
13633 \begin_layout Plain Layout
13635 \begin_inset Tabular
13636 <lyxtabular version="3" rows="8" columns="4">
13637 <features booktabs="true" tabularvalignment="middle">
13638 <column alignment="center" valignment="top" width="0">
13639 <column alignment="center" valignment="top" width="0">
13640 <column alignment="center" valignment="top" width="0">
13641 <column alignment="center" valignment="top" width="0">
13643 <cell alignment="center" valignment="top" topline="true" usebox="none">
13646 \begin_layout Plain Layout
13652 <cell alignment="center" valignment="top" topline="true" usebox="none">
13655 \begin_layout Plain Layout
13657 \begin_inset space \thinspace{}
13665 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13668 \begin_layout Plain Layout
13670 \begin_inset space \thinspace{}
13678 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13681 \begin_layout Plain Layout
13689 <cell alignment="center" valignment="top" usebox="none">
13692 \begin_layout Plain Layout
13696 \begin_layout Plain Layout
13709 \begin_layout Plain Layout
13722 \begin_layout Plain Layout
13735 \begin_layout Plain Layout
13744 Detector thickness in µm
13749 <cell alignment="center" valignment="top" usebox="none">
13752 \begin_layout Plain Layout
13758 <cell alignment="center" valignment="top" usebox="none">
13761 \begin_layout Plain Layout
13767 <cell alignment="center" valignment="top" usebox="none">
13770 \begin_layout Plain Layout
13778 <cell alignment="center" valignment="top" topline="true" usebox="none">
13781 \begin_layout Plain Layout
13787 <cell alignment="center" valignment="top" topline="true" usebox="none">
13790 \begin_layout Plain Layout
13796 <cell alignment="center" valignment="top" topline="true" usebox="none">
13799 \begin_layout Plain Layout
13805 <cell alignment="center" valignment="top" topline="true" usebox="none">
13808 \begin_layout Plain Layout
13815 <row topspace="default">
13816 <cell alignment="center" valignment="top" usebox="none">
13819 \begin_layout Plain Layout
13820 Spatial resolution in µm
13825 <cell alignment="center" valignment="top" usebox="none">
13828 \begin_layout Plain Layout
13834 <cell alignment="center" valignment="top" usebox="none">
13837 \begin_layout Plain Layout
13843 <cell alignment="center" valignment="top" usebox="none">
13846 \begin_layout Plain Layout
13853 <row topspace="default">
13854 <cell alignment="center" valignment="top" usebox="none">
13857 \begin_layout Plain Layout
13859 \begin_inset Formula $f_{\mathrm{max}}$
13867 <cell alignment="center" valignment="top" usebox="none">
13870 \begin_layout Plain Layout
13876 <cell alignment="center" valignment="top" usebox="none">
13879 \begin_layout Plain Layout
13885 <cell alignment="center" valignment="top" usebox="none">
13888 \begin_layout Plain Layout
13896 <cell alignment="center" valignment="top" topline="true" usebox="none">
13899 \begin_layout Plain Layout
13903 \begin_layout Plain Layout
13916 \begin_layout Plain Layout
13925 LSF-spatial resolution
13930 <cell alignment="center" valignment="top" topline="true" usebox="none">
13933 \begin_layout Plain Layout
13939 <cell alignment="center" valignment="top" topline="true" usebox="none">
13942 \begin_layout Plain Layout
13948 <cell alignment="center" valignment="top" topline="true" usebox="none">
13951 \begin_layout Plain Layout
13959 <cell alignment="center" valignment="top" usebox="none">
13962 \begin_layout Plain Layout
13968 <cell alignment="center" valignment="top" usebox="none">
13971 \begin_layout Plain Layout
13977 <cell alignment="center" valignment="top" usebox="none">
13980 \begin_layout Plain Layout
13986 <cell alignment="center" valignment="top" usebox="none">
13989 \begin_layout Plain Layout
13997 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14000 \begin_layout Plain Layout
14006 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14009 \begin_layout Plain Layout
14015 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14018 \begin_layout Plain Layout
14024 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14027 \begin_layout Plain Layout
14046 \begin_layout Section
14047 Vertical Table Alignment
14048 \begin_inset Index idx
14051 \begin_layout Plain Layout
14060 \begin_layout Standard
14061 To align tables vertically in a text line the table must be inside a box.
14062 The box can then be vertically aligned as described in section
14063 \begin_inset space ~
14067 \begin_inset CommandInset ref
14069 reference "sec:Box-Dialog"
14076 \begin_layout Standard
14077 In the following example the tables are inside a minipage
14081 \begin_layout Plain Layout
14082 Minipages are described in section
14083 \begin_inset space ~
14087 \begin_inset CommandInset ref
14089 reference "sec:Minipages"
14098 box that has a width of 15
14099 \begin_inset space \thinspace{}
14105 \begin_layout Itemize
14107 \begin_inset Box Frameless
14117 height_special "totalheight"
14120 \begin_layout Plain Layout
14121 \begin_inset Tabular
14122 <lyxtabular version="3" rows="3" columns="3">
14123 <features tabularvalignment="middle">
14124 <column alignment="center" valignment="top" width="0">
14125 <column alignment="center" valignment="top" width="0">
14126 <column alignment="center" valignment="top" width="0">
14128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14131 \begin_layout Plain Layout
14137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14140 \begin_layout Plain Layout
14146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14149 \begin_layout Plain Layout
14157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14160 \begin_layout Plain Layout
14166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14169 \begin_layout Plain Layout
14175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14178 \begin_layout Plain Layout
14186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14189 \begin_layout Plain Layout
14195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14198 \begin_layout Plain Layout
14204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14207 \begin_layout Plain Layout
14227 \begin_layout Plain Layout
14239 \begin_inset Box Frameless
14249 height_special "totalheight"
14252 \begin_layout Plain Layout
14253 \begin_inset Tabular
14254 <lyxtabular version="3" rows="3" columns="3">
14255 <features tabularvalignment="middle">
14256 <column alignment="center" valignment="top" width="0">
14257 <column alignment="center" valignment="top" width="0">
14258 <column alignment="center" valignment="top" width="0">
14260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14263 \begin_layout Plain Layout
14269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14272 \begin_layout Plain Layout
14278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14281 \begin_layout Plain Layout
14289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14292 \begin_layout Plain Layout
14298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14301 \begin_layout Plain Layout
14307 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14310 \begin_layout Plain Layout
14318 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14321 \begin_layout Plain Layout
14327 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14330 \begin_layout Plain Layout
14336 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14339 \begin_layout Plain Layout
14359 \begin_layout Plain Layout
14369 \begin_layout Itemize
14371 \begin_inset Box Frameless
14381 height_special "totalheight"
14384 \begin_layout Plain Layout
14385 \begin_inset Tabular
14386 <lyxtabular version="3" rows="3" columns="3">
14387 <features tabularvalignment="middle">
14388 <column alignment="center" valignment="top" width="0">
14389 <column alignment="center" valignment="top" width="0">
14390 <column alignment="center" valignment="top" width="0">
14392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14395 \begin_layout Plain Layout
14401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14404 \begin_layout Plain Layout
14410 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14413 \begin_layout Plain Layout
14421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14424 \begin_layout Plain Layout
14430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14433 \begin_layout Plain Layout
14439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14442 \begin_layout Plain Layout
14450 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14453 \begin_layout Plain Layout
14459 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14462 \begin_layout Plain Layout
14468 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14471 \begin_layout Plain Layout
14490 \begin_layout Itemize
14492 \begin_inset Box Frameless
14502 height_special "totalheight"
14505 \begin_layout Plain Layout
14506 \begin_inset Tabular
14507 <lyxtabular version="3" rows="3" columns="3">
14508 <features tabularvalignment="middle">
14509 <column alignment="center" valignment="top" width="0">
14510 <column alignment="center" valignment="top" width="0">
14511 <column alignment="center" valignment="top" width="0">
14513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14516 \begin_layout Plain Layout
14522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14525 \begin_layout Plain Layout
14531 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14534 \begin_layout Plain Layout
14542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14545 \begin_layout Plain Layout
14551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14554 \begin_layout Plain Layout
14560 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14563 \begin_layout Plain Layout
14571 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14574 \begin_layout Plain Layout
14580 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14583 \begin_layout Plain Layout
14589 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14592 \begin_layout Plain Layout
14612 \begin_layout Plain Layout
14624 \begin_inset Box Frameless
14634 height_special "totalheight"
14637 \begin_layout Plain Layout
14638 \begin_inset Tabular
14639 <lyxtabular version="3" rows="3" columns="3">
14640 <features tabularvalignment="middle">
14641 <column alignment="center" valignment="top" width="0">
14642 <column alignment="center" valignment="top" width="0">
14643 <column alignment="center" valignment="top" width="0">
14645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14648 \begin_layout Plain Layout
14654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14657 \begin_layout Plain Layout
14663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14666 \begin_layout Plain Layout
14674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14677 \begin_layout Plain Layout
14683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14686 \begin_layout Plain Layout
14692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14695 \begin_layout Plain Layout
14703 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14706 \begin_layout Plain Layout
14712 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14715 \begin_layout Plain Layout
14721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14724 \begin_layout Plain Layout
14744 \begin_layout Plain Layout
14754 \begin_layout Standard
14755 As you will see, the content of the first and last table row is not correctly
14757 To get this alignment, the minipage box must be set into a raisebox
14761 \begin_layout Plain Layout
14762 Raiseboxes are described in section
14763 \begin_inset space ~
14767 \begin_inset CommandInset ref
14769 reference "sub:Vertical-Alignment"
14779 In the example above the second table in the first item is aligned using
14780 the TeX-Code-command
14783 \begin_layout Standard
14793 \begin_layout Standard
14795 After the box the closing brace
14799 is inserted as TeX-Code.
14800 For the second table in the last item the command
14803 \begin_layout Standard
14813 \begin_layout Standard
14817 \begin_layout Standard
14818 \begin_inset Note Greyedout
14821 \begin_layout Plain Layout
14826 The alignment of the table row content to the surrounding text line is
14828 The required value for the
14834 command for this alignment depends on the document font, the font size,
14835 and the table line thickness.
14843 \begin_layout Section
14845 \begin_inset CommandInset label
14847 name "sec:Colored-Tables"
14852 \begin_inset Index idx
14855 \begin_layout Plain Layout
14864 \begin_layout Subsection
14866 \begin_inset Index idx
14869 \begin_layout Plain Layout
14870 Table Color ! for Cells
14876 \begin_inset Index idx
14879 \begin_layout Plain Layout
14880 Color ! for Table Cells
14888 \begin_layout Standard
14889 \begin_inset Float table
14895 \begin_layout Plain Layout
14896 \begin_inset Caption
14898 \begin_layout Plain Layout
14899 \begin_inset CommandInset label
14901 name "tab:Table-colored-without"
14905 Table colored without using the package
14910 \begin_inset Argument
14913 \begin_layout Plain Layout
14914 Table without colortbl
14927 \begin_layout Plain Layout
14929 \begin_inset Tabular
14930 <lyxtabular version="3" rows="3" columns="3">
14931 <features tabularvalignment="middle">
14932 <column alignment="center" valignment="top" width="0">
14933 <column alignment="center" valignment="top" width="0">
14934 <column alignment="center" valignment="top" width="0">
14936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14939 \begin_layout Plain Layout
14947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14950 \begin_layout Plain Layout
14958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14961 \begin_layout Plain Layout
14971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14974 \begin_layout Plain Layout
14982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14985 \begin_layout Plain Layout
14993 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14996 \begin_layout Plain Layout
15006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15009 \begin_layout Plain Layout
15017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15020 \begin_layout Plain Layout
15028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15031 \begin_layout Plain Layout
15052 \begin_layout Standard
15053 If you only need colored text, mark the cells and choose a color in the
15056 Edit\SpecialChar \menuseparator
15058 \begin_inset space ~
15064 This was used to create Table
15065 \begin_inset space ~
15069 \begin_inset CommandInset ref
15071 reference "tab:Table-colored-without"
15076 In any other case you have to use the LaTeX-package
15081 \begin_inset Index idx
15084 \begin_layout Plain Layout
15085 LaTeX-packages ! colortbl
15093 \begin_layout Standard
15097 \begin_layout Plain Layout
15107 \begin_inset Note Note
15110 \begin_layout Plain Layout
15111 The following section part will only be displayed when the LaTeX-package
15124 \begin_layout Standard
15125 To create colored tables,
15129 must be loaded in the preamble with the line
15132 \begin_layout Standard
15137 usepackage{colortbl}
15140 \begin_layout Standard
15141 The color of a column is adjusted with the command
15144 \begin_layout Standard
15149 columncolor{name of color}
15152 \begin_layout Standard
15158 More about the command
15162 is contained in section
15163 \begin_inset space ~
15167 \begin_inset CommandInset ref
15169 reference "sub:Multicolumn-Calculations"
15176 \begin_layout Standard
15177 The following color names are predefined:
15180 \begin_layout Standard
15214 \begin_layout Standard
15215 \begin_inset VSpace medskip
15221 \begin_layout Standard
15222 You can also define your own color with the command
15225 \begin_layout Standard
15230 definecolor{color name}{color model}{color values}
15233 \begin_layout Standard
15234 The color model can be
15237 \begin_layout Labeling
15238 \labelwidthstring 00.00.0000
15239 cmyk: cyan, magenta, yellow, black
15242 \begin_layout Labeling
15243 \labelwidthstring 00.00.0000
15244 rgb: red, green blue
15247 \begin_layout Labeling
15248 \labelwidthstring 00.00.0000
15252 \begin_layout Standard
15253 and the color values are comma separated numbers between 0 and 1 describing
15254 the factor for the corresponding color of the color model.
15257 \begin_layout Standard
15259 \begin_inset space \thinspace{}
15263 \begin_inset space \space{}
15270 " in the preamble with
15273 \begin_layout Standard
15278 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
15281 \begin_layout Standard
15289 \begin_layout Standard
15294 definecolor{lightgray}{gray}{0.8}
15297 \begin_layout Standard
15298 \begin_inset VSpace medskip
15304 \begin_layout Standard
15305 Lines are colored with the command
15308 \begin_layout Standard
15313 rowcolor{name of color}
15316 \begin_layout Standard
15317 and cells are colored with the command
15320 \begin_layout Standard
15325 cellcolor{name of color}
15328 \begin_layout Standard
15329 Both commands are inserted at the beginning of a cell as TeX-Code.
15332 \begin_layout Standard
15333 To color characters in the table, mark the cells and use the LyX menu
15335 Edit\SpecialChar \menuseparator
15337 \begin_inset space ~
15343 If a cell contains TeX-Code mark only the characters, otherwise the colored
15344 TeX-Code will cause LaTeX-errors.
15347 \begin_layout Standard
15348 \begin_inset Note Greyedout
15351 \begin_layout Plain Layout
15356 Not all DVI-viewers are able to display self-defined colors.
15364 \begin_layout Standard
15365 \begin_inset VSpace bigskip
15371 \begin_layout Standard
15373 \begin_inset space ~
15377 \begin_inset CommandInset ref
15379 reference "tab:Table-colored-using"
15383 do the following: The color of the first column should be
15391 \begin_layout Standard
15396 columncolor{darkgreen}
15401 \begin_layout Standard
15402 as LaTeX-argument for this column.
15403 The first row should be blue, therefore the TeX-Code command
15406 \begin_layout Standard
15414 \begin_layout Standard
15415 is inserted to the first cell of this row.
15416 Note that this overwrites the column color for the first cell.
15417 The last cell of the last row is colored magenta by inserting the TeX-Code
15421 \begin_layout Standard
15429 \begin_layout Standard
15430 The characters could now be colored using the menu
15432 Edit\SpecialChar \menuseparator
15434 \begin_inset space ~
15442 \begin_layout Standard
15443 \begin_inset Float table
15449 \begin_layout Plain Layout
15450 \begin_inset Caption
15452 \begin_layout Plain Layout
15453 \begin_inset CommandInset label
15455 name "tab:Table-colored-using"
15459 Table colored using the package
15464 \begin_inset Argument
15467 \begin_layout Plain Layout
15468 Table with colortbl
15481 \begin_layout Plain Layout
15483 \begin_inset Tabular
15484 <lyxtabular version="3" rows="3" columns="3">
15485 <features tabularvalignment="middle">
15486 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15487 <column alignment="center" valignment="top" width="0">
15488 <column alignment="center" valignment="top" width="0">
15490 <cell alignment="center" valignment="top" usebox="none">
15493 \begin_layout Plain Layout
15497 \begin_layout Plain Layout
15513 <cell alignment="center" valignment="top" usebox="none">
15516 \begin_layout Plain Layout
15524 <cell alignment="center" valignment="top" usebox="none">
15527 \begin_layout Plain Layout
15537 <cell alignment="center" valignment="top" usebox="none">
15540 \begin_layout Plain Layout
15548 <cell alignment="center" valignment="top" usebox="none">
15551 \begin_layout Plain Layout
15559 <cell alignment="center" valignment="top" usebox="none">
15562 \begin_layout Plain Layout
15572 <cell alignment="center" valignment="top" usebox="none">
15575 \begin_layout Plain Layout
15583 <cell alignment="center" valignment="top" usebox="none">
15586 \begin_layout Plain Layout
15594 <cell alignment="center" valignment="top" usebox="none">
15597 \begin_layout Plain Layout
15601 \begin_layout Plain Layout
15630 \begin_layout Standard
15634 \begin_layout Plain Layout
15644 \begin_inset Note Note
15647 \begin_layout Plain Layout
15648 The following will be displayed when the LaTeX-package
15660 \begin_layout Standard
15661 You need to install the package
15665 to see the content of this section in the output.
15668 \begin_layout Standard
15672 \begin_layout Plain Layout
15684 \begin_layout Subsection
15686 \begin_inset Index idx
15689 \begin_layout Plain Layout
15690 Table Color ! for Lines
15696 \begin_inset Index idx
15699 \begin_layout Plain Layout
15700 Color ! for Table Lines
15708 \begin_layout Standard
15709 As described in section
15710 \begin_inset space ~
15714 \begin_inset CommandInset ref
15716 reference "sub:Line-Thickness"
15720 , the line thickness for all lines in a table can be adjusted with the length
15729 \begin_inset space \thinspace{}
15732 pt for all tables of this section.
15736 \begin_layout Plain Layout
15742 arrayrulewidth}{1.5pt}
15750 \begin_layout Standard
15751 To color vertical lines for example with green, create the following column
15752 format in the document preamble, according to the description in section
15753 \begin_inset space ~
15757 \begin_inset CommandInset ref
15759 reference "sub:Customized-Format"
15766 \begin_layout Standard
15771 newcolumntype{W}{!{
15778 \begin_layout Standard
15780 \begin_inset space ~
15784 \begin_inset CommandInset ref
15786 reference "tab:Table-with-vertical-colored"
15794 was used for the last column and
15798 for the other columns.
15801 \begin_layout Standard
15802 If you want to have several colors, define more column formats.
15805 \begin_layout Standard
15806 \begin_inset Float table
15812 \begin_layout Plain Layout
15813 \begin_inset Caption
15815 \begin_layout Plain Layout
15816 \begin_inset CommandInset label
15818 name "tab:Table-with-vertical-colored"
15822 Table with colored vertical lines
15830 \begin_layout Plain Layout
15832 \begin_inset Tabular
15833 <lyxtabular version="3" rows="3" columns="3">
15834 <features tabularvalignment="middle">
15835 <column alignment="center" valignment="top" width="0" special="Wc">
15836 <column alignment="center" valignment="top" width="0" special="Wc">
15837 <column alignment="center" valignment="top" width="0" special="WcW">
15839 <cell alignment="center" valignment="top" topline="true" usebox="none">
15842 \begin_layout Plain Layout
15848 <cell alignment="center" valignment="top" topline="true" usebox="none">
15851 \begin_layout Plain Layout
15857 <cell alignment="center" valignment="top" topline="true" usebox="none">
15860 \begin_layout Plain Layout
15868 <cell alignment="center" valignment="top" topline="true" usebox="none">
15871 \begin_layout Plain Layout
15877 <cell alignment="center" valignment="top" topline="true" usebox="none">
15880 \begin_layout Plain Layout
15886 <cell alignment="center" valignment="top" topline="true" usebox="none">
15889 \begin_layout Plain Layout
15897 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15900 \begin_layout Plain Layout
15906 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15909 \begin_layout Plain Layout
15915 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15918 \begin_layout Plain Layout
15937 \begin_layout Standard
15938 \begin_inset VSpace bigskip
15941 To color horizontal lines for example with red, as in Table
15942 \begin_inset space ~
15946 \begin_inset CommandInset ref
15948 reference "tab:Table-with-horizontal-colored"
15952 , insert these commands in TeX-Code before the table or table float:
15955 \begin_layout Standard
15965 \begin_inset Newline newline
15973 \begin_inset Newline newline
15977 \begin_inset Phantom HPhantom
15980 \begin_layout Plain Layout
15983 \begin_inset space ~
15993 arrayrulecolor{red}
15997 arrayrulecolor{black}}
16000 \begin_layout Standard
16004 \begin_layout Plain Layout
16015 \begin_layout Plain Layout
16024 \begin_layout Plain Layout
16028 arrayrulecolor{red}
16032 arrayrulecolor{black}}
16038 \begin_inset Float table
16044 \begin_layout Plain Layout
16045 \begin_inset Caption
16047 \begin_layout Plain Layout
16048 \begin_inset CommandInset label
16050 name "tab:Table-with-horizontal-colored"
16054 Table with colored horizontal lines
16062 \begin_layout Plain Layout
16064 \begin_inset Tabular
16065 <lyxtabular version="3" rows="3" columns="3">
16066 <features tabularvalignment="middle">
16067 <column alignment="center" valignment="top" width="0">
16068 <column alignment="center" valignment="top" width="0">
16069 <column alignment="center" valignment="top" width="0">
16071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16074 \begin_layout Plain Layout
16080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16083 \begin_layout Plain Layout
16089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16092 \begin_layout Plain Layout
16100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16103 \begin_layout Plain Layout
16109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16112 \begin_layout Plain Layout
16118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16121 \begin_layout Plain Layout
16129 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16132 \begin_layout Plain Layout
16138 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16141 \begin_layout Plain Layout
16147 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16150 \begin_layout Plain Layout
16169 \begin_layout Standard
16170 To return to the default line color black, insert this command in TeX-Code
16171 after the table or table float:
16174 \begin_layout Standard
16186 \begin_layout Standard
16188 \begin_inset space ~
16192 \begin_inset CommandInset ref
16194 reference "tab:Table-with-colored"
16198 is an example with colored vertical and horizontal lines.
16201 \begin_layout Standard
16202 \begin_inset Float table
16208 \begin_layout Plain Layout
16209 \begin_inset Caption
16211 \begin_layout Plain Layout
16212 \begin_inset CommandInset label
16214 name "tab:Table-with-colored"
16218 Table with colored lines
16226 \begin_layout Plain Layout
16228 \begin_inset Tabular
16229 <lyxtabular version="3" rows="3" columns="3">
16230 <features tabularvalignment="middle">
16231 <column alignment="center" valignment="top" width="0" special="Wc">
16232 <column alignment="center" valignment="top" width="0" special="Wc">
16233 <column alignment="center" valignment="top" width="0" special="WcW">
16235 <cell alignment="center" valignment="top" topline="true" usebox="none">
16238 \begin_layout Plain Layout
16244 <cell alignment="center" valignment="top" topline="true" usebox="none">
16247 \begin_layout Plain Layout
16253 <cell alignment="center" valignment="top" topline="true" usebox="none">
16256 \begin_layout Plain Layout
16264 <cell alignment="center" valignment="top" topline="true" usebox="none">
16267 \begin_layout Plain Layout
16273 <cell alignment="center" valignment="top" topline="true" usebox="none">
16276 \begin_layout Plain Layout
16282 <cell alignment="center" valignment="top" topline="true" usebox="none">
16285 \begin_layout Plain Layout
16292 <row topspace="default">
16293 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16296 \begin_layout Plain Layout
16302 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16305 \begin_layout Plain Layout
16311 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16314 \begin_layout Plain Layout
16333 \begin_layout Standard
16337 \begin_layout Plain Layout
16353 \begin_layout Standard
16357 \begin_layout Plain Layout
16363 arrayrulewidth}{0.4pt}
16371 \begin_layout Section
16372 Table Customization
16373 \begin_inset Index idx
16376 \begin_layout Plain Layout
16377 Table Customization
16383 \begin_inset Index idx
16386 \begin_layout Plain Layout
16387 Table ! Customization
16395 \begin_layout Subsection
16397 \begin_inset CommandInset label
16399 name "sub:Row-Spacing"
16404 \begin_inset Index idx
16407 \begin_layout Plain Layout
16408 Table Customization ! Row Spacing
16416 \begin_layout Standard
16417 You can add vertical space to table rows in the
16421 tab of the table dialog.
16422 You find there three possibilities:
16425 \begin_layout Description
16427 \begin_inset space ~
16431 \begin_inset space ~
16434 row will add space above the characters of the table row.
16435 If the table is a formal table
16439 \begin_layout Plain Layout
16440 Formal tables are explained in section
16441 \begin_inset space ~
16445 \begin_inset CommandInset ref
16447 reference "sec:Formal-Tables"
16456 LyX will insert as default 0.5
16457 \begin_inset space \thinspace{}
16461 For normal tables the inserted space will unfortunately destroy the vertical
16462 table lines as in the following table:
16463 \begin_inset VSpace medskip
16467 \begin_inset Newline newline
16471 \begin_inset space \hspace*{}
16476 \begin_inset space \hfill{}
16480 \begin_inset Tabular
16481 <lyxtabular version="3" rows="3" columns="1">
16482 <features tabularvalignment="middle">
16483 <column alignment="center" valignment="top" width="0">
16485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16488 \begin_layout Plain Layout
16495 <row topspace="3mm">
16496 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16499 \begin_layout Plain Layout
16501 \begin_inset space \thinspace{}
16504 mm space top of row
16511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16514 \begin_layout Plain Layout
16526 \begin_inset space \hfill{}
16530 \begin_inset space \hspace*{}
16535 \begin_inset VSpace medskip
16539 \begin_inset Newline newline
16542 So inserting space in the top of row for normal tables is only useful when
16543 you don't have vertical lines.
16546 \begin_layout Description
16548 \begin_inset space ~
16552 \begin_inset space ~
16555 row will add space below the characters of the table row.
16556 If the table is a formal table LyX will insert as default 0.5
16557 \begin_inset space \thinspace{}
16560 em space, for normal tables the default size is 2
16561 \begin_inset space \thinspace{}
16567 \begin_layout Description
16569 \begin_inset space ~
16572 rows adds space between the current and the following row.
16573 If the table is a formal table LyX will insert as default 0.5
16574 \begin_inset space \thinspace{}
16578 For normal tables the inserted space will unfortunately destroy the vertical
16579 table lines as in the following table:
16580 \begin_inset VSpace medskip
16584 \begin_inset Newline newline
16588 \begin_inset space \hspace*{}
16593 \begin_inset space \hfill{}
16597 \begin_inset Tabular
16598 <lyxtabular version="3" rows="3" columns="1">
16599 <features tabularvalignment="middle">
16600 <column alignment="center" valignment="top" width="0">
16602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16605 \begin_layout Plain Layout
16612 <row interlinespace="3mm">
16613 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16616 \begin_layout Plain Layout
16617 \begin_inset Formula $\downarrow$
16621 \begin_inset space \thinspace{}
16624 mm space between row
16625 \begin_inset Formula $\downarrow$
16635 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16638 \begin_layout Plain Layout
16639 \begin_inset Formula $\uparrow$
16643 \begin_inset space \thinspace{}
16646 mm space between row
16647 \begin_inset Formula $\uparrow$
16661 \begin_inset space \hfill{}
16665 \begin_inset space \hspace*{}
16670 \begin_inset VSpace medskip
16674 \begin_inset Newline newline
16677 So inserting space between rows for normal tables is only useful when you
16678 don't have vertical lines.
16681 \begin_layout Standard
16682 \begin_inset VSpace bigskip
16685 When you want to add extra height to all cells of all tables, you can do
16686 this with the following preamble lines:
16689 \begin_layout Standard
16694 @ifundefined{extrarowheight}
16695 \begin_inset Newline newline
16699 \begin_inset Phantom HPhantom
16702 \begin_layout Plain Layout
16705 \begin_inset space ~
16715 usepackage{array}}{}
16716 \begin_inset Newline newline
16723 extrarowheight}{height}
16726 \begin_layout Standard
16727 But this has the disadvantage that the cell texts are no longer exactly
16728 vertically centered.
16733 will be loaded automatically by LyX when you use self defined table formats.
16734 To avoid that it being loaded twice the command
16740 is used in the above command.)
16743 \begin_layout Standard
16744 If you are using font sizes larger than the normal size, the table borders
16745 are often too close to the letters.
16746 This can be corrected by inserting the command
16752 in TeX code at the beginning of a table row.
16754 \begin_inset space ~
16758 \begin_inset CommandInset ref
16760 reference "tab:Vertical-alignment-of"
16764 illustrates the effect.
16767 \begin_layout Standard
16769 \begin_inset Float table
16775 \begin_layout Plain Layout
16776 \begin_inset Caption
16778 \begin_layout Plain Layout
16779 \begin_inset CommandInset label
16781 name "tab:Vertical-alignment-of"
16785 Vertical alignment of text with large font sizes.
16793 \begin_layout Plain Layout
16794 \begin_inset space \hfill{}
16798 \begin_inset Float table
16803 \begin_layout Plain Layout
16804 \begin_inset Caption
16806 \begin_layout Plain Layout
16815 \begin_layout Plain Layout
16818 \begin_inset Tabular
16819 <lyxtabular version="3" rows="6" columns="1">
16820 <features tabularvalignment="middle">
16821 <column alignment="left" valignment="top" width="0">
16823 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16826 \begin_layout Plain Layout
16834 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16837 \begin_layout Plain Layout
16847 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16850 \begin_layout Plain Layout
16860 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16863 \begin_layout Plain Layout
16873 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16876 \begin_layout Plain Layout
16886 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16889 \begin_layout Plain Layout
16908 \begin_inset space \hfill{}
16912 \begin_inset Float table
16917 \begin_layout Plain Layout
16918 \begin_inset Caption
16920 \begin_layout Plain Layout
16921 Table using the command
16935 \begin_layout Plain Layout
16938 \begin_inset Tabular
16939 <lyxtabular version="3" rows="6" columns="1">
16940 <features tabularvalignment="middle">
16941 <column alignment="left" valignment="top" width="0">
16943 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16946 \begin_layout Plain Layout
16954 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16957 \begin_layout Plain Layout
16963 \begin_layout Plain Layout
16979 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16982 \begin_layout Plain Layout
16988 \begin_layout Plain Layout
17004 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17007 \begin_layout Plain Layout
17013 \begin_layout Plain Layout
17029 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17032 \begin_layout Plain Layout
17038 \begin_layout Plain Layout
17054 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17057 \begin_layout Plain Layout
17063 \begin_layout Plain Layout
17090 \begin_inset space \hfill{}
17101 \begin_layout Subsection
17102 Special Cell Alignment
17103 \begin_inset CommandInset label
17105 name "sub:Special-Cell-Alignment"
17110 \begin_inset Index idx
17113 \begin_layout Plain Layout
17114 Table Customization ! Special Cell Alignment
17122 \begin_layout Standard
17123 Sometimes it looks better when the cell entries of a column are aligned
17124 with a special character, e.
17125 \begin_inset space \thinspace{}
17129 \begin_inset space \space{}
17132 with the decimal separator as in Table
17133 \begin_inset space ~
17137 \begin_inset CommandInset ref
17139 reference "tab:Table-cells-align"
17144 This alignment is achieved by setting the cursor into the column and then
17145 either pressing the toolbar button
17146 \begin_inset Graphics
17147 filename ../images/tabular-feature_align-decimal.png
17149 scaleBeforeRotation
17153 or setting the alignment in the table settings to
17156 \begin_inset space ~
17160 \begin_inset space ~
17166 The alignment character can be a character of your choice and is specified
17167 in the table settings.
17170 \begin_layout Standard
17171 \begin_inset Float table
17177 \begin_layout Plain Layout
17178 \begin_inset Caption
17180 \begin_layout Plain Layout
17181 \begin_inset CommandInset label
17183 name "tab:Table-cells-align"
17187 Table cells of a column aligned with the decimal separator.
17195 \begin_layout Plain Layout
17197 \begin_inset Tabular
17198 <lyxtabular version="3" rows="4" columns="1">
17199 <features booktabs="true" tabularvalignment="middle">
17200 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
17202 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17205 \begin_layout Plain Layout
17213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17216 \begin_layout Plain Layout
17224 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17227 \begin_layout Plain Layout
17235 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17238 \begin_layout Plain Layout
17257 \begin_layout Standard
17258 \begin_inset Float table
17264 \begin_layout Plain Layout
17265 \begin_inset Caption
17267 \begin_layout Plain Layout
17268 \begin_inset CommandInset label
17270 name "tab:Table-align-operator"
17274 Table cells of a column aligned with the operators.
17282 \begin_layout Plain Layout
17284 \begin_inset Tabular
17285 <lyxtabular version="3" rows="4" columns="2">
17286 <features booktabs="true" tabularvalignment="middle">
17287 <column alignment="right" valignment="top" width="0pt">
17288 <column alignment="left" valignment="top" width="0pt" special="@{}l">
17290 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17293 \begin_layout Plain Layout
17299 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17302 \begin_layout Plain Layout
17310 <cell alignment="center" valignment="top" usebox="none">
17313 \begin_layout Plain Layout
17314 \begin_inset Formula $12\,+$
17322 <cell alignment="center" valignment="top" usebox="none">
17325 \begin_layout Plain Layout
17326 \begin_inset Formula $\,6$
17336 <cell alignment="center" valignment="top" usebox="none">
17339 \begin_layout Plain Layout
17340 \begin_inset Formula $0\,-$
17348 <cell alignment="center" valignment="top" usebox="none">
17351 \begin_layout Plain Layout
17352 \begin_inset Formula $\,68$
17362 <cell alignment="center" valignment="top" usebox="none">
17365 \begin_layout Plain Layout
17366 \begin_inset Formula $-123\,/$
17374 <cell alignment="center" valignment="top" usebox="none">
17377 \begin_layout Plain Layout
17378 \begin_inset Formula $\,0$
17399 \begin_layout Standard
17400 For alignments at characters in formulas this method does not work because
17401 the field to specify the alignment character does not allow formulas.
17402 In this case one need to use the method from Table
17403 \begin_inset space ~
17407 \begin_inset CommandInset ref
17409 reference "tab:Table-align-operator"
17414 This table was created with a 4×2 table.
17415 The heading is a centered multicolumn.
17416 The first column is right-aligned and contains the first part including
17418 The second column is left aligned and contains the rest.
17419 A small space was added at the beginning of each cell of the second column
17420 to get the space that is usually around operators.
17421 To omit the space that is normally between two table columns, the following
17422 LaTeX-argument was used for the second column:
17425 \begin_layout Standard
17431 \begin_layout Standard
17433 \begin_inset space ~
17437 \begin_inset CommandInset ref
17439 reference "tab:Several-table-cell"
17443 shows some example alignments.
17444 For the alignment with the relation sign, a small space was added like
17445 for the second column of Table
17446 \begin_inset space ~
17450 \begin_inset CommandInset ref
17452 reference "tab:Table-align-operator"
17459 \begin_layout Standard
17460 \begin_inset Float table
17466 \begin_layout Plain Layout
17467 \begin_inset Caption
17469 \begin_layout Plain Layout
17470 \begin_inset CommandInset label
17472 name "tab:Several-table-cell"
17476 Several table cell alignments.
17484 \begin_layout Plain Layout
17486 \begin_inset Tabular
17487 <lyxtabular version="3" rows="4" columns="6">
17488 <features tabularvalignment="middle">
17489 <column alignment="right" valignment="top" width="0">
17490 <column alignment="left" valignment="top" width="0" special="@{}l">
17491 <column alignment="right" valignment="top" width="0">
17492 <column alignment="left" valignment="top" width="0" special="@{}l">
17493 <column alignment="right" valignment="top" width="0">
17494 <column alignment="left" valignment="top" width="0" special="@{}l">
17496 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17499 \begin_layout Plain Layout
17505 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17508 \begin_layout Plain Layout
17514 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17517 \begin_layout Plain Layout
17523 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17526 \begin_layout Plain Layout
17532 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17535 \begin_layout Plain Layout
17541 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17544 \begin_layout Plain Layout
17552 <cell alignment="center" valignment="top" usebox="none">
17555 \begin_layout Plain Layout
17561 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17564 \begin_layout Plain Layout
17566 \begin_inset space \thinspace{}
17574 <cell alignment="center" valignment="top" usebox="none">
17577 \begin_layout Plain Layout
17578 \begin_inset Formula $10\cdot$
17586 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17589 \begin_layout Plain Layout
17590 \begin_inset Formula $10^{\mbox{-}17}$
17598 <cell alignment="center" valignment="top" usebox="none">
17601 \begin_layout Plain Layout
17602 \begin_inset Formula $\Gamma(t)\propto$
17610 <cell alignment="center" valignment="top" usebox="none">
17613 \begin_layout Plain Layout
17614 \begin_inset Formula $\:\Upsilon(t)$
17624 <cell alignment="center" valignment="top" usebox="none">
17627 \begin_layout Plain Layout
17633 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17636 \begin_layout Plain Layout
17638 \begin_inset space \thinspace{}
17646 <cell alignment="center" valignment="top" usebox="none">
17649 \begin_layout Plain Layout
17650 \begin_inset Formula $5.78\cdot$
17658 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17661 \begin_layout Plain Layout
17662 \begin_inset Formula $10^{7}$
17670 <cell alignment="center" valignment="top" usebox="none">
17673 \begin_layout Plain Layout
17674 \begin_inset Formula $A\ne$
17682 <cell alignment="center" valignment="top" usebox="none">
17685 \begin_layout Plain Layout
17686 \begin_inset Formula $\: B_{\mathrm{red}}$
17696 <cell alignment="center" valignment="top" usebox="none">
17699 \begin_layout Plain Layout
17705 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17708 \begin_layout Plain Layout
17710 \begin_inset space \thinspace{}
17718 <cell alignment="center" valignment="top" usebox="none">
17721 \begin_layout Plain Layout
17723 \begin_inset Formula $33.5\cdot$
17731 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17734 \begin_layout Plain Layout
17735 \begin_inset Formula $10^{4}$
17743 <cell alignment="center" valignment="top" usebox="none">
17746 \begin_layout Plain Layout
17747 \begin_inset Formula $\sin(\alpha)\ge$
17755 <cell alignment="center" valignment="top" usebox="none">
17758 \begin_layout Plain Layout
17759 \begin_inset Formula $\:\sin(\beta)$
17780 \begin_layout Subsection
17781 Customized Cell/Column Format
17782 \begin_inset CommandInset label
17784 name "sub:Customized-Format"
17789 \begin_inset Index idx
17792 \begin_layout Plain Layout
17793 Table Customization ! Cell/Column Format
17801 \begin_layout Standard
17802 Calculating the required width for spanned columns as in section
17803 \begin_inset space ~
17807 \begin_inset CommandInset ref
17809 reference "sub:Multicolumn-Calculations"
17813 is very annoying if you have several tables with multicolumn cells.
17814 To make life easier, you can define a cell/column format in the preamble,
17815 so that it can be used in all tables of the document.
17816 The format is defined with the command
17819 \begin_layout Standard
17824 newcolumntype{name of format}[number of arguments]{commands}
17827 \begin_layout Standard
17828 The format name may only consist of one letter.
17853 are predefined and cannot be used.
17854 But all letters are allowed as capitals.
17857 \begin_layout Standard
17858 \begin_inset VSpace medskip
17864 \begin_layout Standard
17865 For vertically and horizontally centered multicolumn cells with a fixed
17866 width you can define the cell format
17869 \begin_layout Standard
17874 newcolumntype{M}[1]{>{
17881 \begin_layout Standard
17888 avoids the problem of hyphenating the first word, as described in section
17889 \begin_inset space ~
17893 \begin_inset CommandInset ref
17895 reference "sub:Multiple-Lines-in"
17900 Now you can simply enter
17903 \begin_layout Standard
17909 \begin_layout Standard
17910 as LaTeX-argument in the table dialog to create a multicolumn.
17913 \begin_layout Standard
17914 \begin_inset VSpace bigskip
17920 \begin_layout Standard
17921 For cells spanned by a multicolumn cell, you can define the format
17924 \begin_layout Standard
17929 newcolumntype{S}[2]{>{
17934 \begin_inset Newline newline
17938 \begin_inset Phantom HPhantom
17941 \begin_layout Plain Layout
17955 arrayrulewidth)*(1-#2))/#2}}
17958 \begin_layout Standard
17959 This format uses equation
17960 \begin_inset CommandInset ref
17966 to calculate the required width so that each spanned cell has the same
17970 \begin_layout Standard
17974 \begin_layout Standard
17977 S{width of multicolumn cell}{number of spanned columns}
17980 \begin_layout Standard
17981 as LaTeX-argument of the column.
17984 \begin_layout Standard
17985 \begin_inset VSpace bigskip
17991 \begin_layout Standard
17992 For colored columns, you can define
17995 \begin_layout Standard
18000 newcolumntype{K}[1]{>{
18007 \begin_layout Standard
18009 \begin_inset Quotes eld
18013 \begin_inset Quotes erd
18016 at the end creates a column with a flexible width whose text is horizontally
18021 \begin_layout Standard
18027 \begin_layout Standard
18031 \begin_layout Standard
18032 \begin_inset VSpace bigskip
18038 \begin_layout Standard
18040 \begin_inset space ~
18044 \begin_inset CommandInset ref
18046 reference "tab:Table-using-user-defined"
18050 use the LaTeX-arguments
18053 \begin_layout Standard
18059 \begin_layout Standard
18060 for the first column and the multicolumn,
18063 \begin_layout Standard
18069 \begin_layout Standard
18070 for the last column, and
18073 \begin_layout Standard
18079 \begin_layout Standard
18080 for the cells in the second column.
18083 \begin_layout Standard
18084 \begin_inset Float table
18090 \begin_layout Plain Layout
18091 \begin_inset Caption
18093 \begin_layout Plain Layout
18094 \begin_inset CommandInset label
18096 name "tab:Table-using-user-defined"
18100 Table using user-defined table formats
18108 \begin_layout Plain Layout
18110 \begin_inset Tabular
18111 <lyxtabular version="3" rows="3" columns="4">
18112 <features tabularvalignment="middle">
18113 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
18114 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
18115 <column alignment="center" valignment="middle" width="0">
18116 <column alignment="center" valignment="middle" width="0" special="K{red}">
18118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18121 \begin_layout Plain Layout
18122 verylongtablecellword
18127 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
18130 \begin_layout Plain Layout
18131 multiple lines multicolumn
18136 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18139 \begin_layout Plain Layout
18145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18148 \begin_layout Plain Layout
18156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18159 \begin_layout Plain Layout
18165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18168 \begin_layout Plain Layout
18174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18177 \begin_layout Plain Layout
18183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18186 \begin_layout Plain Layout
18194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18197 \begin_layout Plain Layout
18203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18206 \begin_layout Plain Layout
18212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18215 \begin_layout Plain Layout
18221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18224 \begin_layout Plain Layout
18243 \begin_layout Subsection
18245 \begin_inset CommandInset label
18247 name "sub:Line-Thickness"
18252 \begin_inset Index idx
18255 \begin_layout Plain Layout
18256 Table Customization ! Line Thickness
18264 \begin_layout Standard
18265 The line thickness for all lines in a table can be adjusted with the length
18273 To set for example a line thickness of 1.5
18274 \begin_inset space \thinspace{}
18278 \begin_inset space ~
18282 \begin_inset CommandInset ref
18284 reference "tab:Table-with-1.5"
18288 , insert the command
18291 \begin_layout Standard
18298 arrayrulewidth}{1.5pt}
18301 \begin_layout Standard
18302 in TeX-Code before the table or table float.
18303 The changed thickness is valid for all subsequent tables.
18304 To use the default value again, set
18311 \begin_inset space \thinspace{}
18314 pt in TeX-Code after the table or table float.
18317 \begin_layout Standard
18321 \begin_layout Plain Layout
18327 arrayrulewidth}{1.5pt}
18333 \begin_inset Float table
18338 \begin_layout Plain Layout
18339 \begin_inset Caption
18341 \begin_layout Plain Layout
18342 \begin_inset CommandInset label
18344 name "tab:Table-with-1.5"
18349 \begin_inset space \thinspace{}
18360 \begin_layout Plain Layout
18362 \begin_inset Tabular
18363 <lyxtabular version="3" rows="3" columns="3">
18364 <features tabularvalignment="middle">
18365 <column alignment="center" valignment="top" width="0">
18366 <column alignment="center" valignment="top" width="0">
18367 <column alignment="center" valignment="top" width="0">
18369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18372 \begin_layout Plain Layout
18378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18381 \begin_layout Plain Layout
18387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18390 \begin_layout Plain Layout
18398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18401 \begin_layout Plain Layout
18407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18410 \begin_layout Plain Layout
18416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18419 \begin_layout Plain Layout
18427 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18430 \begin_layout Plain Layout
18436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18439 \begin_layout Plain Layout
18445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18448 \begin_layout Plain Layout
18468 \begin_layout Plain Layout
18474 arrayrulewidth}{0.4pt}
18482 \begin_layout Standard
18483 \begin_inset VSpace bigskip
18486 To set the line thickness to 1.5
18487 \begin_inset space \thinspace{}
18490 pt only for horizontal lines, as in Table
18491 \begin_inset space ~
18495 \begin_inset CommandInset ref
18497 reference "tab:Table-with-horizontal"
18501 , insert these commands in TeX-Code before the table or table float:
18504 \begin_layout Standard
18514 \begin_inset Newline newline
18522 \begin_inset Newline newline
18531 arrayrulewidth 1.5pt}
18532 \begin_inset Newline newline
18543 arrayrulewidth 0.4pt}}
18546 \begin_layout Standard
18547 To return to the default line thickness, insert this command in TeX-Code
18548 after the table or table float:
18551 \begin_layout Standard
18563 \begin_layout Standard
18567 \begin_layout Plain Layout
18578 \begin_layout Plain Layout
18587 \begin_layout Plain Layout
18595 arrayrulewidth 1.5pt}
18598 \begin_layout Plain Layout
18608 arrayrulewidth 0.4pt}}
18614 \begin_inset Float table
18619 \begin_layout Plain Layout
18620 \begin_inset Caption
18622 \begin_layout Plain Layout
18623 \begin_inset CommandInset label
18625 name "tab:Table-with-horizontal"
18630 \begin_inset space \thinspace{}
18633 pt thick horizontal lines
18641 \begin_layout Plain Layout
18643 \begin_inset Tabular
18644 <lyxtabular version="3" rows="3" columns="3">
18645 <features tabularvalignment="middle">
18646 <column alignment="center" valignment="top" width="0">
18647 <column alignment="center" valignment="top" width="0">
18648 <column alignment="center" valignment="top" width="0">
18650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18653 \begin_layout Plain Layout
18659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18662 \begin_layout Plain Layout
18668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18671 \begin_layout Plain Layout
18679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18682 \begin_layout Plain Layout
18688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18691 \begin_layout Plain Layout
18697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18700 \begin_layout Plain Layout
18708 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18711 \begin_layout Plain Layout
18717 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18720 \begin_layout Plain Layout
18726 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18729 \begin_layout Plain Layout
18749 \begin_layout Plain Layout
18765 \begin_layout Standard
18766 \begin_inset VSpace bigskip
18769 To set the line thickness to 1.5
18770 \begin_inset space \thinspace{}
18773 pt only for vertical lines, create the following column format in the document
18774 preamble, according to the description in section
18775 \begin_inset space ~
18779 \begin_inset CommandInset ref
18781 reference "sub:Customized-Format"
18788 \begin_layout Standard
18793 newcolumntype{V}{!{
18795 vrule width 1.5pt}}
18798 \begin_layout Standard
18800 \begin_inset space ~
18804 \begin_inset CommandInset ref
18806 reference "tab:Table-with-vertical"
18813 \begin_layout Standard
18819 \begin_layout Standard
18820 was used for the last column and
18823 \begin_layout Standard
18829 \begin_layout Standard
18830 for the other columns.
18833 \begin_layout Standard
18834 \begin_inset Float table
18839 \begin_layout Plain Layout
18840 \begin_inset Caption
18842 \begin_layout Plain Layout
18843 \begin_inset CommandInset label
18845 name "tab:Table-with-vertical"
18850 \begin_inset space \thinspace{}
18853 pt thick vertical lines
18861 \begin_layout Plain Layout
18863 \begin_inset Tabular
18864 <lyxtabular version="3" rows="3" columns="3">
18865 <features tabularvalignment="middle">
18866 <column alignment="center" valignment="top" width="0" special="Vc">
18867 <column alignment="center" valignment="top" width="0" special="Vc">
18868 <column alignment="center" valignment="top" width="0" special="VcV">
18870 <cell alignment="center" valignment="top" topline="true" usebox="none">
18873 \begin_layout Plain Layout
18879 <cell alignment="center" valignment="top" topline="true" usebox="none">
18882 \begin_layout Plain Layout
18888 <cell alignment="center" valignment="top" topline="true" usebox="none">
18891 \begin_layout Plain Layout
18899 <cell alignment="center" valignment="top" topline="true" usebox="none">
18902 \begin_layout Plain Layout
18908 <cell alignment="center" valignment="top" topline="true" usebox="none">
18911 \begin_layout Plain Layout
18917 <cell alignment="center" valignment="top" topline="true" usebox="none">
18920 \begin_layout Plain Layout
18928 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18931 \begin_layout Plain Layout
18937 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18940 \begin_layout Plain Layout
18946 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18949 \begin_layout Plain Layout
18968 \begin_layout Subsection
18970 \begin_inset Index idx
18973 \begin_layout Plain Layout
18974 Table Customization ! Dashed Lines
18982 \begin_layout Standard
18986 \begin_layout Plain Layout
18996 \begin_inset Note Note
18999 \begin_layout Plain Layout
19000 The following section will only be displayed when the LaTeX-package
19012 \begin_layout Standard
19013 \begin_inset Float table
19019 \begin_layout Plain Layout
19020 \begin_inset Caption
19022 \begin_layout Plain Layout
19023 \begin_inset CommandInset label
19025 name "tab:Table-with-dashed"
19029 Table with dashed lines
19037 \begin_layout Plain Layout
19039 \begin_inset Tabular
19040 <lyxtabular version="3" rows="5" columns="5">
19041 <features tabularvalignment="middle">
19042 <column alignment="center" valignment="top" width="0">
19043 <column alignment="center" valignment="top" width="0">
19044 <column alignment="center" valignment="top" width="0" special=":c">
19045 <column alignment="center" valignment="top" width="0">
19046 <column alignment="center" valignment="top" width="0">
19048 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19051 \begin_layout Plain Layout
19057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19060 \begin_layout Plain Layout
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" leftline="true" usebox="none">
19078 \begin_layout Plain Layout
19084 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19087 \begin_layout Plain Layout
19095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19098 \begin_layout Plain Layout
19104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19107 \begin_layout Plain Layout
19113 <cell alignment="center" valignment="top" topline="true" usebox="none">
19116 \begin_layout Plain Layout
19122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19125 \begin_layout Plain Layout
19131 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19134 \begin_layout Plain Layout
19142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19145 \begin_layout Plain Layout
19149 \begin_layout Plain Layout
19163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19166 \begin_layout Plain Layout
19172 <cell alignment="center" valignment="top" usebox="none">
19175 \begin_layout Plain Layout
19181 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19184 \begin_layout Plain Layout
19190 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19193 \begin_layout Plain Layout
19201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19204 \begin_layout Plain Layout
19208 \begin_layout Plain Layout
19222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19225 \begin_layout Plain Layout
19231 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19234 \begin_layout Plain Layout
19240 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19243 \begin_layout Plain Layout
19249 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19252 \begin_layout Plain Layout
19260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19263 \begin_layout Plain Layout
19269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19272 \begin_layout Plain Layout
19278 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19281 \begin_layout Plain Layout
19287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19290 \begin_layout Plain Layout
19296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19299 \begin_layout Plain Layout
19318 \begin_layout Standard
19319 LyX does not natively support dashed lines, so you have to use TeX-Code.
19320 As a prerequisite the LaTeX-package
19325 \begin_inset Index idx
19328 \begin_layout Plain Layout
19329 LaTeX-packages ! arydshln
19334 must be loaded in the document preamble with the command
19337 \begin_layout Standard
19342 usepackage{arydshln}
19345 \begin_layout Standard
19346 To make a vertical line dashed, enter the colon
19347 \begin_inset Quotes eld
19351 \begin_inset Quotes erd
19354 together with the character for the horizontal alignment as LaTeX-argument
19355 in the table cell dialog.
19358 \begin_layout Standard
19359 For a horizontal dashed line add the command
19362 \begin_layout Standard
19370 \begin_layout Standard
19371 in TeX-Code as first element of the first cell in the table row.
19374 \begin_layout Standard
19375 For dashed multicolumn lines use the command
19378 \begin_layout Standard
19383 cdashline{line number
19388 \begin_layout Standard
19389 in TeX-Code as the first element of the first cell in the table row.
19390 If you have for example a multicolumn spanning columns 2 to 4 and you want
19391 to have a dashed line above, add the command
19394 \begin_layout Standard
19402 \begin_layout Standard
19403 as the first element of the first cell in the row of the multicolumn.
19406 \begin_layout Standard
19407 \begin_inset VSpace bigskip
19413 \begin_layout Standard
19415 \begin_inset space ~
19419 \begin_inset CommandInset ref
19421 reference "tab:Table-with-dashed"
19426 \begin_inset Quotes eld
19434 \begin_inset Quotes erd
19437 as LaTeX-argument of the third column.
19438 The TeX-Code command
19444 was inserted in the first cell of the third row and the TeX-Code command
19445 \begin_inset Newline newline
19454 was inserted in the first cell of the fourth row.
19457 \begin_layout Standard
19458 \begin_inset Note Greyedout
19461 \begin_layout Plain Layout
19470 is apparently not compatible with the LaTeX-package
19475 \begin_inset Index idx
19478 \begin_layout Plain Layout
19479 LaTeX-packages ! colortbl
19484 that is used for colored tables in section
19485 \begin_inset space ~
19489 \begin_inset CommandInset ref
19491 reference "sec:Colored-Tables"
19496 That means colored tables cannot have dashed lines.
19504 \begin_layout Standard
19508 \begin_layout Plain Layout
19518 \begin_inset Note Note
19521 \begin_layout Plain Layout
19522 The following will be displayed when the LaTeX-package
19534 \begin_layout Standard
19535 You need to install the package
19539 to see the content of this section in the output.
19542 \begin_layout Standard
19546 \begin_layout Plain Layout
19558 \begin_layout Chapter
19560 \begin_inset Index idx
19563 \begin_layout Plain Layout
19572 \begin_layout Section
19574 \begin_inset CommandInset label
19576 name "sec:FloatIntroduction"
19581 \begin_inset Index idx
19584 \begin_layout Plain Layout
19585 Floats ! Introduction
19593 \begin_layout Standard
19594 A float is a block of text associated with some sort of label, which doesn't
19595 have a fixed location.
19597 \begin_inset Quotes eld
19601 \begin_inset Quotes erd
19604 forward or backward a page or two, to wherever it fits best.
19612 \begin_inset space ~
19617 are also floats, because they can float to the next page when there are
19618 too many notes on the page.
19621 \begin_layout Standard
19622 Floats allow a high quality layout.
19623 Images and tables can be spread evenly to the pages to avoid white space
19624 and pages without text.
19625 As the floating often destroys the context between the text and the image/table
19626 , every float can be referenced in the text.
19627 Floats are therefore numbered.
19628 Referencing is described in section
19629 \begin_inset space ~
19633 \begin_inset CommandInset ref
19635 reference "sec:Referencing-Floats"
19642 \begin_layout Standard
19643 To insert a float, use the menu
19645 Insert\SpecialChar \menuseparator
19653 inset, a box with a label.
19654 The label will automatically be translated to the document language in
19656 After the label you can insert the caption text.
19657 The image or table is inserted above or below the caption in a separate
19658 paragraph within the float.
19659 More about the caption placement is contained in section
19660 \begin_inset space ~
19664 \begin_inset CommandInset ref
19666 reference "sec:Caption-Placement"
19671 To keep your LyX-document readable, you can open and close the float box
19672 by left-clicking on the box label.
19673 A closed float box looks like this:
19674 \begin_inset Graphics
19675 filename clipart/floatQt4.png
19677 scaleBeforeRotation
19681 – a gray button with a red label.
19684 \begin_layout Standard
19685 It is recommended that you insert floats as a separate standard paragraph
19686 to avoid possible LaTeX-errors that can occur when the surrounding text
19687 is specially formatted.
19690 \begin_layout Standard
19691 Existing figures or tables can be put into a float by highlighting them
19692 and then pressing the corresponding toolbar button for a new float.
19695 \begin_layout Section
19699 \begin_layout Standard
19700 Besides figure and table floats that are described in sections
19701 \begin_inset space ~
19705 \begin_inset CommandInset ref
19707 reference "sec:Figure-Floats"
19712 \begin_inset CommandInset ref
19714 reference "sec:Table-Floats"
19718 respectively, LyX offers the float types
19729 \begin_layout Subsection
19731 \begin_inset Index idx
19734 \begin_layout Plain Layout
19735 Floats ! Algorithms
19743 \begin_layout Standard
19744 \begin_inset Float algorithm
19750 \begin_layout Plain Layout
19751 \begin_inset Caption
19753 \begin_layout Plain Layout
19754 \begin_inset CommandInset label
19756 name "alg:Example-Algorithm-float"
19760 Example Algorithm float
19768 \begin_layout LyX-Code
19770 \begin_inset Newline newline
19773 Sum:= Sum + A(I); /*comment*/
19774 \begin_inset Newline newline
19778 \begin_inset VSpace -4mm
19789 \begin_layout Standard
19790 This float type is inserted with the menu
19792 Insert\SpecialChar \menuseparator
19793 Floats\SpecialChar \menuseparator
19797 It is used for program codes and descriptions of algorithms and can be
19798 seen as an alternative to program code listings that are explained in chapter
19799 \begin_inset space ~
19803 \begin_inset CommandInset ref
19805 reference "cha:Program-Code-Listings"
19810 A possible environment for algorithms is the
19814 , described in LyX's
19820 \begin_inset space ~
19824 \begin_inset CommandInset ref
19826 reference "alg:Example-Algorithm-float"
19830 is an example of an algorithm float where -4
19831 \begin_inset space \thinspace{}
19834 mm vertical space was added at the end of the float to have the bottom rule
19835 exactly below the last text line.
19838 \begin_layout Standard
19839 The float label is not automatically translated into the document language.
19840 If your document is not in English, you have to do this manually by adding
19841 the following line to the document preamble
19846 \begin_layout Standard
19851 floatname{algorithm}{your
19852 \begin_inset space ~
19858 \begin_layout Standard
19862 \begin_inset space ~
19868 \begin_inset Quotes eld
19876 \begin_inset Quotes erd
19882 \begin_layout Standard
19883 To insert the list of algorithms you can use the menu
19885 Insert\SpecialChar \menuseparator
19887 \begin_inset space \thinspace{}
19891 \begin_inset space \thinspace{}
19894 TOC\SpecialChar \menuseparator
19897 when your document has the same language as LyX's menu names.
19898 In other cases use this command in TeX-Code instead:
19901 \begin_layout Standard
19906 listof{algorithm}{your
19907 \begin_inset space ~
19913 \begin_layout Standard
19917 \begin_inset space ~
19923 \begin_inset Quotes eld
19931 \begin_inset Quotes erd
19937 \begin_layout Standard
19938 Algorithm floats are not by default numbered in the scheme
19939 \begin_inset Quotes eld
19943 \begin_inset Quotes erd
19946 as is the case for table and figure floats in many document-classes.
19947 To number algorithm floats in the same scheme, add this command to your
19951 \begin_layout Standard
19956 numberwithin{algorithm}{chapter}
19959 \begin_layout Standard
19960 To be able to use the command
19969 \begin_inset space ~
19974 in the document settings the option
19977 \begin_inset space ~
19981 \begin_inset space ~
19985 \begin_inset space ~
19993 \begin_layout Subsection
19995 \begin_inset Index idx
19998 \begin_layout Plain Layout
19999 Floats ! Wrap Floats
20007 \begin_layout Standard
20008 \begin_inset Wrap figure
20015 \begin_layout Plain Layout
20016 \begin_inset Graphics
20017 filename clipart/mobius.eps
20019 scaleBeforeRotation
20020 rotateOrigin center
20027 \begin_layout Plain Layout
20028 \begin_inset Caption
20030 \begin_layout Plain Layout
20031 \begin_inset CommandInset label
20033 name "fig:This-is-a"
20037 This is a figure wrap float.
20047 This float type is used if you want to wrap text around a figure or table
20048 so that it only occupies some fraction of the column width.
20049 It can be inserted using the menu
20051 Insert\SpecialChar \menuseparator
20052 Floats\SpecialChar \menuseparator
20054 \begin_inset space ~
20058 \begin_inset space ~
20066 \begin_inset space ~
20070 \begin_inset space ~
20075 if the LaTeX-package
20080 \begin_inset Index idx
20083 \begin_layout Plain Layout
20084 LaTeX-packages ! wrapfig
20088 \begin_layout Plain Layout
20106 \begin_layout Plain Layout
20107 Installing a LaTeX-package is explained it in the
20110 \begin_inset space ~
20120 The settings of the float can be modified by right-clicking on the float
20122 The mandatory settings are the float
20135 that specifies how much the float is set into the paragraph
20136 \begin_inset space \thinspace{}
20140 \begin_inset space \thinspace{}
20143 page margin, and the
20146 \begin_inset space ~
20151 that specifies how many text lines the float will approximately need.
20152 The line span is often hard to approximate; so it is better only to use
20153 it when you encounter float placement problems.
20154 You can furthermore decide if LaTeX is allowed to let the float float within
20155 the paragraph or to surrounding paragraphs.
20157 \begin_inset space ~
20161 \begin_inset CommandInset ref
20163 reference "fig:This-is-a"
20167 is an example text wrap float with a width of 40
20168 \begin_inset space \thinspace{}
20172 \begin_inset space \thinspace{}
20175 cm overhang, set to the left.
20179 \begin_layout Plain Layout
20180 Available units are explained in appendix
20181 \begin_inset space ~
20185 \begin_inset CommandInset ref
20187 reference "cha:Units-available-in"
20199 \begin_layout Standard
20200 \begin_inset Note Greyedout
20203 \begin_layout Plain Layout
20209 \begin_inset space ~
20212 wrap float floats are fragile! E.
20213 \begin_inset space \thinspace{}
20217 \begin_inset space \space{}
20220 having a figure too close to the bottom of the page can mess things up in
20221 such a way that the float does not appear in the output or that it is placed
20222 over some other text.
20230 \begin_layout Standard
20234 \begin_layout Itemize
20235 Wrap floats should not be placed in paragraphs that run over a page break.
20236 That means that wrap floats are better inserted in their exact place when
20237 the document is almost finished and you are able to estimate where page
20238 breaks will appear.
20241 \begin_layout Itemize
20242 Wrap floats should either be placed in their own paragraph before the paragraph
20243 where they should wrap into or within a paragraph.
20246 \begin_layout Itemize
20247 Wrap floats in consecutive paragraphs may cause troubles, so ensure that
20248 there is a text paragraph between them as separator.
20251 \begin_layout Itemize
20252 Wrap floats are not allowed in section headings or tables.
20255 \begin_layout Section
20257 \begin_inset Index idx
20260 \begin_layout Plain Layout
20269 \begin_layout Standard
20270 Floats are usually numbered either independently from the sections the floats
20271 are in, or in the scheme
20272 \begin_inset Quotes eld
20276 \begin_inset Quotes erd
20280 \begin_inset Quotes eld
20284 \begin_inset Quotes erd
20288 This depends on the document class used.
20291 \begin_layout Standard
20292 To change section-independent numbering, you can use this command in the
20296 \begin_layout Standard
20308 \begin_layout Standard
20315 is the command that prints the table number, for figure floats, the command
20329 in the command above prints the table number as small roman number.
20332 \begin_layout Standard
20333 To change the numbering scheme for example to
20334 \begin_inset Quotes eld
20338 \begin_inset Quotes erd
20341 , use this command in the preamble:
20344 \begin_layout Standard
20349 numberwithin{table}{subsection}
20352 \begin_layout Standard
20353 To be able to use the command
20362 \begin_inset space ~
20367 in the document settings the option
20370 \begin_inset space ~
20374 \begin_inset space ~
20378 \begin_inset space ~
20386 \begin_layout Standard
20387 Please also have a look at section
20388 \begin_inset space ~
20392 \begin_inset CommandInset ref
20394 reference "sub:Footnote-Numbering"
20398 for the details and important notes about the numbering commands.
20401 \begin_layout Section
20403 \begin_inset CommandInset label
20405 name "sec:Referencing-Floats"
20410 \begin_inset Index idx
20413 \begin_layout Plain Layout
20414 Floats ! References
20420 \begin_inset Index idx
20423 \begin_layout Plain Layout
20424 References ! to Floats
20432 \begin_layout Standard
20433 To reference a float, insert a label into its caption using the menu
20435 Insert\SpecialChar \menuseparator
20438 or the toolbar button
20439 \begin_inset Graphics
20440 filename ../images/label-insert.png
20442 scaleBeforeRotation
20447 A grey label box like this one:
20448 \begin_inset Graphics
20449 filename clipart/labelQt4.png
20451 scaleBeforeRotation
20455 will be inserted and the label window pops up asking for the label text.
20456 LyX offers as text the first words of the caption with a prefix.
20457 The prefix depends on the float type, e.
20458 \begin_inset space \thinspace{}
20462 \begin_inset space \space{}
20465 for figure floats the prefix will be "
20472 \begin_layout Standard
20473 The label is used as anchor and name for the reference.
20474 You can refer to the label using the menu
20476 Insert\SpecialChar \menuseparator
20479 or the toolbar button
20480 \begin_inset Graphics
20481 filename ../images/dialog-show-new-inset_ref.png
20483 scaleBeforeRotation
20488 A grey cross-reference box like this one:
20489 \begin_inset Graphics
20490 filename clipart/referenceQt4.png
20492 scaleBeforeRotation
20496 will be inserted and the cross-reference window appear showing all labels
20498 If you have multiple LyX-documents opened, choose the one you are working
20499 on from the drop-list at the top of the dialog.
20500 You can now sort the labels alphabetically and then choose one.
20501 At the position of the cross-reference box the float number will appear
20505 \begin_layout Standard
20506 It is recommended that you use a protected space between the cross-reference
20507 name and its number to avoid line breaks between them.
20508 If a cross-reference refers to a non-existing label, you will see two question
20509 marks in the output instead of the reference.
20512 \begin_layout Standard
20513 You can change labels at any time by clicking on the label box.
20514 References to the changed label will automatically change its link to the
20515 new label text, so that you don't need to take care about this.
20518 \begin_layout Standard
20522 \begin_inset space ~
20526 \begin_inset space ~
20531 in the cross-reference window sets the cursor before the referred label.
20532 The button text changes then to Go
20533 \begin_inset space ~
20536 Back and you can use it to set the cursor back to the cross-reference.
20537 Right-clicking on a cross-reference box also sets the cursor before the
20538 referenced label but without the possibility of going back.
20541 \begin_layout Subsection
20542 Cross-Reference Formats
20543 \begin_inset CommandInset label
20545 name "sub:Cross-Reference-Formats"
20550 \begin_inset Index idx
20553 \begin_layout Plain Layout
20554 References ! Formats
20562 \begin_layout Standard
20563 There are six varieties of cross-references:
20566 \begin_layout Description
20567 <reference>: prints the float number, this is the default:
20568 \begin_inset CommandInset ref
20570 reference "fig:Two-distorted-images"
20577 \begin_layout Description
20578 (<reference>): prints the float number within two parentheses, this is the
20579 style normally used to reference formulas, especially when the reference
20581 \begin_inset Quotes eld
20585 \begin_inset Quotes erd
20589 \begin_inset CommandInset ref
20598 \begin_layout Description
20599 <page>: prints the page number: Page
20600 \begin_inset space ~
20604 \begin_inset CommandInset ref
20605 LatexCommand pageref
20606 reference "fig:Two-distorted-images"
20613 \begin_layout Description
20615 \begin_inset space ~
20619 \begin_inset space ~
20622 <page>: prints the text "on page" and the page number:
20623 \begin_inset CommandInset ref
20624 LatexCommand vpageref
20625 reference "fig:Two-distorted-images"
20632 \begin_layout Description
20634 \begin_inset space ~
20638 \begin_inset space ~
20642 \begin_inset space ~
20645 <page>: prints the float number, the text "on page", and the page number:
20647 \begin_inset CommandInset ref
20649 reference "fig:Two-distorted-images"
20656 \begin_layout Description
20658 \begin_inset space ~
20661 reference: prints a self-defined cross-reference format.
20662 \begin_inset Newline newline
20666 \begin_inset Note Greyedout
20669 \begin_layout Plain Layout
20674 This feature is only available when you have the LaTeX-package
20683 \begin_inset Index idx
20686 \begin_layout Plain Layout
20687 LaTeX-packages ! prettyref
20693 \begin_inset Index idx
20696 \begin_layout Plain Layout
20697 LaTeX-packages ! refstyle
20708 \begin_inset Newline newline
20711 You can select which LaTeX-package should be used for this feature by setting
20714 Use refstyle (not prettyref) for cross-references
20718 Document\SpecialChar \menuseparator
20719 Settings\SpecialChar \menuseparator
20723 The format is specified by adding the command
20735 (refstyle) to the preamble of the document.
20736 For example redefining all references to figures (which have the label
20738 \begin_inset Quotes eld
20746 \begin_inset Quotes erd
20749 ) can be done with this command
20750 \begin_inset Newline newline
20757 newref{fig}{refcmd={Image on page
20762 \begin_inset Newline newline
20765 For more information about the format, have a look at the package documentations
20767 \begin_inset CommandInset citation
20769 key "prettyref,refstyle"
20776 \begin_layout Description
20778 \begin_inset space ~
20781 reference: prints the caption of the reference:
20782 \begin_inset CommandInset ref
20783 LatexCommand nameref
20784 reference "fig:Two-distorted-images"
20791 \begin_layout Standard
20796 will not print the page number if the label is on the previous, the same,
20799 \begin_inset space \thinspace{}
20803 \begin_inset space \space{}
20807 \begin_inset Quotes eld
20815 \begin_inset Quotes erd
20821 <reference> on page <page>
20823 will not print anything about the page if the label is on the same page.
20826 \begin_layout Standard
20827 The number and current page of the part of the document referred to in the
20828 output is automatically calculated by LaTeX.
20829 The varieties are adjusted in the field
20833 of the cross-reference window that appears when you click on the cross-referenc
20837 \begin_layout Standard
20838 \begin_inset Note Greyedout
20841 \begin_layout Plain Layout
20846 It is recommended to use the LaTeX-package
20851 \begin_inset Index idx
20854 \begin_layout Plain Layout
20855 LaTeX-packages ! refstyle
20865 \begin_inset Index idx
20868 \begin_layout Plain Layout
20869 LaTeX-packages ! prettyref
20874 does not know all of LyX's possible label shortcuts
20878 \begin_layout Plain Layout
20879 \begin_inset Quotes eld
20883 \begin_inset Quotes erd
20886 is for example LyX's shortcut for labels in figure captions.
20891 and is not internationalized.
20899 \begin_layout Standard
20900 \begin_inset Note Greyedout
20903 \begin_layout Plain Layout
20908 Due to a bug in the LaTeX-package
20912 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20913 languages that make the period character active (like French).
20914 For a workaround, see
20915 \begin_inset Newline newline
20919 \begin_inset CommandInset href
20921 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20933 \begin_layout Subsection
20934 Automatic Reference Naming
20935 \begin_inset Index idx
20938 \begin_layout Plain Layout
20939 References ! Automatic Reference Naming
20947 \begin_layout Standard
20953 \begin_inset Index idx
20956 \begin_layout Plain Layout
20957 LaTeX-packages ! hyperref
20962 , that is enabled in the
20970 dialog, provides a very useful feature that cross-references automatically
20971 include the name of the referenced floats (or text parts like
20976 So you will save having to write e.
20977 \begin_inset space \thinspace{}
20981 \begin_inset space \space{}
20985 \begin_inset Quotes eld
20989 \begin_inset Quotes erd
20992 before every reference to a figure.
20993 To use this feature, enable
20997 and insert this line to the LaTeX preamble:
21000 \begin_layout Standard
21016 \begin_layout Standard
21017 When you prefer other reference names than the default ones, for example
21018 you want instead of
21019 \begin_inset Quotes eld
21023 \begin_inset Quotes erd
21027 \begin_inset Quotes eld
21031 \begin_inset space \thinspace{}
21035 \begin_inset Quotes eld
21038 , you can redefine the name by inserting this in the preamble:
21041 \begin_layout Standard
21052 sectionautorefname}
21053 \begin_inset Newline newline
21057 \begin_inset Phantom HPhantom
21060 \begin_layout Plain Layout
21063 \begin_inset space ~
21076 \begin_layout Standard
21077 When you are using another document language than English, replace
21078 \begin_inset Newline newline
21093 , where *** is the name of the language used.
21096 \begin_layout Standard
21097 To get automatic names, but not for certain reference types, for example
21098 not for equations, use this preamble code:
21101 \begin_layout Standard
21109 \begin_inset Newline newline
21119 \begin_inset Newline newline
21130 equationautorefname}
21131 \begin_inset Newline newline
21135 \begin_inset Phantom HPhantom
21138 \begin_layout Plain Layout
21141 \begin_inset space ~
21156 \begin_layout Standard
21157 More about this topic can be found in
21162 \begin_inset CommandInset citation
21171 \begin_layout Standard
21172 \begin_inset Note Greyedout
21175 \begin_layout Plain Layout
21180 Automatic reference naming cannot be used when you use cross-references
21184 \begin_inset space ~
21189 style, as described in section
21190 \begin_inset space ~
21194 \begin_inset CommandInset ref
21196 reference "sub:Cross-Reference-Formats"
21208 \begin_layout Standard
21213 manual is an example where automatic reference naming is used.
21216 \begin_layout Subsection
21218 \begin_inset CommandInset label
21220 name "sub:Reference-Position"
21225 \begin_inset Index idx
21228 \begin_layout Plain Layout
21229 References ! Reference Position
21237 \begin_layout Standard
21243 \begin_inset Index idx
21246 \begin_layout Plain Layout
21247 LaTeX-packages ! hyperref
21260 dialog to link cross-references in the output, you will see that clicking
21261 on an image float reference jumps to the image label.
21262 The caption will be the first text part on the screen, so that you cannot
21263 see the image without scrolling.
21264 This is because the reference link anchor is placed at the position of
21266 With the use of the package
21271 \begin_inset Index idx
21274 \begin_layout Plain Layout
21275 LaTeX-packages ! hypcap
21280 , which is part of the LaTeX-package
21285 \begin_inset Index idx
21288 \begin_layout Plain Layout
21289 LaTeX-packages ! oberdiek
21294 , the link anchor is placed at the beginning of a float.
21295 To use this feature for figure floats, load
21299 in the document preamble with the line
21302 \begin_layout Standard
21307 usepackage[figure]{hypcap}
21310 \begin_layout Standard
21315 for all float types but this is not recommended for stability reasons.
21316 For more information, have a look at
21321 \begin_inset CommandInset citation
21330 \begin_layout Standard
21331 \begin_inset Note Greyedout
21334 \begin_layout Plain Layout
21343 has no effect on references to subfigures.
21351 \begin_layout Section
21353 \begin_inset CommandInset label
21355 name "sec:Float-Placement"
21360 \begin_inset Index idx
21363 \begin_layout Plain Layout
21372 \begin_layout Standard
21373 Right-clicking on a float-box opens a dialog where you can alter the placement
21374 options that LaTeX uses for positioning the float.
21375 \begin_inset Newline newline
21381 \begin_inset space ~
21386 is only useful for two-column documents: If you select it, the float will
21387 span both columns on the page instead of being confined to just one.
21388 \begin_inset Newline newline
21394 \begin_inset space ~
21399 is used to rotate floats, see section
21400 \begin_inset CommandInset ref
21402 reference "sec:Rotated-Floats"
21409 \begin_layout Standard
21410 You can use one ore more of the following options in the float dialog to
21411 set the placement for a particular float when you uncheck the option
21414 \begin_inset space ~
21418 \begin_inset space ~
21426 \begin_layout Description
21428 \begin_inset space ~
21432 \begin_inset space ~
21435 possible try to place the float on the position where it has been inserted
21438 \begin_layout Description
21440 \begin_inset space ~
21444 \begin_inset space ~
21447 page try to place the float at the top of the current page
21450 \begin_layout Description
21452 \begin_inset space ~
21456 \begin_inset space ~
21459 page try to place the float at the bottom of the current page
21462 \begin_layout Description
21464 \begin_inset space ~
21468 \begin_inset space ~
21471 floats try to place the float on its own page
21474 \begin_layout Standard
21475 The order of the above option is
21480 That means, if you use the default placement, LaTeX will first try out
21484 \begin_inset space ~
21488 \begin_inset space ~
21496 \begin_inset space ~
21500 \begin_inset space ~
21505 , and then the others.
21506 If you do not use the default, LaTeX will try only the checked options
21507 but in the same order.
21509 \begin_inset space ~
21512 placements are possible the procedure is internally repeated but it is tried
21513 to put the float on the following page.
21516 \begin_layout Standard
21517 By default, each option has its own rules:
21520 \begin_layout Labeling
21521 \labelwidthstring 00.00.0000
21525 \begin_inset space ~
21529 \begin_inset space ~
21534 only floats occupying less than 70
21535 \begin_inset space \thinspace{}
21538 % of the page can be placed at the top of a page (
21547 \begin_layout Labeling
21548 \labelwidthstring 00.00.0000
21552 \begin_inset space ~
21556 \begin_inset space ~
21561 : only floats occupying less than 30
21562 \begin_inset space \thinspace{}
21565 % of the page can be placed at the bottom of a page.
21575 \begin_layout Labeling
21576 \labelwidthstring 00.00.0000
21580 \begin_inset space ~
21584 \begin_inset space ~
21589 : only if more than 50
21590 \begin_inset space \thinspace{}
21593 % of the page are occupied by floats, several floats can be set together
21604 \begin_layout Standard
21605 If you don't like these rules, you can ignore them by using the additional
21609 \begin_inset space ~
21613 \begin_inset space ~
21619 \begin_inset Newline newline
21622 You can also redefine the rules with LaTeX-commands that are given in parenthese
21623 s after the rules description above.
21624 To increase for example the often too small default of the bottom-rule
21626 \begin_inset space \thinspace{}
21629 % of the page, add this line to your document preamble:
21632 \begin_layout Standard
21639 bottomfraction}{0.5}
21642 \begin_layout Standard
21643 Sometimes you might need, under all circumstances, a float to be placed
21644 exactly at the position where it is inserted.
21645 For this case you can use the option
21648 \begin_inset space ~
21654 Use this option very rarely and only if the document is almost ready to
21655 be printed, because the float is then no longer able to
21656 \begin_inset Quotes eld
21660 \begin_inset Quotes erd
21663 when you change your document and this will often destroy the page layout.
21666 \begin_layout Standard
21667 There are no placement options for text wrap floats, because they are always
21668 surrounded by the text of a certain paragraph.
21669 \begin_inset VSpace bigskip
21675 \begin_layout Standard
21676 Sometimes you have the problem that a float is placed at the top of a page
21677 while its corresponding section starts at the middle of the page, so that
21678 the reader could think the float is part of the previous section.
21679 To avoid this the LaTeX-command
21686 It suppresses a given float placement for the page where it is inserted
21687 and can therefore be used to avoid floats being set before a section starts.
21688 To get this, add these commands to your document preamble:
21691 \begin_layout Standard
21701 \begin_inset Newline newline
21715 \begin_layout Standard
21716 You can define the same for all section headings, like chapters and subsections.
21717 This definition is not recommended to be used for small text parts like
21718 subsubsections because LaTeX may then have problems finding a suitable
21722 \begin_layout Standard
21723 \begin_inset VSpace bigskip
21726 In some cases it is required to have all figures/tables at the end of the
21728 For this purpose the LaTeX-package
21733 \begin_inset Index idx
21736 \begin_layout Plain Layout
21737 LaTeX-packages ! endfloat
21743 It puts all figure and table floats at the end of the document into their
21745 At the original float position a text hint like
21746 \begin_inset Quotes eld
21752 \begin_inset space ~
21758 \begin_inset Quotes erd
21762 The endfloat-package is loaded in the preamble with the line
21765 \begin_layout Standard
21770 usepackage[options]{endfloat}
21773 \begin_layout Standard
21774 There are various package options to format the created figure/table sections.
21775 For more information we refer to the
21780 \begin_inset CommandInset citation
21787 \begin_inset Newline newline
21791 \begin_inset Note Greyedout
21794 \begin_layout Plain Layout
21799 doesn't provide an automatic translation for the text hint, you have to
21800 do this manually, see section
21801 \begin_inset space ~
21805 \begin_inset CommandInset citation
21817 \begin_inset Newline newline
21821 \begin_inset Note Greyedout
21824 \begin_layout Plain Layout
21829 There is currently a bug in
21833 when the caption contains a German
21834 \begin_inset Quotes eld
21838 \begin_inset Quotes erd
21842 Use in this case the command
21843 \begin_inset Quotes eld
21853 \begin_inset Quotes erd
21856 in TeX-Code instead of
21857 \begin_inset Quotes eld
21861 \begin_inset Quotes erd
21872 \begin_layout Standard
21873 \begin_inset VSpace bigskip
21876 For more details about float placements, have a look at LaTeX books,
21877 \begin_inset CommandInset citation
21879 key "latexcompanion,latexguide,latexbook"
21886 \begin_layout Section
21888 \begin_inset CommandInset label
21890 name "sec:Rotated-Floats"
21895 \begin_inset Index idx
21898 \begin_layout Plain Layout
21907 \begin_layout Standard
21908 Especially for wide tables you might have floats rotated.
21909 To rotate a whole float including the caption, right-click on the float-box
21913 \begin_inset space ~
21921 \begin_layout Standard
21922 Rotated floats are always placed on a page of their own (or column of their
21923 own; in case you have a multi-column document).
21924 You can let them span several columns using the float settings option
21927 \begin_inset space ~
21933 Floats are rotated so that you can read them from the outside margin.
21934 To force a certain rotation direction for all pages, you can add either
21943 to the document class options.
21946 \begin_layout Standard
21947 Referencing rotated floats is the same as for normal floats, the caption
21948 format is also the same: Table
21949 \begin_inset space ~
21953 \begin_inset CommandInset ref
21955 reference "tab:Rotated-table"
21959 is an example of a rotated table float.
21962 \begin_layout Standard
21963 \begin_inset Note Greyedout
21966 \begin_layout Plain Layout
21971 Not all DVI-viewers are able to display rotated floats.
21979 \begin_layout Standard
21980 \begin_inset Float table
21985 \begin_layout Plain Layout
21986 \begin_inset Caption
21988 \begin_layout Plain Layout
21989 \begin_inset CommandInset label
21991 name "tab:Rotated-table"
22003 \begin_layout Plain Layout
22005 \begin_inset Tabular
22006 <lyxtabular version="3" rows="1" columns="5">
22007 <features tabularvalignment="middle">
22008 <column alignment="center" valignment="top" width="0">
22009 <column alignment="center" valignment="top" width="0">
22010 <column alignment="center" valignment="top" width="0">
22011 <column alignment="center" valignment="top" width="0">
22012 <column alignment="center" valignment="top" width="0">
22014 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22017 \begin_layout Plain Layout
22023 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22026 \begin_layout Plain Layout
22032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22035 \begin_layout Plain Layout
22041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22044 \begin_layout Plain Layout
22050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22053 \begin_layout Plain Layout
22072 \begin_layout Section
22074 \begin_inset Index idx
22077 \begin_layout Plain Layout
22086 \begin_layout Standard
22087 Subfloats are for example used when a figure consists of several images.
22088 They are created by inserting a float into an existing float.
22089 The placement of the subfloats can be controlled in the same way as for
22090 paragraphs as shown in table
22091 \begin_inset space ~
22095 \begin_inset CommandInset ref
22097 reference "tab:Two-subtables-side"
22102 \begin_inset CommandInset ref
22104 reference "tab:Two-subtables-upon"
22111 \begin_layout Standard
22112 Referencing subfloats works as for normal floats: Table
22113 \begin_inset space ~
22117 \begin_inset CommandInset ref
22119 reference "tab:This-is-subtable-a"
22124 \begin_inset CommandInset ref
22126 reference "tab:This-is-subtable-b"
22130 are subtables of table
22131 \begin_inset space ~
22135 \begin_inset CommandInset ref
22137 reference "tab:Two-subtables-side"
22144 \begin_layout Standard
22145 \begin_inset Float table
22150 \begin_layout Plain Layout
22151 \begin_inset Caption
22153 \begin_layout Plain Layout
22154 \begin_inset CommandInset label
22156 name "tab:Two-subtables-side"
22160 Two subtables placed side by side.
22168 \begin_layout Plain Layout
22170 \begin_inset space \hfill{}
22174 \begin_inset Float table
22179 \begin_layout Plain Layout
22180 \begin_inset Caption
22182 \begin_layout Plain Layout
22183 \begin_inset CommandInset label
22185 name "tab:This-is-subtable-a"
22189 This is subtable a.
22197 \begin_layout Plain Layout
22199 \begin_inset Tabular
22200 <lyxtabular version="3" rows="1" columns="5">
22201 <features tabularvalignment="middle">
22202 <column alignment="center" valignment="top" width="0">
22203 <column alignment="center" valignment="top" width="0">
22204 <column alignment="center" valignment="top" width="0">
22205 <column alignment="center" valignment="top" width="0">
22206 <column alignment="center" valignment="top" width="0">
22208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22211 \begin_layout Plain Layout
22217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22220 \begin_layout Plain Layout
22226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22229 \begin_layout Plain Layout
22235 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22238 \begin_layout Plain Layout
22244 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22247 \begin_layout Plain Layout
22264 \begin_inset space \hfill{}
22268 \begin_inset Float table
22273 \begin_layout Plain Layout
22274 \begin_inset Caption
22276 \begin_layout Plain Layout
22277 \begin_inset CommandInset label
22279 name "tab:This-is-subtable-b"
22283 This is subtable b.
22291 \begin_layout Plain Layout
22293 \begin_inset Tabular
22294 <lyxtabular version="3" rows="1" columns="5">
22295 <features tabularvalignment="middle">
22296 <column alignment="center" valignment="top" width="0">
22297 <column alignment="center" valignment="top" width="0">
22298 <column alignment="center" valignment="top" width="0">
22299 <column alignment="center" valignment="top" width="0">
22300 <column alignment="center" valignment="top" width="0">
22302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22305 \begin_layout Plain Layout
22311 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22314 \begin_layout Plain Layout
22320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22323 \begin_layout Plain Layout
22329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22332 \begin_layout Plain Layout
22338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22341 \begin_layout Plain Layout
22358 \begin_inset space \hfill{}
22369 \begin_layout Standard
22370 \begin_inset Float table
22375 \begin_layout Plain Layout
22376 \begin_inset Caption
22378 \begin_layout Plain Layout
22379 \begin_inset CommandInset label
22381 name "tab:Two-subtables-upon"
22385 Two subtables placed one above the other.
22386 (a) table with 4 cells, (b) table with 5 cells.
22394 \begin_layout Plain Layout
22396 \begin_inset Float table
22401 \begin_layout Plain Layout
22402 \begin_inset Caption
22404 \begin_layout Plain Layout
22413 \begin_layout Plain Layout
22415 \begin_inset Tabular
22416 <lyxtabular version="3" rows="1" columns="4">
22417 <features tabularvalignment="middle">
22418 <column alignment="center" valignment="top" width="0">
22419 <column alignment="center" valignment="top" width="0">
22420 <column alignment="center" valignment="top" width="0">
22421 <column alignment="center" valignment="top" width="0">
22423 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22426 \begin_layout Plain Layout
22432 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22435 \begin_layout Plain Layout
22441 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22444 \begin_layout Plain Layout
22450 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22453 \begin_layout Plain Layout
22472 \begin_layout Plain Layout
22474 \begin_inset Float table
22479 \begin_layout Plain Layout
22480 \begin_inset Caption
22482 \begin_layout Plain Layout
22491 \begin_layout Plain Layout
22493 \begin_inset Tabular
22494 <lyxtabular version="3" rows="1" columns="5">
22495 <features tabularvalignment="middle">
22496 <column alignment="center" valignment="top" width="0">
22497 <column alignment="center" valignment="top" width="0">
22498 <column alignment="center" valignment="top" width="0">
22499 <column alignment="center" valignment="top" width="0">
22500 <column alignment="center" valignment="top" width="0">
22502 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22505 \begin_layout Plain Layout
22511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22514 \begin_layout Plain Layout
22520 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22523 \begin_layout Plain Layout
22529 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22532 \begin_layout Plain Layout
22538 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22541 \begin_layout Plain Layout
22565 \begin_layout Section
22566 Floats Side by Side
22567 \begin_inset Index idx
22570 \begin_layout Plain Layout
22571 Floats ! Side by side
22579 \begin_layout Standard
22580 To place floats side by side, as in Figures
22581 \begin_inset space ~
22585 \begin_inset CommandInset ref
22587 reference "fig:Float-left"
22592 \begin_inset CommandInset ref
22594 reference "fig:Float-right"
22603 In it two minipage boxes are inserted.
22607 \begin_layout Plain Layout
22608 Minipages are explained in section
22609 \begin_inset space ~
22613 \begin_inset CommandInset ref
22615 reference "sec:Minipages"
22624 The width is set to 45
22625 \begin_inset space \thinspace{}
22629 \begin_inset space \thinspace{}
22632 column% and the box alignment to
22637 The minipage boxes contain the image and the caption in the same way as
22638 they are in a float.
22639 The only difference is that the image unit
22642 \begin_inset space ~
22646 \begin_inset space ~
22651 is now calculated according to the width of the minipage boxes.
22654 \begin_layout Standard
22655 \begin_inset Float figure
22660 \begin_layout Plain Layout
22661 \begin_inset Box Frameless
22671 height_special "totalheight"
22674 \begin_layout Plain Layout
22676 \begin_inset Graphics
22677 filename clipart/mobius.eps
22680 scaleBeforeRotation
22687 \begin_layout Plain Layout
22688 \begin_inset Caption
22690 \begin_layout Plain Layout
22691 \begin_inset CommandInset label
22693 name "fig:Float-left"
22697 Float on the left side.
22708 \begin_inset space \hfill{}
22712 \begin_inset Box Frameless
22722 height_special "totalheight"
22725 \begin_layout Plain Layout
22727 \begin_inset Graphics
22728 filename clipart/platypus.eps
22731 scaleBeforeRotation
22738 \begin_layout Plain Layout
22739 \begin_inset Caption
22741 \begin_layout Plain Layout
22742 \begin_inset CommandInset label
22744 name "fig:Float-right"
22748 Float on the right side.
22761 \begin_layout Plain Layout
22770 \begin_layout Section
22772 \begin_inset Index idx
22775 \begin_layout Plain Layout
22776 Caption ! Formatting
22782 \begin_inset Index idx
22785 \begin_layout Plain Layout
22786 Floats ! Caption Formatting
22792 \begin_inset CommandInset label
22794 name "sec:Caption-Formatting"
22801 \begin_layout Standard
22806 environment is the default paragraph environment for
22811 On the LyX screen captions appear as label, e.
22812 \begin_inset space \thinspace{}
22816 \begin_inset space \space{}
22820 \begin_inset Quotes eld
22828 \begin_inset Quotes erd
22831 followed by the caption text.
22833 \begin_inset Quotes eld
22837 \begin_inset Quotes erd
22840 is the actual reference number.
22841 By default the label and the number are in the same font as the caption
22842 text and a colon follows the number to divide the label from the text.
22843 This caption format is not suitable for all document formats.
22847 \begin_layout Standard
22848 To change the default caption format, load the LaTeX-package
22853 \begin_inset Index idx
22856 \begin_layout Plain Layout
22857 LaTeX-packages ! caption
22862 in the document preamble with this line:
22865 \begin_layout Standard
22870 usepackage[format definition]{caption}
22873 \begin_layout Standard
22874 To have for example the label and the number in sans-serif bold font and
22875 the table captions always above the table as in this document, use the
22879 \begin_layout Standard
22884 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22887 \begin_layout Standard
22888 You can also define different caption formats for the different float types.
22889 In this case load the
22893 package without format specific options and define the different formats
22894 with the help of the command
22897 \begin_layout Standard
22902 captionsetup[float type]{format definition}
22905 \begin_layout Standard
22906 in the document preamble.
22907 For example the caption formats of Figure
22908 \begin_inset space ~
22912 \begin_inset CommandInset ref
22914 reference "fig:This-is-an-fig"
22919 \begin_inset space ~
22923 \begin_inset CommandInset ref
22925 reference "tab:This-is-an-tab"
22929 can be created using these commands in the document preamble:
22932 \begin_layout Standard
22937 usepackage[tableposition=top]{caption}
22940 \begin_inset Newline newline
22947 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22948 \begin_inset Newline newline
22952 \begin_inset Phantom HPhantom
22955 \begin_layout Plain Layout
22960 captionsetup[figure]{
22966 \begin_inset Newline newline
22971 captionsetup[table]{labelfont={bf,sf}}
22974 \begin_layout Standard
22975 \begin_inset Note Greyedout
22978 \begin_layout Plain Layout
22987 has no effect when a
22992 \begin_inset Index idx
22995 \begin_layout Plain Layout
22996 LaTeX-packages ! KOMA-Script
23001 document class is used.
23002 In this case the document class option
23004 captions=tableheading
23014 \begin_layout Standard
23015 For more information about the package
23019 we refer to its documentation
23020 \begin_inset CommandInset citation
23029 \begin_layout Standard
23030 To change the label name from e.
23031 \begin_inset space \thinspace{}
23035 \begin_inset space \space{}
23039 \begin_inset Quotes eld
23043 \begin_inset Quotes erd
23047 \begin_inset Quotes eld
23051 \begin_inset Quotes erd
23054 use this preamble command:
23057 \begin_layout Standard
23064 fnum@figure}{Image~
23069 \begin_layout Standard
23076 inserts the figure number and
23079 \begin_inset Quotes eld
23085 \begin_inset Quotes erd
23088 creates a protected space.
23091 \begin_layout Standard
23092 \begin_inset VSpace bigskip
23100 \begin_inset Index idx
23103 \begin_layout Plain Layout
23104 LaTeX-packages ! KOMA-Script
23111 article (KOMA-Script)
23119 letter (KOMA-Script)
23123 report (KOMA-Script)
23126 \begin_inset space \thinspace{}
23129 ), you can alternatively to the
23137 's built-in command
23144 For example, to have the caption label in bold, add this command to your
23148 \begin_layout Standard
23153 setkomafont{captionlabel}{
23158 \begin_layout Standard
23159 For more information about
23170 \begin_inset CommandInset citation
23179 \begin_layout Standard
23183 \begin_layout Plain Layout
23187 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
23194 \begin_inset Note Note
23197 \begin_layout Plain Layout
23198 The caption format is changed only for this example.
23206 \begin_layout Standard
23207 \begin_inset Float figure
23213 \begin_layout Plain Layout
23215 \begin_inset Graphics
23216 filename clipart/mobius.eps
23219 scaleBeforeRotation
23226 \begin_layout Plain Layout
23227 \begin_inset Caption
23229 \begin_layout Plain Layout
23230 \begin_inset CommandInset label
23232 name "fig:This-is-an-fig"
23236 This is an example figure caption that is longer than one line to show the
23237 different caption format.
23238 Here a self-defined caption format is used.
23251 \begin_layout Standard
23255 \begin_layout Plain Layout
23259 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
23268 \begin_layout Standard
23269 \begin_inset Float table
23275 \begin_layout Plain Layout
23276 \begin_inset Caption
23278 \begin_layout Plain Layout
23279 \begin_inset CommandInset label
23281 name "tab:This-is-an-tab"
23285 This is an example table caption that is longer than one line to show the
23286 different caption format.
23287 Here the standard caption format for tables in this document is used.
23295 \begin_layout Plain Layout
23297 \begin_inset Tabular
23298 <lyxtabular version="3" rows="1" columns="5">
23299 <features tabularvalignment="middle">
23300 <column alignment="center" valignment="top" width="0">
23301 <column alignment="center" valignment="top" width="0">
23302 <column alignment="center" valignment="top" width="0">
23303 <column alignment="center" valignment="top" width="0">
23304 <column alignment="center" valignment="top" width="0">
23306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23309 \begin_layout Plain Layout
23315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23318 \begin_layout Plain Layout
23324 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23327 \begin_layout Plain Layout
23333 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23336 \begin_layout Plain Layout
23342 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23345 \begin_layout Plain Layout
23364 \begin_layout Section
23366 \begin_inset Index idx
23369 \begin_layout Plain Layout
23370 Caption ! Placement
23376 \begin_inset Index idx
23379 \begin_layout Plain Layout
23380 Floats ! Caption Placement
23386 \begin_inset CommandInset label
23388 name "sec:Caption-Placement"
23395 \begin_layout Standard
23396 The common caption placement rule is:
23399 \begin_layout Description
23400 Figure: Caption is set below the figure
23403 \begin_layout Description
23404 Table: Caption is set above the table
23407 \begin_layout Standard
23408 Having the caption above the table is unfortunately not supported in LaTeX's
23410 That means if you are using the document classes
23426 there will be no space between the caption and the table.
23427 To insert the necessary space, add the following option to the load command
23428 of the LaTeX-package
23432 in your document preamble
23436 \begin_layout Plain Layout
23438 \begin_inset space ~
23442 \begin_inset CommandInset ref
23444 reference "sec:Caption-Formatting"
23448 for more information of the package
23460 \begin_layout Standard
23466 \begin_layout Standard
23472 \begin_inset Index idx
23475 \begin_layout Plain Layout
23476 LaTeX-packages ! KOMA-Script
23483 article (KOMA-Script)
23491 letter (KOMA-Script)
23495 report (KOMA-Script)
23498 \begin_inset space \thinspace{}
23501 ), you can alternatively to the
23505 package set the document class option
23507 captions=tableheading
23512 \begin_layout Standard
23513 \begin_inset VSpace bigskip
23516 It is also possible to set the caption beside a figure or table.
23517 To get this the LaTeX-package
23522 \begin_inset Index idx
23525 \begin_layout Plain Layout
23526 LaTeX-packages ! sidecap
23531 has to be loaded in the document preamble with the line
23534 \begin_layout Standard
23539 usepackage[option]{sidecap}
23542 \begin_layout Standard
23543 If you set no option, the caption is placed on the side of the outer page
23544 margin – to the right on odd pages, to the left on even pages.
23545 You can change the placement to inner margin with the option
23550 To force the placement always to the right or left, use the option
23561 \begin_layout Standard
23565 \begin_layout Plain Layout
23575 \begin_inset Note Note
23578 \begin_layout Plain Layout
23579 The following section will only be displayed when the LaTeX-package
23591 \begin_layout Standard
23592 To place in LyX the caption of a float on the side, it is necessary to add
23593 these commands to the document preamble:
23596 \begin_layout Standard
23598 \begin_inset CommandInset line
23609 \begin_layout Standard
23617 \begin_inset Newline newline
23621 \begin_inset Phantom HPhantom
23624 \begin_layout Plain Layout
23627 \begin_inset space ~
23642 \begin_inset Newline newline
23646 \begin_inset Phantom HPhantom
23649 \begin_layout Plain Layout
23652 \begin_inset space ~
23667 \begin_inset Newline newline
23671 \begin_inset Phantom HPhantom
23674 \begin_layout Plain Layout
23677 \begin_inset space ~
23687 renewenvironment{table}{
23694 \begin_layout Standard
23702 \begin_inset Newline newline
23706 \begin_inset Phantom HPhantom
23709 \begin_layout Plain Layout
23712 \begin_inset space ~
23727 \begin_inset Newline newline
23731 \begin_inset Phantom HPhantom
23734 \begin_layout Plain Layout
23737 \begin_inset space ~
23754 \begin_layout Standard
23762 \begin_inset Newline newline
23766 \begin_inset Phantom HPhantom
23769 \begin_layout Plain Layout
23772 \begin_inset space ~
23787 \begin_inset Newline newline
23791 \begin_inset Phantom HPhantom
23794 \begin_layout Plain Layout
23797 \begin_inset space ~
23812 \begin_inset Newline newline
23816 \begin_inset Phantom HPhantom
23819 \begin_layout Plain Layout
23822 \begin_inset space ~
23832 renewenvironment{figure}{
23839 \begin_layout Standard
23847 \begin_inset Newline newline
23851 \begin_inset Phantom HPhantom
23854 \begin_layout Plain Layout
23857 \begin_inset space ~
23872 \begin_inset Newline newline
23876 \begin_inset Phantom HPhantom
23879 \begin_layout Plain Layout
23882 \begin_inset space ~
23899 \begin_layout Standard
23901 \begin_inset CommandInset line
23912 \begin_layout Standard
23913 The commands allow you to redefine the floats so that the caption is set
23915 For figure floats use the command
23918 \begin_layout Standard
23926 \begin_layout Standard
23927 in TeX-Code before the float.
23928 After the float insert the command
23931 \begin_layout Standard
23939 \begin_layout Standard
23940 in TeX-Code to get back to the original float definition.
23943 \begin_layout Standard
23944 For table floats use the corresponding commands
23947 \begin_layout Standard
23961 \begin_layout Standard
23963 \begin_inset space ~
23967 \begin_inset CommandInset ref
23969 reference "fig:cap-beside-fig"
23974 \begin_inset space ~
23978 \begin_inset CommandInset ref
23980 reference "tab:cap-beside-tab"
23984 are examples where the caption is set beside.
23987 \begin_layout Standard
23988 You can see in the examples that the caption text appears at the top of
23989 the floats for table floats and at the bottom for figure floats.
23990 To change this, you can use the command
23993 \begin_layout Standard
23998 sidecaptionvpos{float type}{placement}
24001 \begin_layout Standard
24002 in the document preamble or in TeX-Code before the float.
24003 The float type is either
24011 , the placement can be
24012 \begin_inset Quotes eld
24020 \begin_inset Quotes erd
24024 \begin_inset Quotes eld
24032 \begin_inset Quotes erd
24036 \begin_inset Quotes eld
24044 \begin_inset Quotes erd
24048 To have for example the caption of figure floats vertically centered, use
24052 \begin_layout Standard
24057 sidecaptionvpos{figure}{c}
24060 \begin_layout Standard
24061 This was used for Figure
24062 \begin_inset space ~
24066 \begin_inset CommandInset ref
24068 reference "fig:cap-beside-fig-2"
24075 \begin_layout Standard
24076 \begin_inset VSpace medskip
24079 For more information about the package
24083 we refer to its documentation
24084 \begin_inset CommandInset citation
24093 \begin_layout Standard
24094 \begin_inset Note Greyedout
24097 \begin_layout Plain Layout
24107 \begin_inset Index idx
24110 \begin_layout Plain Layout
24111 LaTeX-packages ! hypcap
24116 , described in section
24117 \begin_inset space ~
24121 \begin_inset CommandInset ref
24123 reference "sub:Reference-Position"
24127 , has no effect on floats with the caption set beside.
24135 \begin_layout Standard
24139 \begin_layout Plain Layout
24151 \begin_layout Standard
24152 \begin_inset Float figure
24157 \begin_layout Plain Layout
24158 \begin_inset Graphics
24159 filename clipart/escher-lsd.eps
24161 scaleBeforeRotation
24168 \begin_layout Plain Layout
24169 \begin_inset Caption
24171 \begin_layout Plain Layout
24172 \begin_inset CommandInset label
24174 name "fig:cap-beside-fig"
24178 This is a caption beside a figure.
24191 \begin_layout Standard
24195 \begin_layout Plain Layout
24207 \begin_layout Standard
24208 \begin_inset Float table
24213 \begin_layout Plain Layout
24214 \begin_inset Caption
24216 \begin_layout Plain Layout
24217 \begin_inset CommandInset label
24219 name "tab:cap-beside-tab"
24223 This is a caption beside a table.
24231 \begin_layout Plain Layout
24232 \begin_inset Tabular
24233 <lyxtabular version="3" rows="4" columns="5">
24234 <features tabularvalignment="middle">
24235 <column alignment="center" valignment="top" width="0">
24236 <column alignment="center" valignment="top" width="0">
24237 <column alignment="center" valignment="top" width="0">
24238 <column alignment="center" valignment="top" width="0">
24239 <column alignment="center" valignment="top" width="0">
24241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24244 \begin_layout Plain Layout
24250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24253 \begin_layout Plain Layout
24259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24262 \begin_layout Plain Layout
24268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24271 \begin_layout Plain Layout
24277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24280 \begin_layout Plain Layout
24288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24291 \begin_layout Plain Layout
24297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24300 \begin_layout Plain Layout
24306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24309 \begin_layout Plain Layout
24315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24318 \begin_layout Plain Layout
24324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24327 \begin_layout Plain Layout
24335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24338 \begin_layout Plain Layout
24344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24347 \begin_layout Plain Layout
24353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24356 \begin_layout Plain Layout
24362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24365 \begin_layout Plain Layout
24371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24374 \begin_layout Plain Layout
24382 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24385 \begin_layout Plain Layout
24391 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24394 \begin_layout Plain Layout
24400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24403 \begin_layout Plain Layout
24409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24412 \begin_layout Plain Layout
24418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24421 \begin_layout Plain Layout
24440 \begin_layout Standard
24444 \begin_layout Plain Layout
24456 \begin_layout Standard
24460 \begin_layout Plain Layout
24464 sidecaptionvpos{figure}{c}
24470 \begin_inset Float figure
24475 \begin_layout Plain Layout
24476 \begin_inset Graphics
24477 filename clipart/escher-lsd.eps
24479 scaleBeforeRotation
24486 \begin_layout Plain Layout
24487 \begin_inset Caption
24489 \begin_layout Plain Layout
24490 \begin_inset CommandInset label
24492 name "fig:cap-beside-fig-2"
24496 This is a vertically centered caption beside a figure.
24509 \begin_layout Standard
24513 \begin_layout Plain Layout
24525 \begin_layout Standard
24529 \begin_layout Plain Layout
24539 \begin_inset Note Note
24542 \begin_layout Plain Layout
24543 The following will be displayed when the LaTeX-package
24555 \begin_layout Standard
24556 You need to install the LaTeX-package
24560 to see the following part of this section in the output.
24563 \begin_layout Standard
24567 \begin_layout Plain Layout
24579 \begin_layout Section
24581 \begin_inset Index idx
24584 \begin_layout Plain Layout
24585 Floats ! Float Lists
24593 \begin_layout Standard
24594 Similar to the table of contents where the sections of the document are
24595 listed, there are listings for all float types, like the figures of the
24597 You can insert them via the
24599 Insert\SpecialChar \menuseparator
24601 \begin_inset space ~
24605 \begin_inset space ~
24613 \begin_layout Standard
24614 The list entries are the float captions or its short title, the float number,
24615 and the page number where they appear in the document.
24618 \begin_layout Standard
24619 You can find the list of figures and tables at the end of this document.
24622 \begin_layout Chapter
24626 \begin_layout Section
24628 \begin_inset Index idx
24631 \begin_layout Plain Layout
24640 \begin_layout Standard
24641 Notes are inserted with the toolbar button
24642 \begin_inset Graphics
24643 filename ../images/note-insert.png
24645 scaleBeforeRotation
24651 Insert\SpecialChar \menuseparator
24655 There are three types of notes:
24658 \begin_layout Description
24660 \begin_inset space ~
24663 Note This note type is for internal notes that won't appear in the output.
24664 Its note-box looks like this:
24665 \begin_inset Newline newline
24669 \begin_inset Newline newline
24673 \begin_inset Graphics
24674 filename clipart/LyXNoteImageQt4.png
24677 scaleBeforeRotation
24682 \begin_inset Note Note
24685 \begin_layout Plain Layout
24686 This is text in a note box that doesn't appear in the output.
24694 \begin_layout Description
24695 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24696 ent, when you export the document to LaTeX via the menu
24698 File\SpecialChar \menuseparator
24699 Export\SpecialChar \menuseparator
24700 LaTeX (pdflatex) / (plain)
24703 Its note-box looks like this:
24704 \begin_inset Newline newline
24708 \begin_inset Newline newline
24712 \begin_inset Graphics
24713 filename clipart/CommentNoteImageQt4.png
24716 scaleBeforeRotation
24721 \begin_inset Note Comment
24724 \begin_layout Plain Layout
24725 This is text in a note box that only appears as comment in LaTeX-files.
24733 \begin_layout Description
24735 \begin_inset space ~
24738 Out This note will appear in the output as grey text.
24739 Its note-box looks like this:
24740 \begin_inset Newline newline
24744 \begin_inset Newline newline
24748 \begin_inset Graphics
24749 filename clipart/GreyedOutNoteImageQt4.png
24752 scaleBeforeRotation
24757 \begin_inset Newline newline
24764 \begin_layout Plain Layout
24768 renewenvironment{lyxgreyedout}
24771 \begin_layout Plain Layout
24775 textcolor[gray]{0.8}
24785 \begin_inset Note Greyedout
24788 \begin_layout Plain Layout
24793 \begin_layout Plain Layout
24794 This is an example footnote within a greyed out note.
24799 of a comment that appears in the output as grey text.
24808 \begin_layout Plain Layout
24812 renewenvironment{lyxgreyedout}
24815 \begin_layout Plain Layout
24829 \begin_inset Note Note
24832 \begin_layout Plain Layout
24833 The greyed out note is here redefined to show it with the original LyX definitio
24834 n because greyed out notes are redefined in the preamble of this document,
24835 as described below, to have blue text.
24841 \begin_inset Newline newline
24845 \begin_inset Newline newline
24848 As you can see in the example, the first line of greyed out notes is a bit
24849 indented and greyed out notes can have footnotes.
24852 \begin_layout Standard
24853 \begin_inset VSpace bigskip
24856 When you use the toolbar button
24857 \begin_inset Graphics
24858 filename ../images/note-insert.png
24860 scaleBeforeRotation
24867 \begin_inset space ~
24873 You can switch between the five note types by right-clicking on the note-box.
24878 If you want to turn existing text into a note, mark it and click on the
24892 To change a note to text, press the backspace key when the cursor is in
24893 the first position of a note, or press the delete key when the cursor is
24894 in the very last position of the note, respectively.
24897 \begin_layout Standard
24898 \begin_inset VSpace bigskip
24901 You can change the text color of the greyed out notes in the preamble with
24902 the following command:
24905 \begin_layout Standard
24910 renewenvironment{lyxgreyedout}
24911 \begin_inset Newline newline
24915 \begin_inset Phantom HPhantom
24918 \begin_layout Plain Layout
24921 \begin_inset space ~
24938 \begin_layout Standard
24939 The available colors and the method to define colors is explained in section
24940 \begin_inset space ~
24944 \begin_inset CommandInset ref
24946 reference "sec:Colored-Tables"
24953 \begin_layout Standard
24954 Notes that appear in blue in this document are set using greyed out notes
24958 \begin_layout Section
24960 \begin_inset CommandInset label
24962 name "sec:Footnotes"
24967 \begin_inset Index idx
24970 \begin_layout Plain Layout
24977 \begin_inset Index idx
24980 \begin_layout Plain Layout
24989 \begin_layout Standard
24990 Footnotes can be inserted using the toolbar button
24991 \begin_inset Graphics
24992 filename ../images/footnote-insert.png
24994 scaleBeforeRotation
25000 Insert\SpecialChar \menuseparator
25012 then the following footnote-box:
25013 \begin_inset Graphics
25014 filename clipart/footnoteQt4.png
25016 scaleBeforeRotation
25024 where you can enter the footnote text.
25025 If you want to turn existing text into a footnote, mark it and click on
25047 to text, press the Backspace key when the cursor is in the first position
25056 , or press the Delete key when the cursor is in the very last position of
25068 \begin_layout Standard
25069 Here is an example footnote:
25077 \begin_layout Plain Layout
25078 \begin_inset CommandInset label
25080 name "foot:This-is-an"
25084 This is an example footnote.
25097 \begin_layout Plain Layout
25101 newcounter{MyRepeatFoot}
25104 \begin_layout Plain Layout
25108 setcounter{MyRepeatFoot}{
25118 \begin_layout Standard
25119 The footnote will appear in the output as a superscript number at the text
25120 position where the footnote box is placed.
25121 The footnote text is placed at the bottom of the current page.
25122 The footnote number is calculated by LaTeX; the numbers are consecutive.
25123 It depends on your document-class, whether the footnote number is reset
25127 \begin_layout Standard
25128 Footnotes can be referenced like floats: Insert a label into the footnote
25129 and cross-reference this label in the text as described in section
25130 \begin_inset space ~
25134 \begin_inset CommandInset ref
25136 reference "sec:Referencing-Floats"
25141 \begin_inset Newline newline
25144 This is a cross-reference of Footnote
25145 \begin_inset space ~
25149 \begin_inset CommandInset ref
25151 reference "foot:This-is-an"
25158 \begin_layout Standard
25159 \begin_inset VSpace defskip
25162 Footnotes in tables are not printed by LaTeX due to technical reasons.
25163 However there exists another method to print them: Instead of the footnote
25170 is inserted as TeX-code.
25171 The text of the footnote is entered as an argument of the TeX-code command
25179 \begin_inset Newline newline
25182 This was done for the following table with the command
25185 \begin_layout Standard
25192 Printed table footnote.
25197 \begin_layout Standard
25198 \begin_inset Tabular
25199 <lyxtabular version="3" rows="2" columns="1">
25200 <features tabularvalignment="middle">
25201 <column alignment="center" valignment="top" width="0">
25203 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25206 \begin_layout Plain Layout
25207 This an example text.
25211 \begin_layout Plain Layout
25212 This footnote will not be printed!
25224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25227 \begin_layout Plain Layout
25228 This an example text.
25232 \begin_layout Plain Layout
25255 \begin_layout Plain Layout
25264 Printed table footnote.
25268 \begin_layout Plain Layout
25278 \begin_layout Standard
25279 Footnotes in longtables are described in section
25280 \begin_inset space ~
25284 \begin_inset CommandInset ref
25286 reference "sub:Footnotes-in-Longtables"
25293 \begin_layout Standard
25294 Footnotes in minipage boxes are printed, but inside the box and with a different
25295 numbering because a minipage box is like a page inside a page.
25296 (For more about minipages, see section
25297 \begin_inset space ~
25301 \begin_inset CommandInset ref
25303 reference "sec:Minipages"
25307 .) To get a footnote in the minipage that is output at the bottom of the
25308 page like normal footnotes, also use the method of
25323 \begin_layout Standard
25324 \begin_inset Box Frameless
25334 height_special "totalheight"
25337 \begin_layout Plain Layout
25338 This an example text in a minipage.
25342 \begin_layout Plain Layout
25343 Footnote in the minipage.
25351 \begin_layout Plain Layout
25352 This an example text in a minipage.
25356 \begin_layout Plain Layout
25373 \begin_layout Standard
25377 \begin_layout Plain Layout
25386 Footnote outside the minipage.
25390 \begin_layout Plain Layout
25400 \begin_layout Standard
25401 \begin_inset VSpace defskip
25407 \begin_layout Standard
25408 To refer to the same footnote several times without printing the footnote
25409 text every time, use the command
25413 footnotemark[number]
25416 \begin_inset Newline newline
25419 As you do not know the number of the repeating footnote while you are writing
25420 the text, you have to store its number.
25421 For the following footnote mark example, these commands were inserted in
25422 TeX-code after Footnote
25423 \begin_inset space ~
25427 \begin_inset CommandInset ref
25429 reference "foot:This-is-an"
25433 to store the footnote number:
25436 \begin_layout Standard
25441 newcounter{MyRepeatFoot}
25442 \begin_inset Newline newline
25447 setcounter{MyRepeatFoot}{
25452 \begin_layout Standard
25453 The footnote mark was then created with this command:
25456 \begin_layout Standard
25466 \begin_layout Standard
25467 Here is a repeated footnote:
25475 \begin_layout Plain Layout
25489 \begin_layout Standard
25490 If you want to repeat the previous footnote, you can omit the storage of
25491 the footnote number and just use this command instead:
25494 \begin_layout Standard
25504 \begin_layout Standard
25505 Here is another repeated footnote:
25513 \begin_layout Plain Layout
25527 \begin_layout Subsection
25529 \begin_inset CommandInset label
25531 name "sub:Footnote-Numbering"
25536 \begin_inset Index idx
25539 \begin_layout Plain Layout
25540 Footnotes ! Numbering
25548 \begin_layout Standard
25549 To reset the footnote number back to 1 after each section
25551 , add this command to your document preamble:
25554 \begin_layout Standard
25559 @addtoreset{footnote}{section}
25562 \begin_layout Standard
25563 \begin_inset VSpace bigskip
25566 The following preamble command changes the footnote numbering style to small
25570 \begin_layout Standard
25582 \begin_layout Standard
25586 \begin_layout Plain Layout
25599 This is a footnote with roman numbering:
25603 \begin_layout Plain Layout
25604 This is an example footnote with roman numbering.
25612 \begin_layout Standard
25613 To change the numbering style to capital roman numerals replace in the command
25628 \begin_inset Quotes eld
25632 \begin_inset Quotes erd
25635 footnotes with capital or small Latin letters use
25649 \begin_inset Quotes eld
25653 \begin_inset Quotes erd
25656 footnotes with symbols use
25665 \begin_layout Standard
25666 \begin_inset Note Greyedout
25669 \begin_layout Plain Layout
25674 You can only number 26 footnotes with Latin letters, because this numbering
25675 is limited to single letters.
25681 \begin_inset Newline newline
25685 \begin_inset Note Greyedout
25688 \begin_layout Plain Layout
25693 You can only number 9 footnotes with symbols.
25701 \begin_layout Standard
25702 To return to the default numbering style after you have changed to another
25715 in the command above.
25719 \begin_layout Plain Layout
25735 \begin_layout Standard
25736 \begin_inset VSpace bigskip
25742 \begin_layout Standard
25743 If you want to have footnotes numbered in the scheme
25744 \begin_inset Quotes eld
25748 \begin_inset Quotes erd
25751 , add the following command to your document preamble:
25754 \begin_layout Standard
25759 numberwithin{footnote}{chapter}
25762 \begin_layout Standard
25763 To be able to use the command
25772 \begin_inset space ~
25777 in the document settings the option
25780 \begin_inset space ~
25784 \begin_inset space ~
25788 \begin_inset space ~
25796 \begin_layout Standard
25800 \begin_layout Plain Layout
25804 numberwithin{footnote}{chapter}
25809 This is another example footnote:
25815 \begin_layout Plain Layout
25816 This is a footnote numbered in the scheme
25817 \begin_inset Quotes eld
25821 \begin_inset Quotes erd
25835 \begin_layout Plain Layout
25851 \begin_layout Standard
25852 \begin_inset Note Greyedout
25855 \begin_layout Plain Layout
25866 always prints out the footnote number as arabic number; previous redefinitions
25867 to get non-arabic numbers are overwritten.
25875 \begin_layout Standard
25876 So to get for example the scheme
25877 \begin_inset Quotes eld
25883 \begin_inset Quotes erd
25886 , use this command instead of
25895 \begin_layout Standard
25909 \begin_layout Subsection
25911 \begin_inset Index idx
25914 \begin_layout Plain Layout
25915 Footnotes ! Placement
25923 \begin_layout Standard
25924 If you have several footnotes in one page, they appear without vertical
25925 space between them at the bottom of the page.
25926 To make them more readable you can e.
25927 \begin_inset space \thinspace{}
25931 \begin_inset space \space{}
25935 \begin_inset space \thinspace{}
25938 mm space with the following preamble command:
25941 \begin_layout Standard
25951 \begin_inset Newline newline
25965 \begin_layout Standard
25966 \begin_inset VSpace bigskip
25969 In a two-column document the footnotes appear at the bottom of every column,
25971 \begin_inset space ~
25975 \begin_inset CommandInset ref
25977 reference "fig:Standard-footnote-placement"
25982 If the footnotes should only appear at the bottom of the right column,
25984 \begin_inset space ~
25988 \begin_inset CommandInset ref
25990 reference "fig:Footnote-placement-in"
25994 , use the LaTeX-package
25999 \begin_inset Index idx
26002 \begin_layout Plain Layout
26003 LaTeX-packages ! ftnright
26008 with this command in the document preamble:
26011 \begin_layout Standard
26016 usepackage{ftnright}
26019 \begin_layout Standard
26020 \begin_inset Float figure
26026 \begin_layout Plain Layout
26030 \begin_layout Plain Layout
26040 \begin_inset Graphics
26041 filename clipart/without_fntright.pdf
26043 scaleBeforeRotation
26051 \begin_layout Plain Layout
26061 \begin_layout Plain Layout
26062 \begin_inset Caption
26064 \begin_layout Plain Layout
26065 \begin_inset CommandInset label
26067 name "fig:Standard-footnote-placement"
26071 Standard footnote placement in two-column documents.
26084 \begin_layout Standard
26085 \begin_inset Float figure
26091 \begin_layout Plain Layout
26095 \begin_layout Plain Layout
26105 \begin_inset Graphics
26106 filename clipart/with_fntright.pdf
26108 scaleBeforeRotation
26116 \begin_layout Plain Layout
26126 \begin_layout Plain Layout
26127 \begin_inset Caption
26129 \begin_layout Plain Layout
26130 \begin_inset CommandInset label
26132 name "fig:Footnote-placement-in"
26136 Footnote placement in two-column documents when the LaTeX-package
26153 \begin_layout Standard
26154 \begin_inset VSpace bigskip
26157 In some scientific literature it is usual to collect the footnotes and print
26158 them in a separate paragraph at the end of a section, as in Figure
26159 \begin_inset space ~
26163 \begin_inset CommandInset ref
26165 reference "fig:Endnotes"
26170 They are then called
26171 \begin_inset Quotes eld
26175 \begin_inset Quotes erd
26179 \begin_inset Index idx
26182 \begin_layout Plain Layout
26188 To use endnotes instead of footnotes in your document, load in the menu
26191 Document\SpecialChar \menuseparator
26192 Settings\SpecialChar \menuseparator
26198 \begin_inset space ~
26202 \begin_inset space ~
26208 To insert the collected footnotes, insert the command
26211 \begin_layout Standard
26219 \begin_layout Standard
26220 in TeX-Code at the end of a section or chapter.
26223 \begin_layout Standard
26224 \begin_inset Float figure
26229 \begin_layout Plain Layout
26234 \begin_layout Plain Layout
26244 \begin_inset Graphics
26245 filename clipart/endnotes.pdf
26246 scaleBeforeRotation
26254 \begin_layout Plain Layout
26264 \begin_layout Plain Layout
26265 \begin_inset Caption
26267 \begin_layout Plain Layout
26268 \begin_inset CommandInset label
26270 name "fig:Endnotes"
26274 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26288 \begin_layout Standard
26289 \begin_inset VSpace medskip
26292 The paragraph heading for the endnotes isn't automatically translated into
26293 the document language, this must be done manually.
26294 The following preamble command translates the default English
26295 \begin_inset Quotes eld
26299 \begin_inset Quotes erd
26303 \begin_inset Quotes eld
26307 \begin_inset Quotes erd
26313 \begin_layout Standard
26320 notesname}{Anmerkungen}
26323 \begin_layout Standard
26324 \begin_inset VSpace medskip
26327 The numbering of endnotes can be changed like the footnote numbering as
26328 described in section
26329 \begin_inset space ~
26333 \begin_inset CommandInset ref
26335 reference "sub:Footnote-Numbering"
26339 ; just replace the command
26352 To reset the endnote number use the command
26358 as described in section
26359 \begin_inset space ~
26363 \begin_inset CommandInset ref
26365 reference "sub:Footnote-Numbering"
26369 and replace the command parameter
26380 \begin_layout Standard
26381 For endnotes there is the command
26385 endnotemark[number]
26387 similar to the command
26393 , that is described in section
26394 \begin_inset space ~
26398 \begin_inset CommandInset ref
26400 reference "sec:Footnotes"
26407 \begin_layout Standard
26408 \begin_inset VSpace bigskip
26411 Footnotes can also be placed in the page margin and the footnote text alignment
26412 can be changed, see the LaTeX-package
26417 \begin_inset Index idx
26420 \begin_layout Plain Layout
26421 LaTeX-packages ! footmisc
26427 \begin_inset CommandInset citation
26433 for more information about this.
26436 \begin_layout Standard
26437 For various further footnote formatting issues have a look at LaTeX-books,
26439 \begin_inset CommandInset citation
26441 key "latexcompanion,latexguide,latexbook"
26448 \begin_layout Section
26450 \begin_inset Index idx
26453 \begin_layout Plain Layout
26454 Notes ! Margin Notes
26462 \begin_layout Standard
26463 Margin notes look and behave in LyX like footnotes.
26464 They are inserted via the menu
26466 Insert\SpecialChar \menuseparator
26468 \begin_inset space ~
26473 or the toolbar button
26474 \begin_inset Graphics
26475 filename ../images/marginalnote-insert.png
26477 scaleBeforeRotation
26492 \begin_inset Quotes eld
26496 \begin_inset Quotes erd
26499 appears where you can enter the text of the margin note.
26502 \begin_layout Standard
26503 At the side is an example margin note.
26508 \begin_inset Marginal
26511 \begin_layout Plain Layout
26512 This is a margin note.
26520 \begin_layout Standard
26521 Margin notes appear at the right side in single-sided documents.
26522 In double-sided documents they appear in the outer margin – left on even
26523 pages, right on odd pages.
26524 The text of margin notes is aligned opposite to the outer margin – right-aligne
26525 d when the note appears in the left margin.
26526 The first line of the margin note is placed at the position of the text
26527 line where it is inserted in the document.
26530 \begin_layout Standard
26531 \begin_inset VSpace bigskip
26534 To place the margin note in the inner margin, add the command
26537 \begin_layout Standard
26545 \begin_layout Standard
26546 in TeX-Code before a margin note.
26547 The new placement is valid for all subsequent margin notes.
26552 \begin_layout Plain Layout
26562 \begin_inset Marginal
26565 \begin_layout Plain Layout
26566 This is a margin note in the inner margin.
26574 \begin_inset Newline newline
26580 \begin_inset Note Greyedout
26583 \begin_layout Plain Layout
26588 There is often not enough space in the inner margin so that the notes are
26589 not correctly displayed in the output.
26597 \begin_layout Standard
26598 To return to the default placement insert the command
26601 \begin_layout Standard
26609 \begin_layout Standard
26614 \begin_layout Plain Layout
26624 \begin_inset Note Greyedout
26627 \begin_layout Plain Layout
26632 The command is ignored when it is within a paragraph where also the command
26647 \begin_layout Standard
26648 \begin_inset VSpace bigskip
26655 \begin_inset Marginal
26658 \begin_layout Plain Layout
26659 AVeryLongMarginParWord that isn't hyphenated.
26667 Similar to the case described in section
26668 \begin_inset space ~
26672 \begin_inset CommandInset ref
26674 reference "sub:Multiple-Lines-in"
26678 , long words cannot be hyphenated when they are the first word in a margin
26680 To avoid this, insert 0
26681 \begin_inset space \thinspace{}
26684 pt horizontal space before the word
26689 \begin_inset Marginal
26692 \begin_layout Plain Layout
26693 \begin_inset space \hspace*{}
26697 AVeryLongMarginParWord that is hyphenated.
26705 \begin_layout Standard
26706 \begin_inset VSpace bigskip
26712 \begin_layout Standard
26713 \begin_inset Note Greyedout
26716 \begin_layout Plain Layout
26721 Margin notes can normally not be used inside tables, floats, and footnotes.
26729 \begin_layout Standard
26730 \begin_inset VSpace bigskip
26736 \begin_layout Standard
26740 \begin_layout Plain Layout
26750 \begin_inset Note Note
26753 \begin_layout Plain Layout
26754 The following section will only be displayed when the LaTeX-package
26766 \begin_layout Standard
26767 This restriction can be evaded by using the LaTeX-package
26772 \begin_inset Index idx
26775 \begin_layout Plain Layout
26776 LaTeX-packages ! marginnote
26782 By adding these two lines to your document preamble, the command used by
26783 LyX for margin notes is redefined to use the command provided by the
26790 \begin_layout Standard
26795 usepackage{marginnote}
26796 \begin_inset Newline newline
26808 \begin_layout Standard
26809 This is also used in this document because
26813 has another useful feature: You can set a vertical offset for the note.
26814 This is often needed when too many margin notes are too close together
26815 or for a better page layout.
26816 The offset is set in LyX as TeX-Code directly after the margin note in
26820 \begin_layout Standard
26826 \begin_layout Standard
26827 where the offset is a length with one of the units listed in Table
26828 \begin_inset space ~
26832 \begin_inset CommandInset ref
26834 reference "tab:Units"
26839 A negative value shifts the note up, a positive value shifts it down.
26843 For example the margin note beside this text line is shifted up 1.5
26844 \begin_inset space \thinspace{}
26847 cm with the TeX-Code-command
26848 \begin_inset Quotes eld
26858 \begin_inset Quotes erd
26862 \begin_inset Marginal
26865 \begin_layout Plain Layout
26866 This margin note is shifted up 1.5
26867 \begin_inset space \thinspace{}
26870 cm from its original position.
26882 \begin_layout Plain Layout
26892 \begin_layout Standard
26893 \begin_inset VSpace medskip
26900 you can also change the alignment of the text in the margin note.
26901 For example the commands
26904 \begin_layout Standard
26911 raggedleftmarginnote}{
26914 \begin_inset Newline newline
26921 raggedrightmarginnote}{
26926 \begin_layout Standard
26927 set the alignment to centered.
26932 raggedleftmarginnote
26934 denotes margin notes that appear at the left side.
26941 \begin_layout Plain Layout
26947 raggedleftmarginnote}{
26952 \begin_layout Plain Layout
26958 raggedrightmarginnote}{
26966 \begin_inset Marginal
26969 \begin_layout Plain Layout
26970 The text of this margin note is centered.
26981 \begin_layout Standard
26988 raggedleftmarginnote}{
26991 \begin_inset Newline newline
26998 raggedrightmarginnote}{
27007 \begin_layout Plain Layout
27013 raggedleftmarginnote}{
27018 \begin_layout Plain Layout
27024 raggedrightmarginnote}{
27034 \begin_layout Standard
27035 \begin_inset VSpace medskip
27038 For the other features of
27042 refer to its documentation
27043 \begin_inset CommandInset citation
27052 \begin_layout Standard
27053 \begin_inset VSpace bigskip
27056 You can adjust the layout of margin notes by changing its definition.
27057 To create for example a header for all margin notes with the underlined,
27058 sans-serif, and bold header text
27059 \begin_inset Quotes eld
27071 \begin_inset Quotes erd
27074 , add this to your document preamble:
27077 \begin_layout Standard
27087 \begin_inset Newline newline
27097 \begin_inset Newline newline
27101 \begin_inset Phantom HPhantom
27104 \begin_layout Plain Layout
27107 \begin_inset space ~
27123 underbar{Attention!}}}%
27124 \begin_inset Newline newline
27128 \begin_inset Phantom HPhantom
27131 \begin_layout Plain Layout
27134 \begin_inset space ~
27151 \begin_layout Standard
27158 \begin_layout Plain Layout
27169 \begin_layout Plain Layout
27180 \begin_layout Plain Layout
27188 underbar{Attention!}}}%
27191 \begin_layout Plain Layout
27205 \begin_inset Marginal
27208 \begin_layout Plain Layout
27209 This is a margin note with a defined heading.
27221 \begin_layout Plain Layout
27235 \begin_layout Plain Layout
27252 \begin_inset Note Note
27255 \begin_layout Plain Layout
27256 The margin note format is changed only for this example.
27264 \begin_layout Standard
27268 \begin_layout Plain Layout
27278 \begin_inset Note Note
27281 \begin_layout Plain Layout
27282 The following will be displayed when the LaTeX-package
27294 \begin_layout Standard
27295 You need to install the LaTeX-package
27299 to see the following part of this section in the output.
27302 \begin_layout Standard
27306 \begin_layout Plain Layout
27318 \begin_layout Chapter
27322 \begin_layout Section
27324 \begin_inset Index idx
27327 \begin_layout Plain Layout
27328 Boxes ! Introduction
27336 \begin_layout Standard
27337 Boxes are used to format a block of text.
27338 Boxes can be used to write documents with multiple languages, see section
27339 \begin_inset space ~
27343 \begin_inset CommandInset ref
27345 reference "sec:Minipages"
27349 , to frame texts, see section
27350 \begin_inset space ~
27354 \begin_inset CommandInset ref
27356 reference "sec:Decoration"
27360 , to prevent words from being hyphenated, see section
27361 \begin_inset space ~
27365 \begin_inset CommandInset ref
27367 reference "sec:Prevent-Hyphenation"
27371 , to align text, see section
27372 \begin_inset space ~
27376 \begin_inset CommandInset ref
27378 reference "sub:Vertical-Alignment"
27382 , or to set the background color of texts, see section
27383 \begin_inset space ~
27387 \begin_inset CommandInset ref
27389 reference "sec:Colored-Boxes"
27396 \begin_layout Standard
27397 Boxes can be inserted with the menu
27399 Insert\SpecialChar \menuseparator
27402 or the toolbar button
27403 \begin_inset Graphics
27404 filename ../images/box-insert.png
27406 scaleBeforeRotation
27411 A grey box with the label
27416 \begin_inset Graphics
27417 filename clipart/BoxInsetDefaultQt4.png
27419 scaleBeforeRotation
27424 The box type can be specified by right-clicking on the box and selecting
27430 The box dialog offers the
27433 \begin_inset space ~
27455 is the default for new boxes and is explained in section
27456 \begin_inset space ~
27460 \begin_inset CommandInset ref
27462 reference "sec:Minipages"
27470 is described in section
27471 \begin_inset space ~
27475 \begin_inset CommandInset ref
27477 reference "sec:Parboxes"
27486 \begin_inset CommandInset ref
27488 reference "sec:Prevent-Hyphenation"
27495 \begin_layout Standard
27496 Boxes are not numbered and can therefore not be referenced like floats or
27500 \begin_layout Standard
27501 \begin_inset Note Greyedout
27504 \begin_layout Plain Layout
27509 Boxes must not be the item in an
27525 \begin_layout Standard
27526 \begin_inset Note Greyedout
27529 \begin_layout Plain Layout
27534 For an unknown reason you can only set the
27537 \begin_inset space ~
27546 when you use a framed box.
27550 \begin_inset space ~
27555 type and without frames are explained in section
27556 \begin_inset space ~
27560 \begin_inset CommandInset ref
27562 reference "sec:Prevent-Hyphenation"
27574 \begin_layout Section
27576 \begin_inset CommandInset label
27578 name "sec:Box-Dialog"
27583 \begin_inset Index idx
27586 \begin_layout Plain Layout
27595 \begin_layout Subsection
27597 \begin_inset Index idx
27600 \begin_layout Plain Layout
27609 \begin_layout Standard
27610 In the box dialog you can adjust the box geometry in the fields
27619 The available units for the geometry are explained in Table
27620 \begin_inset space ~
27624 \begin_inset CommandInset ref
27626 reference "tab:Units"
27635 offers the following additional sizes:
27638 \begin_layout Description
27639 Depth This is the plain text
27640 \begin_inset Quotes eld
27644 \begin_inset Quotes erd
27648 It ignores the total depth when there are multiple text lines in the box:
27649 \begin_inset Newline newline
27653 \begin_inset Newline newline
27657 \begin_inset Newline newline
27661 \begin_inset Box Boxed
27671 height_special "depth"
27674 \begin_layout Plain Layout
27676 Box height set to 1
27677 \begin_inset space \thinspace{}
27686 \begin_inset Newline newline
27690 \begin_inset Newline newline
27696 \begin_layout Description
27697 Height This is the height of the text that is inside the box.
27699 \begin_inset space \thinspace{}
27703 \begin_inset space \space{}
27706 2 for this size will set the box height to 2
27707 \begin_inset space ~
27710 times the text height:
27711 \begin_inset Box Boxed
27721 height_special "height"
27724 \begin_layout Plain Layout
27726 Box height set to 2
27727 \begin_inset space \thinspace{}
27738 \begin_layout Description
27740 \begin_inset space ~
27743 Height This is the Height
27744 \begin_inset space \thinspace{}
27748 \begin_inset space \thinspace{}
27752 \begin_inset Box Boxed
27762 height_special "totalheight"
27765 \begin_layout Plain Layout
27767 Box height set to 1
27768 \begin_inset space \thinspace{}
27772 \begin_inset space ~
27783 \begin_layout Description
27784 Width This sets the width of the box as height:
27785 \begin_inset Box Boxed
27795 height_special "width"
27798 \begin_layout Plain Layout
27800 Box height set to 1
27801 \begin_inset space \thinspace{}
27812 \begin_layout Subsection
27814 \begin_inset Index idx
27817 \begin_layout Plain Layout
27826 \begin_layout Standard
27827 When you have chosen an
27830 \begin_inset space ~
27835 , the vertical box alignment can be:
27838 \begin_layout Description
27839 Top This is an example text line.
27841 \begin_inset Box Boxed
27851 height_special "totalheight"
27854 \begin_layout Plain Layout
27856 This box is top-aligned.
27861 This is an example text line.
27864 \begin_layout Description
27865 Middle This is an example text line.
27867 \begin_inset Box Boxed
27877 height_special "totalheight"
27880 \begin_layout Plain Layout
27882 This box is middle-aligned.
27887 This is an example text line.
27890 \begin_layout Description
27891 Bottom This is an example text line.
27893 \begin_inset Box Boxed
27903 height_special "totalheight"
27906 \begin_layout Plain Layout
27908 This box is bottom-aligned.
27913 This is an example text line.
27916 \begin_layout Standard
27917 \begin_inset Note Greyedout
27920 \begin_layout Plain Layout
27925 The vertical box alignment can be lost in the output when you have two
27926 boxes in a line and one has e.
27927 \begin_inset space \thinspace{}
27931 \begin_inset space \space{}
27934 a shadow and the other one not.
27942 \begin_layout Standard
27943 The horizontal box alignment can be set via LyX's paragraph dialog when
27944 you set the box into its own paragraph.
27947 \begin_layout Standard
27948 \begin_inset VSpace bigskip
27951 When you have chosen an
27954 \begin_inset space ~
27959 , the box content can be aligned vertically to:
27962 \begin_layout Description
27963 top This is an example text line.
27965 \begin_inset Box Boxed
27975 height_special "totalheight"
27978 \begin_layout Plain Layout
27980 This box text is top-aligned.
27985 This is an example text line.
27988 \begin_layout Description
27989 middle This is an example text line.
27991 \begin_inset Box Boxed
28001 height_special "totalheight"
28004 \begin_layout Plain Layout
28006 This box text is middle-aligned.
28011 This is an example text line.
28014 \begin_layout Description
28015 bottom This is an example text line.
28017 \begin_inset Box Boxed
28027 height_special "totalheight"
28030 \begin_layout Plain Layout
28032 This box text is bottom-aligned.
28037 This is an example text line.
28040 \begin_layout Description
28041 stretch This is an example text line.
28043 \begin_inset Box Boxed
28053 height_special "totalheight"
28056 \begin_layout Plain Layout
28061 \begin_layout Plain Layout
28066 \begin_layout Plain Layout
28073 This is an example text line.
28076 \begin_layout Standard
28077 To stretch the box content, it must consist of more than one paragraph.
28078 In the example above every text line is in an own paragraph.
28081 \begin_layout Standard
28082 \begin_inset VSpace bigskip
28085 To align the box content horizontally you can use LyX's paragraph dialog
28086 when you have chosen an
28089 \begin_inset space ~
28097 \begin_layout Standard
28099 \begin_inset Box Boxed
28109 height_special "totalheight"
28112 \begin_layout Plain Layout
28117 \begin_layout Plain Layout
28122 \begin_layout Plain Layout
28132 \begin_layout Standard
28133 If you have not set an
28136 \begin_inset space ~
28141 , you can align the box content horizontally in the box dialog.
28144 \begin_layout Standard
28146 \begin_inset Box Boxed
28156 height_special "totalheight"
28159 \begin_layout Plain Layout
28161 This box text is horizontally stretched.
28169 \begin_layout Subsection
28171 \begin_inset CommandInset label
28173 name "sec:Decoration"
28178 \begin_inset Index idx
28181 \begin_layout Plain Layout
28190 \begin_layout Standard
28191 The type of the box can be specified in the box dialog in the drop-down
28197 The following types are possible:
28200 \begin_layout Description
28202 \begin_inset space ~
28205 frame Nothing is drawn.
28208 \begin_layout Description
28210 \begin_inset space ~
28214 \begin_inset space ~
28217 frame This draws a rectangular frame around the box.
28218 The frame line thickness has the size of
28226 \begin_inset Box Boxed
28236 height_special "totalheight"
28239 \begin_layout Plain Layout
28249 \begin_layout Description
28251 \begin_inset space ~
28255 \begin_inset space ~
28258 thin This draws an oval frame around the box.
28259 The frame line thickness has the size 0.4
28260 \begin_inset space \thinspace{}
28265 \begin_inset Box ovalbox
28275 height_special "totalheight"
28278 \begin_layout Plain Layout
28288 \begin_layout Description
28290 \begin_inset space ~
28294 \begin_inset space ~
28297 thick This draws an oval frame around the box.
28298 The frame line thickness has the size 0.8
28299 \begin_inset space \thinspace{}
28304 \begin_inset Box Ovalbox
28314 height_special "totalheight"
28317 \begin_layout Plain Layout
28327 \begin_layout Description
28329 \begin_inset space ~
28332 shadow This draws a rectangular frame with a shadow around the box.
28333 The frame line thickness has the size of
28339 , the shadow has a width of 4
28340 \begin_inset space \thinspace{}
28345 \begin_inset Box Shadowbox
28355 height_special "totalheight"
28358 \begin_layout Plain Layout
28368 \begin_layout Description
28370 \begin_inset space ~
28373 background This draws a box with a red background.
28374 Unlike colored boxes
28378 \begin_layout Plain Layout
28380 \begin_inset space \thinspace{}
28384 \begin_inset CommandInset ref
28386 reference "sec:Colored-Boxes"
28395 , it always uses the whole column width and the box is set as its own paragraph.
28397 \begin_inset Box Shaded
28407 height_special "totalheight"
28410 \begin_layout Plain Layout
28411 Shaded background box
28419 \begin_layout Description
28421 \begin_inset space ~
28425 \begin_inset space ~
28428 frame This draws a double-line rectangular frame around the box.
28429 The line thickness of the inner frame is 0.75
28430 \begin_inset space \thinspace{}
28439 , the thickness of the outer frame is 1.5
28440 \begin_inset space \thinspace{}
28450 The distance between the lines is 1.5
28451 \begin_inset space \thinspace{}
28461 \begin_inset space \thinspace{}
28465 \begin_inset space \thinspace{}
28469 \begin_inset space \thinspace{}
28474 \begin_inset Box Doublebox
28484 height_special "totalheight"
28487 \begin_layout Plain Layout
28489 Double rectangular box
28497 \begin_layout Standard
28498 \begin_inset VSpace bigskip
28501 LyX's box label will reflect the different frame types.
28502 To be able to use all types, the LaTeX-package
28507 \begin_inset Index idx
28510 \begin_layout Plain Layout
28511 LaTeX-packages ! fancybox
28519 \begin_layout Standard
28520 \begin_inset VSpace bigskip
28523 When you use the decoration
28525 simple rectangular frame
28527 and no inner box, you can allow page breaks within a box.
28528 Note that then, unlike other framed boxes, the frame always uses the whole
28529 column width, the box is set as its own paragraph, and
28541 have no effect on this box type.
28542 The frame line thickness has the size of
28550 \begin_inset Box Framed
28560 height_special "totalheight"
28563 \begin_layout Plain Layout
28564 Allow page break box
28572 \begin_layout Section
28574 \begin_inset Index idx
28577 \begin_layout Plain Layout
28578 Boxes ! Customization
28586 \begin_layout Standard
28587 The default value for the size
28594 \begin_inset space \thinspace{}
28598 It can be changed with the following command in TeX-Code to e.
28599 \begin_inset space \thinspace{}
28603 \begin_inset space \space{}
28607 \begin_inset space \thinspace{}
28613 \begin_layout Standard
28623 \begin_layout Standard
28627 \begin_layout Plain Layout
28639 \begin_inset Box Boxed
28649 height_special "totalheight"
28652 \begin_layout Plain Layout
28654 Rectangular box with
28661 \begin_inset space \thinspace{}
28665 \begin_inset space \thinspace{}
28669 \begin_inset space \thinspace{}
28681 \begin_layout Plain Layout
28695 \begin_layout Standard
28696 \begin_inset VSpace bigskip
28699 The space between the frame and the box content is for all frame styles
28701 \begin_inset space \thinspace{}
28705 You can change it by setting the length
28712 For example the command
28715 \begin_layout Standard
28725 \begin_layout Standard
28726 sets the value to 10
28727 \begin_inset space \thinspace{}
28730 pt, as with the following box:
28733 \begin_layout Standard
28737 \begin_layout Plain Layout
28749 \begin_inset Box Boxed
28759 height_special "totalheight"
28762 \begin_layout Plain Layout
28764 Rectangular box with
28771 \begin_inset space \thinspace{}
28775 \begin_inset space \thinspace{}
28779 \begin_inset space \thinspace{}
28791 \begin_layout Plain Layout
28805 \begin_layout Standard
28806 \begin_inset VSpace bigskip
28809 The diameter of the round corners of the oval boxes can be set with the
28820 \begin_layout Standard
28828 \begin_layout Standard
28829 sets the diameter to 1
28830 \begin_inset space \thinspace{}
28837 \begin_layout Standard
28845 \begin_layout Standard
28846 sets the diameter to
28849 \begin_inset space \thinspace{}
28853 \begin_inset space \thinspace{}
28856 minimum(width and heigth of box)
28868 \begin_layout Standard
28872 \begin_layout Plain Layout
28882 \begin_inset Box Ovalbox
28892 height_special "totalheight"
28895 \begin_layout Plain Layout
28904 \begin_inset space \thinspace{}
28908 \begin_inset space \thinspace{}
28912 \begin_inset space \thinspace{}
28924 \begin_layout Plain Layout
28936 \begin_layout Standard
28937 \begin_inset VSpace bigskip
28940 The size of the shadow can be adjusted by changing the length
28948 \begin_inset space \thinspace{}
28951 pt for the following box by this command:
28954 \begin_layout Standard
28964 \begin_layout Standard
28968 \begin_layout Plain Layout
28980 \begin_inset Box Shadowbox
28990 height_special "totalheight"
28993 \begin_layout Plain Layout
29002 \begin_inset space \thinspace{}
29006 \begin_inset space \thinspace{}
29010 \begin_inset space \thinspace{}
29022 \begin_layout Plain Layout
29036 \begin_layout Standard
29037 \begin_inset VSpace bigskip
29043 \begin_layout Standard
29044 The default value for the size
29051 \begin_inset space \thinspace{}
29055 The default space between the note content and the frame is 9
29056 \begin_inset space \thinspace{}
29059 pt and can be changed with the value of
29066 For example the frame appearance of the following
29070 is set with the TeX-Code commands
29073 \begin_layout Standard
29081 \begin_inset Newline newline
29091 \begin_layout Standard
29095 \begin_layout Plain Layout
29104 \begin_layout Plain Layout
29116 \begin_inset Box Framed
29126 height_special "totalheight"
29129 \begin_layout Plain Layout
29143 \begin_layout Plain Layout
29152 \begin_layout Plain Layout
29166 \begin_layout Standard
29167 \begin_inset VSpace bigskip
29173 \begin_layout Standard
29178 boxes the default space between the box content and the box border is 3
29179 \begin_inset space \thinspace{}
29182 pt and can be changed with the value of
29189 The default background color red can either be changed locally with the
29194 definecolor{shadecolor}
29196 or globally with the menu
29198 Tools\SpecialChar \menuseparator
29199 Preferences\SpecialChar \menuseparator
29200 Colors\SpecialChar \menuseparator
29202 \begin_inset space ~
29214 command is explained in section
29215 \begin_inset space ~
29219 \begin_inset CommandInset ref
29221 reference "sec:Colored-Tables"
29229 \begin_layout Plain Layout
29236 requires the LaTeX-package
29240 in the preamble, see section
29241 \begin_inset space ~
29245 \begin_inset CommandInset ref
29247 reference "sec:Colored-Boxes"
29256 For example the appearance of the following shaded background box is set
29257 with the TeX-Code commands
29260 \begin_layout Standard
29270 \begin_inset Newline newline
29277 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29280 \begin_layout Standard
29284 \begin_layout Plain Layout
29293 \begin_layout Plain Layout
29297 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29303 \begin_inset Box Shaded
29313 height_special "totalheight"
29316 \begin_layout Plain Layout
29319 This is yellow text in a
29329 box with dark green background.
29338 \begin_layout Plain Layout
29347 \begin_layout Plain Layout
29351 definecolor{shadecolor}{rgb}{1,0,0}
29359 \begin_layout Standard
29360 \begin_inset VSpace bigskip
29363 Changed lengths and widths are valid for all boxes following the commands
29367 \begin_layout Section
29369 \begin_inset CommandInset label
29371 name "sec:Minipages"
29376 \begin_inset Index idx
29379 \begin_layout Plain Layout
29388 \begin_layout Standard
29389 Minipages are treated by LaTeX as pages within pages and can therefore for
29390 example have their own footnotes.
29393 \begin_layout Standard
29394 Minipages are useful when you write documents with different languages.
29397 \begin_layout Standard
29398 Below are two example minipages side by side.
29399 Their width is set to 45
29400 \begin_inset space \thinspace{}
29403 col% and they are separated by a horizontal fill, that was inserted via
29406 Insert\SpecialChar \menuseparator
29408 \begin_inset space ~
29411 Formatting\SpecialChar \menuseparator
29413 \begin_inset space ~
29419 \begin_inset Newpage newpage
29425 \begin_layout Standard
29426 \begin_inset Box Frameless
29436 height_special "totalheight"
29439 \begin_layout Plain Layout
29442 Dies ist ein deutscher Text.
29443 Dies ist ein deutscher Text.
29444 Dies ist ein deutscher Text.
29445 Dies ist ein deutscher Text.
29446 Dies ist ein deutscher Text.
29447 Dies ist ein deutscher Text.
29448 Dies ist ein deutscher Text.
29449 Dies ist ein deutscher Text.
29450 Dies ist ein deutscher Text.
29451 Dies ist ein deutscher Text.
29452 Dies ist ein deutscher Text.
29453 Dies ist ein deutscher Text.
29454 Dies ist ein deutscher Text
29458 \begin_layout Plain Layout
29461 Dies ist eine deutsche Fußnote.
29467 Dies ist ein deutscher Text.
29468 Dies ist ein deutscher Text.
29474 \begin_inset space \hfill{}
29478 \begin_inset Box Frameless
29488 height_special "totalheight"
29491 \begin_layout Plain Layout
29492 This is an English Text.
29493 This is an English Text.
29494 This is an English Text.
29495 This is an English Text.
29496 This is an English Text.
29497 This is an English Text.
29498 This is an English Text.
29499 This is an English Text.
29500 This is an English Text.
29501 This is an English Text.
29502 This is an English Text.
29503 This is an English Text.
29504 This is an English Text.
29505 This is an English Text.
29506 This is an English Text.
29507 This is an English Text.
29511 \begin_layout Plain Layout
29512 This is an English footnote.
29517 This is an English Text.
29526 \begin_layout Standard
29527 \begin_inset VSpace bigskip
29530 The document-wide paragraph settings are ignored within minipages.
29531 That means that there will be no space between paragraphs in minipages
29532 although you set it to e.
29533 \begin_inset space \thinspace{}
29537 \begin_inset space \space{}
29544 in the document settings.
29547 \begin_layout Standard
29548 Minipages can also be used to set a background color for text parts, see
29550 \begin_inset space ~
29554 \begin_inset CommandInset ref
29556 reference "sub:Color-for-Paragraphs"
29563 \begin_layout Standard
29564 \begin_inset Note Greyedout
29567 \begin_layout Plain Layout
29572 You cannot have floats or margin notes inside minipages but minipages can
29573 be used inside tables, floats, and other boxes.
29581 \begin_layout Section
29583 \begin_inset CommandInset label
29585 name "sec:Parboxes"
29590 \begin_inset Index idx
29593 \begin_layout Plain Layout
29602 \begin_layout Standard
29603 Parboxes are very similar to minipages with the difference that they cannot
29607 \begin_layout Standard
29609 \begin_inset Box Frameless
29619 height_special "totalheight"
29622 \begin_layout Plain Layout
29623 This a text within a parbox.
29624 This a text within a parbox.
29627 \begin_layout Plain Layout
29628 This footnote won't appear:
29632 \begin_layout Plain Layout
29633 This footnote is inside a parbox and will therefore not appear.
29646 \begin_layout Section
29647 Boxes for Words and Characters
29648 \begin_inset Index idx
29651 \begin_layout Plain Layout
29652 Boxes ! for Characters
29660 \begin_layout Subsection
29661 Prevent Hyphenation
29662 \begin_inset CommandInset label
29664 name "sec:Prevent-Hyphenation"
29669 \begin_inset Index idx
29672 \begin_layout Plain Layout
29673 Boxes ! to Prevent Hyphenation
29681 \begin_layout Standard
29682 You can use the box type
29686 to prevent words or text from being hyphenated.
29687 \begin_inset Newline newline
29690 Here is an example text:
29693 \begin_layout Standard
29694 This line is an example to show how you can prevent the hyphenation of
29695 \begin_inset Quotes eld
29699 \begin_inset Quotes erd
29705 \begin_layout Standard
29706 To prevent the hyphenation of the word
29707 \begin_inset Quotes eld
29711 \begin_inset Quotes erd
29714 , put the word into a box, set the
29717 \begin_inset space ~
29727 \begin_inset space \thinspace{}
29733 \begin_layout Standard
29734 This is the result:
29737 \begin_layout Standard
29738 This line is an example to show how you can prevent the hyphenation of
29739 \begin_inset Box Frameless
29749 height_special "totalheight"
29752 \begin_layout Plain Layout
29753 \begin_inset Quotes eld
29757 \begin_inset Quotes erd
29768 \begin_layout Standard
29769 You can alternatively set the command
29770 \begin_inset Quotes eld
29780 \begin_inset Quotes grd
29783 as TeX-Code directly before the word:
29786 \begin_layout Standard
29787 This line is an example to show how you can prevent the hyphenation of
29788 \begin_inset Quotes eld
29795 \begin_layout Plain Layout
29805 \begin_inset Quotes erd
29811 \begin_layout Standard
29812 Of course the word now protrudes over the side margin.
29813 To avoid this, add via the menu
29815 Insert\SpecialChar \menuseparator
29817 \begin_inset space ~
29820 Formatting\SpecialChar \menuseparator
29822 \begin_inset space ~
29830 arg "newline-insert newline"
29833 ) a line break before the word:
29836 \begin_layout Standard
29837 This line is an example to show how you can prevent the hyphenation of
29838 \begin_inset Newline newline
29842 \begin_inset Box Frameless
29852 height_special "totalheight"
29855 \begin_layout Plain Layout
29856 \begin_inset Quotes eld
29860 \begin_inset Quotes erd
29871 \begin_layout Subsection
29873 \begin_inset CommandInset label
29875 name "sub:Vertical-Alignment"
29880 \begin_inset Index idx
29883 \begin_layout Plain Layout
29884 Boxes ! for Vertical Alignment
29890 \begin_inset Index idx
29893 \begin_layout Plain Layout
29902 \begin_layout Standard
29903 With the help of the command
29909 you can align words, characters or other boxes vertically relative to the
29917 is used with the following scheme:
29920 \begin_layout Standard
29925 raisebox{lift}[height][depth]{box content}
29928 \begin_layout Standard
29929 The lift can be a positive value to raise the box or a negative value to
29933 \begin_layout Standard
29934 To align for example the word
29935 \begin_inset Quotes eld
29939 \begin_inset Quotes erd
29942 so that the bottom of the
29943 \begin_inset Quotes eld
29947 \begin_inset Quotes erd
29951 \begin_inset Quotes eld
29955 \begin_inset Quotes erd
29958 is at the baseline, insert the command
29961 \begin_layout Standard
29971 \begin_layout Standard
29972 in TeX-Code before the word.
29973 After the word insert a closing brace
29974 \begin_inset Quotes eld
29982 \begin_inset Quotes erd
29986 \begin_inset Newline newline
29989 This is the result:
29992 \begin_layout Standard
29993 This is a text line with the word
29997 \begin_layout Plain Layout
30009 \begin_inset Quotes eld
30013 \begin_inset Quotes erd
30020 \begin_layout Plain Layout
30030 \begin_layout Standard
30031 \begin_inset VSpace bigskip
30034 When you raise or lower characters in a line, the line distance will be
30038 \begin_layout Standard
30039 This is a text line with the word
30043 \begin_layout Plain Layout
30055 \begin_inset Quotes eld
30059 \begin_inset Quotes erd
30066 \begin_layout Plain Layout
30074 \begin_inset Newline newline
30077 This is a text line with the word
30081 \begin_layout Plain Layout
30091 \begin_inset Quotes eld
30095 \begin_inset Quotes erd
30102 \begin_layout Plain Layout
30112 \begin_layout Standard
30113 If you want to prevent this for a certain reason, set the box height to
30118 \begin_layout Standard
30128 \begin_layout Standard
30129 This is a text line with the word
30133 \begin_layout Plain Layout
30145 \begin_inset Quotes eld
30149 \begin_inset Quotes erd
30156 \begin_layout Plain Layout
30164 \begin_inset Newline newline
30167 This is a text line with the word
30171 \begin_layout Plain Layout
30175 raisebox{0.5cm}[0pt]{
30181 \begin_inset Quotes eld
30185 \begin_inset Quotes erd
30192 \begin_layout Plain Layout
30202 \begin_layout Section
30204 \begin_inset CommandInset label
30206 name "sec:Colored-Boxes"
30211 \begin_inset Index idx
30214 \begin_layout Plain Layout
30223 \begin_layout Subsection
30225 \begin_inset Index idx
30228 \begin_layout Plain Layout
30237 \begin_layout Standard
30238 To color the background of text the text must be put into a so called
30239 \begin_inset Quotes eld
30243 \begin_inset Quotes erd
30247 This requires that the LaTeX-package
30252 \begin_inset Index idx
30255 \begin_layout Plain Layout
30256 LaTeX-packages ! color
30261 is loaded in the document preamble with the command
30264 \begin_layout Standard
30269 @ifundefined{textcolor}
30270 \begin_inset Newline newline
30274 \begin_inset Phantom HPhantom
30277 \begin_layout Plain Layout
30280 \begin_inset space ~
30290 usepackage{color}}{}
30293 \begin_layout Standard
30298 will be loaded automatically by LyX when you color text.
30302 \begin_layout Plain Layout
30303 To avoid it being loaded twice the command
30317 \begin_layout Standard
30318 \begin_inset VSpace medskip
30321 Colorboxes are created with the command
30328 This will be used with the following scheme:
30331 \begin_layout Standard
30336 colorbox{color}{box content}
30339 \begin_layout Standard
30340 The box content can also be a box and colorboxes can also be within other
30344 \begin_layout Standard
30345 The following colors are predefined:
30346 \begin_inset Newline newline
30385 \begin_inset Newline newline
30388 You can also define your own color as described in section
30389 \begin_inset space ~
30393 \begin_inset CommandInset ref
30395 reference "sec:Colored-Tables"
30402 \begin_layout Standard
30404 \begin_inset space \thinspace{}
30408 \begin_inset space \space{}
30411 a red background for a word, insert the command
30414 \begin_layout Standard
30422 \begin_layout Standard
30423 before the word in TeX-Code.
30424 After the word insert a closing brace
30425 \begin_inset Quotes eld
30433 \begin_inset Quotes erd
30437 \begin_inset Newline newline
30440 This is the result:
30443 \begin_layout Standard
30444 This is a line where the word
30448 \begin_layout Plain Layout
30458 \begin_inset Quotes eld
30462 \begin_inset Quotes erd
30469 \begin_layout Plain Layout
30476 has a red background.
30479 \begin_layout Standard
30480 \begin_inset VSpace bigskip
30483 If you would like the box frame in a different color, you can use the command
30490 with the following scheme:
30493 \begin_layout Standard
30498 fcolorbox{frame color}{box color}{box content}
30501 \begin_layout Standard
30515 The frame thickness and the space between the frame and the box content
30516 can be adjusted with the lengths
30528 , respectively, as described in section
30529 \begin_inset space ~
30533 \begin_inset CommandInset ref
30535 reference "sec:Decoration"
30542 \begin_layout Standard
30543 For the following example the command
30546 \begin_layout Standard
30551 fcolorbox{cyan}{magenta}{
30554 \begin_layout Standard
30558 \begin_layout Standard
30559 Here is an example where the frame line thickness was set to 1
30560 \begin_inset space \thinspace{}
30564 \begin_inset Newline newline
30571 \begin_layout Plain Layout
30586 \begin_layout Plain Layout
30590 fcolorbox{cyan}{magenta}{
30595 This is text within a colored, framed box.
30599 \begin_layout Plain Layout
30609 \begin_layout Standard
30610 \begin_inset VSpace bigskip
30613 Of course you can also have colored text inside a colorbox:
30614 \begin_inset Newline newline
30621 \begin_layout Plain Layout
30625 fcolorbox{cyan}{magenta}{
30632 This is colored text within a colored, framed box.
30638 \begin_layout Plain Layout
30649 \begin_layout Plain Layout
30663 \begin_layout Standard
30666 \begin_inset VSpace medskip
30672 \begin_layout Standard
30673 \begin_inset Note Greyedout
30676 \begin_layout Plain Layout
30681 Text in colorboxes cannot have line breaks.
30682 To color multiple text lines or paragraphs, use a box inside a colorbox
30683 as described in the following.
30691 \begin_layout Subsection
30692 Color for Paragraphs
30693 \begin_inset CommandInset label
30695 name "sub:Color-for-Paragraphs"
30700 \begin_inset Index idx
30703 \begin_layout Plain Layout
30704 Color ! for Paragraphs
30712 \begin_layout Standard
30713 To set the background color for more than one text line, put the text into
30715 Before the minipage insert the
30724 \begin_layout Standard
30732 \begin_layout Standard
30734 After the minipage insert a closing brace
30735 \begin_inset Quotes eld
30743 \begin_inset Quotes erd
30749 \begin_layout Standard
30753 \begin_layout Plain Layout
30757 colorbox{lightgrey}{
30763 \begin_inset Box Frameless
30773 height_special "totalheight"
30776 \begin_layout Plain Layout
30777 This is text with background color.
30778 This is text with background color.
30781 \begin_layout Plain Layout
30782 \begin_inset VSpace defskip
30785 The text can have footnotes
30789 \begin_layout Plain Layout
30790 Another example footnote
30795 and can include tables and figures.
30798 \begin_layout Plain Layout
30800 \begin_inset Tabular
30801 <lyxtabular version="3" rows="3" columns="3">
30802 <features tabularvalignment="middle">
30803 <column alignment="center" valignment="top" width="0">
30804 <column alignment="center" valignment="top" width="0">
30805 <column alignment="center" valignment="top" width="0">
30807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30810 \begin_layout Plain Layout
30816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30819 \begin_layout Plain Layout
30825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30828 \begin_layout Plain Layout
30836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30839 \begin_layout Plain Layout
30845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30848 \begin_layout Plain Layout
30850 \begin_inset Quotes erd
30858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30861 \begin_layout Plain Layout
30869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30872 \begin_layout Plain Layout
30878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30881 \begin_layout Plain Layout
30887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30890 \begin_layout Plain Layout
30910 \begin_layout Plain Layout
30920 \begin_layout Section
30921 Rotated and Scaled Boxes
30924 \begin_layout Standard
30925 To use the commands described in this section, the LaTeX-package
30930 \begin_inset Index idx
30933 \begin_layout Plain Layout
30934 LaTeX-packages ! graphicx
30939 needs to be loaded in the document preamble with the command
30942 \begin_layout Standard
30947 @ifundefined{rotatebox}
30948 \begin_inset Newline newline
30952 \begin_inset Phantom HPhantom
30955 \begin_layout Plain Layout
30958 \begin_inset space ~
30968 usepackage{graphicx}}{}
30971 \begin_layout Standard
30972 \begin_inset Note Greyedout
30975 \begin_layout Plain Layout
30980 Some DVI-viewers can't display rotated or scaled material.
30988 \begin_layout Standard
30989 \begin_inset Note Greyedout
30992 \begin_layout Plain Layout
30997 Floats mustn't be inside a rotated or scaled box.
31005 \begin_layout Subsection
31007 \begin_inset Index idx
31010 \begin_layout Plain Layout
31017 \begin_inset Index idx
31020 \begin_layout Plain Layout
31027 \begin_inset Index idx
31030 \begin_layout Plain Layout
31037 \begin_inset Index idx
31040 \begin_layout Plain Layout
31041 Table Customization ! Rotating
31049 \begin_layout Standard
31050 To rotate material, you can put it into a rotated box.
31051 Such a box is created using the command
31057 in TeX-Code with the following scheme:
31060 \begin_layout Standard
31065 rotatebox[rotation origin]{rotation angle}{box content}
31068 \begin_layout Standard
31069 The rotation origin is specified in the form
31074 The following positions are possible:
31094 (top), along with meaningful combinations of the four base positions.
31099 means that the rotation origin is at the top left corner of the box.
31100 When no rotation origin is specified, the position
31105 The rotation angle is a number that can be negative that specifies the
31107 The rotation direction is counterclockwise.
31110 \begin_layout Standard
31111 In the following example the command
31115 rotatebox[origin=c]{60}{
31117 was inserted as TeX-Code before the text
31118 \begin_inset Quotes eld
31122 \begin_inset Quotes erd
31125 ; after the text the box was closed by a closing brace
31132 \begin_layout Standard
31137 \begin_layout Plain Layout
31141 rotatebox[origin=c]{60}{
31150 \begin_layout Plain Layout
31160 \begin_layout Standard
31161 The box content can also be another box or an inline formula:
31164 \begin_layout Standard
31169 \begin_layout Plain Layout
31173 rotatebox[origin=r]{-60}{
31179 \begin_inset Box Doublebox
31189 height_special "totalheight"
31192 \begin_layout Plain Layout
31202 \begin_layout Plain Layout
31213 \begin_layout Plain Layout
31217 rotatebox[origin=lb]{60}{
31223 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31230 \begin_layout Plain Layout
31240 \begin_layout Standard
31241 or an image or table:
31244 \begin_layout Standard
31249 \begin_layout Plain Layout
31253 rotatebox[origin=lb]{90}{
31259 \begin_inset Graphics
31260 filename clipart/platypus.eps
31270 \begin_layout Plain Layout
31277 with a rotated image
31281 \begin_layout Plain Layout
31285 rotatebox[origin=l]{-90}{
31291 \begin_inset Tabular
31292 <lyxtabular version="3" rows="2" columns="2">
31293 <features tabularvalignment="middle">
31294 <column alignment="center" valignment="top" width="0">
31295 <column alignment="center" valignment="top" width="0">
31297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31300 \begin_layout Plain Layout
31306 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31309 \begin_layout Plain Layout
31317 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31320 \begin_layout Plain Layout
31326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31329 \begin_layout Plain Layout
31344 \begin_layout Plain Layout
31354 \begin_layout Subsection
31356 \begin_inset Index idx
31359 \begin_layout Plain Layout
31366 \begin_inset Index idx
31369 \begin_layout Plain Layout
31376 \begin_inset Index idx
31379 \begin_layout Plain Layout
31386 \begin_inset Index idx
31389 \begin_layout Plain Layout
31390 Table Customization ! Scaling
31398 \begin_layout Standard
31399 To scale material the commands
31411 can be used as TeX-Code.
31414 \begin_layout Standard
31421 is used with the following scheme:
31424 \begin_layout Standard
31429 scalebox{horizontal}[vertical]{box content}
31432 \begin_layout Standard
31433 Horizontal and vertical are the corresponding scaling factors.
31434 If no vertical scaling factor is given, the horizontal factor will also
31435 be used as the vertical one.
31438 \begin_layout Standard
31445 creates for example a double size
31449 \begin_layout Plain Layout
31462 \begin_layout Plain Layout
31469 , compared with the document text size.
31472 \begin_layout Standard
31477 scalebox{2}[1]{Hello}
31479 on the other hand distorts the
31483 \begin_layout Plain Layout
31496 \begin_layout Plain Layout
31506 \begin_layout Standard
31507 If the scaling factor is negative, the box content will be mirrored.
31508 Therefore the command
31512 scalebox{-1}[1]{Hello}
31514 can be used to create mirror writing:
31518 \begin_layout Plain Layout
31531 \begin_layout Plain Layout
31541 \begin_layout Standard
31546 scalebox{1}[-1]{Hello}
31552 \begin_layout Plain Layout
31565 \begin_layout Plain Layout
31575 \begin_layout Standard
31580 scalebox{-1}[1]{box content}
31582 there exists the command
31583 \begin_inset Newline newline
31590 reflectbox{box content}
31595 \begin_layout Standard
31596 \begin_inset VSpace bigskip
31605 is used to scale the box to a defined width and height.
31606 The command scheme is:
31609 \begin_layout Standard
31614 resizebox{width}{height}{box content}
31617 \begin_layout Standard
31618 If one of the two command arguments given is an exclamation mark
31622 , the size is set so that the aspect ratio of the box content is kept.
31625 \begin_layout Standard
31630 resizebox{2cm}{1cm}{Hello}
31636 \begin_layout Plain Layout
31640 resizebox{2cm}{1cm}{
31649 \begin_layout Plain Layout
31657 \begin_inset Newline newline
31664 resizebox{2cm}{!}{Hello}
31670 \begin_layout Plain Layout
31683 \begin_layout Plain Layout
31693 \begin_layout Standard
31694 \begin_inset VSpace bigskip
31698 \begin_inset Note Greyedout
31701 \begin_layout Plain Layout
31718 are set to zero, no LaTeX-errors occur when exporting the document but
31719 the exported files can not or only partly be displayed.
31727 \begin_layout Standard
31728 \begin_inset VSpace bigskip
31734 \begin_layout Standard
31735 The boxes can be combined in any order.
31737 \begin_inset space \thinspace{}
31741 \begin_inset space \space{}
31745 \begin_inset Newline newline
31752 rotatebox[origin=c]{-45}{
31756 reflectbox{Hello}}}
31757 \begin_inset Newline newline
31765 \begin_layout Standard
31770 \begin_layout Plain Layout
31774 rotatebox[origin=c]{-45}{
31787 \begin_layout Plain Layout
31797 \begin_layout Standard
31799 Images, tables, and inline formulas are allowed as box content:
31802 \begin_layout Standard
31807 \begin_layout Plain Layout
31811 rotatebox[origin=c]{-30}{
31821 \begin_inset Graphics
31822 filename clipart/platypus.eps
31832 \begin_layout Plain Layout
31843 \begin_layout Plain Layout
31847 rotatebox[origin=c]{-45}{
31857 \begin_inset Tabular
31858 <lyxtabular version="3" rows="2" columns="2">
31859 <features tabularvalignment="middle">
31860 <column alignment="center" valignment="top" width="0">
31861 <column alignment="center" valignment="top" width="0">
31863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31866 \begin_layout Plain Layout
31872 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31875 \begin_layout Plain Layout
31883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31886 \begin_layout Plain Layout
31892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31895 \begin_layout Plain Layout
31910 \begin_layout Plain Layout
31921 \begin_layout Plain Layout
31925 rotatebox[origin=c]{-45}{
31935 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31942 \begin_layout Plain Layout
31952 \begin_layout Standard
31953 When the global formula style
31957 is used in the document
31961 \begin_layout Plain Layout
31963 \begin_inset Quotes eld
31967 \begin_inset Quotes erd
31970 is added to the document class options.
31975 , display style formulas can also be scaled.
31978 \begin_layout Chapter
31979 External Document Parts
31980 \begin_inset Index idx
31983 \begin_layout Plain Layout
31984 External Document Parts
31992 \begin_layout Standard
31995 Insert\SpecialChar \menuseparator
31998 you can insert external material to your document.
32002 \begin_layout Description
32004 \begin_inset space ~
32007 Document Another LyX document; its content is directly inserted to your
32011 \begin_layout Description
32013 \begin_inset space ~
32016 Text A text document; each line is inserted in your document as a separate
32020 \begin_layout Description
32022 \begin_inset space ~
32026 \begin_inset space ~
32030 \begin_inset space ~
32033 Lines A text document; text lines are inserted in your document continuously
32034 but an empty text line creates a new paragraph.
32037 \begin_layout Description
32039 \begin_inset space ~
32042 Material Files in various formats.
32045 \begin_layout Description
32047 \begin_inset space ~
32050 Document LyX or LaTeX-documents.
32053 \begin_layout Section
32055 \begin_inset Index idx
32058 \begin_layout Plain Layout
32059 External Document Parts ! External Material
32067 \begin_layout Standard
32068 The external material feature allows you to insert files in to your document
32069 without converting them to a format that can be read by the document output
32071 LyX takes care of the necessary conversions.
32072 This is similar to images that can be inserted in various image formats
32074 When you have enabled Instant Preview in LyX's preferences under
32077 \begin_inset space ~
32081 \begin_inset space ~
32084 feel\SpecialChar \menuseparator
32087 , the external material types Dia and Xfig are directly shown in LyX.
32090 \begin_layout Standard
32091 External material can be inserted via the
32095 dialog that is accessible with the menu
32097 Insert\SpecialChar \menuseparator
32098 File\SpecialChar \menuseparator
32100 \begin_inset space ~
32106 Currently the following file types (
32113 \begin_layout Description
32114 ChessDiagram This template supports chess position diagrams made with the
32118 \begin_inset CommandInset href
32121 target "http://en.wikipedia.org/wiki/XBoard"
32130 \begin_layout Description
32131 Date This inserts the date in the form
32136 This is a date inserted as external material:
32137 \begin_inset External
32144 \begin_inset space ~
32148 \begin_inset Note Note
32151 \begin_layout Plain Layout
32152 Remove the protected space when bug 4398 is fixed!
32158 \begin_inset Newline newline
32161 The date is not shown within LyX, only in the output.
32162 There are two other methods of inserting a date: Via menu
32164 Insert\SpecialChar \menuseparator
32167 and with the LaTeX command
32174 The different methods are compared in Table
32175 \begin_inset space ~
32179 \begin_inset CommandInset ref
32181 reference "tab:Comparison-of-the"
32188 \begin_layout Description
32189 Dia This template supports diagrams created with the program
32192 \begin_inset CommandInset href
32195 target "http://en.wikipedia.org/wiki/Dia_(software)"
32204 \begin_layout Description
32205 LilyPond This template is used for music notation typeset with the program
32206 \begin_inset Newline linebreak
32212 \begin_inset CommandInset href
32215 target "http://en.wikipedia.org/wiki/LilyPond"
32224 \begin_layout Description
32225 PDFPages With this template you can insert PDF documents to your document.
32226 To insert certain or all pages of a PDF, use the
32236 LaTeX and LyX options
32238 tab according to the template description in the dialog.
32243 option is given, only the first page of the PDF will be inserted.
32246 \begin_layout Description
32247 RasterImage This can be used for bitmap images.
32248 Nearly all popular image formats are supported.
32249 The image can be treated in the
32253 dialog like the images that are usually included via the
32257 dialog as described in section
32258 \begin_inset space ~
32262 \begin_inset CommandInset ref
32264 reference "sec:Graphics-Dialog"
32269 The difference is that only raster images are allowed; that means that
32270 PDF and EPS-images are not supported.
32273 \begin_layout Description
32274 XFig This template supports images created with the program
32277 \begin_inset CommandInset href
32280 target "http://en.wikipedia.org/wiki/Xfig"
32289 \begin_layout Standard
32290 \begin_inset Float table
32296 \begin_layout Plain Layout
32297 \begin_inset Caption
32299 \begin_layout Plain Layout
32300 \begin_inset CommandInset label
32302 name "tab:Comparison-of-the"
32306 Comparison of the date input methods.
32314 \begin_layout Plain Layout
32316 \begin_inset Tabular
32317 <lyxtabular version="3" rows="4" columns="4">
32318 <features tabularvalignment="middle">
32319 <column alignment="center" valignment="top" width="0">
32320 <column alignment="center" valignment="top" width="0">
32321 <column alignment="center" valignment="top" width="0">
32322 <column alignment="center" valignment="top" width="0">
32324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32327 \begin_layout Plain Layout
32333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32336 \begin_layout Plain Layout
32339 External Material\SpecialChar \menuseparator
32345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32348 \begin_layout Plain Layout
32351 Insert\SpecialChar \menuseparator
32357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32360 \begin_layout Plain Layout
32372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32375 \begin_layout Plain Layout
32381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32384 \begin_layout Plain Layout
32390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32393 \begin_layout Plain Layout
32399 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32402 \begin_layout Plain Layout
32403 as TeX-Code inset box
32410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32413 \begin_layout Plain Layout
32419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32422 \begin_layout Plain Layout
32428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32431 \begin_layout Plain Layout
32437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32440 \begin_layout Plain Layout
32448 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32451 \begin_layout Plain Layout
32457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32460 \begin_layout Plain Layout
32466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32469 \begin_layout Plain Layout
32475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32478 \begin_layout Plain Layout
32497 \begin_layout Standard
32498 When you use the option
32510 dialog, only the path to the inserted file is shown in the output.
32511 \begin_inset Newline newline
32514 External material is displayed in LyX either as a box like this:
32515 \begin_inset Graphics
32516 filename clipart/ExternalMaterialQt4.png
32518 scaleBeforeRotation
32522 or as image, depending on the option
32528 LaTeX and LyX options
32533 \begin_layout Standard
32540 manual explains how you can define your own templates.
32543 \begin_layout Section
32545 \begin_inset CommandInset label
32547 name "sec:Child-Documents"
32552 \begin_inset Index idx
32555 \begin_layout Plain Layout
32556 External Document Parts ! Child Documents
32562 \begin_inset Index idx
32565 \begin_layout Plain Layout
32574 \begin_layout Standard
32575 Child documents are used when you have a long document consisting of several
32576 larger parts or sections.
32577 For maintenance it is often useful and sometimes even required to split
32578 the document in several files that can be revised separately.
32579 The different documents are then the so called child documents and a master
32580 document connects them to print the full document or parts of it.
32581 A child documents inherits elements of its master, for example the LaTeX
32582 preamble, the bibliography, and labels for cross-references.
32585 \begin_layout Standard
32586 To be able to work on child documents without the need to open their master,
32587 specify in the child document the master in the menu
32589 Document\SpecialChar \menuseparator
32590 Settings\SpecialChar \menuseparator
32592 \begin_inset space ~
32598 This master document will then be used in the background by LyX when you
32599 edit the child document.
32602 \begin_layout Standard
32603 Included documents are displayed in LyX as a box like this:
32604 \begin_inset Graphics
32605 filename clipart/ChildDocumentQt4.png
32607 scaleBeforeRotation
32611 To include child documents in a master document use the menu
32613 Insert\SpecialChar \menuseparator
32614 File\SpecialChar \menuseparator
32616 \begin_inset space ~
32622 A dialog pops up where you can choose between four include methods:
32625 \begin_layout Description
32626 Include You can include LyX and LaTeX-documents.
32635 dialog, the included documents will be opened in LyX in a new file tab
32636 so that you can modify them.
32637 \begin_inset Newline newline
32643 \begin_layout Standard
32644 Here is a child document inserted using
32649 \begin_inset CommandInset include
32650 LatexCommand include
32651 filename "DummyDocument1.lyx"
32658 \begin_layout Standard
32659 The section numbering includes the sections of the included files in the
32660 order they are inserted in the master document.
32661 The included example document has for example a subsection that is numbered
32662 as a subsection of this section.
32663 Labels of included documents can be referenced: Subsection
32664 \begin_inset space ~
32668 \begin_inset CommandInset ref
32670 reference "sub:External-Subsection-1"
32677 \begin_layout Standard
32678 The preamble of the child document is ignored; only the preamble of the
32679 master document is used.
32680 Branches in child documents will be ignored by the master document when
32681 the master document does not have a branch with the same name.
32682 Included documents are inserted starting on a new page and ending with
32686 \begin_layout Standard
32687 If you are only working on a certain chapter of a large document and want
32688 to save compiling time, you can put each included file into a branch.
32692 \begin_layout Plain Layout
32693 Branches are described in section
32706 By enabling/disabling branches you can decide what included files will
32707 appear in the output.
32710 \begin_layout Standard
32711 \begin_inset Note Greyedout
32714 \begin_layout Plain Layout
32719 Due to a bug in LyX the LaTeX command
32725 can currently not be used as an alternative to decide what files should
32734 \begin_layout Standard
32735 \begin_inset Note Greyedout
32738 \begin_layout Plain Layout
32743 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32744 w the document in case the child document uses another document class than
32745 the master document as this will lead to unexpected outputs.
32753 \begin_layout Description
32754 Input This method is very similar to the Include method.
32755 The differences are:
32759 \begin_layout Itemize
32760 Input files don't start with a new page and don't end with a page break.
32763 \begin_layout Itemize
32764 Input files can be previewed in LyX when
32767 \begin_inset space ~
32772 is enabled in LyX's preferences under
32775 \begin_inset space ~
32779 \begin_inset space ~
32782 feel\SpecialChar \menuseparator
32788 \begin_layout Itemize
32799 \begin_layout Standard
32800 Here is a child document inserted using
32805 \begin_inset CommandInset include
32807 filename "DummyDocument2.lyx"
32814 \begin_layout Description
32815 Verbatim With this method every text file can be included.
32816 The file is shown in the output with its source code; no command used in
32817 the text is invoked.
32818 You can use the option
32820 Mark spaces in output
32822 that displays the character
32823 \begin_inset Quotes eld
32830 \begin_layout Plain Layout
32840 \begin_inset Quotes erd
32843 for every space character in the source code.
32844 The difference from the method via the menu
32846 Insert\SpecialChar \menuseparator
32847 File\SpecialChar \menuseparator
32849 \begin_inset space ~
32854 is that the document content is not shown in LyX.
32857 \begin_layout Standard
32858 Here is a child document inserted as Verbatim:
32859 \begin_inset CommandInset include
32860 LatexCommand verbatiminput
32861 filename "DummyTextDocument.txt"
32866 \begin_inset VSpace bigskip
32869 Here is a child document inserted as Verbatim using the
32871 Mark spaces in output
32874 \begin_inset CommandInset include
32875 LatexCommand verbatiminput*
32876 filename "DummyTextDocument.txt"
32883 \begin_layout Standard
32884 \begin_inset VSpace bigskip
32890 \begin_layout Standard
32891 \begin_inset Note Greyedout
32894 \begin_layout Plain Layout
32899 As you can see in the examples above, the text of the documents included
32904 is not broken at the end of the document lines.
32912 \begin_layout Description
32913 Listings This type is described in chapter
32914 \begin_inset space ~
32918 \begin_inset CommandInset ref
32920 reference "cha:Program-Code-Listings"
32927 \begin_layout Standard
32928 \begin_inset Note Greyedout
32931 \begin_layout Plain Layout
32936 Including the same document twice in a document using different methods
32937 could cause LaTeX-problems.
32945 \begin_layout Chapter
32946 Program Code Listings
32947 \begin_inset CommandInset label
32949 name "cha:Program-Code-Listings"
32954 \begin_inset Index idx
32957 \begin_layout Plain Layout
32964 \begin_inset Index idx
32967 \begin_layout Plain Layout
32974 \begin_inset Index idx
32977 \begin_layout Plain Layout
32986 \begin_layout Standard
32987 To include and typeset program code you can use the
32991 inset that can be inserted via the menu
32993 Insert\SpecialChar \menuseparator
33002 \begin_inset Index idx
33005 \begin_layout Plain Layout
33006 LaTeX-packages ! listings
33011 provides a powerful and flexible way to insert program source code into
33015 \begin_layout Standard
33016 Right-clicking on a listings inset opens the context menu containing where
33017 you can set the listings format.
33020 \begin_layout Standard
33021 By default, a listing starts a new paragraph in the output.
33022 The placement option
33025 \begin_inset space ~
33030 prints the listing inline like this:
33031 \begin_inset listings
33032 lstparams "language={C++}"
33036 \begin_layout Plain Layout
33044 \begin_inset Newline newline
33051 creates a listings float where you can specify the placement options
33052 \begin_inset Quotes eld
33060 \begin_inset Quotes erd
33064 \begin_inset Quotes eld
33072 \begin_inset Quotes erd
33076 \begin_inset Quotes eld
33084 \begin_inset Quotes erd
33088 \begin_inset Quotes eld
33096 \begin_inset Quotes erd
33099 corresponding to the float placement options described in section
33100 \begin_inset space ~
33104 \begin_inset CommandInset ref
33106 reference "sec:Float-Placement"
33111 The placement options can be mixed and are inserted without any separation,
33113 \begin_inset space \thinspace{}
33117 \begin_inset space \space{}
33121 \begin_inset Quotes eld
33129 \begin_inset Quotes erd
33134 \begin_inset Quotes eld
33138 \begin_inset Quotes erd
33141 has sometimes no effect, but you don't need to use the
33145 option in this case as also non-float listings can have captions and be
33149 \begin_layout Standard
33150 You can add captions to listings with the menu
33152 Insert\SpecialChar \menuseparator
33156 Listings can be referenced like floats: Listing
33157 \begin_inset space ~
33161 \begin_inset CommandInset ref
33163 reference "lst:Example-Listing"
33170 \begin_layout Standard
33171 \begin_inset listings
33172 lstparams "language=Python"
33176 \begin_layout Plain Layout
33178 \begin_inset Caption
33180 \begin_layout Plain Layout
33181 \begin_inset CommandInset label
33183 name "lst:Example-Listing"
33187 Example Listing float
33192 # Example listing float
33195 \begin_layout Plain Layout
33200 \begin_layout Plain Layout
33202 'this is a python function'
33205 \begin_layout Plain Layout
33215 \begin_layout Standard
33216 When you have set a programming language in the listings dialog, the keywords
33217 of this language will be recognized and specially typeset in the output.
33218 In the example listings the Python keyword
33219 \begin_inset Quotes eld
33223 \begin_inset Quotes erd
33226 is recognized and printed bold in the output.
33229 \begin_layout Standard
33230 \begin_inset Note Greyedout
33233 \begin_layout Plain Layout
33238 If you don't get bold keywords when using typewriter fonts, your
33242 font probably doesn't provide a bold shape.
33243 In this case select a different one in the menu
33245 Document\SpecialChar \menuseparator
33246 Settings\SpecialChar \menuseparator
33258 provide bold shapes.)
33266 \begin_layout Standard
33270 \begin_inset space ~
33275 of the listings dialog you can specify the line numbering style.
33276 You can insert a number to specify which lines are numbered in the field
33283 \begin_inset space \thinspace{}
33287 \begin_inset space \space{}
33291 \begin_inset Quotes eld
33295 \begin_inset Quotes erd
33298 , only every 3rd line will be numbered.
33301 \begin_layout Standard
33302 You can furthermore specify a range of lines; only these will then appear
33306 Extended character table
33308 should be used when you use national characters like the German umlauts
33310 \begin_inset Newline newline
33313 Here is an example listing with left line numbering, step
33314 \begin_inset Quotes eld
33318 \begin_inset Quotes erd
33322 \begin_inset Quotes eld
33326 \begin_inset Quotes erd
33330 \begin_inset Quotes eld
33333 Extended character table
33334 \begin_inset Quotes erd
33338 \begin_inset Quotes eld
33342 \begin_inset space ~
33346 \begin_inset space ~
33350 \begin_inset Quotes erd
33354 \begin_inset space \thinspace{}
33358 \begin_inset space \thinspace{}
33364 \begin_layout Standard
33365 \begin_inset listings
33366 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
33370 \begin_layout Plain Layout
33375 \begin_layout Plain Layout
33377 'this is a python function'
33380 \begin_layout Plain Layout
33385 \begin_layout Plain Layout
33390 \begin_layout Plain Layout
33392 'This is a German word: Tschüß'
33395 \begin_layout Plain Layout
33400 \begin_layout Plain Layout
33405 \begin_layout Plain Layout
33407 'this is a python function'
33410 \begin_layout Plain Layout
33420 \begin_layout Standard
33421 When you have tabulators in your listing, you can specify the number of
33422 characters that are spanned by a tabulator in the field
33425 \begin_inset space ~
33433 \begin_layout Standard
33434 \begin_inset Note Greyedout
33437 \begin_layout Plain Layout
33442 Due to a bug in the
33446 package the line numbering is shifted by a line by every previous listing.
33447 That's the reason why the lines 2 and 5 are numbered in the above listing
33448 and not the lines 3 and 6.
33456 \begin_layout Standard
33457 \begin_inset VSpace bigskip
33463 \begin_layout Standard
33464 It is also possible to print lines from a file as listing.
33465 To do this, use the menu
33467 Insert\SpecialChar \menuseparator
33468 File\SpecialChar \menuseparator
33471 and choose the type
33479 \begin_layout Plain Layout
33480 The other child document types are described in section
33481 \begin_inset space ~
33485 \begin_inset CommandInset ref
33487 reference "sec:Child-Documents"
33496 In the child document dialog you can specify the listing parameters in
33498 To show a list of all available parameters, type in a question mark
33499 \begin_inset Quotes eld
33503 \begin_inset Quotes erd
33509 \begin_layout Standard
33510 To reference child document listings, write a label text into the corresponding
33511 field of the child document dialog.
33512 The label can then be referenced using the menu
33514 Insert\SpecialChar \menuseparator
33520 \begin_layout Standard
33522 \begin_inset space ~
33526 \begin_inset CommandInset ref
33528 reference "lst:file-listing"
33532 is an example for a listing of a file; there the lines 10
33533 \begin_inset space \thinspace{}
33537 \begin_inset space \thinspace{}
33540 15 of this LyX file are listed.
33543 \begin_layout Standard
33544 \begin_inset CommandInset include
33545 LatexCommand lstinputlisting
33546 filename "EmbeddedObjects.lyx"
33547 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33554 \begin_layout Standard
33555 \begin_inset VSpace bigskip
33561 \begin_layout Standard
33562 Inserting a formula into a listing can be done the following way:
33565 \begin_layout Enumerate
33566 Open the listings dialog and add
33567 \begin_inset Newline newline
33575 \begin_inset Newline newline
33578 to the field of the
33585 \begin_layout Enumerate
33586 Create a formula outside the listing
33589 \begin_layout Enumerate
33590 Copy the content of the formula (not the formula inset) to the clipboard
33600 \begin_layout Enumerate
33601 In the listing write
33602 \begin_inset Quotes eld
33610 \begin_inset Quotes erd
33613 and copy from the clipboard between the dollar-signs (shortcut
33622 \begin_layout Standard
33623 \begin_inset listings
33624 lstparams "language=Python,mathescape=true"
33628 \begin_layout Plain Layout
33630 \begin_inset Caption
33632 \begin_layout Plain Layout
33633 Example Listing float containing a formula
33638 # Example listing float
33641 \begin_layout Plain Layout
33646 \begin_layout Plain Layout
33659 \begin_layout Plain Layout
33669 \begin_layout Standard
33670 \begin_inset VSpace bigskip
33676 \begin_layout Standard
33677 Global listings settings can be set in the
33679 Document\SpecialChar \menuseparator
33680 Settings\SpecialChar \menuseparator
33684 To get there a list of available options, type in a question mark
33685 \begin_inset Quotes eld
33689 \begin_inset Quotes erd
33695 \begin_layout Standard
33696 For more information about the
33700 package, we refer to its documentation
33701 \begin_inset CommandInset citation
33710 \begin_layout Standard
33711 \begin_inset Newpage newpage
33717 \begin_layout Chapter
33719 Units available in LyX
33720 \begin_inset Index idx
33723 \begin_layout Plain Layout
33730 \begin_inset CommandInset label
33732 name "cha:Units-available-in"
33739 \begin_layout Standard
33740 To understand the units described in this documentation, Table
33741 \begin_inset space ~
33745 \begin_inset CommandInset ref
33747 reference "tab:Units"
33751 explains all units available in LyX.
33754 \begin_layout Standard
33755 \begin_inset Float table
33761 \begin_layout Plain Layout
33762 \begin_inset Caption
33764 \begin_layout Plain Layout
33765 \begin_inset CommandInset label
33779 \begin_layout Plain Layout
33780 \begin_inset VSpace medskip
33786 \begin_layout Plain Layout
33788 \begin_inset Tabular
33789 <lyxtabular version="3" rows="20" columns="2">
33790 <features tabularvalignment="middle">
33791 <column alignment="center" valignment="top" width="0">
33792 <column alignment="center" valignment="top" width="0">
33794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33797 \begin_layout Plain Layout
33803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33806 \begin_layout Plain Layout
33814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33817 \begin_layout Plain Layout
33823 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33826 \begin_layout Plain Layout
33834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33837 \begin_layout Plain Layout
33843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33846 \begin_layout Plain Layout
33854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33857 \begin_layout Plain Layout
33863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33866 \begin_layout Plain Layout
33874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33877 \begin_layout Plain Layout
33883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33886 \begin_layout Plain Layout
33888 \begin_inset space \thinspace{}
33892 \begin_inset space \thinspace{}
33902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33905 \begin_layout Plain Layout
33911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33914 \begin_layout Plain Layout
33916 \begin_inset space \thinspace{}
33920 \begin_inset space \thinspace{}
33930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33933 \begin_layout Plain Layout
33939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33942 \begin_layout Plain Layout
33943 scaled point (65536
33944 \begin_inset space \thinspace{}
33948 \begin_inset space \thinspace{}
33958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33961 \begin_layout Plain Layout
33967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33970 \begin_layout Plain Layout
33972 \begin_inset space \thinspace{}
33976 \begin_inset space \thinspace{}
33986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33989 \begin_layout Plain Layout
33995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33998 \begin_layout Plain Layout
34000 \begin_inset space \thinspace{}
34004 \begin_inset Formula $\approx$
34008 \begin_inset space \thinspace{}
34018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34021 \begin_layout Plain Layout
34027 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34030 \begin_layout Plain Layout
34032 \begin_inset space \thinspace{}
34036 \begin_inset space \thinspace{}
34046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34049 \begin_layout Plain Layout
34055 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34058 \begin_layout Plain Layout
34059 % of original image width
34066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34069 \begin_layout Plain Layout
34075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34078 \begin_layout Plain Layout
34086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34089 \begin_layout Plain Layout
34095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34098 \begin_layout Plain Layout
34106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34109 \begin_layout Plain Layout
34115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34118 \begin_layout Plain Layout
34126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34129 \begin_layout Plain Layout
34135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34138 \begin_layout Plain Layout
34146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34149 \begin_layout Plain Layout
34155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34158 \begin_layout Plain Layout
34166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34169 \begin_layout Plain Layout
34175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34178 \begin_layout Plain Layout
34186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34189 \begin_layout Plain Layout
34195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34198 \begin_layout Plain Layout
34210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34213 \begin_layout Plain Layout
34219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34222 \begin_layout Plain Layout
34234 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34237 \begin_layout Plain Layout
34243 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34246 \begin_layout Plain Layout
34248 \begin_inset space \thinspace{}
34252 \begin_inset space \thinspace{}
34273 \begin_layout Chapter
34274 Output File Formats with Graphics
34275 \begin_inset CommandInset label
34277 name "cha:Output-File-Formats"
34284 \begin_layout Section
34286 \begin_inset Index idx
34289 \begin_layout Plain Layout
34296 \begin_inset Index idx
34299 \begin_layout Plain Layout
34304 \begin_layout Plain Layout
34315 \begin_layout Plain Layout
34330 \begin_layout Standard
34331 This file type has the extension
34332 \begin_inset Quotes eld
34340 \begin_inset Quotes erd
34345 \begin_inset Quotes eld
34349 \begin_inset Quotes erd
34352 (DVI), because it is completely portable; you can move them from one machine
34353 to another without needing to do any sort of conversion.
34354 At the time when this file-format was developed, this was no matter of
34356 DVIs are used for quick previews and as pre-stage for other output formats,
34360 \begin_layout Standard
34361 \begin_inset Note Greyedout
34364 \begin_layout Plain Layout
34369 DVI-files do not contain images; they will only be a linked.
34374 So don't forget this, if you move your
34378 file to another computer.
34379 This property can also slow down your computer when you view the DVI, because
34380 the DVI-viewer has to convert the image in the background to make it visible
34381 when you scroll in the DVI.
34382 So it is recommended that you use PDF for files with many images.
34385 \begin_layout Standard
34386 You can export your document to DVI by using the menu
34388 File\SpecialChar \menuseparator
34389 Export\SpecialChar \menuseparator
34393 You can view your document as DVI via the
34397 menu or by using the toolbar button
34398 \begin_inset Graphics
34399 filename ../images/buffer-view_dvi.png
34401 scaleBeforeRotation
34408 \begin_layout Section
34410 \begin_inset CommandInset label
34412 name "sec:PostScript"
34417 \begin_inset Index idx
34420 \begin_layout Plain Layout
34421 File Formats ! PostScript
34427 \begin_inset Index idx
34430 \begin_layout Plain Layout
34435 \begin_layout Plain Layout
34446 \begin_layout Plain Layout
34461 \begin_layout Standard
34462 This file type has the extension
34463 \begin_inset Quotes eld
34471 \begin_inset Quotes erd
34475 PostScript was developed by the company
34479 as a printer language.
34480 The file therefore contains commands that the printer uses to print the
34482 PostScript can be seen as a
34483 \begin_inset Quotes eld
34486 programming language
34487 \begin_inset Quotes erd
34490 ; you can calculate with it and draw diagrams and images
34494 \begin_layout Plain Layout
34495 If you are interested to learn more about this, have a look at the LaTeX-package
34501 \begin_inset CommandInset citation
34513 Due to this ability, the files are often bigger than PDFs.
34516 \begin_layout Standard
34517 PostScript can only contain images in the format
34518 \begin_inset Quotes eld
34521 Encapsulated PostScript
34522 \begin_inset Quotes erd
34525 (EPS, file extension
34526 \begin_inset Quotes eld
34534 \begin_inset Quotes erd
34538 As LyX allows you to use any known image format in your document, it has
34539 to convert images in the background to EPS.
34541 \begin_inset space ~
34545 \begin_inset space ~
34548 images in your document, LyX has to do 50
34549 \begin_inset space ~
34552 conversions whenever you view or export your document.
34553 This will slow down your work flow with LyX drastically.
34554 So if you plan to use PostScript, you can insert your images directly as
34555 EPS to avoid this problem.
34558 \begin_layout Standard
34559 You can export your document to PostScript using the menu
34561 File\SpecialChar \menuseparator
34562 Export\SpecialChar \menuseparator
34566 You can view your document as PostScript via the
34570 menu or by using the toolbar button
34571 \begin_inset Graphics
34572 filename ../images/buffer-view_ps.png
34574 scaleBeforeRotation
34581 \begin_layout Section
34583 \begin_inset Index idx
34586 \begin_layout Plain Layout
34593 \begin_inset Index idx
34596 \begin_layout Plain Layout
34605 \begin_layout Standard
34606 This file type has the extension
34607 \begin_inset Quotes eld
34615 \begin_inset Quotes erd
34620 \begin_inset Quotes eld
34623 Portable Document Format
34624 \begin_inset Quotes erd
34627 (PDF) was developed by
34631 as a derivative of PostScript.
34632 It is more compressed and it uses fewer commands than PostScript.
34634 \begin_inset Quotes eld
34638 \begin_inset Quotes erd
34641 implies, it can be processed at any computer system and the printed output
34642 looks exactly the same.
34645 \begin_layout Standard
34646 PDF can contain images in its own PDF format, in the format
34647 \begin_inset Quotes eld
34650 Joint Photographic Experts Group
34651 \begin_inset Quotes erd
34654 (JPG, file extension
34655 \begin_inset Quotes eld
34663 \begin_inset Quotes erd
34667 \begin_inset Quotes eld
34675 \begin_inset Quotes erd
34678 ), and in the format
34679 \begin_inset Quotes eld
34682 Portable Network Graphics
34683 \begin_inset Quotes erd
34686 (PNG, file extension
34687 \begin_inset Quotes eld
34695 \begin_inset Quotes erd
34699 Nevertheless you can use any other image format, because LyX converts them
34700 in the background to one of these formats.
34701 But as described in the section about PostScript, the image conversion
34702 will slow down your work flow.
34703 So it is recommended that you use images in one of the three mentioned
34707 \begin_layout Standard
34708 You can export your document to PDF via the menu
34710 File\SpecialChar \menuseparator
34713 in three different ways:
34716 \begin_layout Description
34718 \begin_inset space ~
34721 (ps2pdf) This uses the program
34725 that creates a PDF from a PostScript-version of your file.
34726 The PostScript-version is produced by the program
34730 which uses a DVI-version as intermediate step.
34731 So this export variant consists of three conversions.
34734 \begin_layout Description
34736 \begin_inset space ~
34739 (dvipdfm) This uses the program
34743 that converts your file in the background to DVI and in a second step to
34747 \begin_layout Description
34749 \begin_inset space ~
34752 (pdflatex) This uses the program
34756 that converts your file directly to PDF.
34759 \begin_layout Standard
34760 It is recommended that you use
34763 \begin_inset space ~
34772 supports all features of actual PDF-versions, is quick and works stable.
34777 is not under development and therefore a bit outdated.
34780 \begin_layout Standard
34781 You can view your document as PDF via the
34785 menu or by using the toolbar button
34786 \begin_inset Graphics
34787 filename ../images/buffer-view_pdf2.png
34789 scaleBeforeRotation
34800 \begin_inset space ~
34808 \begin_layout Chapter
34809 Explanation of Equation
34810 \begin_inset space ~
34814 \begin_inset CommandInset ref
34821 \begin_inset CommandInset label
34823 name "cha:Explanation-of-Equation"
34830 \begin_layout Standard
34831 We can calculate the total width of
34836 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34842 \begin_layout Standard
34843 \begin_inset Formula \begin{equation}
34844 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
34850 \begin_inset Formula $W_{g\, n}$
34853 is the given width of all cells,
34859 is the LaTeX-length between the cell text and the cell border (its default
34861 \begin_inset space \thinspace{}
34871 is the thickness of the cell border line, the default is 0.4
34872 \begin_inset space \thinspace{}
34878 \begin_layout Standard
34880 \begin_inset space ~
34884 \begin_inset CommandInset ref
34886 reference "eq:Wtot_n"
34890 , the total width of a multicolumn
34891 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34897 \begin_layout Standard
34898 \begin_inset Formula \begin{equation}
34899 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
34907 \begin_layout Standard
34908 By setting equation
34909 \begin_inset space ~
34913 \begin_inset CommandInset ref
34915 reference "eq:Wtot_n"
34920 \begin_inset CommandInset ref
34922 reference "eq:Wtot_mult"
34926 equal we can calculate the needed given width
34927 \begin_inset Formula $W_{g\, n}$
34934 columns are spanned, so that each column has a total width of
34935 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34941 \begin_layout Standard
34942 \begin_inset Formula \begin{equation}
34943 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n
34951 \begin_layout Bibliography
34952 \labelwidthstring Bibliography
34953 \begin_inset CommandInset bibitem
34954 LatexCommand bibitem
34955 key "latexcompanion"
34959 Frank Mittelbach and Michel Goossens:
34961 The LaTeX Companion Second Edition.
34964 Addison-Wesley, 2004
34967 \begin_layout Bibliography
34968 \labelwidthstring Bibliography
34969 \begin_inset CommandInset bibitem
34970 LatexCommand bibitem
34975 Helmut Kopka and Patrick W.
34978 A Guide to LaTeX Fourth Edition.
34981 Addison-Wesley, 2003
34984 \begin_layout Bibliography
34985 \labelwidthstring Bibliography
34986 \begin_inset CommandInset bibitem
34987 LatexCommand bibitem
34994 LaTeX: A Document Preparation System.
34997 Addison-Wesley, second edition, 1994
35000 \begin_layout Bibliography
35001 \labelwidthstring Bibliography
35002 \begin_inset CommandInset bibitem
35003 LatexCommand bibitem
35008 Documentation of the LaTeX-package
35011 \begin_inset CommandInset href
35014 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
35021 \begin_inset Index idx
35024 \begin_layout Plain Layout
35025 LaTeX-packages ! booktabs
35033 \begin_layout Bibliography
35034 \labelwidthstring Bibliography
35035 \begin_inset CommandInset bibitem
35036 LatexCommand bibitem
35041 Documentation of the LaTeX-package
35044 \begin_inset CommandInset href
35047 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
35054 \begin_inset Index idx
35057 \begin_layout Plain Layout
35058 LaTeX-packages ! caption
35066 \begin_layout Bibliography
35067 \labelwidthstring Bibliography
35068 \begin_inset CommandInset bibitem
35069 LatexCommand bibitem
35074 Documentation of the LaTeX-package
35077 \begin_inset CommandInset href
35080 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
35087 \begin_inset Index idx
35090 \begin_layout Plain Layout
35091 LaTeX-packages ! endfloat
35099 \begin_layout Bibliography
35100 \labelwidthstring Bibliography
35101 \begin_inset CommandInset bibitem
35102 LatexCommand bibitem
35107 Documentation of the LaTeX-package
35110 \begin_inset CommandInset href
35113 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
35120 \begin_inset Index idx
35123 \begin_layout Plain Layout
35124 LaTeX-packages ! wrapfig
35128 \begin_layout Plain Layout
35145 \begin_layout Bibliography
35146 \labelwidthstring Bibliography
35147 \begin_inset CommandInset bibitem
35148 LatexCommand bibitem
35153 Documentation of the LaTeX-package
35156 \begin_inset CommandInset href
35159 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
35166 \begin_inset Index idx
35169 \begin_layout Plain Layout
35170 LaTeX-packages ! footmisc
35178 \begin_layout Bibliography
35179 \labelwidthstring Bibliography
35180 \begin_inset CommandInset bibitem
35181 LatexCommand bibitem
35186 Documentation of the LaTeX-package
35189 \begin_inset CommandInset href
35192 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
35199 \begin_inset Index idx
35202 \begin_layout Plain Layout
35203 LaTeX-packages ! hyperref
35211 \begin_layout Bibliography
35212 \labelwidthstring Bibliography
35213 \begin_inset CommandInset bibitem
35214 LatexCommand bibitem
35219 Documentation of the LaTeX-package
35222 \begin_inset CommandInset href
35225 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
35232 \begin_inset Index idx
35235 \begin_layout Plain Layout
35236 LaTeX-packages ! hyperref
35244 \begin_layout Bibliography
35245 \labelwidthstring Bibliography
35246 \begin_inset CommandInset bibitem
35247 LatexCommand bibitem
35252 Documentation of the LaTeX-package
35255 \begin_inset CommandInset href
35258 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
35265 \begin_inset Index idx
35268 \begin_layout Plain Layout
35269 LaTeX-packages ! KOMA-Script
35277 \begin_layout Bibliography
35278 \labelwidthstring Bibliography
35279 \begin_inset CommandInset bibitem
35280 LatexCommand bibitem
35285 Documentation of the LaTeX-package
35288 \begin_inset CommandInset href
35291 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
35298 \begin_inset Index idx
35301 \begin_layout Plain Layout
35302 LaTeX-packages ! listings
35310 \begin_layout Bibliography
35311 \labelwidthstring Bibliography
35312 \begin_inset CommandInset bibitem
35313 LatexCommand bibitem
35318 Documentation of the LaTeX-package
35321 \begin_inset CommandInset href
35324 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
35331 \begin_inset Index idx
35334 \begin_layout Plain Layout
35335 LaTeX-packages ! marginnote
35343 \begin_layout Bibliography
35344 \labelwidthstring Bibliography
35345 \begin_inset CommandInset bibitem
35346 LatexCommand bibitem
35351 Web page of the LaTeX-package
35354 \begin_inset CommandInset href
35357 target "http://tug.org/PSTricks/"
35364 \begin_inset Index idx
35367 \begin_layout Plain Layout
35368 LaTeX-packages ! PSTricks
35376 \begin_layout Bibliography
35377 \labelwidthstring Bibliography
35378 \begin_inset CommandInset bibitem
35379 LatexCommand bibitem
35384 Documentation of the LaTeX-package
35387 \begin_inset CommandInset href
35390 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
35397 \begin_inset Index idx
35400 \begin_layout Plain Layout
35401 LaTeX-packages ! sidecap
35409 \begin_layout Bibliography
35410 \labelwidthstring Bibliography
35411 \begin_inset CommandInset bibitem
35412 LatexCommand bibitem
35417 Documentation of the LaTeX-package
35420 \begin_inset CommandInset href
35423 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
35430 \begin_inset Index idx
35433 \begin_layout Plain Layout
35434 LaTeX-packages ! prettyref
35442 \begin_layout Bibliography
35443 \labelwidthstring Bibliography
35444 \begin_inset CommandInset bibitem
35445 LatexCommand bibitem
35450 Documentation of the LaTeX-package
35453 \begin_inset CommandInset href
35456 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
35463 \begin_inset Index idx
35466 \begin_layout Plain Layout
35467 LaTeX-packages ! refstyle
35475 \begin_layout Bibliography
35476 \labelwidthstring Bibliography
35477 \begin_inset CommandInset bibitem
35478 LatexCommand bibitem
35484 \begin_inset CommandInset href
35487 target "http://wiki.lyx.org/LyX/NewInLyX20"
35491 about new features in
35498 \begin_layout Standard
35499 \begin_inset CommandInset index_print
35500 LatexCommand printindex