1 #LyX 2.0.0beta1 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
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 highlighting the last 3
17145 \begin_inset space ~
17148 cells of the column and then either pressing the toolbar button
17149 \begin_inset Graphics
17150 filename ../images/tabular-feature_align-decimal.png
17152 scaleBeforeRotation
17156 or setting the alignment in the table settings to
17159 \begin_inset space ~
17163 \begin_inset space ~
17169 The alignment character can be a character of your choice and is specified
17170 in the table settings.
17173 \begin_layout Standard
17174 \begin_inset Float table
17180 \begin_layout Plain Layout
17181 \begin_inset Caption
17183 \begin_layout Plain Layout
17184 \begin_inset CommandInset label
17186 name "tab:Table-cells-align"
17190 Table cells of a column aligned with the decimal separator.
17198 \begin_layout Plain Layout
17200 \begin_inset Tabular
17201 <lyxtabular version="3" rows="4" columns="1">
17202 <features booktabs="true" tabularvalignment="middle">
17203 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
17205 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17208 \begin_layout Plain Layout
17216 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17219 \begin_layout Plain Layout
17227 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17230 \begin_layout Plain Layout
17238 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17241 \begin_layout Plain Layout
17260 \begin_layout Standard
17261 \begin_inset Float table
17267 \begin_layout Plain Layout
17268 \begin_inset Caption
17270 \begin_layout Plain Layout
17271 \begin_inset CommandInset label
17273 name "tab:Table-align-operator"
17277 Table cells of a column aligned with the operators.
17285 \begin_layout Plain Layout
17287 \begin_inset Tabular
17288 <lyxtabular version="3" rows="4" columns="2">
17289 <features booktabs="true" tabularvalignment="middle">
17290 <column alignment="right" valignment="top" width="0pt">
17291 <column alignment="left" valignment="top" width="0pt" special="@{}l">
17293 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17296 \begin_layout Plain Layout
17302 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17305 \begin_layout Plain Layout
17313 <cell alignment="center" valignment="top" usebox="none">
17316 \begin_layout Plain Layout
17317 \begin_inset Formula $12\,+$
17325 <cell alignment="center" valignment="top" usebox="none">
17328 \begin_layout Plain Layout
17329 \begin_inset Formula $\,6$
17339 <cell alignment="center" valignment="top" usebox="none">
17342 \begin_layout Plain Layout
17343 \begin_inset Formula $0\,-$
17351 <cell alignment="center" valignment="top" usebox="none">
17354 \begin_layout Plain Layout
17355 \begin_inset Formula $\,68$
17365 <cell alignment="center" valignment="top" usebox="none">
17368 \begin_layout Plain Layout
17369 \begin_inset Formula $-123\,/$
17377 <cell alignment="center" valignment="top" usebox="none">
17380 \begin_layout Plain Layout
17381 \begin_inset Formula $\,0$
17402 \begin_layout Standard
17403 For alignments at characters in formulas this method does not work because
17404 the field to specify the alignment character does not allow formulas.
17405 In this case one need to use the method from Table
17406 \begin_inset space ~
17410 \begin_inset CommandInset ref
17412 reference "tab:Table-align-operator"
17417 This table was created with a 4×2 table.
17418 The heading is a centered multicolumn.
17419 The first column is right-aligned and contains the first part including
17421 The second column is left aligned and contains the rest.
17422 A small space was added at the beginning of each cell of the second column
17423 to get the space that is usually around operators.
17424 To omit the space that is normally between two table columns, the following
17425 LaTeX-argument was used for the second column:
17428 \begin_layout Standard
17434 \begin_layout Standard
17436 \begin_inset space ~
17440 \begin_inset CommandInset ref
17442 reference "tab:Several-table-cell"
17446 shows some example alignments.
17447 For the alignment with the relation sign, a small space was added like
17448 for the second column of Table
17449 \begin_inset space ~
17453 \begin_inset CommandInset ref
17455 reference "tab:Table-align-operator"
17462 \begin_layout Standard
17463 \begin_inset Float table
17469 \begin_layout Plain Layout
17470 \begin_inset Caption
17472 \begin_layout Plain Layout
17473 \begin_inset CommandInset label
17475 name "tab:Several-table-cell"
17479 Several table cell alignments.
17487 \begin_layout Plain Layout
17489 \begin_inset Tabular
17490 <lyxtabular version="3" rows="4" columns="6">
17491 <features tabularvalignment="middle">
17492 <column alignment="right" valignment="top" width="0">
17493 <column alignment="left" valignment="top" width="0" special="@{}l">
17494 <column alignment="right" valignment="top" width="0">
17495 <column alignment="left" valignment="top" width="0" special="@{}l">
17496 <column alignment="right" valignment="top" width="0">
17497 <column alignment="left" valignment="top" width="0" special="@{}l">
17499 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17502 \begin_layout Plain Layout
17508 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17511 \begin_layout Plain Layout
17517 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17520 \begin_layout Plain Layout
17526 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17529 \begin_layout Plain Layout
17535 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17538 \begin_layout Plain Layout
17544 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17547 \begin_layout Plain Layout
17555 <cell alignment="center" valignment="top" usebox="none">
17558 \begin_layout Plain Layout
17564 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17567 \begin_layout Plain Layout
17569 \begin_inset space \thinspace{}
17577 <cell alignment="center" valignment="top" usebox="none">
17580 \begin_layout Plain Layout
17581 \begin_inset Formula $10\cdot$
17589 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17592 \begin_layout Plain Layout
17593 \begin_inset Formula $10^{\mbox{-}17}$
17601 <cell alignment="center" valignment="top" usebox="none">
17604 \begin_layout Plain Layout
17605 \begin_inset Formula $\Gamma(t)\propto$
17613 <cell alignment="center" valignment="top" usebox="none">
17616 \begin_layout Plain Layout
17617 \begin_inset Formula $\:\Upsilon(t)$
17627 <cell alignment="center" valignment="top" usebox="none">
17630 \begin_layout Plain Layout
17636 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17639 \begin_layout Plain Layout
17641 \begin_inset space \thinspace{}
17649 <cell alignment="center" valignment="top" usebox="none">
17652 \begin_layout Plain Layout
17653 \begin_inset Formula $5.78\cdot$
17661 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17664 \begin_layout Plain Layout
17665 \begin_inset Formula $10^{7}$
17673 <cell alignment="center" valignment="top" usebox="none">
17676 \begin_layout Plain Layout
17677 \begin_inset Formula $A\ne$
17685 <cell alignment="center" valignment="top" usebox="none">
17688 \begin_layout Plain Layout
17689 \begin_inset Formula $\: B_{\mathrm{red}}$
17699 <cell alignment="center" valignment="top" usebox="none">
17702 \begin_layout Plain Layout
17708 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17711 \begin_layout Plain Layout
17713 \begin_inset space \thinspace{}
17721 <cell alignment="center" valignment="top" usebox="none">
17724 \begin_layout Plain Layout
17726 \begin_inset Formula $33.5\cdot$
17734 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17737 \begin_layout Plain Layout
17738 \begin_inset Formula $10^{4}$
17746 <cell alignment="center" valignment="top" usebox="none">
17749 \begin_layout Plain Layout
17750 \begin_inset Formula $\sin(\alpha)\ge$
17758 <cell alignment="center" valignment="top" usebox="none">
17761 \begin_layout Plain Layout
17762 \begin_inset Formula $\:\sin(\beta)$
17783 \begin_layout Subsection
17784 Customized Cell/Column Format
17785 \begin_inset CommandInset label
17787 name "sub:Customized-Format"
17792 \begin_inset Index idx
17795 \begin_layout Plain Layout
17796 Table Customization ! Cell/Column Format
17804 \begin_layout Standard
17805 Calculating the required width for spanned columns as in section
17806 \begin_inset space ~
17810 \begin_inset CommandInset ref
17812 reference "sub:Multicolumn-Calculations"
17816 is very annoying if you have several tables with multicolumn cells.
17817 To make life easier, you can define a cell/column format in the preamble,
17818 so that it can be used in all tables of the document.
17819 The format is defined with the command
17822 \begin_layout Standard
17827 newcolumntype{name of format}[number of arguments]{commands}
17830 \begin_layout Standard
17831 The format name may only consist of one letter.
17856 are predefined and cannot be used.
17857 But all letters are allowed as capitals.
17860 \begin_layout Standard
17861 \begin_inset VSpace medskip
17867 \begin_layout Standard
17868 For vertically and horizontally centered multicolumn cells with a fixed
17869 width you can define the cell format
17872 \begin_layout Standard
17877 newcolumntype{M}[1]{>{
17884 \begin_layout Standard
17891 avoids the problem of hyphenating the first word, as described in section
17892 \begin_inset space ~
17896 \begin_inset CommandInset ref
17898 reference "sub:Multiple-Lines-in"
17903 Now you can simply enter
17906 \begin_layout Standard
17912 \begin_layout Standard
17913 as LaTeX-argument in the table dialog to create a multicolumn.
17916 \begin_layout Standard
17917 \begin_inset VSpace bigskip
17923 \begin_layout Standard
17924 For cells spanned by a multicolumn cell, you can define the format
17927 \begin_layout Standard
17932 newcolumntype{S}[2]{>{
17937 \begin_inset Newline newline
17941 \begin_inset Phantom HPhantom
17944 \begin_layout Plain Layout
17958 arrayrulewidth)*(1-#2))/#2}}
17961 \begin_layout Standard
17962 This format uses equation
17963 \begin_inset CommandInset ref
17969 to calculate the required width so that each spanned cell has the same
17973 \begin_layout Standard
17977 \begin_layout Standard
17980 S{width of multicolumn cell}{number of spanned columns}
17983 \begin_layout Standard
17984 as LaTeX-argument of the column.
17987 \begin_layout Standard
17988 \begin_inset VSpace bigskip
17994 \begin_layout Standard
17995 For colored columns, you can define
17998 \begin_layout Standard
18003 newcolumntype{K}[1]{>{
18010 \begin_layout Standard
18012 \begin_inset Quotes eld
18016 \begin_inset Quotes erd
18019 at the end creates a column with a flexible width whose text is horizontally
18024 \begin_layout Standard
18030 \begin_layout Standard
18034 \begin_layout Standard
18035 \begin_inset VSpace bigskip
18041 \begin_layout Standard
18043 \begin_inset space ~
18047 \begin_inset CommandInset ref
18049 reference "tab:Table-using-user-defined"
18053 use the LaTeX-arguments
18056 \begin_layout Standard
18062 \begin_layout Standard
18063 for the first column and the multicolumn,
18066 \begin_layout Standard
18072 \begin_layout Standard
18073 for the last column, and
18076 \begin_layout Standard
18082 \begin_layout Standard
18083 for the cells in the second column.
18086 \begin_layout Standard
18087 \begin_inset Float table
18093 \begin_layout Plain Layout
18094 \begin_inset Caption
18096 \begin_layout Plain Layout
18097 \begin_inset CommandInset label
18099 name "tab:Table-using-user-defined"
18103 Table using user-defined table formats
18111 \begin_layout Plain Layout
18113 \begin_inset Tabular
18114 <lyxtabular version="3" rows="3" columns="4">
18115 <features tabularvalignment="middle">
18116 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
18117 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
18118 <column alignment="center" valignment="middle" width="0">
18119 <column alignment="center" valignment="middle" width="0" special="K{red}">
18121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18124 \begin_layout Plain Layout
18125 verylongtablecellword
18130 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
18133 \begin_layout Plain Layout
18134 multiple lines multicolumn
18139 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18142 \begin_layout Plain Layout
18148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18151 \begin_layout Plain Layout
18159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18162 \begin_layout Plain Layout
18168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18171 \begin_layout Plain Layout
18177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18180 \begin_layout Plain Layout
18186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18189 \begin_layout Plain Layout
18197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18200 \begin_layout Plain Layout
18206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18209 \begin_layout Plain Layout
18215 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18218 \begin_layout Plain Layout
18224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18227 \begin_layout Plain Layout
18246 \begin_layout Subsection
18248 \begin_inset CommandInset label
18250 name "sub:Line-Thickness"
18255 \begin_inset Index idx
18258 \begin_layout Plain Layout
18259 Table Customization ! Line Thickness
18267 \begin_layout Standard
18268 The line thickness for all lines in a table can be adjusted with the length
18276 To set for example a line thickness of 1.5
18277 \begin_inset space \thinspace{}
18281 \begin_inset space ~
18285 \begin_inset CommandInset ref
18287 reference "tab:Table-with-1.5"
18291 , insert the command
18294 \begin_layout Standard
18301 arrayrulewidth}{1.5pt}
18304 \begin_layout Standard
18305 in TeX-Code before the table or table float.
18306 The changed thickness is valid for all subsequent tables.
18307 To use the default value again, set
18314 \begin_inset space \thinspace{}
18317 pt in TeX-Code after the table or table float.
18320 \begin_layout Standard
18324 \begin_layout Plain Layout
18330 arrayrulewidth}{1.5pt}
18336 \begin_inset Float table
18341 \begin_layout Plain Layout
18342 \begin_inset Caption
18344 \begin_layout Plain Layout
18345 \begin_inset CommandInset label
18347 name "tab:Table-with-1.5"
18352 \begin_inset space \thinspace{}
18363 \begin_layout Plain Layout
18365 \begin_inset Tabular
18366 <lyxtabular version="3" rows="3" columns="3">
18367 <features tabularvalignment="middle">
18368 <column alignment="center" valignment="top" width="0">
18369 <column alignment="center" valignment="top" width="0">
18370 <column alignment="center" valignment="top" width="0">
18372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18375 \begin_layout Plain Layout
18381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18384 \begin_layout Plain Layout
18390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18393 \begin_layout Plain Layout
18401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18404 \begin_layout Plain Layout
18410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18413 \begin_layout Plain Layout
18419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18422 \begin_layout Plain Layout
18430 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18433 \begin_layout Plain Layout
18439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18442 \begin_layout Plain Layout
18448 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18451 \begin_layout Plain Layout
18471 \begin_layout Plain Layout
18477 arrayrulewidth}{0.4pt}
18485 \begin_layout Standard
18486 \begin_inset VSpace bigskip
18489 To set the line thickness to 1.5
18490 \begin_inset space \thinspace{}
18493 pt only for horizontal lines, as in Table
18494 \begin_inset space ~
18498 \begin_inset CommandInset ref
18500 reference "tab:Table-with-horizontal"
18504 , insert these commands in TeX-Code before the table or table float:
18507 \begin_layout Standard
18517 \begin_inset Newline newline
18525 \begin_inset Newline newline
18534 arrayrulewidth 1.5pt}
18535 \begin_inset Newline newline
18546 arrayrulewidth 0.4pt}}
18549 \begin_layout Standard
18550 To return to the default line thickness, insert this command in TeX-Code
18551 after the table or table float:
18554 \begin_layout Standard
18566 \begin_layout Standard
18570 \begin_layout Plain Layout
18581 \begin_layout Plain Layout
18590 \begin_layout Plain Layout
18598 arrayrulewidth 1.5pt}
18601 \begin_layout Plain Layout
18611 arrayrulewidth 0.4pt}}
18617 \begin_inset Float table
18622 \begin_layout Plain Layout
18623 \begin_inset Caption
18625 \begin_layout Plain Layout
18626 \begin_inset CommandInset label
18628 name "tab:Table-with-horizontal"
18633 \begin_inset space \thinspace{}
18636 pt thick horizontal lines
18644 \begin_layout Plain Layout
18646 \begin_inset Tabular
18647 <lyxtabular version="3" rows="3" columns="3">
18648 <features tabularvalignment="middle">
18649 <column alignment="center" valignment="top" width="0">
18650 <column alignment="center" valignment="top" width="0">
18651 <column alignment="center" valignment="top" width="0">
18653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18656 \begin_layout Plain Layout
18662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18665 \begin_layout Plain Layout
18671 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18674 \begin_layout Plain Layout
18682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18685 \begin_layout Plain Layout
18691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18694 \begin_layout Plain Layout
18700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18703 \begin_layout Plain Layout
18711 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18714 \begin_layout Plain Layout
18720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18723 \begin_layout Plain Layout
18729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18732 \begin_layout Plain Layout
18752 \begin_layout Plain Layout
18768 \begin_layout Standard
18769 \begin_inset VSpace bigskip
18772 To set the line thickness to 1.5
18773 \begin_inset space \thinspace{}
18776 pt only for vertical lines, create the following column format in the document
18777 preamble, according to the description in section
18778 \begin_inset space ~
18782 \begin_inset CommandInset ref
18784 reference "sub:Customized-Format"
18791 \begin_layout Standard
18796 newcolumntype{V}{!{
18798 vrule width 1.5pt}}
18801 \begin_layout Standard
18803 \begin_inset space ~
18807 \begin_inset CommandInset ref
18809 reference "tab:Table-with-vertical"
18816 \begin_layout Standard
18822 \begin_layout Standard
18823 was used for the last column and
18826 \begin_layout Standard
18832 \begin_layout Standard
18833 for the other columns.
18836 \begin_layout Standard
18837 \begin_inset Float table
18842 \begin_layout Plain Layout
18843 \begin_inset Caption
18845 \begin_layout Plain Layout
18846 \begin_inset CommandInset label
18848 name "tab:Table-with-vertical"
18853 \begin_inset space \thinspace{}
18856 pt thick vertical lines
18864 \begin_layout Plain Layout
18866 \begin_inset Tabular
18867 <lyxtabular version="3" rows="3" columns="3">
18868 <features tabularvalignment="middle">
18869 <column alignment="center" valignment="top" width="0" special="Vc">
18870 <column alignment="center" valignment="top" width="0" special="Vc">
18871 <column alignment="center" valignment="top" width="0" special="VcV">
18873 <cell alignment="center" valignment="top" topline="true" usebox="none">
18876 \begin_layout Plain Layout
18882 <cell alignment="center" valignment="top" topline="true" usebox="none">
18885 \begin_layout Plain Layout
18891 <cell alignment="center" valignment="top" topline="true" usebox="none">
18894 \begin_layout Plain Layout
18902 <cell alignment="center" valignment="top" topline="true" usebox="none">
18905 \begin_layout Plain Layout
18911 <cell alignment="center" valignment="top" topline="true" usebox="none">
18914 \begin_layout Plain Layout
18920 <cell alignment="center" valignment="top" topline="true" usebox="none">
18923 \begin_layout Plain Layout
18931 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18934 \begin_layout Plain Layout
18940 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18943 \begin_layout Plain Layout
18949 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18952 \begin_layout Plain Layout
18971 \begin_layout Subsection
18973 \begin_inset Index idx
18976 \begin_layout Plain Layout
18977 Table Customization ! Dashed Lines
18985 \begin_layout Standard
18989 \begin_layout Plain Layout
18999 \begin_inset Note Note
19002 \begin_layout Plain Layout
19003 The following section will only be displayed when the LaTeX-package
19015 \begin_layout Standard
19016 \begin_inset Float table
19022 \begin_layout Plain Layout
19023 \begin_inset Caption
19025 \begin_layout Plain Layout
19026 \begin_inset CommandInset label
19028 name "tab:Table-with-dashed"
19032 Table with dashed lines
19040 \begin_layout Plain Layout
19042 \begin_inset Tabular
19043 <lyxtabular version="3" rows="5" columns="5">
19044 <features tabularvalignment="middle">
19045 <column alignment="center" valignment="top" width="0">
19046 <column alignment="center" valignment="top" width="0">
19047 <column alignment="center" valignment="top" width="0" special=":c">
19048 <column alignment="center" valignment="top" width="0">
19049 <column alignment="center" valignment="top" width="0">
19051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19054 \begin_layout Plain Layout
19060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19063 \begin_layout Plain Layout
19069 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19072 \begin_layout Plain Layout
19078 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19081 \begin_layout Plain Layout
19087 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19090 \begin_layout Plain Layout
19098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19101 \begin_layout Plain Layout
19107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19110 \begin_layout Plain Layout
19116 <cell alignment="center" valignment="top" topline="true" usebox="none">
19119 \begin_layout Plain Layout
19125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19128 \begin_layout Plain Layout
19134 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19137 \begin_layout Plain Layout
19145 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19148 \begin_layout Plain Layout
19152 \begin_layout Plain Layout
19166 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19169 \begin_layout Plain Layout
19175 <cell alignment="center" valignment="top" usebox="none">
19178 \begin_layout Plain Layout
19184 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19187 \begin_layout Plain Layout
19193 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19196 \begin_layout Plain Layout
19204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19207 \begin_layout Plain Layout
19211 \begin_layout Plain Layout
19225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19228 \begin_layout Plain Layout
19234 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19237 \begin_layout Plain Layout
19243 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19246 \begin_layout Plain Layout
19252 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19255 \begin_layout Plain Layout
19263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19266 \begin_layout Plain Layout
19272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19275 \begin_layout Plain Layout
19281 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19284 \begin_layout Plain Layout
19290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19293 \begin_layout Plain Layout
19299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19302 \begin_layout Plain Layout
19321 \begin_layout Standard
19322 LyX does not natively support dashed lines, so you have to use TeX-Code.
19323 As a prerequisite the LaTeX-package
19328 \begin_inset Index idx
19331 \begin_layout Plain Layout
19332 LaTeX-packages ! arydshln
19337 must be loaded in the document preamble with the command
19340 \begin_layout Standard
19345 usepackage{arydshln}
19348 \begin_layout Standard
19349 To make a vertical line dashed, enter the colon
19350 \begin_inset Quotes eld
19354 \begin_inset Quotes erd
19357 together with the character for the horizontal alignment as LaTeX-argument
19358 in the table cell dialog.
19361 \begin_layout Standard
19362 For a horizontal dashed line add the command
19365 \begin_layout Standard
19373 \begin_layout Standard
19374 in TeX-Code as first element of the first cell in the table row.
19377 \begin_layout Standard
19378 For dashed multicolumn lines use the command
19381 \begin_layout Standard
19386 cdashline{line number
19391 \begin_layout Standard
19392 in TeX-Code as the first element of the first cell in the table row.
19393 If you have for example a multicolumn spanning columns 2 to 4 and you want
19394 to have a dashed line above, add the command
19397 \begin_layout Standard
19405 \begin_layout Standard
19406 as the first element of the first cell in the row of the multicolumn.
19409 \begin_layout Standard
19410 \begin_inset VSpace bigskip
19416 \begin_layout Standard
19418 \begin_inset space ~
19422 \begin_inset CommandInset ref
19424 reference "tab:Table-with-dashed"
19429 \begin_inset Quotes eld
19437 \begin_inset Quotes erd
19440 as LaTeX-argument of the third column.
19441 The TeX-Code command
19447 was inserted in the first cell of the third row and the TeX-Code command
19448 \begin_inset Newline newline
19457 was inserted in the first cell of the fourth row.
19460 \begin_layout Standard
19461 \begin_inset Note Greyedout
19464 \begin_layout Plain Layout
19473 is apparently not compatible with the LaTeX-package
19478 \begin_inset Index idx
19481 \begin_layout Plain Layout
19482 LaTeX-packages ! colortbl
19487 that is used for colored tables in section
19488 \begin_inset space ~
19492 \begin_inset CommandInset ref
19494 reference "sec:Colored-Tables"
19499 That means colored tables cannot have dashed lines.
19507 \begin_layout Standard
19511 \begin_layout Plain Layout
19521 \begin_inset Note Note
19524 \begin_layout Plain Layout
19525 The following will be displayed when the LaTeX-package
19537 \begin_layout Standard
19538 You need to install the package
19542 to see the content of this section in the output.
19545 \begin_layout Standard
19549 \begin_layout Plain Layout
19561 \begin_layout Chapter
19563 \begin_inset Index idx
19566 \begin_layout Plain Layout
19575 \begin_layout Section
19577 \begin_inset CommandInset label
19579 name "sec:FloatIntroduction"
19584 \begin_inset Index idx
19587 \begin_layout Plain Layout
19588 Floats ! Introduction
19596 \begin_layout Standard
19597 A float is a block of text associated with some sort of label, which doesn't
19598 have a fixed location.
19600 \begin_inset Quotes eld
19604 \begin_inset Quotes erd
19607 forward or backward a page or two, to wherever it fits best.
19615 \begin_inset space ~
19620 are also floats, because they can float to the next page when there are
19621 too many notes on the page.
19624 \begin_layout Standard
19625 Floats allow a high quality layout.
19626 Images and tables can be spread evenly to the pages to avoid white space
19627 and pages without text.
19628 As the floating often destroys the context between the text and the image/table
19629 , every float can be referenced in the text.
19630 Floats are therefore numbered.
19631 Referencing is described in section
19632 \begin_inset space ~
19636 \begin_inset CommandInset ref
19638 reference "sec:Referencing-Floats"
19645 \begin_layout Standard
19646 To insert a float, use the menu
19648 Insert\SpecialChar \menuseparator
19656 inset, a box with a label.
19657 The label will automatically be translated to the document language in
19659 After the label you can insert the caption text.
19660 The image or table is inserted above or below the caption in a separate
19661 paragraph within the float.
19662 More about the caption placement is contained in section
19663 \begin_inset space ~
19667 \begin_inset CommandInset ref
19669 reference "sec:Caption-Placement"
19674 To keep your LyX-document readable, you can open and close the float box
19675 by left-clicking on the box label.
19676 A closed float box looks like this:
19677 \begin_inset Graphics
19678 filename clipart/floatQt4.png
19680 scaleBeforeRotation
19684 – a gray button with a red label.
19687 \begin_layout Standard
19688 It is recommended that you insert floats as a separate standard paragraph
19689 to avoid possible LaTeX-errors that can occur when the surrounding text
19690 is specially formatted.
19693 \begin_layout Standard
19694 Existing figures or tables can be put into a float by highlighting them
19695 and then pressing the corresponding toolbar button for a new float.
19698 \begin_layout Section
19702 \begin_layout Standard
19703 Besides figure and table floats that are described in sections
19704 \begin_inset space ~
19708 \begin_inset CommandInset ref
19710 reference "sec:Figure-Floats"
19715 \begin_inset CommandInset ref
19717 reference "sec:Table-Floats"
19721 respectively, LyX offers the float types
19732 \begin_layout Subsection
19734 \begin_inset Index idx
19737 \begin_layout Plain Layout
19738 Floats ! Algorithms
19746 \begin_layout Standard
19747 \begin_inset Float algorithm
19753 \begin_layout Plain Layout
19754 \begin_inset Caption
19756 \begin_layout Plain Layout
19757 \begin_inset CommandInset label
19759 name "alg:Example-Algorithm-float"
19763 Example Algorithm float
19771 \begin_layout LyX-Code
19773 \begin_inset Newline newline
19776 Sum:= Sum + A(I); /*comment*/
19777 \begin_inset Newline newline
19781 \begin_inset VSpace -4mm
19792 \begin_layout Standard
19793 This float type is inserted with the menu
19795 Insert\SpecialChar \menuseparator
19796 Floats\SpecialChar \menuseparator
19800 It is used for program codes and descriptions of algorithms and can be
19801 seen as an alternative to program code listings that are explained in chapter
19802 \begin_inset space ~
19806 \begin_inset CommandInset ref
19808 reference "cha:Program-Code-Listings"
19813 A possible environment for algorithms is the
19817 , described in LyX's
19823 \begin_inset space ~
19827 \begin_inset CommandInset ref
19829 reference "alg:Example-Algorithm-float"
19833 is an example of an algorithm float where -4
19834 \begin_inset space \thinspace{}
19837 mm vertical space was added at the end of the float to have the bottom rule
19838 exactly below the last text line.
19841 \begin_layout Standard
19842 The float label is not automatically translated into the document language.
19843 If your document is not in English, you have to do this manually by adding
19844 the following line to the document preamble
19849 \begin_layout Standard
19854 floatname{algorithm}{your
19855 \begin_inset space ~
19861 \begin_layout Standard
19865 \begin_inset space ~
19871 \begin_inset Quotes eld
19879 \begin_inset Quotes erd
19885 \begin_layout Standard
19886 To insert the list of algorithms you can use the menu
19888 Insert\SpecialChar \menuseparator
19890 \begin_inset space \thinspace{}
19894 \begin_inset space \thinspace{}
19897 TOC\SpecialChar \menuseparator
19900 when your document has the same language as LyX's menu names.
19901 In other cases use this command in TeX-Code instead:
19904 \begin_layout Standard
19909 listof{algorithm}{your
19910 \begin_inset space ~
19916 \begin_layout Standard
19920 \begin_inset space ~
19926 \begin_inset Quotes eld
19934 \begin_inset Quotes erd
19940 \begin_layout Standard
19941 Algorithm floats are not by default numbered in the scheme
19942 \begin_inset Quotes eld
19946 \begin_inset Quotes erd
19949 as is the case for table and figure floats in many document-classes.
19950 To number algorithm floats in the same scheme, add this command to your
19954 \begin_layout Standard
19959 numberwithin{algorithm}{chapter}
19962 \begin_layout Standard
19963 To be able to use the command
19972 \begin_inset space ~
19977 in the document settings the option
19980 \begin_inset space ~
19984 \begin_inset space ~
19988 \begin_inset space ~
19996 \begin_layout Subsection
19998 \begin_inset Index idx
20001 \begin_layout Plain Layout
20002 Floats ! Wrap Floats
20010 \begin_layout Standard
20011 \begin_inset Wrap figure
20018 \begin_layout Plain Layout
20019 \begin_inset Graphics
20020 filename clipart/mobius.eps
20022 scaleBeforeRotation
20023 rotateOrigin center
20030 \begin_layout Plain Layout
20031 \begin_inset Caption
20033 \begin_layout Plain Layout
20034 \begin_inset CommandInset label
20036 name "fig:This-is-a"
20040 This is a figure wrap float.
20050 This float type is used if you want to wrap text around a figure or table
20051 so that it only occupies some fraction of the column width.
20052 It can be inserted using the menu
20054 Insert\SpecialChar \menuseparator
20055 Floats\SpecialChar \menuseparator
20057 \begin_inset space ~
20061 \begin_inset space ~
20069 \begin_inset space ~
20073 \begin_inset space ~
20078 if the LaTeX-package
20083 \begin_inset Index idx
20086 \begin_layout Plain Layout
20087 LaTeX-packages ! wrapfig
20091 \begin_layout Plain Layout
20109 \begin_layout Plain Layout
20110 Installing a LaTeX-package is explained it in the
20113 \begin_inset space ~
20123 The settings of the float can be modified by right-clicking on the float
20125 The mandatory settings are the float
20138 that specifies how much the float is set into the paragraph
20139 \begin_inset space \thinspace{}
20143 \begin_inset space \thinspace{}
20146 page margin, and the
20149 \begin_inset space ~
20154 that specifies how many text lines the float will approximately need.
20155 The line span is often hard to approximate; so it is better only to use
20156 it when you encounter float placement problems.
20157 You can furthermore decide if LaTeX is allowed to let the float float within
20158 the paragraph or to surrounding paragraphs.
20160 \begin_inset space ~
20164 \begin_inset CommandInset ref
20166 reference "fig:This-is-a"
20170 is an example text wrap float with a width of 40
20171 \begin_inset space \thinspace{}
20175 \begin_inset space \thinspace{}
20178 cm overhang, set to the left.
20182 \begin_layout Plain Layout
20183 Available units are explained in appendix
20184 \begin_inset space ~
20188 \begin_inset CommandInset ref
20190 reference "cha:Units-available-in"
20202 \begin_layout Standard
20203 \begin_inset Note Greyedout
20206 \begin_layout Plain Layout
20212 \begin_inset space ~
20215 wrap float floats are fragile! E.
20216 \begin_inset space \thinspace{}
20220 \begin_inset space \space{}
20223 having a figure too close to the bottom of the page can mess things up in
20224 such a way that the float does not appear in the output or that it is placed
20225 over some other text.
20233 \begin_layout Standard
20237 \begin_layout Itemize
20238 Wrap floats should not be placed in paragraphs that run over a page break.
20239 That means that wrap floats are better inserted in their exact place when
20240 the document is almost finished and you are able to estimate where page
20241 breaks will appear.
20244 \begin_layout Itemize
20245 Wrap floats should either be placed in their own paragraph before the paragraph
20246 where they should wrap into or within a paragraph.
20249 \begin_layout Itemize
20250 Wrap floats in consecutive paragraphs may cause troubles, so ensure that
20251 there is a text paragraph between them as separator.
20254 \begin_layout Itemize
20255 Wrap floats are not allowed in section headings or tables.
20258 \begin_layout Section
20260 \begin_inset Index idx
20263 \begin_layout Plain Layout
20272 \begin_layout Standard
20273 Floats are usually numbered either independently from the sections the floats
20274 are in, or in the scheme
20275 \begin_inset Quotes eld
20279 \begin_inset Quotes erd
20283 \begin_inset Quotes eld
20287 \begin_inset Quotes erd
20291 This depends on the document class used.
20294 \begin_layout Standard
20295 To change section-independent numbering, you can use this command in the
20299 \begin_layout Standard
20311 \begin_layout Standard
20318 is the command that prints the table number, for figure floats, the command
20332 in the command above prints the table number as small roman number.
20335 \begin_layout Standard
20336 To change the numbering scheme for example to
20337 \begin_inset Quotes eld
20341 \begin_inset Quotes erd
20344 , use this command in the preamble:
20347 \begin_layout Standard
20352 numberwithin{table}{subsection}
20355 \begin_layout Standard
20356 To be able to use the command
20365 \begin_inset space ~
20370 in the document settings the option
20373 \begin_inset space ~
20377 \begin_inset space ~
20381 \begin_inset space ~
20389 \begin_layout Standard
20390 Please also have a look at section
20391 \begin_inset space ~
20395 \begin_inset CommandInset ref
20397 reference "sub:Footnote-Numbering"
20401 for the details and important notes about the numbering commands.
20404 \begin_layout Section
20406 \begin_inset CommandInset label
20408 name "sec:Referencing-Floats"
20413 \begin_inset Index idx
20416 \begin_layout Plain Layout
20417 Floats ! References
20423 \begin_inset Index idx
20426 \begin_layout Plain Layout
20427 References ! to Floats
20435 \begin_layout Standard
20436 To reference a float, insert a label into its caption using the menu
20438 Insert\SpecialChar \menuseparator
20441 or the toolbar button
20442 \begin_inset Graphics
20443 filename ../images/label-insert.png
20445 scaleBeforeRotation
20450 A grey label box like this one:
20451 \begin_inset Graphics
20452 filename clipart/labelQt4.png
20454 scaleBeforeRotation
20458 will be inserted and the label window pops up asking for the label text.
20459 LyX offers as text the first words of the caption with a prefix.
20460 The prefix depends on the float type, e.
20461 \begin_inset space \thinspace{}
20465 \begin_inset space \space{}
20468 for figure floats the prefix will be "
20475 \begin_layout Standard
20476 The label is used as anchor and name for the reference.
20477 You can refer to the label using the menu
20479 Insert\SpecialChar \menuseparator
20482 or the toolbar button
20483 \begin_inset Graphics
20484 filename ../images/dialog-show-new-inset_ref.png
20486 scaleBeforeRotation
20491 A grey cross-reference box like this one:
20492 \begin_inset Graphics
20493 filename clipart/referenceQt4.png
20495 scaleBeforeRotation
20499 will be inserted and the cross-reference window appear showing all labels
20501 If you have multiple LyX-documents opened, choose the one you are working
20502 on from the drop-list at the top of the dialog.
20503 You can now sort the labels alphabetically and then choose one.
20504 At the position of the cross-reference box the float number will appear
20508 \begin_layout Standard
20509 It is recommended that you use a protected space between the cross-reference
20510 name and its number to avoid line breaks between them.
20511 If a cross-reference refers to a non-existing label, you will see two question
20512 marks in the output instead of the reference.
20515 \begin_layout Standard
20516 You can change labels at any time by clicking on the label box.
20517 References to the changed label will automatically change its link to the
20518 new label text, so that you don't need to take care about this.
20521 \begin_layout Standard
20525 \begin_inset space ~
20529 \begin_inset space ~
20534 in the cross-reference window sets the cursor before the referred label.
20535 The button text changes then to Go
20536 \begin_inset space ~
20539 Back and you can use it to set the cursor back to the cross-reference.
20540 Right-clicking on a cross-reference box also sets the cursor before the
20541 referenced label but without the possibility of going back.
20544 \begin_layout Subsection
20545 Cross-Reference Formats
20546 \begin_inset CommandInset label
20548 name "sub:Cross-Reference-Formats"
20553 \begin_inset Index idx
20556 \begin_layout Plain Layout
20557 References ! Formats
20565 \begin_layout Standard
20566 There are six varieties of cross-references:
20569 \begin_layout Description
20570 <reference>: prints the float number, this is the default:
20571 \begin_inset CommandInset ref
20573 reference "fig:Two-distorted-images"
20580 \begin_layout Description
20581 (<reference>): prints the float number within two parentheses, this is the
20582 style normally used to reference formulas, especially when the reference
20584 \begin_inset Quotes eld
20588 \begin_inset Quotes erd
20592 \begin_inset CommandInset ref
20601 \begin_layout Description
20602 <page>: prints the page number: Page
20603 \begin_inset space ~
20607 \begin_inset CommandInset ref
20608 LatexCommand pageref
20609 reference "fig:Two-distorted-images"
20616 \begin_layout Description
20618 \begin_inset space ~
20622 \begin_inset space ~
20625 <page>: prints the text "on page" and the page number:
20626 \begin_inset CommandInset ref
20627 LatexCommand vpageref
20628 reference "fig:Two-distorted-images"
20635 \begin_layout Description
20637 \begin_inset space ~
20641 \begin_inset space ~
20645 \begin_inset space ~
20648 <page>: prints the float number, the text "on page", and the page number:
20650 \begin_inset CommandInset ref
20652 reference "fig:Two-distorted-images"
20659 \begin_layout Description
20661 \begin_inset space ~
20664 reference: prints a self-defined cross-reference format.
20665 \begin_inset Newline newline
20669 \begin_inset Note Greyedout
20672 \begin_layout Plain Layout
20677 This feature is only available when you have the LaTeX-package
20686 \begin_inset Index idx
20689 \begin_layout Plain Layout
20690 LaTeX-packages ! prettyref
20696 \begin_inset Index idx
20699 \begin_layout Plain Layout
20700 LaTeX-packages ! refstyle
20711 \begin_inset Newline newline
20714 You can select which LaTeX-package should be used for this feature by setting
20717 Use refstyle (not prettyref) for cross-references
20721 Document\SpecialChar \menuseparator
20722 Settings\SpecialChar \menuseparator
20726 The format is specified by adding the command
20738 (refstyle) to the preamble of the document.
20739 For example redefining all references to figures (which have the label
20741 \begin_inset Quotes eld
20749 \begin_inset Quotes erd
20752 ) can be done with this command
20753 \begin_inset Newline newline
20760 newref{fig}{refcmd={Image on page
20765 \begin_inset Newline newline
20768 For more information about the format, have a look at the package documentations
20770 \begin_inset CommandInset citation
20772 key "prettyref,refstyle"
20779 \begin_layout Description
20781 \begin_inset space ~
20784 reference: prints the caption of the reference:
20785 \begin_inset CommandInset ref
20786 LatexCommand nameref
20787 reference "fig:Two-distorted-images"
20794 \begin_layout Standard
20799 will not print the page number if the label is on the previous, the same,
20802 \begin_inset space \thinspace{}
20806 \begin_inset space \space{}
20810 \begin_inset Quotes eld
20818 \begin_inset Quotes erd
20824 <reference> on page <page>
20826 will not print anything about the page if the label is on the same page.
20829 \begin_layout Standard
20830 The number and current page of the part of the document referred to in the
20831 output is automatically calculated by LaTeX.
20832 The varieties are adjusted in the field
20836 of the cross-reference window that appears when you click on the cross-referenc
20840 \begin_layout Standard
20841 \begin_inset Note Greyedout
20844 \begin_layout Plain Layout
20849 It is recommended to use the LaTeX-package
20854 \begin_inset Index idx
20857 \begin_layout Plain Layout
20858 LaTeX-packages ! refstyle
20868 \begin_inset Index idx
20871 \begin_layout Plain Layout
20872 LaTeX-packages ! prettyref
20877 does not know all of LyX's possible label shortcuts
20881 \begin_layout Plain Layout
20882 \begin_inset Quotes eld
20886 \begin_inset Quotes erd
20889 is for example LyX's shortcut for labels in figure captions.
20894 and is not internationalized.
20902 \begin_layout Standard
20903 \begin_inset Note Greyedout
20906 \begin_layout Plain Layout
20911 Due to a bug in the LaTeX-package
20915 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20916 languages that make the period character active (like French).
20917 For a workaround, see
20918 \begin_inset Newline newline
20922 \begin_inset CommandInset href
20924 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20936 \begin_layout Subsection
20937 Automatic Reference Naming
20938 \begin_inset Index idx
20941 \begin_layout Plain Layout
20942 References ! Automatic Reference Naming
20950 \begin_layout Standard
20956 \begin_inset Index idx
20959 \begin_layout Plain Layout
20960 LaTeX-packages ! hyperref
20965 , that is enabled in the
20973 dialog, provides a very useful feature that cross-references automatically
20974 include the name of the referenced floats (or text parts like
20979 So you will save having to write e.
20980 \begin_inset space \thinspace{}
20984 \begin_inset space \space{}
20988 \begin_inset Quotes eld
20992 \begin_inset Quotes erd
20995 before every reference to a figure.
20996 To use this feature, enable
21000 and insert this line to the LaTeX preamble:
21003 \begin_layout Standard
21019 \begin_layout Standard
21020 When you prefer other reference names than the default ones, for example
21021 you want instead of
21022 \begin_inset Quotes eld
21026 \begin_inset Quotes erd
21030 \begin_inset Quotes eld
21034 \begin_inset space \thinspace{}
21038 \begin_inset Quotes eld
21041 , you can redefine the name by inserting this in the preamble:
21044 \begin_layout Standard
21055 sectionautorefname}
21056 \begin_inset Newline newline
21060 \begin_inset Phantom HPhantom
21063 \begin_layout Plain Layout
21066 \begin_inset space ~
21079 \begin_layout Standard
21080 When you are using another document language than English, replace
21081 \begin_inset Newline newline
21096 , where *** is the name of the language used.
21099 \begin_layout Standard
21100 To get automatic names, but not for certain reference types, for example
21101 not for equations, use this preamble code:
21104 \begin_layout Standard
21112 \begin_inset Newline newline
21122 \begin_inset Newline newline
21133 equationautorefname}
21134 \begin_inset Newline newline
21138 \begin_inset Phantom HPhantom
21141 \begin_layout Plain Layout
21144 \begin_inset space ~
21159 \begin_layout Standard
21160 More about this topic can be found in
21165 \begin_inset CommandInset citation
21174 \begin_layout Standard
21175 \begin_inset Note Greyedout
21178 \begin_layout Plain Layout
21183 Automatic reference naming cannot be used when you use cross-references
21187 \begin_inset space ~
21192 style, as described in section
21193 \begin_inset space ~
21197 \begin_inset CommandInset ref
21199 reference "sub:Cross-Reference-Formats"
21211 \begin_layout Standard
21216 manual is an example where automatic reference naming is used.
21219 \begin_layout Subsection
21221 \begin_inset CommandInset label
21223 name "sub:Reference-Position"
21228 \begin_inset Index idx
21231 \begin_layout Plain Layout
21232 References ! Reference Position
21240 \begin_layout Standard
21246 \begin_inset Index idx
21249 \begin_layout Plain Layout
21250 LaTeX-packages ! hyperref
21263 dialog to link cross-references in the output, you will see that clicking
21264 on an image float reference jumps to the image label.
21265 The caption will be the first text part on the screen, so that you cannot
21266 see the image without scrolling.
21267 This is because the reference link anchor is placed at the position of
21269 With the use of the package
21274 \begin_inset Index idx
21277 \begin_layout Plain Layout
21278 LaTeX-packages ! hypcap
21283 , which is part of the LaTeX-package
21288 \begin_inset Index idx
21291 \begin_layout Plain Layout
21292 LaTeX-packages ! oberdiek
21297 , the link anchor is placed at the beginning of a float.
21298 To use this feature for figure floats, load
21302 in the document preamble with the line
21305 \begin_layout Standard
21310 usepackage[figure]{hypcap}
21313 \begin_layout Standard
21318 for all float types but this is not recommended for stability reasons.
21319 For more information, have a look at
21324 \begin_inset CommandInset citation
21333 \begin_layout Standard
21334 \begin_inset Note Greyedout
21337 \begin_layout Plain Layout
21346 has no effect on references to subfigures.
21354 \begin_layout Section
21356 \begin_inset CommandInset label
21358 name "sec:Float-Placement"
21363 \begin_inset Index idx
21366 \begin_layout Plain Layout
21375 \begin_layout Standard
21376 Right-clicking on a float-box opens a dialog where you can alter the placement
21377 options that LaTeX uses for positioning the float.
21378 \begin_inset Newline newline
21384 \begin_inset space ~
21389 is only useful for two-column documents: If you select it, the float will
21390 span both columns on the page instead of being confined to just one.
21391 \begin_inset Newline newline
21397 \begin_inset space ~
21402 is used to rotate floats, see section
21403 \begin_inset CommandInset ref
21405 reference "sec:Rotated-Floats"
21412 \begin_layout Standard
21413 You can use one ore more of the following options in the float dialog to
21414 set the placement for a particular float when you uncheck the option
21417 \begin_inset space ~
21421 \begin_inset space ~
21429 \begin_layout Description
21431 \begin_inset space ~
21435 \begin_inset space ~
21438 possible try to place the float on the position where it has been inserted
21441 \begin_layout Description
21443 \begin_inset space ~
21447 \begin_inset space ~
21450 page try to place the float at the top of the current page
21453 \begin_layout Description
21455 \begin_inset space ~
21459 \begin_inset space ~
21462 page try to place the float at the bottom of the current page
21465 \begin_layout Description
21467 \begin_inset space ~
21471 \begin_inset space ~
21474 floats try to place the float on its own page
21477 \begin_layout Standard
21478 The order of the above option is
21483 That means, if you use the default placement, LaTeX will first try out
21487 \begin_inset space ~
21491 \begin_inset space ~
21499 \begin_inset space ~
21503 \begin_inset space ~
21508 , and then the others.
21509 If you do not use the default, LaTeX will try only the checked options
21510 but in the same order.
21512 \begin_inset space ~
21515 placements are possible the procedure is internally repeated but it is tried
21516 to put the float on the following page.
21519 \begin_layout Standard
21520 By default, each option has its own rules:
21523 \begin_layout Labeling
21524 \labelwidthstring 00.00.0000
21528 \begin_inset space ~
21532 \begin_inset space ~
21537 only floats occupying less than 70
21538 \begin_inset space \thinspace{}
21541 % of the page can be placed at the top of a page (
21550 \begin_layout Labeling
21551 \labelwidthstring 00.00.0000
21555 \begin_inset space ~
21559 \begin_inset space ~
21564 : only floats occupying less than 30
21565 \begin_inset space \thinspace{}
21568 % of the page can be placed at the bottom of a page.
21578 \begin_layout Labeling
21579 \labelwidthstring 00.00.0000
21583 \begin_inset space ~
21587 \begin_inset space ~
21592 : only if more than 50
21593 \begin_inset space \thinspace{}
21596 % of the page are occupied by floats, several floats can be set together
21607 \begin_layout Standard
21608 If you don't like these rules, you can ignore them by using the additional
21612 \begin_inset space ~
21616 \begin_inset space ~
21622 \begin_inset Newline newline
21625 You can also redefine the rules with LaTeX-commands that are given in parenthese
21626 s after the rules description above.
21627 To increase for example the often too small default of the bottom-rule
21629 \begin_inset space \thinspace{}
21632 % of the page, add this line to your document preamble:
21635 \begin_layout Standard
21642 bottomfraction}{0.5}
21645 \begin_layout Standard
21646 Sometimes you might need, under all circumstances, a float to be placed
21647 exactly at the position where it is inserted.
21648 For this case you can use the option
21651 \begin_inset space ~
21657 Use this option very rarely and only if the document is almost ready to
21658 be printed, because the float is then no longer able to
21659 \begin_inset Quotes eld
21663 \begin_inset Quotes erd
21666 when you change your document and this will often destroy the page layout.
21669 \begin_layout Standard
21670 There are no placement options for text wrap floats, because they are always
21671 surrounded by the text of a certain paragraph.
21672 \begin_inset VSpace bigskip
21678 \begin_layout Standard
21679 Sometimes you have the problem that a float is placed at the top of a page
21680 while its corresponding section starts at the middle of the page, so that
21681 the reader could think the float is part of the previous section.
21682 To avoid this the LaTeX-command
21689 It suppresses a given float placement for the page where it is inserted
21690 and can therefore be used to avoid floats being set before a section starts.
21691 To get this, add these commands to your document preamble:
21694 \begin_layout Standard
21704 \begin_inset Newline newline
21718 \begin_layout Standard
21719 You can define the same for all section headings, like chapters and subsections.
21720 This definition is not recommended to be used for small text parts like
21721 subsubsections because LaTeX may then have problems finding a suitable
21725 \begin_layout Standard
21726 \begin_inset VSpace bigskip
21729 In some cases it is required to have all figures/tables at the end of the
21731 For this purpose the LaTeX-package
21736 \begin_inset Index idx
21739 \begin_layout Plain Layout
21740 LaTeX-packages ! endfloat
21746 It puts all figure and table floats at the end of the document into their
21748 At the original float position a text hint like
21749 \begin_inset Quotes eld
21755 \begin_inset space ~
21761 \begin_inset Quotes erd
21765 The endfloat-package is loaded in the preamble with the line
21768 \begin_layout Standard
21773 usepackage[options]{endfloat}
21776 \begin_layout Standard
21777 There are various package options to format the created figure/table sections.
21778 For more information we refer to the
21783 \begin_inset CommandInset citation
21790 \begin_inset Newline newline
21794 \begin_inset Note Greyedout
21797 \begin_layout Plain Layout
21802 doesn't provide an automatic translation for the text hint, you have to
21803 do this manually, see section
21804 \begin_inset space ~
21808 \begin_inset CommandInset citation
21820 \begin_inset Newline newline
21824 \begin_inset Note Greyedout
21827 \begin_layout Plain Layout
21832 There is currently a bug in
21836 when the caption contains a German
21837 \begin_inset Quotes eld
21841 \begin_inset Quotes erd
21845 Use in this case the command
21846 \begin_inset Quotes eld
21856 \begin_inset Quotes erd
21859 in TeX-Code instead of
21860 \begin_inset Quotes eld
21864 \begin_inset Quotes erd
21875 \begin_layout Standard
21876 \begin_inset VSpace bigskip
21879 For more details about float placements, have a look at LaTeX books,
21880 \begin_inset CommandInset citation
21882 key "latexcompanion,latexguide,latexbook"
21889 \begin_layout Section
21891 \begin_inset CommandInset label
21893 name "sec:Rotated-Floats"
21898 \begin_inset Index idx
21901 \begin_layout Plain Layout
21910 \begin_layout Standard
21911 Especially for wide tables you might have floats rotated.
21912 To rotate a whole float including the caption, right-click on the float-box
21916 \begin_inset space ~
21924 \begin_layout Standard
21925 Rotated floats are always placed on a page of their own (or column of their
21926 own; in case you have a multi-column document).
21927 You can let them span several columns using the float settings option
21930 \begin_inset space ~
21936 Floats are rotated so that you can read them from the outside margin.
21937 To force a certain rotation direction for all pages, you can add either
21946 to the document class options.
21949 \begin_layout Standard
21950 Referencing rotated floats is the same as for normal floats, the caption
21951 format is also the same: Table
21952 \begin_inset space ~
21956 \begin_inset CommandInset ref
21958 reference "tab:Rotated-table"
21962 is an example of a rotated table float.
21965 \begin_layout Standard
21966 \begin_inset Note Greyedout
21969 \begin_layout Plain Layout
21974 Not all DVI-viewers are able to display rotated floats.
21982 \begin_layout Standard
21983 \begin_inset Float table
21988 \begin_layout Plain Layout
21989 \begin_inset Caption
21991 \begin_layout Plain Layout
21992 \begin_inset CommandInset label
21994 name "tab:Rotated-table"
22006 \begin_layout Plain Layout
22008 \begin_inset Tabular
22009 <lyxtabular version="3" rows="1" columns="5">
22010 <features tabularvalignment="middle">
22011 <column alignment="center" valignment="top" width="0">
22012 <column alignment="center" valignment="top" width="0">
22013 <column alignment="center" valignment="top" width="0">
22014 <column alignment="center" valignment="top" width="0">
22015 <column alignment="center" valignment="top" width="0">
22017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22020 \begin_layout Plain Layout
22026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22029 \begin_layout Plain Layout
22035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22038 \begin_layout Plain Layout
22044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22047 \begin_layout Plain Layout
22053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22056 \begin_layout Plain Layout
22075 \begin_layout Section
22077 \begin_inset Index idx
22080 \begin_layout Plain Layout
22089 \begin_layout Standard
22090 Subfloats are for example used when a figure consists of several images.
22091 They are created by inserting a float into an existing float.
22092 The placement of the subfloats can be controlled in the same way as for
22093 paragraphs as shown in table
22094 \begin_inset space ~
22098 \begin_inset CommandInset ref
22100 reference "tab:Two-subtables-side"
22105 \begin_inset CommandInset ref
22107 reference "tab:Two-subtables-upon"
22114 \begin_layout Standard
22115 Referencing subfloats works as for normal floats: Table
22116 \begin_inset space ~
22120 \begin_inset CommandInset ref
22122 reference "tab:This-is-subtable-a"
22127 \begin_inset CommandInset ref
22129 reference "tab:This-is-subtable-b"
22133 are subtables of table
22134 \begin_inset space ~
22138 \begin_inset CommandInset ref
22140 reference "tab:Two-subtables-side"
22147 \begin_layout Standard
22148 \begin_inset Float table
22153 \begin_layout Plain Layout
22154 \begin_inset Caption
22156 \begin_layout Plain Layout
22157 \begin_inset CommandInset label
22159 name "tab:Two-subtables-side"
22163 Two subtables placed side by side.
22171 \begin_layout Plain Layout
22173 \begin_inset space \hfill{}
22177 \begin_inset Float table
22182 \begin_layout Plain Layout
22183 \begin_inset Caption
22185 \begin_layout Plain Layout
22186 \begin_inset CommandInset label
22188 name "tab:This-is-subtable-a"
22192 This is subtable a.
22200 \begin_layout Plain Layout
22202 \begin_inset Tabular
22203 <lyxtabular version="3" rows="1" columns="5">
22204 <features tabularvalignment="middle">
22205 <column alignment="center" valignment="top" width="0">
22206 <column alignment="center" valignment="top" width="0">
22207 <column alignment="center" valignment="top" width="0">
22208 <column alignment="center" valignment="top" width="0">
22209 <column alignment="center" valignment="top" width="0">
22211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22214 \begin_layout Plain Layout
22220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22223 \begin_layout Plain Layout
22229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22232 \begin_layout Plain Layout
22238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22241 \begin_layout Plain Layout
22247 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22250 \begin_layout Plain Layout
22267 \begin_inset space \hfill{}
22271 \begin_inset Float table
22276 \begin_layout Plain Layout
22277 \begin_inset Caption
22279 \begin_layout Plain Layout
22280 \begin_inset CommandInset label
22282 name "tab:This-is-subtable-b"
22286 This is subtable b.
22294 \begin_layout Plain Layout
22296 \begin_inset Tabular
22297 <lyxtabular version="3" rows="1" columns="5">
22298 <features tabularvalignment="middle">
22299 <column alignment="center" valignment="top" width="0">
22300 <column alignment="center" valignment="top" width="0">
22301 <column alignment="center" valignment="top" width="0">
22302 <column alignment="center" valignment="top" width="0">
22303 <column alignment="center" valignment="top" width="0">
22305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22308 \begin_layout Plain Layout
22314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22317 \begin_layout Plain Layout
22323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22326 \begin_layout Plain Layout
22332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22335 \begin_layout Plain Layout
22341 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22344 \begin_layout Plain Layout
22361 \begin_inset space \hfill{}
22372 \begin_layout Standard
22373 \begin_inset Float table
22378 \begin_layout Plain Layout
22379 \begin_inset Caption
22381 \begin_layout Plain Layout
22382 \begin_inset CommandInset label
22384 name "tab:Two-subtables-upon"
22388 Two subtables placed one above the other.
22389 (a) table with 4 cells, (b) table with 5 cells.
22397 \begin_layout Plain Layout
22399 \begin_inset Float table
22404 \begin_layout Plain Layout
22405 \begin_inset Caption
22407 \begin_layout Plain Layout
22416 \begin_layout Plain Layout
22418 \begin_inset Tabular
22419 <lyxtabular version="3" rows="1" columns="4">
22420 <features tabularvalignment="middle">
22421 <column alignment="center" valignment="top" width="0">
22422 <column alignment="center" valignment="top" width="0">
22423 <column alignment="center" valignment="top" width="0">
22424 <column alignment="center" valignment="top" width="0">
22426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22429 \begin_layout Plain Layout
22435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22438 \begin_layout Plain Layout
22444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22447 \begin_layout Plain Layout
22453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22456 \begin_layout Plain Layout
22475 \begin_layout Plain Layout
22477 \begin_inset Float table
22482 \begin_layout Plain Layout
22483 \begin_inset Caption
22485 \begin_layout Plain Layout
22494 \begin_layout Plain Layout
22496 \begin_inset Tabular
22497 <lyxtabular version="3" rows="1" columns="5">
22498 <features tabularvalignment="middle">
22499 <column alignment="center" valignment="top" width="0">
22500 <column alignment="center" valignment="top" width="0">
22501 <column alignment="center" valignment="top" width="0">
22502 <column alignment="center" valignment="top" width="0">
22503 <column alignment="center" valignment="top" width="0">
22505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22508 \begin_layout Plain Layout
22514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22517 \begin_layout Plain Layout
22523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22526 \begin_layout Plain Layout
22532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22535 \begin_layout Plain Layout
22541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22544 \begin_layout Plain Layout
22568 \begin_layout Section
22569 Floats Side by Side
22570 \begin_inset Index idx
22573 \begin_layout Plain Layout
22574 Floats ! Side by side
22582 \begin_layout Standard
22583 To place floats side by side, as in Figures
22584 \begin_inset space ~
22588 \begin_inset CommandInset ref
22590 reference "fig:Float-left"
22595 \begin_inset CommandInset ref
22597 reference "fig:Float-right"
22606 In it two minipage boxes are inserted.
22610 \begin_layout Plain Layout
22611 Minipages are explained in section
22612 \begin_inset space ~
22616 \begin_inset CommandInset ref
22618 reference "sec:Minipages"
22627 The width is set to 45
22628 \begin_inset space \thinspace{}
22632 \begin_inset space \thinspace{}
22635 column% and the box alignment to
22640 The minipage boxes contain the image and the caption in the same way as
22641 they are in a float.
22642 The only difference is that the image unit
22645 \begin_inset space ~
22649 \begin_inset space ~
22654 is now calculated according to the width of the minipage boxes.
22657 \begin_layout Standard
22658 \begin_inset Float figure
22663 \begin_layout Plain Layout
22664 \begin_inset Box Frameless
22674 height_special "totalheight"
22677 \begin_layout Plain Layout
22679 \begin_inset Graphics
22680 filename clipart/mobius.eps
22683 scaleBeforeRotation
22690 \begin_layout Plain Layout
22691 \begin_inset Caption
22693 \begin_layout Plain Layout
22694 \begin_inset CommandInset label
22696 name "fig:Float-left"
22700 Float on the left side.
22711 \begin_inset space \hfill{}
22715 \begin_inset Box Frameless
22725 height_special "totalheight"
22728 \begin_layout Plain Layout
22730 \begin_inset Graphics
22731 filename clipart/platypus.eps
22734 scaleBeforeRotation
22741 \begin_layout Plain Layout
22742 \begin_inset Caption
22744 \begin_layout Plain Layout
22745 \begin_inset CommandInset label
22747 name "fig:Float-right"
22751 Float on the right side.
22764 \begin_layout Plain Layout
22773 \begin_layout Section
22775 \begin_inset Index idx
22778 \begin_layout Plain Layout
22779 Caption ! Formatting
22785 \begin_inset Index idx
22788 \begin_layout Plain Layout
22789 Floats ! Caption Formatting
22795 \begin_inset CommandInset label
22797 name "sec:Caption-Formatting"
22804 \begin_layout Standard
22809 environment is the default paragraph environment for
22814 On the LyX screen captions appear as label, e.
22815 \begin_inset space \thinspace{}
22819 \begin_inset space \space{}
22823 \begin_inset Quotes eld
22831 \begin_inset Quotes erd
22834 followed by the caption text.
22836 \begin_inset Quotes eld
22840 \begin_inset Quotes erd
22843 is the actual reference number.
22844 By default the label and the number are in the same font as the caption
22845 text and a colon follows the number to divide the label from the text.
22846 This caption format is not suitable for all document formats.
22850 \begin_layout Standard
22851 To change the default caption format, load the LaTeX-package
22856 \begin_inset Index idx
22859 \begin_layout Plain Layout
22860 LaTeX-packages ! caption
22865 in the document preamble with this line:
22868 \begin_layout Standard
22873 usepackage[format definition]{caption}
22876 \begin_layout Standard
22877 To have for example the label and the number in sans-serif bold font and
22878 the table captions always above the table as in this document, use the
22882 \begin_layout Standard
22887 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22890 \begin_layout Standard
22891 You can also define different caption formats for the different float types.
22892 In this case load the
22896 package without format specific options and define the different formats
22897 with the help of the command
22900 \begin_layout Standard
22905 captionsetup[float type]{format definition}
22908 \begin_layout Standard
22909 in the document preamble.
22910 For example the caption formats of Figure
22911 \begin_inset space ~
22915 \begin_inset CommandInset ref
22917 reference "fig:This-is-an-fig"
22922 \begin_inset space ~
22926 \begin_inset CommandInset ref
22928 reference "tab:This-is-an-tab"
22932 can be created using these commands in the document preamble:
22935 \begin_layout Standard
22940 usepackage[tableposition=top]{caption}
22943 \begin_inset Newline newline
22950 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22951 \begin_inset Newline newline
22955 \begin_inset Phantom HPhantom
22958 \begin_layout Plain Layout
22963 captionsetup[figure]{
22969 \begin_inset Newline newline
22974 captionsetup[table]{labelfont={bf,sf}}
22977 \begin_layout Standard
22978 \begin_inset Note Greyedout
22981 \begin_layout Plain Layout
22990 has no effect when a
22995 \begin_inset Index idx
22998 \begin_layout Plain Layout
22999 LaTeX-packages ! KOMA-Script
23004 document class is used.
23005 In this case the document class option
23007 captions=tableheading
23017 \begin_layout Standard
23018 For more information about the package
23022 we refer to its documentation
23023 \begin_inset CommandInset citation
23032 \begin_layout Standard
23033 To change the label name from e.
23034 \begin_inset space \thinspace{}
23038 \begin_inset space \space{}
23042 \begin_inset Quotes eld
23046 \begin_inset Quotes erd
23050 \begin_inset Quotes eld
23054 \begin_inset Quotes erd
23057 use this preamble command:
23060 \begin_layout Standard
23067 fnum@figure}{Image~
23072 \begin_layout Standard
23079 inserts the figure number and
23082 \begin_inset Quotes eld
23088 \begin_inset Quotes erd
23091 creates a protected space.
23094 \begin_layout Standard
23095 \begin_inset VSpace bigskip
23103 \begin_inset Index idx
23106 \begin_layout Plain Layout
23107 LaTeX-packages ! KOMA-Script
23114 article (KOMA-Script)
23122 letter (KOMA-Script)
23126 report (KOMA-Script)
23129 \begin_inset space \thinspace{}
23132 ), you can alternatively to the
23140 's built-in command
23147 For example, to have the caption label in bold, add this command to your
23151 \begin_layout Standard
23156 setkomafont{captionlabel}{
23161 \begin_layout Standard
23162 For more information about
23173 \begin_inset CommandInset citation
23182 \begin_layout Standard
23186 \begin_layout Plain Layout
23190 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
23197 \begin_inset Note Note
23200 \begin_layout Plain Layout
23201 The caption format is changed only for this example.
23209 \begin_layout Standard
23210 \begin_inset Float figure
23216 \begin_layout Plain Layout
23218 \begin_inset Graphics
23219 filename clipart/mobius.eps
23222 scaleBeforeRotation
23229 \begin_layout Plain Layout
23230 \begin_inset Caption
23232 \begin_layout Plain Layout
23233 \begin_inset CommandInset label
23235 name "fig:This-is-an-fig"
23239 This is an example figure caption that is longer than one line to show the
23240 different caption format.
23241 Here a self-defined caption format is used.
23254 \begin_layout Standard
23258 \begin_layout Plain Layout
23262 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
23271 \begin_layout Standard
23272 \begin_inset Float table
23278 \begin_layout Plain Layout
23279 \begin_inset Caption
23281 \begin_layout Plain Layout
23282 \begin_inset CommandInset label
23284 name "tab:This-is-an-tab"
23288 This is an example table caption that is longer than one line to show the
23289 different caption format.
23290 Here the standard caption format for tables in this document is used.
23298 \begin_layout Plain Layout
23300 \begin_inset Tabular
23301 <lyxtabular version="3" rows="1" columns="5">
23302 <features tabularvalignment="middle">
23303 <column alignment="center" valignment="top" width="0">
23304 <column alignment="center" valignment="top" width="0">
23305 <column alignment="center" valignment="top" width="0">
23306 <column alignment="center" valignment="top" width="0">
23307 <column alignment="center" valignment="top" width="0">
23309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23312 \begin_layout Plain Layout
23318 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23321 \begin_layout Plain Layout
23327 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23330 \begin_layout Plain Layout
23336 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23339 \begin_layout Plain Layout
23345 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23348 \begin_layout Plain Layout
23367 \begin_layout Section
23369 \begin_inset Index idx
23372 \begin_layout Plain Layout
23373 Caption ! Placement
23379 \begin_inset Index idx
23382 \begin_layout Plain Layout
23383 Floats ! Caption Placement
23389 \begin_inset CommandInset label
23391 name "sec:Caption-Placement"
23398 \begin_layout Standard
23399 The common caption placement rule is:
23402 \begin_layout Description
23403 Figure: Caption is set below the figure
23406 \begin_layout Description
23407 Table: Caption is set above the table
23410 \begin_layout Standard
23411 Having the caption above the table is unfortunately not supported in LaTeX's
23413 That means if you are using the document classes
23429 there will be no space between the caption and the table.
23430 To insert the necessary space, add the following option to the load command
23431 of the LaTeX-package
23435 in your document preamble
23439 \begin_layout Plain Layout
23441 \begin_inset space ~
23445 \begin_inset CommandInset ref
23447 reference "sec:Caption-Formatting"
23451 for more information of the package
23463 \begin_layout Standard
23469 \begin_layout Standard
23475 \begin_inset Index idx
23478 \begin_layout Plain Layout
23479 LaTeX-packages ! KOMA-Script
23486 article (KOMA-Script)
23494 letter (KOMA-Script)
23498 report (KOMA-Script)
23501 \begin_inset space \thinspace{}
23504 ), you can alternatively to the
23508 package set the document class option
23510 captions=tableheading
23515 \begin_layout Standard
23516 \begin_inset VSpace bigskip
23519 It is also possible to set the caption beside a figure or table.
23520 To get this the LaTeX-package
23525 \begin_inset Index idx
23528 \begin_layout Plain Layout
23529 LaTeX-packages ! sidecap
23534 has to be loaded in the document preamble with the line
23537 \begin_layout Standard
23542 usepackage[option]{sidecap}
23545 \begin_layout Standard
23546 If you set no option, the caption is placed on the side of the outer page
23547 margin – to the right on odd pages, to the left on even pages.
23548 You can change the placement to inner margin with the option
23553 To force the placement always to the right or left, use the option
23564 \begin_layout Standard
23568 \begin_layout Plain Layout
23578 \begin_inset Note Note
23581 \begin_layout Plain Layout
23582 The following section will only be displayed when the LaTeX-package
23594 \begin_layout Standard
23595 To place in LyX the caption of a float on the side, it is necessary to add
23596 these commands to the document preamble:
23599 \begin_layout Standard
23601 \begin_inset CommandInset line
23612 \begin_layout Standard
23620 \begin_inset Newline newline
23624 \begin_inset Phantom HPhantom
23627 \begin_layout Plain Layout
23630 \begin_inset space ~
23645 \begin_inset Newline newline
23649 \begin_inset Phantom HPhantom
23652 \begin_layout Plain Layout
23655 \begin_inset space ~
23670 \begin_inset Newline newline
23674 \begin_inset Phantom HPhantom
23677 \begin_layout Plain Layout
23680 \begin_inset space ~
23690 renewenvironment{table}{
23697 \begin_layout Standard
23705 \begin_inset Newline newline
23709 \begin_inset Phantom HPhantom
23712 \begin_layout Plain Layout
23715 \begin_inset space ~
23730 \begin_inset Newline newline
23734 \begin_inset Phantom HPhantom
23737 \begin_layout Plain Layout
23740 \begin_inset space ~
23757 \begin_layout Standard
23765 \begin_inset Newline newline
23769 \begin_inset Phantom HPhantom
23772 \begin_layout Plain Layout
23775 \begin_inset space ~
23790 \begin_inset Newline newline
23794 \begin_inset Phantom HPhantom
23797 \begin_layout Plain Layout
23800 \begin_inset space ~
23815 \begin_inset Newline newline
23819 \begin_inset Phantom HPhantom
23822 \begin_layout Plain Layout
23825 \begin_inset space ~
23835 renewenvironment{figure}{
23842 \begin_layout Standard
23850 \begin_inset Newline newline
23854 \begin_inset Phantom HPhantom
23857 \begin_layout Plain Layout
23860 \begin_inset space ~
23875 \begin_inset Newline newline
23879 \begin_inset Phantom HPhantom
23882 \begin_layout Plain Layout
23885 \begin_inset space ~
23902 \begin_layout Standard
23904 \begin_inset CommandInset line
23915 \begin_layout Standard
23916 The commands allow you to redefine the floats so that the caption is set
23918 For figure floats use the command
23921 \begin_layout Standard
23929 \begin_layout Standard
23930 in TeX-Code before the float.
23931 After the float insert the command
23934 \begin_layout Standard
23942 \begin_layout Standard
23943 in TeX-Code to get back to the original float definition.
23946 \begin_layout Standard
23947 For table floats use the corresponding commands
23950 \begin_layout Standard
23964 \begin_layout Standard
23966 \begin_inset space ~
23970 \begin_inset CommandInset ref
23972 reference "fig:cap-beside-fig"
23977 \begin_inset space ~
23981 \begin_inset CommandInset ref
23983 reference "tab:cap-beside-tab"
23987 are examples where the caption is set beside.
23990 \begin_layout Standard
23991 You can see in the examples that the caption text appears at the top of
23992 the floats for table floats and at the bottom for figure floats.
23993 To change this, you can use the command
23996 \begin_layout Standard
24001 sidecaptionvpos{float type}{placement}
24004 \begin_layout Standard
24005 in the document preamble or in TeX-Code before the float.
24006 The float type is either
24014 , the placement can be
24015 \begin_inset Quotes eld
24023 \begin_inset Quotes erd
24027 \begin_inset Quotes eld
24035 \begin_inset Quotes erd
24039 \begin_inset Quotes eld
24047 \begin_inset Quotes erd
24051 To have for example the caption of figure floats vertically centered, use
24055 \begin_layout Standard
24060 sidecaptionvpos{figure}{c}
24063 \begin_layout Standard
24064 This was used for Figure
24065 \begin_inset space ~
24069 \begin_inset CommandInset ref
24071 reference "fig:cap-beside-fig-2"
24078 \begin_layout Standard
24079 \begin_inset VSpace medskip
24082 For more information about the package
24086 we refer to its documentation
24087 \begin_inset CommandInset citation
24096 \begin_layout Standard
24097 \begin_inset Note Greyedout
24100 \begin_layout Plain Layout
24110 \begin_inset Index idx
24113 \begin_layout Plain Layout
24114 LaTeX-packages ! hypcap
24119 , described in section
24120 \begin_inset space ~
24124 \begin_inset CommandInset ref
24126 reference "sub:Reference-Position"
24130 , has no effect on floats with the caption set beside.
24138 \begin_layout Standard
24142 \begin_layout Plain Layout
24154 \begin_layout Standard
24155 \begin_inset Float figure
24160 \begin_layout Plain Layout
24161 \begin_inset Graphics
24162 filename clipart/escher-lsd.eps
24164 scaleBeforeRotation
24171 \begin_layout Plain Layout
24172 \begin_inset Caption
24174 \begin_layout Plain Layout
24175 \begin_inset CommandInset label
24177 name "fig:cap-beside-fig"
24181 This is a caption beside a figure.
24194 \begin_layout Standard
24198 \begin_layout Plain Layout
24210 \begin_layout Standard
24211 \begin_inset Float table
24216 \begin_layout Plain Layout
24217 \begin_inset Caption
24219 \begin_layout Plain Layout
24220 \begin_inset CommandInset label
24222 name "tab:cap-beside-tab"
24226 This is a caption beside a table.
24234 \begin_layout Plain Layout
24235 \begin_inset Tabular
24236 <lyxtabular version="3" rows="4" columns="5">
24237 <features tabularvalignment="middle">
24238 <column alignment="center" valignment="top" width="0">
24239 <column alignment="center" valignment="top" width="0">
24240 <column alignment="center" valignment="top" width="0">
24241 <column alignment="center" valignment="top" width="0">
24242 <column alignment="center" valignment="top" width="0">
24244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24247 \begin_layout Plain Layout
24253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24256 \begin_layout Plain Layout
24262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24265 \begin_layout Plain Layout
24271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24274 \begin_layout Plain Layout
24280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24283 \begin_layout Plain Layout
24291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24294 \begin_layout Plain Layout
24300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24303 \begin_layout Plain Layout
24309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24312 \begin_layout Plain Layout
24318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24321 \begin_layout Plain Layout
24327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24330 \begin_layout Plain Layout
24338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24341 \begin_layout Plain Layout
24347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24350 \begin_layout Plain Layout
24356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24359 \begin_layout Plain Layout
24365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24368 \begin_layout Plain Layout
24374 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24377 \begin_layout Plain Layout
24385 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24388 \begin_layout Plain Layout
24394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24397 \begin_layout Plain Layout
24403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24406 \begin_layout Plain Layout
24412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24415 \begin_layout Plain Layout
24421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24424 \begin_layout Plain Layout
24443 \begin_layout Standard
24447 \begin_layout Plain Layout
24459 \begin_layout Standard
24463 \begin_layout Plain Layout
24467 sidecaptionvpos{figure}{c}
24473 \begin_inset Float figure
24478 \begin_layout Plain Layout
24479 \begin_inset Graphics
24480 filename clipart/escher-lsd.eps
24482 scaleBeforeRotation
24489 \begin_layout Plain Layout
24490 \begin_inset Caption
24492 \begin_layout Plain Layout
24493 \begin_inset CommandInset label
24495 name "fig:cap-beside-fig-2"
24499 This is a vertically centered caption beside a figure.
24512 \begin_layout Standard
24516 \begin_layout Plain Layout
24528 \begin_layout Standard
24532 \begin_layout Plain Layout
24542 \begin_inset Note Note
24545 \begin_layout Plain Layout
24546 The following will be displayed when the LaTeX-package
24558 \begin_layout Standard
24559 You need to install the LaTeX-package
24563 to see the following part of this section in the output.
24566 \begin_layout Standard
24570 \begin_layout Plain Layout
24582 \begin_layout Section
24584 \begin_inset Index idx
24587 \begin_layout Plain Layout
24588 Floats ! Float Lists
24596 \begin_layout Standard
24597 Similar to the table of contents where the sections of the document are
24598 listed, there are listings for all float types, like the figures of the
24600 You can insert them via the
24602 Insert\SpecialChar \menuseparator
24604 \begin_inset space ~
24608 \begin_inset space ~
24616 \begin_layout Standard
24617 The list entries are the float captions or its short title, the float number,
24618 and the page number where they appear in the document.
24621 \begin_layout Standard
24622 You can find the list of figures and tables at the end of this document.
24625 \begin_layout Chapter
24629 \begin_layout Section
24631 \begin_inset Index idx
24634 \begin_layout Plain Layout
24643 \begin_layout Standard
24644 Notes are inserted with the toolbar button
24645 \begin_inset Graphics
24646 filename ../images/note-insert.png
24648 scaleBeforeRotation
24654 Insert\SpecialChar \menuseparator
24658 There are three types of notes:
24661 \begin_layout Description
24663 \begin_inset space ~
24666 Note This note type is for internal notes that won't appear in the output.
24667 Its note-box looks like this:
24668 \begin_inset Newline newline
24672 \begin_inset Newline newline
24676 \begin_inset Graphics
24677 filename clipart/LyXNoteImageQt4.png
24680 scaleBeforeRotation
24685 \begin_inset Note Note
24688 \begin_layout Plain Layout
24689 This is text in a note box that doesn't appear in the output.
24697 \begin_layout Description
24698 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24699 ent, when you export the document to LaTeX via the menu
24701 File\SpecialChar \menuseparator
24702 Export\SpecialChar \menuseparator
24703 LaTeX (pdflatex) / (plain)
24706 Its note-box looks like this:
24707 \begin_inset Newline newline
24711 \begin_inset Newline newline
24715 \begin_inset Graphics
24716 filename clipart/CommentNoteImageQt4.png
24719 scaleBeforeRotation
24724 \begin_inset Note Comment
24727 \begin_layout Plain Layout
24728 This is text in a note box that only appears as comment in LaTeX-files.
24736 \begin_layout Description
24738 \begin_inset space ~
24741 Out This note will appear in the output as grey text.
24742 Its note-box looks like this:
24743 \begin_inset Newline newline
24747 \begin_inset Newline newline
24751 \begin_inset Graphics
24752 filename clipart/GreyedOutNoteImageQt4.png
24755 scaleBeforeRotation
24760 \begin_inset Newline newline
24767 \begin_layout Plain Layout
24771 renewenvironment{lyxgreyedout}
24774 \begin_layout Plain Layout
24778 textcolor[gray]{0.8}
24788 \begin_inset Note Greyedout
24791 \begin_layout Plain Layout
24796 \begin_layout Plain Layout
24797 This is an example footnote within a greyed out note.
24802 of a comment that appears in the output as grey text.
24811 \begin_layout Plain Layout
24815 renewenvironment{lyxgreyedout}
24818 \begin_layout Plain Layout
24832 \begin_inset Note Note
24835 \begin_layout Plain Layout
24836 The greyed out note is here redefined to show it with the original LyX definitio
24837 n because greyed out notes are redefined in the preamble of this document,
24838 as described below, to have blue text.
24844 \begin_inset Newline newline
24848 \begin_inset Newline newline
24851 As you can see in the example, the first line of greyed out notes is a bit
24852 indented and greyed out notes can have footnotes.
24855 \begin_layout Standard
24856 \begin_inset VSpace bigskip
24859 When you use the toolbar button
24860 \begin_inset Graphics
24861 filename ../images/note-insert.png
24863 scaleBeforeRotation
24870 \begin_inset space ~
24876 You can switch between the five note types by right-clicking on the note-box.
24881 If you want to turn existing text into a note, mark it and click on the
24895 To change a note to text, press the backspace key when the cursor is in
24896 the first position of a note, or press the delete key when the cursor is
24897 in the very last position of the note, respectively.
24900 \begin_layout Standard
24901 \begin_inset VSpace bigskip
24904 You can change the text color of the greyed out notes in the preamble with
24905 the following command:
24908 \begin_layout Standard
24913 renewenvironment{lyxgreyedout}
24914 \begin_inset Newline newline
24918 \begin_inset Phantom HPhantom
24921 \begin_layout Plain Layout
24924 \begin_inset space ~
24941 \begin_layout Standard
24942 The available colors and the method to define colors is explained in section
24943 \begin_inset space ~
24947 \begin_inset CommandInset ref
24949 reference "sec:Colored-Tables"
24956 \begin_layout Standard
24957 Notes that appear in blue in this document are set using greyed out notes
24961 \begin_layout Section
24963 \begin_inset CommandInset label
24965 name "sec:Footnotes"
24970 \begin_inset Index idx
24973 \begin_layout Plain Layout
24980 \begin_inset Index idx
24983 \begin_layout Plain Layout
24992 \begin_layout Standard
24993 Footnotes can be inserted using the toolbar button
24994 \begin_inset Graphics
24995 filename ../images/footnote-insert.png
24997 scaleBeforeRotation
25003 Insert\SpecialChar \menuseparator
25015 then the following footnote-box:
25016 \begin_inset Graphics
25017 filename clipart/footnoteQt4.png
25019 scaleBeforeRotation
25027 where you can enter the footnote text.
25028 If you want to turn existing text into a footnote, mark it and click on
25050 to text, press the Backspace key when the cursor is in the first position
25059 , or press the Delete key when the cursor is in the very last position of
25071 \begin_layout Standard
25072 Here is an example footnote:
25080 \begin_layout Plain Layout
25081 \begin_inset CommandInset label
25083 name "foot:This-is-an"
25087 This is an example footnote.
25100 \begin_layout Plain Layout
25104 newcounter{MyRepeatFoot}
25107 \begin_layout Plain Layout
25111 setcounter{MyRepeatFoot}{
25121 \begin_layout Standard
25122 The footnote will appear in the output as a superscript number at the text
25123 position where the footnote box is placed.
25124 The footnote text is placed at the bottom of the current page.
25125 The footnote number is calculated by LaTeX; the numbers are consecutive.
25126 It depends on your document-class, whether the footnote number is reset
25130 \begin_layout Standard
25131 Footnotes can be referenced like floats: Insert a label into the footnote
25132 and cross-reference this label in the text as described in section
25133 \begin_inset space ~
25137 \begin_inset CommandInset ref
25139 reference "sec:Referencing-Floats"
25144 \begin_inset Newline newline
25147 This is a cross-reference of Footnote
25148 \begin_inset space ~
25152 \begin_inset CommandInset ref
25154 reference "foot:This-is-an"
25161 \begin_layout Standard
25162 \begin_inset VSpace defskip
25165 Footnotes in tables are not printed by LaTeX due to technical reasons.
25166 However there exists another method to print them: Instead of the footnote
25173 is inserted as TeX-code.
25174 The text of the footnote is entered as an argument of the TeX-code command
25182 \begin_inset Newline newline
25185 This was done for the following table with the command
25188 \begin_layout Standard
25195 Printed table footnote.
25200 \begin_layout Standard
25201 \begin_inset Tabular
25202 <lyxtabular version="3" rows="2" columns="1">
25203 <features tabularvalignment="middle">
25204 <column alignment="center" valignment="top" width="0">
25206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25209 \begin_layout Plain Layout
25210 This an example text.
25214 \begin_layout Plain Layout
25215 This footnote will not be printed!
25227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25230 \begin_layout Plain Layout
25231 This an example text.
25235 \begin_layout Plain Layout
25258 \begin_layout Plain Layout
25267 Printed table footnote.
25271 \begin_layout Plain Layout
25281 \begin_layout Standard
25282 Footnotes in longtables are described in section
25283 \begin_inset space ~
25287 \begin_inset CommandInset ref
25289 reference "sub:Footnotes-in-Longtables"
25296 \begin_layout Standard
25297 Footnotes in minipage boxes are printed, but inside the box and with a different
25298 numbering because a minipage box is like a page inside a page.
25299 (For more about minipages, see section
25300 \begin_inset space ~
25304 \begin_inset CommandInset ref
25306 reference "sec:Minipages"
25310 .) To get a footnote in the minipage that is output at the bottom of the
25311 page like normal footnotes, also use the method of
25326 \begin_layout Standard
25327 \begin_inset Box Frameless
25337 height_special "totalheight"
25340 \begin_layout Plain Layout
25341 This an example text in a minipage.
25345 \begin_layout Plain Layout
25346 Footnote in the minipage.
25354 \begin_layout Plain Layout
25355 This an example text in a minipage.
25359 \begin_layout Plain Layout
25376 \begin_layout Standard
25380 \begin_layout Plain Layout
25389 Footnote outside the minipage.
25393 \begin_layout Plain Layout
25403 \begin_layout Standard
25404 \begin_inset VSpace defskip
25410 \begin_layout Standard
25411 To refer to the same footnote several times without printing the footnote
25412 text every time, use the command
25416 footnotemark[number]
25419 \begin_inset Newline newline
25422 As you do not know the number of the repeating footnote while you are writing
25423 the text, you have to store its number.
25424 For the following footnote mark example, these commands were inserted in
25425 TeX-code after Footnote
25426 \begin_inset space ~
25430 \begin_inset CommandInset ref
25432 reference "foot:This-is-an"
25436 to store the footnote number:
25439 \begin_layout Standard
25444 newcounter{MyRepeatFoot}
25445 \begin_inset Newline newline
25450 setcounter{MyRepeatFoot}{
25455 \begin_layout Standard
25456 The footnote mark was then created with this command:
25459 \begin_layout Standard
25469 \begin_layout Standard
25470 Here is a repeated footnote:
25478 \begin_layout Plain Layout
25492 \begin_layout Standard
25493 If you want to repeat the previous footnote, you can omit the storage of
25494 the footnote number and just use this command instead:
25497 \begin_layout Standard
25507 \begin_layout Standard
25508 Here is another repeated footnote:
25516 \begin_layout Plain Layout
25530 \begin_layout Subsection
25532 \begin_inset CommandInset label
25534 name "sub:Footnote-Numbering"
25539 \begin_inset Index idx
25542 \begin_layout Plain Layout
25543 Footnotes ! Numbering
25551 \begin_layout Standard
25552 To reset the footnote number back to 1 after each section
25554 , add this command to your document preamble:
25557 \begin_layout Standard
25562 @addtoreset{footnote}{section}
25565 \begin_layout Standard
25566 \begin_inset VSpace bigskip
25569 The following preamble command changes the footnote numbering style to small
25573 \begin_layout Standard
25585 \begin_layout Standard
25589 \begin_layout Plain Layout
25602 This is a footnote with roman numbering:
25606 \begin_layout Plain Layout
25607 This is an example footnote with roman numbering.
25615 \begin_layout Standard
25616 To change the numbering style to capital roman numerals replace in the command
25631 \begin_inset Quotes eld
25635 \begin_inset Quotes erd
25638 footnotes with capital or small Latin letters use
25652 \begin_inset Quotes eld
25656 \begin_inset Quotes erd
25659 footnotes with symbols use
25668 \begin_layout Standard
25669 \begin_inset Note Greyedout
25672 \begin_layout Plain Layout
25677 You can only number 26 footnotes with Latin letters, because this numbering
25678 is limited to single letters.
25684 \begin_inset Newline newline
25688 \begin_inset Note Greyedout
25691 \begin_layout Plain Layout
25696 You can only number 9 footnotes with symbols.
25704 \begin_layout Standard
25705 To return to the default numbering style after you have changed to another
25718 in the command above.
25722 \begin_layout Plain Layout
25738 \begin_layout Standard
25739 \begin_inset VSpace bigskip
25745 \begin_layout Standard
25746 If you want to have footnotes numbered in the scheme
25747 \begin_inset Quotes eld
25751 \begin_inset Quotes erd
25754 , add the following command to your document preamble:
25757 \begin_layout Standard
25762 numberwithin{footnote}{chapter}
25765 \begin_layout Standard
25766 To be able to use the command
25775 \begin_inset space ~
25780 in the document settings the option
25783 \begin_inset space ~
25787 \begin_inset space ~
25791 \begin_inset space ~
25799 \begin_layout Standard
25803 \begin_layout Plain Layout
25807 numberwithin{footnote}{chapter}
25812 This is another example footnote:
25818 \begin_layout Plain Layout
25819 This is a footnote numbered in the scheme
25820 \begin_inset Quotes eld
25824 \begin_inset Quotes erd
25838 \begin_layout Plain Layout
25854 \begin_layout Standard
25855 \begin_inset Note Greyedout
25858 \begin_layout Plain Layout
25869 always prints out the footnote number as arabic number; previous redefinitions
25870 to get non-arabic numbers are overwritten.
25878 \begin_layout Standard
25879 So to get for example the scheme
25880 \begin_inset Quotes eld
25886 \begin_inset Quotes erd
25889 , use this command instead of
25898 \begin_layout Standard
25912 \begin_layout Subsection
25914 \begin_inset Index idx
25917 \begin_layout Plain Layout
25918 Footnotes ! Placement
25926 \begin_layout Standard
25927 If you have several footnotes in one page, they appear without vertical
25928 space between them at the bottom of the page.
25929 To make them more readable you can e.
25930 \begin_inset space \thinspace{}
25934 \begin_inset space \space{}
25938 \begin_inset space \thinspace{}
25941 mm space with the following preamble command:
25944 \begin_layout Standard
25954 \begin_inset Newline newline
25968 \begin_layout Standard
25969 \begin_inset VSpace bigskip
25972 In a two-column document the footnotes appear at the bottom of every column,
25974 \begin_inset space ~
25978 \begin_inset CommandInset ref
25980 reference "fig:Standard-footnote-placement"
25985 If the footnotes should only appear at the bottom of the right column,
25987 \begin_inset space ~
25991 \begin_inset CommandInset ref
25993 reference "fig:Footnote-placement-in"
25997 , use the LaTeX-package
26002 \begin_inset Index idx
26005 \begin_layout Plain Layout
26006 LaTeX-packages ! ftnright
26011 with this command in the document preamble:
26014 \begin_layout Standard
26019 usepackage{ftnright}
26022 \begin_layout Standard
26023 \begin_inset Float figure
26029 \begin_layout Plain Layout
26033 \begin_layout Plain Layout
26043 \begin_inset Graphics
26044 filename clipart/without_fntright.pdf
26046 scaleBeforeRotation
26054 \begin_layout Plain Layout
26064 \begin_layout Plain Layout
26065 \begin_inset Caption
26067 \begin_layout Plain Layout
26068 \begin_inset CommandInset label
26070 name "fig:Standard-footnote-placement"
26074 Standard footnote placement in two-column documents.
26087 \begin_layout Standard
26088 \begin_inset Float figure
26094 \begin_layout Plain Layout
26098 \begin_layout Plain Layout
26108 \begin_inset Graphics
26109 filename clipart/with_fntright.pdf
26111 scaleBeforeRotation
26119 \begin_layout Plain Layout
26129 \begin_layout Plain Layout
26130 \begin_inset Caption
26132 \begin_layout Plain Layout
26133 \begin_inset CommandInset label
26135 name "fig:Footnote-placement-in"
26139 Footnote placement in two-column documents when the LaTeX-package
26156 \begin_layout Standard
26157 \begin_inset VSpace bigskip
26160 In some scientific literature it is usual to collect the footnotes and print
26161 them in a separate paragraph at the end of a section, as in Figure
26162 \begin_inset space ~
26166 \begin_inset CommandInset ref
26168 reference "fig:Endnotes"
26173 They are then called
26174 \begin_inset Quotes eld
26178 \begin_inset Quotes erd
26182 \begin_inset Index idx
26185 \begin_layout Plain Layout
26191 To use endnotes instead of footnotes in your document, load in the menu
26194 Document\SpecialChar \menuseparator
26195 Settings\SpecialChar \menuseparator
26201 \begin_inset space ~
26205 \begin_inset space ~
26211 To insert the collected footnotes, insert the command
26214 \begin_layout Standard
26222 \begin_layout Standard
26223 in TeX-Code at the end of a section or chapter.
26226 \begin_layout Standard
26227 \begin_inset Float figure
26232 \begin_layout Plain Layout
26237 \begin_layout Plain Layout
26247 \begin_inset Graphics
26248 filename clipart/endnotes.pdf
26249 scaleBeforeRotation
26257 \begin_layout Plain Layout
26267 \begin_layout Plain Layout
26268 \begin_inset Caption
26270 \begin_layout Plain Layout
26271 \begin_inset CommandInset label
26273 name "fig:Endnotes"
26277 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26291 \begin_layout Standard
26292 \begin_inset VSpace medskip
26295 The paragraph heading for the endnotes isn't automatically translated into
26296 the document language, this must be done manually.
26297 The following preamble command translates the default English
26298 \begin_inset Quotes eld
26302 \begin_inset Quotes erd
26306 \begin_inset Quotes eld
26310 \begin_inset Quotes erd
26316 \begin_layout Standard
26323 notesname}{Anmerkungen}
26326 \begin_layout Standard
26327 \begin_inset VSpace medskip
26330 The numbering of endnotes can be changed like the footnote numbering as
26331 described in section
26332 \begin_inset space ~
26336 \begin_inset CommandInset ref
26338 reference "sub:Footnote-Numbering"
26342 ; just replace the command
26355 To reset the endnote number use the command
26361 as described in section
26362 \begin_inset space ~
26366 \begin_inset CommandInset ref
26368 reference "sub:Footnote-Numbering"
26372 and replace the command parameter
26383 \begin_layout Standard
26384 For endnotes there is the command
26388 endnotemark[number]
26390 similar to the command
26396 , that is described in section
26397 \begin_inset space ~
26401 \begin_inset CommandInset ref
26403 reference "sec:Footnotes"
26410 \begin_layout Standard
26411 \begin_inset VSpace bigskip
26414 Footnotes can also be placed in the page margin and the footnote text alignment
26415 can be changed, see the LaTeX-package
26420 \begin_inset Index idx
26423 \begin_layout Plain Layout
26424 LaTeX-packages ! footmisc
26430 \begin_inset CommandInset citation
26436 for more information about this.
26439 \begin_layout Standard
26440 For various further footnote formatting issues have a look at LaTeX-books,
26442 \begin_inset CommandInset citation
26444 key "latexcompanion,latexguide,latexbook"
26451 \begin_layout Section
26453 \begin_inset Index idx
26456 \begin_layout Plain Layout
26457 Notes ! Margin Notes
26465 \begin_layout Standard
26466 Margin notes look and behave in LyX like footnotes.
26467 They are inserted via the menu
26469 Insert\SpecialChar \menuseparator
26471 \begin_inset space ~
26476 or the toolbar button
26477 \begin_inset Graphics
26478 filename ../images/marginalnote-insert.png
26480 scaleBeforeRotation
26495 \begin_inset Quotes eld
26499 \begin_inset Quotes erd
26502 appears where you can enter the text of the margin note.
26505 \begin_layout Standard
26506 At the side is an example margin note.
26511 \begin_inset Marginal
26514 \begin_layout Plain Layout
26515 This is a margin note.
26523 \begin_layout Standard
26524 Margin notes appear at the right side in single-sided documents.
26525 In double-sided documents they appear in the outer margin – left on even
26526 pages, right on odd pages.
26527 The text of margin notes is aligned opposite to the outer margin – right-aligne
26528 d when the note appears in the left margin.
26529 The first line of the margin note is placed at the position of the text
26530 line where it is inserted in the document.
26533 \begin_layout Standard
26534 \begin_inset VSpace bigskip
26537 To place the margin note in the inner margin, add the command
26540 \begin_layout Standard
26548 \begin_layout Standard
26549 in TeX-Code before a margin note.
26550 The new placement is valid for all subsequent margin notes.
26555 \begin_layout Plain Layout
26565 \begin_inset Marginal
26568 \begin_layout Plain Layout
26569 This is a margin note in the inner margin.
26577 \begin_inset Newline newline
26583 \begin_inset Note Greyedout
26586 \begin_layout Plain Layout
26591 There is often not enough space in the inner margin so that the notes are
26592 not correctly displayed in the output.
26600 \begin_layout Standard
26601 To return to the default placement insert the command
26604 \begin_layout Standard
26612 \begin_layout Standard
26617 \begin_layout Plain Layout
26627 \begin_inset Note Greyedout
26630 \begin_layout Plain Layout
26635 The command is ignored when it is within a paragraph where also the command
26650 \begin_layout Standard
26651 \begin_inset VSpace bigskip
26658 \begin_inset Marginal
26661 \begin_layout Plain Layout
26662 AVeryLongMarginParWord that isn't hyphenated.
26670 Similar to the case described in section
26671 \begin_inset space ~
26675 \begin_inset CommandInset ref
26677 reference "sub:Multiple-Lines-in"
26681 , long words cannot be hyphenated when they are the first word in a margin
26683 To avoid this, insert 0
26684 \begin_inset space \thinspace{}
26687 pt horizontal space before the word
26692 \begin_inset Marginal
26695 \begin_layout Plain Layout
26696 \begin_inset space \hspace*{}
26700 AVeryLongMarginParWord that is hyphenated.
26708 \begin_layout Standard
26709 \begin_inset VSpace bigskip
26715 \begin_layout Standard
26716 \begin_inset Note Greyedout
26719 \begin_layout Plain Layout
26724 Margin notes can normally not be used inside tables, floats, and footnotes.
26732 \begin_layout Standard
26733 \begin_inset VSpace bigskip
26739 \begin_layout Standard
26743 \begin_layout Plain Layout
26753 \begin_inset Note Note
26756 \begin_layout Plain Layout
26757 The following section will only be displayed when the LaTeX-package
26769 \begin_layout Standard
26770 This restriction can be evaded by using the LaTeX-package
26775 \begin_inset Index idx
26778 \begin_layout Plain Layout
26779 LaTeX-packages ! marginnote
26785 By adding these two lines to your document preamble, the command used by
26786 LyX for margin notes is redefined to use the command provided by the
26793 \begin_layout Standard
26798 usepackage{marginnote}
26799 \begin_inset Newline newline
26811 \begin_layout Standard
26812 This is also used in this document because
26816 has another useful feature: You can set a vertical offset for the note.
26817 This is often needed when too many margin notes are too close together
26818 or for a better page layout.
26819 The offset is set in LyX as TeX-Code directly after the margin note in
26823 \begin_layout Standard
26829 \begin_layout Standard
26830 where the offset is a length with one of the units listed in Table
26831 \begin_inset space ~
26835 \begin_inset CommandInset ref
26837 reference "tab:Units"
26842 A negative value shifts the note up, a positive value shifts it down.
26846 For example the margin note beside this text line is shifted up 1.5
26847 \begin_inset space \thinspace{}
26850 cm with the TeX-Code-command
26851 \begin_inset Quotes eld
26861 \begin_inset Quotes erd
26865 \begin_inset Marginal
26868 \begin_layout Plain Layout
26869 This margin note is shifted up 1.5
26870 \begin_inset space \thinspace{}
26873 cm from its original position.
26885 \begin_layout Plain Layout
26895 \begin_layout Standard
26896 \begin_inset VSpace medskip
26903 you can also change the alignment of the text in the margin note.
26904 For example the commands
26907 \begin_layout Standard
26914 raggedleftmarginnote}{
26917 \begin_inset Newline newline
26924 raggedrightmarginnote}{
26929 \begin_layout Standard
26930 set the alignment to centered.
26935 raggedleftmarginnote
26937 denotes margin notes that appear at the left side.
26944 \begin_layout Plain Layout
26950 raggedleftmarginnote}{
26955 \begin_layout Plain Layout
26961 raggedrightmarginnote}{
26969 \begin_inset Marginal
26972 \begin_layout Plain Layout
26973 The text of this margin note is centered.
26984 \begin_layout Standard
26991 raggedleftmarginnote}{
26994 \begin_inset Newline newline
27001 raggedrightmarginnote}{
27010 \begin_layout Plain Layout
27016 raggedleftmarginnote}{
27021 \begin_layout Plain Layout
27027 raggedrightmarginnote}{
27037 \begin_layout Standard
27038 \begin_inset VSpace medskip
27041 For the other features of
27045 refer to its documentation
27046 \begin_inset CommandInset citation
27055 \begin_layout Standard
27056 \begin_inset VSpace bigskip
27059 You can adjust the layout of margin notes by changing its definition.
27060 To create for example a header for all margin notes with the underlined,
27061 sans-serif, and bold header text
27062 \begin_inset Quotes eld
27074 \begin_inset Quotes erd
27077 , add this to your document preamble:
27080 \begin_layout Standard
27090 \begin_inset Newline newline
27100 \begin_inset Newline newline
27104 \begin_inset Phantom HPhantom
27107 \begin_layout Plain Layout
27110 \begin_inset space ~
27126 underbar{Attention!}}}%
27127 \begin_inset Newline newline
27131 \begin_inset Phantom HPhantom
27134 \begin_layout Plain Layout
27137 \begin_inset space ~
27154 \begin_layout Standard
27161 \begin_layout Plain Layout
27172 \begin_layout Plain Layout
27183 \begin_layout Plain Layout
27191 underbar{Attention!}}}%
27194 \begin_layout Plain Layout
27208 \begin_inset Marginal
27211 \begin_layout Plain Layout
27212 This is a margin note with a defined heading.
27224 \begin_layout Plain Layout
27238 \begin_layout Plain Layout
27255 \begin_inset Note Note
27258 \begin_layout Plain Layout
27259 The margin note format is changed only for this example.
27267 \begin_layout Standard
27271 \begin_layout Plain Layout
27281 \begin_inset Note Note
27284 \begin_layout Plain Layout
27285 The following will be displayed when the LaTeX-package
27297 \begin_layout Standard
27298 You need to install the LaTeX-package
27302 to see the following part of this section in the output.
27305 \begin_layout Standard
27309 \begin_layout Plain Layout
27321 \begin_layout Chapter
27325 \begin_layout Section
27327 \begin_inset Index idx
27330 \begin_layout Plain Layout
27331 Boxes ! Introduction
27339 \begin_layout Standard
27340 Boxes are used to format a block of text.
27341 Boxes can be used to write documents with multiple languages, see section
27342 \begin_inset space ~
27346 \begin_inset CommandInset ref
27348 reference "sec:Minipages"
27352 , to frame texts, see section
27353 \begin_inset space ~
27357 \begin_inset CommandInset ref
27359 reference "sec:Decoration"
27363 , to prevent words from being hyphenated, see section
27364 \begin_inset space ~
27368 \begin_inset CommandInset ref
27370 reference "sec:Prevent-Hyphenation"
27374 , to align text, see section
27375 \begin_inset space ~
27379 \begin_inset CommandInset ref
27381 reference "sub:Vertical-Alignment"
27385 , or to set the background color of texts, see section
27386 \begin_inset space ~
27390 \begin_inset CommandInset ref
27392 reference "sec:Colored-Boxes"
27399 \begin_layout Standard
27400 Boxes can be inserted with the menu
27402 Insert\SpecialChar \menuseparator
27405 or the toolbar button
27406 \begin_inset Graphics
27407 filename ../images/box-insert.png
27409 scaleBeforeRotation
27414 A grey box with the label
27419 \begin_inset Graphics
27420 filename clipart/BoxInsetDefaultQt4.png
27422 scaleBeforeRotation
27427 The box type can be specified by right-clicking on the box and selecting
27433 The box dialog offers the
27436 \begin_inset space ~
27458 is the default for new boxes and is explained in section
27459 \begin_inset space ~
27463 \begin_inset CommandInset ref
27465 reference "sec:Minipages"
27473 is described in section
27474 \begin_inset space ~
27478 \begin_inset CommandInset ref
27480 reference "sec:Parboxes"
27489 \begin_inset CommandInset ref
27491 reference "sec:Prevent-Hyphenation"
27498 \begin_layout Standard
27499 Boxes are not numbered and can therefore not be referenced like floats or
27503 \begin_layout Standard
27504 \begin_inset Note Greyedout
27507 \begin_layout Plain Layout
27512 Boxes must not be the item in an
27528 \begin_layout Standard
27529 \begin_inset Note Greyedout
27532 \begin_layout Plain Layout
27537 For an unknown reason you can only set the
27540 \begin_inset space ~
27549 when you use a framed box.
27553 \begin_inset space ~
27558 type and without frames are explained in section
27559 \begin_inset space ~
27563 \begin_inset CommandInset ref
27565 reference "sec:Prevent-Hyphenation"
27577 \begin_layout Section
27579 \begin_inset CommandInset label
27581 name "sec:Box-Dialog"
27586 \begin_inset Index idx
27589 \begin_layout Plain Layout
27598 \begin_layout Subsection
27600 \begin_inset Index idx
27603 \begin_layout Plain Layout
27612 \begin_layout Standard
27613 In the box dialog you can adjust the box geometry in the fields
27622 The available units for the geometry are explained in Table
27623 \begin_inset space ~
27627 \begin_inset CommandInset ref
27629 reference "tab:Units"
27638 offers the following additional sizes:
27641 \begin_layout Description
27642 Depth This is the plain text
27643 \begin_inset Quotes eld
27647 \begin_inset Quotes erd
27651 It ignores the total depth when there are multiple text lines in the box:
27652 \begin_inset Newline newline
27656 \begin_inset Newline newline
27660 \begin_inset Newline newline
27664 \begin_inset Box Boxed
27674 height_special "depth"
27677 \begin_layout Plain Layout
27679 Box height set to 1
27680 \begin_inset space \thinspace{}
27689 \begin_inset Newline newline
27693 \begin_inset Newline newline
27699 \begin_layout Description
27700 Height This is the height of the text that is inside the box.
27702 \begin_inset space \thinspace{}
27706 \begin_inset space \space{}
27709 2 for this size will set the box height to 2
27710 \begin_inset space ~
27713 times the text height:
27714 \begin_inset Box Boxed
27724 height_special "height"
27727 \begin_layout Plain Layout
27729 Box height set to 2
27730 \begin_inset space \thinspace{}
27741 \begin_layout Description
27743 \begin_inset space ~
27746 Height This is the Height
27747 \begin_inset space \thinspace{}
27751 \begin_inset space \thinspace{}
27755 \begin_inset Box Boxed
27765 height_special "totalheight"
27768 \begin_layout Plain Layout
27770 Box height set to 1
27771 \begin_inset space \thinspace{}
27775 \begin_inset space ~
27786 \begin_layout Description
27787 Width This sets the width of the box as height:
27788 \begin_inset Box Boxed
27798 height_special "width"
27801 \begin_layout Plain Layout
27803 Box height set to 1
27804 \begin_inset space \thinspace{}
27815 \begin_layout Subsection
27817 \begin_inset Index idx
27820 \begin_layout Plain Layout
27829 \begin_layout Standard
27830 When you have chosen an
27833 \begin_inset space ~
27838 , the vertical box alignment can be:
27841 \begin_layout Description
27842 Top This is an example text line.
27844 \begin_inset Box Boxed
27854 height_special "totalheight"
27857 \begin_layout Plain Layout
27859 This box is top-aligned.
27864 This is an example text line.
27867 \begin_layout Description
27868 Middle This is an example text line.
27870 \begin_inset Box Boxed
27880 height_special "totalheight"
27883 \begin_layout Plain Layout
27885 This box is middle-aligned.
27890 This is an example text line.
27893 \begin_layout Description
27894 Bottom This is an example text line.
27896 \begin_inset Box Boxed
27906 height_special "totalheight"
27909 \begin_layout Plain Layout
27911 This box is bottom-aligned.
27916 This is an example text line.
27919 \begin_layout Standard
27920 \begin_inset Note Greyedout
27923 \begin_layout Plain Layout
27928 The vertical box alignment can be lost in the output when you have two
27929 boxes in a line and one has e.
27930 \begin_inset space \thinspace{}
27934 \begin_inset space \space{}
27937 a shadow and the other one not.
27945 \begin_layout Standard
27946 The horizontal box alignment can be set via LyX's paragraph dialog when
27947 you set the box into its own paragraph.
27950 \begin_layout Standard
27951 \begin_inset VSpace bigskip
27954 When you have chosen an
27957 \begin_inset space ~
27962 , the box content can be aligned vertically to:
27965 \begin_layout Description
27966 top This is an example text line.
27968 \begin_inset Box Boxed
27978 height_special "totalheight"
27981 \begin_layout Plain Layout
27983 This box text is top-aligned.
27988 This is an example text line.
27991 \begin_layout Description
27992 middle This is an example text line.
27994 \begin_inset Box Boxed
28004 height_special "totalheight"
28007 \begin_layout Plain Layout
28009 This box text is middle-aligned.
28014 This is an example text line.
28017 \begin_layout Description
28018 bottom This is an example text line.
28020 \begin_inset Box Boxed
28030 height_special "totalheight"
28033 \begin_layout Plain Layout
28035 This box text is bottom-aligned.
28040 This is an example text line.
28043 \begin_layout Description
28044 stretch This is an example text line.
28046 \begin_inset Box Boxed
28056 height_special "totalheight"
28059 \begin_layout Plain Layout
28064 \begin_layout Plain Layout
28069 \begin_layout Plain Layout
28076 This is an example text line.
28079 \begin_layout Standard
28080 To stretch the box content, it must consist of more than one paragraph.
28081 In the example above every text line is in an own paragraph.
28084 \begin_layout Standard
28085 \begin_inset VSpace bigskip
28088 To align the box content horizontally you can use LyX's paragraph dialog
28089 when you have chosen an
28092 \begin_inset space ~
28100 \begin_layout Standard
28102 \begin_inset Box Boxed
28112 height_special "totalheight"
28115 \begin_layout Plain Layout
28120 \begin_layout Plain Layout
28125 \begin_layout Plain Layout
28135 \begin_layout Standard
28136 If you have not set an
28139 \begin_inset space ~
28144 , you can align the box content horizontally in the box dialog.
28147 \begin_layout Standard
28149 \begin_inset Box Boxed
28159 height_special "totalheight"
28162 \begin_layout Plain Layout
28164 This box text is horizontally stretched.
28172 \begin_layout Subsection
28174 \begin_inset CommandInset label
28176 name "sec:Decoration"
28181 \begin_inset Index idx
28184 \begin_layout Plain Layout
28193 \begin_layout Standard
28194 The type of the box can be specified in the box dialog in the drop-down
28200 The following types are possible:
28203 \begin_layout Description
28205 \begin_inset space ~
28208 frame Nothing is drawn.
28211 \begin_layout Description
28213 \begin_inset space ~
28217 \begin_inset space ~
28220 frame This draws a rectangular frame around the box.
28221 The frame line thickness has the size of
28229 \begin_inset Box Boxed
28239 height_special "totalheight"
28242 \begin_layout Plain Layout
28252 \begin_layout Description
28254 \begin_inset space ~
28258 \begin_inset space ~
28261 thin This draws an oval frame around the box.
28262 The frame line thickness has the size 0.4
28263 \begin_inset space \thinspace{}
28268 \begin_inset Box ovalbox
28278 height_special "totalheight"
28281 \begin_layout Plain Layout
28291 \begin_layout Description
28293 \begin_inset space ~
28297 \begin_inset space ~
28300 thick This draws an oval frame around the box.
28301 The frame line thickness has the size 0.8
28302 \begin_inset space \thinspace{}
28307 \begin_inset Box Ovalbox
28317 height_special "totalheight"
28320 \begin_layout Plain Layout
28330 \begin_layout Description
28332 \begin_inset space ~
28335 shadow This draws a rectangular frame with a shadow around the box.
28336 The frame line thickness has the size of
28342 , the shadow has a width of 4
28343 \begin_inset space \thinspace{}
28348 \begin_inset Box Shadowbox
28358 height_special "totalheight"
28361 \begin_layout Plain Layout
28371 \begin_layout Description
28373 \begin_inset space ~
28376 background This draws a box with a red background.
28377 Unlike colored boxes
28381 \begin_layout Plain Layout
28383 \begin_inset space \thinspace{}
28387 \begin_inset CommandInset ref
28389 reference "sec:Colored-Boxes"
28398 , it always uses the whole column width and the box is set as its own paragraph.
28400 \begin_inset Box Shaded
28410 height_special "totalheight"
28413 \begin_layout Plain Layout
28414 Shaded background box
28422 \begin_layout Description
28424 \begin_inset space ~
28428 \begin_inset space ~
28431 frame This draws a double-line rectangular frame around the box.
28432 The line thickness of the inner frame is 0.75
28433 \begin_inset space \thinspace{}
28442 , the thickness of the outer frame is 1.5
28443 \begin_inset space \thinspace{}
28453 The distance between the lines is 1.5
28454 \begin_inset space \thinspace{}
28464 \begin_inset space \thinspace{}
28468 \begin_inset space \thinspace{}
28472 \begin_inset space \thinspace{}
28477 \begin_inset Box Doublebox
28487 height_special "totalheight"
28490 \begin_layout Plain Layout
28492 Double rectangular box
28500 \begin_layout Standard
28501 \begin_inset VSpace bigskip
28504 LyX's box label will reflect the different frame types.
28505 To be able to use all types, the LaTeX-package
28510 \begin_inset Index idx
28513 \begin_layout Plain Layout
28514 LaTeX-packages ! fancybox
28522 \begin_layout Standard
28523 \begin_inset VSpace bigskip
28526 When you use the decoration
28528 simple rectangular frame
28530 and no inner box, you can allow page breaks within a box.
28531 Note that then, unlike other framed boxes, the frame always uses the whole
28532 column width, the box is set as its own paragraph, and
28544 have no effect on this box type.
28545 The frame line thickness has the size of
28553 \begin_inset Box Framed
28563 height_special "totalheight"
28566 \begin_layout Plain Layout
28567 Allow page break box
28575 \begin_layout Section
28577 \begin_inset Index idx
28580 \begin_layout Plain Layout
28581 Boxes ! Customization
28589 \begin_layout Standard
28590 The default value for the size
28597 \begin_inset space \thinspace{}
28601 It can be changed with the following command in TeX-Code to e.
28602 \begin_inset space \thinspace{}
28606 \begin_inset space \space{}
28610 \begin_inset space \thinspace{}
28616 \begin_layout Standard
28626 \begin_layout Standard
28630 \begin_layout Plain Layout
28642 \begin_inset Box Boxed
28652 height_special "totalheight"
28655 \begin_layout Plain Layout
28657 Rectangular box with
28664 \begin_inset space \thinspace{}
28668 \begin_inset space \thinspace{}
28672 \begin_inset space \thinspace{}
28684 \begin_layout Plain Layout
28698 \begin_layout Standard
28699 \begin_inset VSpace bigskip
28702 The space between the frame and the box content is for all frame styles
28704 \begin_inset space \thinspace{}
28708 You can change it by setting the length
28715 For example the command
28718 \begin_layout Standard
28728 \begin_layout Standard
28729 sets the value to 10
28730 \begin_inset space \thinspace{}
28733 pt, as with the following box:
28736 \begin_layout Standard
28740 \begin_layout Plain Layout
28752 \begin_inset Box Boxed
28762 height_special "totalheight"
28765 \begin_layout Plain Layout
28767 Rectangular box with
28774 \begin_inset space \thinspace{}
28778 \begin_inset space \thinspace{}
28782 \begin_inset space \thinspace{}
28794 \begin_layout Plain Layout
28808 \begin_layout Standard
28809 \begin_inset VSpace bigskip
28812 The diameter of the round corners of the oval boxes can be set with the
28823 \begin_layout Standard
28831 \begin_layout Standard
28832 sets the diameter to 1
28833 \begin_inset space \thinspace{}
28840 \begin_layout Standard
28848 \begin_layout Standard
28849 sets the diameter to
28852 \begin_inset space \thinspace{}
28856 \begin_inset space \thinspace{}
28859 minimum(width and heigth of box)
28871 \begin_layout Standard
28875 \begin_layout Plain Layout
28885 \begin_inset Box Ovalbox
28895 height_special "totalheight"
28898 \begin_layout Plain Layout
28907 \begin_inset space \thinspace{}
28911 \begin_inset space \thinspace{}
28915 \begin_inset space \thinspace{}
28927 \begin_layout Plain Layout
28939 \begin_layout Standard
28940 \begin_inset VSpace bigskip
28943 The size of the shadow can be adjusted by changing the length
28951 \begin_inset space \thinspace{}
28954 pt for the following box by this command:
28957 \begin_layout Standard
28967 \begin_layout Standard
28971 \begin_layout Plain Layout
28983 \begin_inset Box Shadowbox
28993 height_special "totalheight"
28996 \begin_layout Plain Layout
29005 \begin_inset space \thinspace{}
29009 \begin_inset space \thinspace{}
29013 \begin_inset space \thinspace{}
29025 \begin_layout Plain Layout
29039 \begin_layout Standard
29040 \begin_inset VSpace bigskip
29046 \begin_layout Standard
29047 The default value for the size
29054 \begin_inset space \thinspace{}
29058 The default space between the note content and the frame is 9
29059 \begin_inset space \thinspace{}
29062 pt and can be changed with the value of
29069 For example the frame appearance of the following
29073 is set with the TeX-Code commands
29076 \begin_layout Standard
29084 \begin_inset Newline newline
29094 \begin_layout Standard
29098 \begin_layout Plain Layout
29107 \begin_layout Plain Layout
29119 \begin_inset Box Framed
29129 height_special "totalheight"
29132 \begin_layout Plain Layout
29146 \begin_layout Plain Layout
29155 \begin_layout Plain Layout
29169 \begin_layout Standard
29170 \begin_inset VSpace bigskip
29176 \begin_layout Standard
29181 boxes the default space between the box content and the box border is 3
29182 \begin_inset space \thinspace{}
29185 pt and can be changed with the value of
29192 The default background color red can either be changed locally with the
29197 definecolor{shadecolor}
29199 or globally with the menu
29201 Tools\SpecialChar \menuseparator
29202 Preferences\SpecialChar \menuseparator
29203 Colors\SpecialChar \menuseparator
29205 \begin_inset space ~
29217 command is explained in section
29218 \begin_inset space ~
29222 \begin_inset CommandInset ref
29224 reference "sec:Colored-Tables"
29232 \begin_layout Plain Layout
29239 requires the LaTeX-package
29243 in the preamble, see section
29244 \begin_inset space ~
29248 \begin_inset CommandInset ref
29250 reference "sec:Colored-Boxes"
29259 For example the appearance of the following shaded background box is set
29260 with the TeX-Code commands
29263 \begin_layout Standard
29273 \begin_inset Newline newline
29280 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29283 \begin_layout Standard
29287 \begin_layout Plain Layout
29296 \begin_layout Plain Layout
29300 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29306 \begin_inset Box Shaded
29316 height_special "totalheight"
29319 \begin_layout Plain Layout
29322 This is yellow text in a
29332 box with dark green background.
29341 \begin_layout Plain Layout
29350 \begin_layout Plain Layout
29354 definecolor{shadecolor}{rgb}{1,0,0}
29362 \begin_layout Standard
29363 \begin_inset VSpace bigskip
29366 Changed lengths and widths are valid for all boxes following the commands
29370 \begin_layout Section
29372 \begin_inset CommandInset label
29374 name "sec:Minipages"
29379 \begin_inset Index idx
29382 \begin_layout Plain Layout
29391 \begin_layout Standard
29392 Minipages are treated by LaTeX as pages within pages and can therefore for
29393 example have their own footnotes.
29396 \begin_layout Standard
29397 Minipages are useful when you write documents with different languages.
29400 \begin_layout Standard
29401 Below are two example minipages side by side.
29402 Their width is set to 45
29403 \begin_inset space \thinspace{}
29406 col% and they are separated by a horizontal fill, that was inserted via
29409 Insert\SpecialChar \menuseparator
29411 \begin_inset space ~
29414 Formatting\SpecialChar \menuseparator
29416 \begin_inset space ~
29422 \begin_inset Newpage newpage
29428 \begin_layout Standard
29429 \begin_inset Box Frameless
29439 height_special "totalheight"
29442 \begin_layout Plain Layout
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.
29455 Dies ist ein deutscher Text.
29456 Dies ist ein deutscher Text.
29457 Dies ist ein deutscher Text
29461 \begin_layout Plain Layout
29464 Dies ist eine deutsche Fußnote.
29470 Dies ist ein deutscher Text.
29471 Dies ist ein deutscher Text.
29477 \begin_inset space \hfill{}
29481 \begin_inset Box Frameless
29491 height_special "totalheight"
29494 \begin_layout Plain Layout
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.
29508 This is an English Text.
29509 This is an English Text.
29510 This is an English Text.
29514 \begin_layout Plain Layout
29515 This is an English footnote.
29520 This is an English Text.
29529 \begin_layout Standard
29530 \begin_inset VSpace bigskip
29533 The document-wide paragraph settings are ignored within minipages.
29534 That means that there will be no space between paragraphs in minipages
29535 although you set it to e.
29536 \begin_inset space \thinspace{}
29540 \begin_inset space \space{}
29547 in the document settings.
29550 \begin_layout Standard
29551 Minipages can also be used to set a background color for text parts, see
29553 \begin_inset space ~
29557 \begin_inset CommandInset ref
29559 reference "sub:Color-for-Paragraphs"
29566 \begin_layout Standard
29567 \begin_inset Note Greyedout
29570 \begin_layout Plain Layout
29575 You cannot have floats or margin notes inside minipages but minipages can
29576 be used inside tables, floats, and other boxes.
29584 \begin_layout Section
29586 \begin_inset CommandInset label
29588 name "sec:Parboxes"
29593 \begin_inset Index idx
29596 \begin_layout Plain Layout
29605 \begin_layout Standard
29606 Parboxes are very similar to minipages with the difference that they cannot
29610 \begin_layout Standard
29612 \begin_inset Box Frameless
29622 height_special "totalheight"
29625 \begin_layout Plain Layout
29626 This a text within a parbox.
29627 This a text within a parbox.
29630 \begin_layout Plain Layout
29631 This footnote won't appear:
29635 \begin_layout Plain Layout
29636 This footnote is inside a parbox and will therefore not appear.
29649 \begin_layout Section
29650 Boxes for Words and Characters
29651 \begin_inset Index idx
29654 \begin_layout Plain Layout
29655 Boxes ! for Characters
29663 \begin_layout Subsection
29664 Prevent Hyphenation
29665 \begin_inset CommandInset label
29667 name "sec:Prevent-Hyphenation"
29672 \begin_inset Index idx
29675 \begin_layout Plain Layout
29676 Boxes ! to Prevent Hyphenation
29684 \begin_layout Standard
29685 You can use the box type
29689 to prevent words or text from being hyphenated.
29690 \begin_inset Newline newline
29693 Here is an example text:
29696 \begin_layout Standard
29697 This line is an example to show how you can prevent the hyphenation of
29698 \begin_inset Quotes eld
29702 \begin_inset Quotes erd
29708 \begin_layout Standard
29709 To prevent the hyphenation of the word
29710 \begin_inset Quotes eld
29714 \begin_inset Quotes erd
29717 , put the word into a box, set the
29720 \begin_inset space ~
29730 \begin_inset space \thinspace{}
29736 \begin_layout Standard
29737 This is the result:
29740 \begin_layout Standard
29741 This line is an example to show how you can prevent the hyphenation of
29742 \begin_inset Box Frameless
29752 height_special "totalheight"
29755 \begin_layout Plain Layout
29756 \begin_inset Quotes eld
29760 \begin_inset Quotes erd
29771 \begin_layout Standard
29772 You can alternatively set the command
29773 \begin_inset Quotes eld
29783 \begin_inset Quotes grd
29786 as TeX-Code directly before the word:
29789 \begin_layout Standard
29790 This line is an example to show how you can prevent the hyphenation of
29791 \begin_inset Quotes eld
29798 \begin_layout Plain Layout
29808 \begin_inset Quotes erd
29814 \begin_layout Standard
29815 Of course the word now protrudes over the side margin.
29816 To avoid this, add via the menu
29818 Insert\SpecialChar \menuseparator
29820 \begin_inset space ~
29823 Formatting\SpecialChar \menuseparator
29825 \begin_inset space ~
29833 arg "newline-insert newline"
29836 ) a line break before the word:
29839 \begin_layout Standard
29840 This line is an example to show how you can prevent the hyphenation of
29841 \begin_inset Newline newline
29845 \begin_inset Box Frameless
29855 height_special "totalheight"
29858 \begin_layout Plain Layout
29859 \begin_inset Quotes eld
29863 \begin_inset Quotes erd
29874 \begin_layout Subsection
29876 \begin_inset CommandInset label
29878 name "sub:Vertical-Alignment"
29883 \begin_inset Index idx
29886 \begin_layout Plain Layout
29887 Boxes ! for Vertical Alignment
29893 \begin_inset Index idx
29896 \begin_layout Plain Layout
29905 \begin_layout Standard
29906 With the help of the command
29912 you can align words, characters or other boxes vertically relative to the
29920 is used with the following scheme:
29923 \begin_layout Standard
29928 raisebox{lift}[height][depth]{box content}
29931 \begin_layout Standard
29932 The lift can be a positive value to raise the box or a negative value to
29936 \begin_layout Standard
29937 To align for example the word
29938 \begin_inset Quotes eld
29942 \begin_inset Quotes erd
29945 so that the bottom of the
29946 \begin_inset Quotes eld
29950 \begin_inset Quotes erd
29954 \begin_inset Quotes eld
29958 \begin_inset Quotes erd
29961 is at the baseline, insert the command
29964 \begin_layout Standard
29974 \begin_layout Standard
29975 in TeX-Code before the word.
29976 After the word insert a closing brace
29977 \begin_inset Quotes eld
29985 \begin_inset Quotes erd
29989 \begin_inset Newline newline
29992 This is the result:
29995 \begin_layout Standard
29996 This is a text line with the word
30000 \begin_layout Plain Layout
30012 \begin_inset Quotes eld
30016 \begin_inset Quotes erd
30023 \begin_layout Plain Layout
30033 \begin_layout Standard
30034 \begin_inset VSpace bigskip
30037 When you raise or lower characters in a line, the line distance will be
30041 \begin_layout Standard
30042 This is a text line with the word
30046 \begin_layout Plain Layout
30058 \begin_inset Quotes eld
30062 \begin_inset Quotes erd
30069 \begin_layout Plain Layout
30077 \begin_inset Newline newline
30080 This is a text line with the word
30084 \begin_layout Plain Layout
30094 \begin_inset Quotes eld
30098 \begin_inset Quotes erd
30105 \begin_layout Plain Layout
30115 \begin_layout Standard
30116 If you want to prevent this for a certain reason, set the box height to
30121 \begin_layout Standard
30131 \begin_layout Standard
30132 This is a text line with the word
30136 \begin_layout Plain Layout
30148 \begin_inset Quotes eld
30152 \begin_inset Quotes erd
30159 \begin_layout Plain Layout
30167 \begin_inset Newline newline
30170 This is a text line with the word
30174 \begin_layout Plain Layout
30178 raisebox{0.5cm}[0pt]{
30184 \begin_inset Quotes eld
30188 \begin_inset Quotes erd
30195 \begin_layout Plain Layout
30205 \begin_layout Section
30207 \begin_inset CommandInset label
30209 name "sec:Colored-Boxes"
30214 \begin_inset Index idx
30217 \begin_layout Plain Layout
30226 \begin_layout Subsection
30228 \begin_inset Index idx
30231 \begin_layout Plain Layout
30240 \begin_layout Standard
30241 To color the background of text the text must be put into a so called
30242 \begin_inset Quotes eld
30246 \begin_inset Quotes erd
30250 This requires that the LaTeX-package
30255 \begin_inset Index idx
30258 \begin_layout Plain Layout
30259 LaTeX-packages ! color
30264 is loaded in the document preamble with the command
30267 \begin_layout Standard
30272 @ifundefined{textcolor}
30273 \begin_inset Newline newline
30277 \begin_inset Phantom HPhantom
30280 \begin_layout Plain Layout
30283 \begin_inset space ~
30293 usepackage{color}}{}
30296 \begin_layout Standard
30301 will be loaded automatically by LyX when you color text.
30305 \begin_layout Plain Layout
30306 To avoid it being loaded twice the command
30320 \begin_layout Standard
30321 \begin_inset VSpace medskip
30324 Colorboxes are created with the command
30331 This will be used with the following scheme:
30334 \begin_layout Standard
30339 colorbox{color}{box content}
30342 \begin_layout Standard
30343 The box content can also be a box and colorboxes can also be within other
30347 \begin_layout Standard
30348 The following colors are predefined:
30349 \begin_inset Newline newline
30388 \begin_inset Newline newline
30391 You can also define your own color as described in section
30392 \begin_inset space ~
30396 \begin_inset CommandInset ref
30398 reference "sec:Colored-Tables"
30405 \begin_layout Standard
30407 \begin_inset space \thinspace{}
30411 \begin_inset space \space{}
30414 a red background for a word, insert the command
30417 \begin_layout Standard
30425 \begin_layout Standard
30426 before the word in TeX-Code.
30427 After the word insert a closing brace
30428 \begin_inset Quotes eld
30436 \begin_inset Quotes erd
30440 \begin_inset Newline newline
30443 This is the result:
30446 \begin_layout Standard
30447 This is a line where the word
30451 \begin_layout Plain Layout
30461 \begin_inset Quotes eld
30465 \begin_inset Quotes erd
30472 \begin_layout Plain Layout
30479 has a red background.
30482 \begin_layout Standard
30483 \begin_inset VSpace bigskip
30486 If you would like the box frame in a different color, you can use the command
30493 with the following scheme:
30496 \begin_layout Standard
30501 fcolorbox{frame color}{box color}{box content}
30504 \begin_layout Standard
30518 The frame thickness and the space between the frame and the box content
30519 can be adjusted with the lengths
30531 , respectively, as described in section
30532 \begin_inset space ~
30536 \begin_inset CommandInset ref
30538 reference "sec:Decoration"
30545 \begin_layout Standard
30546 For the following example the command
30549 \begin_layout Standard
30554 fcolorbox{cyan}{magenta}{
30557 \begin_layout Standard
30561 \begin_layout Standard
30562 Here is an example where the frame line thickness was set to 1
30563 \begin_inset space \thinspace{}
30567 \begin_inset Newline newline
30574 \begin_layout Plain Layout
30589 \begin_layout Plain Layout
30593 fcolorbox{cyan}{magenta}{
30598 This is text within a colored, framed box.
30602 \begin_layout Plain Layout
30612 \begin_layout Standard
30613 \begin_inset VSpace bigskip
30616 Of course you can also have colored text inside a colorbox:
30617 \begin_inset Newline newline
30624 \begin_layout Plain Layout
30628 fcolorbox{cyan}{magenta}{
30635 This is colored text within a colored, framed box.
30641 \begin_layout Plain Layout
30652 \begin_layout Plain Layout
30666 \begin_layout Standard
30669 \begin_inset VSpace medskip
30675 \begin_layout Standard
30676 \begin_inset Note Greyedout
30679 \begin_layout Plain Layout
30684 Text in colorboxes cannot have line breaks.
30685 To color multiple text lines or paragraphs, use a box inside a colorbox
30686 as described in the following.
30694 \begin_layout Subsection
30695 Color for Paragraphs
30696 \begin_inset CommandInset label
30698 name "sub:Color-for-Paragraphs"
30703 \begin_inset Index idx
30706 \begin_layout Plain Layout
30707 Color ! for Paragraphs
30715 \begin_layout Standard
30716 To set the background color for more than one text line, put the text into
30718 Before the minipage insert the
30727 \begin_layout Standard
30735 \begin_layout Standard
30737 After the minipage insert a closing brace
30738 \begin_inset Quotes eld
30746 \begin_inset Quotes erd
30752 \begin_layout Standard
30756 \begin_layout Plain Layout
30760 colorbox{lightgrey}{
30766 \begin_inset Box Frameless
30776 height_special "totalheight"
30779 \begin_layout Plain Layout
30780 This is text with background color.
30781 This is text with background color.
30784 \begin_layout Plain Layout
30785 \begin_inset VSpace defskip
30788 The text can have footnotes
30792 \begin_layout Plain Layout
30793 Another example footnote
30798 and can include tables and figures.
30801 \begin_layout Plain Layout
30803 \begin_inset Tabular
30804 <lyxtabular version="3" rows="3" columns="3">
30805 <features tabularvalignment="middle">
30806 <column alignment="center" valignment="top" width="0">
30807 <column alignment="center" valignment="top" width="0">
30808 <column alignment="center" valignment="top" width="0">
30810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30813 \begin_layout Plain Layout
30819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30822 \begin_layout Plain Layout
30828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30831 \begin_layout Plain Layout
30839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30842 \begin_layout Plain Layout
30848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30851 \begin_layout Plain Layout
30853 \begin_inset Quotes erd
30861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30864 \begin_layout Plain Layout
30872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30875 \begin_layout Plain Layout
30881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30884 \begin_layout Plain Layout
30890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30893 \begin_layout Plain Layout
30913 \begin_layout Plain Layout
30923 \begin_layout Section
30924 Rotated and Scaled Boxes
30927 \begin_layout Standard
30928 To use the commands described in this section, the LaTeX-package
30933 \begin_inset Index idx
30936 \begin_layout Plain Layout
30937 LaTeX-packages ! graphicx
30942 needs to be loaded in the document preamble with the command
30945 \begin_layout Standard
30950 @ifundefined{rotatebox}
30951 \begin_inset Newline newline
30955 \begin_inset Phantom HPhantom
30958 \begin_layout Plain Layout
30961 \begin_inset space ~
30971 usepackage{graphicx}}{}
30974 \begin_layout Standard
30975 \begin_inset Note Greyedout
30978 \begin_layout Plain Layout
30983 Some DVI-viewers can't display rotated or scaled material.
30991 \begin_layout Standard
30992 \begin_inset Note Greyedout
30995 \begin_layout Plain Layout
31000 Floats mustn't be inside a rotated or scaled box.
31008 \begin_layout Subsection
31010 \begin_inset Index idx
31013 \begin_layout Plain Layout
31020 \begin_inset Index idx
31023 \begin_layout Plain Layout
31030 \begin_inset Index idx
31033 \begin_layout Plain Layout
31040 \begin_inset Index idx
31043 \begin_layout Plain Layout
31044 Table Customization ! Rotating
31052 \begin_layout Standard
31053 To rotate material, you can put it into a rotated box.
31054 Such a box is created using the command
31060 in TeX-Code with the following scheme:
31063 \begin_layout Standard
31068 rotatebox[rotation origin]{rotation angle}{box content}
31071 \begin_layout Standard
31072 The rotation origin is specified in the form
31077 The following positions are possible:
31097 (top), along with meaningful combinations of the four base positions.
31102 means that the rotation origin is at the top left corner of the box.
31103 When no rotation origin is specified, the position
31108 The rotation angle is a number that can be negative that specifies the
31110 The rotation direction is counterclockwise.
31113 \begin_layout Standard
31114 In the following example the command
31118 rotatebox[origin=c]{60}{
31120 was inserted as TeX-Code before the text
31121 \begin_inset Quotes eld
31125 \begin_inset Quotes erd
31128 ; after the text the box was closed by a closing brace
31135 \begin_layout Standard
31140 \begin_layout Plain Layout
31144 rotatebox[origin=c]{60}{
31153 \begin_layout Plain Layout
31163 \begin_layout Standard
31164 The box content can also be another box or an inline formula:
31167 \begin_layout Standard
31172 \begin_layout Plain Layout
31176 rotatebox[origin=r]{-60}{
31182 \begin_inset Box Doublebox
31192 height_special "totalheight"
31195 \begin_layout Plain Layout
31205 \begin_layout Plain Layout
31216 \begin_layout Plain Layout
31220 rotatebox[origin=lb]{60}{
31226 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31233 \begin_layout Plain Layout
31243 \begin_layout Standard
31244 or an image or table:
31247 \begin_layout Standard
31252 \begin_layout Plain Layout
31256 rotatebox[origin=lb]{90}{
31262 \begin_inset Graphics
31263 filename clipart/platypus.eps
31273 \begin_layout Plain Layout
31280 with a rotated image
31284 \begin_layout Plain Layout
31288 rotatebox[origin=l]{-90}{
31294 \begin_inset Tabular
31295 <lyxtabular version="3" rows="2" columns="2">
31296 <features tabularvalignment="middle">
31297 <column alignment="center" valignment="top" width="0">
31298 <column alignment="center" valignment="top" width="0">
31300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31303 \begin_layout Plain Layout
31309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31312 \begin_layout Plain Layout
31320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31323 \begin_layout Plain Layout
31329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31332 \begin_layout Plain Layout
31347 \begin_layout Plain Layout
31357 \begin_layout Subsection
31359 \begin_inset Index idx
31362 \begin_layout Plain Layout
31369 \begin_inset Index idx
31372 \begin_layout Plain Layout
31379 \begin_inset Index idx
31382 \begin_layout Plain Layout
31389 \begin_inset Index idx
31392 \begin_layout Plain Layout
31393 Table Customization ! Scaling
31401 \begin_layout Standard
31402 To scale material the commands
31414 can be used as TeX-Code.
31417 \begin_layout Standard
31424 is used with the following scheme:
31427 \begin_layout Standard
31432 scalebox{horizontal}[vertical]{box content}
31435 \begin_layout Standard
31436 Horizontal and vertical are the corresponding scaling factors.
31437 If no vertical scaling factor is given, the horizontal factor will also
31438 be used as the vertical one.
31441 \begin_layout Standard
31448 creates for example a double size
31452 \begin_layout Plain Layout
31465 \begin_layout Plain Layout
31472 , compared with the document text size.
31475 \begin_layout Standard
31480 scalebox{2}[1]{Hello}
31482 on the other hand distorts the
31486 \begin_layout Plain Layout
31499 \begin_layout Plain Layout
31509 \begin_layout Standard
31510 If the scaling factor is negative, the box content will be mirrored.
31511 Therefore the command
31515 scalebox{-1}[1]{Hello}
31517 can be used to create mirror writing:
31521 \begin_layout Plain Layout
31534 \begin_layout Plain Layout
31544 \begin_layout Standard
31549 scalebox{1}[-1]{Hello}
31555 \begin_layout Plain Layout
31568 \begin_layout Plain Layout
31578 \begin_layout Standard
31583 scalebox{-1}[1]{box content}
31585 there exists the command
31586 \begin_inset Newline newline
31593 reflectbox{box content}
31598 \begin_layout Standard
31599 \begin_inset VSpace bigskip
31608 is used to scale the box to a defined width and height.
31609 The command scheme is:
31612 \begin_layout Standard
31617 resizebox{width}{height}{box content}
31620 \begin_layout Standard
31621 If one of the two command arguments given is an exclamation mark
31625 , the size is set so that the aspect ratio of the box content is kept.
31628 \begin_layout Standard
31633 resizebox{2cm}{1cm}{Hello}
31639 \begin_layout Plain Layout
31643 resizebox{2cm}{1cm}{
31652 \begin_layout Plain Layout
31660 \begin_inset Newline newline
31667 resizebox{2cm}{!}{Hello}
31673 \begin_layout Plain Layout
31686 \begin_layout Plain Layout
31696 \begin_layout Standard
31697 \begin_inset VSpace bigskip
31701 \begin_inset Note Greyedout
31704 \begin_layout Plain Layout
31721 are set to zero, no LaTeX-errors occur when exporting the document but
31722 the exported files can not or only partly be displayed.
31730 \begin_layout Standard
31731 \begin_inset VSpace bigskip
31737 \begin_layout Standard
31738 The boxes can be combined in any order.
31740 \begin_inset space \thinspace{}
31744 \begin_inset space \space{}
31748 \begin_inset Newline newline
31755 rotatebox[origin=c]{-45}{
31759 reflectbox{Hello}}}
31760 \begin_inset Newline newline
31768 \begin_layout Standard
31773 \begin_layout Plain Layout
31777 rotatebox[origin=c]{-45}{
31790 \begin_layout Plain Layout
31800 \begin_layout Standard
31802 Images, tables, and inline formulas are allowed as box content:
31805 \begin_layout Standard
31810 \begin_layout Plain Layout
31814 rotatebox[origin=c]{-30}{
31824 \begin_inset Graphics
31825 filename clipart/platypus.eps
31835 \begin_layout Plain Layout
31846 \begin_layout Plain Layout
31850 rotatebox[origin=c]{-45}{
31860 \begin_inset Tabular
31861 <lyxtabular version="3" rows="2" columns="2">
31862 <features tabularvalignment="middle">
31863 <column alignment="center" valignment="top" width="0">
31864 <column alignment="center" valignment="top" width="0">
31866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31869 \begin_layout Plain Layout
31875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31878 \begin_layout Plain Layout
31886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31889 \begin_layout Plain Layout
31895 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31898 \begin_layout Plain Layout
31913 \begin_layout Plain Layout
31924 \begin_layout Plain Layout
31928 rotatebox[origin=c]{-45}{
31938 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31945 \begin_layout Plain Layout
31955 \begin_layout Standard
31956 When the global formula style
31960 is used in the document
31964 \begin_layout Plain Layout
31966 \begin_inset Quotes eld
31970 \begin_inset Quotes erd
31973 is added to the document class options.
31978 , display style formulas can also be scaled.
31981 \begin_layout Chapter
31982 External Document Parts
31983 \begin_inset Index idx
31986 \begin_layout Plain Layout
31987 External Document Parts
31995 \begin_layout Standard
31998 Insert\SpecialChar \menuseparator
32001 you can insert external material to your document.
32005 \begin_layout Description
32007 \begin_inset space ~
32010 Document Another LyX document; its content is directly inserted to your
32014 \begin_layout Description
32016 \begin_inset space ~
32019 Text A text document; each line is inserted in your document as a separate
32023 \begin_layout Description
32025 \begin_inset space ~
32029 \begin_inset space ~
32033 \begin_inset space ~
32036 Lines A text document; text lines are inserted in your document continuously
32037 but an empty text line creates a new paragraph.
32040 \begin_layout Description
32042 \begin_inset space ~
32045 Material Files in various formats.
32048 \begin_layout Description
32050 \begin_inset space ~
32053 Document LyX or LaTeX-documents.
32056 \begin_layout Section
32058 \begin_inset Index idx
32061 \begin_layout Plain Layout
32062 External Document Parts ! External Material
32070 \begin_layout Standard
32071 The external material feature allows you to insert files in to your document
32072 without converting them to a format that can be read by the document output
32074 LyX takes care of the necessary conversions.
32075 This is similar to images that can be inserted in various image formats
32077 When you have enabled Instant Preview in LyX's preferences under
32080 \begin_inset space ~
32084 \begin_inset space ~
32087 feel\SpecialChar \menuseparator
32090 , the external material types Dia and Xfig are directly shown in LyX.
32093 \begin_layout Standard
32094 External material can be inserted via the
32098 dialog that is accessible with the menu
32100 Insert\SpecialChar \menuseparator
32101 File\SpecialChar \menuseparator
32103 \begin_inset space ~
32109 Currently the following file types (
32116 \begin_layout Description
32117 ChessDiagram This template supports chess position diagrams made with the
32121 \begin_inset CommandInset href
32124 target "http://en.wikipedia.org/wiki/XBoard"
32133 \begin_layout Description
32134 Date This inserts the date in the form
32139 This is a date inserted as external material:
32140 \begin_inset External
32147 \begin_inset space ~
32151 \begin_inset Note Note
32154 \begin_layout Plain Layout
32155 Remove the protected space when bug 4398 is fixed!
32161 \begin_inset Newline newline
32164 The date is not shown within LyX, only in the output.
32165 There are two other methods of inserting a date: Via menu
32167 Insert\SpecialChar \menuseparator
32170 and with the LaTeX command
32177 The different methods are compared in Table
32178 \begin_inset space ~
32182 \begin_inset CommandInset ref
32184 reference "tab:Comparison-of-the"
32191 \begin_layout Description
32192 Dia This template supports diagrams created with the program
32195 \begin_inset CommandInset href
32198 target "http://en.wikipedia.org/wiki/Dia_(software)"
32207 \begin_layout Description
32208 LilyPond This template is used for music notation typeset with the program
32209 \begin_inset Newline linebreak
32215 \begin_inset CommandInset href
32218 target "http://en.wikipedia.org/wiki/LilyPond"
32227 \begin_layout Description
32228 PDFPages With this template you can insert PDF documents to your document.
32229 To insert certain or all pages of a PDF, use the
32239 LaTeX and LyX options
32241 tab according to the template description in the dialog.
32246 option is given, only the first page of the PDF will be inserted.
32249 \begin_layout Description
32250 RasterImage This can be used for bitmap images.
32251 Nearly all popular image formats are supported.
32252 The image can be treated in the
32256 dialog like the images that are usually included via the
32260 dialog as described in section
32261 \begin_inset space ~
32265 \begin_inset CommandInset ref
32267 reference "sec:Graphics-Dialog"
32272 The difference is that only raster images are allowed; that means that
32273 PDF and EPS-images are not supported.
32276 \begin_layout Description
32277 XFig This template supports images created with the program
32280 \begin_inset CommandInset href
32283 target "http://en.wikipedia.org/wiki/Xfig"
32292 \begin_layout Standard
32293 \begin_inset Float table
32299 \begin_layout Plain Layout
32300 \begin_inset Caption
32302 \begin_layout Plain Layout
32303 \begin_inset CommandInset label
32305 name "tab:Comparison-of-the"
32309 Comparison of the date input methods.
32317 \begin_layout Plain Layout
32319 \begin_inset Tabular
32320 <lyxtabular version="3" rows="4" columns="4">
32321 <features tabularvalignment="middle">
32322 <column alignment="center" valignment="top" width="0">
32323 <column alignment="center" valignment="top" width="0">
32324 <column alignment="center" valignment="top" width="0">
32325 <column alignment="center" valignment="top" width="0">
32327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32330 \begin_layout Plain Layout
32336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32339 \begin_layout Plain Layout
32342 External Material\SpecialChar \menuseparator
32348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32351 \begin_layout Plain Layout
32354 Insert\SpecialChar \menuseparator
32360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32363 \begin_layout Plain Layout
32375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32378 \begin_layout Plain Layout
32384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32387 \begin_layout Plain Layout
32393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32396 \begin_layout Plain Layout
32402 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32405 \begin_layout Plain Layout
32406 as TeX-Code inset box
32413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32416 \begin_layout Plain Layout
32422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32425 \begin_layout Plain Layout
32431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32434 \begin_layout Plain Layout
32440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32443 \begin_layout Plain Layout
32451 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32454 \begin_layout Plain Layout
32460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32463 \begin_layout Plain Layout
32469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32472 \begin_layout Plain Layout
32478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32481 \begin_layout Plain Layout
32500 \begin_layout Standard
32501 When you use the option
32513 dialog, only the path to the inserted file is shown in the output.
32514 \begin_inset Newline newline
32517 External material is displayed in LyX either as a box like this:
32518 \begin_inset Graphics
32519 filename clipart/ExternalMaterialQt4.png
32521 scaleBeforeRotation
32525 or as image, depending on the option
32531 LaTeX and LyX options
32536 \begin_layout Standard
32543 manual explains how you can define your own templates.
32546 \begin_layout Section
32548 \begin_inset CommandInset label
32550 name "sec:Child-Documents"
32555 \begin_inset Index idx
32558 \begin_layout Plain Layout
32559 External Document Parts ! Child Documents
32565 \begin_inset Index idx
32568 \begin_layout Plain Layout
32577 \begin_layout Standard
32578 Child documents are used when you have a long document consisting of several
32579 larger parts or sections.
32580 For maintenance it is often useful and sometimes even required to split
32581 the document in several files that can be revised separately.
32582 The different documents are then the so called child documents and a master
32583 document connects them to print the full document or parts of it.
32584 A child documents inherits elements of its master, for example the LaTeX
32585 preamble, the bibliography, and labels for cross-references.
32588 \begin_layout Standard
32589 To be able to work on child documents without the need to open their master,
32590 specify in the child document the master in the menu
32592 Document\SpecialChar \menuseparator
32593 Settings\SpecialChar \menuseparator
32595 \begin_inset space ~
32601 This master document will then be used in the background by LyX when you
32602 edit the child document.
32605 \begin_layout Standard
32606 Included documents are displayed in LyX as a box like this:
32607 \begin_inset Graphics
32608 filename clipart/ChildDocumentQt4.png
32610 scaleBeforeRotation
32614 To include child documents in a master document use the menu
32616 Insert\SpecialChar \menuseparator
32617 File\SpecialChar \menuseparator
32619 \begin_inset space ~
32625 A dialog pops up where you can choose between four include methods:
32628 \begin_layout Description
32629 Include You can include LyX and LaTeX-documents.
32638 dialog, the included documents will be opened in LyX in a new file tab
32639 so that you can modify them.
32640 \begin_inset Newline newline
32646 \begin_layout Standard
32647 Here is a child document inserted using
32652 \begin_inset CommandInset include
32653 LatexCommand include
32654 filename "DummyDocument1.lyx"
32661 \begin_layout Standard
32662 The section numbering includes the sections of the included files in the
32663 order they are inserted in the master document.
32664 The included example document has for example a subsection that is numbered
32665 as a subsection of this section.
32666 Labels of included documents can be referenced: Subsection
32667 \begin_inset space ~
32671 \begin_inset CommandInset ref
32673 reference "sub:External-Subsection-1"
32680 \begin_layout Standard
32681 The preamble of the child document is ignored; only the preamble of the
32682 master document is used.
32683 Branches in child documents will be ignored by the master document when
32684 the master document does not have a branch with the same name.
32685 Included documents are inserted starting on a new page and ending with
32689 \begin_layout Standard
32690 If you are only working on a certain chapter of a large document and want
32691 to save compiling time, you can put each included file into a branch.
32695 \begin_layout Plain Layout
32696 Branches are described in section
32709 By enabling/disabling branches you can decide what included files will
32710 appear in the output.
32713 \begin_layout Standard
32714 \begin_inset Note Greyedout
32717 \begin_layout Plain Layout
32722 Due to a bug in LyX the LaTeX command
32728 can currently not be used as an alternative to decide what files should
32737 \begin_layout Standard
32738 \begin_inset Note Greyedout
32741 \begin_layout Plain Layout
32746 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32747 w the document in case the child document uses another document class than
32748 the master document as this will lead to unexpected outputs.
32756 \begin_layout Description
32757 Input This method is very similar to the Include method.
32758 The differences are:
32762 \begin_layout Itemize
32763 Input files don't start with a new page and don't end with a page break.
32766 \begin_layout Itemize
32767 Input files can be previewed in LyX when
32770 \begin_inset space ~
32775 is enabled in LyX's preferences under
32778 \begin_inset space ~
32782 \begin_inset space ~
32785 feel\SpecialChar \menuseparator
32791 \begin_layout Itemize
32802 \begin_layout Standard
32803 Here is a child document inserted using
32808 \begin_inset CommandInset include
32810 filename "DummyDocument2.lyx"
32817 \begin_layout Description
32818 Verbatim With this method every text file can be included.
32819 The file is shown in the output with its source code; no command used in
32820 the text is invoked.
32821 You can use the option
32823 Mark spaces in output
32825 that displays the character
32826 \begin_inset Quotes eld
32833 \begin_layout Plain Layout
32843 \begin_inset Quotes erd
32846 for every space character in the source code.
32847 The difference from the method via the menu
32849 Insert\SpecialChar \menuseparator
32850 File\SpecialChar \menuseparator
32852 \begin_inset space ~
32857 is that the document content is not shown in LyX.
32860 \begin_layout Standard
32861 Here is a child document inserted as Verbatim:
32862 \begin_inset CommandInset include
32863 LatexCommand verbatiminput
32864 filename "DummyTextDocument.txt"
32869 \begin_inset VSpace bigskip
32872 Here is a child document inserted as Verbatim using the
32874 Mark spaces in output
32877 \begin_inset CommandInset include
32878 LatexCommand verbatiminput*
32879 filename "DummyTextDocument.txt"
32886 \begin_layout Standard
32887 \begin_inset VSpace bigskip
32893 \begin_layout Standard
32894 \begin_inset Note Greyedout
32897 \begin_layout Plain Layout
32902 As you can see in the examples above, the text of the documents included
32907 is not broken at the end of the document lines.
32915 \begin_layout Description
32916 Listings This type is described in chapter
32917 \begin_inset space ~
32921 \begin_inset CommandInset ref
32923 reference "cha:Program-Code-Listings"
32930 \begin_layout Standard
32931 \begin_inset Note Greyedout
32934 \begin_layout Plain Layout
32939 Including the same document twice in a document using different methods
32940 could cause LaTeX-problems.
32948 \begin_layout Chapter
32949 Program Code Listings
32950 \begin_inset CommandInset label
32952 name "cha:Program-Code-Listings"
32957 \begin_inset Index idx
32960 \begin_layout Plain Layout
32967 \begin_inset Index idx
32970 \begin_layout Plain Layout
32977 \begin_inset Index idx
32980 \begin_layout Plain Layout
32989 \begin_layout Standard
32990 To include and typeset program code you can use the
32994 inset that can be inserted via the menu
32996 Insert\SpecialChar \menuseparator
33005 \begin_inset Index idx
33008 \begin_layout Plain Layout
33009 LaTeX-packages ! listings
33014 provides a powerful and flexible way to insert program source code into
33018 \begin_layout Standard
33019 Right-clicking on a listings inset opens the context menu containing where
33020 you can set the listings format.
33023 \begin_layout Standard
33024 By default, a listing starts a new paragraph in the output.
33025 The placement option
33028 \begin_inset space ~
33033 prints the listing inline like this:
33034 \begin_inset listings
33035 lstparams "language={C++}"
33039 \begin_layout Plain Layout
33047 \begin_inset Newline newline
33054 creates a listings float where you can specify the placement options
33055 \begin_inset Quotes eld
33063 \begin_inset Quotes erd
33067 \begin_inset Quotes eld
33075 \begin_inset Quotes erd
33079 \begin_inset Quotes eld
33087 \begin_inset Quotes erd
33091 \begin_inset Quotes eld
33099 \begin_inset Quotes erd
33102 corresponding to the float placement options described in section
33103 \begin_inset space ~
33107 \begin_inset CommandInset ref
33109 reference "sec:Float-Placement"
33114 The placement options can be mixed and are inserted without any separation,
33116 \begin_inset space \thinspace{}
33120 \begin_inset space \space{}
33124 \begin_inset Quotes eld
33132 \begin_inset Quotes erd
33137 \begin_inset Quotes eld
33141 \begin_inset Quotes erd
33144 has sometimes no effect, but you don't need to use the
33148 option in this case as also non-float listings can have captions and be
33152 \begin_layout Standard
33153 You can add captions to listings with the menu
33155 Insert\SpecialChar \menuseparator
33159 Listings can be referenced like floats: Listing
33160 \begin_inset space ~
33164 \begin_inset CommandInset ref
33166 reference "lst:Example-Listing"
33173 \begin_layout Standard
33174 \begin_inset listings
33175 lstparams "language=Python"
33179 \begin_layout Plain Layout
33181 \begin_inset Caption
33183 \begin_layout Plain Layout
33184 \begin_inset CommandInset label
33186 name "lst:Example-Listing"
33190 Example Listing float
33195 # Example listing float
33198 \begin_layout Plain Layout
33203 \begin_layout Plain Layout
33205 'this is a python function'
33208 \begin_layout Plain Layout
33218 \begin_layout Standard
33219 When you have set a programming language in the listings dialog, the keywords
33220 of this language will be recognized and specially typeset in the output.
33221 In the example listings the Python keyword
33222 \begin_inset Quotes eld
33226 \begin_inset Quotes erd
33229 is recognized and printed bold in the output.
33232 \begin_layout Standard
33233 \begin_inset Note Greyedout
33236 \begin_layout Plain Layout
33241 If you don't get bold keywords when using typewriter fonts, your
33245 font probably doesn't provide a bold shape.
33246 In this case select a different one in the menu
33248 Document\SpecialChar \menuseparator
33249 Settings\SpecialChar \menuseparator
33261 provide bold shapes.)
33269 \begin_layout Standard
33273 \begin_inset space ~
33278 of the listings dialog you can specify the line numbering style.
33279 You can insert a number to specify which lines are numbered in the field
33286 \begin_inset space \thinspace{}
33290 \begin_inset space \space{}
33294 \begin_inset Quotes eld
33298 \begin_inset Quotes erd
33301 , only every 3rd line will be numbered.
33304 \begin_layout Standard
33305 You can furthermore specify a range of lines; only these will then appear
33309 Extended character table
33311 should be used when you use national characters like the German umlauts
33313 \begin_inset Newline newline
33316 Here is an example listing with left line numbering, step
33317 \begin_inset Quotes eld
33321 \begin_inset Quotes erd
33325 \begin_inset Quotes eld
33329 \begin_inset Quotes erd
33333 \begin_inset Quotes eld
33336 Extended character table
33337 \begin_inset Quotes erd
33341 \begin_inset Quotes eld
33345 \begin_inset space ~
33349 \begin_inset space ~
33353 \begin_inset Quotes erd
33357 \begin_inset space \thinspace{}
33361 \begin_inset space \thinspace{}
33367 \begin_layout Standard
33368 \begin_inset listings
33369 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
33373 \begin_layout Plain Layout
33378 \begin_layout Plain Layout
33380 'this is a python function'
33383 \begin_layout Plain Layout
33388 \begin_layout Plain Layout
33393 \begin_layout Plain Layout
33395 'This is a German word: Tschüß'
33398 \begin_layout Plain Layout
33403 \begin_layout Plain Layout
33408 \begin_layout Plain Layout
33410 'this is a python function'
33413 \begin_layout Plain Layout
33423 \begin_layout Standard
33424 When you have tabulators in your listing, you can specify the number of
33425 characters that are spanned by a tabulator in the field
33428 \begin_inset space ~
33436 \begin_layout Standard
33437 \begin_inset Note Greyedout
33440 \begin_layout Plain Layout
33445 Due to a bug in the
33449 package the line numbering is shifted by a line by every previous listing.
33450 That's the reason why the lines 2 and 5 are numbered in the above listing
33451 and not the lines 3 and 6.
33459 \begin_layout Standard
33460 \begin_inset VSpace bigskip
33466 \begin_layout Standard
33467 It is also possible to print lines from a file as listing.
33468 To do this, use the menu
33470 Insert\SpecialChar \menuseparator
33471 File\SpecialChar \menuseparator
33474 and choose the type
33482 \begin_layout Plain Layout
33483 The other child document types are described in section
33484 \begin_inset space ~
33488 \begin_inset CommandInset ref
33490 reference "sec:Child-Documents"
33499 In the child document dialog you can specify the listing parameters in
33501 To show a list of all available parameters, type in a question mark
33502 \begin_inset Quotes eld
33506 \begin_inset Quotes erd
33512 \begin_layout Standard
33513 To reference child document listings, write a label text into the corresponding
33514 field of the child document dialog.
33515 The label can then be referenced using the menu
33517 Insert\SpecialChar \menuseparator
33523 \begin_layout Standard
33525 \begin_inset space ~
33529 \begin_inset CommandInset ref
33531 reference "lst:file-listing"
33535 is an example for a listing of a file; there the lines 10
33536 \begin_inset space \thinspace{}
33540 \begin_inset space \thinspace{}
33543 15 of this LyX file are listed.
33546 \begin_layout Standard
33547 \begin_inset CommandInset include
33548 LatexCommand lstinputlisting
33549 filename "EmbeddedObjects.lyx"
33550 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33557 \begin_layout Standard
33558 \begin_inset VSpace bigskip
33564 \begin_layout Standard
33565 Inserting a formula into a listing can be done the following way:
33568 \begin_layout Enumerate
33569 Open the listings dialog and add
33570 \begin_inset Newline newline
33578 \begin_inset Newline newline
33581 to the field of the
33588 \begin_layout Enumerate
33589 Create a formula outside the listing
33592 \begin_layout Enumerate
33593 Copy the content of the formula (not the formula inset) to the clipboard
33603 \begin_layout Enumerate
33604 In the listing write
33605 \begin_inset Quotes eld
33613 \begin_inset Quotes erd
33616 and copy from the clipboard between the dollar-signs (shortcut
33625 \begin_layout Standard
33626 \begin_inset listings
33627 lstparams "language=Python,mathescape=true"
33631 \begin_layout Plain Layout
33633 \begin_inset Caption
33635 \begin_layout Plain Layout
33636 Example Listing float containing a formula
33641 # Example listing float
33644 \begin_layout Plain Layout
33649 \begin_layout Plain Layout
33662 \begin_layout Plain Layout
33672 \begin_layout Standard
33673 \begin_inset VSpace bigskip
33679 \begin_layout Standard
33680 Global listings settings can be set in the
33682 Document\SpecialChar \menuseparator
33683 Settings\SpecialChar \menuseparator
33687 To get there a list of available options, type in a question mark
33688 \begin_inset Quotes eld
33692 \begin_inset Quotes erd
33698 \begin_inset space ~
33706 \begin_layout Standard
33707 For more information about the
33711 package, we refer to its documentation
33712 \begin_inset CommandInset citation
33721 \begin_layout Standard
33722 \begin_inset Newpage newpage
33728 \begin_layout Chapter
33730 Units available in LyX
33731 \begin_inset Index idx
33734 \begin_layout Plain Layout
33741 \begin_inset CommandInset label
33743 name "cha:Units-available-in"
33750 \begin_layout Standard
33751 To understand the units described in this documentation, Table
33752 \begin_inset space ~
33756 \begin_inset CommandInset ref
33758 reference "tab:Units"
33762 explains all units available in LyX.
33765 \begin_layout Standard
33766 \begin_inset Float table
33772 \begin_layout Plain Layout
33773 \begin_inset Caption
33775 \begin_layout Plain Layout
33776 \begin_inset CommandInset label
33790 \begin_layout Plain Layout
33791 \begin_inset VSpace medskip
33797 \begin_layout Plain Layout
33799 \begin_inset Tabular
33800 <lyxtabular version="3" rows="20" columns="2">
33801 <features tabularvalignment="middle">
33802 <column alignment="center" valignment="top" width="0">
33803 <column alignment="center" valignment="top" width="0">
33805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33808 \begin_layout Plain Layout
33814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33817 \begin_layout Plain Layout
33825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33828 \begin_layout Plain Layout
33834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33837 \begin_layout Plain Layout
33845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33848 \begin_layout Plain Layout
33854 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33857 \begin_layout Plain Layout
33865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33868 \begin_layout Plain Layout
33874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33877 \begin_layout Plain Layout
33885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33888 \begin_layout Plain Layout
33894 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33897 \begin_layout Plain Layout
33899 \begin_inset space \thinspace{}
33903 \begin_inset space \thinspace{}
33913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33916 \begin_layout Plain Layout
33922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33925 \begin_layout Plain Layout
33927 \begin_inset space \thinspace{}
33931 \begin_inset space \thinspace{}
33941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33944 \begin_layout Plain Layout
33950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33953 \begin_layout Plain Layout
33954 scaled point (65536
33955 \begin_inset space \thinspace{}
33959 \begin_inset space \thinspace{}
33969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33972 \begin_layout Plain Layout
33978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33981 \begin_layout Plain Layout
33983 \begin_inset space \thinspace{}
33987 \begin_inset space \thinspace{}
33997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34000 \begin_layout Plain Layout
34006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34009 \begin_layout Plain Layout
34011 \begin_inset space \thinspace{}
34015 \begin_inset Formula $\approx$
34019 \begin_inset space \thinspace{}
34029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34032 \begin_layout Plain Layout
34038 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34041 \begin_layout Plain Layout
34043 \begin_inset space \thinspace{}
34047 \begin_inset space \thinspace{}
34057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34060 \begin_layout Plain Layout
34066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34069 \begin_layout Plain Layout
34070 % of original image width
34077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34080 \begin_layout Plain Layout
34086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34089 \begin_layout Plain Layout
34097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34100 \begin_layout Plain Layout
34106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34109 \begin_layout Plain Layout
34117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34120 \begin_layout Plain Layout
34126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34129 \begin_layout Plain Layout
34137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34140 \begin_layout Plain Layout
34146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34149 \begin_layout Plain Layout
34157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34160 \begin_layout Plain Layout
34166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34169 \begin_layout Plain Layout
34177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34180 \begin_layout Plain Layout
34186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34189 \begin_layout Plain Layout
34197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34200 \begin_layout Plain Layout
34206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34209 \begin_layout Plain Layout
34221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34224 \begin_layout Plain Layout
34230 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34233 \begin_layout Plain Layout
34245 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34248 \begin_layout Plain Layout
34254 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34257 \begin_layout Plain Layout
34259 \begin_inset space \thinspace{}
34263 \begin_inset space \thinspace{}
34284 \begin_layout Chapter
34285 Output File Formats with Graphics
34286 \begin_inset CommandInset label
34288 name "cha:Output-File-Formats"
34295 \begin_layout Section
34297 \begin_inset Index idx
34300 \begin_layout Plain Layout
34307 \begin_inset Index idx
34310 \begin_layout Plain Layout
34315 \begin_layout Plain Layout
34326 \begin_layout Plain Layout
34341 \begin_layout Standard
34342 This file type has the extension
34343 \begin_inset Quotes eld
34351 \begin_inset Quotes erd
34356 \begin_inset Quotes eld
34360 \begin_inset Quotes erd
34363 (DVI), because it is completely portable; you can move them from one machine
34364 to another without needing to do any sort of conversion.
34365 At the time when this file-format was developed, this was no matter of
34367 DVIs are used for quick previews and as pre-stage for other output formats,
34371 \begin_layout Standard
34372 \begin_inset Note Greyedout
34375 \begin_layout Plain Layout
34380 DVI-files do not contain images; they will only be a linked.
34385 So don't forget this, if you move your
34389 file to another computer.
34390 This property can also slow down your computer when you view the DVI, because
34391 the DVI-viewer has to convert the image in the background to make it visible
34392 when you scroll in the DVI.
34393 So it is recommended that you use PDF for files with many images.
34396 \begin_layout Standard
34397 You can export your document to DVI by using the menu
34399 File\SpecialChar \menuseparator
34400 Export\SpecialChar \menuseparator
34404 You can view your document as DVI via the
34408 menu or by using the toolbar button
34409 \begin_inset Graphics
34410 filename ../images/buffer-view_dvi.png
34412 scaleBeforeRotation
34419 \begin_layout Section
34421 \begin_inset CommandInset label
34423 name "sec:PostScript"
34428 \begin_inset Index idx
34431 \begin_layout Plain Layout
34432 File Formats ! PostScript
34438 \begin_inset Index idx
34441 \begin_layout Plain Layout
34446 \begin_layout Plain Layout
34457 \begin_layout Plain Layout
34472 \begin_layout Standard
34473 This file type has the extension
34474 \begin_inset Quotes eld
34482 \begin_inset Quotes erd
34486 PostScript was developed by the company
34490 as a printer language.
34491 The file therefore contains commands that the printer uses to print the
34493 PostScript can be seen as a
34494 \begin_inset Quotes eld
34497 programming language
34498 \begin_inset Quotes erd
34501 ; you can calculate with it and draw diagrams and images
34505 \begin_layout Plain Layout
34506 If you are interested to learn more about this, have a look at the LaTeX-package
34512 \begin_inset CommandInset citation
34524 Due to this ability, the files are often bigger than PDFs.
34527 \begin_layout Standard
34528 PostScript can only contain images in the format
34529 \begin_inset Quotes eld
34532 Encapsulated PostScript
34533 \begin_inset Quotes erd
34536 (EPS, file extension
34537 \begin_inset Quotes eld
34545 \begin_inset Quotes erd
34549 As LyX allows you to use any known image format in your document, it has
34550 to convert images in the background to EPS.
34552 \begin_inset space ~
34556 \begin_inset space ~
34559 images in your document, LyX has to do 50
34560 \begin_inset space ~
34563 conversions whenever you view or export your document.
34564 This will slow down your work flow with LyX drastically.
34565 So if you plan to use PostScript, you can insert your images directly as
34566 EPS to avoid this problem.
34569 \begin_layout Standard
34570 You can export your document to PostScript using the menu
34572 File\SpecialChar \menuseparator
34573 Export\SpecialChar \menuseparator
34577 You can view your document as PostScript via the
34581 menu or by using the toolbar button
34582 \begin_inset Graphics
34583 filename ../images/buffer-view_ps.png
34585 scaleBeforeRotation
34592 \begin_layout Section
34594 \begin_inset Index idx
34597 \begin_layout Plain Layout
34604 \begin_inset Index idx
34607 \begin_layout Plain Layout
34616 \begin_layout Standard
34617 This file type has the extension
34618 \begin_inset Quotes eld
34626 \begin_inset Quotes erd
34631 \begin_inset Quotes eld
34634 Portable Document Format
34635 \begin_inset Quotes erd
34638 (PDF) was developed by
34642 as a derivative of PostScript.
34643 It is more compressed and it uses fewer commands than PostScript.
34645 \begin_inset Quotes eld
34649 \begin_inset Quotes erd
34652 implies, it can be processed at any computer system and the printed output
34653 looks exactly the same.
34656 \begin_layout Standard
34657 PDF can contain images in its own PDF format, in the format
34658 \begin_inset Quotes eld
34661 Joint Photographic Experts Group
34662 \begin_inset Quotes erd
34665 (JPG, file extension
34666 \begin_inset Quotes eld
34674 \begin_inset Quotes erd
34678 \begin_inset Quotes eld
34686 \begin_inset Quotes erd
34689 ), and in the format
34690 \begin_inset Quotes eld
34693 Portable Network Graphics
34694 \begin_inset Quotes erd
34697 (PNG, file extension
34698 \begin_inset Quotes eld
34706 \begin_inset Quotes erd
34710 Nevertheless you can use any other image format, because LyX converts them
34711 in the background to one of these formats.
34712 But as described in the section about PostScript, the image conversion
34713 will slow down your work flow.
34714 So it is recommended that you use images in one of the three mentioned
34718 \begin_layout Standard
34719 You can export your document to PDF via the menu
34721 File\SpecialChar \menuseparator
34724 in three different ways:
34727 \begin_layout Description
34729 \begin_inset space ~
34732 (ps2pdf) This uses the program
34736 that creates a PDF from a PostScript-version of your file.
34737 The PostScript-version is produced by the program
34741 which uses a DVI-version as intermediate step.
34742 So this export variant consists of three conversions.
34745 \begin_layout Description
34747 \begin_inset space ~
34750 (dvipdfm) This uses the program
34754 that converts your file in the background to DVI and in a second step to
34758 \begin_layout Description
34760 \begin_inset space ~
34763 (pdflatex) This uses the program
34767 that converts your file directly to PDF.
34770 \begin_layout Standard
34771 It is recommended that you use
34774 \begin_inset space ~
34783 supports all features of actual PDF-versions, is quick and works stable.
34788 is not under development and therefore a bit outdated.
34791 \begin_layout Standard
34792 You can view your document as PDF via the
34796 menu or by using the toolbar button
34797 \begin_inset Graphics
34798 filename ../images/buffer-view_pdf2.png
34800 scaleBeforeRotation
34811 \begin_inset space ~
34819 \begin_layout Chapter
34820 Explanation of Equation
34821 \begin_inset space ~
34825 \begin_inset CommandInset ref
34832 \begin_inset CommandInset label
34834 name "cha:Explanation-of-Equation"
34841 \begin_layout Standard
34842 We can calculate the total width of
34847 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34853 \begin_layout Standard
34854 \begin_inset Formula \begin{equation}
34855 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
34861 \begin_inset Formula $W_{g\, n}$
34864 is the given width of all cells,
34870 is the LaTeX-length between the cell text and the cell border (its default
34872 \begin_inset space \thinspace{}
34882 is the thickness of the cell border line, the default is 0.4
34883 \begin_inset space \thinspace{}
34889 \begin_layout Standard
34891 \begin_inset space ~
34895 \begin_inset CommandInset ref
34897 reference "eq:Wtot_n"
34901 , the total width of a multicolumn
34902 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34908 \begin_layout Standard
34909 \begin_inset Formula \begin{equation}
34910 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
34918 \begin_layout Standard
34919 By setting equation
34920 \begin_inset space ~
34924 \begin_inset CommandInset ref
34926 reference "eq:Wtot_n"
34931 \begin_inset CommandInset ref
34933 reference "eq:Wtot_mult"
34937 equal we can calculate the needed given width
34938 \begin_inset Formula $W_{g\, n}$
34945 columns are spanned, so that each column has a total width of
34946 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34952 \begin_layout Standard
34953 \begin_inset Formula \begin{equation}
34954 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n
34962 \begin_layout Bibliography
34963 \labelwidthstring Bibliography
34964 \begin_inset CommandInset bibitem
34965 LatexCommand bibitem
34966 key "latexcompanion"
34970 Frank Mittelbach and Michel Goossens:
34972 The LaTeX Companion Second Edition.
34975 Addison-Wesley, 2004
34978 \begin_layout Bibliography
34979 \labelwidthstring Bibliography
34980 \begin_inset CommandInset bibitem
34981 LatexCommand bibitem
34986 Helmut Kopka and Patrick W.
34989 A Guide to LaTeX Fourth Edition.
34992 Addison-Wesley, 2003
34995 \begin_layout Bibliography
34996 \labelwidthstring Bibliography
34997 \begin_inset CommandInset bibitem
34998 LatexCommand bibitem
35005 LaTeX: A Document Preparation System.
35008 Addison-Wesley, second edition, 1994
35011 \begin_layout Bibliography
35012 \labelwidthstring Bibliography
35013 \begin_inset CommandInset bibitem
35014 LatexCommand bibitem
35019 Documentation of the LaTeX-package
35022 \begin_inset CommandInset href
35025 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
35032 \begin_inset Index idx
35035 \begin_layout Plain Layout
35036 LaTeX-packages ! booktabs
35044 \begin_layout Bibliography
35045 \labelwidthstring Bibliography
35046 \begin_inset CommandInset bibitem
35047 LatexCommand bibitem
35052 Documentation of the LaTeX-package
35055 \begin_inset CommandInset href
35058 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
35065 \begin_inset Index idx
35068 \begin_layout Plain Layout
35069 LaTeX-packages ! caption
35077 \begin_layout Bibliography
35078 \labelwidthstring Bibliography
35079 \begin_inset CommandInset bibitem
35080 LatexCommand bibitem
35085 Documentation of the LaTeX-package
35088 \begin_inset CommandInset href
35091 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
35098 \begin_inset Index idx
35101 \begin_layout Plain Layout
35102 LaTeX-packages ! endfloat
35110 \begin_layout Bibliography
35111 \labelwidthstring Bibliography
35112 \begin_inset CommandInset bibitem
35113 LatexCommand bibitem
35118 Documentation of the LaTeX-package
35121 \begin_inset CommandInset href
35124 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
35131 \begin_inset Index idx
35134 \begin_layout Plain Layout
35135 LaTeX-packages ! wrapfig
35139 \begin_layout Plain Layout
35156 \begin_layout Bibliography
35157 \labelwidthstring Bibliography
35158 \begin_inset CommandInset bibitem
35159 LatexCommand bibitem
35164 Documentation of the LaTeX-package
35167 \begin_inset CommandInset href
35170 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
35177 \begin_inset Index idx
35180 \begin_layout Plain Layout
35181 LaTeX-packages ! footmisc
35189 \begin_layout Bibliography
35190 \labelwidthstring Bibliography
35191 \begin_inset CommandInset bibitem
35192 LatexCommand bibitem
35197 Documentation of the LaTeX-package
35200 \begin_inset CommandInset href
35203 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
35210 \begin_inset Index idx
35213 \begin_layout Plain Layout
35214 LaTeX-packages ! hyperref
35222 \begin_layout Bibliography
35223 \labelwidthstring Bibliography
35224 \begin_inset CommandInset bibitem
35225 LatexCommand bibitem
35230 Documentation of the LaTeX-package
35233 \begin_inset CommandInset href
35236 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
35243 \begin_inset Index idx
35246 \begin_layout Plain Layout
35247 LaTeX-packages ! hyperref
35255 \begin_layout Bibliography
35256 \labelwidthstring Bibliography
35257 \begin_inset CommandInset bibitem
35258 LatexCommand bibitem
35263 Documentation of the LaTeX-package
35266 \begin_inset CommandInset href
35269 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
35276 \begin_inset Index idx
35279 \begin_layout Plain Layout
35280 LaTeX-packages ! KOMA-Script
35288 \begin_layout Bibliography
35289 \labelwidthstring Bibliography
35290 \begin_inset CommandInset bibitem
35291 LatexCommand bibitem
35296 Documentation of the LaTeX-package
35299 \begin_inset CommandInset href
35302 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
35309 \begin_inset Index idx
35312 \begin_layout Plain Layout
35313 LaTeX-packages ! listings
35321 \begin_layout Bibliography
35322 \labelwidthstring Bibliography
35323 \begin_inset CommandInset bibitem
35324 LatexCommand bibitem
35329 Documentation of the LaTeX-package
35332 \begin_inset CommandInset href
35335 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
35342 \begin_inset Index idx
35345 \begin_layout Plain Layout
35346 LaTeX-packages ! marginnote
35354 \begin_layout Bibliography
35355 \labelwidthstring Bibliography
35356 \begin_inset CommandInset bibitem
35357 LatexCommand bibitem
35362 Web page of the LaTeX-package
35365 \begin_inset CommandInset href
35368 target "http://tug.org/PSTricks/"
35375 \begin_inset Index idx
35378 \begin_layout Plain Layout
35379 LaTeX-packages ! PSTricks
35387 \begin_layout Bibliography
35388 \labelwidthstring Bibliography
35389 \begin_inset CommandInset bibitem
35390 LatexCommand bibitem
35395 Documentation of the LaTeX-package
35398 \begin_inset CommandInset href
35401 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
35408 \begin_inset Index idx
35411 \begin_layout Plain Layout
35412 LaTeX-packages ! sidecap
35420 \begin_layout Bibliography
35421 \labelwidthstring Bibliography
35422 \begin_inset CommandInset bibitem
35423 LatexCommand bibitem
35428 Documentation of the LaTeX-package
35431 \begin_inset CommandInset href
35434 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
35441 \begin_inset Index idx
35444 \begin_layout Plain Layout
35445 LaTeX-packages ! prettyref
35453 \begin_layout Bibliography
35454 \labelwidthstring Bibliography
35455 \begin_inset CommandInset bibitem
35456 LatexCommand bibitem
35461 Documentation of the LaTeX-package
35464 \begin_inset CommandInset href
35467 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
35474 \begin_inset Index idx
35477 \begin_layout Plain Layout
35478 LaTeX-packages ! refstyle
35486 \begin_layout Bibliography
35487 \labelwidthstring Bibliography
35488 \begin_inset CommandInset bibitem
35489 LatexCommand bibitem
35495 \begin_inset CommandInset href
35498 target "http://wiki.lyx.org/LyX/NewInLyX20"
35502 about new features in
35509 \begin_layout Standard
35510 \begin_inset CommandInset index_print
35511 LatexCommand printindex