1 #LyX 1.5.0svn 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}} % if it exists
15 \usepackage[scaled=0.92]{helvet}
18 } % end if it exists not
20 % link all cross references and URLs
22 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered, bookmarksopen, bookmarksopenlevel=1,
23 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
24 pdfpagelayout=OneColumn, pdfnewwindow=true,
25 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
26 pdfauthor={LyX Team}, pdftex,
27 pdftitle={LyX's Figure, Table, Floats, Notes, and Boxes manual},
28 pdfsubject={LyX-documentation about figures, tables, floats, notes, and boxes},
29 pdfkeywords={LyX, Tables, Figures, Floats, Boxes, Notes}]{hyperref}
31 \else % if dvi or ps is produced
33 % link all cross references and URLs in DVI output
34 \usepackage[ps2pdf, colorlinks=true,
35 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue]{hyperref}
37 \fi % end if pdflatex is used
39 % that links to image floats jumps
40 % to the beginning of the float and
42 \usepackage[figure]{hypcap}
44 % the pages of the TOC are numbered roman
45 % and a PDF-bookmark for the TOC is added
47 \let\myTOC\tableofcontents
48 \renewcommand{\tableofcontents}{%
49 \pdfbookmark[1]{Contents}{}
52 \pagenumbering{arabic}}
54 % provides caption formatting
55 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
57 % provides commands to set caption
58 % beside tables/images
61 \newcommand{\TabBesBeg}{%
63 \let\MyEndtable\endtable
64 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
66 \newcommand{\TabBesEnd}{%
68 \let\endtable\MyEndtable}
70 \newcommand{\FigBesBeg}{%
72 \let\MyEndfigure\endfigure
73 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
75 \newcommand{\FigBesEnd}{%
77 \let\endfigure\MyEndfigure}
79 % enables calculation of values,
82 % provides special table cell alignments
85 % increase the bottom float placement fraction
86 \renewcommand{\bottomfraction}{0.5}
88 % avoids that floats are placed before their
89 % corresponding section starts
90 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
92 % speed up the longtable calculation
93 \setcounter{LTchunksize}{100}
95 % used for colored tables
96 \@ifundefined{textcolor}
97 {\usepackage{color}}{}
99 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
100 \definecolor{lightgrey}{gray}{0.8}
103 \usepackage{multirow}
104 %\renewcommand{\multirowsetup}{\centering}
106 % used for book-style tables
107 \usepackage{booktabs}
109 % used to have extra space in table cells,
110 \setlength{\extrarowheight}{2pt}
112 % used for customized tables
115 {>{\centering\hspace{0pt}}m{#1}}
118 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
121 {>{\columncolor{#1}\hspace{0pt}}c}
123 \newcolumntype{V}{!{\vrule width 1.5pt}}
125 \newcolumntype{W}{!{\color{green}\vline}}
128 % To be able to enter the characters ° and · directly in LyX
129 \DeclareInputText{176}{\ifmmode^\circ\else\textdegree\fi}
130 \DeclareInputText{183}{\ifmmode\cdot\else\textperiodcentered\fi}
132 % insert additional vertical space of
133 % 1.5 mm between footnotes
135 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
137 % enable algorithm floats to be referenced
138 \newfloat{Xalgorithm}{tbp}{loa}
139 \floatname{Xalgorithm}{Algorithm}
140 \newcommand{\theHalgorithm}{\theHXalgorithm}
141 \renewenvironment{algorithm}[1][tbp]
142 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
144 % number algorithm floats within chapters
145 \numberwithin{Xalgorithm}{chapter}
147 % redefine the greyed out note
148 \renewenvironment{lyxgreyedout}
149 {\textcolor{blue}\bgroup}{\egroup}
151 % ------------------------------------
152 % used to check for needed LaTeX packages
155 % check for package arydshln
156 % used for tables with dashed lines
157 \newboolean{arydshln}
158 \IfFileExists{arydshln.sty}
159 {\usepackage{arydshln}
160 \setboolean{arydshln}{true}}
161 {\setboolean{arydshln}{false}}
163 % check for package marginnote
164 % used for margin notes
165 \newboolean{marginnote}
166 \IfFileExists{marginnote.sty}
167 {\usepackage{marginnote}
168 \let\marginpar\marginnote
169 \setboolean{marginnote}{true}}
170 {\setboolean{marginnote}{false}}
172 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
177 \font_typewriter default
178 \font_default_family default
192 \paperorientation portrait
195 \paragraph_separation skip
197 \quotes_language english
200 \paperpagestyle default
204 \tracking_changes false
205 \output_changes false
215 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
224 \begin_layout Standard
226 If you have comments or error corrections, please send them to the LyX Documenta
233 \begin_layout Standard
237 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
242 lyx-docs@lists.lyx.org
246 \begin_layout Standard
259 \begin_inset Note Note
262 \begin_layout Standard
263 original author: Uwe Stöhr
279 \begin_layout Standard
280 \begin_inset LatexCommand tableofcontents
287 \begin_layout Standard
288 \begin_inset Note Note
291 \begin_layout Standard
292 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
302 If they are not installed you can export the document anyway but the sections
303 where the packages are required won't appear in the output.
306 \begin_layout Standard
307 The latest PDF-version of this document can be found here:
311 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
319 \begin_layout Chapter
321 \begin_inset LatexCommand label
327 \begin_inset LatexCommand index
333 \begin_inset LatexCommand index
334 name "Graphics|see{Figures}"
341 \begin_layout Section
343 \begin_inset LatexCommand index
344 name "Figures ! Graphics Dialog"
349 \begin_inset LatexCommand label
350 name "sec:Graphics-Dialog"
357 \begin_layout Standard
358 To insert an image into your document, place the cursor at the text position
359 you want and click on the toolbar icon
360 \begin_inset Graphics
361 filename ../images/dialog-show-new-inset_graphics.xpm
368 Insert\SpecialChar \menuseparator
372 Then a dialog will appear to choose the file to load.
373 The image will appear in the output exactly at the position where it is
377 \begin_layout Standard
378 The graphics dialog can be called at any time by right-clicking on an image.
379 This dialog has three tabs:
382 \begin_layout Description
387 Here you can choose an image file and adjust its appearance in the output.
388 The available units for the image size are explained in appendix\InsetSpace ~
390 \begin_inset LatexCommand ref
391 reference "cha:Units-available-in"
397 You can rotate images counter-clockwise by setting a rotation angle and
399 The image will also be rotated inside LyX.
401 Images can be scaled by using
402 a percentage value or by setting the width and height explicitly.
403 If you set only the width or only the height, the other size will be determined
405 If you set both, then the image will be transformed to the given size,
406 possibly distorting it.
407 To prevent the image from distortion, use the option
409 Maintain aspect ratio
412 The image will then be scaled so that its width and height don't exceed
413 the specified dimensions.
415 Images can be opened in a program of your choice
421 The program can be set for every image format in the file format settings
422 in LyX's preferences.
425 \begin_layout Description
430 Alternatively to the usage of scaling units it is possible to set image
431 coordinates to adjust the height and width of the image in the output.
432 The coordinates can also be calculated automatically by pressing the button
444 bounding\InsetSpace ~
447 will only print the image region within the given coordinates.
448 Normally you don't need to take care about image coordinates and can ignore
452 \begin_layout Description
458 In this tab you can modify the appearance of the image within LyX and set
459 the image to be a subfigure of a figure float with an own caption.
460 Subfigures are explained in section\InsetSpace ~
462 \begin_inset LatexCommand ref
463 reference "sec:Figure-Floats"
469 LaTeX experts can also specify on this tab additional LaTeX options.
477 makes the image appear in the output only as a frame with the size of the
487 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
494 When the option is used the images will not be unzipped on export, since
495 LaTeX can handle them as they are.
497 Zipped EPS-graphics are useful to save
498 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
500 \begin_inset LatexCommand ref
501 reference "sec:PostScript"
506 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
517 zgrep %%Bounding x.eps.gz > x.eps.bb
521 The second command creates the bounding box file
522 \begin_inset Quotes eld
526 \begin_inset Quotes erd
529 that is needed by LaTeX for zipped graphics.
532 \begin_layout Standard
533 \begin_inset VSpace bigskip
539 \begin_layout Standard
540 This is an example image in EPS format
544 \begin_layout Standard
545 Image formats are explained in section\InsetSpace ~
547 \begin_inset LatexCommand ref
548 reference "sec:Image-Formats"
557 within a separate, horizontally centered paragraph:
560 \begin_layout Standard
562 \begin_inset Graphics
563 filename clipart/mobius.eps
573 \begin_layout Standard
574 This is the same image like the one above but in draft mode:
577 \begin_layout Standard
579 \begin_inset Graphics
580 filename clipart/mobius.eps
591 \begin_layout Section
593 \begin_inset LatexCommand label
594 name "sec:Figure-Floats"
599 \begin_inset LatexCommand index
600 name "Floats ! Figures"
605 \begin_inset LatexCommand index
606 name "Figures ! Floats"
613 \begin_layout Standard
614 For general explanations about floats, have a look at section\InsetSpace ~
616 \begin_inset LatexCommand ref
617 reference "sec:FloatIntroduction"
624 \begin_layout Standard
626 \begin_inset Graphics
627 filename ../images/float-insert_figure.xpm
634 Insert\SpecialChar \menuseparator
635 Float\SpecialChar \menuseparator
638 inserts a float with a caption that has the label
639 \begin_inset Quotes eld
644 \begin_inset Quotes erd
647 (# is the actual number).
648 You can insert the image above the caption, like in Figure\InsetSpace ~
650 \begin_inset LatexCommand ref
651 reference "fig:kill-plat"
655 or below the caption, like in Figure\InsetSpace ~
657 \begin_inset LatexCommand ref
658 reference "fig:escher"
663 More about the caption placement is described in section\InsetSpace ~
665 \begin_inset LatexCommand ref
666 reference "sec:Caption-Placement"
673 \begin_layout Standard
674 \begin_inset Float figure
679 \begin_layout Standard
681 \begin_inset Graphics
682 filename clipart/platypus.eps
692 \begin_layout Standard
695 \begin_layout Standard
696 \begin_inset LatexCommand label
701 A severely distorted platypus in a float.
714 \begin_layout Standard
715 \begin_inset Float figure
720 \begin_layout Standard
723 \begin_layout Standard
724 \begin_inset LatexCommand label
738 \begin_layout Standard
740 \begin_inset Graphics
741 filename clipart/escher-lsd.eps
756 \begin_layout Standard
757 \begin_inset LatexCommand index
758 name "References ! to Figures"
764 \begin_inset LatexCommand ref
765 reference "fig:kill-plat"
770 \begin_inset LatexCommand ref
771 reference "fig:escher"
775 are examples of referenced figures.
776 Figures can be referenced in the text by referencing their label.
777 To do this insert a label in the caption using the menu
779 Insert\SpecialChar \menuseparator
782 or the toolbar button
783 \begin_inset Graphics
784 filename ../images/label-insert.xpm
790 You can now refer to the label using the menu
792 Insert\SpecialChar \menuseparator
796 or the toolbar button
797 \begin_inset Graphics
798 filename ../images/dialog-show-new-inset_ref.xpm
804 It is important to use references to floats, rather than using vague references
806 \begin_inset Quotes eld
810 \begin_inset Quotes erd
813 , because as LaTeX will reposition the floats in the final document, it
815 \begin_inset Quotes eld
819 \begin_inset Quotes erd
824 Referencing is explained in detail in section\InsetSpace ~
826 \begin_inset LatexCommand ref
827 reference "sec:Referencing-Floats"
834 \begin_layout Standard
835 Normally only one image is inserted to a figure float, but sometimes you
836 might want to use two images with separate subcaptions.
837 This can be set in the tab
842 of the graphics dialog.
843 Choose there the option
847 and enter the subcaption for the image in the caption field.
848 Note that only the main caption of the float is added to the List of Figures.
851 erencing subfigures is explained in section\InsetSpace ~
853 \begin_inset LatexCommand ref
854 reference "sub:Referencing-Subfigures"
861 \begin_layout Standard
864 \begin_inset LatexCommand ref
865 reference "fig:Two-distorted-images"
869 is an example of a figure float with two images set side by side.
870 You can also set the images one below the other.
873 \begin_layout Standard
874 \begin_inset Float figure
879 \begin_layout Standard
883 \begin_inset Graphics
884 filename clipart/escher-lsd.eps
887 subcaptionText "Undefinable structure"
894 \begin_inset Graphics
895 filename clipart/platypus.eps
899 subcaptionText "\label{fig:Platypus} Platypus"
908 \begin_layout Standard
911 \begin_layout Standard
912 \begin_inset LatexCommand label
913 name "fig:Two-distorted-images"
917 Two distorted images.
930 \begin_layout Section
932 \begin_inset LatexCommand label
933 name "sec:Image-Formats"
938 \begin_inset LatexCommand index
944 \begin_inset LatexCommand index
945 name "Figures ! Image Formats"
952 \begin_layout Standard
953 You can insert images in any known file format.
954 But as explained in appendix\InsetSpace ~
956 \begin_inset LatexCommand ref
957 reference "cha:Output-File-Formats"
961 , every output document format allows only a few image formats.
962 LyX uses therefore the program
966 in the background to convert the images to the right format.
967 To increase your work flow by avoiding these conversions in the background,
968 you can use only the image formats that can directly be embedded in the
970 The output file formats are explained in appendix\InsetSpace ~
972 \begin_inset LatexCommand ref
973 reference "cha:Output-File-Formats"
980 \begin_layout Standard
981 Similar to fonts there are two types of image formats:
984 \begin_layout Description
986 images consist of pixel values, often in a compressed form.
987 They are therefore not fully scalable and look pixeled in large zooms.
988 Well-known bitmap image formats are
989 \begin_inset Quotes eld
992 Graphics Interchange Format
993 \begin_inset Quotes erd
997 \begin_inset Quotes eld
1005 \begin_inset Quotes erd
1009 \begin_inset LatexCommand index
1010 name "GIF|see{Image formats}"
1015 \begin_inset Quotes eld
1018 Portable Network Graphics
1019 \begin_inset Quotes erd
1022 (PNG, file extension
1023 \begin_inset Quotes eld
1031 \begin_inset Quotes erd
1035 \begin_inset LatexCommand index
1036 name "PNG|see{Image formats}"
1041 \begin_inset Quotes eld
1044 Joint Photographic Experts Group
1045 \begin_inset Quotes erd
1048 (JPG, file extension
1049 \begin_inset Quotes eld
1057 \begin_inset Quotes erd
1061 \begin_inset Quotes eld
1069 \begin_inset Quotes erd
1073 \begin_inset LatexCommand index
1074 name "JPG|see{Image formats}"
1081 \begin_layout Description
1083 images consist of vectors and can therefore be scaled to any size
1085 The scaling ability is necessary if you want to create presentations, because
1086 presentations are always scaled by the video projector.
1087 Scaling is also useful for online documents to let the user zoom into diagrams.
1090 ell-known scalable image formats are
1091 \begin_inset Quotes eld
1094 Scalable Vector Graphics
1095 \begin_inset Quotes erd
1098 (SVG, file extension
1099 \begin_inset Quotes eld
1107 \begin_inset Quotes erd
1111 \begin_inset LatexCommand index
1112 name "SVG|see{Image formats}"
1117 \begin_inset Quotes eld
1120 Encapsulated PostScript
1121 \begin_inset Quotes erd
1124 (EPS, file extension
1125 \begin_inset Quotes eld
1133 \begin_inset Quotes erd
1137 \begin_inset LatexCommand index
1138 name "EPS|see{Image formats}"
1143 \begin_inset Quotes eld
1146 Portable Document Format
1147 \begin_inset Quotes erd
1150 (PDF, file extension
1151 \begin_inset Quotes eld
1159 \begin_inset Quotes erd
1163 \begin_inset LatexCommand index
1169 \begin_inset Quotes eld
1173 \begin_inset Quotes erd
1176 (WMF, file extension
1177 \begin_inset Quotes eld
1185 \begin_inset Quotes erd
1189 \begin_inset LatexCommand index
1190 name "SVG|see{Image formats}"
1196 \begin_inset Quotes eld
1200 \begin_inset Quotes erd
1203 , because you can convert any bitmap image to a PDF or EPS-image and the
1204 result will still be a bitmap image.
1205 In this cases only a header with the image properties is added to the original
1210 \begin_layout Standard
1211 In the case of PDF, the original image is additionally compressed.
1217 The PDF-files generated by
1221 are for example bitmap images.
1224 \begin_layout Standard
1225 Normally it is not possible to convert a bitmap image into a scalable one,
1227 Only the image formats PDF and EPS can directly be embedded to PDF and
1228 PostScript output files, respectively.
1229 SVG and WMF-images are currently recalculated to bitmaps when the output
1230 file is generated because there is currently no adequate WMF/SVG
1231 \begin_inset Formula $\to$
1234 PDF/EPS converter available.
1237 \begin_layout Chapter
1239 \begin_inset LatexCommand label
1245 \begin_inset LatexCommand index
1253 \begin_layout Section
1255 \begin_inset LatexCommand index
1256 name "Table ! Introduction"
1263 \begin_layout Standard
1264 You can insert a table using either the toolbar button
1265 \begin_inset Graphics
1266 filename ../images/tabular-insert.xpm
1273 Insert\SpecialChar \menuseparator
1277 The toolbar button offers you a graphical selection: Move the mouse to
1278 set the column/row number of the table that should be created and then
1279 press a mouse button.
1280 When you use the menu to create a table, a dialog will appear, asking you
1281 for the number of rows and columns.
1283 The default table has lines around any
1284 cell and the first row appears separated from the rest of the table.
1285 This separation occurs due to a double line: The cells of the first row
1286 have a line below them and the cells of the second row have a line above
1288 Here is an example table:
1291 \begin_layout Standard
1293 \begin_inset Tabular
1294 <lyxtabular version="3" rows="4" columns="4">
1296 <column alignment="center" valignment="top" leftline="true" width="0">
1297 <column alignment="center" valignment="top" leftline="true" width="0">
1298 <column alignment="center" valignment="top" leftline="true" width="0">
1299 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1300 <row topline="true" bottomline="true">
1301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1304 \begin_layout Standard
1310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1313 \begin_layout Standard
1328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1331 \begin_layout Standard
1337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1340 \begin_layout Standard
1347 <row topline="true">
1348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1351 \begin_layout Standard
1366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1369 \begin_layout Standard
1375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1378 \begin_layout Standard
1384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1387 \begin_layout Standard
1394 <row topline="true">
1395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1398 \begin_layout Standard
1413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1416 \begin_layout Standard
1422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1425 \begin_layout Standard
1431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1434 \begin_layout Standard
1441 <row topline="true" bottomline="true">
1442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1445 \begin_layout Standard
1460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1463 \begin_layout Standard
1469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1472 \begin_layout Standard
1478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1481 \begin_layout Standard
1495 \begin_layout Section
1497 \begin_inset LatexCommand index
1498 name "Table ! Dialog"
1505 \begin_layout Standard
1506 You can alter a table by clicking on it with the right mouse button, which
1507 brings up the table dialog.
1508 Here you can adjust the settings of that cell and row/column respectively
1509 where the cursor is currently placed.
1510 Most of the dialog options also work on selections.
1511 This means if you select more cells, columns or rows, the action is done
1512 for the whole selection.
1513 Note that there is a difference between selecting the
1517 of the cell, and the cell itself.
1518 You can alter tables with the following tabs of the table dialog:
1521 \begin_layout Description
1527 Here you can set the horizontal alignment and the width of the current
1529 When you have set a width you can also adjust the vertical alignment of
1531 A given width will allow the cell to have line breaks and multiple paragraphs
1532 of text, see section\InsetSpace ~
1534 \begin_inset LatexCommand ref
1535 reference "sub:Multiple-Lines-in"
1540 If you set no width, the column is as wide as their widest cell content
1543 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1544 cell, see section\InsetSpace ~
1546 \begin_inset LatexCommand ref
1547 reference "sub:Multicolumns"
1553 The rotate check boxes rotates the current cell, a selection, or the whole
1554 table counter-clockwise by 90°.
1555 The rotation is not shown within LyX, only in the output.
1558 \begin_inset Note Greyedout
1561 \begin_layout Standard
1566 Not all DVI-viewers are able to display rotations.
1573 It is also possible to enter a LaTeX-argument which is needed for special
1574 table formattings, see section\InsetSpace ~
1576 \begin_inset LatexCommand ref
1577 reference "sub:Multicolumn-Calculations"
1582 \begin_inset LatexCommand ref
1583 reference "sec:Colored-Tables"
1590 \begin_layout Description
1595 In this tab you can add and delete border lines for the current row/column.
1602 will convert the table to a formal table as described in section\InsetSpace ~
1604 \begin_inset LatexCommand ref
1605 reference "sec:Formal-Tables"
1611 You can also add here space to table rows as decribed in section\InsetSpace ~
1613 \begin_inset LatexCommand ref
1614 reference "sub:Row-Spacing"
1621 \begin_layout Description
1626 This tab is to make a table a so called
1627 \begin_inset Quotes eld
1635 \begin_inset Quotes erd
1638 that can run over several pages.
1639 Section\InsetSpace ~
1641 \begin_inset LatexCommand ref
1642 reference "sec:Longtables"
1647 \begin_inset LatexCommand ref
1648 reference "sec:Special-Longtable-Issues"
1652 describe the longtable features in detail.
1655 \begin_layout Standard
1656 When the table toolbar is opened, you can move the cursor with the arrow
1657 keys from cell to cell and the property of the current cell will immediately
1658 be displayed in the dialog.
1661 \begin_layout Section
1663 \begin_inset LatexCommand index
1664 name "Table ! Toolbar"
1671 \begin_layout Standard
1672 The table toolbar is an alternative to the table dialog to be able to alter
1674 It should normally appear at the bottom of LyX's main window when the cursor
1676 You can alternatively switch it on to appear always, by right-clicking
1677 in LyX's main menu bar.
1680 \begin_layout Standard
1681 The toolbar has the following icons:
1684 \begin_layout Labeling
1685 \labelwidthstring 00.00.0000
1686 \begin_inset Graphics
1687 filename ../images/tabular-feature_append-row.xpm
1691 adds a row below the current cell or selection
1694 \begin_layout Labeling
1695 \labelwidthstring 00.00.0000
1696 \begin_inset Graphics
1697 filename ../images/tabular-feature_append-column.xpm
1701 adds a column right beside the current cell or selection
1704 \begin_layout Labeling
1705 \labelwidthstring 00.00.0000
1706 \begin_inset Graphics
1707 filename ../images/tabular-feature_delete-row.xpm
1711 deletes the current row or selection
1714 \begin_layout Labeling
1715 \labelwidthstring 00.00.0000
1716 \begin_inset Graphics
1717 filename ../images/tabular-feature_delete-column.xpm
1721 deletes the current column or selection
1724 \begin_layout Labeling
1725 \labelwidthstring 00.00.0000
1726 \begin_inset Graphics
1727 filename ../images/tabular-feature_toggle-line-top.xpm
1731 adds a line at the top of the current cell / row or of a selection
1734 \begin_layout Labeling
1735 \labelwidthstring 00.00.0000
1736 \begin_inset Graphics
1737 filename ../images/tabular-feature_toggle-line-bottom.xpm
1741 adds a line at the bottom of the current cell / row or of a selection
1744 \begin_layout Labeling
1745 \labelwidthstring 00.00.0000
1746 \begin_inset Graphics
1747 filename ../images/tabular-feature_toggle-line-left.xpm
1751 adds a line at the left side of the current cell / row or of a selection
1754 \begin_layout Labeling
1755 \labelwidthstring 00.00.0000
1756 \begin_inset Graphics
1757 filename ../images/tabular-feature_toggle-line-right.xpm
1761 adds a line at the right side of the current cell / row or of a selection
1764 \begin_layout Labeling
1765 \labelwidthstring 00.00.0000
1766 \begin_inset Graphics
1767 filename ../images/tabular-feature_set-all-lines.xpm
1771 adds lines around the current or selected cells - if the current cell no
1772 multicolumn this also affects the current row and column
1775 \begin_layout Labeling
1776 \labelwidthstring 00.00.0000
1777 \begin_inset Graphics
1778 filename ../images/tabular-feature_unset-all-lines.xpm
1782 deletes all lines of the current or selected cells - if the current cell
1783 no multicolumn this also affects the current row and column
1786 \begin_layout Labeling
1787 \labelwidthstring 00.00.0000
1788 \begin_inset Graphics
1789 filename ../images/tabular-feature_align-left.xpm
1793 left-aligns the content of the current cell / column
1796 \begin_layout Labeling
1797 \labelwidthstring 00.00.0000
1798 \begin_inset Graphics
1799 filename ../images/tabular-feature_align-center.xpm
1803 centers the content of the current cell / column horizontally
1806 \begin_layout Labeling
1807 \labelwidthstring 00.00.0000
1808 \begin_inset Graphics
1809 filename ../images/tabular-feature_align-right.xpm
1813 right-aligns the content of the current cell / column
1816 \begin_layout Labeling
1817 \labelwidthstring 00.00.0000
1818 \begin_inset Graphics
1819 filename ../images/tabular-feature_valign-top.xpm
1823 aligns the content of the current cell vertically to the top
1826 \begin_layout Labeling
1827 \labelwidthstring 00.00.0000
1828 \begin_inset Graphics
1829 filename ../images/tabular-feature_valign-middle.xpm
1833 centers the content of the current cell vertically
1836 \begin_layout Labeling
1837 \labelwidthstring 00.00.0000
1838 \begin_inset Graphics
1839 filename ../images/tabular-feature_valign-bottom.xpm
1843 aligns the content of the current cell vertically to the bottom
1846 \begin_layout Labeling
1847 \labelwidthstring 00.00.0000
1848 \begin_inset Graphics
1849 filename ../images/tabular-feature_set-rotate-cell.xpm
1853 rotates the current cell or selection counter-clockwise by 90°
1856 \begin_layout Labeling
1857 \labelwidthstring 00.00.0000
1858 \begin_inset Graphics
1859 filename ../images/tabular-feature_set-rotate-tabular.xpm
1863 rotates the whole table counter-clockwise by 90°
1866 \begin_layout Labeling
1867 \labelwidthstring 00.00.0000
1868 \begin_inset Graphics
1869 filename ../images/tabular-feature_multicolumn.xpm
1873 sets the current cell or selection as a multicolumn
1876 \begin_layout Standard
1877 \begin_inset Note Greyedout
1880 \begin_layout Standard
1885 For the output the vertical alignment of the first cell in a row is used
1886 for all following cells in the row.
1894 \begin_layout Section
1896 \begin_inset LatexCommand index
1897 name "Table ! Edit Menu"
1904 \begin_layout Standard
1905 Additionally to the table dialog and toolbar, the menu
1907 Edit\SpecialChar \menuseparator
1910 allows you to add and delete border lines for the current row/column and
1911 to set the current selection as multicolumn.
1912 The menu is only available when the cursor is inside a table.
1915 \begin_layout Section
1917 \begin_inset LatexCommand label
1918 name "sec:Table-Floats"
1923 \begin_inset LatexCommand index
1924 name "Floats ! Tables"
1929 \begin_inset LatexCommand index
1930 name "Table ! Floats"
1937 \begin_layout Standard
1938 For general explanations about floats, have a look at section\InsetSpace ~
1940 \begin_inset LatexCommand ref
1941 reference "sec:FloatIntroduction"
1948 \begin_layout Standard
1949 \begin_inset Float table
1955 \begin_layout Standard
1956 \begin_inset Caption
1958 \begin_layout Standard
1959 \begin_inset LatexCommand label
1960 name "tab:a table float"
1972 \begin_layout Standard
1974 \begin_inset Tabular
1975 <lyxtabular version="3" rows="3" columns="3">
1977 <column alignment="center" valignment="top" leftline="true" width="0pt">
1978 <column alignment="center" valignment="top" leftline="true" width="0pt">
1979 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
1980 <row topline="true" bottomline="true">
1981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1984 \begin_layout Standard
1999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2002 \begin_layout Standard
2017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2020 \begin_layout Standard
2036 <row topline="true">
2037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2040 \begin_layout Standard
2055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2058 \begin_layout Standard
2073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2076 \begin_layout Standard
2092 <row topline="true" bottomline="true">
2093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2096 \begin_layout Standard
2106 \begin_inset Formula $\int x^{2}dx$
2114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2117 \begin_layout Standard
2127 \begin_inset Formula $\left[\begin{array}{cc}
2129 c & d\end{array}\right]$
2137 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2140 \begin_layout Standard
2150 \begin_inset Formula $1+1=2$
2171 \begin_layout Standard
2172 Table floats can be inserted using the menu
2174 Insert\SpecialChar \menuseparator
2175 Float\SpecialChar \menuseparator
2178 or the toolbar button
2179 \begin_inset Graphics
2180 filename ../images/float-insert_table.xpm
2188 \begin_layout Standard
2189 The float appears as a collapsible box with a caption that has the label
2191 \begin_inset Quotes eld
2196 \begin_inset Quotes erd
2199 (# is the actual table number).
2200 You can insert tables to the float above or below the caption.
2203 \begin_layout Standard
2206 \begin_inset LatexCommand ref
2207 reference "tab:a table float"
2211 is an example table within a table float.
2214 \begin_layout Standard
2215 Having the caption above the table is the common rule that is unfortunately
2216 not supported in LaTeX's standard classes.
2217 That means if you are using the document classes
2233 there will be no space between the caption and the table.
2234 To insert the needed space, add the following option to the load command
2235 of the LaTeX-package
2240 \begin_inset LatexCommand index
2241 name "LaTeX-packages ! caption"
2245 in your document preamble
2249 \begin_layout Standard
2250 For more information have a look at section\InsetSpace ~
2252 \begin_inset LatexCommand ref
2253 reference "sec:Caption-Placement"
2265 \begin_layout Standard
2271 \begin_layout Standard
2276 , which is described in section\InsetSpace ~
2278 \begin_inset LatexCommand ref
2279 reference "sec:Caption-Formatting"
2283 , is used to adjust the caption format.
2286 \begin_layout Standard
2287 \begin_inset LatexCommand index
2288 name "References ! to Tables"
2292 Tables can be cross-referenced in the text by referencing their label.
2293 To do this insert a label in the caption using the menu
2295 Insert\SpecialChar \menuseparator
2298 or the toolbar button
2299 \begin_inset Graphics
2300 filename ../images/label-insert.xpm
2306 You can now refer to the label using the menu
2308 Insert\SpecialChar \menuseparator
2312 or the toolbar button
2313 \begin_inset Graphics
2314 filename ../images/dialog-show-new-inset_ref.xpm
2321 Referencing is explained in detail in section\InsetSpace ~
2323 \begin_inset LatexCommand ref
2324 reference "sec:Referencing-Floats"
2331 \begin_layout Section
2333 \begin_inset LatexCommand label
2334 name "sec:Longtables"
2339 \begin_inset LatexCommand index
2345 \begin_inset LatexCommand index
2346 name "Table ! Longtables"
2353 \begin_layout Standard
2354 If the table is too long to fit on one page, you can use the option
2364 of the table dialog to split the table automatically over more pages.
2365 Doing this enables some check boxes and you can now define:
2368 \begin_layout Description
2373 : The current row and all rows above, that don't have any special options
2374 defined, are defined to be the header rows of all pages of the longtable;
2375 except for the first page, if
2381 This therefore called the main header.
2384 \begin_layout Description
2390 : The current row and all rows above, that don't have any special options
2391 defined, are defined to be the header rows of the first page of the longtable.
2394 \begin_layout Description
2399 : The current row and all rows below, that don't have any special options
2400 defined, are defined to be the footer rows of all pages of the longtable;
2401 except for the last page, if
2409 \begin_layout Description
2415 : The current row and all rows below, that don't have any special options
2416 defined, are defined to be the footer rows of the last page of the longtable.
2419 \begin_layout Standard
2420 You can also specify a row where the table is splitted.
2421 If you set more than one option in the same table row, you should be aware
2422 of the fact that only the first one is used in the given table row.
2423 The others will then be defined as
2428 In this context, first means first in this order:
2435 header, Footer, Last\InsetSpace ~
2439 See the following longtable to see how it works:
2442 \begin_layout Standard
2444 \begin_inset Tabular
2445 <lyxtabular version="3" rows="69" columns="3">
2446 <features islongtable="true">
2447 <column alignment="left" valignment="top" leftline="true" width="0cm">
2448 <column alignment="left" valignment="top" width="0pt">
2449 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2450 <row topline="true" bottomline="true" endfirsthead="true">
2451 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2454 \begin_layout Standard
2457 Example Phone List (ignore the names)
2462 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2465 \begin_layout Standard
2471 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2474 \begin_layout Standard
2481 <row topline="true" bottomline="true" endfirsthead="true">
2482 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2485 \begin_layout Standard
2493 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2496 \begin_layout Standard
2502 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2505 \begin_layout Standard
2514 <row topline="true" bottomline="true" endhead="true">
2515 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2518 \begin_layout Standard
2526 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2529 \begin_layout Standard
2535 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2538 \begin_layout Standard
2545 <row topline="true" bottomline="true" endhead="true">
2546 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2549 \begin_layout Standard
2557 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2560 \begin_layout Standard
2566 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2569 \begin_layout Standard
2578 <row topline="true" bottomline="true" endfoot="true">
2579 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2582 \begin_layout Standard
2583 continued on next page
2588 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2591 \begin_layout Standard
2597 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2600 \begin_layout Standard
2608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2611 \begin_layout Standard
2619 <cell alignment="center" valignment="top" topline="true" usebox="none">
2622 \begin_layout Standard
2628 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2631 \begin_layout Standard
2639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2642 \begin_layout Standard
2650 <cell alignment="center" valignment="top" topline="true" usebox="none">
2653 \begin_layout Standard
2659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2662 \begin_layout Standard
2670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2673 \begin_layout Standard
2681 <cell alignment="center" valignment="top" topline="true" usebox="none">
2684 \begin_layout Standard
2690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2693 \begin_layout Standard
2701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2704 \begin_layout Standard
2712 <cell alignment="center" valignment="top" topline="true" usebox="none">
2715 \begin_layout Standard
2721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2724 \begin_layout Standard
2732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2735 \begin_layout Standard
2743 <cell alignment="center" valignment="top" topline="true" usebox="none">
2746 \begin_layout Standard
2752 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2755 \begin_layout Standard
2763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2766 \begin_layout Standard
2774 <cell alignment="center" valignment="top" topline="true" usebox="none">
2777 \begin_layout Standard
2783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2786 \begin_layout Standard
2794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2797 \begin_layout Standard
2805 <cell alignment="center" valignment="top" topline="true" usebox="none">
2808 \begin_layout Standard
2814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2817 \begin_layout Standard
2825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2828 \begin_layout Standard
2836 <cell alignment="center" valignment="top" topline="true" usebox="none">
2839 \begin_layout Standard
2845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2848 \begin_layout Standard
2856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2859 \begin_layout Standard
2867 <cell alignment="center" valignment="top" topline="true" usebox="none">
2870 \begin_layout Standard
2876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2879 \begin_layout Standard
2887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2890 \begin_layout Standard
2898 <cell alignment="center" valignment="top" topline="true" usebox="none">
2901 \begin_layout Standard
2907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2910 \begin_layout Standard
2918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2921 \begin_layout Standard
2929 <cell alignment="center" valignment="top" topline="true" usebox="none">
2932 \begin_layout Standard
2938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2941 \begin_layout Standard
2949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2952 \begin_layout Standard
2960 <cell alignment="center" valignment="top" topline="true" usebox="none">
2963 \begin_layout Standard
2969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2972 \begin_layout Standard
2980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2983 \begin_layout Standard
2991 <cell alignment="center" valignment="top" topline="true" usebox="none">
2994 \begin_layout Standard
3000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3003 \begin_layout Standard
3011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3014 \begin_layout Standard
3022 <cell alignment="center" valignment="top" topline="true" usebox="none">
3025 \begin_layout Standard
3031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3034 \begin_layout Standard
3042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3045 \begin_layout Standard
3053 <cell alignment="center" valignment="top" topline="true" usebox="none">
3056 \begin_layout Standard
3062 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3065 \begin_layout Standard
3073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3076 \begin_layout Standard
3084 <cell alignment="center" valignment="top" topline="true" usebox="none">
3087 \begin_layout Standard
3093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3096 \begin_layout Standard
3104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3107 \begin_layout Standard
3115 <cell alignment="center" valignment="top" topline="true" usebox="none">
3118 \begin_layout Standard
3124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3127 \begin_layout Standard
3135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3138 \begin_layout Standard
3146 <cell alignment="center" valignment="top" topline="true" usebox="none">
3149 \begin_layout Standard
3155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3158 \begin_layout Standard
3166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3169 \begin_layout Standard
3177 <cell alignment="center" valignment="top" topline="true" usebox="none">
3180 \begin_layout Standard
3186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3189 \begin_layout Standard
3197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3200 \begin_layout Standard
3208 <cell alignment="center" valignment="top" topline="true" usebox="none">
3211 \begin_layout Standard
3217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3220 \begin_layout Standard
3228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3231 \begin_layout Standard
3239 <cell alignment="center" valignment="top" topline="true" usebox="none">
3242 \begin_layout Standard
3248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3251 \begin_layout Standard
3259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3262 \begin_layout Standard
3270 <cell alignment="center" valignment="top" topline="true" usebox="none">
3273 \begin_layout Standard
3279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3282 \begin_layout Standard
3290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3293 \begin_layout Standard
3301 <cell alignment="center" valignment="top" topline="true" usebox="none">
3304 \begin_layout Standard
3310 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3313 \begin_layout Standard
3321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3324 \begin_layout Standard
3332 <cell alignment="center" valignment="top" topline="true" usebox="none">
3335 \begin_layout Standard
3341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3344 \begin_layout Standard
3352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3355 \begin_layout Standard
3363 <cell alignment="center" valignment="top" topline="true" usebox="none">
3366 \begin_layout Standard
3372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3375 \begin_layout Standard
3383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3386 \begin_layout Standard
3394 <cell alignment="center" valignment="top" topline="true" usebox="none">
3397 \begin_layout Standard
3403 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3406 \begin_layout Standard
3414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3417 \begin_layout Standard
3425 <cell alignment="center" valignment="top" topline="true" usebox="none">
3428 \begin_layout Standard
3434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3437 \begin_layout Standard
3445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3448 \begin_layout Standard
3456 <cell alignment="center" valignment="top" topline="true" usebox="none">
3459 \begin_layout Standard
3465 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3468 \begin_layout Standard
3476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3479 \begin_layout Standard
3487 <cell alignment="center" valignment="top" topline="true" usebox="none">
3490 \begin_layout Standard
3496 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3499 \begin_layout Standard
3507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3510 \begin_layout Standard
3518 <cell alignment="center" valignment="top" topline="true" usebox="none">
3521 \begin_layout Standard
3527 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3530 \begin_layout Standard
3537 <row bottomline="true">
3538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3541 \begin_layout Standard
3549 <cell alignment="center" valignment="top" topline="true" usebox="none">
3552 \begin_layout Standard
3558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3561 \begin_layout Standard
3568 <row bottomline="true">
3569 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3572 \begin_layout Standard
3578 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3581 \begin_layout Standard
3587 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3590 \begin_layout Standard
3598 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3601 \begin_layout Standard
3609 <cell alignment="center" valignment="top" topline="true" usebox="none">
3612 \begin_layout Standard
3618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3621 \begin_layout Standard
3629 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3632 \begin_layout Standard
3640 <cell alignment="center" valignment="top" topline="true" usebox="none">
3643 \begin_layout Standard
3649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3652 \begin_layout Standard
3660 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3663 \begin_layout Standard
3671 <cell alignment="center" valignment="top" topline="true" usebox="none">
3674 \begin_layout Standard
3680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3683 \begin_layout Standard
3691 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3694 \begin_layout Standard
3702 <cell alignment="center" valignment="top" topline="true" usebox="none">
3705 \begin_layout Standard
3711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3714 \begin_layout Standard
3722 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3725 \begin_layout Standard
3733 <cell alignment="center" valignment="top" topline="true" usebox="none">
3736 \begin_layout Standard
3742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3745 \begin_layout Standard
3753 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3756 \begin_layout Standard
3764 <cell alignment="center" valignment="top" topline="true" usebox="none">
3767 \begin_layout Standard
3773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3776 \begin_layout Standard
3784 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3787 \begin_layout Standard
3795 <cell alignment="center" valignment="top" topline="true" usebox="none">
3798 \begin_layout Standard
3804 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3807 \begin_layout Standard
3815 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3818 \begin_layout Standard
3826 <cell alignment="center" valignment="top" topline="true" usebox="none">
3829 \begin_layout Standard
3835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3838 \begin_layout Standard
3846 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3849 \begin_layout Standard
3857 <cell alignment="center" valignment="top" topline="true" usebox="none">
3860 \begin_layout Standard
3866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3869 \begin_layout Standard
3877 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3880 \begin_layout Standard
3888 <cell alignment="center" valignment="top" topline="true" usebox="none">
3891 \begin_layout Standard
3897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3900 \begin_layout Standard
3908 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3911 \begin_layout Standard
3919 <cell alignment="center" valignment="top" topline="true" usebox="none">
3922 \begin_layout Standard
3928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3931 \begin_layout Standard
3939 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3942 \begin_layout Standard
3950 <cell alignment="center" valignment="top" topline="true" usebox="none">
3953 \begin_layout Standard
3959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3962 \begin_layout Standard
3970 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3973 \begin_layout Standard
3981 <cell alignment="center" valignment="top" topline="true" usebox="none">
3984 \begin_layout Standard
3990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3993 \begin_layout Standard
4001 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4004 \begin_layout Standard
4012 <cell alignment="center" valignment="top" topline="true" usebox="none">
4015 \begin_layout Standard
4021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4024 \begin_layout Standard
4032 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4035 \begin_layout Standard
4043 <cell alignment="center" valignment="top" topline="true" usebox="none">
4046 \begin_layout Standard
4052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4055 \begin_layout Standard
4063 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4066 \begin_layout Standard
4074 <cell alignment="center" valignment="top" topline="true" usebox="none">
4077 \begin_layout Standard
4083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4086 \begin_layout Standard
4094 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4097 \begin_layout Standard
4105 <cell alignment="center" valignment="top" topline="true" usebox="none">
4108 \begin_layout Standard
4114 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4117 \begin_layout Standard
4125 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4128 \begin_layout Standard
4136 <cell alignment="center" valignment="top" topline="true" usebox="none">
4139 \begin_layout Standard
4145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4148 \begin_layout Standard
4156 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4159 \begin_layout Standard
4167 <cell alignment="center" valignment="top" topline="true" usebox="none">
4170 \begin_layout Standard
4176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4179 \begin_layout Standard
4187 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4190 \begin_layout Standard
4198 <cell alignment="center" valignment="top" topline="true" usebox="none">
4201 \begin_layout Standard
4207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4210 \begin_layout Standard
4218 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4221 \begin_layout Standard
4229 <cell alignment="center" valignment="top" topline="true" usebox="none">
4232 \begin_layout Standard
4238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4241 \begin_layout Standard
4249 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4252 \begin_layout Standard
4260 <cell alignment="center" valignment="top" topline="true" usebox="none">
4263 \begin_layout Standard
4269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4272 \begin_layout Standard
4280 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4283 \begin_layout Standard
4291 <cell alignment="center" valignment="top" topline="true" usebox="none">
4294 \begin_layout Standard
4300 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4303 \begin_layout Standard
4311 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4314 \begin_layout Standard
4322 <cell alignment="center" valignment="top" topline="true" usebox="none">
4325 \begin_layout Standard
4331 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4334 \begin_layout Standard
4342 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4345 \begin_layout Standard
4353 <cell alignment="center" valignment="top" topline="true" usebox="none">
4356 \begin_layout Standard
4362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4365 \begin_layout Standard
4373 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4376 \begin_layout Standard
4384 <cell alignment="center" valignment="top" topline="true" usebox="none">
4387 \begin_layout Standard
4393 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4396 \begin_layout Standard
4404 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4407 \begin_layout Standard
4415 <cell alignment="center" valignment="top" topline="true" usebox="none">
4418 \begin_layout Standard
4424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4427 \begin_layout Standard
4435 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4438 \begin_layout Standard
4446 <cell alignment="center" valignment="top" topline="true" usebox="none">
4449 \begin_layout Standard
4455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4458 \begin_layout Standard
4466 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4469 \begin_layout Standard
4477 <cell alignment="center" valignment="top" topline="true" usebox="none">
4480 \begin_layout Standard
4486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4489 \begin_layout Standard
4497 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4500 \begin_layout Standard
4508 <cell alignment="center" valignment="top" topline="true" usebox="none">
4511 \begin_layout Standard
4517 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4520 \begin_layout Standard
4527 <row bottomline="true">
4528 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4531 \begin_layout Standard
4539 <cell alignment="center" valignment="top" topline="true" usebox="none">
4542 \begin_layout Standard
4548 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4551 \begin_layout Standard
4558 <row bottomline="true" endlastfoot="true">
4559 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4562 \begin_layout Standard
4568 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4571 \begin_layout Standard
4577 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4580 \begin_layout Standard
4595 \begin_layout Standard
4599 addtocounter{table}{-1}
4605 \begin_inset Note Note
4608 \begin_layout Standard
4609 See greyed-out note in section 2.6.2 for an explanation of this command.
4617 \begin_layout Subsection
4618 Footnotes in Longtables
4619 \begin_inset LatexCommand label
4620 name "sub:Footnotes-in-Longtables"
4625 \begin_inset LatexCommand index
4626 name "Longtables ! Footnotes"
4633 \begin_layout Standard
4634 Footnotes can be inserted to every longtable cell.
4635 They appear at the bottom of the page where the table cell with the footnote
4639 \begin_inset LatexCommand ref
4640 reference "tab:DiffCaptions"
4644 has for example a footnote.
4647 \begin_layout Subsection
4649 \begin_inset LatexCommand index
4650 name "Longtables ! Captions"
4657 \begin_layout Standard
4658 A longtable cannot be put into a table float because floats can only be
4659 on one page but the caption environment of floats can also be used for
4663 \begin_layout Standard
4664 As LyX does not yet fully support captions in longtables, a hack is needed
4668 \begin_layout Enumerate
4674 \begin_layout Enumerate
4675 Mark the first row and disable its upper line.
4678 \begin_layout Enumerate
4679 Insert a caption via the menu
4681 Insert\SpecialChar \menuseparator
4684 into the first table cell.
4686 You can also add a short title for the caption.
4689 \begin_layout Enumerate
4691 \begin_inset Quotes eld
4703 \begin_inset Quotes erd
4706 as ERT behind the caption.
4709 \begin_layout Standard
4710 A short title that will appear in the LOT instead of the full title.
4719 behind the caption omits the vertical lines between the following cells
4721 The first table row is now only a dummy row for the caption, the actual
4722 table starts with the second row.
4725 \begin_layout Standard
4726 Here is a short longtable to see how it works:
4729 \begin_layout Standard
4730 \begin_inset Tabular
4731 <lyxtabular version="3" rows="6" columns="5">
4732 <features islongtable="true">
4733 <column alignment="center" valignment="top" leftline="true" width="0">
4734 <column alignment="center" valignment="top" leftline="true" width="0">
4735 <column alignment="center" valignment="top" leftline="true" width="0">
4736 <column alignment="center" valignment="top" leftline="true" width="0">
4737 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4742 \begin_layout Standard
4743 \begin_inset Caption
4745 \begin_layout Standard
4746 Longtable with caption
4750 \begin_layout Standard
4765 \begin_layout Standard
4781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4784 \begin_layout Standard
4790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4793 \begin_layout Standard
4799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4802 \begin_layout Standard
4808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4811 \begin_layout Standard
4818 <row topline="true">
4819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4822 \begin_layout Standard
4828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4831 \begin_layout Standard
4837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4840 \begin_layout Standard
4846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4849 \begin_layout Standard
4855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4858 \begin_layout Standard
4865 <row topline="true">
4866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4869 \begin_layout Standard
4875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4878 \begin_layout Standard
4884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4887 \begin_layout Standard
4893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4896 \begin_layout Standard
4902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4905 \begin_layout Standard
4912 <row topline="true">
4913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4916 \begin_layout Standard
4922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4925 \begin_layout Standard
4931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4934 \begin_layout Standard
4940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4943 \begin_layout Standard
4949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4952 \begin_layout Standard
4959 <row topline="true">
4960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4963 \begin_layout Standard
4969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4972 \begin_layout Standard
4978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4981 \begin_layout Standard
4987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4990 \begin_layout Standard
4996 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4999 \begin_layout Standard
5006 <row topline="true" bottomline="true">
5007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5010 \begin_layout Standard
5016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5019 \begin_layout Standard
5025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5028 \begin_layout Standard
5034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5037 \begin_layout Standard
5043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5046 \begin_layout Standard
5060 \begin_layout Standard
5061 \begin_inset VSpace medskip
5065 \begin_inset Note Greyedout
5068 \begin_layout Standard
5073 The table number is increased for every longtable, also if you didn't set
5075 For this reason you could have the case that e.g.
5077 2.4 follows on Table\InsetSpace ~
5078 2.1 in the list of tables if there are two longtables
5080 To avoid this you can add the following command in ERT behind every longtable
5084 \begin_layout Standard
5089 addtocounter{table}{-1}
5097 \begin_layout Standard
5098 \begin_inset Note Greyedout
5101 \begin_layout Standard
5106 If you are using the LaTeX-package
5111 \begin_inset LatexCommand index
5112 name "LaTeX-packages ! hyperref"
5116 to link cross-references, the link to a longtable caption will always point
5117 to the beginning of the document.
5125 \begin_layout Subsubsection
5126 References to Longtables
5127 \begin_inset LatexCommand index
5128 name "Longtables ! References"
5135 \begin_layout Standard
5136 \begin_inset Tabular
5137 <lyxtabular version="3" rows="6" columns="5">
5138 <features islongtable="true">
5139 <column alignment="center" valignment="top" leftline="true" width="0">
5140 <column alignment="center" valignment="top" leftline="true" width="0">
5141 <column alignment="center" valignment="top" leftline="true" width="0">
5142 <column alignment="center" valignment="top" leftline="true" width="0">
5143 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5148 \begin_layout Standard
5149 \begin_inset Caption
5151 \begin_layout Standard
5152 Referenced longtable
5153 \begin_inset LatexCommand label
5154 name "tab:RefExample"
5167 \begin_layout Standard
5183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5186 \begin_layout Standard
5192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5195 \begin_layout Standard
5201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5204 \begin_layout Standard
5210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5213 \begin_layout Standard
5220 <row topline="true">
5221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5224 \begin_layout Standard
5230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5233 \begin_layout Standard
5239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5242 \begin_layout Standard
5248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5251 \begin_layout Standard
5257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5260 \begin_layout Standard
5267 <row topline="true">
5268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5271 \begin_layout Standard
5277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5280 \begin_layout Standard
5286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5289 \begin_layout Standard
5295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5298 \begin_layout Standard
5304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5307 \begin_layout Standard
5314 <row topline="true">
5315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5318 \begin_layout Standard
5324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5327 \begin_layout Standard
5333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5336 \begin_layout Standard
5342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5345 \begin_layout Standard
5351 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5354 \begin_layout Standard
5361 <row topline="true">
5362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5365 \begin_layout Standard
5371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5374 \begin_layout Standard
5380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5383 \begin_layout Standard
5389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5392 \begin_layout Standard
5398 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5401 \begin_layout Standard
5408 <row topline="true" bottomline="true">
5409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5412 \begin_layout Standard
5418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5421 \begin_layout Standard
5427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5430 \begin_layout Standard
5436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5439 \begin_layout Standard
5445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5448 \begin_layout Standard
5462 \begin_layout Standard
5463 To reference a longtable, insert a label into the caption.
5464 Note that you have to add the label prefix
5465 \begin_inset Quotes eld
5473 \begin_inset Quotes eld
5476 manually in the label field.
5479 \begin_layout Standard
5480 This is a reference to Table\InsetSpace ~
5482 \begin_inset LatexCommand ref
5483 reference "tab:RefExample"
5490 \begin_layout Standard
5491 The caption layout can be set together with all other caption of your document
5492 using the LaTeX-package
5497 \begin_inset LatexCommand index
5498 name "LaTeX-packages ! caption"
5502 , see section\InsetSpace ~
5504 \begin_inset LatexCommand ref
5505 reference "sec:Caption-Formatting"
5512 \begin_layout Subsubsection
5514 \begin_inset LatexCommand index
5515 name "Longtables ! Caption Width"
5522 \begin_layout Standard
5523 The maximal width of of caption lines is defined by the length
5530 Its default value is 4\InsetSpace \thinspace{}
5532 To change it add the following command to your document preamble or as
5533 ERT into your document before the longtable that should be affected
5536 \begin_layout Standard
5546 \begin_layout Standard
5547 where the width could have one of the units listed in appendix\InsetSpace ~
5549 \begin_inset LatexCommand ref
5550 reference "cha:Units-available-in"
5557 \begin_layout Standard
5558 The following tables show the difference:
5561 \begin_layout Standard
5562 \begin_inset Tabular
5563 <lyxtabular version="3" rows="6" columns="5">
5564 <features islongtable="true">
5565 <column alignment="center" valignment="top" leftline="true" width="0">
5566 <column alignment="center" valignment="top" leftline="true" width="0">
5567 <column alignment="center" valignment="top" leftline="true" width="0">
5568 <column alignment="center" valignment="top" leftline="true" width="0">
5569 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5574 \begin_layout Standard
5575 \begin_inset Caption
5577 \begin_layout Standard
5578 long full title with default width long full title with default width long
5579 full title with default width
5583 \begin_layout Standard
5584 caption with default width
5598 \begin_layout Standard
5614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5617 \begin_layout Standard
5623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5626 \begin_layout Standard
5632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5635 \begin_layout Standard
5641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5644 \begin_layout Standard
5651 <row topline="true">
5652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5655 \begin_layout Standard
5661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5664 \begin_layout Standard
5670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5673 \begin_layout Standard
5679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5682 \begin_layout Standard
5688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5691 \begin_layout Standard
5698 <row topline="true">
5699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5702 \begin_layout Standard
5708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5711 \begin_layout Standard
5717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5720 \begin_layout Standard
5726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5729 \begin_layout Standard
5735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5738 \begin_layout Standard
5745 <row topline="true">
5746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5749 \begin_layout Standard
5755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5758 \begin_layout Standard
5764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5767 \begin_layout Standard
5773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5776 \begin_layout Standard
5782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5785 \begin_layout Standard
5792 <row topline="true">
5793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5796 \begin_layout Standard
5802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5805 \begin_layout Standard
5811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5814 \begin_layout Standard
5820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5823 \begin_layout Standard
5829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5832 \begin_layout Standard
5839 <row topline="true" bottomline="true">
5840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5843 \begin_layout Standard
5849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5852 \begin_layout Standard
5858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5861 \begin_layout Standard
5867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5870 \begin_layout Standard
5876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5879 \begin_layout Standard
5893 \begin_layout Standard
5897 \begin_layout Standard
5909 \begin_inset Tabular
5910 <lyxtabular version="3" rows="6" columns="5">
5911 <features islongtable="true">
5912 <column alignment="center" valignment="top" leftline="true" width="0">
5913 <column alignment="center" valignment="top" leftline="true" width="0">
5914 <column alignment="center" valignment="top" leftline="true" width="0">
5915 <column alignment="center" valignment="top" leftline="true" width="0">
5916 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5921 \begin_layout Standard
5922 \begin_inset Caption
5924 \begin_layout Standard
5925 long full title with width set to 5\InsetSpace \thinspace{}
5926 cm long full title with width set to
5927 5\InsetSpace \thinspace{}
5928 cm long full title with width set to 5\InsetSpace \thinspace{}
5933 \begin_layout Standard
5934 caption with width\InsetSpace \thinspace{}
5935 =\InsetSpace \thinspace{}
5936 5\InsetSpace \thinspace{}
5951 \begin_layout Standard
5967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5970 \begin_layout Standard
5976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5979 \begin_layout Standard
5985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5988 \begin_layout Standard
5994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5997 \begin_layout Standard
6004 <row topline="true">
6005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6008 \begin_layout Standard
6014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6017 \begin_layout Standard
6023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6026 \begin_layout Standard
6032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6035 \begin_layout Standard
6041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6044 \begin_layout Standard
6051 <row topline="true">
6052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6055 \begin_layout Standard
6061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6064 \begin_layout Standard
6070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6073 \begin_layout Standard
6079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6082 \begin_layout Standard
6088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6091 \begin_layout Standard
6098 <row topline="true">
6099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6102 \begin_layout Standard
6108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6111 \begin_layout Standard
6117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6120 \begin_layout Standard
6126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6129 \begin_layout Standard
6135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6138 \begin_layout Standard
6145 <row topline="true">
6146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6149 \begin_layout Standard
6155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6158 \begin_layout Standard
6164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6167 \begin_layout Standard
6173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6176 \begin_layout Standard
6182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6185 \begin_layout Standard
6192 <row topline="true" bottomline="true">
6193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6196 \begin_layout Standard
6202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6205 \begin_layout Standard
6211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6214 \begin_layout Standard
6220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6223 \begin_layout Standard
6229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6232 \begin_layout Standard
6246 \begin_layout Standard
6250 \begin_layout Standard
6264 \begin_layout Standard
6265 \begin_inset Note Greyedout
6268 \begin_layout Standard
6273 When the LaTeX-package
6278 \begin_inset LatexCommand index
6279 name "LaTeX-packages ! caption"
6283 is used, as in this document, the full page width is used for the caption
6284 when you use the default value of 4\InsetSpace \thinspace{}
6292 To get in this case exactly a 4\InsetSpace \thinspace{}
6293 in wide caption, you can either use a value
6294 slightly different from 4.0\InsetSpace \thinspace{}
6296 3.99\InsetSpace \thinspace{}
6297 in, or the LaTeX-command
6301 captionsetup{width=value}
6303 that is provided by the
6315 \begin_layout Subsubsection
6316 Different Captions for Table Pages
6317 \begin_inset LatexCommand index
6318 name "Longtables ! Different Captions for Pages"
6325 \begin_layout Standard
6326 When the other captions should differ from the one of the first table page,
6327 insert a caption with a non-empty short title in a dummy caption row marked
6329 The caption used for the other table pages is inserted as caption without
6330 a short title in a dummy caption row that is marked as main header.
6331 When this caption shouldn't include the table number, use the command
6334 \begin_layout Standard
6339 caption*{caption text}
6342 \begin_layout Standard
6343 instead of LyX's caption box.
6344 The label to reference the table is inserted into the caption of the first
6348 \begin_inset LatexCommand ref
6349 reference "tab:DiffCaptions"
6353 is an example for a longtable with different heading where the second caption
6354 doesn't include the table number.
6357 \begin_layout Standard
6359 \begin_inset Tabular
6360 <lyxtabular version="3" rows="60" columns="3">
6361 <features islongtable="true">
6362 <column alignment="left" valignment="top" leftline="true" width="0cm">
6363 <column alignment="left" valignment="top" rightline="true" width="0pt">
6364 <column alignment="right" valignment="top" rightline="true" width="0pt">
6365 <row endfirsthead="true">
6366 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6369 \begin_layout Standard
6370 \begin_inset Caption
6372 \begin_layout Standard
6374 \begin_inset LatexCommand label
6375 name "tab:DiffCaptions"
6383 \begin_layout Standard
6398 \begin_layout Standard
6414 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6417 \begin_layout Standard
6423 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6426 \begin_layout Standard
6433 <row topline="true" bottomline="true" endfirsthead="true">
6434 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6437 \begin_layout Standard
6440 Example Phone List (ignore the names)
6445 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6448 \begin_layout Standard
6454 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6457 \begin_layout Standard
6464 <row topline="true" bottomline="true" endfirsthead="true">
6465 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6468 \begin_layout Standard
6476 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6479 \begin_layout Standard
6485 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6488 \begin_layout Standard
6497 <row bottomline="true" endhead="true">
6498 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6501 \begin_layout Standard
6505 \begin_layout Standard
6509 caption*{Continued Example Phone List}
6523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6526 \begin_layout Standard
6532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6535 \begin_layout Standard
6542 <row topline="true" bottomline="true" endhead="true">
6543 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6546 \begin_layout Standard
6554 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6557 \begin_layout Standard
6563 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6566 \begin_layout Standard
6573 <row topline="true" bottomline="true" endhead="true">
6574 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6577 \begin_layout Standard
6585 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6588 \begin_layout Standard
6594 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6597 \begin_layout Standard
6606 <row topline="true" bottomline="true" endfoot="true">
6607 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6610 \begin_layout Standard
6611 continued on next page
6616 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6619 \begin_layout Standard
6625 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6628 \begin_layout Standard
6636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6639 \begin_layout Standard
6647 <cell alignment="center" valignment="top" topline="true" usebox="none">
6650 \begin_layout Standard
6656 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6659 \begin_layout Standard
6667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6670 \begin_layout Standard
6678 <cell alignment="center" valignment="top" topline="true" usebox="none">
6681 \begin_layout Standard
6687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6690 \begin_layout Standard
6698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6701 \begin_layout Standard
6709 <cell alignment="center" valignment="top" topline="true" usebox="none">
6712 \begin_layout Standard
6718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6721 \begin_layout Standard
6729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6732 \begin_layout Standard
6740 <cell alignment="center" valignment="top" topline="true" usebox="none">
6743 \begin_layout Standard
6749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6752 \begin_layout Standard
6760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6763 \begin_layout Standard
6771 <cell alignment="center" valignment="top" topline="true" usebox="none">
6774 \begin_layout Standard
6780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6783 \begin_layout Standard
6791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6794 \begin_layout Standard
6802 <cell alignment="center" valignment="top" topline="true" usebox="none">
6805 \begin_layout Standard
6811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6814 \begin_layout Standard
6822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6825 \begin_layout Standard
6833 <cell alignment="center" valignment="top" topline="true" usebox="none">
6836 \begin_layout Standard
6842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6845 \begin_layout Standard
6853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6856 \begin_layout Standard
6864 <cell alignment="center" valignment="top" topline="true" usebox="none">
6867 \begin_layout Standard
6873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6876 \begin_layout Standard
6884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6887 \begin_layout Standard
6895 <cell alignment="center" valignment="top" topline="true" usebox="none">
6898 \begin_layout Standard
6904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6907 \begin_layout Standard
6915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6918 \begin_layout Standard
6926 <cell alignment="center" valignment="top" topline="true" usebox="none">
6929 \begin_layout Standard
6935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6938 \begin_layout Standard
6946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6949 \begin_layout Standard
6957 <cell alignment="center" valignment="top" topline="true" usebox="none">
6960 \begin_layout Standard
6966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6969 \begin_layout Standard
6977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6980 \begin_layout Standard
6988 <cell alignment="center" valignment="top" topline="true" usebox="none">
6991 \begin_layout Standard
6997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7000 \begin_layout Standard
7008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7011 \begin_layout Standard
7019 <cell alignment="center" valignment="top" topline="true" usebox="none">
7022 \begin_layout Standard
7028 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7031 \begin_layout Standard
7039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7042 \begin_layout Standard
7050 <cell alignment="center" valignment="top" topline="true" usebox="none">
7053 \begin_layout Standard
7059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7062 \begin_layout Standard
7070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7073 \begin_layout Standard
7082 \begin_layout Standard
7093 <cell alignment="center" valignment="top" topline="true" usebox="none">
7096 \begin_layout Standard
7102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7105 \begin_layout Standard
7113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7116 \begin_layout Standard
7124 <cell alignment="center" valignment="top" topline="true" usebox="none">
7127 \begin_layout Standard
7133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7136 \begin_layout Standard
7144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7147 \begin_layout Standard
7155 <cell alignment="center" valignment="top" topline="true" usebox="none">
7158 \begin_layout Standard
7164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7167 \begin_layout Standard
7175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7178 \begin_layout Standard
7186 <cell alignment="center" valignment="top" topline="true" usebox="none">
7189 \begin_layout Standard
7195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7198 \begin_layout Standard
7206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7209 \begin_layout Standard
7217 <cell alignment="center" valignment="top" topline="true" usebox="none">
7220 \begin_layout Standard
7226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7229 \begin_layout Standard
7237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7240 \begin_layout Standard
7248 <cell alignment="center" valignment="top" topline="true" usebox="none">
7251 \begin_layout Standard
7257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7260 \begin_layout Standard
7268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7271 \begin_layout Standard
7279 <cell alignment="center" valignment="top" topline="true" usebox="none">
7282 \begin_layout Standard
7288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7291 \begin_layout Standard
7299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7302 \begin_layout Standard
7310 <cell alignment="center" valignment="top" topline="true" usebox="none">
7313 \begin_layout Standard
7319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7322 \begin_layout Standard
7330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7333 \begin_layout Standard
7341 <cell alignment="center" valignment="top" topline="true" usebox="none">
7344 \begin_layout Standard
7350 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7353 \begin_layout Standard
7361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7364 \begin_layout Standard
7372 <cell alignment="center" valignment="top" topline="true" usebox="none">
7375 \begin_layout Standard
7381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7384 \begin_layout Standard
7392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7395 \begin_layout Standard
7403 <cell alignment="center" valignment="top" topline="true" usebox="none">
7406 \begin_layout Standard
7412 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7415 \begin_layout Standard
7423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7426 \begin_layout Standard
7434 <cell alignment="center" valignment="top" topline="true" usebox="none">
7437 \begin_layout Standard
7443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7446 \begin_layout Standard
7454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7457 \begin_layout Standard
7465 <cell alignment="center" valignment="top" topline="true" usebox="none">
7468 \begin_layout Standard
7474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7477 \begin_layout Standard
7485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7488 \begin_layout Standard
7496 <cell alignment="center" valignment="top" topline="true" usebox="none">
7499 \begin_layout Standard
7505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7508 \begin_layout Standard
7516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7519 \begin_layout Standard
7527 <cell alignment="center" valignment="top" topline="true" usebox="none">
7530 \begin_layout Standard
7536 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7539 \begin_layout Standard
7547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7550 \begin_layout Standard
7558 <cell alignment="center" valignment="top" topline="true" usebox="none">
7561 \begin_layout Standard
7567 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7570 \begin_layout Standard
7577 <row bottomline="true">
7578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7581 \begin_layout Standard
7589 <cell alignment="center" valignment="top" topline="true" usebox="none">
7592 \begin_layout Standard
7598 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7601 \begin_layout Standard
7608 <row bottomline="true">
7609 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7612 \begin_layout Standard
7618 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7621 \begin_layout Standard
7627 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7630 \begin_layout Standard
7638 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7641 \begin_layout Standard
7649 <cell alignment="center" valignment="top" topline="true" usebox="none">
7652 \begin_layout Standard
7658 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7661 \begin_layout Standard
7669 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7672 \begin_layout Standard
7680 <cell alignment="center" valignment="top" topline="true" usebox="none">
7683 \begin_layout Standard
7689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7692 \begin_layout Standard
7700 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7703 \begin_layout Standard
7711 <cell alignment="center" valignment="top" topline="true" usebox="none">
7714 \begin_layout Standard
7720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7723 \begin_layout Standard
7731 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7734 \begin_layout Standard
7742 <cell alignment="center" valignment="top" topline="true" usebox="none">
7745 \begin_layout Standard
7751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7754 \begin_layout Standard
7762 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7765 \begin_layout Standard
7773 <cell alignment="center" valignment="top" topline="true" usebox="none">
7776 \begin_layout Standard
7782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7785 \begin_layout Standard
7793 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7796 \begin_layout Standard
7804 <cell alignment="center" valignment="top" topline="true" usebox="none">
7807 \begin_layout Standard
7813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7816 \begin_layout Standard
7824 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7827 \begin_layout Standard
7835 <cell alignment="center" valignment="top" topline="true" usebox="none">
7838 \begin_layout Standard
7844 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7847 \begin_layout Standard
7855 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7858 \begin_layout Standard
7866 <cell alignment="center" valignment="top" topline="true" usebox="none">
7869 \begin_layout Standard
7875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7878 \begin_layout Standard
7886 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7889 \begin_layout Standard
7897 <cell alignment="center" valignment="top" topline="true" usebox="none">
7900 \begin_layout Standard
7906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7909 \begin_layout Standard
7917 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7920 \begin_layout Standard
7928 <cell alignment="center" valignment="top" topline="true" usebox="none">
7931 \begin_layout Standard
7937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7940 \begin_layout Standard
7948 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7951 \begin_layout Standard
7959 <cell alignment="center" valignment="top" topline="true" usebox="none">
7962 \begin_layout Standard
7968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7971 \begin_layout Standard
7979 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7982 \begin_layout Standard
7990 <cell alignment="center" valignment="top" topline="true" usebox="none">
7993 \begin_layout Standard
7999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8002 \begin_layout Standard
8010 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8013 \begin_layout Standard
8021 <cell alignment="center" valignment="top" topline="true" usebox="none">
8024 \begin_layout Standard
8030 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8033 \begin_layout Standard
8041 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8044 \begin_layout Standard
8052 <cell alignment="center" valignment="top" topline="true" usebox="none">
8055 \begin_layout Standard
8061 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8064 \begin_layout Standard
8072 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8075 \begin_layout Standard
8083 <cell alignment="center" valignment="top" topline="true" usebox="none">
8086 \begin_layout Standard
8092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8095 \begin_layout Standard
8103 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8106 \begin_layout Standard
8114 <cell alignment="center" valignment="top" topline="true" usebox="none">
8117 \begin_layout Standard
8123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8126 \begin_layout Standard
8134 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8137 \begin_layout Standard
8145 <cell alignment="center" valignment="top" topline="true" usebox="none">
8148 \begin_layout Standard
8154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8157 \begin_layout Standard
8165 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8168 \begin_layout Standard
8176 <cell alignment="center" valignment="top" topline="true" usebox="none">
8179 \begin_layout Standard
8185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8188 \begin_layout Standard
8196 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8199 \begin_layout Standard
8207 <cell alignment="center" valignment="top" topline="true" usebox="none">
8210 \begin_layout Standard
8216 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8219 \begin_layout Standard
8226 <row bottomline="true">
8227 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8230 \begin_layout Standard
8238 <cell alignment="center" valignment="top" topline="true" usebox="none">
8241 \begin_layout Standard
8247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8250 \begin_layout Standard
8257 <row bottomline="true" endlastfoot="true">
8258 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8261 \begin_layout Standard
8267 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8270 \begin_layout Standard
8276 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8279 \begin_layout Standard
8293 \begin_layout Section
8294 Special Longtable Issues
8295 \begin_inset LatexCommand label
8296 name "sec:Special-Longtable-Issues"
8303 \begin_layout Subsection
8304 Longtable Calculation
8305 \begin_inset LatexCommand index
8306 name "Longtables ! Calculation"
8313 \begin_layout Standard
8314 LaTeX calculates the height of table pages and their page breaks using so
8316 Chunks are pieces of the tables that are at once in LaTeX's memory.
8317 The default value is historically set to only 20 table rows.
8318 If you are using longtables with many pages this may slow down the creation
8320 You can safely increase the chunk size to values of 100-1000 by adding
8321 this command line to your document preamble:
8324 \begin_layout Standard
8329 setcounter{LTchunksize}{100}
8332 \begin_layout Subsection
8333 Floats and Longtables
8334 \begin_inset LatexCommand index
8335 name "Longtables ! Floats"
8342 \begin_layout Standard
8343 There might be problems when a float appears on the same page where a longtable
8345 To avoid such situation, add the command
8351 as ERT before your longtable.
8354 \begin_layout Subsection
8356 \begin_inset LatexCommand index
8357 name "Longtables ! Forced Page Breaks"
8364 \begin_layout Standard
8365 By default tables are only broken between rows.
8366 If you have a cell with multiples lines and want to have a page break within
8367 the cell, insert the new line command
8368 \begin_inset Quotes eld
8380 \begin_inset Quotes erd
8383 as ERT at this point of the cell where it should be broken.
8392 command you have to insert in ERT so many
8393 \begin_inset Quotes eld
8401 \begin_inset Quotes erd
8404 characters like the number of the following table columns.
8409 is the character to separate table cells.
8410 Write in ERT after each
8414 the content of the corresponding following cell and delete the content
8425 command, insert so many
8429 characters like the number of table columns before the current column.
8430 In Table\InsetSpace ~
8432 \begin_inset LatexCommand ref
8433 reference "tab:ForcedPagebreak"
8437 the cell that should be broken is in the second column followed by another
8439 Therefore the following command was inserted in the cell as ERT behind
8441 \begin_inset Quotes eld
8449 \begin_inset Quotes erd
8455 \begin_layout Standard
8467 \begin_layout Standard
8469 \begin_inset Quotes eld
8473 \begin_inset Quotes erd
8476 in the third columns of the row was deleted.
8477 If your footer row of the longtable has for a certain reason no upper line
8478 but you would have a horizontal line where the cell is broken, use this
8482 \begin_layout Standard
8496 \begin_layout Standard
8497 When the cell to be broken is in the last column, the command
8500 \begin_layout Standard
8507 parf\SpecialChar \textcompwordmark{}
8511 \begin_layout Standard
8512 must be inserted as ERT at the beginning of the cell.
8513 This assures that the part of the cell that will be displayed on the new
8514 page appears with the full width.
8518 \begin_layout Standard
8520 \begin_inset Tabular
8521 <lyxtabular version="3" rows="39" columns="3">
8522 <features islongtable="true">
8523 <column alignment="left" valignment="top" leftline="true" width="0cm">
8524 <column alignment="left" valignment="top" rightline="true" width="3cm">
8525 <column alignment="right" valignment="top" rightline="true" width="0pt">
8526 <row endfirsthead="true">
8527 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8530 \begin_layout Standard
8531 \begin_inset Caption
8533 \begin_layout Standard
8534 Table with forced page break in table cell
8535 \begin_inset LatexCommand label
8536 name "tab:ForcedPagebreak"
8544 \begin_layout Standard
8545 Table with forced page break in table cell
8559 \begin_layout Standard
8575 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8578 \begin_layout Standard
8584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8587 \begin_layout Standard
8594 <row topline="true" bottomline="true" endfirsthead="true">
8595 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8598 \begin_layout Standard
8601 Example Phone List (ignore the names)
8606 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8609 \begin_layout Standard
8615 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8618 \begin_layout Standard
8625 <row topline="true" bottomline="true" endfirsthead="true">
8626 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8629 \begin_layout Standard
8637 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8640 \begin_layout Standard
8646 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8649 \begin_layout Standard
8658 <row bottomline="true" endhead="true">
8659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8662 \begin_layout Standard
8666 \begin_layout Standard
8670 caption*{Continued table with forced page break in table cell}
8684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8687 \begin_layout Standard
8693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8696 \begin_layout Standard
8703 <row topline="true" bottomline="true" endhead="true">
8704 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8707 \begin_layout Standard
8715 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8718 \begin_layout Standard
8724 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8727 \begin_layout Standard
8734 <row topline="true" bottomline="true" endhead="true">
8735 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8738 \begin_layout Standard
8746 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8749 \begin_layout Standard
8755 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8758 \begin_layout Standard
8767 <row topline="true" bottomline="true" endfoot="true">
8768 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8771 \begin_layout Standard
8772 continued on next page
8777 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8780 \begin_layout Standard
8786 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8789 \begin_layout Standard
8797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8800 \begin_layout Standard
8808 <cell alignment="center" valignment="top" topline="true" usebox="none">
8811 \begin_layout Standard
8817 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8820 \begin_layout Standard
8828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8831 \begin_layout Standard
8839 <cell alignment="center" valignment="top" topline="true" usebox="none">
8842 \begin_layout Standard
8848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8851 \begin_layout Standard
8859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8862 \begin_layout Standard
8870 <cell alignment="center" valignment="top" topline="true" usebox="none">
8873 \begin_layout Standard
8879 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8882 \begin_layout Standard
8890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8893 \begin_layout Standard
8901 <cell alignment="center" valignment="top" topline="true" usebox="none">
8904 \begin_layout Standard
8910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8913 \begin_layout Standard
8921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8924 \begin_layout Standard
8932 <cell alignment="center" valignment="top" topline="true" usebox="none">
8935 \begin_layout Standard
8941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8944 \begin_layout Standard
8952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8955 \begin_layout Standard
8963 <cell alignment="center" valignment="top" topline="true" usebox="none">
8966 \begin_layout Standard
8972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8975 \begin_layout Standard
8983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8986 \begin_layout Standard
8994 <cell alignment="center" valignment="top" topline="true" usebox="none">
8997 \begin_layout Standard
9003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9006 \begin_layout Standard
9014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9017 \begin_layout Standard
9025 <cell alignment="center" valignment="top" topline="true" usebox="none">
9028 \begin_layout Standard
9034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9037 \begin_layout Standard
9045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9048 \begin_layout Standard
9056 <cell alignment="center" valignment="top" topline="true" usebox="none">
9059 \begin_layout Standard
9065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9068 \begin_layout Standard
9076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9079 \begin_layout Standard
9087 <cell alignment="center" valignment="top" topline="true" usebox="none">
9090 \begin_layout Standard
9096 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9099 \begin_layout Standard
9107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9110 \begin_layout Standard
9118 <cell alignment="center" valignment="top" topline="true" usebox="none">
9121 \begin_layout Standard
9127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9130 \begin_layout Standard
9138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9141 \begin_layout Standard
9149 <cell alignment="center" valignment="top" topline="true" usebox="none">
9152 \begin_layout Standard
9158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9161 \begin_layout Standard
9169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9172 \begin_layout Standard
9180 <cell alignment="center" valignment="top" topline="true" usebox="none">
9183 \begin_layout Standard
9189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9192 \begin_layout Standard
9200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9203 \begin_layout Standard
9211 <cell alignment="center" valignment="top" topline="true" usebox="none">
9214 \begin_layout Standard
9220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9223 \begin_layout Standard
9231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9234 \begin_layout Standard
9242 <cell alignment="center" valignment="top" topline="true" usebox="none">
9245 \begin_layout Standard
9251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9254 \begin_layout Standard
9262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9265 \begin_layout Standard
9273 <cell alignment="center" valignment="top" topline="true" usebox="none">
9276 \begin_layout Standard
9282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9285 \begin_layout Standard
9293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9296 \begin_layout Standard
9304 <cell alignment="center" valignment="top" topline="true" usebox="none">
9307 \begin_layout Standard
9313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9316 \begin_layout Standard
9324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9327 \begin_layout Standard
9335 <cell alignment="center" valignment="top" topline="true" usebox="none">
9338 \begin_layout Standard
9344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9347 \begin_layout Standard
9355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9358 \begin_layout Standard
9366 <cell alignment="center" valignment="top" topline="true" usebox="none">
9369 \begin_layout Standard
9375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9378 \begin_layout Standard
9386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9389 \begin_layout Standard
9397 <cell alignment="center" valignment="top" topline="true" usebox="none">
9400 \begin_layout Standard
9406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9409 \begin_layout Standard
9417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9420 \begin_layout Standard
9428 <cell alignment="center" valignment="top" topline="true" usebox="none">
9431 \begin_layout Standard
9437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9440 \begin_layout Standard
9448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9451 \begin_layout Standard
9459 <cell alignment="center" valignment="top" topline="true" usebox="none">
9462 \begin_layout Standard
9468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9471 \begin_layout Standard
9479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9482 \begin_layout Standard
9490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9493 \begin_layout Standard
9495 Fürst von Montecompatri, 11.
9496 Fürst von Sulmona und Vivaro, 10.
9497 Fürst von Rossano, 5.
9498 Herzog von Canemorte, 11.
9499 Herzog von Palombara, 5.
9500 Herzog von Castelchiodato,
9504 \begin_layout Standard
9513 \begin_layout Standard
9521 Herzog von Poggionativo, 11.
9522 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9523 Graf von Valinfreda, 11.
9524 Baron von Cropalati, 11.
9525 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9533 \begin_layout Standard
9541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9544 \begin_layout Standard
9552 <cell alignment="center" valignment="top" topline="true" usebox="none">
9555 \begin_layout Standard
9561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9564 \begin_layout Standard
9572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9575 \begin_layout Standard
9583 <cell alignment="center" valignment="top" topline="true" usebox="none">
9586 \begin_layout Standard
9592 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9595 \begin_layout Standard
9603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9606 \begin_layout Standard
9614 <cell alignment="center" valignment="top" topline="true" usebox="none">
9617 \begin_layout Standard
9623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9626 \begin_layout Standard
9634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9637 \begin_layout Standard
9645 <cell alignment="center" valignment="top" topline="true" usebox="none">
9648 \begin_layout Standard
9654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9657 \begin_layout Standard
9665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9668 \begin_layout Standard
9676 <cell alignment="center" valignment="top" topline="true" usebox="none">
9679 \begin_layout Standard
9685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9688 \begin_layout Standard
9696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9699 \begin_layout Standard
9707 <cell alignment="center" valignment="top" topline="true" usebox="none">
9710 \begin_layout Standard
9716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9719 \begin_layout Standard
9727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9730 \begin_layout Standard
9738 <cell alignment="center" valignment="top" topline="true" usebox="none">
9741 \begin_layout Standard
9747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9750 \begin_layout Standard
9757 <row bottomline="true">
9758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9761 \begin_layout Standard
9769 <cell alignment="center" valignment="top" topline="true" usebox="none">
9772 \begin_layout Standard
9778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9781 \begin_layout Standard
9788 <row endlastfoot="true">
9789 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9792 \begin_layout Standard
9798 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9801 \begin_layout Standard
9807 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9810 \begin_layout Standard
9824 \begin_layout Section
9825 Multiple Lines Columns and Rows
9828 \begin_layout Subsection
9829 Multiple Lines in Table Cells
9830 \begin_inset LatexCommand label
9831 name "sub:Multiple-Lines-in"
9836 \begin_inset LatexCommand index
9837 name "Multiple Lines in Table Cells"
9842 \begin_inset LatexCommand index
9843 name "Table ! Linebreaks"
9850 \begin_layout Standard
9852 \begin_inset Float table
9858 \begin_layout Standard
9859 \begin_inset Caption
9861 \begin_layout Standard
9862 \begin_inset LatexCommand label
9863 name "tab:Table-with-multiple"
9867 Table with multiple lines in cells
9875 \begin_layout Standard
9877 \begin_inset Tabular
9878 <lyxtabular version="3" rows="3" columns="3">
9880 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9881 <column alignment="center" valignment="middle" leftline="true" width="0">
9882 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
9883 <row topline="true">
9884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9887 \begin_layout Standard
9892 \begin_layout Standard
9906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9909 \begin_layout Standard
9915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9918 \begin_layout Standard
9925 <row topline="true">
9926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9929 \begin_layout Standard
9935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9938 \begin_layout Standard
9944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9947 \begin_layout Standard
9954 <row topline="true" bottomline="true">
9955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9958 \begin_layout Standard
9964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9967 \begin_layout Standard
9973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9976 \begin_layout Standard
9995 \begin_layout Standard
9996 Adjusting a fixed width for a column, enables to enter text as a paragraph
9997 with multiple lines and hyphenations.
10000 \begin_layout Standard
10001 To produce Table\InsetSpace ~
10003 \begin_inset LatexCommand ref
10004 reference "tab:Table-with-multiple"
10008 , create a 3×3 table, mark the first cell and right-click on it.
10009 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10010 cm and choose centered
10011 for the vertical and horizontal alignment.
10012 The vertical alignment is used for all cells of the row.
10013 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10014 cm, only one line will appear.
10015 To get two lines, we add a line break with the command
10018 \begin_layout Standard
10026 \begin_layout Standard
10028 If the text is wider than the set cell width it will automatically be broken
10032 \begin_layout Standard
10033 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10034 by LaTeX if it is the first entry.
10035 Therefore you need to insert something, to make the word not being the
10036 first entry: Add the command
10039 \begin_layout Standard
10047 \begin_layout Standard
10048 in ERT before the word.
10049 As the space is zero, it doesn't change the output.
10052 \begin_inset LatexCommand ref
10053 reference "tab:Table-with-and"
10060 \begin_layout Standard
10061 \begin_inset Float table
10067 \begin_layout Standard
10068 \begin_inset Caption
10070 \begin_layout Standard
10071 \begin_inset LatexCommand label
10072 name "tab:Table-with-and"
10076 Table with and without hyphenation
10084 \begin_layout Standard
10088 \begin_inset Tabular
10089 <lyxtabular version="3" rows="3" columns="3">
10091 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10092 <column alignment="center" valignment="middle" leftline="true" width="0">
10093 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10094 <row topline="true">
10095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10098 \begin_layout Standard
10099 verylongtablecellword
10104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10107 \begin_layout Standard
10113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10116 \begin_layout Standard
10123 <row topline="true">
10124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10127 \begin_layout Standard
10133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10136 \begin_layout Standard
10142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10145 \begin_layout Standard
10152 <row topline="true" bottomline="true">
10153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10156 \begin_layout Standard
10162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10165 \begin_layout Standard
10171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10174 \begin_layout Standard
10188 \begin_inset Tabular
10189 <lyxtabular version="3" rows="3" columns="3">
10191 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10192 <column alignment="center" valignment="middle" leftline="true" width="0">
10193 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10194 <row topline="true">
10195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10198 \begin_layout Standard
10202 \begin_layout Standard
10211 verylongtablecellword
10216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10219 \begin_layout Standard
10225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10228 \begin_layout Standard
10235 <row topline="true">
10236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10239 \begin_layout Standard
10245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10248 \begin_layout Standard
10254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10257 \begin_layout Standard
10264 <row topline="true" bottomline="true">
10265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10268 \begin_layout Standard
10274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10277 \begin_layout Standard
10283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10286 \begin_layout Standard
10307 \begin_layout Standard
10313 \begin_layout Subsection
10315 \begin_inset LatexCommand label
10316 name "sub:Multicolumns"
10321 \begin_inset LatexCommand index
10322 name "Multicolumns"
10327 \begin_inset LatexCommand index
10328 name "Table ! Multicolumns"
10335 \begin_layout Subsubsection
10339 \begin_layout Standard
10340 To span a cell over multiple columns, mark as much cells within a line that
10341 should be one spanned cell and use either the table-toolbar button
10342 \begin_inset Graphics
10343 filename ../images/tabular-feature_multicolumn.xpm
10350 Edit\SpecialChar \menuseparator
10351 Table\SpecialChar \menuseparator
10354 , or right click on the marked cells and choose multicolumn in the appearing
10355 table dialog under the tab
10362 \begin_layout Standard
10363 Multicolumns have there own cell settings.
10364 That means changing cell borders, cell alignment, and the width only affects
10366 Here is an example table with a multicolumn cell in the first row and one
10367 in the last row without the upper border:
10370 \begin_layout Standard
10372 \begin_inset Tabular
10373 <lyxtabular version="3" rows="3" columns="4">
10374 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10375 <column alignment="center" valignment="top" leftline="true" width="0pt">
10376 <column alignment="center" valignment="middle" leftline="true" width="0">
10377 <column alignment="center" valignment="top" leftline="true" width="0in">
10378 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10379 <row topline="true" bottomline="true">
10380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10383 \begin_layout Standard
10389 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10392 \begin_layout Standard
10398 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10401 \begin_layout Standard
10407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10410 \begin_layout Standard
10417 <row topline="true">
10418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10421 \begin_layout Standard
10436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10439 \begin_layout Standard
10445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10448 \begin_layout Standard
10454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10457 \begin_layout Standard
10464 <row topline="true" bottomline="true">
10465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10468 \begin_layout Standard
10474 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10477 \begin_layout Standard
10483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10486 \begin_layout Standard
10492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10495 \begin_layout Standard
10509 \begin_layout Subsubsection
10510 Multicolumn Calculations
10511 \begin_inset LatexCommand label
10512 name "sub:Multicolumn-Calculations"
10517 \begin_inset LatexCommand index
10518 name "Multicolumns ! Calculations"
10525 \begin_layout Standard
10526 LyX supports multicolumns directly, but we have to take notice of the cell
10527 width of the columns spanned by the multicolumn cell.
10530 \begin_layout Standard
10531 \begin_inset Float table
10536 \begin_layout Standard
10537 \begin_inset Caption
10539 \begin_layout Standard
10540 \begin_inset LatexCommand label
10541 name "tab:Table-with-centered"
10545 Table with centered multicolumn text above two columns that have exactly
10546 half the width of the multicolumn cell
10547 \begin_inset OptArg
10550 \begin_layout Standard
10551 Perfect multicolumn table
10564 \begin_layout Standard
10566 \begin_inset Tabular
10567 <lyxtabular version="3" rows="3" columns="3">
10569 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
10570 <column alignment="center" valignment="middle" leftline="true" width="0">
10571 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10572 <row topline="true">
10573 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
10576 \begin_layout Standard
10577 multiple lines multicolumn
10582 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10585 \begin_layout Standard
10591 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10594 \begin_layout Standard
10601 <row topline="true">
10602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10605 \begin_layout Standard
10611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10614 \begin_layout Standard
10620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10623 \begin_layout Standard
10630 <row topline="true" bottomline="true">
10631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10634 \begin_layout Standard
10640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10643 \begin_layout Standard
10649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10652 \begin_layout Standard
10671 \begin_layout Standard
10672 To create for example Table\InsetSpace ~
10674 \begin_inset LatexCommand ref
10675 reference "tab:Table-with-centered"
10679 , mark the first two cells in the first row of a 3×3 table and right-click
10681 Now choose for this cell
10689 and a width of 2.5\InsetSpace \thinspace{}
10690 cm in the table dialog.
10691 The spanned columns should have exactly half the width of the multicolumn
10692 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10693 cm for the first column.
10694 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10696 width - width of first column).
10697 This was done for Table\InsetSpace ~
10699 \begin_inset LatexCommand ref
10700 reference "tab:Table-without-half"
10707 \begin_layout Standard
10708 \begin_inset Float table
10713 \begin_layout Standard
10714 \begin_inset Caption
10716 \begin_layout Standard
10717 \begin_inset LatexCommand label
10718 name "tab:Table-without-half"
10722 Table where the spanned table columns have not exactly half the width of
10723 the multicolumn cell
10724 \begin_inset OptArg
10727 \begin_layout Standard
10728 Imperfect multicolumn table
10741 \begin_layout Standard
10743 \begin_inset Tabular
10744 <lyxtabular version="3" rows="3" columns="3">
10746 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10747 <column alignment="center" valignment="top" leftline="true" width="0">
10748 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10749 <row topline="true" bottomline="true">
10750 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10753 \begin_layout Standard
10754 multiple lines multicolumn
10759 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10762 \begin_layout Standard
10768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10771 \begin_layout Standard
10778 <row topline="true">
10779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10782 \begin_layout Standard
10788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10791 \begin_layout Standard
10797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10800 \begin_layout Standard
10807 <row topline="true" bottomline="true">
10808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10811 \begin_layout Standard
10817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10820 \begin_layout Standard
10826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10829 \begin_layout Standard
10848 \begin_layout Standard
10849 You can see that the first column has not the half width of the multicolumn
10850 cell, it is a bit bigger.
10851 The reason is that the given width of a cell
10852 \begin_inset Formula $W_{g}$
10855 is not its total width
10856 \begin_inset Formula $W_{\mathrm{tot}}$
10859 because a cell is always a bit larger than its given width.
10860 Appendix\InsetSpace ~
10862 \begin_inset LatexCommand eqref
10863 reference "cha:Explanation-of-Equation"
10867 explains it in detail.
10870 \begin_layout Standard
10871 The needed given width
10872 \begin_inset Formula $W_{g\, n}$
10879 columns are spanned can be calculated, so that each column has a total
10881 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10885 \begin_inset Formula \begin{equation}
10886 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10893 \begin_layout Standard
10894 In our case we have
10895 \begin_inset Formula $n=2$
10899 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10902 cm and the default values for the lengths, so that equation
10903 \begin_inset LatexCommand ref
10909 \begin_inset Formula \begin{equation}
10910 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10917 \begin_layout Standard
10918 To enable calculations in LaTeX, the LaTeX-package
10922 must be loaded with the document preamble line
10923 \begin_inset LatexCommand index
10924 name "LaTeX-packages ! calc"
10931 \begin_layout Standard
10939 \begin_layout Standard
10940 LyX does not allow to calculate lengths in the width-field of the table
10942 Therefore you have to format the column by inserting a LaTeX-argument in
10944 Here is an overview about the arguments:
10947 \begin_layout Itemize
10952 creates cell with a fixed width, its text is vertically top-aligned
10955 \begin_layout Itemize
10960 creates cell with a fixed width, its text is vertically centered
10963 \begin_layout Itemize
10968 creates cell with a fixed width, its text is vertically bottom-aligned
10971 \begin_layout Standard
10972 By entering a LaTeX-argument, all cell properties set in the table dialog
10975 \begin_inset Note Greyedout
10978 \begin_layout Standard
10983 Due to a bug, LyX shows the overwritten properties anyway.
10988 As the text should be horizontally centered, the command
10995 You can now enter the following LaTeX-argument for the first spanned column:
10998 \begin_layout Standard
11003 centering}m{1.25cm-6.2pt}
11006 \begin_layout Standard
11011 means, that the commands inside the braces are applied before the cell
11015 \begin_layout Standard
11016 Although we have chosen centered alignment for the text of the multicolumn
11017 cell, it is still left aligned.
11018 This is because LyX only applies the alignment to single columns.
11019 So we have to use for the multicolumn the LaTeX-argument
11022 \begin_layout Standard
11030 \begin_layout Subsection
11032 \begin_inset LatexCommand index
11038 \begin_inset LatexCommand index
11039 name "Table ! Multirows"
11044 \begin_inset LatexCommand index
11045 name "LaTeX-packages ! multirow"
11052 \begin_layout Standard
11053 In contrary to multicolumns multirows are not yet supported by LyX so a
11054 bit of ERT needs to be used.
11055 To use multirows load the LaTeX-package
11059 in your document preamble with the command
11062 \begin_layout Standard
11067 usepackage{multirow}
11070 \begin_layout Standard
11071 Multirows are created with the command
11074 \begin_layout Standard
11079 multirow{number of rows}{cell width}{cell entry}
11082 \begin_layout Standard
11083 To create the following table:
11086 \begin_layout Standard
11091 \begin_layout Standard
11105 \begin_inset Tabular
11106 <lyxtabular version="3" rows="3" columns="3">
11108 <column alignment="center" valignment="top" leftline="true" width="0">
11109 <column alignment="center" valignment="top" leftline="true" width="0">
11110 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11111 <row topline="true">
11112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11115 \begin_layout Standard
11121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11124 \begin_layout Standard
11130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11133 \begin_layout Standard
11140 <row topline="true">
11141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11144 \begin_layout Standard
11148 \begin_layout Standard
11152 multirow{2}{2.5cm}{
11161 \begin_layout Standard
11173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11176 \begin_layout Standard
11182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11185 \begin_layout Standard
11192 <row topline="true" bottomline="true">
11193 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11196 \begin_layout Standard
11202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11205 \begin_layout Standard
11211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11214 \begin_layout Standard
11229 \begin_layout Standard
11245 \begin_layout Standard
11246 create a 3×3 table.
11247 To get rid of the line above the last cell in the first column, the cell
11248 is marked as multicolumn and the upper border is unset.
11249 The multirow is now created in the second row of the first column by inserting
11253 \begin_layout Standard
11258 multirow{2}{2.5cm}{
11261 \begin_layout Standard
11263 According to the command parameters the multirow spans now two rows and
11264 has a width of 2.5\InsetSpace \thinspace{}
11266 The content of the multirow cell follows outside the ERT box and the command
11267 is finished with a right brace
11271 in another ERT-box behind the text.
11274 \begin_layout Standard
11281 left-aligns its content by default.
11282 To override the default, renew the command
11291 \begin_layout Standard
11303 \begin_layout Standard
11304 in ERT in the document preamble.
11305 Then all entries of multirow cells in the document are centered.
11306 If centering is only needed for several tables, you can renew the command
11307 in an ERT box just before the table instead of the preamble.
11308 If the text should be right-aligned, replace
11321 To return to left-alignment
11330 \begin_layout Section
11332 \begin_inset LatexCommand label
11333 name "sec:Formal-Tables"
11338 \begin_inset LatexCommand index
11339 name "Table ! Formal"
11346 \begin_layout Standard
11347 Tables are often typeset in books similar to Table\InsetSpace ~
11349 \begin_inset LatexCommand ref
11350 reference "tab:Example-booktabs-table"
11355 This kind of tables is called
11356 \begin_inset Quotes eld
11364 \begin_inset Quotes erd
11368 To make a table a formal table use the option
11376 tab of the table dialog.
11379 \begin_layout Standard
11380 \begin_inset Float table
11386 \begin_layout Standard
11387 \begin_inset Caption
11389 \begin_layout Standard
11390 \begin_inset LatexCommand label
11391 name "tab:Example-booktabs-table"
11395 Example booktabs-table
11403 \begin_layout Standard
11405 \begin_inset Tabular
11406 <lyxtabular version="3" rows="8" columns="4">
11407 <features booktabs="true">
11408 <column alignment="center" valignment="top" rightline="true" width="0">
11409 <column alignment="center" valignment="top" width="0">
11410 <column alignment="center" valignment="top" width="0">
11411 <column alignment="center" valignment="top" width="0">
11412 <row topline="true">
11413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11416 \begin_layout Standard
11422 <cell alignment="center" valignment="top" topline="true" usebox="none">
11425 \begin_layout Standard
11427 \begin_inset Formula $\,$
11435 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11438 \begin_layout Standard
11440 \begin_inset Formula $\,$
11448 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11451 \begin_layout Standard
11459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11462 \begin_layout Standard
11466 \begin_layout Standard
11479 \begin_layout Standard
11488 Detector thickness [µm]
11493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11496 \begin_layout Standard
11502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11505 \begin_layout Standard
11511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11514 \begin_layout Standard
11521 <row topline="true">
11522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11525 \begin_layout Standard
11531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11534 \begin_layout Standard
11540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11543 \begin_layout Standard
11549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11552 \begin_layout Standard
11559 <row topspace="default">
11560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11563 \begin_layout Standard
11564 Spatial resolution [µm]
11569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11572 \begin_layout Standard
11578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11581 \begin_layout Standard
11587 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11590 \begin_layout Standard
11597 <row topspace="default">
11598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11601 \begin_layout Standard
11603 \begin_inset Formula $f_{\mathrm{max}}$
11611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11614 \begin_layout Standard
11620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11623 \begin_layout Standard
11629 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11632 \begin_layout Standard
11639 <row topspace="default">
11640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11643 \begin_layout Standard
11647 \begin_layout Standard
11651 cmidrule(l{10pt}){1-1}
11656 LSF-spatial resolution
11661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11664 \begin_layout Standard
11670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11673 \begin_layout Standard
11679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11682 \begin_layout Standard
11690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11693 \begin_layout Standard
11699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11702 \begin_layout Standard
11708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11711 \begin_layout Standard
11717 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11720 \begin_layout Standard
11727 <row bottomline="true">
11728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11731 \begin_layout Standard
11737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11740 \begin_layout Standard
11746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11749 \begin_layout Standard
11755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11758 \begin_layout Standard
11777 \begin_layout Standard
11778 Spaces to table rows can be added using the
11782 tab of the table dialog as described in section\InsetSpace ~
11784 \begin_inset LatexCommand ref
11785 reference "sub:Row-Spacing"
11792 \begin_layout Standard
11793 In contrary to normal tables, formal tables have no vertical table lines.
11794 The horizontal table lines can be set like for normal tables but they appear
11795 with different width in the output:
11797 The first and the last table line have
11798 a default width of 0.08\InsetSpace \thinspace{}
11799 em while the other lines have a default width of
11800 0.05\InsetSpace \thinspace{}
11804 \begin_layout Standard
11805 The default widths can be changed with the following preamble lines
11808 \begin_layout Standard
11828 \begin_layout Standard
11829 This example is for the first line, the so called toprule.
11830 If you want to change the width for the last line, replace
11839 To change the width for the other lines replace
11848 You can use all units listed in appendix\InsetSpace ~
11850 \begin_inset LatexCommand ref
11851 reference "cha:Units-available-in"
11858 \begin_layout Standard
11859 Lines that don't span over all table columns can be created by setting a
11860 table line for multicolumn cells.
11861 LyX will then internally use the command
11867 to create this line.
11871 \begin_layout Standard
11876 cmidrule[width](trim){startcol-endcol}
11879 \begin_layout Standard
11886 are are currently not supported by LyX so you have to use ERT to be able
11894 s can manually be created by inserting the command as ERT as first cell
11895 entry of the first cell of a row.
11896 The line is then drawn in the output above the current row.
11899 \begin_layout Standard
11900 The default for the width is 0.03\InsetSpace \thinspace{}
11902 Startcol is the number of the column where the line starts and endcol the
11903 column number where the line ends.
11904 The endcol always needs to be specified, also when the line should span
11906 The optional parameter trim could be either
11914 where the trimwidth is also optional.
11915 Using for example the parameter
11919 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11921 If you don't specify the trimwidth the lines are trimmed by the default
11922 of 0.5\InsetSpace \thinspace{}
11926 \begin_layout Standard
11927 \begin_inset VSpace bigskip
11932 \begin_inset LatexCommand ref
11933 reference "tab:Example-booktabs-table"
11937 was created using the commands
11940 \begin_layout Standard
11950 \begin_layout Standard
11951 at the beginning of the in the second row and
11954 \begin_layout Standard
11959 cmidrule(l{10pt}){1-1}
11962 \begin_layout Standard
11966 \begin_layout Standard
11970 \begin_layout Standard
11971 \begin_inset VSpace bigskip
11977 \begin_layout Standard
11978 You might want to have overlapping
11984 s like in Table\InsetSpace ~
11986 \begin_inset LatexCommand ref
11987 reference "tab:Special-booktabs-table"
11992 This can be achieved with the ERT command
11995 \begin_layout Standard
12003 \begin_layout Standard
12004 The command that was used for the second row of Table\InsetSpace ~
12006 \begin_inset LatexCommand ref
12007 reference "tab:Special-booktabs-table"
12014 \begin_layout Standard
12028 \begin_layout Standard
12029 The command for the sixth row is
12032 \begin_layout Standard
12044 \begin_layout Standard
12045 \begin_inset VSpace bigskip
12051 \begin_layout Standard
12052 If you are anyway not satisfied with the border line spacing, you can use
12053 the following command to produce lines that span over all table columns
12058 \begin_layout Standard
12063 specialrule{width}{space above}{space below}
12066 \begin_layout Standard
12067 For more informations about these specialties, we refer to the manual of
12073 \begin_inset LatexCommand cite
12079 \begin_inset LatexCommand index
12080 name "LaTeX-packages ! booktabs"
12087 \begin_layout Standard
12088 \begin_inset Float table
12094 \begin_layout Standard
12095 \begin_inset Caption
12097 \begin_layout Standard
12098 \begin_inset LatexCommand label
12099 name "tab:Special-booktabs-table"
12103 Special booktabs-table
12111 \begin_layout Standard
12113 \begin_inset Tabular
12114 <lyxtabular version="3" rows="8" columns="4">
12115 <features booktabs="true">
12116 <column alignment="center" valignment="top" width="0">
12117 <column alignment="center" valignment="top" width="0">
12118 <column alignment="center" valignment="top" width="0">
12119 <column alignment="center" valignment="top" width="0">
12120 <row topline="true">
12121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12124 \begin_layout Standard
12130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12133 \begin_layout Standard
12134 Medipix\InsetSpace \thinspace{}
12140 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12143 \begin_layout Standard
12144 Medipix\InsetSpace \thinspace{}
12150 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12153 \begin_layout Standard
12161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12164 \begin_layout Standard
12168 \begin_layout Standard
12181 \begin_layout Standard
12194 \begin_layout Standard
12207 \begin_layout Standard
12216 Detector thickness [µm]
12221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12224 \begin_layout Standard
12230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12233 \begin_layout Standard
12239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12242 \begin_layout Standard
12249 <row topline="true">
12250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12253 \begin_layout Standard
12259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12262 \begin_layout Standard
12268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12271 \begin_layout Standard
12277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12280 \begin_layout Standard
12287 <row topspace="default">
12288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12291 \begin_layout Standard
12292 Spatial resolution [µm]
12297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12300 \begin_layout Standard
12306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12309 \begin_layout Standard
12315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12318 \begin_layout Standard
12325 <row topspace="default">
12326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12329 \begin_layout Standard
12331 \begin_inset Formula $f_{\mathrm{max}}$
12339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12342 \begin_layout Standard
12348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12351 \begin_layout Standard
12357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12360 \begin_layout Standard
12367 <row topline="true">
12368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12371 \begin_layout Standard
12375 \begin_layout Standard
12388 \begin_layout Standard
12397 LSF-spatial resolution
12402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12405 \begin_layout Standard
12411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12414 \begin_layout Standard
12420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12423 \begin_layout Standard
12431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12434 \begin_layout Standard
12440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12443 \begin_layout Standard
12449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12452 \begin_layout Standard
12458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12461 \begin_layout Standard
12468 <row bottomline="true">
12469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12472 \begin_layout Standard
12478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12481 \begin_layout Standard
12487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12490 \begin_layout Standard
12496 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12499 \begin_layout Standard
12518 \begin_layout Section
12519 Vertical Table Alignment
12520 \begin_inset LatexCommand index
12521 name "Table ! Alignment"
12528 \begin_layout Standard
12529 To align tables vertically in a text line the table must be inside a box.
12530 The box can then be vertically aligned as described in section\InsetSpace ~
12532 \begin_inset LatexCommand ref
12533 reference "sec:Box-Dialog"
12540 \begin_layout Standard
12541 In the following example the tables are inside a minipage
12545 \begin_layout Standard
12546 Minipages are described in section\InsetSpace ~
12548 \begin_inset LatexCommand ref
12549 reference "sec:Minipages"
12558 box that has a width of 15\InsetSpace \thinspace{}
12562 \begin_layout Itemize
12564 \begin_inset Box Frameless
12573 height_special "totalheight"
12576 \begin_layout Standard
12577 \begin_inset Tabular
12578 <lyxtabular version="3" rows="3" columns="3">
12580 <column alignment="center" valignment="top" leftline="true" width="0">
12581 <column alignment="center" valignment="top" leftline="true" width="0">
12582 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12583 <row topline="true">
12584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12587 \begin_layout Standard
12593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12596 \begin_layout Standard
12602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12605 \begin_layout Standard
12612 <row topline="true">
12613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12616 \begin_layout Standard
12622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12625 \begin_layout Standard
12631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12634 \begin_layout Standard
12641 <row topline="true" bottomline="true">
12642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12645 \begin_layout Standard
12651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12654 \begin_layout Standard
12660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12663 \begin_layout Standard
12683 \begin_layout Standard
12695 \begin_inset Box Frameless
12704 height_special "totalheight"
12707 \begin_layout Standard
12708 \begin_inset Tabular
12709 <lyxtabular version="3" rows="3" columns="3">
12711 <column alignment="center" valignment="top" leftline="true" width="0">
12712 <column alignment="center" valignment="top" leftline="true" width="0">
12713 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12714 <row topline="true">
12715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12718 \begin_layout Standard
12724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12727 \begin_layout Standard
12733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12736 \begin_layout Standard
12743 <row topline="true">
12744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12747 \begin_layout Standard
12753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12756 \begin_layout Standard
12762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12765 \begin_layout Standard
12772 <row topline="true" bottomline="true">
12773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12776 \begin_layout Standard
12782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12785 \begin_layout Standard
12791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12794 \begin_layout Standard
12814 \begin_layout Standard
12824 \begin_layout Itemize
12826 \begin_inset Box Frameless
12835 height_special "totalheight"
12838 \begin_layout Standard
12839 \begin_inset Tabular
12840 <lyxtabular version="3" rows="3" columns="3">
12842 <column alignment="center" valignment="top" leftline="true" width="0">
12843 <column alignment="center" valignment="top" leftline="true" width="0">
12844 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12845 <row topline="true">
12846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12849 \begin_layout Standard
12855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12858 \begin_layout Standard
12864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12867 \begin_layout Standard
12874 <row topline="true">
12875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12878 \begin_layout Standard
12884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12887 \begin_layout Standard
12893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12896 \begin_layout Standard
12903 <row topline="true" bottomline="true">
12904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12907 \begin_layout Standard
12913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12916 \begin_layout Standard
12922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12925 \begin_layout Standard
12944 \begin_layout Itemize
12946 \begin_inset Box Frameless
12955 height_special "totalheight"
12958 \begin_layout Standard
12959 \begin_inset Tabular
12960 <lyxtabular version="3" rows="3" columns="3">
12962 <column alignment="center" valignment="top" leftline="true" width="0">
12963 <column alignment="center" valignment="top" leftline="true" width="0">
12964 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12965 <row topline="true">
12966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12969 \begin_layout Standard
12975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12978 \begin_layout Standard
12984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12987 \begin_layout Standard
12994 <row topline="true">
12995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12998 \begin_layout Standard
13004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13007 \begin_layout Standard
13013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13016 \begin_layout Standard
13023 <row topline="true" bottomline="true">
13024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13027 \begin_layout Standard
13033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13036 \begin_layout Standard
13042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13045 \begin_layout Standard
13065 \begin_layout Standard
13077 \begin_inset Box Frameless
13086 height_special "totalheight"
13089 \begin_layout Standard
13090 \begin_inset Tabular
13091 <lyxtabular version="3" rows="3" columns="3">
13093 <column alignment="center" valignment="top" leftline="true" width="0">
13094 <column alignment="center" valignment="top" leftline="true" width="0">
13095 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13096 <row topline="true">
13097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13100 \begin_layout Standard
13106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13109 \begin_layout Standard
13115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13118 \begin_layout Standard
13125 <row topline="true">
13126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13129 \begin_layout Standard
13135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13138 \begin_layout Standard
13144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13147 \begin_layout Standard
13154 <row topline="true" bottomline="true">
13155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13158 \begin_layout Standard
13164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13167 \begin_layout Standard
13173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13176 \begin_layout Standard
13196 \begin_layout Standard
13206 \begin_layout Standard
13207 As you can see, the content of the first and last table row is not correctly
13208 aligned with the text line where the table is in.
13209 To get this alignment, the minipage box must be set into a raisebox
13213 \begin_layout Standard
13214 Raiseboxes are described in section\InsetSpace ~
13216 \begin_inset LatexCommand ref
13217 reference "sub:Vertical-Alignment"
13227 In the example above the second table in the first item is aligned using
13231 \begin_layout Standard
13241 \begin_layout Standard
13243 Behind the box the closing brace
13247 is inserted as ERT.
13248 For the second table in the last item the command
13251 \begin_layout Standard
13261 \begin_layout Standard
13265 \begin_layout Standard
13266 \begin_inset Note Greyedout
13269 \begin_layout Standard
13274 The alignment of the table row content to the surrounding text line is
13276 The needed factor of the
13282 command for this alignment depends on the document font, the font size,
13283 and the table line thickness.
13291 \begin_layout Section
13293 \begin_inset LatexCommand label
13294 name "sec:Colored-Tables"
13299 \begin_inset LatexCommand index
13300 name "Table ! Color"
13307 \begin_layout Subsection
13309 \begin_inset LatexCommand index
13310 name "Table Color ! for Cells"
13315 \begin_inset LatexCommand index
13316 name "Color ! for Table Cells"
13323 \begin_layout Standard
13324 \begin_inset Float table
13330 \begin_layout Standard
13331 \begin_inset Caption
13333 \begin_layout Standard
13334 \begin_inset LatexCommand label
13335 name "tab:Table-colored-without"
13339 Table colored without using the package
13344 \begin_inset OptArg
13347 \begin_layout Standard
13348 Table without colortbl
13361 \begin_layout Standard
13363 \begin_inset Tabular
13364 <lyxtabular version="3" rows="3" columns="3">
13366 <column alignment="center" valignment="top" leftline="true" width="0">
13367 <column alignment="center" valignment="top" leftline="true" width="0">
13368 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13369 <row topline="true">
13370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13373 \begin_layout Standard
13381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13384 \begin_layout Standard
13392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13395 \begin_layout Standard
13404 <row topline="true">
13405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13408 \begin_layout Standard
13416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13419 \begin_layout Standard
13427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13430 \begin_layout Standard
13439 <row topline="true" bottomline="true">
13440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13443 \begin_layout Standard
13451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13454 \begin_layout Standard
13462 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13465 \begin_layout Standard
13486 \begin_layout Standard
13487 If you only need colored text, mark the cells and choose a color in the
13490 Edit\SpecialChar \menuseparator
13495 This was used to create Table\InsetSpace ~
13497 \begin_inset LatexCommand ref
13498 reference "tab:Table-colored-without"
13503 In any other case you have to use the LaTeX-package
13508 \begin_inset LatexCommand index
13509 name "LaTeX-packages ! colortbl"
13516 \begin_layout Standard
13517 To create colored tables,
13521 must be loaded in the preamble with the line
13524 \begin_layout Standard
13529 usepackage{colortbl}
13532 \begin_layout Standard
13533 The color of a column is adjusted with the command
13536 \begin_layout Standard
13541 columncolor{name of color}
13544 \begin_layout Standard
13550 More about the command
13554 is described in section\InsetSpace ~
13556 \begin_inset LatexCommand ref
13557 reference "sub:Multicolumn-Calculations"
13564 \begin_layout Standard
13565 The following color names are predefined:
13568 \begin_layout Standard
13602 \begin_layout Standard
13603 \begin_inset VSpace medskip
13609 \begin_layout Standard
13610 You can also define your own color with the command
13613 \begin_layout Standard
13618 def\SpecialChar \textcompwordmark{}
13619 inecolor{color name}{color model}{color values}
13622 \begin_layout Standard
13623 The color model can be
13626 \begin_layout Labeling
13627 \labelwidthstring 00.00.0000
13628 cmyk: cyan, magenta, yellow, black
13631 \begin_layout Labeling
13632 \labelwidthstring 00.00.0000
13633 rgb: red, green blue
13636 \begin_layout Labeling
13637 \labelwidthstring 00.00.0000
13641 \begin_layout Standard
13642 and the color values are comma separated numbers between 0 and 1 describing
13643 the factor for the corresponding color of the color model.
13646 \begin_layout Standard
13647 You can e.\InsetSpace \thinspace{}
13653 " in the preamble with
13656 \begin_layout Standard
13661 def\SpecialChar \textcompwordmark{}
13662 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13665 \begin_layout Standard
13673 \begin_layout Standard
13678 def\SpecialChar \textcompwordmark{}
13679 inecolor{lightgray}{gray}{0.8}
13682 \begin_layout Standard
13683 \begin_inset VSpace medskip
13689 \begin_layout Standard
13690 Lines are colored with the command
13693 \begin_layout Standard
13698 rowcolor{name of color}
13701 \begin_layout Standard
13702 and cells are colored with the command
13705 \begin_layout Standard
13710 cellcolor{name of color}
13713 \begin_layout Standard
13714 Both commands are inserted at the beginning of a cell as ERT.
13717 \begin_layout Standard
13718 To color characters in the table, mark the cells and use the LyX menu
13720 Edit\SpecialChar \menuseparator
13725 If a cell contains ERT mark only the characters, otherwise the colored
13726 ERT will cause LaTeX-errors.
13729 \begin_layout Standard
13730 \begin_inset VSpace bigskip
13736 \begin_layout Standard
13737 To create Table\InsetSpace ~
13739 \begin_inset LatexCommand ref
13740 reference "tab:Table-colored-using"
13744 do the following: The color of the first column should be
13752 \begin_layout Standard
13757 columncolor{darkgreen}
13762 \begin_layout Standard
13763 as LaTeX-argument for this column.
13764 The first row should be blue, therefore the ERT command
13767 \begin_layout Standard
13775 \begin_layout Standard
13776 is inserted to the first cell of this row.
13777 Note that this overwrites the column color for the first cell.
13778 The last cell of the last row is colored magenta by inserting the ERT command
13781 \begin_layout Standard
13789 \begin_layout Standard
13790 The characters could now be colored using the menu
13792 Edit\SpecialChar \menuseparator
13799 \begin_layout Standard
13800 \begin_inset Float table
13806 \begin_layout Standard
13807 \begin_inset Caption
13809 \begin_layout Standard
13810 \begin_inset LatexCommand label
13811 name "tab:Table-colored-using"
13815 Table colored using the package
13820 \begin_inset OptArg
13823 \begin_layout Standard
13824 Table with colortbl
13837 \begin_layout Standard
13839 \begin_inset Tabular
13840 <lyxtabular version="3" rows="3" columns="3">
13842 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
13843 <column alignment="center" valignment="top" width="0">
13844 <column alignment="center" valignment="top" width="0">
13846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13849 \begin_layout Standard
13853 \begin_layout Standard
13869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13872 \begin_layout Standard
13880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13883 \begin_layout Standard
13893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13896 \begin_layout Standard
13904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13907 \begin_layout Standard
13915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13918 \begin_layout Standard
13928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13931 \begin_layout Standard
13939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13942 \begin_layout Standard
13950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13953 \begin_layout Standard
13957 \begin_layout Standard
13986 \begin_layout Subsection
13988 \begin_inset LatexCommand index
13989 name "Table Color ! for Lines"
13994 \begin_inset LatexCommand index
13995 name "Color ! for Table Lines"
14002 \begin_layout Standard
14003 As described in section\InsetSpace ~
14005 \begin_inset LatexCommand ref
14006 reference "sub:Line-Thickness"
14010 , the line thickness for all lines in a table can be adjusted with the length
14018 It is set to 1.5\InsetSpace \thinspace{}
14019 pt for all tables of this section.
14023 \begin_layout Standard
14029 arrayrulewidth}{1.5pt}
14037 \begin_layout Standard
14038 To color vertical lines for example with green, create the following column
14039 format in the document preamble, according to the description in section\InsetSpace ~
14041 \begin_inset LatexCommand ref
14042 reference "sub:Customized-Format"
14049 \begin_layout Standard
14054 newcolumntype{W}{!{
14061 \begin_layout Standard
14062 For Table\InsetSpace ~
14064 \begin_inset LatexCommand ref
14065 reference "tab:Table-with-vertical-colored"
14072 \begin_layout Standard
14078 \begin_layout Standard
14079 was used for the last column and
14082 \begin_layout Standard
14088 \begin_layout Standard
14089 for the other columns.
14092 \begin_layout Standard
14093 If you want to have several colors, define more column formats.
14096 \begin_layout Standard
14097 \begin_inset Float table
14102 \begin_layout Standard
14103 \begin_inset Caption
14105 \begin_layout Standard
14106 \begin_inset LatexCommand label
14107 name "tab:Table-with-vertical-colored"
14111 Table with colored vertical lines
14119 \begin_layout Standard
14121 \begin_inset Tabular
14122 <lyxtabular version="3" rows="3" columns="3">
14124 <column alignment="center" valignment="top" width="0" special="Wc">
14125 <column alignment="center" valignment="top" width="0" special="Wc">
14126 <column alignment="center" valignment="top" width="0" special="WcW">
14127 <row topline="true">
14128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14131 \begin_layout Standard
14137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14140 \begin_layout Standard
14146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14149 \begin_layout Standard
14156 <row topline="true">
14157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14160 \begin_layout Standard
14166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14169 \begin_layout Standard
14175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14178 \begin_layout Standard
14185 <row topline="true" bottomline="true">
14186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14189 \begin_layout Standard
14195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14198 \begin_layout Standard
14204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14207 \begin_layout Standard
14226 \begin_layout Standard
14227 \begin_inset VSpace bigskip
14230 To color horizontal lines for example with red, like in Table\InsetSpace ~
14232 \begin_inset LatexCommand ref
14233 reference "tab:Table-with-horizontal-colored"
14237 , insert these commands in ERT before the table or table float:
14240 \begin_layout Standard
14257 arrayrulecolor{red}
14261 arrayrulecolor{black}}
14264 \begin_layout Standard
14268 \begin_layout Standard
14279 \begin_layout Standard
14287 arrayrulecolor{red}
14291 arrayrulecolor{black}}
14297 \begin_inset Float table
14302 \begin_layout Standard
14303 \begin_inset Caption
14305 \begin_layout Standard
14306 \begin_inset LatexCommand label
14307 name "tab:Table-with-horizontal-colored"
14311 Table with colored horizontal lines
14319 \begin_layout Standard
14321 \begin_inset Tabular
14322 <lyxtabular version="3" rows="3" columns="3">
14324 <column alignment="center" valignment="top" leftline="true" width="0">
14325 <column alignment="center" valignment="top" leftline="true" width="0">
14326 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14327 <row topline="true">
14328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14331 \begin_layout Standard
14337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14340 \begin_layout Standard
14346 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14349 \begin_layout Standard
14356 <row topline="true">
14357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14360 \begin_layout Standard
14366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14369 \begin_layout Standard
14375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14378 \begin_layout Standard
14385 <row topline="true" bottomline="true">
14386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14389 \begin_layout Standard
14395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14398 \begin_layout Standard
14404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14407 \begin_layout Standard
14426 \begin_layout Standard
14430 \begin_layout Standard
14442 \begin_layout Standard
14443 To return to the default line color black, insert this command in ERT behind
14444 the table or table float:
14447 \begin_layout Standard
14459 \begin_layout Standard
14462 \begin_inset LatexCommand ref
14463 reference "tab:Table-with-colored"
14467 is an example with colored vertical and horizontal lines.
14470 \begin_layout Standard
14471 \begin_inset Float table
14476 \begin_layout Standard
14477 \begin_inset Caption
14479 \begin_layout Standard
14480 \begin_inset LatexCommand label
14481 name "tab:Table-with-colored"
14485 Table with colored lines
14493 \begin_layout Standard
14495 \begin_inset Tabular
14496 <lyxtabular version="3" rows="3" columns="3">
14498 <column alignment="center" valignment="top" width="0" special="Wc">
14499 <column alignment="center" valignment="top" width="0" special="Wc">
14500 <column alignment="center" valignment="top" width="0" special="WcW">
14501 <row topline="true">
14502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14505 \begin_layout Standard
14511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14514 \begin_layout Standard
14520 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14523 \begin_layout Standard
14530 <row topline="true">
14531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14534 \begin_layout Standard
14540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14543 \begin_layout Standard
14549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14552 \begin_layout Standard
14559 <row topline="true" bottomline="true" topspace="default">
14560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14563 \begin_layout Standard
14569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14572 \begin_layout Standard
14578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14581 \begin_layout Standard
14600 \begin_layout Standard
14604 \begin_layout Standard
14620 \begin_layout Standard
14624 \begin_layout Standard
14630 arrayrulewidth}{0.4pt}
14638 \begin_layout Section
14639 Table Customization
14640 \begin_inset LatexCommand index
14641 name "Table Customization"
14646 \begin_inset LatexCommand index
14647 name "Table ! Customization"
14654 \begin_layout Subsection
14656 \begin_inset LatexCommand label
14657 name "sub:Row-Spacing"
14662 \begin_inset LatexCommand index
14663 name "Table Customization ! Row Spacing"
14670 \begin_layout Standard
14671 You can add vertical space to table rows in the
14675 tab of the table dialog.
14676 You find there three possibilities:
14679 \begin_layout Description
14682 row will add space above the characters of the table row.
14683 If the table is a formal table
14687 \begin_layout Standard
14688 Formal tables are explained in section\InsetSpace ~
14690 \begin_inset LatexCommand ref
14691 reference "sec:Formal-Tables"
14700 LyX will insert as default 0.5\InsetSpace \thinspace{}
14702 For normal tables the inserted space will unfortunately destroy the vertical
14703 table lines as in the following table:
14704 \begin_inset VSpace defskip
14713 \begin_layout Standard
14725 \begin_inset Tabular
14726 <lyxtabular version="3" rows="3" columns="1">
14728 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14729 <row topline="true">
14730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14733 \begin_layout Standard
14740 <row topline="true" topspace="3mm">
14741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14744 \begin_layout Standard
14745 3\InsetSpace \thinspace{}
14746 mm space top of row
14752 <row topline="true" bottomline="true">
14753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14756 \begin_layout Standard
14773 \begin_layout Standard
14783 \begin_inset VSpace defskip
14788 So inserting space to the top of row for normal tables is only useful when
14789 you don't have vertical lines.
14792 \begin_layout Description
14793 Bottom\InsetSpace ~
14795 row will add space below the characters of the table row.
14796 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14798 normal tables the default size is 2\InsetSpace \thinspace{}
14802 \begin_layout Description
14803 Between\InsetSpace ~
14804 rows adds space between the current and the following row.
14805 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14807 For normal tables the inserted space will unfortunately destroy the vertical
14808 table lines as in the following table:
14809 \begin_inset VSpace defskip
14818 \begin_layout Standard
14830 \begin_inset Tabular
14831 <lyxtabular version="3" rows="3" columns="1">
14833 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14834 <row topline="true">
14835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14838 \begin_layout Standard
14845 <row topline="true" interlinespace="3mm">
14846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14849 \begin_layout Standard
14850 \begin_inset Formula $\downarrow$
14853 3\InsetSpace \thinspace{}
14854 mm space between row
14855 \begin_inset Formula $\downarrow$
14864 <row topline="true" bottomline="true">
14865 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14868 \begin_layout Standard
14869 \begin_inset Formula $\uparrow$
14872 3\InsetSpace \thinspace{}
14873 mm space between row
14874 \begin_inset Formula $\uparrow$
14893 \begin_layout Standard
14903 \begin_inset VSpace defskip
14908 So inserting space between rows for normal tables is only useful when you
14909 don't have vertical lines.
14912 \begin_layout Standard
14913 When you want to add extra height to all cells of all tables, you can do
14914 this with the following preamble line:
14917 \begin_layout Standard
14924 extrarowheight}{height}
14927 \begin_layout Standard
14928 But this has the disadvantage that the cell texts are no longer exactly
14929 vertically centered.
14932 \begin_layout Subsection
14933 Special Cell Alignment
14934 \begin_inset LatexCommand index
14935 name "Table Customization ! Special Cell Alignment"
14942 \begin_layout Standard
14943 Sometimes it looks better when the cell entries of a column are aligned
14944 with a special character, e.\InsetSpace \thinspace{}
14946 with the decimal separator as in Table\InsetSpace ~
14948 \begin_inset LatexCommand ref
14949 reference "tab:Table-cells-of"
14956 \begin_layout Standard
14957 \begin_inset Float table
14963 \begin_layout Standard
14964 \begin_inset Caption
14966 \begin_layout Standard
14967 \begin_inset LatexCommand label
14968 name "tab:Table-cells-of"
14972 Table cells of a column aligned with the decimal separator.
14980 \begin_layout Standard
14982 \begin_inset Tabular
14983 <lyxtabular version="3" rows="4" columns="2">
14985 <column alignment="right" valignment="top" width="0">
14986 <column alignment="left" valignment="top" width="0" special="@{}l">
14987 <row bottomline="true">
14988 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
14991 \begin_layout Standard
14997 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15000 \begin_layout Standard
15008 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15011 \begin_layout Standard
15017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15020 \begin_layout Standard
15028 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15031 \begin_layout Standard
15037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15040 \begin_layout Standard
15048 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15051 \begin_layout Standard
15057 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15060 \begin_layout Standard
15079 \begin_layout Standard
15080 This table was created with a 4×2 table.
15081 The heading is a centered multicolumn.
15082 The first column is right-aligned and contains the digits before the decimal
15083 point and the decimal point.
15084 The second column is left aligned and contains the digits after the decimal
15086 To omit the space that is normally between two table columns, use the following
15087 LaTeX-argument for the second column:
15090 \begin_layout Standard
15096 \begin_layout Standard
15099 \begin_inset LatexCommand ref
15100 reference "tab:Several-table-cell"
15104 shows some example alignments.
15105 For the alignment with the relation sign, you must add the second smallest
15106 math-space at the beginning of the last column to get the correct space
15107 surrounding the relation sign.
15110 \begin_layout Standard
15111 \begin_inset Float table
15116 \begin_layout Standard
15117 \begin_inset Caption
15119 \begin_layout Standard
15120 \begin_inset LatexCommand label
15121 name "tab:Several-table-cell"
15125 Several table cell alignments.
15133 \begin_layout Standard
15135 \begin_inset Tabular
15136 <lyxtabular version="3" rows="4" columns="6">
15138 <column alignment="right" valignment="top" width="0">
15139 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15140 <column alignment="right" valignment="top" width="0">
15141 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15142 <column alignment="right" valignment="top" width="0">
15143 <column alignment="left" valignment="top" width="0" special="@{}l">
15144 <row bottomline="true">
15145 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15148 \begin_layout Standard
15154 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15157 \begin_layout Standard
15163 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15166 \begin_layout Standard
15172 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15175 \begin_layout Standard
15181 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15184 \begin_layout Standard
15190 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15193 \begin_layout Standard
15201 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15204 \begin_layout Standard
15210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15213 \begin_layout Standard
15214 24\InsetSpace \thinspace{}
15220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15223 \begin_layout Standard
15224 \begin_inset Formula $10\cdot$
15232 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15235 \begin_layout Standard
15236 \begin_inset Formula $10^{\mbox{-}17}$
15244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15247 \begin_layout Standard
15248 \begin_inset Formula $\Gamma(t)\propto$
15256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15259 \begin_layout Standard
15260 \begin_inset Formula $\:\Upsilon(t)$
15270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15273 \begin_layout Standard
15279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15282 \begin_layout Standard
15283 768\InsetSpace \thinspace{}
15289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15292 \begin_layout Standard
15293 \begin_inset Formula $5.78\cdot$
15301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15304 \begin_layout Standard
15305 \begin_inset Formula $10^{7}$
15313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15316 \begin_layout Standard
15317 \begin_inset Formula $A\ne$
15325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15328 \begin_layout Standard
15329 \begin_inset Formula $\: B_{\mathrm{red}}$
15339 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15342 \begin_layout Standard
15348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15351 \begin_layout Standard
15352 6\InsetSpace \thinspace{}
15358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15361 \begin_layout Standard
15363 \begin_inset Formula $33.5\cdot$
15371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15374 \begin_layout Standard
15375 \begin_inset Formula $10^{4}$
15383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15386 \begin_layout Standard
15387 \begin_inset Formula $\sin(\alpha)\ge$
15395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15398 \begin_layout Standard
15399 \begin_inset Formula $\:\sin(\beta)$
15420 \begin_layout Standard
15421 \begin_inset VSpace bigskip
15424 There is also the LaTeX-package
15429 \begin_inset LatexCommand index
15430 name "LaTeX-packages ! dcolumn"
15434 that provides table cell alignments.
15435 But this unfortunately treats the cell entries as math and doesn't allow
15436 formulas in table cells: The first column of Table\InsetSpace ~
15438 \begin_inset LatexCommand ref
15439 reference "tab:Several-table-cell"
15447 like the first column in Table\InsetSpace ~
15449 \begin_inset LatexCommand ref
15450 reference "tab:Alignments-when"
15454 and only with some tricks like the expected.
15455 The alignment of the second and third column of Table\InsetSpace ~
15457 \begin_inset LatexCommand ref
15458 reference "tab:Several-table-cell"
15462 is not possible with
15469 \begin_layout Standard
15470 \begin_inset Float table
15476 \begin_layout Standard
15477 \begin_inset Caption
15479 \begin_layout Standard
15480 \begin_inset LatexCommand label
15481 name "tab:Alignments-when"
15485 Alignments when LaTeX-package dcolumn is used.
15486 For all column alignments tricks have to be used to get the output.
15494 \begin_layout Standard
15496 \begin_inset Tabular
15497 <lyxtabular version="3" rows="4" columns="3">
15499 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
15500 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
15501 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
15502 <row bottomline="true">
15503 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15506 \begin_layout Standard
15512 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15515 \begin_layout Standard
15521 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15524 \begin_layout Standard
15532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15535 \begin_layout Standard
15536 12x24\InsetSpace \thinspace{}
15542 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15545 \begin_layout Standard
15546 12x24\InsetSpace \thinspace{}
15548 \begin_inset Formula $\mbox{bottles}$
15556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15559 \begin_layout Standard
15564 \begin_layout Standard
15574 \begin_inset Formula $\mbox{bottles}$
15584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15587 \begin_layout Standard
15588 1024x768\InsetSpace \thinspace{}
15594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15597 \begin_layout Standard
15598 1024x768\InsetSpace \thinspace{}
15600 \begin_inset Formula $\mbox{Pixels}$
15608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15611 \begin_layout Standard
15616 \begin_layout Standard
15626 \begin_inset Formula $\mbox{Pixels}$
15636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15639 \begin_layout Standard
15640 32x6\InsetSpace \thinspace{}
15646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15649 \begin_layout Standard
15650 32x6\InsetSpace \thinspace{}
15652 \begin_inset Formula $\mbox{cm}$
15660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15663 \begin_layout Standard
15668 \begin_layout Standard
15678 \begin_inset Formula $\mbox{cm}$
15699 \begin_layout Subsection
15700 Customized Cell/Column Format
15701 \begin_inset LatexCommand label
15702 name "sub:Customized-Format"
15707 \begin_inset LatexCommand index
15708 name "Table Customization ! Cell/Column Format"
15715 \begin_layout Standard
15716 Calculating the needed width for spanned columns like in section\InsetSpace ~
15718 \begin_inset LatexCommand ref
15719 reference "sub:Multicolumn-Calculations"
15723 is very annoying if you have several tables with multicolumn cells.
15724 To make life easier, you can define a cell/column format in the preamble,
15725 so that it can be used in all tables of the document.
15726 The format is defined with the command
15729 \begin_layout Standard
15734 newcolumntype{name of format}[number of arguments]{commands}
15737 \begin_layout Standard
15738 The format name may only consist of one letter.
15763 are predefined and cannot be used.
15764 But all letters are allowed as capitals.
15767 \begin_layout Standard
15768 \begin_inset VSpace medskip
15774 \begin_layout Standard
15775 For vertically and horizontally centered multicolumn cells with a fixed
15776 width you can define the cell format
15779 \begin_layout Standard
15784 newcolumntype{M}[1]{>{
15791 \begin_layout Standard
15798 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15800 \begin_inset LatexCommand ref
15801 reference "sub:Multiple-Lines-in"
15806 Now you can simply enter
15809 \begin_layout Standard
15815 \begin_layout Standard
15816 as LaTeX-argument in the table dialog to create a multicolumn.
15819 \begin_layout Standard
15820 \begin_inset VSpace bigskip
15826 \begin_layout Standard
15827 For cells spanned by a multicolumn cell, you can define the format
15830 \begin_layout Standard
15835 newcolumntype{S}[2]{>{
15845 \begin_layout Standard
15856 newcolumntype{S}[2]
15860 \begin_layout Standard
15871 arrayrulewidth)*(1-#2))/#2}}
15874 \begin_layout Standard
15875 This format uses equation
15876 \begin_inset LatexCommand eqref
15881 to calculate the needed width so that each spanned cell has the same width.
15884 \begin_layout Standard
15888 \begin_layout Standard
15891 S{width of multicolumn cell}{number of spanned columns}
15894 \begin_layout Standard
15895 as LaTeX-argument of the column.
15898 \begin_layout Standard
15899 \begin_inset VSpace bigskip
15905 \begin_layout Standard
15906 For colored columns, you can define
15909 \begin_layout Standard
15914 newcolumntype{K}[1]{>{
15921 \begin_layout Standard
15923 \begin_inset Quotes eld
15927 \begin_inset Quotes erd
15930 at the end creates a column with a flexible width whose text is horizontally
15935 \begin_layout Standard
15941 \begin_layout Standard
15945 \begin_layout Standard
15946 \begin_inset VSpace bigskip
15952 \begin_layout Standard
15953 To create Table\InsetSpace ~
15955 \begin_inset LatexCommand ref
15956 reference "tab:Table-using-user-defined"
15960 use the LaTeX-arguments
15963 \begin_layout Standard
15969 \begin_layout Standard
15970 for the first column and the multicolumn,
15973 \begin_layout Standard
15979 \begin_layout Standard
15980 for the the last column, and
15983 \begin_layout Standard
15989 \begin_layout Standard
15990 for the cells in the second column.
15993 \begin_layout Standard
15994 \begin_inset Float table
16000 \begin_layout Standard
16001 \begin_inset Caption
16003 \begin_layout Standard
16004 \begin_inset LatexCommand label
16005 name "tab:Table-using-user-defined"
16009 Table using user-defined table formats
16017 \begin_layout Standard
16019 \begin_inset Tabular
16020 <lyxtabular version="3" rows="3" columns="4">
16022 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16023 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16024 <column alignment="center" valignment="middle" leftline="true" width="0">
16025 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16026 <row topline="true">
16027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16030 \begin_layout Standard
16031 verylongtablecellword
16036 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16039 \begin_layout Standard
16040 multiple lines multicolumn
16045 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16048 \begin_layout Standard
16054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16057 \begin_layout Standard
16064 <row topline="true">
16065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16068 \begin_layout Standard
16074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16077 \begin_layout Standard
16083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16086 \begin_layout Standard
16092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16095 \begin_layout Standard
16102 <row topline="true" bottomline="true">
16103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16106 \begin_layout Standard
16112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16115 \begin_layout Standard
16121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16124 \begin_layout Standard
16130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16133 \begin_layout Standard
16152 \begin_layout Subsection
16154 \begin_inset LatexCommand label
16155 name "sub:Line-Thickness"
16160 \begin_inset LatexCommand index
16161 name "Table Customization ! Line Thickness"
16168 \begin_layout Standard
16169 The line thickness for all lines in a table can be adjusted with the length
16177 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16178 pt, like in Table\InsetSpace ~
16180 \begin_inset LatexCommand ref
16181 reference "tab:Table-with-1.5"
16185 , insert the command
16188 \begin_layout Standard
16195 arrayrulewidth}{1.5pt}
16198 \begin_layout Standard
16199 in ERT before the table or table float.
16200 The changed thickness is valid for all following tables.
16201 To use the default value again, set
16207 to 0.4\InsetSpace \thinspace{}
16208 pt in ERT behind the table or table float.
16211 \begin_layout Standard
16215 \begin_layout Standard
16221 arrayrulewidth}{1.5pt}
16227 \begin_inset Float table
16232 \begin_layout Standard
16233 \begin_inset Caption
16235 \begin_layout Standard
16236 \begin_inset LatexCommand label
16237 name "tab:Table-with-1.5"
16241 Table with 1.5\InsetSpace \thinspace{}
16250 \begin_layout Standard
16252 \begin_inset Tabular
16253 <lyxtabular version="3" rows="3" columns="3">
16255 <column alignment="center" valignment="top" leftline="true" width="0">
16256 <column alignment="center" valignment="top" leftline="true" width="0">
16257 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16258 <row topline="true">
16259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16262 \begin_layout Standard
16268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16271 \begin_layout Standard
16277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16280 \begin_layout Standard
16287 <row topline="true">
16288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16291 \begin_layout Standard
16297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16300 \begin_layout Standard
16306 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16309 \begin_layout Standard
16316 <row topline="true" bottomline="true">
16317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16320 \begin_layout Standard
16326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16329 \begin_layout Standard
16335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16338 \begin_layout Standard
16358 \begin_layout Standard
16364 arrayrulewidth}{0.4pt}
16372 \begin_layout Standard
16373 \begin_inset VSpace bigskip
16376 To set the line thickness to 1.5\InsetSpace \thinspace{}
16377 pt only for horizontal lines, like in Table\InsetSpace ~
16379 \begin_inset LatexCommand ref
16380 reference "tab:Table-with-horizontal"
16384 , insert these commands in ERT before the table or table float:
16387 \begin_layout Standard
16410 arrayrulewidth 1.5pt}
16420 arrayrulewidth 0.4pt}}
16423 \begin_layout Standard
16424 To return to the default line thickness, insert this command in ERT behind
16425 the table or table float:
16428 \begin_layout Standard
16440 \begin_layout Standard
16444 \begin_layout Standard
16455 \begin_layout Standard
16464 \begin_layout Standard
16472 arrayrulewidth 1.5pt}
16475 \begin_layout Standard
16485 arrayrulewidth 0.4pt}}
16491 \begin_inset Float table
16496 \begin_layout Standard
16497 \begin_inset Caption
16499 \begin_layout Standard
16500 \begin_inset LatexCommand label
16501 name "tab:Table-with-horizontal"
16505 Table with 1.5\InsetSpace \thinspace{}
16506 pt thick horizontal lines
16514 \begin_layout Standard
16516 \begin_inset Tabular
16517 <lyxtabular version="3" rows="3" columns="3">
16519 <column alignment="center" valignment="top" leftline="true" width="0">
16520 <column alignment="center" valignment="top" leftline="true" width="0">
16521 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16522 <row topline="true">
16523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16526 \begin_layout Standard
16532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16535 \begin_layout Standard
16541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16544 \begin_layout Standard
16551 <row topline="true">
16552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16555 \begin_layout Standard
16561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16564 \begin_layout Standard
16570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16573 \begin_layout Standard
16580 <row topline="true" bottomline="true">
16581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16584 \begin_layout Standard
16590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16593 \begin_layout Standard
16599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16602 \begin_layout Standard
16622 \begin_layout Standard
16638 \begin_layout Standard
16639 \begin_inset VSpace bigskip
16642 To set the line thickness to 1.5\InsetSpace \thinspace{}
16643 pt only for vertical lines, create the following
16644 column format in the document preamble, according to the description in
16645 section\InsetSpace ~
16647 \begin_inset LatexCommand ref
16648 reference "sub:Customized-Format"
16655 \begin_layout Standard
16660 newcolumntype{V}{!{
16662 vrule width 1.5pt}}
16665 \begin_layout Standard
16666 For Table\InsetSpace ~
16668 \begin_inset LatexCommand ref
16669 reference "tab:Table-with-vertical"
16676 \begin_layout Standard
16682 \begin_layout Standard
16683 was used for the last column and
16686 \begin_layout Standard
16692 \begin_layout Standard
16693 for the other columns.
16696 \begin_layout Standard
16697 \begin_inset Float table
16702 \begin_layout Standard
16703 \begin_inset Caption
16705 \begin_layout Standard
16706 \begin_inset LatexCommand label
16707 name "tab:Table-with-vertical"
16711 Table with 1.5\InsetSpace \thinspace{}
16712 pt thick vertical lines
16720 \begin_layout Standard
16722 \begin_inset Tabular
16723 <lyxtabular version="3" rows="3" columns="3">
16725 <column alignment="center" valignment="top" width="0" special="Vc">
16726 <column alignment="center" valignment="top" width="0" special="Vc">
16727 <column alignment="center" valignment="top" width="0" special="VcV">
16728 <row topline="true">
16729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16732 \begin_layout Standard
16738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16741 \begin_layout Standard
16747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16750 \begin_layout Standard
16757 <row topline="true">
16758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16761 \begin_layout Standard
16767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16770 \begin_layout Standard
16776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16779 \begin_layout Standard
16786 <row topline="true" bottomline="true">
16787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16790 \begin_layout Standard
16796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16799 \begin_layout Standard
16805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16808 \begin_layout Standard
16827 \begin_layout Subsection
16829 \begin_inset LatexCommand index
16830 name "Table Customization ! Dashed Lines"
16837 \begin_layout Standard
16841 \begin_layout Standard
16851 \begin_inset Note Note
16854 \begin_layout Standard
16855 The following section will only be displayed when you have the LaTeX-package
16868 \begin_layout Standard
16869 \begin_inset Float table
16875 \begin_layout Standard
16876 \begin_inset Caption
16878 \begin_layout Standard
16879 \begin_inset LatexCommand label
16880 name "tab:Table-with-dashed"
16884 Table with dashed lines
16892 \begin_layout Standard
16894 \begin_inset Tabular
16895 <lyxtabular version="3" rows="5" columns="5">
16897 <column alignment="center" valignment="top" leftline="true" width="0">
16898 <column alignment="center" valignment="top" leftline="true" width="0">
16899 <column alignment="center" valignment="top" width="0" special=":c">
16900 <column alignment="center" valignment="top" leftline="true" width="0">
16901 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16902 <row topline="true" bottomline="true">
16903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16906 \begin_layout Standard
16912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16915 \begin_layout Standard
16921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16924 \begin_layout Standard
16930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16933 \begin_layout Standard
16939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16942 \begin_layout Standard
16949 <row topline="true">
16950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16953 \begin_layout Standard
16959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16962 \begin_layout Standard
16968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16971 \begin_layout Standard
16977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16980 \begin_layout Standard
16986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16989 \begin_layout Standard
16997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17000 \begin_layout Standard
17004 \begin_layout Standard
17018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17021 \begin_layout Standard
17027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17030 \begin_layout Standard
17036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17039 \begin_layout Standard
17045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17048 \begin_layout Standard
17055 <row topline="true">
17056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17059 \begin_layout Standard
17063 \begin_layout Standard
17077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17080 \begin_layout Standard
17086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17089 \begin_layout Standard
17095 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17098 \begin_layout Standard
17104 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17107 \begin_layout Standard
17114 <row topline="true" bottomline="true">
17115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17118 \begin_layout Standard
17124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17127 \begin_layout Standard
17133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17136 \begin_layout Standard
17142 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17145 \begin_layout Standard
17151 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17154 \begin_layout Standard
17173 \begin_layout Standard
17174 LyX doesn't natively support dashed lines, so you have to use ERT.
17175 As prerequisite the LaTeX-package
17180 \begin_inset LatexCommand index
17181 name "LaTeX-packages ! arydshln"
17185 must be loaded in the document preamble with the command
17188 \begin_layout Standard
17193 usepackage{arydshln}
17196 \begin_layout Standard
17197 To make a vertical line dashed, enter the colon
17198 \begin_inset Quotes eld
17202 \begin_inset Quotes erd
17205 together with the character for the horizontal alignment as LaTeX-argument
17206 in the table cell dialog.
17209 \begin_layout Standard
17210 For a horizontal dashed line add the command
17213 \begin_layout Standard
17221 \begin_layout Standard
17222 in ERT as first element of the first cell in the table row.
17225 \begin_layout Standard
17226 For dashed multicolumn lines use the command
17229 \begin_layout Standard
17234 cdashline{line number
17239 \begin_layout Standard
17240 in ERT as first element of the first cell in the table row.
17241 If you have for example a multicolumn spanning over columns 2 to 4 and
17242 you want to have a dashed line above, add the command
17245 \begin_layout Standard
17253 \begin_layout Standard
17254 as first element of the first cell in the row of the multicolumn.
17257 \begin_layout Standard
17258 \begin_inset VSpace bigskip
17264 \begin_layout Standard
17267 \begin_inset LatexCommand ref
17268 reference "tab:Table-with-dashed"
17273 \begin_inset Quotes eld
17281 \begin_inset Quotes erd
17284 as LaTeX-argument of the third column.
17291 was inserted to the first cell of the third row and the the ERT command
17300 was inserted to the first cell of the fourth row.
17303 \begin_layout Standard
17304 \begin_inset Note Greyedout
17307 \begin_layout Standard
17312 The used LaTeX-package
17316 is apparently not compatible with the LaTeX-package
17321 \begin_inset LatexCommand index
17322 name "LaTeX-packages ! colortbl"
17326 that is used for colored tables in section\InsetSpace ~
17328 \begin_inset LatexCommand ref
17329 reference "sec:Colored-Tables"
17334 That means colored tables cannot have dashed lines.
17342 \begin_layout Standard
17346 \begin_layout Standard
17356 \begin_inset Note Note
17359 \begin_layout Standard
17360 The following will be displayed when the LaTeX-package
17372 \begin_layout Standard
17373 You need to install the package
17377 to see the contents of this section in the output.
17380 \begin_layout Standard
17384 \begin_layout Standard
17396 \begin_layout Chapter
17398 \begin_inset LatexCommand index
17404 \begin_inset LatexCommand label
17412 \begin_layout Section
17414 \begin_inset LatexCommand label
17415 name "sec:FloatIntroduction"
17420 \begin_inset LatexCommand index
17421 name "Floats ! Introduction"
17428 \begin_layout Standard
17429 A float is a block of text associated with some sort of label, which doesn't
17430 have a fixed location.
17432 \begin_inset Quotes eld
17436 \begin_inset Quotes erd
17439 forward or backward a page or two, to wherever it fits best.
17446 Margin\InsetSpace ~
17449 are also floats, because they can float to the next page when there are
17450 too many notes at the page.
17453 \begin_layout Standard
17454 Floats allow a high quality layout.
17455 Images and tables can evenly be spread to the pages to avoid white space
17456 and pages without text.
17457 As the floating often destroys the context between the text and the image/table
17458 , every float can be referenced in the text.
17459 Floats are therefore numbered.
17460 Referencing is described in section\InsetSpace ~
17462 \begin_inset LatexCommand ref
17463 reference "sec:Referencing-Floats"
17470 \begin_layout Standard
17471 To insert a float, use the menu
17473 Insert\SpecialChar \menuseparator
17481 inset, a box with a label.
17482 The label will automatically be translated to the document language in
17484 Behind the label you can insert the caption text.
17485 The image or table is inserted above or below the caption in a separate
17486 paragraph within the float.
17487 More about the caption placement is described in section\InsetSpace ~
17489 \begin_inset LatexCommand ref
17490 reference "sec:Caption-Placement"
17495 To keep your LyX-document readable, you can open and close the float box
17496 by left-clicking on the box label.
17497 A closed float box looks like this:
17498 \begin_inset Graphics
17499 filename clipart/floatQt4.png
17504 -- a gray button with a red label.
17507 \begin_layout Standard
17508 It is recommended to insert floats as a separate paragraph to avoid possible
17509 LaTeX-errors that can occur when the surrounding text is specially formatted.
17512 \begin_layout Standard
17513 Existing figures or tables can be put into a float by marking them and then
17514 pressing the corresponding toolbar button for a new float.
17517 \begin_layout Section
17521 \begin_layout Standard
17522 Besides figure and table floats that are described in section\InsetSpace ~
17524 \begin_inset LatexCommand ref
17525 reference "sec:Figure-Floats"
17530 \begin_inset LatexCommand ref
17531 reference "sec:Table-Floats"
17535 , respectively, LyX offers the float types
17548 \begin_layout Subsection
17550 \begin_inset LatexCommand index
17551 name "Floats ! Algorithms"
17558 \begin_layout Standard
17559 \begin_inset Float algorithm
17565 \begin_layout Standard
17566 \begin_inset Caption
17568 \begin_layout Standard
17569 \begin_inset LatexCommand label
17570 name "alg:Example-Algorithm-float"
17574 Example Algorithm float
17582 \begin_layout LyX-Code
17585 Sum:= Sum + A(I); /*senseless comment*/
17588 \begin_inset VSpace -4mm
17599 \begin_layout Standard
17600 This float type is inserted with the menu
17602 Insert\SpecialChar \menuseparator
17603 Floats\SpecialChar \menuseparator
17607 It is used for program codes and descriptions of algorithms.
17608 A possible environment for algorithms is the
17612 , described in LyX's
17617 Algorithm\InsetSpace ~
17619 \begin_inset LatexCommand ref
17620 reference "alg:Example-Algorithm-float"
17624 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17625 mm vertical space was added
17626 at the end of the float to have the bottom rule exactly below the last
17630 \begin_layout Standard
17631 The float label is not automatically translated into the document language.
17632 If your document is not in English, you have to do this manually by adding
17633 the following line to the document preamble
17638 \begin_layout Standard
17643 floatname{algorithm}{your\InsetSpace ~
17647 \begin_layout Standard
17654 \begin_inset Quotes eld
17662 \begin_inset Quotes erd
17668 \begin_layout Description
17673 When the LaTeX-package
17678 \begin_inset LatexCommand index
17679 name "LaTeX-packages ! hyperref"
17683 is used to link cross-references to floats in the PDF-output, it must be
17684 loaded in the document preamble before the definition of floats to be able
17685 to reference floats.
17686 As LyX sets the float definition for algorithm floats automatically before
17687 the user editable part of the document preamble, you need to insert the
17688 following preamble lines
17692 the loading command of
17699 \begin_inset VSpace defskip
17706 newfloat{Xalgorithm}{tbp}{loa}
17710 floatname{Xalgorithm}{your\InsetSpace ~
17723 renewenvironment{algorithm}[1][tbp]
17729 \begin_layout Standard
17740 begin{Xalgorithm}[#1]}{
17743 \begin_inset VSpace defskip
17756 \begin_inset Quotes eld
17764 \begin_inset Quotes erd
17770 \begin_layout Standard
17771 Algorithm floats are not by default numbered in the scheme
17772 \begin_inset Quotes eld
17776 \begin_inset Quotes erd
17779 like it is the case for table and figure floats in many document-classes.
17780 To number algorithm floats in the same scheme, add this command to your
17784 \begin_layout Standard
17789 numberwithin{algorithm}{chapter}
17792 \begin_layout Standard
17793 If you use the LaTeX-package
17797 , add this line instead
17805 (the commands from above) to the preamble:
17808 \begin_layout Standard
17813 numberwithin{Xalgorithm}{chapter}
17816 \begin_layout Standard
17817 To be able to use the command
17828 in the document settings the option
17838 \begin_layout Subsection
17840 \begin_inset LatexCommand index
17841 name "Floats ! Text Wrap Floats"
17846 \begin_inset LatexCommand label
17847 name "sub:floatflt-wrap-float"
17854 \begin_layout Standard
17855 This float type is used if you want to
17856 \begin_inset Quotes eld
17860 \begin_inset Quotes erd
17863 text around a figure so that it only occupies some fraction of the column
17865 It can be inserted using the menu
17866 \begin_inset Wrap figure
17871 \begin_layout Standard
17872 \begin_inset Graphics
17873 filename clipart/mobius.eps
17876 rotateOrigin center
17883 \begin_layout Standard
17884 \begin_inset Caption
17886 \begin_layout Standard
17887 \begin_inset LatexCommand label
17888 name "fig:This-is-a"
17892 This is a wrapped figure, and this is the brilliant caption that describes
17894 \begin_inset VSpace medskip
17909 Insert\SpecialChar \menuseparator
17910 Floats\SpecialChar \menuseparator
17915 if the LaTeX-package
17917 f\SpecialChar \textcompwordmark{}
17918 loatf\SpecialChar \textcompwordmark{}
17922 \begin_inset LatexCommand index
17923 name "LaTeX-packages ! floatflt"
17931 \begin_layout Standard
17932 Installing a LaTeX-package is explained it in the
17942 The width and placement of the float is adjusted by right-clicking on the
17944 Figure\InsetSpace ~
17946 \begin_inset LatexCommand ref
17947 reference "fig:This-is-a"
17951 is an example text wrap float with a width of 40
17952 \begin_inset Formula $\,$
17959 \begin_layout Standard
17960 Available units are explained in
17961 \begin_inset LatexCommand ref
17962 reference "cha:Units-available-in"
17971 Some space was added under the caption to separate it better from the surroundi
17975 \begin_layout Standard
17978 f\SpecialChar \textcompwordmark{}
17979 loatf\SpecialChar \textcompwordmark{}
17982 also supports table wrap floats, but they are not yet supported by LyX.
17983 If you need this, read the documentation of
17985 f\SpecialChar \textcompwordmark{}
17986 loatf\SpecialChar \textcompwordmark{}
17990 \begin_inset LatexCommand cite
17998 \begin_layout Standard
17999 \begin_inset Note Greyedout
18002 \begin_layout Standard
18008 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18010 having a figure too close to the bottom
18011 of the page can mess things up in the way that the float doesn't appear
18012 in the output or that it is placed over some other text.
18016 \begin_layout Standard
18017 The better solution is to use the LaTeX-package
18019 wrapf\SpecialChar \textcompwordmark{}
18023 \begin_inset LatexCommand index
18024 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18030 f\SpecialChar \textcompwordmark{}
18031 loatf\SpecialChar \textcompwordmark{}
18034 , but it is currently not supported by LyX.
18047 \begin_layout Standard
18051 \begin_layout Itemize
18052 Wrap floats should not be placed in paragraphs that run over a page break.
18053 That means that wrap floats should better be inserted to the exact place
18054 when the document is nearly finished and you are able to estimate where
18055 page breaks will appear.
18058 \begin_layout Itemize
18059 Wrap floats should either be placed in an own paragraph before the paragraph
18060 where they should wrap into or within a paragraph.
18063 \begin_layout Itemize
18064 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18065 there is a text paragraph between them as separator.
18068 \begin_layout Itemize
18069 Wrap floats are not allowed in section headings or tables.
18072 \begin_layout Section
18074 \begin_inset LatexCommand label
18075 name "sec:Float-Numbering"
18080 \begin_inset LatexCommand index
18081 name "Floats ! Numbering"
18088 \begin_layout Standard
18089 Floats are usually numbered either independent from the sections the floats
18090 are in, or in the scheme
18091 \begin_inset Quotes eld
18095 \begin_inset Quotes erd
18099 \begin_inset Quotes eld
18103 \begin_inset Quotes erd
18107 This depends on the used document class.
18110 \begin_layout Standard
18111 To change the section independent numbering, you can use this command in
18112 the document preamble:
18115 \begin_layout Standard
18127 \begin_layout Standard
18134 is the command that prints the table number, for figure floats, the command
18148 prints in the command above the table number as small roman number.
18151 \begin_layout Standard
18152 To change the numbering scheme for example to
18153 \begin_inset Quotes eld
18157 \begin_inset Quotes erd
18160 , use this command in the preamble:
18163 \begin_layout Standard
18168 numberwithin{table}{subsection}
18171 \begin_layout Standard
18172 To be able to use the command
18183 in the document settings the option
18193 \begin_layout Standard
18194 Please also have a look at section\InsetSpace ~
18196 \begin_inset LatexCommand ref
18197 reference "sub:Footnote-Numbering"
18201 for the details and important notes about the numbering commands.
18204 \begin_layout Section
18206 \begin_inset LatexCommand label
18207 name "sec:Referencing-Floats"
18212 \begin_inset LatexCommand index
18213 name "Floats ! References"
18218 \begin_inset LatexCommand index
18226 \begin_layout Standard
18227 To reference a float, insert a label into its caption using the menu
18229 Insert\SpecialChar \menuseparator
18232 or the toolbar button
18233 \begin_inset Graphics
18234 filename ../images/label-insert.xpm
18240 A grey label box like this one:
18241 \begin_inset Graphics
18242 filename clipart/labelQt4.png
18247 will be inserted and the label window pops up asking for the label text.
18248 LyX offers as text the first words of the caption with a prefix.
18249 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18251 for figure floats the prefix will
18259 \begin_layout Standard
18260 The label is used as anchor and name for the reference.
18261 You can refer to the label using the menu
18263 Insert\SpecialChar \menuseparator
18266 or the toolbar button
18267 \begin_inset Graphics
18268 filename ../images/dialog-show-new-inset_ref.xpm
18274 A grey cross-reference box like this one:
18275 \begin_inset Graphics
18276 filename clipart/referenceQt4.png
18281 will be inserted and the cross-reference window appear showing all labels
18283 If you have multiple LyX-documents opened, choose the one you are working
18284 on from the drop-list at the top of the dialog.
18285 You can now sort the labels alphabetically and then choose one.
18286 At the position of the cross-reference box the float number will appear
18290 \begin_layout Standard
18291 It is recommended to use a protected space between the cross-reference name
18292 and its number to avoid line breaks between them.
18293 If a cross-reference refers to a non-existing label, you will see two question
18294 marks in the output instead of the reference.
18297 \begin_layout Standard
18298 You can change labels at any time by clicking on the label box.
18299 References to the changed label will automatically change its link to the
18300 new label text, so that you don't need to take care about this.
18303 \begin_layout Standard
18310 in the cross-reference window sets the cursor before the referred label.
18311 The button text changes then to Go\InsetSpace ~
18312 Back and you can use it to set the cursor
18313 back to the cross-reference.
18314 Right-clicking on a cross-reference box also sets the cursor before the
18315 referenced label but without a possibility to go back.
18318 \begin_layout Subsection
18319 Cross-Reference Formats
18320 \begin_inset LatexCommand label
18321 name "sub:Cross-Reference-Formats"
18326 \begin_inset LatexCommand index
18327 name "References ! Formats"
18334 \begin_layout Standard
18335 There are six varieties of cross-references:
18338 \begin_layout Description
18339 <reference>: prints the float number, this is the default:
18340 \begin_inset LatexCommand ref
18341 reference "fig:Two-distorted-images"
18348 \begin_layout Description
18349 (<reference>): prints the float number within two parentheses, this is the
18350 style normally used to reference formulas, especially when the reference
18352 \begin_inset Quotes eld
18356 \begin_inset Quotes erd
18360 \begin_inset LatexCommand eqref
18368 \begin_layout Description
18369 <page>: prints the page number: Page\InsetSpace ~
18371 \begin_inset LatexCommand pageref
18372 reference "fig:Two-distorted-images"
18379 \begin_layout Description
18382 <page>: prints the text "on page" and the page number:
18383 \begin_inset LatexCommand vpageref
18384 reference "fig:Two-distorted-images"
18391 \begin_layout Description
18392 <reference>\InsetSpace ~
18395 <page>: prints the float number, the text "on page", and
18397 \begin_inset LatexCommand vref
18398 reference "fig:Two-distorted-images"
18405 \begin_layout Description
18406 Formatted\InsetSpace ~
18407 reference: prints a self defined cross-reference format.
18409 \begin_inset Note Greyedout
18412 \begin_layout Standard
18417 This feature is only available when you have the LaTeX-package
18429 \begin_layout Standard
18430 Note that the style <page> won't print the page number if the label is on
18431 the previous, the same, or the next page.
18432 You will e.\InsetSpace \thinspace{}
18435 \begin_inset Quotes eld
18443 \begin_inset Quotes erd
18449 \begin_layout Standard
18450 The number and current page of the referred document part in the output,
18451 is automatically calculated by LaTeX.
18452 The varieties are adjusted in the field
18456 of the cross-reference window, that appear when you click on the cross-referenc
18460 \begin_layout Subsection
18461 Referencing Subfigures
18462 \begin_inset LatexCommand label
18463 name "sub:Referencing-Subfigures"
18468 \begin_inset LatexCommand index
18469 name "References ! to Subfigures"
18476 \begin_layout Standard
18477 Currently referencing subfigures is not supported by LyX, so you have to
18478 use LaTeX-commands.
18479 The label is the created with the command
18482 \begin_layout Standard
18487 label{fig:YourLabelName}
18490 \begin_layout Standard
18491 that is directly inserted into the subfigure caption field.
18492 To reference the label add this command in ERT
18495 \begin_layout Standard
18500 ref{fig:YourLabelName}
18503 \begin_layout Standard
18504 to the position in your document where the reference should be placed.
18505 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18510 \begin_layout Standard
18522 \begin_layout Subsection
18523 Automatic Reference Naming
18524 \begin_inset LatexCommand index
18525 name "References ! Automatic Reference Naming"
18532 \begin_layout Standard
18537 provides a very useful feature that cross-references automatically include
18538 the name of the referenced floats (or text parts like sections).
18539 You save to write e.\InsetSpace \thinspace{}
18542 \begin_inset Quotes eld
18546 \begin_inset Quotes erd
18549 before every reference box.
18550 To get this automatic reference naming, you have to load the LaTeX-package
18556 \begin_inset LatexCommand index
18557 name "LaTeX-packages ! hyperref"
18561 in the document preamble with
18564 \begin_layout Standard
18569 usepackage[pdfborder={0 0 0}]{hyperref}
18584 \begin_layout Standard
18589 is used to link cross-references in the DVI- and PDF-output, this means
18590 that the reader of your document will be able to click on a table of content
18591 (TOC) entry or on a reference and he will be shown the referenced document
18597 also creates PDF-bookmarks for every section of your document to make it
18598 easier for readers to navigate through the document.
18599 This is also used in this document but when you have a look in the document
18600 preamble you will find various options in the load command of
18605 To learn more about the
18609 package, we refer to its documentation
18610 \begin_inset LatexCommand cite
18618 \begin_layout Standard
18619 \begin_inset Note Greyedout
18622 \begin_layout Standard
18627 Automatic reference naming cannot be used when you use cross-references
18630 Formatted\InsetSpace ~
18633 style, described in section\InsetSpace ~
18635 \begin_inset LatexCommand ref
18636 reference "sub:Cross-Reference-Formats"
18648 \begin_layout Subsection
18650 \begin_inset LatexCommand label
18651 name "sub:Reference-Position"
18656 \begin_inset LatexCommand index
18657 name "References ! Reference Position"
18664 \begin_layout Standard
18670 \begin_inset LatexCommand index
18671 name "LaTeX-packages ! hyperref"
18675 to link cross-references in the output, you will see that clicking on an
18676 image float reference jumps to the image label.
18677 The caption will be the first text part on the screen, so that you cannot
18678 see the image without scrolling.
18679 This is because the reference link anchor is placed at the position of
18681 With the use of the package
18686 \begin_inset LatexCommand index
18687 name "LaTeX-packages ! hypcap"
18691 , which is part of the LaTeX-package
18696 \begin_inset LatexCommand index
18697 name "LaTeX-packages ! oberdiek"
18701 , the link anchor is placed at the beginning of a float.
18702 To use this feature for figure floats, load
18706 in the document preamble with the line
18709 \begin_layout Standard
18714 usepackage[f\SpecialChar \textcompwordmark{}
18718 \begin_layout Standard
18723 for all floats but this isn't recommended for stability reasons.
18724 For more informations, have a look at
18729 \begin_inset LatexCommand cite
18737 \begin_layout Standard
18738 \begin_inset Note Greyedout
18741 \begin_layout Standard
18750 must be loaded after
18754 in the document preamble.
18762 \begin_layout Standard
18763 \begin_inset Note Greyedout
18766 \begin_layout Standard
18775 has no effect for references to subfigures.
18783 \begin_layout Section
18785 \begin_inset LatexCommand label
18786 name "sec:Float-Placement"
18791 \begin_inset LatexCommand index
18792 name "Floats ! Placement"
18799 \begin_layout Standard
18800 Right-clicking on a float-box opens a dialog where you can alter the placement
18801 options that LaTeX uses for positioning the float.
18808 is only useful for two-column documents: If you select it, the float will
18809 span across both columns on the page instead of being confined to just
18814 Rotate\InsetSpace ~
18817 is used to rotate floats, see section
18818 \begin_inset LatexCommand ref
18819 reference "sec:Rotated-Floats"
18826 \begin_layout Standard
18827 You can use one ore more of the following options in the float dialog to
18828 set the placement for a particular float when you uncheck the option
18831 default\InsetSpace ~
18837 \begin_layout Description
18840 possible: try to place the float on the position where it is inserted
18843 \begin_layout Description
18846 page: try to place the float on the top of the current page
18849 \begin_layout Description
18850 Bottom\InsetSpace ~
18852 page: try to place the float on the bottom of the current page
18855 \begin_layout Description
18858 floats: try to place the float on an own page
18861 \begin_layout Standard
18862 The order of the above option is
18867 That means, if you use the default placement, LaTeX will first try out
18880 , and then the others.
18881 If you don't use the default, LaTeX will try only the checked options but
18883 If none of the 4 placements are possible the procedure is internally repeated
18884 but it is tried to put the float on the following page.
18887 \begin_layout Standard
18888 By default, each option has its own rules:
18891 \begin_layout Labeling
18892 \labelwidthstring 00.00.0000
18899 only floats occupying less than 70\InsetSpace \thinspace{}
18900 % of the page can be placed at the top
18910 \begin_layout Labeling
18911 \labelwidthstring 00.00.0000
18914 Bottom\InsetSpace ~
18918 : only floats occupying less than 30\InsetSpace \thinspace{}
18919 % of the page can be placed at the bottom
18930 \begin_layout Labeling
18931 \labelwidthstring 00.00.0000
18938 : only if more than 50\InsetSpace \thinspace{}
18939 % of the page are occupied by floats, several floats
18940 can be set together on a page.
18950 \begin_layout Standard
18951 If you don't like these rules, you can ignore them by using the additional
18954 Ignore\InsetSpace ~
18960 You can also redefine the rules with LaTeX-commands that are given in parenthese
18961 s behind the rules description above.
18962 To increase for example the often too small default of the bottom-rule
18963 to 50\InsetSpace \thinspace{}
18964 % of the page, add this line to your document preamble:
18967 \begin_layout Standard
18974 bottomfraction}{0.5}
18977 \begin_layout Standard
18978 Sometimes you might need, under all circumstances, a float to be placed
18979 exactly at the position where it is inserted.
18980 For this case you can use the option
18986 Use this option very rarely and only if the document is nearly ready to
18988 Because the float is then no longer able to
18989 \begin_inset Quotes eld
18993 \begin_inset Quotes erd
18996 when you change your document and this will often destroy the page layout.
18999 \begin_layout Standard
19000 There are no placement options for text wrap floats, because they are always
19001 surrounded by the text of a certain paragraph.
19002 \begin_inset VSpace bigskip
19008 \begin_layout Standard
19009 Sometimes you have the problem that a float is placed at the top of a page
19010 while its corresponding section starts at the middle of the page, so that
19011 the reader could think the float is part of the previous section.
19012 To avoid this the LaTeX-command
19016 suppressf\SpecialChar \textcompwordmark{}
19020 It suppresses a given float placement for the page where it is inserted
19021 and can therefore be used to avoid that floats could be set before a section
19023 To get this, add these commands to your document preamble:
19026 \begin_layout Standard
19043 suppressf\SpecialChar \textcompwordmark{}
19049 \begin_layout Standard
19050 You can define the same for all section headings, like chapters and subsections.
19051 This definition is not recommended to be used for small text parts like
19052 subsubsections because LaTeX may then have problems to find a suitable
19056 \begin_layout Standard
19057 \begin_inset VSpace bigskip
19060 In some cases it is required to have all figures/tables at the end of the
19062 For this purpose the LaTeX-package
19064 endf\SpecialChar \textcompwordmark{}
19068 \begin_inset LatexCommand index
19069 name "LaTeX-packages ! endfloat"
19074 It puts all figure and table floats at the end of the document into own
19076 At the original float position a text hint like
19077 \begin_inset Quotes eld
19082 [Figure\InsetSpace ~
19086 \begin_inset Quotes erd
19090 The endfloat-package is loaded in the preamble with the line
19093 \begin_layout Standard
19098 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19102 \begin_layout Standard
19103 There are various package options to format the created figure/table sections.
19104 For more information we refer to the
19106 endf\SpecialChar \textcompwordmark{}
19110 \begin_inset LatexCommand cite
19118 \begin_inset Note Greyedout
19121 \begin_layout Standard
19124 Note: endf\SpecialChar \textcompwordmark{}
19127 doesn't provide an automatic translation for the text hint, you have to
19128 do this manually, see section\InsetSpace ~
19130 \begin_inset LatexCommand cite
19143 \begin_inset Note Greyedout
19146 \begin_layout Standard
19151 There is currently a bug in
19153 endf\SpecialChar \textcompwordmark{}
19156 when the caption contains a German
19157 \begin_inset Quotes eld
19161 \begin_inset Quotes erd
19165 Use in this case the command
19166 \begin_inset Quotes eld
19176 \begin_inset Quotes erd
19180 \begin_inset Quotes eld
19184 \begin_inset Quotes erd
19195 \begin_layout Standard
19196 \begin_inset VSpace bigskip
19199 For more details about float placements, have a look at LaTeX books,
19200 \begin_inset LatexCommand cite
19201 key "latexcompanion,latexguide,latexbook"
19208 \begin_layout Section
19210 \begin_inset LatexCommand label
19211 name "sec:Rotated-Floats"
19216 \begin_inset LatexCommand index
19217 name "Floats ! Rotating"
19224 \begin_layout Standard
19225 Especially for wide tables you might have floats rotated.
19226 To rotate a whole float including the caption, right-click on the float-box
19229 Rotate\InsetSpace ~
19235 \begin_layout Standard
19236 Rotated floats are always placed on its own page (or column, when you have
19237 a two-column document).
19238 They are normally rotated so that you can read them from the outside margin
19239 -- to the left on even pages, to the right on odd pages.
19240 To force a certain rotation direction for all pages, you can add either
19249 to the document class options.
19252 \begin_layout Standard
19253 Referencing rotated floats is the same like for normal floats, the caption
19254 format is also the same: Table\InsetSpace ~
19256 \begin_inset LatexCommand ref
19257 reference "tab:Rotated-table"
19261 is an example of a rotated table float.
19264 \begin_layout Standard
19265 \begin_inset Note Greyedout
19268 \begin_layout Standard
19273 Not all DVI-viewers are able to display rotated floats.
19281 \begin_layout Standard
19282 \begin_inset Float table
19287 \begin_layout Standard
19288 \begin_inset Caption
19290 \begin_layout Standard
19291 \begin_inset LatexCommand label
19292 name "tab:Rotated-table"
19304 \begin_layout Standard
19306 \begin_inset Tabular
19307 <lyxtabular version="3" rows="1" columns="5">
19309 <column alignment="center" valignment="top" leftline="true" width="0">
19310 <column alignment="center" valignment="top" leftline="true" width="0">
19311 <column alignment="center" valignment="top" leftline="true" width="0">
19312 <column alignment="center" valignment="top" leftline="true" width="0">
19313 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19314 <row topline="true" bottomline="true">
19315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19318 \begin_layout Standard
19324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19327 \begin_layout Standard
19333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19336 \begin_layout Standard
19342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19345 \begin_layout Standard
19351 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19354 \begin_layout Standard
19373 \begin_layout Section
19375 \begin_inset LatexCommand index
19376 name "Caption ! Formatting"
19381 \begin_inset LatexCommand index
19382 name "Floats ! Caption Formatting"
19387 \begin_inset LatexCommand index
19388 name "LaTeX-packages ! caption"
19393 \begin_inset LatexCommand label
19394 name "sec:Caption-Formatting"
19401 \begin_layout Standard
19406 environment is the default paragraph environment for
19411 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19414 \begin_inset Quotes eld
19422 \begin_inset Quotes erd
19425 followed by the caption text.
19427 \begin_inset Quotes eld
19431 \begin_inset Quotes erd
19434 is the actual reference number.
19435 By default the label and the number are in the same font as the caption
19436 text and a colon follows the number to divide the label from the text.
19437 This caption format is not suitable for all document formats.
19441 \begin_layout Standard
19442 To change the default caption format, load the LaTeX-package
19447 \begin_inset LatexCommand index
19448 name "LaTeX-packages ! caption"
19452 in the document preamble with this line:
19455 \begin_layout Standard
19460 usepackage[format definition]{caption}
19463 \begin_layout Standard
19464 To have for example the label and the number in sans-serif bold font and
19465 the table captions always above the table like in this document, use the
19469 \begin_layout Standard
19474 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19477 \begin_layout Standard
19478 You can also define different caption formats for the different float types.
19479 In this case load the
19483 package without format specific options and define the different formats
19484 with the help of the command
19487 \begin_layout Standard
19492 captionsetup[float type]{format definition}
19495 \begin_layout Standard
19496 in the document preamble.
19497 For example the caption formats of Figure\InsetSpace ~
19499 \begin_inset LatexCommand ref
19500 reference "fig:This-is-an-fig"
19504 and Table\InsetSpace ~
19506 \begin_inset LatexCommand ref
19507 reference "tab:This-is-an-tab"
19511 can be created using these commands in the document preamble:
19514 \begin_layout Standard
19519 usepackage[tableposition=top]{caption}
19527 captionsetup[f\SpecialChar \textcompwordmark{}
19528 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19534 \begin_layout Standard
19542 captionsetup[figure]
19553 captionsetup[table]{labelfont={bf,sf}}
19556 \begin_layout Standard
19557 \begin_inset Note Greyedout
19560 \begin_layout Standard
19569 has no effect when a
19574 \begin_inset LatexCommand index
19575 name "LaTeX-packages ! koma-script"
19579 document class is used.
19580 In this case the document class option
19592 \begin_layout Standard
19593 For more information about the package
19597 we refer to its documentation
19598 \begin_inset LatexCommand cite
19599 key "caption,caption-de"
19606 \begin_layout Standard
19607 To change the label name from e.g.
19609 \begin_inset Quotes eld
19613 \begin_inset Quotes erd
19617 \begin_inset Quotes eld
19621 \begin_inset Quotes erd
19624 use this preamble command:
19627 \begin_layout Standard
19634 fnum@figure}{Image~
19639 \begin_layout Standard
19646 inserts the figure number and
19649 \begin_inset Quotes eld
19655 \begin_inset Quotes erd
19658 creates a protected space.
19661 \begin_layout Standard
19662 \begin_inset VSpace bigskip
19670 \begin_inset LatexCommand index
19671 name "LaTeX-packages ! koma-script"
19677 article (koma-script)
19685 letter (koma-script)
19689 report (koma-script)
19691 \InsetSpace \thinspace{}
19692 ), you can alternatively to the
19700 's built-in command
19707 For example, to have the caption label in bold, add this command to your
19711 \begin_layout Standard
19716 setkomafont{captionlabel}{
19721 \begin_layout Standard
19722 For more information about
19733 \begin_inset LatexCommand cite
19734 key "koma-script,koma-script-de"
19741 \begin_layout Standard
19745 \begin_layout Standard
19749 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19756 \begin_inset Note Note
19759 \begin_layout Standard
19760 The caption format is changed only for this example.
19768 \begin_layout Standard
19769 \begin_inset Float figure
19775 \begin_layout Standard
19777 \begin_inset Graphics
19778 filename clipart/mobius.eps
19787 \begin_layout Standard
19788 \begin_inset Caption
19790 \begin_layout Standard
19791 \begin_inset LatexCommand label
19792 name "fig:This-is-an-fig"
19796 This is an example figure caption that is longer than one line to show the
19797 different caption format.
19798 Here a self-defined caption format is used.
19811 \begin_layout Standard
19815 \begin_layout Standard
19819 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19828 \begin_layout Standard
19829 \begin_inset Float table
19835 \begin_layout Standard
19836 \begin_inset Caption
19838 \begin_layout Standard
19839 \begin_inset LatexCommand label
19840 name "tab:This-is-an-tab"
19844 This is an example table caption that is longer than one line to show the
19845 different caption format.
19846 Here the standard caption format for tables in this document is used.
19854 \begin_layout Standard
19856 \begin_inset Tabular
19857 <lyxtabular version="3" rows="1" columns="5">
19859 <column alignment="center" valignment="top" leftline="true" width="0">
19860 <column alignment="center" valignment="top" leftline="true" width="0">
19861 <column alignment="center" valignment="top" leftline="true" width="0">
19862 <column alignment="center" valignment="top" leftline="true" width="0">
19863 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19864 <row topline="true" bottomline="true">
19865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19868 \begin_layout Standard
19874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19877 \begin_layout Standard
19883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19886 \begin_layout Standard
19892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19895 \begin_layout Standard
19901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19904 \begin_layout Standard
19923 \begin_layout Section
19925 \begin_inset LatexCommand index
19926 name "Caption ! Placement"
19931 \begin_inset LatexCommand index
19932 name "Floats ! Caption Placement"
19937 \begin_inset LatexCommand label
19938 name "sec:Caption-Placement"
19945 \begin_layout Standard
19946 The common caption placement rule is:
19949 \begin_layout Description
19950 Figure: Caption is set below the figure
19953 \begin_layout Description
19954 Table: Caption is set above the table
19957 \begin_layout Standard
19958 Having the caption above the table is unfortunately not supported in LaTeX's
19960 That means if you are using the document classes
19976 there will be no space between the caption and the table.
19977 To insert the needed space, add the following option to the load command
19978 of the LaTeX-package
19982 in your document preamble
19986 \begin_layout Standard
19987 See section\InsetSpace ~
19989 \begin_inset LatexCommand ref
19990 reference "sec:Caption-Formatting"
19994 for more information of the package
20006 \begin_layout Standard
20012 \begin_layout Standard
20018 \begin_inset LatexCommand index
20019 name "LaTeX-packages ! koma-script"
20025 article (koma-script)
20033 letter (koma-script)
20037 report (koma-script)
20039 \InsetSpace \thinspace{}
20040 ), you can alternatively to the
20044 package set the document class option
20048 , or you can use the environment
20050 caption\InsetSpace ~
20060 \begin_layout Standard
20061 \begin_inset VSpace bigskip
20064 It is also possible to set the caption beside a figure or table.
20065 To get this the LaTeX-package
20070 \begin_inset LatexCommand index
20071 name "LaTeX-packages ! sidecap"
20075 has to be loaded in the document preamble with the line
20078 \begin_layout Standard
20083 usepackage[option]{sidecap}
20086 \begin_layout Standard
20087 If you set no option, the caption is placed on the side of the outer page
20088 margin -- to the right on odd pages, to the left on even pages.
20089 You can change the placement to inner margin with the option
20094 To force the placement always to the right or left, use the option
20105 \begin_layout Standard
20106 To place in LyX the caption of a float on the side, it is necessary to add
20107 these commands to the document preamble:
20110 \begin_layout Standard
20116 \begin_layout Standard
20129 \begin_layout Standard
20150 \begin_layout Standard
20171 \begin_layout Standard
20182 renewenvironment{table}{
20189 \begin_layout Standard
20202 \begin_layout Standard
20223 \begin_layout Standard
20241 \begin_layout Standard
20254 \begin_layout Standard
20269 f\SpecialChar \textcompwordmark{}
20276 \begin_layout Standard
20289 MyEndf\SpecialChar \textcompwordmark{}
20292 endf\SpecialChar \textcompwordmark{}
20299 \begin_layout Standard
20310 renewenvironment{f\SpecialChar \textcompwordmark{}
20313 begin{SCf\SpecialChar \textcompwordmark{}
20316 end{SCf\SpecialChar \textcompwordmark{}
20320 \begin_layout Standard
20333 \begin_layout Standard
20346 f\SpecialChar \textcompwordmark{}
20355 \begin_layout Standard
20368 endf\SpecialChar \textcompwordmark{}
20371 MyEndf\SpecialChar \textcompwordmark{}
20375 \begin_layout Standard
20381 \begin_layout Standard
20382 The commands allow you to redefine the floats so that the caption is set
20384 For figure floats use the command
20387 \begin_layout Standard
20395 \begin_layout Standard
20396 in ERT before the float.
20397 Behind the float insert the command
20400 \begin_layout Standard
20408 \begin_layout Standard
20409 in ERT to get back to the original float definition.
20412 \begin_layout Standard
20413 For table floats use the corresponding commands
20416 \begin_layout Standard
20430 \begin_layout Standard
20431 Figure\InsetSpace ~
20433 \begin_inset LatexCommand ref
20434 reference "fig:cap-beside-fig"
20438 and Table\InsetSpace ~
20440 \begin_inset LatexCommand ref
20441 reference "tab:cap-beside-tab"
20445 are examples where the caption is set beside.
20448 \begin_layout Standard
20449 You can see in the examples that the caption text appears at the top of
20450 the floats for table floats and at the bottom for figure floats.
20451 To change this, you can use the command
20454 \begin_layout Standard
20459 sidecaptionvpos{float type}{placement}
20462 \begin_layout Standard
20463 in the document preamble or in ERT before the float.
20464 The float type is either
20472 , the placement can be
20473 \begin_inset Quotes eld
20481 \begin_inset Quotes erd
20485 \begin_inset Quotes eld
20493 \begin_inset Quotes erd
20497 \begin_inset Quotes eld
20505 \begin_inset Quotes erd
20509 To have for example the caption of figure floats vertically centered, use
20513 \begin_layout Standard
20518 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20522 \begin_layout Standard
20523 This was used for Figure\InsetSpace ~
20525 \begin_inset LatexCommand ref
20526 reference "fig:cap-beside-fig-2"
20533 \begin_layout Standard
20534 \begin_inset VSpace defskip
20537 For more information about the package
20541 we refer to its documentation
20542 \begin_inset LatexCommand cite
20550 \begin_layout Standard
20551 \begin_inset Note Greyedout
20554 \begin_layout Standard
20564 \begin_inset LatexCommand index
20565 name "LaTeX-packages ! hypcap"
20569 , described in section\InsetSpace ~
20571 \begin_inset LatexCommand ref
20572 reference "sub:Reference-Position"
20576 , has no effect on floats with the caption set beside.
20584 \begin_layout Standard
20588 \begin_layout Standard
20600 \begin_layout Standard
20601 \begin_inset Float figure
20606 \begin_layout Standard
20607 \begin_inset Graphics
20608 filename clipart/escher-lsd.eps
20616 \begin_layout Standard
20617 \begin_inset Caption
20619 \begin_layout Standard
20620 \begin_inset LatexCommand label
20621 name "fig:cap-beside-fig"
20625 This is a caption beside a figure.
20638 \begin_layout Standard
20642 \begin_layout Standard
20654 \begin_layout Standard
20655 \begin_inset Float table
20660 \begin_layout Standard
20661 \begin_inset Caption
20663 \begin_layout Standard
20664 \begin_inset LatexCommand label
20665 name "tab:cap-beside-tab"
20669 This is a caption beside a table.
20677 \begin_layout Standard
20678 \begin_inset Tabular
20679 <lyxtabular version="3" rows="4" columns="5">
20681 <column alignment="center" valignment="top" leftline="true" width="0">
20682 <column alignment="center" valignment="top" leftline="true" width="0">
20683 <column alignment="center" valignment="top" leftline="true" width="0">
20684 <column alignment="center" valignment="top" leftline="true" width="0">
20685 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20686 <row topline="true">
20687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20690 \begin_layout Standard
20696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20699 \begin_layout Standard
20705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20708 \begin_layout Standard
20714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20717 \begin_layout Standard
20723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20726 \begin_layout Standard
20733 <row topline="true">
20734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20737 \begin_layout Standard
20743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20746 \begin_layout Standard
20752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20755 \begin_layout Standard
20761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20764 \begin_layout Standard
20770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20773 \begin_layout Standard
20780 <row topline="true">
20781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20784 \begin_layout Standard
20790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20793 \begin_layout Standard
20799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20802 \begin_layout Standard
20808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20811 \begin_layout Standard
20817 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20820 \begin_layout Standard
20827 <row topline="true" bottomline="true">
20828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20831 \begin_layout Standard
20837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20840 \begin_layout Standard
20846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20849 \begin_layout Standard
20855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20858 \begin_layout Standard
20864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20867 \begin_layout Standard
20886 \begin_layout Standard
20890 \begin_layout Standard
20902 \begin_layout Standard
20906 \begin_layout Standard
20910 sidecaptionvpos{figure}{c}
20916 \begin_inset Float figure
20921 \begin_layout Standard
20922 \begin_inset Graphics
20923 filename clipart/escher-lsd.eps
20931 \begin_layout Standard
20932 \begin_inset Caption
20934 \begin_layout Standard
20935 \begin_inset LatexCommand label
20936 name "fig:cap-beside-fig-2"
20940 This is a vertically centered caption beside a figure.
20953 \begin_layout Standard
20957 \begin_layout Standard
20969 \begin_layout Section
20971 \begin_inset LatexCommand label
20972 name "sec:Listings-of-Floats"
20977 \begin_inset LatexCommand index
20978 name "Floats ! Float Lists"
20985 \begin_layout Standard
20986 Similar to the the table of contents where the sections of the document
20987 are listed, there are listings for all float types, like the figures of
20989 You can insert them via the
20991 Insert\SpecialChar \menuseparator
20999 \begin_layout Standard
21000 The list entries are the float captions or its short title, the float number,
21001 and the page number where they appear in the document.
21004 \begin_layout Standard
21005 You can find the list of figures and tables at the end of this document.
21008 \begin_layout Chapter
21012 \begin_layout Section
21016 \begin_layout Standard
21029 \begin_layout Standard
21037 \begin_inset LatexCommand label
21038 name "sec:LyX-Notes"
21043 \begin_inset LatexCommand index
21044 name "Notes ! LyX Notes"
21049 \begin_inset Note Note
21052 \begin_layout Standard
21055 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
21056 are displayed wrongly in PDF-bookmarks.
21057 For more information about this, have a look at
21058 \begin_inset LatexCommand cite
21071 \begin_layout Standard
21072 Notes are inserted with the toolbar button
21073 \begin_inset Graphics
21074 filename ../images/note-insert.xpm
21081 Insert\SpecialChar \menuseparator
21085 There are five types of notes:
21088 \begin_layout Description
21090 Note This note type is for internal notes that won't appear in the output.
21091 Its note-box looks like this:
21096 \begin_inset Graphics
21097 filename clipart/LyXNoteImageQt4.png
21104 \begin_inset Note Note
21107 \begin_layout Standard
21108 This is text in a note box that doesn't appear in the output.
21116 \begin_layout Description
21117 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21118 ent, when you export the document to LaTeX via the menu
21120 File\SpecialChar \menuseparator
21121 Export\SpecialChar \menuseparator
21122 LaTeX (pdflatex) / LaTeX (plain)
21125 Its note-box looks like this:
21130 \begin_inset Graphics
21131 filename clipart/CommentNoteImageQt4.png
21138 \begin_inset Note Comment
21141 \begin_layout Standard
21142 This is text in a note box that only appears as comment in LaTeX-files.
21150 \begin_layout Description
21151 Greyed\InsetSpace ~
21152 Out This note will appear in the output as grey text.
21153 Its note-box looks like this:
21158 \begin_inset Graphics
21159 filename clipart/GreyedOutNoteImageQt4.png
21171 \begin_layout Standard
21175 renewenvironment{lyxgreyedout}
21178 \begin_layout Standard
21182 textcolor[gray]{0.8}
21192 \begin_inset Note Greyedout
21195 \begin_layout Standard
21200 \begin_layout Standard
21201 This is an example footnote within a greyed out note.
21206 of a comment that appears in the output as grey text.
21215 \begin_layout Standard
21219 renewenvironment{lyxgreyedout}
21222 \begin_layout Standard
21236 \begin_inset Note Note
21239 \begin_layout Standard
21240 The greyed out note is here redefined to show it with the original LyX definitio
21241 n because greyed out notes are redefined in the preamble of this document,
21242 as described below, to have blue text.
21251 As you can see in the example, the first line of greyed out notes is a bit
21252 indented and greyed out notes can have footnotes.
21255 \begin_layout Description
21256 Framed This note will appear in the output as framed text.
21257 Its note-box looks like this:
21262 \begin_inset Graphics
21263 filename clipart/FramedNoteImageQt4.png
21270 \begin_inset Note Framed
21273 \begin_layout Standard
21274 This is text in a note box that appears framed in the output.
21279 In contrary to framed boxes
21283 \begin_layout Standard
21284 Framed boxes are described in section\InsetSpace ~
21286 \begin_inset LatexCommand ref
21287 reference "sec:Framed-Boxes"
21296 the frame uses always the whole text width and the note is set into its
21300 \begin_layout Description
21301 Shaded This note will appear in the output with red background color.
21302 Its note box looks like this:
21307 \begin_inset Graphics
21308 filename clipart/ShadedNoteImageQt4.png
21315 \begin_inset Note Shaded
21318 \begin_layout Standard
21319 This text in a note box appears in the output with red background.
21324 In contrary to colored boxes
21328 \begin_layout Standard
21329 Colored boxes are described in section\InsetSpace ~
21331 \begin_inset LatexCommand ref
21332 reference "sec:Colored-Boxes"
21341 the note uses always the whole text width and the note is set into its
21345 \begin_layout Standard
21346 \begin_inset VSpace bigskip
21349 When you use the toolbar button to insert notes, a
21355 You can switch between the five note types by right-clicking on the note-box.
21360 If you want to turn existing text into a note, mark it and click on the
21376 \begin_layout Standard
21377 \begin_inset VSpace bigskip
21380 You can change the text color of the greyed out notes in the preamble with
21381 the following command:
21384 \begin_layout Standard
21389 renewenvironment{lyxgreyedout}
21395 \begin_layout Standard
21413 \begin_layout Standard
21414 The available colors and the method to define own colors is explained in
21415 section\InsetSpace ~
21417 \begin_inset LatexCommand ref
21418 reference "sec:Colored-Tables"
21425 \begin_layout Standard
21426 Notes that appear in blue in this document are set using greyed out notes
21430 \begin_layout Standard
21431 \begin_inset VSpace bigskip
21437 \begin_layout Standard
21446 notes can be set in the
21453 \begin_layout Standard
21454 The default frame width for
21458 notes is 0.4\InsetSpace \thinspace{}
21459 pt; it can be changed by changing the size
21466 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21468 be changed by changing the size
21475 For example the frame appearance of the following
21479 note is set with the ERT commands
21482 \begin_layout Standard
21492 \begin_layout Standard
21496 \begin_layout Standard
21508 \begin_inset Note Framed
21511 \begin_layout Standard
21525 \begin_layout Standard
21539 \begin_layout Standard
21540 \begin_inset VSpace bigskip
21546 \begin_layout Standard
21551 notes the default space between the note content and the note border is
21552 3\InsetSpace \thinspace{}
21553 pt; it can be changed by changing the size
21561 The default background color red can be changed with the command
21565 def\SpecialChar \textcompwordmark{}
21573 def\SpecialChar \textcompwordmark{}
21576 command is explained in section\InsetSpace ~
21578 \begin_inset LatexCommand ref
21579 reference "sec:Colored-Tables"
21587 \begin_layout Standard
21594 \SpecialChar \textcompwordmark{}
21599 requires the LaTeX-package
21603 in the preamble, see section\InsetSpace ~
21605 \begin_inset LatexCommand ref
21606 reference "sec:Colored-Boxes"
21618 \begin_layout Standard
21619 For example the appearance of the following
21623 note is set with the ERT commands
21626 \begin_layout Standard
21639 def\SpecialChar \textcompwordmark{}
21640 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21643 \begin_layout Standard
21647 \begin_layout Standard
21660 \begin_layout Standard
21664 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21670 \begin_inset Note Shaded
21673 \begin_layout Standard
21676 This is yellow text in a
21686 note with darkgreen background.
21695 \begin_layout Standard
21708 \begin_layout Standard
21712 definecolor{shadecolor}{rgb}{1,0,0}
21720 \begin_layout Section
21722 \begin_inset LatexCommand label
21723 name "sec:Footnotes"
21728 \begin_inset LatexCommand index
21729 name "Notes ! Footnotes"
21734 \begin_inset LatexCommand index
21742 \begin_layout Standard
21743 Footnotes can be inserted using the toolbar button
21744 \begin_inset Graphics
21745 filename ../images/footnote-insert.xpm
21752 Insert\SpecialChar \menuseparator
21764 then the following footnote-box:
21765 \begin_inset Graphics
21766 filename clipart/footnoteQt4.png
21775 where you can enter the footnote text.
21776 If you want to turn existing text into a footnote, mark it and click on
21792 \begin_layout Standard
21793 Here is an example footnote:
21801 \begin_layout Standard
21802 \begin_inset LatexCommand label
21803 name "foot:This-is-an"
21807 This is an example footnote.
21820 \begin_layout Standard
21824 newcounter{MyRepeatFoot}
21827 \begin_layout Standard
21831 setcounter{MyRepeatFoot}{
21841 \begin_layout Standard
21842 The footnote will appear in the output as a superscript number at the text
21843 position where the footnote box is placed.
21844 The footnote text is placed at the bottom of the current page.
21845 The footnote number is calculated by LaTeX, the numbers are consecutive.
21846 It depends on your document-class, if the footnote number is reset for
21850 \begin_layout Standard
21851 Footnotes can be referenced like floats: Insert a label into the footnote
21852 and cross-reference this label in the text as described in section\InsetSpace ~
21854 \begin_inset LatexCommand ref
21855 reference "sec:Referencing-Floats"
21861 This is a cross-reference of Footnote\InsetSpace ~
21863 \begin_inset LatexCommand ref
21864 reference "foot:This-is-an"
21871 \begin_layout Standard
21872 \begin_inset VSpace defskip
21875 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21877 \begin_inset LatexCommand ref
21878 reference "sec:Minipages"
21883 Footnotes within longtables are described in section\InsetSpace ~
21885 \begin_inset LatexCommand ref
21886 reference "sub:Footnotes-in-Longtables"
21893 \begin_layout Standard
21894 \begin_inset VSpace defskip
21897 To create only a mark for a footnote, use the command
21901 footnotemark[number]
21904 This is used when you have the same annotation several times in a text
21905 but doesn't want to print the footnote text every time.
21908 the number of the repeating footnote while you are writing the text, you
21909 have to store its number.
21910 For the following footnote mark example, these commands were inserted in
21911 ERT behind Footnote\InsetSpace ~
21913 \begin_inset LatexCommand ref
21914 reference "foot:This-is-an"
21918 to store the footnote number:
21921 \begin_layout Standard
21926 newcounter{MyRepeatFoot}
21930 setcounter{MyRepeatFoot}{
21935 \begin_layout Standard
21936 The footnote mark was then created with this command:
21939 \begin_layout Standard
21949 \begin_layout Standard
21950 Here is an example footnote mark:
21958 \begin_layout Standard
21972 \begin_layout Subsection
21974 \begin_inset LatexCommand label
21975 name "sub:Footnote-Numbering"
21980 \begin_inset LatexCommand index
21981 name "Footnotes ! Numbering"
21988 \begin_layout Standard
21989 To reset the footnote number back to 1 after each section
21991 , add this command to your document preamble:
21994 \begin_layout Standard
21999 @addtoreset{footnote}{section}
22002 \begin_layout Standard
22003 \begin_inset VSpace bigskip
22006 The following preamble command changes the footnote numbering style to small
22010 \begin_layout Standard
22022 \begin_layout Standard
22026 \begin_layout Standard
22039 This is a footnote with roman numbering:
22043 \begin_layout Standard
22044 This is an example footnote with roman numbering.
22053 \begin_layout Standard
22069 \begin_layout Standard
22070 To change the numbering style to capital roman numerals replace in the command
22085 \begin_inset Quotes eld
22089 \begin_inset Quotes erd
22092 footnotes with capital or small Latin letters use
22106 \begin_inset Quotes eld
22110 \begin_inset Quotes erd
22113 footnotes with symbols use
22122 \begin_layout Standard
22123 \begin_inset Note Greyedout
22126 \begin_layout Standard
22131 You can only number 26 footnotes with Latin letters, because this numbering
22132 is limited to single letters.
22140 \begin_inset Note Greyedout
22143 \begin_layout Standard
22148 You can only number 9 footnotes with symbols.
22156 \begin_layout Standard
22157 To return to the default numbering style when you changed to another one,
22170 in the command above.
22173 \begin_layout Standard
22174 \begin_inset VSpace bigskip
22180 \begin_layout Standard
22181 If you want to have footnotes numbered in the scheme
22182 \begin_inset Quotes eld
22186 \begin_inset Quotes erd
22189 , add the following command to your document preamble:
22192 \begin_layout Standard
22197 numberwithin{footnote}{chapter}
22200 \begin_layout Standard
22201 To be able to use the command
22212 in the document settings the option
22222 \begin_layout Standard
22226 \begin_layout Standard
22230 numberwithin{footnote}{chapter}
22235 This is another example footnote:
22241 \begin_layout Standard
22242 This is a footnote numbered in the scheme
22243 \begin_inset Quotes eld
22247 \begin_inset Quotes erd
22261 \begin_layout Standard
22277 \begin_layout Standard
22278 \begin_inset Note Greyedout
22281 \begin_layout Standard
22292 always prints out the footnote number as arabic number; previous redefinitions
22293 to get non-arabic numbers are overwritten.
22301 \begin_layout Standard
22302 So to get for example the scheme
22303 \begin_inset Quotes eld
22309 \begin_inset Quotes erd
22312 , use this command instead of
22321 \begin_layout Standard
22335 \begin_layout Subsection
22337 \begin_inset LatexCommand index
22338 name "Footnotes ! Placement"
22345 \begin_layout Standard
22346 If you have several footnotes in one page, they appear without vertical
22347 space between them at the bottom of the page.
22348 To make them better readable you can e.\InsetSpace \thinspace{}
22350 add 1.5\InsetSpace \thinspace{}
22351 mm space with the following
22355 \begin_layout Standard
22377 \begin_layout Standard
22378 \begin_inset VSpace bigskip
22381 In a two-column document the footnotes appear at the bottom of every column,
22382 see Figure\InsetSpace ~
22384 \begin_inset LatexCommand ref
22385 reference "fig:Standard-footnote-placement"
22390 If the footnotes should only appear at the bottom of the right column,
22391 as in Figure\InsetSpace ~
22393 \begin_inset LatexCommand ref
22394 reference "fig:Footnote-placement-in"
22398 , use the LaTeX-package
22403 \begin_inset LatexCommand index
22404 name "LaTeX-packages ! ftnright"
22408 with this command in the document preamble:
22411 \begin_layout Standard
22416 usepackage{ftnright}
22419 \begin_layout Standard
22420 \begin_inset Float figure
22426 \begin_layout Standard
22430 \begin_layout Standard
22440 \begin_inset Graphics
22441 filename clipart/without_fntright.pdf
22450 \begin_layout Standard
22460 \begin_layout Standard
22461 \begin_inset Caption
22463 \begin_layout Standard
22464 \begin_inset LatexCommand label
22465 name "fig:Standard-footnote-placement"
22469 Standard footnote placement in two-column documents.
22482 \begin_layout Standard
22483 \begin_inset Float figure
22489 \begin_layout Standard
22493 \begin_layout Standard
22503 \begin_inset Graphics
22504 filename clipart/with_fntright.pdf
22513 \begin_layout Standard
22523 \begin_layout Standard
22524 \begin_inset Caption
22526 \begin_layout Standard
22527 \begin_inset LatexCommand label
22528 name "fig:Footnote-placement-in"
22532 Footnote placement in two-column documents when the LaTeX-package
22549 \begin_layout Standard
22550 \begin_inset VSpace bigskip
22553 In some scientific literature it is usual to collect the footnotes and print
22554 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22556 \begin_inset LatexCommand ref
22557 reference "fig:Endnotes----footnotes"
22562 They are then so called
22563 \begin_inset Quotes eld
22567 \begin_inset Quotes erd
22571 To use endnotes instead of footnotes in your document, load the LaTeX-package
22577 \begin_inset LatexCommand index
22578 name "LaTeX-packages ! endnotes"
22582 with the document preamble lines
22585 \begin_layout Standard
22590 usepackage{endnotes}
22601 \begin_layout Standard
22602 To insert the collected footnotes, insert the command
22605 \begin_layout Standard
22613 \begin_layout Standard
22614 in ERT at the the end of a section or chapter.
22617 \begin_layout Standard
22618 \begin_inset Float figure
22623 \begin_layout Standard
22628 \begin_layout Standard
22638 \begin_inset Graphics
22639 filename clipart/endnotes.pdf
22647 \begin_layout Standard
22657 \begin_layout Standard
22658 \begin_inset Caption
22660 \begin_layout Standard
22661 \begin_inset LatexCommand label
22662 name "fig:Endnotes----footnotes"
22666 Endnotes -- footnotes are printed in a separate paragraph at the end of
22667 sections or chapters.
22680 \begin_layout Standard
22681 \begin_inset VSpace defskip
22684 The paragraph heading for the endnotes isn't automatically translated into
22685 the document language, this must be done manually.
22686 The following preamble command translate the default English name
22687 \begin_inset Quotes eld
22691 \begin_inset Quotes erd
22694 to the German translation
22695 \begin_inset Quotes eld
22699 \begin_inset Quotes erd
22705 \begin_layout Standard
22712 notesname}{Anmerkungen}
22715 \begin_layout Standard
22716 \begin_inset VSpace defskip
22719 The numbering of endnotes can be changed like the footnote numbering as
22720 described in section\InsetSpace ~
22722 \begin_inset LatexCommand ref
22723 reference "sub:Footnote-Numbering"
22727 ; just replace the command
22740 To reset the endnote number use the command
22746 as described in section\InsetSpace ~
22748 \begin_inset LatexCommand ref
22749 reference "sub:Footnote-Numbering"
22753 and replace the command parameter
22764 \begin_layout Standard
22765 To create only a mark for an endnote, use the command
22769 endnotemark[number]
22771 similar to the command
22777 , described in section\InsetSpace ~
22779 \begin_inset LatexCommand ref
22780 reference "sec:Footnotes"
22787 \begin_layout Standard
22788 \begin_inset VSpace bigskip
22791 Footnotes can also be placed in the page margin and the footnote text alignment
22792 can be changed, see the LaTeX-package
22797 \begin_inset LatexCommand index
22798 name "LaTeX-packages ! footmisc"
22803 \begin_inset LatexCommand cite
22808 for more information about this.
22811 \begin_layout Standard
22812 For various further footnote formatting issues have a look at LaTeX-books,
22814 \begin_inset LatexCommand cite
22815 key "latexcompanion,latexguide,latexbook"
22822 \begin_layout Section
22824 \begin_inset LatexCommand index
22825 name "Notes ! Margin Notes"
22832 \begin_layout Standard
22833 Margin notes look and behave in LyX like footnotes.
22834 They are inserted via the menu
22836 Insert\SpecialChar \menuseparator
22837 Marginal\InsetSpace ~
22840 or the toolbar button
22841 \begin_inset Graphics
22842 filename ../images/marginalnote-insert.xpm
22858 \begin_inset Quotes eld
22862 \begin_inset Quotes erd
22865 appears where you can enter the text of the margin note.
22868 \begin_layout Standard
22869 At the side is an example margin note.
22873 \begin_inset Marginal
22876 \begin_layout Standard
22877 This is a margin note.
22885 \begin_layout Standard
22886 Margin notes appear at the right side in single-sided documents.
22887 In double-sided documents they appear in the outer margin -- left on even
22888 pages, right on odd pages.
22889 The text of margin notes is aligned opposite to the outer margin -- right-align
22890 ed when the note appears in the left margin.
22891 The first line of the margin note is placed at the position of the text
22892 line where it is inserted in the document.
22895 \begin_layout Standard
22896 \begin_inset VSpace bigskip
22899 To place the margin note in the inner margin, add the command
22902 \begin_layout Standard
22910 \begin_layout Standard
22911 in ERT before a margin note.
22912 The new placement is valid for all following margin notes.
22916 \begin_layout Standard
22926 \begin_inset Marginal
22929 \begin_layout Standard
22930 This is a margin note in the inner margin.
22942 \begin_inset Note Greyedout
22945 \begin_layout Standard
22950 There is often not enough space in the inner margin so that the notes are
22951 not correctly displayed in the output.
22959 \begin_layout Standard
22963 \begin_layout Standard
22972 To return to the default placement insert the command
22975 \begin_layout Standard
22983 \begin_layout Standard
22986 \begin_inset Note Greyedout
22989 \begin_layout Standard
22994 The command is ignored when it is within a paragraph where also the command
23009 \begin_layout Standard
23010 \begin_inset VSpace bigskip
23017 \begin_inset Marginal
23020 \begin_layout Standard
23021 AVeryLongMarginParWord that isn't hyphenated.
23029 Similar to the case described in section\InsetSpace ~
23031 \begin_inset LatexCommand ref
23032 reference "sub:Multiple-Lines-in"
23036 , long words cannot be hyphenated when they are the first word in a margin
23038 To avoid this, insert the command
23041 \begin_layout Standard
23049 \begin_layout Standard
23050 in ERT before the word
23054 \begin_inset Marginal
23057 \begin_layout Standard
23061 \begin_layout Standard
23070 AVeryLongMarginParWord that is hyphenated.
23078 \begin_layout Standard
23079 \begin_inset VSpace bigskip
23085 \begin_layout Standard
23086 \begin_inset Note Greyedout
23089 \begin_layout Standard
23094 Margin notes can normally not be used inside tables, floats, and footnotes.
23102 \begin_layout Standard
23103 \begin_inset VSpace bigskip
23109 \begin_layout Standard
23113 \begin_layout Standard
23123 \begin_inset Note Note
23126 \begin_layout Standard
23127 The following section will only be displayed when you have the LaTeX-package
23140 \begin_layout Standard
23141 This restriction can be evaded by using the LaTeX-package
23146 \begin_inset LatexCommand index
23147 name "LaTeX-packages ! marginnote"
23152 By adding these two lines to your document preamble, the command used by
23153 LyX for margin notes is redefined to use the command provided by the
23160 \begin_layout Standard
23165 usepackage{marginnote}
23176 \begin_layout Standard
23177 This is also used in this document because
23181 has another useful feature: You can set a vertical offset for the note.
23182 This is often needed when too many margin notes are too close together
23183 or for a better page layout.
23184 The offset is set in LyX as ERT directly behind the margin note in the
23188 \begin_layout Standard
23194 \begin_layout Standard
23195 where the offset is a length with one of the units listed in Table\InsetSpace ~
23197 \begin_inset LatexCommand ref
23198 reference "tab:Units"
23203 A negative value shifts the note up, a positive value shifts it down.
23207 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23210 \begin_inset Quotes eld
23220 \begin_inset Quotes erd
23224 \begin_inset Marginal
23227 \begin_layout Standard
23228 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23229 cm from its original position.
23241 \begin_layout Standard
23251 \begin_layout Standard
23252 \begin_inset VSpace defskip
23259 you can also change the alignment of the text in the margin note.
23260 For example the commands
23263 \begin_layout Standard
23270 raggedleftmarginnote}{
23278 raggedrightmarginnote}{
23283 \begin_layout Standard
23284 set the alignment to centered.
23289 raggedleftmarginnote
23291 denotes margin notes that appear at the left side.
23298 \begin_layout Standard
23304 raggedleftmarginnote}{
23309 \begin_layout Standard
23315 raggedrightmarginnote}{
23323 \begin_inset Marginal
23326 \begin_layout Standard
23327 The text of this margin note is centered.
23338 \begin_layout Standard
23345 raggedleftmarginnote}{
23353 raggedrightmarginnote}{
23362 \begin_layout Standard
23368 raggedleftmarginnote}{
23373 \begin_layout Standard
23379 raggedrightmarginnote}{
23389 \begin_layout Standard
23390 \begin_inset VSpace defskip
23393 For the other features of
23397 we refer to its documentation
23398 \begin_inset LatexCommand cite
23406 \begin_layout Standard
23407 \begin_inset VSpace bigskip
23410 You can change the layout of margin notes by redefining its definition.
23411 To create for example a header for all margin notes with the underlined,
23412 sans-serif, and bold header text
23413 \begin_inset Quotes eld
23425 \begin_inset Quotes erd
23428 , add this to your document preamble:
23431 \begin_layout Standard
23454 \begin_layout Standard
23471 underbar{Attention!}}}%
23477 \begin_layout Standard
23495 \begin_layout Standard
23502 \begin_layout Standard
23513 \begin_layout Standard
23524 \begin_layout Standard
23532 underbar{Attention!}}}%
23535 \begin_layout Standard
23549 \begin_inset Marginal
23552 \begin_layout Standard
23553 This is a margin note with a defined heading.
23565 \begin_layout Standard
23579 \begin_layout Standard
23596 \begin_inset Note Note
23599 \begin_layout Standard
23600 The margin note format is changed only for this example.
23608 \begin_layout Standard
23612 \begin_layout Standard
23622 \begin_inset Note Note
23625 \begin_layout Standard
23626 The following will be displayed when the LaTeX-package
23638 \begin_layout Standard
23639 You need to install the LaTeX-package
23643 to see the following part of this section in the output.
23646 \begin_layout Standard
23650 \begin_layout Standard
23662 \begin_layout Standard
23666 \begin_layout Chapter
23670 \begin_layout Section
23672 \begin_inset LatexCommand index
23673 name "Boxes ! Introduction"
23680 \begin_layout Standard
23681 Boxes are used to format a block of text.
23682 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23684 \begin_inset LatexCommand ref
23685 reference "sec:Minipages"
23689 , to frame texts, see section\InsetSpace ~
23691 \begin_inset LatexCommand ref
23692 reference "sec:Framed-Boxes"
23696 , to prevent words to be hyphenated, see section\InsetSpace ~
23698 \begin_inset LatexCommand ref
23699 reference "sec:Prevent-Hyphenation"
23703 , to align text, see section\InsetSpace ~
23705 \begin_inset LatexCommand ref
23706 reference "sub:Vertical-Alignment"
23710 , or to set the background color of texts, see section\InsetSpace ~
23712 \begin_inset LatexCommand ref
23713 reference "sec:Colored-Boxes"
23720 \begin_layout Standard
23721 Boxes can be inserted with the menu
23723 Insert\SpecialChar \menuseparator
23727 A grey box with the label
23732 \begin_inset Graphics
23733 filename clipart/BoxInsetDefaultQt4.png
23738 , will be inserted.
23739 The box type can be specified by right-clicking on the box.
23740 The appearing box dialog offers the
23758 is the default for new boxes and is explained in section\InsetSpace ~
23760 \begin_inset LatexCommand ref
23761 reference "sec:Minipages"
23769 is described in section\InsetSpace ~
23771 \begin_inset LatexCommand ref
23772 reference "sec:Parboxes"
23779 \begin_layout Standard
23780 Boxes aren't numbered and can therefore not be referenced like floats or
23784 \begin_layout Standard
23785 \begin_inset Note Greyedout
23788 \begin_layout Standard
23793 Due to a bug in LyX you have to insert a protected space behind a box when
23794 you want to separate in a line the box from the following text with a space.
23802 \begin_layout Standard
23803 \begin_inset Note Greyedout
23806 \begin_layout Standard
23811 Boxes must not be the item in an
23827 \begin_layout Standard
23828 \begin_inset Note Greyedout
23831 \begin_layout Standard
23836 For an unknown reason you can only set the
23845 when you use a framed box.
23851 type and without frames are explained in section\InsetSpace ~
23853 \begin_inset LatexCommand ref
23854 reference "sec:Prevent-Hyphenation"
23866 \begin_layout Section
23868 \begin_inset LatexCommand label
23869 name "sec:Box-Dialog"
23874 \begin_inset LatexCommand index
23875 name "Boxes ! Box Dialog"
23880 \begin_inset LatexCommand index
23881 name "Boxes ! Alignment"
23888 \begin_layout Standard
23889 In the box dialog you can adjust the box geometry in the fields
23898 The available units for the geometry are explained in Table\InsetSpace ~
23900 \begin_inset LatexCommand ref
23901 reference "tab:Units"
23910 offers the following additional sizes:
23913 \begin_layout Description
23914 Depth This is the plain text
23915 \begin_inset Quotes eld
23919 \begin_inset Quotes erd
23923 It ignores the total depth when there are multiple text lines in the box:
23930 \begin_inset Box Boxed
23939 height_special "depth"
23942 \begin_layout Standard
23944 Box height set to 1\InsetSpace \thinspace{}
23957 \begin_layout Description
23958 Height This is the heigth of the text that is inside the box.
23959 A value of e.\InsetSpace \thinspace{}
23961 2 for this size will set the box heigth to 2 times the text
23963 \begin_inset Box Boxed
23972 height_special "height"
23975 \begin_layout Standard
23977 Box height set to 2\InsetSpace \thinspace{}
23986 \begin_layout Description
23988 Height This is the Height\InsetSpace \thinspace{}
23989 +\InsetSpace \thinspace{}
23991 \begin_inset Box Boxed
24000 height_special "totalheight"
24003 \begin_layout Standard
24005 Box height set to 1\InsetSpace \thinspace{}
24015 \begin_layout Description
24016 Width This set the width of the box as heigth:
24017 \begin_inset Box Boxed
24026 height_special "width"
24029 \begin_layout Standard
24031 Box height set to 1\InsetSpace \thinspace{}
24040 \begin_layout Standard
24041 \begin_inset VSpace bigskip
24044 When you have chosen an
24049 , the vertical box alignment can be:
24052 \begin_layout Description
24053 Top This is an example text line.
24055 \begin_inset Box Boxed
24064 height_special "totalheight"
24067 \begin_layout Standard
24069 This box is top-aligned.
24075 This is an example text line.
24078 \begin_layout Description
24079 Middle This is an example text line.
24081 \begin_inset Box Boxed
24090 height_special "totalheight"
24093 \begin_layout Standard
24095 This box is middle-aligned.
24101 This is an example text line.
24104 \begin_layout Description
24105 Bottom This is an example text line.
24107 \begin_inset Box Boxed
24116 height_special "totalheight"
24119 \begin_layout Standard
24121 This box is bottom-aligned.
24127 This is an example text line.
24130 \begin_layout Standard
24131 The horizontal box alignment can be set via LyX's paragraph dialog when
24132 you set the box into its own paragraph.
24135 \begin_layout Standard
24136 \begin_inset VSpace bigskip
24139 When you have chosen an
24144 , the box content can be vertical aligned to:
24147 \begin_layout Description
24148 top This is an example text line.
24150 \begin_inset Box Boxed
24159 height_special "totalheight"
24162 \begin_layout Standard
24164 This box text is top-aligned.
24170 This is an example text line.
24173 \begin_layout Description
24174 middle This is an example text line.
24176 \begin_inset Box Boxed
24185 height_special "totalheight"
24188 \begin_layout Standard
24190 This box text is middle-aligned.
24196 This is an example text line.
24199 \begin_layout Description
24200 bottom This is an example text line.
24202 \begin_inset Box Boxed
24211 height_special "totalheight"
24214 \begin_layout Standard
24216 This box text is bottom-aligned.
24222 This is an example text line.
24225 \begin_layout Description
24226 stretch This is an example text line.
24228 \begin_inset Box Boxed
24237 height_special "totalheight"
24240 \begin_layout Standard
24245 \begin_layout Standard
24250 \begin_layout Standard
24258 This is an example text line.
24261 \begin_layout Standard
24262 To stretch the box content, it must consist of more than one paragraph.
24263 In the example above every text line is in an own paragraph.
24266 \begin_layout Standard
24267 \begin_inset VSpace bigskip
24270 To align the box content horizontally you can use LyX's paragraph dialog
24271 when you have chosen an
24279 \begin_layout Standard
24281 \begin_inset Box Boxed
24290 height_special "totalheight"
24293 \begin_layout Standard
24298 \begin_layout Standard
24303 \begin_layout Standard
24313 \begin_layout Standard
24314 If you haven't set an
24319 , you can align the box content horizontally in the box dialog.
24322 \begin_layout Standard
24324 \begin_inset Box Boxed
24333 height_special "totalheight"
24336 \begin_layout Standard
24338 This box text is horizontally stretched.
24346 \begin_layout Section
24348 \begin_inset LatexCommand label
24349 name "sec:Framed-Boxes"
24354 \begin_inset LatexCommand index
24355 name "Boxes ! Frames"
24362 \begin_layout Standard
24363 The frame style of the box can be specified in the box-dialog in the drop-down
24369 The following frame types are possible:
24372 \begin_layout Description
24373 Rectangular\InsetSpace ~
24374 box This draws a rectangle frame around the box.
24375 The frame line thickness has the size of
24383 \begin_inset Box Boxed
24392 height_special "totalheight"
24395 \begin_layout Standard
24405 \begin_layout Description
24408 thin This draws an oval frame around the box.
24409 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24412 \begin_inset Box ovalbox
24421 height_special "totalheight"
24424 \begin_layout Standard
24434 \begin_layout Description
24437 thick This draws an oval frame around the box.
24438 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24441 \begin_inset Box Ovalbox
24450 height_special "totalheight"
24453 \begin_layout Standard
24463 \begin_layout Description
24464 Shadow\InsetSpace ~
24465 box This draws a rectangle frame with a shadow around the box.
24466 The frame line thickness has the size of
24472 , the shadow has a width of 4\InsetSpace \thinspace{}
24475 \begin_inset Box Shadowbox
24484 height_special "totalheight"
24487 \begin_layout Standard
24497 \begin_layout Description
24498 Double\InsetSpace ~
24499 box This draws a double-line rectangle frame around the box.
24500 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24507 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24515 The distance between the lines is 1.5\InsetSpace \thinspace{}
24522 \InsetSpace \thinspace{}
24523 +\InsetSpace \thinspace{}
24524 0.5\InsetSpace \thinspace{}
24527 \begin_inset Box Doublebox
24536 height_special "totalheight"
24539 \begin_layout Standard
24549 \begin_layout Standard
24550 \begin_inset VSpace bigskip
24553 LyX's box label will change to the used frame style when you set a frame.
24554 To be able to use the different frame styles, the LaTeX-package
24559 \begin_inset LatexCommand index
24560 name "LaTeX-packages ! fancybox"
24567 \begin_layout Standard
24568 \begin_inset VSpace bigskip
24571 The default value for the size
24577 is 0.4\InsetSpace \thinspace{}
24579 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24581 2\InsetSpace \thinspace{}
24585 \begin_layout Standard
24595 \begin_layout Standard
24599 \begin_layout Standard
24611 \begin_inset Box Boxed
24620 height_special "totalheight"
24623 \begin_layout Standard
24625 Rectangular box with
24631 \InsetSpace \thinspace{}
24632 =\InsetSpace \thinspace{}
24633 2\InsetSpace \thinspace{}
24643 \begin_layout Standard
24657 \begin_layout Standard
24658 \begin_inset VSpace bigskip
24661 The space between the frame and the box content is for all frame styles
24662 by default 3\InsetSpace \thinspace{}
24664 You can change it by setting the length
24671 For example the command
24674 \begin_layout Standard
24684 \begin_layout Standard
24685 sets the value to 10\InsetSpace \thinspace{}
24686 pt, like for the following box:
24689 \begin_layout Standard
24693 \begin_layout Standard
24705 \begin_inset Box Boxed
24714 height_special "totalheight"
24717 \begin_layout Standard
24719 Rectangular box with
24725 \InsetSpace \thinspace{}
24726 =\InsetSpace \thinspace{}
24727 10\InsetSpace \thinspace{}
24737 \begin_layout Standard
24751 \begin_layout Standard
24752 \begin_inset VSpace bigskip
24755 The diameter of the round corners of the oval boxes can be set with the
24766 \begin_layout Standard
24774 \begin_layout Standard
24775 sets the diameter to 1\InsetSpace \thinspace{}
24780 \begin_layout Standard
24788 \begin_layout Standard
24789 sets the diameter to
24791 num\InsetSpace \thinspace{}
24792 ×\InsetSpace \thinspace{}
24793 minimum(width and heigth of box)
24805 \begin_layout Standard
24809 \begin_layout Standard
24819 \begin_inset Box Ovalbox
24828 height_special "totalheight"
24831 \begin_layout Standard
24839 \InsetSpace \thinspace{}
24840 =\InsetSpace \thinspace{}
24841 1.5\InsetSpace \thinspace{}
24851 \begin_layout Standard
24863 \begin_layout Standard
24864 \begin_inset VSpace bigskip
24867 The size of the shadow can be adjusted by changing the length
24874 It it set to 2\InsetSpace \thinspace{}
24875 pt for the following box by this command:
24878 \begin_layout Standard
24888 \begin_layout Standard
24892 \begin_layout Standard
24904 \begin_inset Box Shadowbox
24913 height_special "totalheight"
24916 \begin_layout Standard
24924 \InsetSpace \thinspace{}
24925 =\InsetSpace \thinspace{}
24926 2\InsetSpace \thinspace{}
24936 \begin_layout Standard
24950 \begin_layout Standard
24951 \begin_inset VSpace bigskip
24954 Changed lengths and widths are valid for all boxes following the commands
24958 \begin_layout Section
24960 \begin_inset LatexCommand label
24961 name "sec:Minipages"
24966 \begin_inset LatexCommand index
24967 name "Boxes ! Minipages"
24974 \begin_layout Standard
24975 Minipages are treated by LaTeX as pages within pages and can therefore for
24976 example have their own footnotes.
24979 \begin_layout Standard
24980 Minipages are useful when you write documents with different languages.
24983 \begin_layout Standard
24984 Below are two example minipages side by side.
24985 Their width is set to 45\InsetSpace \thinspace{}
24986 col% and they are separated by a horizontal fill,
24987 that was inserted via the menu
24989 Insert\SpecialChar \menuseparator
24990 Special\InsetSpace ~
24991 Formatting\SpecialChar \menuseparator
24992 Horizontal\InsetSpace ~
24998 \begin_layout Standard
24999 \begin_inset Box Frameless
25008 height_special "totalheight"
25011 \begin_layout Standard
25014 Dies ist ein deutscher Text.
25015 Dies ist ein deutscher Text.
25016 Dies ist ein deutscher Text.
25017 Dies ist ein deutscher Text.
25018 Dies ist ein deutscher Text.
25019 Dies ist ein deutscher Text.
25020 Dies ist ein deutscher Text.
25021 Dies ist ein deutscher Text.
25022 Dies ist ein deutscher Text.
25023 Dies ist ein deutscher Text.
25024 Dies ist ein deutscher Text.
25025 Dies ist ein deutscher Text.
25026 Dies ist ein deutscher Text
25030 \begin_layout Standard
25033 Dies ist eine deutsche Fußnote.
25039 Dies ist ein deutscher Text.
25040 Dies ist ein deutscher Text.
25048 \begin_inset Box Frameless
25057 height_special "totalheight"
25060 \begin_layout Standard
25061 This is an English Text.
25062 This is an English Text.
25063 This is an English Text.
25064 This is an English Text.
25065 This is an English Text.
25066 This is an English Text.
25067 This is an English Text.
25068 This is an English Text.
25069 This is an English Text.
25070 This is an English Text.
25071 This is an English Text.
25072 This is an English Text.
25073 This is an English Text.
25074 This is an English Text.
25075 This is an English Text.
25076 This is an English Text.
25080 \begin_layout Standard
25081 This is an English footnote.
25086 This is an English Text.
25095 \begin_layout Standard
25096 \begin_inset VSpace bigskip
25099 Another application for minipages are footnotes within tables.
25100 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25101 bottom of the current page.
25102 But when you put the table with the footnote to a minipage, the footnote
25103 will appear at its bottom, numbered with Latin letters.
25104 The footnote number is reset to 1 in every minipage but not outside the
25108 \begin_layout Standard
25109 The footnote of this table doesn't appear:
25110 \begin_inset Tabular
25111 <lyxtabular version="3" rows="3" columns="4">
25113 <column alignment="center" valignment="top" leftline="true" width="0pt">
25114 <column alignment="center" valignment="top" leftline="true" width="0pt">
25115 <column alignment="center" valignment="top" leftline="true" width="0pt">
25116 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25117 <row topline="true">
25118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25121 \begin_layout Standard
25127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25130 \begin_layout Standard
25136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25139 \begin_layout Standard
25144 \begin_layout Standard
25145 This is a footnote within a table.
25155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25158 \begin_layout Standard
25165 <row topline="true">
25166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25169 \begin_layout Standard
25175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25178 \begin_layout Standard
25184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25187 \begin_layout Standard
25193 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25196 \begin_layout Standard
25203 <row topline="true" bottomline="true">
25204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25207 \begin_layout Standard
25213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25216 \begin_layout Standard
25222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25225 \begin_layout Standard
25231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25234 \begin_layout Standard
25248 \begin_layout Standard
25250 \begin_inset Box Frameless
25259 height_special "totalheight"
25262 \begin_layout Standard
25264 \begin_inset Tabular
25265 <lyxtabular version="3" rows="3" columns="4">
25267 <column alignment="center" valignment="top" leftline="true" width="0pt">
25268 <column alignment="center" valignment="top" leftline="true" width="0pt">
25269 <column alignment="center" valignment="top" leftline="true" width="0pt">
25270 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25271 <row topline="true">
25272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25275 \begin_layout Standard
25281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25284 \begin_layout Standard
25290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25293 \begin_layout Standard
25298 \begin_layout Standard
25299 This is a footnote within a table.
25309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25312 \begin_layout Standard
25319 <row topline="true">
25320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25323 \begin_layout Standard
25329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25332 \begin_layout Standard
25338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25341 \begin_layout Standard
25347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25350 \begin_layout Standard
25357 <row topline="true" bottomline="true">
25358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25361 \begin_layout Standard
25367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25370 \begin_layout Standard
25376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25379 \begin_layout Standard
25385 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25388 \begin_layout Standard
25407 \begin_layout Standard
25408 \begin_inset VSpace bigskip
25411 The document-wide paragraph settings are ignored within minipages.
25412 That means that there will be no space between paragraphs in minipages
25413 although you set it to e.\InsetSpace \thinspace{}
25419 in the document settings.
25422 \begin_layout Standard
25423 Minipages can also be used to set a background color for text parts, see
25424 section\InsetSpace ~
25426 \begin_inset LatexCommand ref
25427 reference "sub:Color-for-Paragraphs"
25434 \begin_layout Standard
25435 \begin_inset Note Greyedout
25438 \begin_layout Standard
25443 You cannot have floats or margin notes inside minipages but minipages can
25444 be used inside tables, floats, and other boxes.
25452 \begin_layout Section
25454 \begin_inset LatexCommand label
25455 name "sec:Parboxes"
25460 \begin_inset LatexCommand index
25461 name "Boxes ! Parboxes"
25468 \begin_layout Standard
25469 Parboxes are very similar to minipages with the difference that they cannot
25471 The main difference to minipages is that minipages are in contrary to parboxes
25472 no real boxes but LaTeX-environments.
25475 \begin_layout Standard
25477 \begin_inset Box Frameless
25486 height_special "totalheight"
25489 \begin_layout Standard
25490 This a text within a parbox.
25491 This a text within a parbox.
25494 \begin_layout Standard
25495 This footnote won't appear:
25499 \begin_layout Standard
25500 This footnote is inside a parbox and will therefore not appear.
25513 \begin_layout Section
25514 Boxes for Words and Characters
25515 \begin_inset LatexCommand index
25516 name "Boxes ! for Characters"
25523 \begin_layout Subsection
25524 Prevent Hyphenation
25525 \begin_inset LatexCommand label
25526 name "sec:Prevent-Hyphenation"
25531 \begin_inset LatexCommand index
25532 name "Boxes ! to Prevent Hyphenation"
25539 \begin_layout Standard
25540 You can use a special kind of boxes to prevent words or text to be hyphenated.
25543 e is an example text:
25546 \begin_layout Standard
25547 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25553 \begin_layout Standard
25554 To prevent the hyphenation of the word
25555 \begin_inset Quotes eld
25559 \begin_inset Quotes erd
25565 \begin_layout Standard
25573 \begin_layout Standard
25574 in ERT before the word.
25575 Behind the word insert a closing brace
25576 \begin_inset Quotes eld
25584 \begin_inset Quotes erd
25591 \begin_layout Standard
25603 \begin_layout Standard
25604 This is the result:
25607 \begin_layout Standard
25608 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25614 \begin_layout Standard
25627 \begin_layout Standard
25637 \begin_layout Standard
25638 Of course the word now protrudes over the side margin.
25639 To avoid this, add via the menu
25641 Insert\SpecialChar \menuseparator
25642 Special\InsetSpace ~
25643 Formatting\SpecialChar \menuseparator
25651 ) a line break before the word:
25654 \begin_layout Standard
25655 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25663 \begin_layout Standard
25676 \begin_layout Standard
25686 \begin_layout Subsection
25688 \begin_inset LatexCommand label
25689 name "sub:Vertical-Alignment"
25694 \begin_inset LatexCommand index
25695 name "Boxes ! for Vertical Alignment"
25700 \begin_inset LatexCommand index
25701 name "Boxes ! Raiseboxes"
25708 \begin_layout Standard
25709 With the help of the command
25715 you can align words, characters or other boxes vertically to the surrounding
25723 is used with the following scheme:
25726 \begin_layout Standard
25731 raisebox{lift}[height][depth]{box content}
25734 \begin_layout Standard
25735 The lift can be a positive value to raise the box or a negative value to
25739 \begin_layout Standard
25740 To align for example the word
25741 \begin_inset Quotes eld
25745 \begin_inset Quotes erd
25748 so that the bottom of the
25749 \begin_inset Quotes eld
25753 \begin_inset Quotes erd
25757 \begin_inset Quotes eld
25761 \begin_inset Quotes erd
25764 is at the baseline, insert the command
25767 \begin_layout Standard
25777 \begin_layout Standard
25778 in ERT before the word.
25779 Behind the word insert a closing brace
25780 \begin_inset Quotes eld
25788 \begin_inset Quotes erd
25793 This is the result:
25796 \begin_layout Standard
25797 This is a text line with the word
25801 \begin_layout Standard
25813 \begin_inset Quotes eld
25817 \begin_inset Quotes erd
25824 \begin_layout Standard
25834 \begin_layout Standard
25835 \begin_inset VSpace bigskip
25838 When you raise or lower characters in a line, the line distance will be
25842 \begin_layout Standard
25843 This is a text line with the word
25847 \begin_layout Standard
25859 \begin_inset Quotes eld
25863 \begin_inset Quotes erd
25870 \begin_layout Standard
25879 This is a text line with the word
25883 \begin_layout Standard
25893 \begin_inset Quotes eld
25897 \begin_inset Quotes erd
25904 \begin_layout Standard
25914 \begin_layout Standard
25915 If you want to prevent this for a certain reason, set the box height to
25920 \begin_layout Standard
25930 \begin_layout Standard
25931 This is a text line with the word
25935 \begin_layout Standard
25947 \begin_inset Quotes eld
25951 \begin_inset Quotes erd
25958 \begin_layout Standard
25967 This is a text line with the word
25971 \begin_layout Standard
25975 raisebox{0.5cm}[0pt]{
25981 \begin_inset Quotes eld
25985 \begin_inset Quotes erd
25992 \begin_layout Standard
26002 \begin_layout Section
26004 \begin_inset LatexCommand label
26005 name "sec:Colored-Boxes"
26010 \begin_inset LatexCommand index
26011 name "Boxes ! Color"
26018 \begin_layout Subsection
26020 \begin_inset LatexCommand index
26021 name "Color ! for Text"
26028 \begin_layout Standard
26029 To color the background of text the text must be put into a so called colorbox.
26030 This requires that the LaTeX-package
26035 \begin_inset LatexCommand index
26036 name "LaTeX-packages ! color"
26040 is loaded in the document preamble with the command
26043 \begin_layout Standard
26048 @ifundef\SpecialChar \textcompwordmark{}
26055 \begin_layout Standard
26066 usepackage{color}}{}
26069 \begin_layout Standard
26074 will be loaded automatically by LyX when you color text
26078 \begin_layout Standard
26079 To avoid that it is loaded twice the command
26083 @ifundef\SpecialChar \textcompwordmark{}
26094 \begin_layout Standard
26095 \begin_inset VSpace medskip
26098 Colorboxes are created with the command
26105 This will be used with the following scheme:
26108 \begin_layout Standard
26113 colorbox{color}{box content}
26116 \begin_layout Standard
26117 The box content can also be a box and colorboxes can also be within other
26121 \begin_layout Standard
26122 The following colors are predefined:
26161 You can also define your own color as described in section\InsetSpace ~
26163 \begin_inset LatexCommand ref
26164 reference "sec:Colored-Tables"
26171 \begin_layout Standard
26172 To have e.\InsetSpace \thinspace{}
26174 a red background for a word, insert the command
26177 \begin_layout Standard
26185 \begin_layout Standard
26186 before the word in ERT.
26187 Behind the word insert a closing brace
26188 \begin_inset Quotes eld
26196 \begin_inset Quotes erd
26201 This is the result:
26204 \begin_layout Standard
26205 This is a line where the word
26209 \begin_layout Standard
26219 \begin_inset Quotes eld
26223 \begin_inset Quotes erd
26230 \begin_layout Standard
26237 has a red background.
26240 \begin_layout Standard
26241 \begin_inset VSpace bigskip
26244 If you would have the box frame in a different color, you can use the command
26251 with the following scheme:
26254 \begin_layout Standard
26259 fcolorbox{frame color}{box color}{box content}
26262 \begin_layout Standard
26276 The frame thickness and the space between the frame and the box content
26277 can be adjusted with the lengths
26289 , respectively, as described in section\InsetSpace ~
26291 \begin_inset LatexCommand ref
26292 reference "sec:Framed-Boxes"
26299 \begin_layout Standard
26300 For the following example the command
26303 \begin_layout Standard
26308 fcolorbox{cyan}{magenta}{
26311 \begin_layout Standard
26315 \begin_layout Standard
26316 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26323 \begin_layout Standard
26338 \begin_layout Standard
26342 fcolorbox{cyan}{magenta}{
26347 This is text within a colored, framed box.
26351 \begin_layout Standard
26361 \begin_layout Standard
26362 \begin_inset VSpace bigskip
26365 Of course you can also have colored text inside a colorbox:
26371 \begin_layout Standard
26375 fcolorbox{cyan}{magenta}{
26382 This is colored text within a colored, framed box.
26388 \begin_layout Standard
26399 \begin_layout Standard
26413 \begin_layout Standard
26416 \begin_inset VSpace medskip
26422 \begin_layout Standard
26423 \begin_inset Note Greyedout
26426 \begin_layout Standard
26431 Text in colorboxes cannot have line breaks.
26432 To color multiple text lines or paragraphs, use a box inside a colorbox
26433 as described in the following.
26441 \begin_layout Subsection
26442 Color for Paragraphs
26443 \begin_inset LatexCommand label
26444 name "sub:Color-for-Paragraphs"
26449 \begin_inset LatexCommand index
26450 name "Color ! for Paragraphs"
26457 \begin_layout Standard
26458 To set the background color for more than one text line, put the text into
26460 Before the minipage insert the
26469 \begin_layout Standard
26477 \begin_layout Standard
26479 Behind the minipage insert a closing brace
26480 \begin_inset Quotes eld
26488 \begin_inset Quotes erd
26494 \begin_layout Standard
26498 \begin_layout Standard
26502 colorbox{lightgrey}{
26508 \begin_inset Box Frameless
26517 height_special "totalheight"
26520 \begin_layout Standard
26521 This is text with background color.
26522 This is text with background color.
26525 \begin_layout Standard
26526 \begin_inset VSpace defskip
26529 The text can have footnotes
26533 \begin_layout Standard
26534 Another example footnote
26539 and can include tables and figures.
26542 \begin_layout Standard
26544 \begin_inset Tabular
26545 <lyxtabular version="3" rows="3" columns="3">
26547 <column alignment="center" valignment="top" leftline="true" width="0">
26548 <column alignment="center" valignment="top" leftline="true" width="0">
26549 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26550 <row topline="true">
26551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26554 \begin_layout Standard
26560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26563 \begin_layout Standard
26569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26572 \begin_layout Standard
26579 <row topline="true">
26580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26583 \begin_layout Standard
26589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26592 \begin_layout Standard
26594 \begin_inset Quotes erd
26602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26605 \begin_layout Standard
26612 <row topline="true" bottomline="true">
26613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26616 \begin_layout Standard
26622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26625 \begin_layout Standard
26631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26634 \begin_layout Standard
26654 \begin_layout Standard
26664 \begin_layout Section
26665 URLs (Uniform Resource Locators)
26666 \begin_inset LatexCommand index
26674 \begin_layout Standard
26675 Links to web pages or email addresses can be inserted via the menu
26677 Insert\SpecialChar \menuseparator
26681 The appearing URL dialog has two fields; the
26689 field for the URL description, which will be typeset as plain text immediately
26693 \begin_layout Standard
26694 Here is an example URL:
26695 \begin_inset LatexCommand url
26696 name "LyX's homepage"
26697 target "http://www.lyx.org"
26704 \begin_layout Standard
26707 Generate\InsetSpace ~
26710 in the URL dialog has only an affect when you export your document to the
26712 \begin_inset Quotes eld
26720 \begin_inset Quotes erd
26726 \begin_layout Standard
26727 You cannot change the style of the link text.
26732 field will have the default text style of the document while the text of
26737 field will have the style
26738 \begin_inset Quotes eld
26746 \begin_inset Quotes erd
26752 \begin_layout Standard
26753 When you use the LaTeX-package
26758 \begin_inset LatexCommand index
26759 name "LaTeX-packages ! hyperref"
26763 to link cross-references in the output, URLs will automatically become
26764 clickable hyperlinks in DVI and PDF-output.
26767 \begin_layout Standard
26768 \begin_inset Note Greyedout
26771 \begin_layout Standard
26776 When you use the following characters: "%", "#", "^", you have to write
26777 them with a preceding backslash, e.\InsetSpace \thinspace{}
26780 \begin_inset Quotes eld
26786 \begin_inset Quotes erd
26790 URLs must not end with a backslash.
26798 \begin_layout Standard
26799 \begin_inset VSpace bigskip
26802 To create real hyperlinks without the force to write the link location to
26803 the text, you can use the command
26806 \begin_layout Standard
26811 href{link location}{link text}
26814 \begin_layout Standard
26816 To get for example a link to LyX's web page, write the command
26819 \begin_layout Standard
26824 href{http://www.lyx.org}{
26827 \begin_layout Standard
26829 Insert after the command the link text
26830 \begin_inset Quotes eld
26834 \begin_inset Quotes erd
26837 as normal text followed by a closing brace
26838 \begin_inset Quotes eld
26846 \begin_inset Quotes erd
26850 This is the result:
26854 \begin_layout Standard
26858 href{http://www.lyx.org}{
26867 \begin_layout Standard
26877 \begin_layout Standard
26878 To link to email addresses, add the prefix
26879 \begin_inset Quotes eld
26887 \begin_inset Quotes erd
26890 to the link location:
26896 \begin_layout Standard
26900 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26905 lyx-docs mailing list
26909 \begin_layout Standard
26919 \begin_layout Standard
26926 instead of LyX's URL box has the advantage that you can specify the text
26927 style of the link text like for all other text parts.
26928 You can therefore set hyphenation points and forced linebreaks to have
26929 long link text broken at the page margin.
26930 You are furthermore able to change the text style for all URLs in your
26931 document with an option in
26935 's load command and the restrictions mentioned above doesn't apply for
26944 \begin_layout Chapter
26946 \begin_inset LatexCommand index
26947 name "External Stuff"
26954 \begin_layout Standard
26957 Insert\SpecialChar \menuseparator
26960 you can insert external material to your document.
26964 \begin_layout Description
26966 Document Another LyX document; its content is directly inserted to your
26970 \begin_layout Description
26972 Text A text document; every of its text lines is inserted to your document
26976 \begin_layout Description
26980 Lines A text document; its text lines are inserted as they
26982 Empty text lines creates a new paragraph in your document.
26985 \begin_layout Description
26986 External\InsetSpace ~
26987 Material Files in various formats.
26990 \begin_layout Description
26992 Document LyX or LaTeX-documents.
26995 \begin_layout Section
26997 \begin_inset LatexCommand index
26998 name "External Stuff ! External Material"
27005 \begin_layout Standard
27006 The external material feature allows you to insert files to your document
27007 without converting them previously to a format that can be read by the
27008 document output format because LyX takes care of needed conversions.
27009 This is similar to images that can be inserted in various image formats
27013 \begin_layout Standard
27014 External material can be inserted via the
27018 dialog that is accessible with the menu
27020 Insert\SpecialChar \menuseparator
27021 File\SpecialChar \menuseparator
27022 External\InsetSpace ~
27026 Currently the following file types (
27033 \begin_layout Description
27034 ChessDiagram This template supports chess position diagrams made with the
27039 \begin_layout Standard
27043 href{http://en.wikipedia.org/wiki/XBoard}{
27056 \begin_layout Standard
27066 \begin_layout Description
27067 Date This inserts the date in the form
27072 This is a date inserted as external material:
27073 \begin_inset External
27081 The date is not shown within LyX, only in the output.
27082 There are two other methods of inserting a date, via menu
27084 Insert\SpecialChar \menuseparator
27087 and with the LaTeX command
27094 The different methods are compared in Table\InsetSpace ~
27096 \begin_inset LatexCommand ref
27097 reference "tab:Comparison-of-the"
27104 \begin_layout Description
27105 LilyPond This template is used for music notation typeset with the program
27109 \begin_layout Standard
27122 \begin_layout Standard
27126 href{http://en.wikipedia.org/wiki/LilyPond}{
27139 \begin_layout Standard
27147 \begin_inset Note Note
27150 \begin_layout Standard
27157 breaks the line while the remaining text in the line is stretched to the
27166 \begin_layout Description
27167 RasterImage This can be used for bitmap images.
27168 Nearly all popular image formats are supported.
27169 The image can be treated in the
27173 dialog like the images that are usually included via the
27177 dialog as described in section\InsetSpace ~
27179 \begin_inset LatexCommand ref
27180 reference "sec:Graphics-Dialog"
27185 The difference is that only raster images are allowed, that means that
27186 PDF and EPS-images are not supported.
27189 \begin_layout Description
27190 XFig This template supports images created with the program
27194 \begin_layout Standard
27198 href{http://en.wikipedia.org/wiki/Xfig}{
27211 \begin_layout Standard
27221 \begin_layout Standard
27222 \begin_inset Float table
27228 \begin_layout Standard
27229 \begin_inset Caption
27231 \begin_layout Standard
27232 \begin_inset LatexCommand label
27233 name "tab:Comparison-of-the"
27237 Comparison of the date input methods.
27245 \begin_layout Standard
27247 \begin_inset Tabular
27248 <lyxtabular version="3" rows="4" columns="4">
27250 <column alignment="center" valignment="top" leftline="true" width="0">
27251 <column alignment="center" valignment="top" leftline="true" width="0">
27252 <column alignment="center" valignment="top" leftline="true" width="0">
27253 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27254 <row topline="true">
27255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27258 \begin_layout Standard
27264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27267 \begin_layout Standard
27270 External Material\SpecialChar \menuseparator
27276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27279 \begin_layout Standard
27282 Insert\SpecialChar \menuseparator
27288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27291 \begin_layout Standard
27302 <row topline="true">
27303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27306 \begin_layout Standard
27312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27315 \begin_layout Standard
27321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27324 \begin_layout Standard
27330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27333 \begin_layout Standard
27340 <row topline="true">
27341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27344 \begin_layout Standard
27350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27353 \begin_layout Standard
27359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27362 \begin_layout Standard
27368 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27371 \begin_layout Standard
27378 <row topline="true" bottomline="true">
27379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27382 \begin_layout Standard
27388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27391 \begin_layout Standard
27397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27400 \begin_layout Standard
27406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27409 \begin_layout Standard
27428 \begin_layout Standard
27429 When you use the option
27441 dialog, only the path to the inserted file is shown in the output.
27444 material is displayed in LyX either as box like this:
27445 \begin_inset Graphics
27446 filename clipart/ExternalMaterialQt4.png
27451 or as image, depending on the setting in the
27463 \begin_layout Standard
27470 manual explains how you can define your own templates.
27473 \begin_layout Section
27475 \begin_inset LatexCommand label
27476 name "sec:Child-Documents"
27481 \begin_inset LatexCommand index
27482 name "External Stuff ! Child Documents"
27487 \begin_inset LatexCommand index
27488 name "Files ! Include"
27495 \begin_layout Standard
27496 Child documents are used when you have a long document consisting of several
27497 larger parts or sections.
27498 For maintenance it is often useful and sometimes even required to split
27499 the document in several files that can be revised separately.
27500 The different documents are then the so called child documents and a master
27501 document connects them to print the full document or parts of it.
27504 \begin_layout Standard
27505 Included documents are displayed in LyX as a box like this:
27506 \begin_inset Graphics
27507 filename clipart/ChildDocumentQt4.png
27512 To include child documents to a master document use the menu
27514 Insert\SpecialChar \menuseparator
27515 File\SpecialChar \menuseparator
27520 A dialog pops up where you can choose between four include methods:
27523 \begin_layout Description
27524 Include You can include LyX and LaTeX-documents.
27533 dialog, the included documents will be opened in LyX in a new file tab
27534 so that you can modify it.
27539 \begin_layout Standard
27540 Here is a child document inserted using
27545 \begin_inset Include \include{DummyDocument1.lyx}
27553 \begin_layout Standard
27554 The section numbering includes the sections of the included files in the
27555 order they are inserted in the master document.
27556 The included example document has for example a subsection that is numbered
27557 as subsection of this section.
27558 Labels of included documents can be referenced: Subsection\InsetSpace ~
27560 \begin_inset LatexCommand ref
27561 reference "sub:External-Subsection-1"
27568 \begin_layout Standard
27569 The preamble of the child document is ignored, only the preamble of the
27570 master document is used.
27571 Included documents are inserted starting on a new page and end with a pagebreak.
27574 \begin_layout Standard
27575 With the LaTeX-command
27581 you can specify which included child documents are processed when the output
27583 This is useful when you are perhaps only working on a certain chapter of
27584 your large document as this saves compiling time.
27591 is inserted to the master document preamble.
27592 It takes a comma-separated list of the filenames as argument, e.g.
27595 \begin_layout Standard
27600 includeonly{chapter1,chapter5}
27603 \begin_layout Standard
27604 will only process the included files named
27605 \begin_inset Quotes eld
27609 \begin_inset Quotes erd
27613 \begin_inset Quotes eld
27617 \begin_inset Quotes erd
27621 \begin_inset Quotes eld
27625 \begin_inset Quotes erd
27631 \begin_layout Standard
27632 \begin_inset Note Greyedout
27635 \begin_layout Standard
27640 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27641 w the document in case that the child document uses another document class
27642 than the master document as this will lead to unexpected outputs.
27650 \begin_layout Description
27651 Input This method is very similar to the Include method.
27652 The differences are:
27656 \begin_layout Itemize
27657 Input files don't start with a new page and don't end with a pagebreak.
27660 \begin_layout Itemize
27661 Input files can be previewed in LyX when
27663 Instant\InsetSpace ~
27666 is enabled in LyX's preferences under
27670 feel\SpecialChar \menuseparator
27676 \begin_layout Itemize
27687 \begin_layout Standard
27688 Here is a child document inserted using
27693 \begin_inset Include \input{DummyDocument2.lyx}
27701 \begin_layout Description
27702 Verbatim With this method every text file can be included.
27703 The file is shown in the output with its source code, no command used in
27704 the text is invoked.
27705 You can use the option
27707 Mark spaces in output
27709 that displays the character
27710 \begin_inset Quotes eld
27717 \begin_layout Standard
27727 \begin_inset Quotes erd
27730 for every space character in the source code.
27731 The difference to the method via the menu
27733 Insert\SpecialChar \menuseparator
27734 File\SpecialChar \menuseparator
27738 is that the document content is not shown in LyX.
27741 \begin_layout Standard
27742 Here is a child document inserted as Verbatim:
27743 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27749 \begin_inset VSpace bigskip
27752 Here is a child document inserted as Verbatim using the
27754 Mark spaces in output
27757 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27765 \begin_layout Standard
27766 \begin_inset VSpace bigskip
27772 \begin_layout Standard
27773 \begin_inset Note Greyedout
27776 \begin_layout Standard
27781 As you can see in the examples above, the text of the documents included
27782 as verbatim is not broken at the end of the document lines.
27790 \begin_layout Description
27791 Listings This type is described in chapter\InsetSpace ~
27793 \begin_inset LatexCommand ref
27794 reference "cha:Program-Code-Listings"
27801 \begin_layout Standard
27802 \begin_inset Note Greyedout
27805 \begin_layout Standard
27810 Including the same document twice in a document using different methods
27811 could cause LaTeX-problems.
27819 \begin_layout Chapter
27820 Program Code Listings
27821 \begin_inset LatexCommand label
27822 name "cha:Program-Code-Listings"
27827 \begin_inset LatexCommand index
27833 \begin_inset LatexCommand index
27834 name "Program Code"
27839 \begin_inset LatexCommand index
27840 name "Floats ! Listings"
27847 \begin_layout Standard
27848 To include and typeset program code you can use the
27852 inset that can be inserted via the menu
27854 Insert\SpecialChar \menuseparator
27863 \begin_inset LatexCommand index
27864 name "LaTeX-packages ! listings"
27868 provides a powerful and flexible way to insert program source code to your
27872 \begin_layout Standard
27873 When right-clicking on a listings inset a dialog pops up where you can set
27874 the listings format.
27877 \begin_layout Standard
27878 By default, a listing starts a new paragraph in the output.
27879 The placement option
27881 Inline\InsetSpace ~
27884 prints the listing inline like this:
27885 \begin_inset listings
27886 lstparams "language={C++}"
27890 \begin_layout Standard
27903 creates a listings float where you can specify the placement options
27904 \begin_inset Quotes eld
27912 \begin_inset Quotes erd
27916 \begin_inset Quotes eld
27924 \begin_inset Quotes erd
27928 \begin_inset Quotes eld
27936 \begin_inset Quotes erd
27940 \begin_inset Quotes eld
27948 \begin_inset Quotes erd
27951 corresponding to the float placement options described in section\InsetSpace ~
27953 \begin_inset LatexCommand ref
27954 reference "sec:Float-Placement"
27959 The placement options can be mixed and are inserted without any separation,
27960 e.\InsetSpace \thinspace{}
27963 \begin_inset Quotes eld
27971 \begin_inset Quotes erd
27976 \begin_inset Quotes eld
27980 \begin_inset Quotes erd
27983 has sometimes no effect, but you don't need to use the
27987 option in this case as also non-float listings can have captions and be
27991 \begin_layout Standard
27992 You can add captions to listings with the menu
27994 Insert\SpecialChar \menuseparator
27998 Listings can be referenced like floats: Listing\InsetSpace ~
28000 \begin_inset LatexCommand ref
28001 reference "lst:Example-Listing"
28008 \begin_layout Standard
28009 \begin_inset listings
28010 lstparams "language=Python"
28014 \begin_layout Standard
28016 \begin_inset Caption
28018 \begin_layout Standard
28019 \begin_inset LatexCommand label
28020 name "lst:Example-Listing"
28024 Example Listing float
28029 # Example listing float
28032 \begin_layout Standard
28037 \begin_layout Standard
28039 'this is a python function'
28042 \begin_layout Standard
28052 \begin_layout Standard
28053 When you have set a programming language in the listings dialog, the keywords
28054 of this language will be recognized and specially typeset in the output.
28055 In the example listings the Python keyword
28056 \begin_inset Quotes eld
28060 \begin_inset Quotes erd
28063 is recognized and printed bold in the output.
28066 \begin_layout Standard
28072 of the listings dialog you can specify the line numbering style.
28073 You can insert a number to specify which lines are numbered to the field
28079 When you insert e.g.
28081 \begin_inset Quotes eld
28085 \begin_inset Quotes erd
28088 , only every 3rd line will be numbered.
28091 \begin_layout Standard
28092 You can furthermore specify a range of lines, only these will then appear
28096 Extended\InsetSpace ~
28099 should be used when you use national characters like the German umlauts
28102 Here is an example listing with left line numbering, step
28104 \begin_inset Quotes eld
28108 \begin_inset Quotes erd
28112 \begin_inset Quotes eld
28116 \begin_inset Quotes erd
28120 \begin_inset Quotes eld
28123 Extended\InsetSpace ~
28125 \begin_inset Quotes erd
28129 \begin_inset Quotes eld
28135 \begin_inset Quotes erd
28138 , range lines 3\InsetSpace \thinspace{}
28139 -\InsetSpace \thinspace{}
28143 \begin_layout Standard
28144 \begin_inset listings
28145 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
28149 \begin_layout Standard
28154 \begin_layout Standard
28156 'this is a python function'
28159 \begin_layout Standard
28164 \begin_layout Standard
28169 \begin_layout Standard
28171 'This is a German word: Tschüß'
28174 \begin_layout Standard
28179 \begin_layout Standard
28184 \begin_layout Standard
28186 'this is a python function'
28189 \begin_layout Standard
28199 \begin_layout Standard
28200 \begin_inset Note Greyedout
28203 \begin_layout Standard
28208 The line numbering is shifted by a line by every previous listing.
28209 That's the reason why the lines 2 and 5 are numbered in the above listing
28210 and not the lines 3 and 6.
28218 \begin_layout Standard
28219 \begin_inset VSpace bigskip
28225 \begin_layout Standard
28226 It is also possible to print lines from a file as listing.
28227 To do this, use the menu
28229 Insert\SpecialChar \menuseparator
28230 File\SpecialChar \menuseparator
28233 and choose the type
28241 \begin_layout Standard
28242 The other child document types are described in section\InsetSpace ~
28244 \begin_inset LatexCommand ref
28245 reference "sec:Child-Documents"
28254 In the child document dialog you can specify the listing parameters in
28256 To show a list of all available parameters, type in a question mark
28257 \begin_inset Quotes eld
28261 \begin_inset Quotes erd
28267 \begin_layout Standard
28268 To reference child document listings, write a label text into the corresponding
28269 field of the child document dialog.
28270 The label can then be referenced using the menu
28272 Insert\SpecialChar \menuseparator
28278 \begin_layout Standard
28279 Listing\InsetSpace ~
28281 \begin_inset LatexCommand ref
28282 reference "lst:file-listing"
28286 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
28287 -\InsetSpace \thinspace{}
28292 \begin_layout Standard
28293 \begin_inset Include \lstinputlisting{EmbeddedObjects.lyx}[breaklines=true,caption={Lines 10 - 15 of this LyX file},firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15]
28301 \begin_layout Standard
28302 \begin_inset VSpace bigskip
28308 \begin_layout Standard
28309 Global listings settings can be set in the
28311 Document\SpecialChar \menuseparator
28312 Settings\SpecialChar \menuseparator
28316 To get there a list of available options, type in a question mark
28317 \begin_inset Quotes eld
28321 \begin_inset Quotes erd
28326 Listings\InsetSpace ~
28332 \begin_layout Standard
28333 For more information about the
28337 package, we refer to its documentation
28338 \begin_inset LatexCommand cite
28346 \begin_layout Standard
28352 \begin_layout Chapter
28358 \begin_layout Standard
28371 \begin_layout Standard
28379 \begin_inset LatexCommand index
28385 \begin_inset LatexCommand label
28386 name "cha:Units-available-in"
28391 \begin_inset Note Note
28394 \begin_layout Standard
28397 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
28398 are displayed wrongly in PDF-bookmarks.
28399 For more information about this, have a look at
28400 \begin_inset LatexCommand cite
28413 \begin_layout Standard
28414 To understand the units described in this documentation, Table\InsetSpace ~
28416 \begin_inset LatexCommand ref
28417 reference "tab:Units"
28421 explains all units available in LyX.
28424 \begin_layout Standard
28425 \begin_inset Float table
28431 \begin_layout Standard
28432 \begin_inset Caption
28434 \begin_layout Standard
28435 \begin_inset LatexCommand label
28448 \begin_layout Standard
28449 \begin_inset VSpace medskip
28455 \begin_layout Standard
28457 \begin_inset Tabular
28458 <lyxtabular version="3" rows="20" columns="2">
28460 <column alignment="center" valignment="top" leftline="true" width="0">
28461 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28462 <row topline="true" bottomline="true">
28463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28466 \begin_layout Standard
28472 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28475 \begin_layout Standard
28482 <row topline="true">
28483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28486 \begin_layout Standard
28492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28495 \begin_layout Standard
28502 <row topline="true">
28503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28506 \begin_layout Standard
28512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28515 \begin_layout Standard
28522 <row topline="true">
28523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28526 \begin_layout Standard
28532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28535 \begin_layout Standard
28542 <row topline="true">
28543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28546 \begin_layout Standard
28552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28555 \begin_layout Standard
28556 point (72.27\InsetSpace \thinspace{}
28557 pt = 1\InsetSpace \thinspace{}
28564 <row topline="true">
28565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28568 \begin_layout Standard
28574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28577 \begin_layout Standard
28578 pica (1\InsetSpace \thinspace{}
28579 pc = 12\InsetSpace \thinspace{}
28586 <row topline="true">
28587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28590 \begin_layout Standard
28596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28599 \begin_layout Standard
28600 scaled point (65536\InsetSpace \thinspace{}
28601 sp = 1\InsetSpace \thinspace{}
28608 <row topline="true">
28609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28612 \begin_layout Standard
28618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28621 \begin_layout Standard
28622 big point (72\InsetSpace \thinspace{}
28623 bp = 1\InsetSpace \thinspace{}
28630 <row topline="true">
28631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28634 \begin_layout Standard
28640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28643 \begin_layout Standard
28644 didot (1\InsetSpace \thinspace{}
28646 \begin_inset Formula $\approx$
28649 0.376\InsetSpace \thinspace{}
28656 <row topline="true">
28657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28660 \begin_layout Standard
28666 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28669 \begin_layout Standard
28670 cicero (1\InsetSpace \thinspace{}
28671 cc = 12\InsetSpace \thinspace{}
28678 <row topline="true">
28679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28682 \begin_layout Standard
28688 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28691 \begin_layout Standard
28692 % of original image width
28698 <row topline="true">
28699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28702 \begin_layout Standard
28708 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28711 \begin_layout Standard
28718 <row topline="true">
28719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28722 \begin_layout Standard
28728 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28731 \begin_layout Standard
28738 <row topline="true">
28739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28742 \begin_layout Standard
28748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28751 \begin_layout Standard
28758 <row topline="true">
28759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28762 \begin_layout Standard
28768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28771 \begin_layout Standard
28778 <row topline="true">
28779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28782 \begin_layout Standard
28788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28791 \begin_layout Standard
28798 <row topline="true">
28799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28802 \begin_layout Standard
28808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28811 \begin_layout Standard
28818 <row topline="true">
28819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28822 \begin_layout Standard
28828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28831 \begin_layout Standard
28842 <row topline="true">
28843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28846 \begin_layout Standard
28852 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28855 \begin_layout Standard
28866 <row topline="true" bottomline="true">
28867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28870 \begin_layout Standard
28876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28879 \begin_layout Standard
28880 math unit (1\InsetSpace \thinspace{}
28881 mu = 1/18\InsetSpace \thinspace{}
28900 \begin_layout Chapter
28901 Output File Formats with Graphics
28902 \begin_inset LatexCommand label
28903 name "cha:Output-File-Formats"
28910 \begin_layout Section
28912 \begin_inset LatexCommand index
28913 name "File Formats ! DVI"
28918 \begin_inset LatexCommand index
28919 name "DVI|see{File Formats}"
28926 \begin_layout Standard
28927 This file type has the extension
28928 \begin_inset Quotes eld
28936 \begin_inset Quotes erd
28941 \begin_inset Quotes eld
28945 \begin_inset Quotes erd
28948 (DVI), because it is completely portable; you can move them from one machine
28949 to another without needing to do any sort of conversion.
28950 At the time when this file-format was developed, this was no matter of
28952 DVIs are used for quick previews and as pre-stage for other output formats,
28956 \begin_layout Standard
28957 \begin_inset Note Greyedout
28960 \begin_layout Standard
28965 DVI-files doesn't contain images, they will only be a linked.
28970 So don't forget this, if you move your
28974 file to another computer.
28975 This property can also slow down your computer when you view the DVI.
28976 Because the DVI-viewer has to convert the image in the background to make
28977 it visible when you scroll in the DVI.
28978 So we recommend to use PDF for files with many images.
28981 \begin_layout Standard
28982 You can export your document to DVI by using the menu
28984 File\SpecialChar \menuseparator
28985 Export\SpecialChar \menuseparator
28989 You can view your document as DVI via the
28993 menu or by using the toolbar button
28994 \begin_inset Graphics
28995 filename ../images/buffer-view_dvi.xpm
29003 \begin_layout Section
29005 \begin_inset LatexCommand label
29006 name "sec:PostScript"
29011 \begin_inset LatexCommand index
29012 name "File Formats ! PostScript"
29017 \begin_inset LatexCommand index
29018 name "PostScript|see{File Formats}"
29025 \begin_layout Standard
29026 This file type has the extension
29027 \begin_inset Quotes eld
29035 \begin_inset Quotes erd
29039 PostScript was developed by the company
29043 as printer language.
29044 The file contains therefore commands that the printer uses to print the
29046 PostScript can be seen as
29047 \begin_inset Quotes eld
29050 programming language
29051 \begin_inset Quotes erd
29054 ; you can calculate with it and draw diagrams and images
29058 \begin_layout Standard
29059 If you are interested to learn more about this, have a look at the LaTeX-package
29065 \begin_inset LatexCommand cite
29076 Due to this ability, the files are often bigger than PDFs.
29079 \begin_layout Standard
29080 PostScript can only contain images in the format
29081 \begin_inset Quotes eld
29084 Encapsulated PostScript
29085 \begin_inset Quotes erd
29088 (EPS, file extension
29089 \begin_inset Quotes eld
29097 \begin_inset Quotes erd
29101 As LyX allows you to use any known image format in your document, it has
29102 to convert images in the background to EPS.
29103 If you have e.g 50 images in your document, LyX has to do 50 conversions
29104 whenever you view or export your document.
29105 This will slow down your work flow with LyX drastically.
29106 So if you plan to use PostScript, you can insert your images directly as
29107 EPS to avoid this problem.
29110 \begin_layout Standard
29111 You can export your document to PostScript using the menu
29113 File\SpecialChar \menuseparator
29114 Export\SpecialChar \menuseparator
29118 You can view your document as PostScript via the
29122 menu or by using the toolbar button
29123 \begin_inset Graphics
29124 filename ../images/buffer-view_ps.xpm
29132 \begin_layout Section
29134 \begin_inset LatexCommand label
29140 \begin_inset LatexCommand index
29141 name "File Formats ! PDF"
29146 \begin_inset LatexCommand index
29154 \begin_layout Standard
29155 This file type has the extension
29156 \begin_inset Quotes eld
29164 \begin_inset Quotes erd
29169 \begin_inset Quotes eld
29172 Portable Document Format
29173 \begin_inset Quotes erd
29176 (PDF) is developed by
29180 as derivative from PostScript.
29181 It is more compressed and it uses much less commands than PostScript.
29183 \begin_inset Quotes eld
29187 \begin_inset Quotes erd
29190 implies, it can be processed at any computer system and the printed output
29191 looks exactly the same.
29194 \begin_layout Standard
29195 PDF can contain images in its own PDF format, in the format
29196 \begin_inset Quotes eld
29199 Joint Photographic Experts Group
29200 \begin_inset Quotes erd
29203 (JPG, file extension
29204 \begin_inset Quotes eld
29212 \begin_inset Quotes erd
29216 \begin_inset Quotes eld
29224 \begin_inset Quotes erd
29227 ), and in the format
29228 \begin_inset Quotes eld
29231 Portable Network Graphics
29232 \begin_inset Quotes erd
29235 (PNG, file extension
29236 \begin_inset Quotes eld
29244 \begin_inset Quotes erd
29248 Nevertheless you can use any other image format, because LyX converts them
29249 in the background to one of these formats.
29250 But as described in the section about PostScript, the image conversion
29251 will slow down your work flow.
29252 So it is recommended to use images in one of the three mentioned formats.
29255 \begin_layout Standard
29256 You can export your document to PDF via the menu
29258 File\SpecialChar \menuseparator
29261 in three different ways:
29264 \begin_layout Description
29266 (ps2pdf) This uses the program
29270 that creates a PDF from a PostScript-version of your file.
29271 The PostScript-version is produced by the program
29275 which uses a DVI-version as intermediate step.
29276 So this export variant consist of three conversions.
29279 \begin_layout Description
29281 (dvipdfm) This uses the program
29285 that converts your file in the background to DVI and in a second step to
29289 \begin_layout Description
29291 (pdflatex) This uses the program
29295 that converts your file directly to PDF.
29298 \begin_layout Standard
29299 It is recommended to use
29308 supports all features of actual PDF-versions, is quick and works stable
29314 is not under development and therefore a bit outdated.
29317 \begin_layout Standard
29318 You can view your document as PDF via the
29322 menu or by using the toolbar button
29323 \begin_inset Graphics
29324 filename ../images/buffer-view_pdf2.xpm
29341 \begin_layout Chapter
29342 Explanation of Equation\InsetSpace ~
29344 \begin_inset LatexCommand eqref
29350 \begin_inset LatexCommand label
29351 name "cha:Explanation-of-Equation"
29358 \begin_layout Standard
29364 \begin_inset Formula $W_{\mathrm{tot\, n}}$
29367 can be calculated to
29370 \begin_layout Standard
29371 \begin_inset Formula \begin{equation}
29372 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
29379 \begin_layout Standard
29381 \begin_inset Formula $W_{g\, n}$
29384 is the given width of all cells.
29391 is the LaTeX-length between the cell text and the cell border, its default
29392 value is 6\InsetSpace \thinspace{}
29400 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
29404 \begin_layout Standard
29405 Following equation\InsetSpace ~
29407 \begin_inset LatexCommand eqref
29408 reference "eq:Wtot_n"
29412 , the total width of a multicolumn
29413 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
29419 \begin_layout Standard
29420 \begin_inset Formula \begin{equation}
29421 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
29428 \begin_layout Standard
29429 By setting equation\InsetSpace ~
29431 \begin_inset LatexCommand eqref
29432 reference "eq:Wtot_n"
29437 \begin_inset LatexCommand eqref
29438 reference "eq:Wtot_mult"
29442 equal we can calculate the needed given width
29443 \begin_inset Formula $W_{g\, n}$
29450 columns are spanned, so that each column has a total width of
29451 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
29457 \begin_layout Standard
29458 \begin_inset Formula \begin{equation}
29459 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
29466 \begin_layout Bibliography
29467 \begin_inset LatexCommand bibitem
29468 key "latexcompanion"
29472 Frank Mittelbach and Michel Goossens:
29474 The LaTeX Companion Second Edition.
29477 Addison-Wesley, 2004
29480 \begin_layout Bibliography
29481 \begin_inset LatexCommand bibitem
29486 Helmut Kopka and Patrick W.
29489 A Guide to LaTeX Fourth Edition.
29492 Addison-Wesley, 2003
29495 \begin_layout Bibliography
29496 \begin_inset LatexCommand bibitem
29503 LaTeX: A Document Preparation System.
29506 Addison-Wesley, second edition, 1994
29509 \begin_layout Bibliography
29510 \begin_inset LatexCommand bibitem
29519 \begin_layout Standard
29523 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
29533 \begin_layout Standard
29540 of the LaTeX-package
29545 \begin_inset LatexCommand index
29546 name "LaTeX-packages ! booktabs"
29553 \begin_layout Bibliography
29554 \begin_inset LatexCommand bibitem
29563 \begin_layout Standard
29567 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29576 \begin_layout Standard
29583 of the LaTeX-package
29588 \begin_inset LatexCommand index
29589 name "LaTeX-packages ! caption"
29596 \begin_layout Bibliography
29597 \begin_inset LatexCommand bibitem
29606 \begin_layout Standard
29610 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
29620 \begin_layout Standard
29627 of the LaTeX-package
29632 \begin_layout Bibliography
29633 \begin_inset LatexCommand bibitem
29642 \begin_layout Standard
29646 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
29656 \begin_layout Standard
29663 of the LaTeX-package
29665 endf\SpecialChar \textcompwordmark{}
29669 \begin_inset LatexCommand index
29670 name "LaTeX-packages ! endfloat"
29677 \begin_layout Bibliography
29678 \begin_inset LatexCommand bibitem
29687 \begin_layout Standard
29691 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29701 \begin_layout Standard
29708 of the LaTeX-package
29710 f\SpecialChar \textcompwordmark{}
29711 loatf\SpecialChar \textcompwordmark{}
29715 \begin_inset LatexCommand index
29716 name "LaTeX-packages ! floatflt"
29723 \begin_layout Bibliography
29724 \begin_inset LatexCommand bibitem
29733 \begin_layout Standard
29737 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29747 \begin_layout Standard
29754 of the LaTeX-package
29759 \begin_inset LatexCommand index
29760 name "LaTeX-packages ! footmisc"
29767 \begin_layout Bibliography
29768 \begin_inset LatexCommand bibitem
29777 \begin_layout Standard
29781 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
29790 \begin_layout Standard
29797 of the LaTeX-package
29802 \begin_inset LatexCommand index
29803 name "LaTeX-packages ! hyperref"
29810 \begin_layout Bibliography
29811 \begin_inset LatexCommand bibitem
29820 \begin_layout Standard
29824 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29834 \begin_layout Standard
29841 of the LaTeX-package
29846 \begin_inset LatexCommand index
29847 name "LaTeX-packages ! hyperref"
29854 \begin_layout Bibliography
29855 \begin_inset LatexCommand bibitem
29864 \begin_layout Standard
29868 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29878 \begin_layout Standard
29885 of the LaTeX-package
29890 \begin_inset LatexCommand index
29891 name "LaTeX-packages ! koma-script"
29898 \begin_layout Bibliography
29899 \begin_inset LatexCommand bibitem
29900 key "koma-script-de"
29908 \begin_layout Standard
29912 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
29922 \begin_layout Standard
29929 of the LaTeX-package
29934 \begin_inset LatexCommand index
29935 name "LaTeX-packages ! koma-script"
29942 \begin_layout Bibliography
29943 \begin_inset LatexCommand bibitem
29952 \begin_layout Standard
29956 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
29966 \begin_layout Standard
29973 of the LaTeX-package
29978 \begin_inset LatexCommand index
29979 name "LaTeX-packages ! listings"
29986 \begin_layout Bibliography
29987 \begin_inset LatexCommand bibitem
29996 \begin_layout Standard
30000 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
30010 \begin_layout Standard
30017 of the LaTeX-package
30022 \begin_inset LatexCommand index
30023 name "LaTeX-packages ! marginnote"
30030 \begin_layout Bibliography
30031 \begin_inset LatexCommand bibitem
30040 \begin_layout Standard
30044 href{http://tug.org/PSTricks/main.cgi/}{
30053 \begin_layout Standard
30060 of the LaTeX-package
30065 \begin_inset LatexCommand index
30066 name "LaTeX-packages ! PSTricks"
30073 \begin_layout Bibliography
30074 \begin_inset LatexCommand bibitem
30083 \begin_layout Standard
30087 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
30096 \begin_layout Standard
30103 of the LaTeX-package
30108 \begin_inset LatexCommand index
30109 name "LaTeX-packages ! sidecap"
30116 \begin_layout Bibliography
30117 \begin_inset LatexCommand bibitem
30126 \begin_layout Standard
30130 href{http://wiki.lyx.org/LyX/NewInLyX15}{
30139 \begin_layout Standard
30146 about new LyX-features planned for the release
30153 \begin_layout Standard
30154 \begin_inset LatexCommand printindex
30161 \begin_layout Standard
30162 \begin_inset FloatList figure
30169 \begin_layout Standard
30170 \begin_inset FloatList table