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 floatf\SpecialChar \textcompwordmark{}
17921 \begin_inset LatexCommand index
17922 name "LaTeX-packages ! floatflt"
17930 \begin_layout Standard
17931 Installing a LaTeX-package is explained it in the
17941 The width and placement of the float is adjusted by right-clicking on the
17943 Figure\InsetSpace ~
17945 \begin_inset LatexCommand ref
17946 reference "fig:This-is-a"
17950 is an example text wrap float with a width of 40
17951 \begin_inset Formula $\,$
17958 \begin_layout Standard
17959 Available units are explained in
17960 \begin_inset LatexCommand ref
17961 reference "cha:Units-available-in"
17970 Some space was added under the caption to separate it better from the surroundi
17974 \begin_layout Standard
17977 floatf\SpecialChar \textcompwordmark{}
17980 also supports table wrap floats, but they are not yet supported by LyX.
17981 If you need this, read the documentation of
17983 floatf\SpecialChar \textcompwordmark{}
17987 \begin_inset LatexCommand cite
17995 \begin_layout Standard
17996 \begin_inset Note Greyedout
17999 \begin_layout Standard
18005 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18007 having a figure too close to the bottom
18008 of the page can mess things up in the way that the float doesn't appear
18009 in the output or that it is placed over some other text.
18013 \begin_layout Standard
18014 The better solution is to use the LaTeX-package
18016 wrapf\SpecialChar \textcompwordmark{}
18020 \begin_inset LatexCommand index
18021 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18027 floatf\SpecialChar \textcompwordmark{}
18030 , but it is currently not supported by LyX.
18043 \begin_layout Standard
18047 \begin_layout Itemize
18048 Wrap floats should not be placed in paragraphs that run over a page break.
18049 That means that wrap floats should better be inserted to the exact place
18050 when the document is nearly finished and you are able to estimate where
18051 page breaks will appear.
18054 \begin_layout Itemize
18055 Wrap floats should either be placed in an own paragraph before the paragraph
18056 where they should wrap into or within a paragraph.
18059 \begin_layout Itemize
18060 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18061 there is a text paragraph between them as separator.
18064 \begin_layout Itemize
18065 Wrap floats are not allowed in section headings or tables.
18068 \begin_layout Section
18070 \begin_inset LatexCommand label
18071 name "sec:Float-Numbering"
18076 \begin_inset LatexCommand index
18077 name "Floats ! Numbering"
18084 \begin_layout Standard
18085 Floats are usually numbered either independent from the sections the floats
18086 are in, or in the scheme
18087 \begin_inset Quotes eld
18091 \begin_inset Quotes erd
18095 \begin_inset Quotes eld
18099 \begin_inset Quotes erd
18103 This depends on the used document class.
18106 \begin_layout Standard
18107 To change the section independent numbering, you can use this command in
18108 the document preamble:
18111 \begin_layout Standard
18123 \begin_layout Standard
18130 is the command that prints the table number, for figure floats, the command
18144 prints in the command above the table number as small roman number.
18147 \begin_layout Standard
18148 To change the numbering scheme for example to
18149 \begin_inset Quotes eld
18153 \begin_inset Quotes erd
18156 , use this command in the preamble:
18159 \begin_layout Standard
18164 numberwithin{table}{subsection}
18167 \begin_layout Standard
18168 To be able to use the command
18179 in the document settings the option
18189 \begin_layout Standard
18190 Please also have a look at section\InsetSpace ~
18192 \begin_inset LatexCommand ref
18193 reference "sub:Footnote-Numbering"
18197 for the details and important notes about the numbering commands.
18200 \begin_layout Section
18202 \begin_inset LatexCommand label
18203 name "sec:Referencing-Floats"
18208 \begin_inset LatexCommand index
18209 name "Floats ! References"
18214 \begin_inset LatexCommand index
18222 \begin_layout Standard
18223 To reference a float, insert a label into its caption using the menu
18225 Insert\SpecialChar \menuseparator
18228 or the toolbar button
18229 \begin_inset Graphics
18230 filename ../images/label-insert.xpm
18236 A grey label box like this one:
18237 \begin_inset Graphics
18238 filename clipart/labelQt4.png
18243 will be inserted and the label window pops up asking for the label text.
18244 LyX offers as text the first words of the caption with a prefix.
18245 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18247 for figure floats the prefix will
18255 \begin_layout Standard
18256 The label is used as anchor and name for the reference.
18257 You can refer to the label using the menu
18259 Insert\SpecialChar \menuseparator
18262 or the toolbar button
18263 \begin_inset Graphics
18264 filename ../images/dialog-show-new-inset_ref.xpm
18270 A grey cross-reference box like this one:
18271 \begin_inset Graphics
18272 filename clipart/referenceQt4.png
18277 will be inserted and the cross-reference window appear showing all labels
18279 If you have multiple LyX-documents opened, choose the one you are working
18280 on from the drop-list at the top of the dialog.
18281 You can now sort the labels alphabetically and then choose one.
18282 At the position of the cross-reference box the float number will appear
18286 \begin_layout Standard
18287 It is recommended to use a protected space between the cross-reference name
18288 and its number to avoid line breaks between them.
18289 If a cross-reference refers to a non-existing label, you will see two question
18290 marks in the output instead of the reference.
18293 \begin_layout Standard
18294 You can change labels at any time by clicking on the label box.
18295 References to the changed label will automatically change its link to the
18296 new label text, so that you don't need to take care about this.
18299 \begin_layout Standard
18306 in the cross-reference window sets the cursor before the referred label.
18307 The button text changes then to Go\InsetSpace ~
18308 Back and you can use it to set the cursor
18309 back to the cross-reference.
18310 Right-clicking on a cross-reference box also sets the cursor before the
18311 referenced label but without a possibility to go back.
18314 \begin_layout Subsection
18315 Cross-Reference Formats
18316 \begin_inset LatexCommand label
18317 name "sub:Cross-Reference-Formats"
18322 \begin_inset LatexCommand index
18323 name "References ! Formats"
18330 \begin_layout Standard
18331 There are six varieties of cross-references:
18334 \begin_layout Description
18335 <reference>: prints the float number, this is the default:
18336 \begin_inset LatexCommand ref
18337 reference "fig:Two-distorted-images"
18344 \begin_layout Description
18345 (<reference>): prints the float number within two parentheses, this is the
18346 style normally used to reference formulas, especially when the reference
18348 \begin_inset Quotes eld
18352 \begin_inset Quotes erd
18356 \begin_inset LatexCommand eqref
18364 \begin_layout Description
18365 <page>: prints the page number: Page\InsetSpace ~
18367 \begin_inset LatexCommand pageref
18368 reference "fig:Two-distorted-images"
18375 \begin_layout Description
18378 <page>: prints the text "on page" and the page number:
18379 \begin_inset LatexCommand vpageref
18380 reference "fig:Two-distorted-images"
18387 \begin_layout Description
18388 <reference>\InsetSpace ~
18391 <page>: prints the float number, the text "on page", and
18393 \begin_inset LatexCommand vref
18394 reference "fig:Two-distorted-images"
18401 \begin_layout Description
18402 Formatted\InsetSpace ~
18403 reference: prints a self defined cross-reference format.
18405 \begin_inset Note Greyedout
18408 \begin_layout Standard
18413 This feature is only available when you have the LaTeX-package
18425 \begin_layout Standard
18426 Note that the style <page> won't print the page number if the label is on
18427 the previous, the same, or the next page.
18428 You will e.\InsetSpace \thinspace{}
18431 \begin_inset Quotes eld
18439 \begin_inset Quotes erd
18445 \begin_layout Standard
18446 The number and current page of the referred document part in the output,
18447 is automatically calculated by LaTeX.
18448 The varieties are adjusted in the field
18452 of the cross-reference window, that appear when you click on the cross-referenc
18456 \begin_layout Subsection
18457 Referencing Subfigures
18458 \begin_inset LatexCommand label
18459 name "sub:Referencing-Subfigures"
18464 \begin_inset LatexCommand index
18465 name "References ! to Subfigures"
18472 \begin_layout Standard
18473 Currently referencing subfigures is not supported by LyX, so you have to
18474 use LaTeX-commands.
18475 The label is the created with the command
18478 \begin_layout Standard
18483 label{fig:YourLabelName}
18486 \begin_layout Standard
18487 that is directly inserted into the subfigure caption field.
18488 To reference the label add this command in ERT
18491 \begin_layout Standard
18496 ref{fig:YourLabelName}
18499 \begin_layout Standard
18500 to the position in your document where the reference should be placed.
18501 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18506 \begin_layout Standard
18518 \begin_layout Subsection
18519 Automatic Reference Naming
18520 \begin_inset LatexCommand index
18521 name "References ! Automatic Reference Naming"
18528 \begin_layout Standard
18533 provides a very useful feature that cross-references automatically include
18534 the name of the referenced floats (or text parts like sections).
18535 You save to write e.\InsetSpace \thinspace{}
18538 \begin_inset Quotes eld
18542 \begin_inset Quotes erd
18545 before every reference box.
18546 To get this automatic reference naming, you have to load the LaTeX-package
18552 \begin_inset LatexCommand index
18553 name "LaTeX-packages ! hyperref"
18557 in the document preamble with
18560 \begin_layout Standard
18565 usepackage[pdfborder={0 0 0}]{hyperref}
18580 \begin_layout Standard
18585 is used to link cross-references in the DVI- and PDF-output, this means
18586 that the reader of your document will be able to click on a table of content
18587 (TOC) entry or on a reference and he will be shown the referenced document
18593 also creates PDF-bookmarks for every section of your document to make it
18594 easier for readers to navigate through the document.
18595 This is also used in this document but when you have a look in the document
18596 preamble you will find various options in the load command of
18601 To learn more about the
18605 package, we refer to its documentation
18606 \begin_inset LatexCommand cite
18614 \begin_layout Standard
18615 \begin_inset Note Greyedout
18618 \begin_layout Standard
18623 Automatic reference naming cannot be used when you use cross-references
18626 Formatted\InsetSpace ~
18629 style, described in section\InsetSpace ~
18631 \begin_inset LatexCommand ref
18632 reference "sub:Cross-Reference-Formats"
18644 \begin_layout Subsection
18646 \begin_inset LatexCommand label
18647 name "sub:Reference-Position"
18652 \begin_inset LatexCommand index
18653 name "References ! Reference Position"
18660 \begin_layout Standard
18666 \begin_inset LatexCommand index
18667 name "LaTeX-packages ! hyperref"
18671 to link cross-references in the output, you will see that clicking on an
18672 image float reference jumps to the image label.
18673 The caption will be the first text part on the screen, so that you cannot
18674 see the image without scrolling.
18675 This is because the reference link anchor is placed at the position of
18677 With the use of the package
18682 \begin_inset LatexCommand index
18683 name "LaTeX-packages ! hypcap"
18687 , which is part of the LaTeX-package
18692 \begin_inset LatexCommand index
18693 name "LaTeX-packages ! oberdiek"
18697 , the link anchor is placed at the beginning of a float.
18698 To use this feature for figure floats, load
18702 in the document preamble with the line
18705 \begin_layout Standard
18710 usepackage[f\SpecialChar \textcompwordmark{}
18714 \begin_layout Standard
18719 for all floats but this isn't recommended for stability reasons.
18720 For more informations, have a look at
18725 \begin_inset LatexCommand cite
18733 \begin_layout Standard
18734 \begin_inset Note Greyedout
18737 \begin_layout Standard
18746 must be loaded after
18750 in the document preamble.
18758 \begin_layout Standard
18759 \begin_inset Note Greyedout
18762 \begin_layout Standard
18771 has no effect for references to subfigures.
18779 \begin_layout Section
18781 \begin_inset LatexCommand label
18782 name "sec:Float-Placement"
18787 \begin_inset LatexCommand index
18788 name "Floats ! Placement"
18795 \begin_layout Standard
18796 Right-clicking on a float-box opens a dialog where you can alter the placement
18797 options that LaTeX uses for positioning the float.
18804 is only useful for two-column documents: If you select it, the float will
18805 span across both columns on the page instead of being confined to just
18810 Rotate\InsetSpace ~
18813 is used to rotate floats, see section
18814 \begin_inset LatexCommand ref
18815 reference "sec:Rotated-Floats"
18822 \begin_layout Standard
18823 You can use one ore more of the following options in the float dialog to
18824 set the placement for a particular float when you uncheck the option
18827 default\InsetSpace ~
18833 \begin_layout Description
18836 possible: try to place the float on the position where it is inserted
18839 \begin_layout Description
18842 page: try to place the float on the top of the current page
18845 \begin_layout Description
18846 Bottom\InsetSpace ~
18848 page: try to place the float on the bottom of the current page
18851 \begin_layout Description
18854 floats: try to place the float on an own page
18857 \begin_layout Standard
18858 The order of the above option is
18863 That means, if you use the default placement, LaTeX will first try out
18876 , and then the others.
18877 If you don't use the default, LaTeX will try only the checked options but
18879 If none of the 4 placements are possible the procedure is internally repeated
18880 but it is tried to put the float on the following page.
18883 \begin_layout Standard
18884 By default, each option has its own rules:
18887 \begin_layout Labeling
18888 \labelwidthstring 00.00.0000
18895 only floats occupying less than 70\InsetSpace \thinspace{}
18896 % of the page can be placed at the top
18906 \begin_layout Labeling
18907 \labelwidthstring 00.00.0000
18910 Bottom\InsetSpace ~
18914 : only floats occupying less than 30\InsetSpace \thinspace{}
18915 % of the page can be placed at the bottom
18926 \begin_layout Labeling
18927 \labelwidthstring 00.00.0000
18934 : only if more than 50\InsetSpace \thinspace{}
18935 % of the page are occupied by floats, several floats
18936 can be set together on a page.
18946 \begin_layout Standard
18947 If you don't like these rules, you can ignore them by using the additional
18950 Ignore\InsetSpace ~
18956 You can also redefine the rules with LaTeX-commands that are given in parenthese
18957 s behind the rules description above.
18958 To increase for example the often too small default of the bottom-rule
18959 to 50\InsetSpace \thinspace{}
18960 % of the page, add this line to your document preamble:
18963 \begin_layout Standard
18970 bottomfraction}{0.5}
18973 \begin_layout Standard
18974 Sometimes you might need, under all circumstances, a float to be placed
18975 exactly at the position where it is inserted.
18976 For this case you can use the option
18982 Use this option very rarely and only if the document is nearly ready to
18984 Because the float is then no longer able to
18985 \begin_inset Quotes eld
18989 \begin_inset Quotes erd
18992 when you change your document and this will often destroy the page layout.
18995 \begin_layout Standard
18996 There are no placement options for text wrap floats, because they are always
18997 surrounded by the text of a certain paragraph.
18998 \begin_inset VSpace bigskip
19004 \begin_layout Standard
19005 Sometimes you have the problem that a float is placed at the top of a page
19006 while its corresponding section starts at the middle of the page, so that
19007 the reader could think the float is part of the previous section.
19008 To avoid this the LaTeX-command
19012 suppressf\SpecialChar \textcompwordmark{}
19016 It suppresses a given float placement for the page where it is inserted
19017 and can therefore be used to avoid that floats could be set before a section
19019 To get this, add these commands to your document preamble:
19022 \begin_layout Standard
19039 suppressf\SpecialChar \textcompwordmark{}
19045 \begin_layout Standard
19046 You can define the same for all section headings, like chapters and subsections.
19047 This definition is not recommended to be used for small text parts like
19048 subsubsections because LaTeX may then have problems to find a suitable
19052 \begin_layout Standard
19053 \begin_inset VSpace bigskip
19056 In some cases it is required to have all figures/tables at the end of the
19058 For this purpose the LaTeX-package
19060 endf\SpecialChar \textcompwordmark{}
19064 \begin_inset LatexCommand index
19065 name "LaTeX-packages ! endfloat"
19070 It puts all figure and table floats at the end of the document into own
19072 At the original float position a text hint like
19073 \begin_inset Quotes eld
19078 [Figure\InsetSpace ~
19082 \begin_inset Quotes erd
19086 The endfloat-package is loaded in the preamble with the line
19089 \begin_layout Standard
19094 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19098 \begin_layout Standard
19099 There are various package options to format the created figure/table sections.
19100 For more information we refer to the
19102 endf\SpecialChar \textcompwordmark{}
19106 \begin_inset LatexCommand cite
19114 \begin_inset Note Greyedout
19117 \begin_layout Standard
19120 Note: endf\SpecialChar \textcompwordmark{}
19123 doesn't provide an automatic translation for the text hint, you have to
19124 do this manually, see section\InsetSpace ~
19126 \begin_inset LatexCommand cite
19139 \begin_inset Note Greyedout
19142 \begin_layout Standard
19147 There is currently a bug in
19149 endf\SpecialChar \textcompwordmark{}
19152 when the caption contains a German
19153 \begin_inset Quotes eld
19157 \begin_inset Quotes erd
19161 Use in this case the command
19162 \begin_inset Quotes eld
19172 \begin_inset Quotes erd
19176 \begin_inset Quotes eld
19180 \begin_inset Quotes erd
19191 \begin_layout Standard
19192 \begin_inset VSpace bigskip
19195 For more details about float placements, have a look at LaTeX books,
19196 \begin_inset LatexCommand cite
19197 key "latexcompanion,latexguide,latexbook"
19204 \begin_layout Section
19206 \begin_inset LatexCommand label
19207 name "sec:Rotated-Floats"
19212 \begin_inset LatexCommand index
19213 name "Floats ! Rotating"
19220 \begin_layout Standard
19221 Especially for wide tables you might have floats rotated.
19222 To rotate a whole float including the caption, right-click on the float-box
19225 Rotate\InsetSpace ~
19231 \begin_layout Standard
19232 Rotated floats are always placed on its own page (or column, when you have
19233 a two-column document).
19234 They are normally rotated so that you can read them from the outside margin
19235 -- to the left on even pages, to the right on odd pages.
19236 To force a certain rotation direction for all pages, you can add either
19245 to the document class options.
19248 \begin_layout Standard
19249 Referencing rotated floats is the same like for normal floats, the caption
19250 format is also the same: Table\InsetSpace ~
19252 \begin_inset LatexCommand ref
19253 reference "tab:Rotated-table"
19257 is an example of a rotated table float.
19260 \begin_layout Standard
19261 \begin_inset Note Greyedout
19264 \begin_layout Standard
19269 Not all DVI-viewers are able to display rotated floats.
19277 \begin_layout Standard
19278 \begin_inset Float table
19283 \begin_layout Standard
19284 \begin_inset Caption
19286 \begin_layout Standard
19287 \begin_inset LatexCommand label
19288 name "tab:Rotated-table"
19300 \begin_layout Standard
19302 \begin_inset Tabular
19303 <lyxtabular version="3" rows="1" columns="5">
19305 <column alignment="center" valignment="top" leftline="true" width="0">
19306 <column alignment="center" valignment="top" leftline="true" width="0">
19307 <column alignment="center" valignment="top" leftline="true" width="0">
19308 <column alignment="center" valignment="top" leftline="true" width="0">
19309 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19310 <row topline="true" bottomline="true">
19311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19314 \begin_layout Standard
19320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19323 \begin_layout Standard
19329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19332 \begin_layout Standard
19338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19341 \begin_layout Standard
19347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19350 \begin_layout Standard
19369 \begin_layout Section
19371 \begin_inset LatexCommand index
19372 name "Caption ! Formatting"
19377 \begin_inset LatexCommand index
19378 name "Floats ! Caption Formatting"
19383 \begin_inset LatexCommand index
19384 name "LaTeX-packages ! caption"
19389 \begin_inset LatexCommand label
19390 name "sec:Caption-Formatting"
19397 \begin_layout Standard
19402 environment is the default paragraph environment for
19407 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19410 \begin_inset Quotes eld
19418 \begin_inset Quotes erd
19421 followed by the caption text.
19423 \begin_inset Quotes eld
19427 \begin_inset Quotes erd
19430 is the actual reference number.
19431 By default the label and the number are in the same font as the caption
19432 text and a colon follows the number to divide the label from the text.
19433 This caption format is not suitable for all document formats.
19437 \begin_layout Standard
19438 To change the default caption format, load the LaTeX-package
19443 \begin_inset LatexCommand index
19444 name "LaTeX-packages ! caption"
19448 in the document preamble with this line:
19451 \begin_layout Standard
19456 usepackage[format definition]{caption}
19459 \begin_layout Standard
19460 To have for example the label and the number in sans-serif bold font and
19461 the table captions always above the table like in this document, use the
19465 \begin_layout Standard
19470 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19473 \begin_layout Standard
19474 You can also define different caption formats for the different float types.
19475 In this case load the
19479 package without format specific options and define the different formats
19480 with the help of the command
19483 \begin_layout Standard
19488 captionsetup[float type]{format definition}
19491 \begin_layout Standard
19492 in the document preamble.
19493 For example the caption formats of Figure\InsetSpace ~
19495 \begin_inset LatexCommand ref
19496 reference "fig:This-is-an-fig"
19500 and Table\InsetSpace ~
19502 \begin_inset LatexCommand ref
19503 reference "tab:This-is-an-tab"
19507 can be created using these commands in the document preamble:
19510 \begin_layout Standard
19515 usepackage[tableposition=top]{caption}
19523 captionsetup[f\SpecialChar \textcompwordmark{}
19524 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19530 \begin_layout Standard
19538 captionsetup[figure]
19549 captionsetup[table]{labelfont={bf,sf}}
19552 \begin_layout Standard
19553 \begin_inset Note Greyedout
19556 \begin_layout Standard
19565 has no effect when a
19570 \begin_inset LatexCommand index
19571 name "LaTeX-packages ! koma-script"
19575 document class is used.
19576 In this case the document class option
19588 \begin_layout Standard
19589 For more information about the package
19593 we refer to its documentation
19594 \begin_inset LatexCommand cite
19595 key "caption,caption-de"
19602 \begin_layout Standard
19603 To change the label name from e.g.
19605 \begin_inset Quotes eld
19609 \begin_inset Quotes erd
19613 \begin_inset Quotes eld
19617 \begin_inset Quotes erd
19620 use this preamble command:
19623 \begin_layout Standard
19630 fnum@figure}{Image~
19635 \begin_layout Standard
19642 inserts the figure number and
19645 \begin_inset Quotes eld
19651 \begin_inset Quotes erd
19654 creates a protected space.
19657 \begin_layout Standard
19658 \begin_inset VSpace bigskip
19666 \begin_inset LatexCommand index
19667 name "LaTeX-packages ! koma-script"
19673 article (koma-script)
19681 letter (koma-script)
19685 report (koma-script)
19687 \InsetSpace \thinspace{}
19688 ), you can alternatively to the
19696 's built-in command
19703 For example, to have the caption label in bold, add this command to your
19707 \begin_layout Standard
19712 setkomafont{captionlabel}{
19717 \begin_layout Standard
19718 For more information about
19729 \begin_inset LatexCommand cite
19730 key "koma-script,koma-script-de"
19737 \begin_layout Standard
19741 \begin_layout Standard
19745 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19752 \begin_inset Note Note
19755 \begin_layout Standard
19756 The caption format is changed only for this example.
19764 \begin_layout Standard
19765 \begin_inset Float figure
19771 \begin_layout Standard
19773 \begin_inset Graphics
19774 filename clipart/mobius.eps
19783 \begin_layout Standard
19784 \begin_inset Caption
19786 \begin_layout Standard
19787 \begin_inset LatexCommand label
19788 name "fig:This-is-an-fig"
19792 This is an example figure caption that is longer than one line to show the
19793 different caption format.
19794 Here a self-defined caption format is used.
19807 \begin_layout Standard
19811 \begin_layout Standard
19815 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19824 \begin_layout Standard
19825 \begin_inset Float table
19831 \begin_layout Standard
19832 \begin_inset Caption
19834 \begin_layout Standard
19835 \begin_inset LatexCommand label
19836 name "tab:This-is-an-tab"
19840 This is an example table caption that is longer than one line to show the
19841 different caption format.
19842 Here the standard caption format for tables in this document is used.
19850 \begin_layout Standard
19852 \begin_inset Tabular
19853 <lyxtabular version="3" rows="1" columns="5">
19855 <column alignment="center" valignment="top" leftline="true" width="0">
19856 <column alignment="center" valignment="top" leftline="true" width="0">
19857 <column alignment="center" valignment="top" leftline="true" width="0">
19858 <column alignment="center" valignment="top" leftline="true" width="0">
19859 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19860 <row topline="true" bottomline="true">
19861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19864 \begin_layout Standard
19870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19873 \begin_layout Standard
19879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19882 \begin_layout Standard
19888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19891 \begin_layout Standard
19897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19900 \begin_layout Standard
19919 \begin_layout Section
19921 \begin_inset LatexCommand index
19922 name "Caption ! Placement"
19927 \begin_inset LatexCommand index
19928 name "Floats ! Caption Placement"
19933 \begin_inset LatexCommand label
19934 name "sec:Caption-Placement"
19941 \begin_layout Standard
19942 The common caption placement rule is:
19945 \begin_layout Description
19946 Figure: Caption is set below the figure
19949 \begin_layout Description
19950 Table: Caption is set above the table
19953 \begin_layout Standard
19954 Having the caption above the table is unfortunately not supported in LaTeX's
19956 That means if you are using the document classes
19972 there will be no space between the caption and the table.
19973 To insert the needed space, add the following option to the load command
19974 of the LaTeX-package
19978 in your document preamble
19982 \begin_layout Standard
19983 See section\InsetSpace ~
19985 \begin_inset LatexCommand ref
19986 reference "sec:Caption-Formatting"
19990 for more information of the package
20002 \begin_layout Standard
20008 \begin_layout Standard
20014 \begin_inset LatexCommand index
20015 name "LaTeX-packages ! koma-script"
20021 article (koma-script)
20029 letter (koma-script)
20033 report (koma-script)
20035 \InsetSpace \thinspace{}
20036 ), you can alternatively to the
20040 package set the document class option
20044 , or you can use the environment
20046 caption\InsetSpace ~
20056 \begin_layout Standard
20057 \begin_inset VSpace bigskip
20060 It is also possible to set the caption beside a figure or table.
20061 To get this the LaTeX-package
20066 \begin_inset LatexCommand index
20067 name "LaTeX-packages ! sidecap"
20071 has to be loaded in the document preamble with the line
20074 \begin_layout Standard
20079 usepackage[option]{sidecap}
20082 \begin_layout Standard
20083 If you set no option, the caption is placed on the side of the outer page
20084 margin -- to the right on odd pages, to the left on even pages.
20085 You can change the placement to inner margin with the option
20090 To force the placement always to the right or left, use the option
20101 \begin_layout Standard
20102 To place in LyX the caption of a float on the side, it is necessary to add
20103 these commands to the document preamble:
20106 \begin_layout Standard
20112 \begin_layout Standard
20125 \begin_layout Standard
20146 \begin_layout Standard
20167 \begin_layout Standard
20178 renewenvironment{table}{
20185 \begin_layout Standard
20198 \begin_layout Standard
20219 \begin_layout Standard
20237 \begin_layout Standard
20250 \begin_layout Standard
20265 f\SpecialChar \textcompwordmark{}
20272 \begin_layout Standard
20285 MyEndf\SpecialChar \textcompwordmark{}
20288 endf\SpecialChar \textcompwordmark{}
20295 \begin_layout Standard
20306 renewenvironment{f\SpecialChar \textcompwordmark{}
20309 begin{SCf\SpecialChar \textcompwordmark{}
20312 end{SCf\SpecialChar \textcompwordmark{}
20316 \begin_layout Standard
20329 \begin_layout Standard
20342 f\SpecialChar \textcompwordmark{}
20351 \begin_layout Standard
20364 endf\SpecialChar \textcompwordmark{}
20367 MyEndf\SpecialChar \textcompwordmark{}
20371 \begin_layout Standard
20377 \begin_layout Standard
20378 The commands allow you to redefine the floats so that the caption is set
20380 For figure floats use the command
20383 \begin_layout Standard
20391 \begin_layout Standard
20392 in ERT before the float.
20393 Behind the float insert the command
20396 \begin_layout Standard
20404 \begin_layout Standard
20405 in ERT to get back to the original float definition.
20408 \begin_layout Standard
20409 For table floats use the corresponding commands
20412 \begin_layout Standard
20426 \begin_layout Standard
20427 Figure\InsetSpace ~
20429 \begin_inset LatexCommand ref
20430 reference "fig:cap-beside-fig"
20434 and Table\InsetSpace ~
20436 \begin_inset LatexCommand ref
20437 reference "tab:cap-beside-tab"
20441 are examples where the caption is set beside.
20444 \begin_layout Standard
20445 You can see in the examples that the caption text appears at the top of
20446 the floats for table floats and at the bottom for figure floats.
20447 To change this, you can use the command
20450 \begin_layout Standard
20455 sidecaptionvpos{float type}{placement}
20458 \begin_layout Standard
20459 in the document preamble or in ERT before the float.
20460 The float type is either
20468 , the placement can be
20469 \begin_inset Quotes eld
20477 \begin_inset Quotes erd
20481 \begin_inset Quotes eld
20489 \begin_inset Quotes erd
20493 \begin_inset Quotes eld
20501 \begin_inset Quotes erd
20505 To have for example the caption of figure floats vertically centered, use
20509 \begin_layout Standard
20514 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20518 \begin_layout Standard
20519 This was used for Figure\InsetSpace ~
20521 \begin_inset LatexCommand ref
20522 reference "fig:cap-beside-fig-2"
20529 \begin_layout Standard
20530 \begin_inset VSpace defskip
20533 For more information about the package
20537 we refer to its documentation
20538 \begin_inset LatexCommand cite
20546 \begin_layout Standard
20547 \begin_inset Note Greyedout
20550 \begin_layout Standard
20560 \begin_inset LatexCommand index
20561 name "LaTeX-packages ! hypcap"
20565 , described in section\InsetSpace ~
20567 \begin_inset LatexCommand ref
20568 reference "sub:Reference-Position"
20572 , has no effect on floats with the caption set beside.
20580 \begin_layout Standard
20584 \begin_layout Standard
20596 \begin_layout Standard
20597 \begin_inset Float figure
20602 \begin_layout Standard
20603 \begin_inset Graphics
20604 filename clipart/escher-lsd.eps
20612 \begin_layout Standard
20613 \begin_inset Caption
20615 \begin_layout Standard
20616 \begin_inset LatexCommand label
20617 name "fig:cap-beside-fig"
20621 This is a caption beside a figure.
20634 \begin_layout Standard
20638 \begin_layout Standard
20650 \begin_layout Standard
20651 \begin_inset Float table
20656 \begin_layout Standard
20657 \begin_inset Caption
20659 \begin_layout Standard
20660 \begin_inset LatexCommand label
20661 name "tab:cap-beside-tab"
20665 This is a caption beside a table.
20673 \begin_layout Standard
20674 \begin_inset Tabular
20675 <lyxtabular version="3" rows="4" columns="5">
20677 <column alignment="center" valignment="top" leftline="true" width="0">
20678 <column alignment="center" valignment="top" leftline="true" width="0">
20679 <column alignment="center" valignment="top" leftline="true" width="0">
20680 <column alignment="center" valignment="top" leftline="true" width="0">
20681 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20682 <row topline="true">
20683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20686 \begin_layout Standard
20692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20695 \begin_layout Standard
20701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20704 \begin_layout Standard
20710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20713 \begin_layout Standard
20719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20722 \begin_layout Standard
20729 <row topline="true">
20730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20733 \begin_layout Standard
20739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20742 \begin_layout Standard
20748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20751 \begin_layout Standard
20757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20760 \begin_layout Standard
20766 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20769 \begin_layout Standard
20776 <row topline="true">
20777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20780 \begin_layout Standard
20786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20789 \begin_layout Standard
20795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20798 \begin_layout Standard
20804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20807 \begin_layout Standard
20813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20816 \begin_layout Standard
20823 <row topline="true" bottomline="true">
20824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20827 \begin_layout Standard
20833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20836 \begin_layout Standard
20842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20845 \begin_layout Standard
20851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20854 \begin_layout Standard
20860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20863 \begin_layout Standard
20882 \begin_layout Standard
20886 \begin_layout Standard
20898 \begin_layout Standard
20902 \begin_layout Standard
20906 sidecaptionvpos{figure}{c}
20912 \begin_inset Float figure
20917 \begin_layout Standard
20918 \begin_inset Graphics
20919 filename clipart/escher-lsd.eps
20927 \begin_layout Standard
20928 \begin_inset Caption
20930 \begin_layout Standard
20931 \begin_inset LatexCommand label
20932 name "fig:cap-beside-fig-2"
20936 This is a vertically centered caption beside a figure.
20949 \begin_layout Standard
20953 \begin_layout Standard
20965 \begin_layout Section
20967 \begin_inset LatexCommand label
20968 name "sec:Listings-of-Floats"
20973 \begin_inset LatexCommand index
20974 name "Floats ! Float Lists"
20981 \begin_layout Standard
20982 Similar to the the table of contents where the sections of the document
20983 are listed, there are listings for all float types, like the figures of
20985 You can insert them via the
20987 Insert\SpecialChar \menuseparator
20995 \begin_layout Standard
20996 The list entries are the float captions or its short title, the float number,
20997 and the page number where they appear in the document.
21000 \begin_layout Standard
21001 You can find the list of figures and tables at the end of this document.
21004 \begin_layout Chapter
21008 \begin_layout Section
21012 \begin_layout Standard
21025 \begin_layout Standard
21033 \begin_inset LatexCommand label
21034 name "sec:LyX-Notes"
21039 \begin_inset LatexCommand index
21040 name "Notes ! LyX Notes"
21045 \begin_inset Note Note
21048 \begin_layout Standard
21051 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
21052 are displayed wrongly in PDF-bookmarks.
21053 For more information about this, have a look at
21054 \begin_inset LatexCommand cite
21067 \begin_layout Standard
21068 Notes are inserted with the toolbar button
21069 \begin_inset Graphics
21070 filename ../images/note-insert.xpm
21077 Insert\SpecialChar \menuseparator
21081 There are five types of notes:
21084 \begin_layout Description
21086 Note This note type is for internal notes that won't appear in the output.
21087 Its note-box looks like this:
21092 \begin_inset Graphics
21093 filename clipart/LyXNoteImageQt4.png
21100 \begin_inset Note Note
21103 \begin_layout Standard
21104 This is text in a note box that doesn't appear in the output.
21112 \begin_layout Description
21113 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21114 ent, when you export the document to LaTeX via the menu
21116 File\SpecialChar \menuseparator
21117 Export\SpecialChar \menuseparator
21118 LaTeX (pdflatex) / LaTeX (plain)
21121 Its note-box looks like this:
21126 \begin_inset Graphics
21127 filename clipart/CommentNoteImageQt4.png
21134 \begin_inset Note Comment
21137 \begin_layout Standard
21138 This is text in a note box that only appears as comment in LaTeX-files.
21146 \begin_layout Description
21147 Greyed\InsetSpace ~
21148 Out This note will appear in the output as grey text.
21149 Its note-box looks like this:
21154 \begin_inset Graphics
21155 filename clipart/GreyedOutNoteImageQt4.png
21167 \begin_layout Standard
21171 renewenvironment{lyxgreyedout}
21174 \begin_layout Standard
21178 textcolor[gray]{0.8}
21188 \begin_inset Note Greyedout
21191 \begin_layout Standard
21196 \begin_layout Standard
21197 This is an example footnote within a greyed out note.
21202 of a comment that appears in the output as grey text.
21211 \begin_layout Standard
21215 renewenvironment{lyxgreyedout}
21218 \begin_layout Standard
21232 \begin_inset Note Note
21235 \begin_layout Standard
21236 The greyed out note is here redefined to show it with the original LyX definitio
21237 n because greyed out notes are redefined in the preamble of this document,
21238 as described below, to have blue text.
21247 As you can see in the example, the first line of greyed out notes is a bit
21248 indented and greyed out notes can have footnotes.
21251 \begin_layout Description
21252 Framed This note will appear in the output as framed text.
21253 Its note-box looks like this:
21258 \begin_inset Graphics
21259 filename clipart/FramedNoteImageQt4.png
21266 \begin_inset Note Framed
21269 \begin_layout Standard
21270 This is text in a note box that appears framed in the output.
21275 In contrary to framed boxes
21279 \begin_layout Standard
21280 Framed boxes are described in section\InsetSpace ~
21282 \begin_inset LatexCommand ref
21283 reference "sec:Framed-Boxes"
21292 the frame uses always the whole text width and the note is set into its
21296 \begin_layout Description
21297 Shaded This note will appear in the output with red background color.
21298 Its note box looks like this:
21303 \begin_inset Graphics
21304 filename clipart/ShadedNoteImageQt4.png
21311 \begin_inset Note Shaded
21314 \begin_layout Standard
21315 This text in a note box appears in the output with red background.
21320 In contrary to colored boxes
21324 \begin_layout Standard
21325 Colored boxes are described in section\InsetSpace ~
21327 \begin_inset LatexCommand ref
21328 reference "sec:Colored-Boxes"
21337 the note uses always the whole text width and the note is set into its
21341 \begin_layout Standard
21342 \begin_inset VSpace bigskip
21345 When you use the toolbar button to insert notes, a
21351 You can switch between the five note types by right-clicking on the note-box.
21356 If you want to turn existing text into a note, mark it and click on the
21372 \begin_layout Standard
21373 \begin_inset VSpace bigskip
21376 You can change the text color of the greyed out notes in the preamble with
21377 the following command:
21380 \begin_layout Standard
21385 renewenvironment{lyxgreyedout}
21391 \begin_layout Standard
21409 \begin_layout Standard
21410 The available colors and the method to define own colors is explained in
21411 section\InsetSpace ~
21413 \begin_inset LatexCommand ref
21414 reference "sec:Colored-Tables"
21421 \begin_layout Standard
21422 Notes that appear in blue in this document are set using greyed out notes
21426 \begin_layout Standard
21427 \begin_inset VSpace bigskip
21433 \begin_layout Standard
21442 notes can be set in the
21449 \begin_layout Standard
21450 The default frame width for
21454 notes is 0.4\InsetSpace \thinspace{}
21455 pt; it can be changed by changing the size
21462 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21464 be changed by changing the size
21471 For example the frame appearance of the following
21475 note is set with the ERT commands
21478 \begin_layout Standard
21488 \begin_layout Standard
21492 \begin_layout Standard
21504 \begin_inset Note Framed
21507 \begin_layout Standard
21521 \begin_layout Standard
21535 \begin_layout Standard
21536 \begin_inset VSpace bigskip
21542 \begin_layout Standard
21547 notes the default space between the note content and the note border is
21548 3\InsetSpace \thinspace{}
21549 pt; it can be changed by changing the size
21557 The default background color red can be changed with the command
21561 def\SpecialChar \textcompwordmark{}
21569 def\SpecialChar \textcompwordmark{}
21572 command is explained in section\InsetSpace ~
21574 \begin_inset LatexCommand ref
21575 reference "sec:Colored-Tables"
21583 \begin_layout Standard
21590 \SpecialChar \textcompwordmark{}
21595 requires the LaTeX-package
21599 in the preamble, see section\InsetSpace ~
21601 \begin_inset LatexCommand ref
21602 reference "sec:Colored-Boxes"
21614 \begin_layout Standard
21615 For example the appearance of the following
21619 note is set with the ERT commands
21622 \begin_layout Standard
21635 def\SpecialChar \textcompwordmark{}
21636 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21639 \begin_layout Standard
21643 \begin_layout Standard
21656 \begin_layout Standard
21660 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21666 \begin_inset Note Shaded
21669 \begin_layout Standard
21672 This is yellow text in a
21682 note with darkgreen background.
21691 \begin_layout Standard
21704 \begin_layout Standard
21708 definecolor{shadecolor}{rgb}{1,0,0}
21716 \begin_layout Section
21718 \begin_inset LatexCommand label
21719 name "sec:Footnotes"
21724 \begin_inset LatexCommand index
21725 name "Notes ! Footnotes"
21730 \begin_inset LatexCommand index
21738 \begin_layout Standard
21739 Footnotes can be inserted using the toolbar button
21740 \begin_inset Graphics
21741 filename ../images/footnote-insert.xpm
21748 Insert\SpecialChar \menuseparator
21760 then the following footnote-box:
21761 \begin_inset Graphics
21762 filename clipart/footnoteQt4.png
21771 where you can enter the footnote text.
21772 If you want to turn existing text into a footnote, mark it and click on
21788 \begin_layout Standard
21789 Here is an example footnote:
21797 \begin_layout Standard
21798 \begin_inset LatexCommand label
21799 name "foot:This-is-an"
21803 This is an example footnote.
21816 \begin_layout Standard
21820 newcounter{MyRepeatFoot}
21823 \begin_layout Standard
21827 setcounter{MyRepeatFoot}{
21837 \begin_layout Standard
21838 The footnote will appear in the output as a superscript number at the text
21839 position where the footnote box is placed.
21840 The footnote text is placed at the bottom of the current page.
21841 The footnote number is calculated by LaTeX, the numbers are consecutive.
21842 It depends on your document-class, if the footnote number is reset for
21846 \begin_layout Standard
21847 Footnotes can be referenced like floats: Insert a label into the footnote
21848 and cross-reference this label in the text as described in section\InsetSpace ~
21850 \begin_inset LatexCommand ref
21851 reference "sec:Referencing-Floats"
21857 This is a cross-reference of Footnote\InsetSpace ~
21859 \begin_inset LatexCommand ref
21860 reference "foot:This-is-an"
21867 \begin_layout Standard
21868 \begin_inset VSpace defskip
21871 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21873 \begin_inset LatexCommand ref
21874 reference "sec:Minipages"
21879 Footnotes within longtables are described in section\InsetSpace ~
21881 \begin_inset LatexCommand ref
21882 reference "sub:Footnotes-in-Longtables"
21889 \begin_layout Standard
21890 \begin_inset VSpace defskip
21893 To create only a mark for a footnote, use the command
21897 footnotemark[number]
21900 This is used when you have the same annotation several times in a text
21901 but doesn't want to print the footnote text every time.
21904 the number of the repeating footnote while you are writing the text, you
21905 have to store its number.
21906 For the following footnote mark example, these commands were inserted in
21907 ERT behind Footnote\InsetSpace ~
21909 \begin_inset LatexCommand ref
21910 reference "foot:This-is-an"
21914 to store the footnote number:
21917 \begin_layout Standard
21922 newcounter{MyRepeatFoot}
21926 setcounter{MyRepeatFoot}{
21931 \begin_layout Standard
21932 The footnote mark was then created with this command:
21935 \begin_layout Standard
21945 \begin_layout Standard
21946 Here is an example footnote mark:
21954 \begin_layout Standard
21968 \begin_layout Subsection
21970 \begin_inset LatexCommand label
21971 name "sub:Footnote-Numbering"
21976 \begin_inset LatexCommand index
21977 name "Footnotes ! Numbering"
21984 \begin_layout Standard
21985 To reset the footnote number back to 1 after each section
21987 , add this command to your document preamble:
21990 \begin_layout Standard
21995 @addtoreset{footnote}{section}
21998 \begin_layout Standard
21999 \begin_inset VSpace bigskip
22002 The following preamble command changes the footnote numbering style to small
22006 \begin_layout Standard
22018 \begin_layout Standard
22022 \begin_layout Standard
22035 This is a footnote with roman numbering:
22039 \begin_layout Standard
22040 This is an example footnote with roman numbering.
22049 \begin_layout Standard
22065 \begin_layout Standard
22066 To change the numbering style to capital roman numerals replace in the command
22081 \begin_inset Quotes eld
22085 \begin_inset Quotes erd
22088 footnotes with capital or small Latin letters use
22102 \begin_inset Quotes eld
22106 \begin_inset Quotes erd
22109 footnotes with symbols use
22118 \begin_layout Standard
22119 \begin_inset Note Greyedout
22122 \begin_layout Standard
22127 You can only number 26 footnotes with Latin letters, because this numbering
22128 is limited to single letters.
22136 \begin_inset Note Greyedout
22139 \begin_layout Standard
22144 You can only number 9 footnotes with symbols.
22152 \begin_layout Standard
22153 To return to the default numbering style when you changed to another one,
22166 in the command above.
22169 \begin_layout Standard
22170 \begin_inset VSpace bigskip
22176 \begin_layout Standard
22177 If you want to have footnotes numbered in the scheme
22178 \begin_inset Quotes eld
22182 \begin_inset Quotes erd
22185 , add the following command to your document preamble:
22188 \begin_layout Standard
22193 numberwithin{footnote}{chapter}
22196 \begin_layout Standard
22197 To be able to use the command
22208 in the document settings the option
22218 \begin_layout Standard
22222 \begin_layout Standard
22226 numberwithin{footnote}{chapter}
22231 This is another example footnote:
22237 \begin_layout Standard
22238 This is a footnote numbered in the scheme
22239 \begin_inset Quotes eld
22243 \begin_inset Quotes erd
22257 \begin_layout Standard
22273 \begin_layout Standard
22274 \begin_inset Note Greyedout
22277 \begin_layout Standard
22288 always prints out the footnote number as arabic number; previous redefinitions
22289 to get non-arabic numbers are overwritten.
22297 \begin_layout Standard
22298 So to get for example the scheme
22299 \begin_inset Quotes eld
22305 \begin_inset Quotes erd
22308 , use this command instead of
22317 \begin_layout Standard
22331 \begin_layout Subsection
22333 \begin_inset LatexCommand index
22334 name "Footnotes ! Placement"
22341 \begin_layout Standard
22342 If you have several footnotes in one page, they appear without vertical
22343 space between them at the bottom of the page.
22344 To make them better readable you can e.\InsetSpace \thinspace{}
22346 add 1.5\InsetSpace \thinspace{}
22347 mm space with the following
22351 \begin_layout Standard
22373 \begin_layout Standard
22374 \begin_inset VSpace bigskip
22377 In a two-column document the footnotes appear at the bottom of every column,
22378 see Figure\InsetSpace ~
22380 \begin_inset LatexCommand ref
22381 reference "fig:Standard-footnote-placement"
22386 If the footnotes should only appear at the bottom of the right column,
22387 as in Figure\InsetSpace ~
22389 \begin_inset LatexCommand ref
22390 reference "fig:Footnote-placement-in"
22394 , use the LaTeX-package
22399 \begin_inset LatexCommand index
22400 name "LaTeX-packages ! ftnright"
22404 with this command in the document preamble:
22407 \begin_layout Standard
22412 usepackage{ftnright}
22415 \begin_layout Standard
22416 \begin_inset Float figure
22422 \begin_layout Standard
22426 \begin_layout Standard
22436 \begin_inset Graphics
22437 filename clipart/without_fntright.pdf
22446 \begin_layout Standard
22456 \begin_layout Standard
22457 \begin_inset Caption
22459 \begin_layout Standard
22460 \begin_inset LatexCommand label
22461 name "fig:Standard-footnote-placement"
22465 Standard footnote placement in two-column documents.
22478 \begin_layout Standard
22479 \begin_inset Float figure
22485 \begin_layout Standard
22489 \begin_layout Standard
22499 \begin_inset Graphics
22500 filename clipart/with_fntright.pdf
22509 \begin_layout Standard
22519 \begin_layout Standard
22520 \begin_inset Caption
22522 \begin_layout Standard
22523 \begin_inset LatexCommand label
22524 name "fig:Footnote-placement-in"
22528 Footnote placement in two-column documents when the LaTeX-package
22545 \begin_layout Standard
22546 \begin_inset VSpace bigskip
22549 In some scientific literature it is usual to collect the footnotes and print
22550 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22552 \begin_inset LatexCommand ref
22553 reference "fig:Endnotes----footnotes"
22558 They are then so called
22559 \begin_inset Quotes eld
22563 \begin_inset Quotes erd
22567 To use endnotes instead of footnotes in your document, load the LaTeX-package
22573 \begin_inset LatexCommand index
22574 name "LaTeX-packages ! endnotes"
22578 with the document preamble lines
22581 \begin_layout Standard
22586 usepackage{endnotes}
22597 \begin_layout Standard
22598 To insert the collected footnotes, insert the command
22601 \begin_layout Standard
22609 \begin_layout Standard
22610 in ERT at the the end of a section or chapter.
22613 \begin_layout Standard
22614 \begin_inset Float figure
22619 \begin_layout Standard
22624 \begin_layout Standard
22634 \begin_inset Graphics
22635 filename clipart/endnotes.pdf
22643 \begin_layout Standard
22653 \begin_layout Standard
22654 \begin_inset Caption
22656 \begin_layout Standard
22657 \begin_inset LatexCommand label
22658 name "fig:Endnotes----footnotes"
22662 Endnotes -- footnotes are printed in a separate paragraph at the end of
22663 sections or chapters.
22676 \begin_layout Standard
22677 \begin_inset VSpace defskip
22680 The paragraph heading for the endnotes isn't automatically translated into
22681 the document language, this must be done manually.
22682 The following preamble command translate the default English name
22683 \begin_inset Quotes eld
22687 \begin_inset Quotes erd
22690 to the German translation
22691 \begin_inset Quotes eld
22695 \begin_inset Quotes erd
22701 \begin_layout Standard
22708 notesname}{Anmerkungen}
22711 \begin_layout Standard
22712 \begin_inset VSpace defskip
22715 The numbering of endnotes can be changed like the footnote numbering as
22716 described in section\InsetSpace ~
22718 \begin_inset LatexCommand ref
22719 reference "sub:Footnote-Numbering"
22723 ; just replace the command
22736 To reset the endnote number use the command
22742 as described in section\InsetSpace ~
22744 \begin_inset LatexCommand ref
22745 reference "sub:Footnote-Numbering"
22749 and replace the command parameter
22760 \begin_layout Standard
22761 To create only a mark for an endnote, use the command
22765 endnotemark[number]
22767 similar to the command
22773 , described in section\InsetSpace ~
22775 \begin_inset LatexCommand ref
22776 reference "sec:Footnotes"
22783 \begin_layout Standard
22784 \begin_inset VSpace bigskip
22787 Footnotes can also be placed in the page margin and the footnote text alignment
22788 can be changed, see the LaTeX-package
22793 \begin_inset LatexCommand index
22794 name "LaTeX-packages ! footmisc"
22799 \begin_inset LatexCommand cite
22804 for more information about this.
22807 \begin_layout Standard
22808 For various further footnote formatting issues have a look at LaTeX-books,
22810 \begin_inset LatexCommand cite
22811 key "latexcompanion,latexguide,latexbook"
22818 \begin_layout Section
22820 \begin_inset LatexCommand index
22821 name "Notes ! Margin Notes"
22828 \begin_layout Standard
22829 Margin notes look and behave in LyX like footnotes.
22830 They are inserted via the menu
22832 Insert\SpecialChar \menuseparator
22833 Marginal\InsetSpace ~
22836 or the toolbar button
22837 \begin_inset Graphics
22838 filename ../images/marginalnote-insert.xpm
22854 \begin_inset Quotes eld
22858 \begin_inset Quotes erd
22861 appears where you can enter the text of the margin note.
22864 \begin_layout Standard
22865 At the side is an example margin note.
22869 \begin_inset Marginal
22872 \begin_layout Standard
22873 This is a margin note.
22881 \begin_layout Standard
22882 Margin notes appear at the right side in single-sided documents.
22883 In double-sided documents they appear in the outer margin -- left on even
22884 pages, right on odd pages.
22885 The text of margin notes is aligned opposite to the outer margin -- right-align
22886 ed when the note appears in the left margin.
22887 The first line of the margin note is placed at the position of the text
22888 line where it is inserted in the document.
22891 \begin_layout Standard
22892 \begin_inset VSpace bigskip
22895 To place the margin note in the inner margin, add the command
22898 \begin_layout Standard
22906 \begin_layout Standard
22907 in ERT before a margin note.
22908 The new placement is valid for all following margin notes.
22912 \begin_layout Standard
22922 \begin_inset Marginal
22925 \begin_layout Standard
22926 This is a margin note in the inner margin.
22938 \begin_inset Note Greyedout
22941 \begin_layout Standard
22946 There is often not enough space in the inner margin so that the notes are
22947 not correctly displayed in the output.
22955 \begin_layout Standard
22959 \begin_layout Standard
22968 To return to the default placement insert the command
22971 \begin_layout Standard
22979 \begin_layout Standard
22982 \begin_inset Note Greyedout
22985 \begin_layout Standard
22990 The command is ignored when it is within a paragraph where also the command
23005 \begin_layout Standard
23006 \begin_inset VSpace bigskip
23013 \begin_inset Marginal
23016 \begin_layout Standard
23017 AVeryLongMarginParWord that isn't hyphenated.
23025 Similar to the case described in section\InsetSpace ~
23027 \begin_inset LatexCommand ref
23028 reference "sub:Multiple-Lines-in"
23032 , long words cannot be hyphenated when they are the first word in a margin
23034 To avoid this, insert the command
23037 \begin_layout Standard
23045 \begin_layout Standard
23046 in ERT before the word
23050 \begin_inset Marginal
23053 \begin_layout Standard
23057 \begin_layout Standard
23066 AVeryLongMarginParWord that is hyphenated.
23074 \begin_layout Standard
23075 \begin_inset VSpace bigskip
23081 \begin_layout Standard
23082 \begin_inset Note Greyedout
23085 \begin_layout Standard
23090 Margin notes can normally not be used inside tables, floats, and footnotes.
23098 \begin_layout Standard
23099 \begin_inset VSpace bigskip
23105 \begin_layout Standard
23109 \begin_layout Standard
23119 \begin_inset Note Note
23122 \begin_layout Standard
23123 The following section will only be displayed when you have the LaTeX-package
23136 \begin_layout Standard
23137 This restriction can be evaded by using the LaTeX-package
23142 \begin_inset LatexCommand index
23143 name "LaTeX-packages ! marginnote"
23148 By adding these two lines to your document preamble, the command used by
23149 LyX for margin notes is redefined to use the command provided by the
23156 \begin_layout Standard
23161 usepackage{marginnote}
23172 \begin_layout Standard
23173 This is also used in this document because
23177 has another useful feature: You can set a vertical offset for the note.
23178 This is often needed when too many margin notes are too close together
23179 or for a better page layout.
23180 The offset is set in LyX as ERT directly behind the margin note in the
23184 \begin_layout Standard
23190 \begin_layout Standard
23191 where the offset is a length with one of the units listed in Table\InsetSpace ~
23193 \begin_inset LatexCommand ref
23194 reference "tab:Units"
23199 A negative value shifts the note up, a positive value shifts it down.
23203 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23206 \begin_inset Quotes eld
23216 \begin_inset Quotes erd
23220 \begin_inset Marginal
23223 \begin_layout Standard
23224 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23225 cm from its original position.
23237 \begin_layout Standard
23247 \begin_layout Standard
23248 \begin_inset VSpace defskip
23255 you can also change the alignment of the text in the margin note.
23256 For example the commands
23259 \begin_layout Standard
23266 raggedleftmarginnote}{
23274 raggedrightmarginnote}{
23279 \begin_layout Standard
23280 set the alignment to centered.
23285 raggedleftmarginnote
23287 denotes margin notes that appear at the left side.
23294 \begin_layout Standard
23300 raggedleftmarginnote}{
23305 \begin_layout Standard
23311 raggedrightmarginnote}{
23319 \begin_inset Marginal
23322 \begin_layout Standard
23323 The text of this margin note is centered.
23334 \begin_layout Standard
23341 raggedleftmarginnote}{
23349 raggedrightmarginnote}{
23358 \begin_layout Standard
23364 raggedleftmarginnote}{
23369 \begin_layout Standard
23375 raggedrightmarginnote}{
23385 \begin_layout Standard
23386 \begin_inset VSpace defskip
23389 For the other features of
23393 we refer to its documentation
23394 \begin_inset LatexCommand cite
23402 \begin_layout Standard
23403 \begin_inset VSpace bigskip
23406 You can change the layout of margin notes by redefining its definition.
23407 To create for example a header for all margin notes with the underlined,
23408 sans-serif, and bold header text
23409 \begin_inset Quotes eld
23421 \begin_inset Quotes erd
23424 , add this to your document preamble:
23427 \begin_layout Standard
23450 \begin_layout Standard
23467 underbar{Attention!}}}%
23473 \begin_layout Standard
23491 \begin_layout Standard
23498 \begin_layout Standard
23509 \begin_layout Standard
23520 \begin_layout Standard
23528 underbar{Attention!}}}%
23531 \begin_layout Standard
23545 \begin_inset Marginal
23548 \begin_layout Standard
23549 This is a margin note with a defined heading.
23561 \begin_layout Standard
23575 \begin_layout Standard
23592 \begin_inset Note Note
23595 \begin_layout Standard
23596 The margin note format is changed only for this example.
23604 \begin_layout Standard
23608 \begin_layout Standard
23618 \begin_inset Note Note
23621 \begin_layout Standard
23622 The following will be displayed when the LaTeX-package
23634 \begin_layout Standard
23635 You need to install the LaTeX-package
23639 to see the following part of this section in the output.
23642 \begin_layout Standard
23646 \begin_layout Standard
23658 \begin_layout Standard
23662 \begin_layout Chapter
23666 \begin_layout Section
23668 \begin_inset LatexCommand index
23669 name "Boxes ! Introduction"
23676 \begin_layout Standard
23677 Boxes are used to format a block of text.
23678 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23680 \begin_inset LatexCommand ref
23681 reference "sec:Minipages"
23685 , to frame texts, see section\InsetSpace ~
23687 \begin_inset LatexCommand ref
23688 reference "sec:Framed-Boxes"
23692 , to prevent words to be hyphenated, see section\InsetSpace ~
23694 \begin_inset LatexCommand ref
23695 reference "sec:Prevent-Hyphenation"
23699 , to align text, see section\InsetSpace ~
23701 \begin_inset LatexCommand ref
23702 reference "sub:Vertical-Alignment"
23706 , or to set the background color of texts, see section\InsetSpace ~
23708 \begin_inset LatexCommand ref
23709 reference "sec:Colored-Boxes"
23716 \begin_layout Standard
23717 Boxes can be inserted with the menu
23719 Insert\SpecialChar \menuseparator
23723 A grey box with the label
23728 \begin_inset Graphics
23729 filename clipart/BoxInsetDefaultQt4.png
23734 , will be inserted.
23735 The box type can be specified by right-clicking on the box.
23736 The appearing box dialog offers the
23754 is the default for new boxes and is explained in section\InsetSpace ~
23756 \begin_inset LatexCommand ref
23757 reference "sec:Minipages"
23765 is described in section\InsetSpace ~
23767 \begin_inset LatexCommand ref
23768 reference "sec:Parboxes"
23775 \begin_layout Standard
23776 Boxes aren't numbered and can therefore not be referenced like floats or
23780 \begin_layout Standard
23781 \begin_inset Note Greyedout
23784 \begin_layout Standard
23789 Due to a bug in LyX you have to insert a protected space behind a box when
23790 you want to separate in a line the box from the following text with a space.
23798 \begin_layout Standard
23799 \begin_inset Note Greyedout
23802 \begin_layout Standard
23807 Boxes must not be the item in an
23823 \begin_layout Standard
23824 \begin_inset Note Greyedout
23827 \begin_layout Standard
23832 For an unknown reason you can only set the
23841 when you use a framed box.
23847 type and without frames are explained in section\InsetSpace ~
23849 \begin_inset LatexCommand ref
23850 reference "sec:Prevent-Hyphenation"
23862 \begin_layout Section
23864 \begin_inset LatexCommand label
23865 name "sec:Box-Dialog"
23870 \begin_inset LatexCommand index
23871 name "Boxes ! Box Dialog"
23876 \begin_inset LatexCommand index
23877 name "Boxes ! Alignment"
23884 \begin_layout Standard
23885 In the box dialog you can adjust the box geometry in the fields
23894 The available units for the geometry are explained in Table\InsetSpace ~
23896 \begin_inset LatexCommand ref
23897 reference "tab:Units"
23906 offers the following additional sizes:
23909 \begin_layout Description
23910 Depth This is the plain text
23911 \begin_inset Quotes eld
23915 \begin_inset Quotes erd
23919 It ignores the total depth when there are multiple text lines in the box:
23926 \begin_inset Box Boxed
23935 height_special "depth"
23938 \begin_layout Standard
23940 Box height set to 1\InsetSpace \thinspace{}
23953 \begin_layout Description
23954 Height This is the heigth of the text that is inside the box.
23955 A value of e.\InsetSpace \thinspace{}
23957 2 for this size will set the box heigth to 2 times the text
23959 \begin_inset Box Boxed
23968 height_special "height"
23971 \begin_layout Standard
23973 Box height set to 2\InsetSpace \thinspace{}
23982 \begin_layout Description
23984 Height This is the Height\InsetSpace \thinspace{}
23985 +\InsetSpace \thinspace{}
23987 \begin_inset Box Boxed
23996 height_special "totalheight"
23999 \begin_layout Standard
24001 Box height set to 1\InsetSpace \thinspace{}
24011 \begin_layout Description
24012 Width This set the width of the box as heigth:
24013 \begin_inset Box Boxed
24022 height_special "width"
24025 \begin_layout Standard
24027 Box height set to 1\InsetSpace \thinspace{}
24036 \begin_layout Standard
24037 \begin_inset VSpace bigskip
24040 When you have chosen an
24045 , the vertical box alignment can be:
24048 \begin_layout Description
24049 Top This is an example text line.
24051 \begin_inset Box Boxed
24060 height_special "totalheight"
24063 \begin_layout Standard
24065 This box is top-aligned.
24071 This is an example text line.
24074 \begin_layout Description
24075 Middle This is an example text line.
24077 \begin_inset Box Boxed
24086 height_special "totalheight"
24089 \begin_layout Standard
24091 This box is middle-aligned.
24097 This is an example text line.
24100 \begin_layout Description
24101 Bottom This is an example text line.
24103 \begin_inset Box Boxed
24112 height_special "totalheight"
24115 \begin_layout Standard
24117 This box is bottom-aligned.
24123 This is an example text line.
24126 \begin_layout Standard
24127 The horizontal box alignment can be set via LyX's paragraph dialog when
24128 you set the box into its own paragraph.
24131 \begin_layout Standard
24132 \begin_inset VSpace bigskip
24135 When you have chosen an
24140 , the box content can be vertical aligned to:
24143 \begin_layout Description
24144 top This is an example text line.
24146 \begin_inset Box Boxed
24155 height_special "totalheight"
24158 \begin_layout Standard
24160 This box text is top-aligned.
24166 This is an example text line.
24169 \begin_layout Description
24170 middle This is an example text line.
24172 \begin_inset Box Boxed
24181 height_special "totalheight"
24184 \begin_layout Standard
24186 This box text is middle-aligned.
24192 This is an example text line.
24195 \begin_layout Description
24196 bottom This is an example text line.
24198 \begin_inset Box Boxed
24207 height_special "totalheight"
24210 \begin_layout Standard
24212 This box text is bottom-aligned.
24218 This is an example text line.
24221 \begin_layout Description
24222 stretch This is an example text line.
24224 \begin_inset Box Boxed
24233 height_special "totalheight"
24236 \begin_layout Standard
24241 \begin_layout Standard
24246 \begin_layout Standard
24254 This is an example text line.
24257 \begin_layout Standard
24258 To stretch the box content, it must consist of more than one paragraph.
24259 In the example above every text line is in an own paragraph.
24262 \begin_layout Standard
24263 \begin_inset VSpace bigskip
24266 To align the box content horizontally you can use LyX's paragraph dialog
24267 when you have chosen an
24275 \begin_layout Standard
24277 \begin_inset Box Boxed
24286 height_special "totalheight"
24289 \begin_layout Standard
24294 \begin_layout Standard
24299 \begin_layout Standard
24309 \begin_layout Standard
24310 If you haven't set an
24315 , you can align the box content horizontally in the box dialog.
24318 \begin_layout Standard
24320 \begin_inset Box Boxed
24329 height_special "totalheight"
24332 \begin_layout Standard
24334 This box text is horizontally stretched.
24342 \begin_layout Section
24344 \begin_inset LatexCommand label
24345 name "sec:Framed-Boxes"
24350 \begin_inset LatexCommand index
24351 name "Boxes ! Frames"
24358 \begin_layout Standard
24359 The frame style of the box can be specified in the box-dialog in the drop-down
24365 The following frame types are possible:
24368 \begin_layout Description
24369 Rectangular\InsetSpace ~
24370 box This draws a rectangle frame around the box.
24371 The frame line thickness has the size of
24379 \begin_inset Box Boxed
24388 height_special "totalheight"
24391 \begin_layout Standard
24401 \begin_layout Description
24404 thin This draws an oval frame around the box.
24405 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24408 \begin_inset Box ovalbox
24417 height_special "totalheight"
24420 \begin_layout Standard
24430 \begin_layout Description
24433 thick This draws an oval frame around the box.
24434 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24437 \begin_inset Box Ovalbox
24446 height_special "totalheight"
24449 \begin_layout Standard
24459 \begin_layout Description
24460 Shadow\InsetSpace ~
24461 box This draws a rectangle frame with a shadow around the box.
24462 The frame line thickness has the size of
24468 , the shadow has a width of 4\InsetSpace \thinspace{}
24471 \begin_inset Box Shadowbox
24480 height_special "totalheight"
24483 \begin_layout Standard
24493 \begin_layout Description
24494 Double\InsetSpace ~
24495 box This draws a double-line rectangle frame around the box.
24496 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24503 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24511 The distance between the lines is 1.5\InsetSpace \thinspace{}
24518 \InsetSpace \thinspace{}
24519 +\InsetSpace \thinspace{}
24520 0.5\InsetSpace \thinspace{}
24523 \begin_inset Box Doublebox
24532 height_special "totalheight"
24535 \begin_layout Standard
24545 \begin_layout Standard
24546 \begin_inset VSpace bigskip
24549 LyX's box label will change to the used frame style when you set a frame.
24550 To be able to use the different frame styles, the LaTeX-package
24555 \begin_inset LatexCommand index
24556 name "LaTeX-packages ! fancybox"
24563 \begin_layout Standard
24564 \begin_inset VSpace bigskip
24567 The default value for the size
24573 is 0.4\InsetSpace \thinspace{}
24575 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24577 2\InsetSpace \thinspace{}
24581 \begin_layout Standard
24591 \begin_layout Standard
24595 \begin_layout Standard
24607 \begin_inset Box Boxed
24616 height_special "totalheight"
24619 \begin_layout Standard
24621 Rectangular box with
24627 \InsetSpace \thinspace{}
24628 =\InsetSpace \thinspace{}
24629 2\InsetSpace \thinspace{}
24639 \begin_layout Standard
24653 \begin_layout Standard
24654 \begin_inset VSpace bigskip
24657 The space between the frame and the box content is for all frame styles
24658 by default 3\InsetSpace \thinspace{}
24660 You can change it by setting the length
24667 For example the command
24670 \begin_layout Standard
24680 \begin_layout Standard
24681 sets the value to 10\InsetSpace \thinspace{}
24682 pt, like for the following box:
24685 \begin_layout Standard
24689 \begin_layout Standard
24701 \begin_inset Box Boxed
24710 height_special "totalheight"
24713 \begin_layout Standard
24715 Rectangular box with
24721 \InsetSpace \thinspace{}
24722 =\InsetSpace \thinspace{}
24723 10\InsetSpace \thinspace{}
24733 \begin_layout Standard
24747 \begin_layout Standard
24748 \begin_inset VSpace bigskip
24751 The diameter of the round corners of the oval boxes can be set with the
24762 \begin_layout Standard
24770 \begin_layout Standard
24771 sets the diameter to 1\InsetSpace \thinspace{}
24776 \begin_layout Standard
24784 \begin_layout Standard
24785 sets the diameter to
24787 num\InsetSpace \thinspace{}
24788 ×\InsetSpace \thinspace{}
24789 minimum(width and heigth of box)
24801 \begin_layout Standard
24805 \begin_layout Standard
24815 \begin_inset Box Ovalbox
24824 height_special "totalheight"
24827 \begin_layout Standard
24835 \InsetSpace \thinspace{}
24836 =\InsetSpace \thinspace{}
24837 1.5\InsetSpace \thinspace{}
24847 \begin_layout Standard
24859 \begin_layout Standard
24860 \begin_inset VSpace bigskip
24863 The size of the shadow can be adjusted by changing the length
24870 It it set to 2\InsetSpace \thinspace{}
24871 pt for the following box by this command:
24874 \begin_layout Standard
24884 \begin_layout Standard
24888 \begin_layout Standard
24900 \begin_inset Box Shadowbox
24909 height_special "totalheight"
24912 \begin_layout Standard
24920 \InsetSpace \thinspace{}
24921 =\InsetSpace \thinspace{}
24922 2\InsetSpace \thinspace{}
24932 \begin_layout Standard
24946 \begin_layout Standard
24947 \begin_inset VSpace bigskip
24950 Changed lengths and widths are valid for all boxes following the commands
24954 \begin_layout Section
24956 \begin_inset LatexCommand label
24957 name "sec:Minipages"
24962 \begin_inset LatexCommand index
24963 name "Boxes ! Minipages"
24970 \begin_layout Standard
24971 Minipages are treated by LaTeX as pages within pages and can therefore for
24972 example have their own footnotes.
24975 \begin_layout Standard
24976 Minipages are useful when you write documents with different languages.
24979 \begin_layout Standard
24980 Below are two example minipages side by side.
24981 Their width is set to 45\InsetSpace \thinspace{}
24982 col% and they are separated by a horizontal fill,
24983 that was inserted via the menu
24985 Insert\SpecialChar \menuseparator
24986 Special\InsetSpace ~
24987 Formatting\SpecialChar \menuseparator
24988 Horizontal\InsetSpace ~
24994 \begin_layout Standard
24995 \begin_inset Box Frameless
25004 height_special "totalheight"
25007 \begin_layout Standard
25010 Dies ist ein deutscher Text.
25011 Dies ist ein deutscher Text.
25012 Dies ist ein deutscher Text.
25013 Dies ist ein deutscher Text.
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
25026 \begin_layout Standard
25029 Dies ist eine deutsche Fußnote.
25035 Dies ist ein deutscher Text.
25036 Dies ist ein deutscher Text.
25044 \begin_inset Box Frameless
25053 height_special "totalheight"
25056 \begin_layout Standard
25057 This is an English Text.
25058 This is an English Text.
25059 This is an English Text.
25060 This is an English Text.
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.
25076 \begin_layout Standard
25077 This is an English footnote.
25082 This is an English Text.
25091 \begin_layout Standard
25092 \begin_inset VSpace bigskip
25095 Another application for minipages are footnotes within tables.
25096 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25097 bottom of the current page.
25098 But when you put the table with the footnote to a minipage, the footnote
25099 will appear at its bottom, numbered with Latin letters.
25100 The footnote number is reset to 1 in every minipage but not outside the
25104 \begin_layout Standard
25105 The footnote of this table doesn't appear:
25106 \begin_inset Tabular
25107 <lyxtabular version="3" rows="3" columns="4">
25109 <column alignment="center" valignment="top" leftline="true" width="0pt">
25110 <column alignment="center" valignment="top" leftline="true" width="0pt">
25111 <column alignment="center" valignment="top" leftline="true" width="0pt">
25112 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25113 <row topline="true">
25114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25117 \begin_layout Standard
25123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25126 \begin_layout Standard
25132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25135 \begin_layout Standard
25140 \begin_layout Standard
25141 This is a footnote within a table.
25151 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25154 \begin_layout Standard
25161 <row topline="true">
25162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25165 \begin_layout Standard
25171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25174 \begin_layout Standard
25180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25183 \begin_layout Standard
25189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25192 \begin_layout Standard
25199 <row topline="true" bottomline="true">
25200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25203 \begin_layout Standard
25209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25212 \begin_layout Standard
25218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25221 \begin_layout Standard
25227 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25230 \begin_layout Standard
25244 \begin_layout Standard
25246 \begin_inset Box Frameless
25255 height_special "totalheight"
25258 \begin_layout Standard
25260 \begin_inset Tabular
25261 <lyxtabular version="3" rows="3" columns="4">
25263 <column alignment="center" valignment="top" leftline="true" width="0pt">
25264 <column alignment="center" valignment="top" leftline="true" width="0pt">
25265 <column alignment="center" valignment="top" leftline="true" width="0pt">
25266 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25267 <row topline="true">
25268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25271 \begin_layout Standard
25277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25280 \begin_layout Standard
25286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25289 \begin_layout Standard
25294 \begin_layout Standard
25295 This is a footnote within a table.
25305 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25308 \begin_layout Standard
25315 <row topline="true">
25316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25319 \begin_layout Standard
25325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25328 \begin_layout Standard
25334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25337 \begin_layout Standard
25343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25346 \begin_layout Standard
25353 <row topline="true" bottomline="true">
25354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25357 \begin_layout Standard
25363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25366 \begin_layout Standard
25372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25375 \begin_layout Standard
25381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25384 \begin_layout Standard
25403 \begin_layout Standard
25404 \begin_inset VSpace bigskip
25407 The document-wide paragraph settings are ignored within minipages.
25408 That means that there will be no space between paragraphs in minipages
25409 although you set it to e.\InsetSpace \thinspace{}
25415 in the document settings.
25418 \begin_layout Standard
25419 Minipages can also be used to set a background color for text parts, see
25420 section\InsetSpace ~
25422 \begin_inset LatexCommand ref
25423 reference "sub:Color-for-Paragraphs"
25430 \begin_layout Standard
25431 \begin_inset Note Greyedout
25434 \begin_layout Standard
25439 You cannot have floats or margin notes inside minipages but minipages can
25440 be used inside tables, floats, and other boxes.
25448 \begin_layout Section
25450 \begin_inset LatexCommand label
25451 name "sec:Parboxes"
25456 \begin_inset LatexCommand index
25457 name "Boxes ! Parboxes"
25464 \begin_layout Standard
25465 Parboxes are very similar to minipages with the difference that they cannot
25467 The main difference to minipages is that minipages are in contrary to parboxes
25468 no real boxes but LaTeX-environments.
25471 \begin_layout Standard
25473 \begin_inset Box Frameless
25482 height_special "totalheight"
25485 \begin_layout Standard
25486 This a text within a parbox.
25487 This a text within a parbox.
25490 \begin_layout Standard
25491 This footnote won't appear:
25495 \begin_layout Standard
25496 This footnote is inside a parbox and will therefore not appear.
25509 \begin_layout Section
25510 Boxes for Words and Characters
25511 \begin_inset LatexCommand index
25512 name "Boxes ! for Characters"
25519 \begin_layout Subsection
25520 Prevent Hyphenation
25521 \begin_inset LatexCommand label
25522 name "sec:Prevent-Hyphenation"
25527 \begin_inset LatexCommand index
25528 name "Boxes ! to Prevent Hyphenation"
25535 \begin_layout Standard
25536 You can use a special kind of boxes to prevent words or text to be hyphenated.
25539 e is an example text:
25542 \begin_layout Standard
25543 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25549 \begin_layout Standard
25550 To prevent the hyphenation of the word
25551 \begin_inset Quotes eld
25555 \begin_inset Quotes erd
25561 \begin_layout Standard
25569 \begin_layout Standard
25570 in ERT before the word.
25571 Behind the word insert a closing brace
25572 \begin_inset Quotes eld
25580 \begin_inset Quotes erd
25587 \begin_layout Standard
25599 \begin_layout Standard
25600 This is the result:
25603 \begin_layout Standard
25604 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25610 \begin_layout Standard
25623 \begin_layout Standard
25633 \begin_layout Standard
25634 Of course the word now protrudes over the side margin.
25635 To avoid this, add via the menu
25637 Insert\SpecialChar \menuseparator
25638 Special\InsetSpace ~
25639 Formatting\SpecialChar \menuseparator
25647 ) a line break before the word:
25650 \begin_layout Standard
25651 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25659 \begin_layout Standard
25672 \begin_layout Standard
25682 \begin_layout Subsection
25684 \begin_inset LatexCommand label
25685 name "sub:Vertical-Alignment"
25690 \begin_inset LatexCommand index
25691 name "Boxes ! for Vertical Alignment"
25696 \begin_inset LatexCommand index
25697 name "Boxes ! Raiseboxes"
25704 \begin_layout Standard
25705 With the help of the command
25711 you can align words, characters or other boxes vertically to the surrounding
25719 is used with the following scheme:
25722 \begin_layout Standard
25727 raisebox{lift}[height][depth]{box content}
25730 \begin_layout Standard
25731 The lift can be a positive value to raise the box or a negative value to
25735 \begin_layout Standard
25736 To align for example the word
25737 \begin_inset Quotes eld
25741 \begin_inset Quotes erd
25744 so that the bottom of the
25745 \begin_inset Quotes eld
25749 \begin_inset Quotes erd
25753 \begin_inset Quotes eld
25757 \begin_inset Quotes erd
25760 is at the baseline, insert the command
25763 \begin_layout Standard
25773 \begin_layout Standard
25774 in ERT before the word.
25775 Behind the word insert a closing brace
25776 \begin_inset Quotes eld
25784 \begin_inset Quotes erd
25789 This is the result:
25792 \begin_layout Standard
25793 This is a text line with the word
25797 \begin_layout Standard
25809 \begin_inset Quotes eld
25813 \begin_inset Quotes erd
25820 \begin_layout Standard
25830 \begin_layout Standard
25831 \begin_inset VSpace bigskip
25834 When you raise or lower characters in a line, the line distance will be
25838 \begin_layout Standard
25839 This is a text line with the word
25843 \begin_layout Standard
25855 \begin_inset Quotes eld
25859 \begin_inset Quotes erd
25866 \begin_layout Standard
25875 This is a text line with the word
25879 \begin_layout Standard
25889 \begin_inset Quotes eld
25893 \begin_inset Quotes erd
25900 \begin_layout Standard
25910 \begin_layout Standard
25911 If you want to prevent this for a certain reason, set the box height to
25916 \begin_layout Standard
25926 \begin_layout Standard
25927 This is a text line with the word
25931 \begin_layout Standard
25943 \begin_inset Quotes eld
25947 \begin_inset Quotes erd
25954 \begin_layout Standard
25963 This is a text line with the word
25967 \begin_layout Standard
25971 raisebox{0.5cm}[0pt]{
25977 \begin_inset Quotes eld
25981 \begin_inset Quotes erd
25988 \begin_layout Standard
25998 \begin_layout Section
26000 \begin_inset LatexCommand label
26001 name "sec:Colored-Boxes"
26006 \begin_inset LatexCommand index
26007 name "Boxes ! Color"
26014 \begin_layout Subsection
26016 \begin_inset LatexCommand index
26017 name "Color ! for Text"
26024 \begin_layout Standard
26025 To color the background of text the text must be put into a so called colorbox.
26026 This requires that the LaTeX-package
26031 \begin_inset LatexCommand index
26032 name "LaTeX-packages ! color"
26036 is loaded in the document preamble with the command
26039 \begin_layout Standard
26044 @ifundef\SpecialChar \textcompwordmark{}
26051 \begin_layout Standard
26062 usepackage{color}}{}
26065 \begin_layout Standard
26070 will be loaded automatically by LyX when you color text
26074 \begin_layout Standard
26075 To avoid that it is loaded twice the command
26079 @ifundef\SpecialChar \textcompwordmark{}
26090 \begin_layout Standard
26091 \begin_inset VSpace medskip
26094 Colorboxes are created with the command
26101 This will be used with the following scheme:
26104 \begin_layout Standard
26109 colorbox{color}{box content}
26112 \begin_layout Standard
26113 The box content can also be a box and colorboxes can also be within other
26117 \begin_layout Standard
26118 The following colors are predefined:
26157 You can also define your own color as described in section\InsetSpace ~
26159 \begin_inset LatexCommand ref
26160 reference "sec:Colored-Tables"
26167 \begin_layout Standard
26168 To have e.\InsetSpace \thinspace{}
26170 a red background for a word, insert the command
26173 \begin_layout Standard
26181 \begin_layout Standard
26182 before the word in ERT.
26183 Behind the word insert a closing brace
26184 \begin_inset Quotes eld
26192 \begin_inset Quotes erd
26197 This is the result:
26200 \begin_layout Standard
26201 This is a line where the word
26205 \begin_layout Standard
26215 \begin_inset Quotes eld
26219 \begin_inset Quotes erd
26226 \begin_layout Standard
26233 has a red background.
26236 \begin_layout Standard
26237 \begin_inset VSpace bigskip
26240 If you would have the box frame in a different color, you can use the command
26247 with the following scheme:
26250 \begin_layout Standard
26255 fcolorbox{frame color}{box color}{box content}
26258 \begin_layout Standard
26272 The frame thickness and the space between the frame and the box content
26273 can be adjusted with the lengths
26285 , respectively, as described in section\InsetSpace ~
26287 \begin_inset LatexCommand ref
26288 reference "sec:Framed-Boxes"
26295 \begin_layout Standard
26296 For the following example the command
26299 \begin_layout Standard
26304 fcolorbox{cyan}{magenta}{
26307 \begin_layout Standard
26311 \begin_layout Standard
26312 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26319 \begin_layout Standard
26334 \begin_layout Standard
26338 fcolorbox{cyan}{magenta}{
26343 This is text within a colored, framed box.
26347 \begin_layout Standard
26357 \begin_layout Standard
26358 \begin_inset VSpace bigskip
26361 Of course you can also have colored text inside a colorbox:
26367 \begin_layout Standard
26371 fcolorbox{cyan}{magenta}{
26378 This is colored text within a colored, framed box.
26384 \begin_layout Standard
26395 \begin_layout Standard
26409 \begin_layout Standard
26412 \begin_inset VSpace medskip
26418 \begin_layout Standard
26419 \begin_inset Note Greyedout
26422 \begin_layout Standard
26427 Text in colorboxes cannot have line breaks.
26428 To color multiple text lines or paragraphs, use a box inside a colorbox
26429 as described in the following.
26437 \begin_layout Subsection
26438 Color for Paragraphs
26439 \begin_inset LatexCommand label
26440 name "sub:Color-for-Paragraphs"
26445 \begin_inset LatexCommand index
26446 name "Color ! for Paragraphs"
26453 \begin_layout Standard
26454 To set the background color for more than one text line, put the text into
26456 Before the minipage insert the
26465 \begin_layout Standard
26473 \begin_layout Standard
26475 Behind the minipage insert a closing brace
26476 \begin_inset Quotes eld
26484 \begin_inset Quotes erd
26490 \begin_layout Standard
26494 \begin_layout Standard
26498 colorbox{lightgrey}{
26504 \begin_inset Box Frameless
26513 height_special "totalheight"
26516 \begin_layout Standard
26517 This is text with background color.
26518 This is text with background color.
26521 \begin_layout Standard
26522 \begin_inset VSpace defskip
26525 The text can have footnotes
26529 \begin_layout Standard
26530 Another example footnote
26535 and can include tables and figures.
26538 \begin_layout Standard
26540 \begin_inset Tabular
26541 <lyxtabular version="3" rows="3" columns="3">
26543 <column alignment="center" valignment="top" leftline="true" width="0">
26544 <column alignment="center" valignment="top" leftline="true" width="0">
26545 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26546 <row topline="true">
26547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26550 \begin_layout Standard
26556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26559 \begin_layout Standard
26565 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26568 \begin_layout Standard
26575 <row topline="true">
26576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26579 \begin_layout Standard
26585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26588 \begin_layout Standard
26590 \begin_inset Quotes erd
26598 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26601 \begin_layout Standard
26608 <row topline="true" bottomline="true">
26609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26612 \begin_layout Standard
26618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26621 \begin_layout Standard
26627 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26630 \begin_layout Standard
26650 \begin_layout Standard
26660 \begin_layout Section
26661 URLs (Uniform Resource Locators)
26662 \begin_inset LatexCommand index
26670 \begin_layout Standard
26671 Links to web pages or email addresses can be inserted via the menu
26673 Insert\SpecialChar \menuseparator
26677 The appearing URL dialog has two fields; the
26685 field for the URL description, which will be typeset as plain text immediately
26689 \begin_layout Standard
26690 Here is an example URL:
26691 \begin_inset LatexCommand url
26692 name "LyX's homepage"
26693 target "http://www.lyx.org"
26700 \begin_layout Standard
26703 Generate\InsetSpace ~
26706 in the URL dialog has only an affect when you export your document to the
26708 \begin_inset Quotes eld
26716 \begin_inset Quotes erd
26722 \begin_layout Standard
26723 You cannot change the style of the link text.
26728 field will have the default text style of the document while the text of
26733 field will have the style
26734 \begin_inset Quotes eld
26742 \begin_inset Quotes erd
26748 \begin_layout Standard
26749 When you use the LaTeX-package
26754 \begin_inset LatexCommand index
26755 name "LaTeX-packages ! hyperref"
26759 to link cross-references in the output, URLs will automatically become
26760 clickable hyperlinks in DVI and PDF-output.
26763 \begin_layout Standard
26764 \begin_inset Note Greyedout
26767 \begin_layout Standard
26772 When you use the following characters: "%", "#", "^", you have to write
26773 them with a preceding backslash, e.\InsetSpace \thinspace{}
26776 \begin_inset Quotes eld
26782 \begin_inset Quotes erd
26786 URLs must not end with a backslash.
26794 \begin_layout Standard
26795 \begin_inset VSpace bigskip
26798 To create real hyperlinks without the force to write the link location to
26799 the text, you can use the command
26802 \begin_layout Standard
26807 href{link location}{link text}
26810 \begin_layout Standard
26812 To get for example a link to LyX's web page, write the command
26815 \begin_layout Standard
26820 href{http://www.lyx.org}{
26823 \begin_layout Standard
26825 Insert after the command the link text
26826 \begin_inset Quotes eld
26830 \begin_inset Quotes erd
26833 as normal text followed by a closing brace
26834 \begin_inset Quotes eld
26842 \begin_inset Quotes erd
26846 This is the result:
26850 \begin_layout Standard
26854 href{http://www.lyx.org}{
26863 \begin_layout Standard
26873 \begin_layout Standard
26874 To link to email addresses, add the prefix
26875 \begin_inset Quotes eld
26883 \begin_inset Quotes erd
26886 to the link location:
26892 \begin_layout Standard
26896 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26901 lyx-docs mailing list
26905 \begin_layout Standard
26915 \begin_layout Standard
26922 instead of LyX's URL box has the advantage that you can specify the text
26923 style of the link text like for all other text parts.
26924 You can therefore set hyphenation points and forced linebreaks to have
26925 long link text broken at the page margin.
26926 You are furthermore able to change the text style for all URLs in your
26927 document with an option in
26931 's load command and the restrictions mentioned above doesn't apply for
26940 \begin_layout Chapter
26942 \begin_inset LatexCommand index
26943 name "External Stuff"
26950 \begin_layout Standard
26953 Insert\SpecialChar \menuseparator
26956 you can insert external material to your document.
26960 \begin_layout Description
26962 Document Another LyX document; its content is directly inserted to your
26966 \begin_layout Description
26968 Text A text document; every of its text lines is inserted to your document
26972 \begin_layout Description
26976 Lines A text document; its text lines are inserted as they
26978 Empty text lines creates a new paragraph in your document.
26981 \begin_layout Description
26982 External\InsetSpace ~
26983 Material Files in various formats.
26986 \begin_layout Description
26988 Document LyX or LaTeX-documents.
26991 \begin_layout Section
26993 \begin_inset LatexCommand index
26994 name "External Stuff ! External Material"
27001 \begin_layout Standard
27002 The external material feature allows you to insert files to your document
27003 without converting them previously to a format that can be read by the
27004 document output format because LyX takes care of needed conversions.
27005 This is similar to images that can be inserted in various image formats
27009 \begin_layout Standard
27010 External material can be inserted via the
27014 dialog that is accessible with the menu
27016 Insert\SpecialChar \menuseparator
27017 File\SpecialChar \menuseparator
27018 External\InsetSpace ~
27022 Currently the following file types (
27029 \begin_layout Description
27030 ChessDiagram This template supports chess position diagrams made with the
27035 \begin_layout Standard
27039 href{http://en.wikipedia.org/wiki/XBoard}{
27052 \begin_layout Standard
27062 \begin_layout Description
27063 Date This inserts the date in the form
27068 This is a date inserted as external material:
27069 \begin_inset External
27077 The date is not shown within LyX, only in the output.
27078 There are two other methods of inserting a date, via menu
27080 Insert\SpecialChar \menuseparator
27083 and with the LaTeX command
27090 The different methods are compared in Table\InsetSpace ~
27092 \begin_inset LatexCommand ref
27093 reference "tab:Comparison-of-the"
27100 \begin_layout Description
27101 LilyPond This template is used for music notation typeset with the program
27105 \begin_layout Standard
27118 \begin_layout Standard
27122 href{http://en.wikipedia.org/wiki/LilyPond}{
27135 \begin_layout Standard
27143 \begin_inset Note Note
27146 \begin_layout Standard
27153 breaks the line while the remaining text in the line is stretched to the
27162 \begin_layout Description
27163 RasterImage This can be used for bitmap images.
27164 Nearly all popular image formats are supported.
27165 The image can be treated in the
27169 dialog like the images that are usually included via the
27173 dialog as described in section\InsetSpace ~
27175 \begin_inset LatexCommand ref
27176 reference "sec:Graphics-Dialog"
27181 The difference is that only raster images are allowed, that means that
27182 PDF and EPS-images are not supported.
27185 \begin_layout Description
27186 XFig This template supports images created with the program
27190 \begin_layout Standard
27194 href{http://en.wikipedia.org/wiki/Xfig}{
27207 \begin_layout Standard
27217 \begin_layout Standard
27218 \begin_inset Float table
27224 \begin_layout Standard
27225 \begin_inset Caption
27227 \begin_layout Standard
27228 \begin_inset LatexCommand label
27229 name "tab:Comparison-of-the"
27233 Comparison of the date input methods.
27241 \begin_layout Standard
27243 \begin_inset Tabular
27244 <lyxtabular version="3" rows="4" columns="4">
27246 <column alignment="center" valignment="top" leftline="true" width="0">
27247 <column alignment="center" valignment="top" leftline="true" width="0">
27248 <column alignment="center" valignment="top" leftline="true" width="0">
27249 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27250 <row topline="true">
27251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27254 \begin_layout Standard
27260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27263 \begin_layout Standard
27266 External Material\SpecialChar \menuseparator
27272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27275 \begin_layout Standard
27278 Insert\SpecialChar \menuseparator
27284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27287 \begin_layout Standard
27298 <row topline="true">
27299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27302 \begin_layout Standard
27308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27311 \begin_layout Standard
27317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27320 \begin_layout Standard
27326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27329 \begin_layout Standard
27336 <row topline="true">
27337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27340 \begin_layout Standard
27346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27349 \begin_layout Standard
27355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27358 \begin_layout Standard
27364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27367 \begin_layout Standard
27374 <row topline="true" bottomline="true">
27375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27378 \begin_layout Standard
27384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27387 \begin_layout Standard
27393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27396 \begin_layout Standard
27402 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27405 \begin_layout Standard
27424 \begin_layout Standard
27425 When you use the option
27437 dialog, only the path to the inserted file is shown in the output.
27440 material is displayed in LyX either as box like this:
27441 \begin_inset Graphics
27442 filename clipart/ExternalMaterialQt4.png
27447 or as image, depending on the setting in the
27459 \begin_layout Standard
27466 manual explains how you can define your own templates.
27469 \begin_layout Section
27471 \begin_inset LatexCommand label
27472 name "sec:Child-Documents"
27477 \begin_inset LatexCommand index
27478 name "External Stuff ! Child Documents"
27483 \begin_inset LatexCommand index
27484 name "Files ! Include"
27491 \begin_layout Standard
27492 Child documents are used when you have a long document consisting of several
27493 larger parts or sections.
27494 For maintenance it is often useful and sometimes even required to split
27495 the document in several files that can be revised separately.
27496 The different documents are then the so called child documents and a master
27497 document connects them to print the full document or parts of it.
27500 \begin_layout Standard
27501 Included documents are displayed in LyX as a box like this:
27502 \begin_inset Graphics
27503 filename clipart/ChildDocumentQt4.png
27508 To include child documents to a master document use the menu
27510 Insert\SpecialChar \menuseparator
27511 File\SpecialChar \menuseparator
27516 A dialog pops up where you can choose between four include methods:
27519 \begin_layout Description
27520 Include You can include LyX and LaTeX-documents.
27529 dialog, the included documents will be opened in LyX in a new file tab
27530 so that you can modify it.
27535 \begin_layout Standard
27536 Here is a child document inserted using
27541 \begin_inset Include \include{DummyDocument1.lyx}
27549 \begin_layout Standard
27550 The section numbering includes the sections of the included files in the
27551 order they are inserted in the master document.
27552 The included example document has for example a subsection that is numbered
27553 as subsection of this section.
27554 Labels of included documents can be referenced: Subsection\InsetSpace ~
27556 \begin_inset LatexCommand ref
27557 reference "sub:External-Subsection-1"
27564 \begin_layout Standard
27565 The preamble of the child document is ignored, only the preamble of the
27566 master document is used.
27567 Included documents are inserted starting on a new page and end with a pagebreak.
27570 \begin_layout Standard
27571 With the LaTeX-command
27577 you can specify which included child documents are processed when the output
27579 This is useful when you are perhaps only working on a certain chapter of
27580 your large document as this saves compiling time.
27587 is inserted to the master document preamble.
27588 It takes a comma-separated list of the filenames as argument, e.g.
27591 \begin_layout Standard
27596 includeonly{chapter1,chapter5}
27599 \begin_layout Standard
27600 will only process the included files named
27601 \begin_inset Quotes eld
27605 \begin_inset Quotes erd
27609 \begin_inset Quotes eld
27613 \begin_inset Quotes erd
27617 \begin_inset Quotes eld
27621 \begin_inset Quotes erd
27627 \begin_layout Standard
27628 \begin_inset Note Greyedout
27631 \begin_layout Standard
27636 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27637 w the document in case that the child document uses another document class
27638 than the master document as this will lead to unexpected outputs.
27646 \begin_layout Description
27647 Input This method is very similar to the Include method.
27648 The differences are:
27652 \begin_layout Itemize
27653 Input files don't start with a new page and don't end with a pagebreak.
27656 \begin_layout Itemize
27657 Input files can be previewed in LyX when
27659 Instant\InsetSpace ~
27662 is enabled in LyX's preferences under
27666 feel\SpecialChar \menuseparator
27672 \begin_layout Itemize
27683 \begin_layout Standard
27684 Here is a child document inserted using
27689 \begin_inset Include \input{DummyDocument2.lyx}
27697 \begin_layout Description
27698 Verbatim With this method every text file can be included.
27699 The file is shown in the output with its source code, no command used in
27700 the text is invoked.
27701 You can use the option
27703 Mark spaces in output
27705 that displays the character
27706 \begin_inset Quotes eld
27713 \begin_layout Standard
27723 \begin_inset Quotes erd
27726 for every space character in the source code.
27727 The difference to the method via the menu
27729 Insert\SpecialChar \menuseparator
27730 File\SpecialChar \menuseparator
27734 is that the document content is not shown in LyX.
27737 \begin_layout Standard
27738 Here is a child document inserted as Verbatim:
27739 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27745 \begin_inset VSpace bigskip
27748 Here is a child document inserted as Verbatim using the
27750 Mark spaces in output
27753 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27761 \begin_layout Standard
27762 \begin_inset VSpace bigskip
27768 \begin_layout Standard
27769 \begin_inset Note Greyedout
27772 \begin_layout Standard
27777 As you can see in the examples above, the text of the documents included
27778 as verbatim is not broken at the end of the document lines.
27786 \begin_layout Description
27787 Listings This type is described in chapter\InsetSpace ~
27789 \begin_inset LatexCommand ref
27790 reference "cha:Program-Code-Listings"
27797 \begin_layout Standard
27798 \begin_inset Note Greyedout
27801 \begin_layout Standard
27806 Including the same document twice in a document using different methods
27807 could cause LaTeX-problems.
27815 \begin_layout Chapter
27816 Program Code Listings
27817 \begin_inset LatexCommand label
27818 name "cha:Program-Code-Listings"
27823 \begin_inset LatexCommand index
27829 \begin_inset LatexCommand index
27830 name "Program Code"
27835 \begin_inset LatexCommand index
27836 name "Floats ! Listings"
27843 \begin_layout Standard
27844 To include and typeset program code you can use the
27848 inset that can be inserted via the menu
27850 Insert\SpecialChar \menuseparator
27859 \begin_inset LatexCommand index
27860 name "LaTeX-packages ! listings"
27864 provides a powerful and flexible way to insert program source code to your
27868 \begin_layout Standard
27869 When right-clicking on a listings inset a dialog pops up where you can set
27870 the listings format.
27873 \begin_layout Standard
27874 By default, a listing starts a new paragraph in the output.
27875 The placement option
27877 Inline\InsetSpace ~
27880 prints the listing inline like this:
27881 \begin_inset listings
27882 lstparams "language={C++}"
27886 \begin_layout Standard
27899 creates a listings float where you can specify the placement options
27900 \begin_inset Quotes eld
27908 \begin_inset Quotes erd
27912 \begin_inset Quotes eld
27920 \begin_inset Quotes erd
27924 \begin_inset Quotes eld
27932 \begin_inset Quotes erd
27936 \begin_inset Quotes eld
27944 \begin_inset Quotes erd
27947 corresponding to the float placement options described in section\InsetSpace ~
27949 \begin_inset LatexCommand ref
27950 reference "sec:Float-Placement"
27955 The placement options can be mixed and are inserted without any separation,
27956 e.\InsetSpace \thinspace{}
27959 \begin_inset Quotes eld
27967 \begin_inset Quotes erd
27972 \begin_inset Quotes eld
27976 \begin_inset Quotes erd
27979 has sometimes no effect, but you don't need to use the
27983 option in this case as also non-float listings can have captions and be
27987 \begin_layout Standard
27988 You can add captions to listings with the menu
27990 Insert\SpecialChar \menuseparator
27994 Listings can be referenced like floats: Listing\InsetSpace ~
27996 \begin_inset LatexCommand ref
27997 reference "lst:Example-Listing"
28004 \begin_layout Standard
28005 \begin_inset listings
28006 lstparams "language=Python"
28010 \begin_layout Standard
28012 \begin_inset Caption
28014 \begin_layout Standard
28015 \begin_inset LatexCommand label
28016 name "lst:Example-Listing"
28020 Example Listing float
28025 # Example listing float
28028 \begin_layout Standard
28033 \begin_layout Standard
28035 'this is a python function'
28038 \begin_layout Standard
28048 \begin_layout Standard
28049 When you have set a programming language in the listings dialog, the keywords
28050 of this language will be recognized and specially typeset in the output.
28051 In the example listings the Python keyword
28052 \begin_inset Quotes eld
28056 \begin_inset Quotes erd
28059 is recognized and printed bold in the output.
28062 \begin_layout Standard
28068 of the listings dialog you can specify the line numbering style.
28069 You can insert a number to specify which lines are numbered to the field
28075 When you insert e.g.
28077 \begin_inset Quotes eld
28081 \begin_inset Quotes erd
28084 , only every 3rd line will be numbered.
28087 \begin_layout Standard
28088 You can furthermore specify a range of lines, only these will then appear
28092 Extended\InsetSpace ~
28095 should be used when you use national characters like the German umlauts
28098 Here is an example listing with left line numbering, step
28100 \begin_inset Quotes eld
28104 \begin_inset Quotes erd
28108 \begin_inset Quotes eld
28112 \begin_inset Quotes erd
28116 \begin_inset Quotes eld
28119 Extended\InsetSpace ~
28121 \begin_inset Quotes erd
28125 \begin_inset Quotes eld
28131 \begin_inset Quotes erd
28134 , range lines 3\InsetSpace \thinspace{}
28135 -\InsetSpace \thinspace{}
28139 \begin_layout Standard
28140 \begin_inset listings
28141 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
28145 \begin_layout Standard
28150 \begin_layout Standard
28152 'this is a python function'
28155 \begin_layout Standard
28160 \begin_layout Standard
28165 \begin_layout Standard
28167 'This is a German word: Tschüß'
28170 \begin_layout Standard
28175 \begin_layout Standard
28180 \begin_layout Standard
28182 'this is a python function'
28185 \begin_layout Standard
28195 \begin_layout Standard
28196 \begin_inset Note Greyedout
28199 \begin_layout Standard
28204 The line numbering is shifted by a line by every previous listing.
28205 That's the reason why the lines 2 and 5 are numbered in the above listing
28206 and not the lines 3 and 6.
28214 \begin_layout Standard
28215 \begin_inset VSpace bigskip
28221 \begin_layout Standard
28222 It is also possible to print lines from a file as listing.
28223 To do this, use the menu
28225 Insert\SpecialChar \menuseparator
28226 File\SpecialChar \menuseparator
28229 and choose the type
28237 \begin_layout Standard
28238 The other child document types are described in section\InsetSpace ~
28240 \begin_inset LatexCommand ref
28241 reference "sec:Child-Documents"
28250 In the child document dialog you can specify the listing parameters in
28252 To show a list of all available parameters, type in a question mark
28253 \begin_inset Quotes eld
28257 \begin_inset Quotes erd
28263 \begin_layout Standard
28264 To reference child document listings, write a label text into the corresponding
28265 field of the child document dialog.
28266 The label can then be referenced using the menu
28268 Insert\SpecialChar \menuseparator
28274 \begin_layout Standard
28275 Listing\InsetSpace ~
28277 \begin_inset LatexCommand ref
28278 reference "lst:file-listing"
28282 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
28283 -\InsetSpace \thinspace{}
28288 \begin_layout Standard
28289 \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]
28297 \begin_layout Standard
28298 \begin_inset VSpace bigskip
28304 \begin_layout Standard
28305 Global listings settings can be set in the
28307 Document\SpecialChar \menuseparator
28308 Settings\SpecialChar \menuseparator
28312 To get there a list of available options, type in a question mark
28313 \begin_inset Quotes eld
28317 \begin_inset Quotes erd
28322 Listings\InsetSpace ~
28328 \begin_layout Standard
28329 For more information about the
28333 package, we refer to its documentation
28334 \begin_inset LatexCommand cite
28342 \begin_layout Standard
28348 \begin_layout Chapter
28354 \begin_layout Standard
28367 \begin_layout Standard
28375 \begin_inset LatexCommand index
28381 \begin_inset LatexCommand label
28382 name "cha:Units-available-in"
28387 \begin_inset Note Note
28390 \begin_layout Standard
28393 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
28394 are displayed wrongly in PDF-bookmarks.
28395 For more information about this, have a look at
28396 \begin_inset LatexCommand cite
28409 \begin_layout Standard
28410 To understand the units described in this documentation, Table\InsetSpace ~
28412 \begin_inset LatexCommand ref
28413 reference "tab:Units"
28417 explains all units available in LyX.
28420 \begin_layout Standard
28421 \begin_inset Float table
28427 \begin_layout Standard
28428 \begin_inset Caption
28430 \begin_layout Standard
28431 \begin_inset LatexCommand label
28444 \begin_layout Standard
28445 \begin_inset VSpace medskip
28451 \begin_layout Standard
28453 \begin_inset Tabular
28454 <lyxtabular version="3" rows="20" columns="2">
28456 <column alignment="center" valignment="top" leftline="true" width="0">
28457 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28458 <row topline="true" bottomline="true">
28459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28462 \begin_layout Standard
28468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28471 \begin_layout Standard
28478 <row topline="true">
28479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28482 \begin_layout Standard
28488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28491 \begin_layout Standard
28498 <row topline="true">
28499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28502 \begin_layout Standard
28508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28511 \begin_layout Standard
28518 <row topline="true">
28519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28522 \begin_layout Standard
28528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28531 \begin_layout Standard
28538 <row topline="true">
28539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28542 \begin_layout Standard
28548 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28551 \begin_layout Standard
28552 point (72.27\InsetSpace \thinspace{}
28553 pt = 1\InsetSpace \thinspace{}
28560 <row topline="true">
28561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28564 \begin_layout Standard
28570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28573 \begin_layout Standard
28574 pica (1\InsetSpace \thinspace{}
28575 pc = 12\InsetSpace \thinspace{}
28582 <row topline="true">
28583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28586 \begin_layout Standard
28592 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28595 \begin_layout Standard
28596 scaled point (65536\InsetSpace \thinspace{}
28597 sp = 1\InsetSpace \thinspace{}
28604 <row topline="true">
28605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28608 \begin_layout Standard
28614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28617 \begin_layout Standard
28618 big point (72\InsetSpace \thinspace{}
28619 bp = 1\InsetSpace \thinspace{}
28626 <row topline="true">
28627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28630 \begin_layout Standard
28636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28639 \begin_layout Standard
28640 didot (1\InsetSpace \thinspace{}
28642 \begin_inset Formula $\approx$
28645 0.376\InsetSpace \thinspace{}
28652 <row topline="true">
28653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28656 \begin_layout Standard
28662 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28665 \begin_layout Standard
28666 cicero (1\InsetSpace \thinspace{}
28667 cc = 12\InsetSpace \thinspace{}
28674 <row topline="true">
28675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28678 \begin_layout Standard
28684 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28687 \begin_layout Standard
28688 % of original image width
28694 <row topline="true">
28695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28698 \begin_layout Standard
28704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28707 \begin_layout Standard
28714 <row topline="true">
28715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28718 \begin_layout Standard
28724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28727 \begin_layout Standard
28734 <row topline="true">
28735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28738 \begin_layout Standard
28744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28747 \begin_layout Standard
28754 <row topline="true">
28755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28758 \begin_layout Standard
28764 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28767 \begin_layout Standard
28774 <row topline="true">
28775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28778 \begin_layout Standard
28784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28787 \begin_layout Standard
28794 <row topline="true">
28795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28798 \begin_layout Standard
28804 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28807 \begin_layout Standard
28814 <row topline="true">
28815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28818 \begin_layout Standard
28824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28827 \begin_layout Standard
28838 <row topline="true">
28839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28842 \begin_layout Standard
28848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28851 \begin_layout Standard
28862 <row topline="true" bottomline="true">
28863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28866 \begin_layout Standard
28872 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28875 \begin_layout Standard
28876 math unit (1\InsetSpace \thinspace{}
28877 mu = 1/18\InsetSpace \thinspace{}
28896 \begin_layout Chapter
28897 Output File Formats with Graphics
28898 \begin_inset LatexCommand label
28899 name "cha:Output-File-Formats"
28906 \begin_layout Section
28908 \begin_inset LatexCommand index
28909 name "File Formats ! DVI"
28914 \begin_inset LatexCommand index
28915 name "DVI|see{File Formats}"
28922 \begin_layout Standard
28923 This file type has the extension
28924 \begin_inset Quotes eld
28932 \begin_inset Quotes erd
28937 \begin_inset Quotes eld
28941 \begin_inset Quotes erd
28944 (DVI), because it is completely portable; you can move them from one machine
28945 to another without needing to do any sort of conversion.
28946 At the time when this file-format was developed, this was no matter of
28948 DVIs are used for quick previews and as pre-stage for other output formats,
28952 \begin_layout Standard
28953 \begin_inset Note Greyedout
28956 \begin_layout Standard
28961 DVI-files doesn't contain images, they will only be a linked.
28966 So don't forget this, if you move your
28970 file to another computer.
28971 This property can also slow down your computer when you view the DVI.
28972 Because the DVI-viewer has to convert the image in the background to make
28973 it visible when you scroll in the DVI.
28974 So we recommend to use PDF for files with many images.
28977 \begin_layout Standard
28978 You can export your document to DVI by using the menu
28980 File\SpecialChar \menuseparator
28981 Export\SpecialChar \menuseparator
28985 You can view your document as DVI via the
28989 menu or by using the toolbar button
28990 \begin_inset Graphics
28991 filename ../images/buffer-view_dvi.xpm
28999 \begin_layout Section
29001 \begin_inset LatexCommand label
29002 name "sec:PostScript"
29007 \begin_inset LatexCommand index
29008 name "File Formats ! PostScript"
29013 \begin_inset LatexCommand index
29014 name "PostScript|see{File Formats}"
29021 \begin_layout Standard
29022 This file type has the extension
29023 \begin_inset Quotes eld
29031 \begin_inset Quotes erd
29035 PostScript was developed by the company
29039 as printer language.
29040 The file contains therefore commands that the printer uses to print the
29042 PostScript can be seen as
29043 \begin_inset Quotes eld
29046 programming language
29047 \begin_inset Quotes erd
29050 ; you can calculate with it and draw diagrams and images
29054 \begin_layout Standard
29055 If you are interested to learn more about this, have a look at the LaTeX-package
29061 \begin_inset LatexCommand cite
29072 Due to this ability, the files are often bigger than PDFs.
29075 \begin_layout Standard
29076 PostScript can only contain images in the format
29077 \begin_inset Quotes eld
29080 Encapsulated PostScript
29081 \begin_inset Quotes erd
29084 (EPS, file extension
29085 \begin_inset Quotes eld
29093 \begin_inset Quotes erd
29097 As LyX allows you to use any known image format in your document, it has
29098 to convert images in the background to EPS.
29099 If you have e.g 50 images in your document, LyX has to do 50 conversions
29100 whenever you view or export your document.
29101 This will slow down your work flow with LyX drastically.
29102 So if you plan to use PostScript, you can insert your images directly as
29103 EPS to avoid this problem.
29106 \begin_layout Standard
29107 You can export your document to PostScript using the menu
29109 File\SpecialChar \menuseparator
29110 Export\SpecialChar \menuseparator
29114 You can view your document as PostScript via the
29118 menu or by using the toolbar button
29119 \begin_inset Graphics
29120 filename ../images/buffer-view_ps.xpm
29128 \begin_layout Section
29130 \begin_inset LatexCommand label
29136 \begin_inset LatexCommand index
29137 name "File Formats ! PDF"
29142 \begin_inset LatexCommand index
29150 \begin_layout Standard
29151 This file type has the extension
29152 \begin_inset Quotes eld
29160 \begin_inset Quotes erd
29165 \begin_inset Quotes eld
29168 Portable Document Format
29169 \begin_inset Quotes erd
29172 (PDF) is developed by
29176 as derivative from PostScript.
29177 It is more compressed and it uses much less commands than PostScript.
29179 \begin_inset Quotes eld
29183 \begin_inset Quotes erd
29186 implies, it can be processed at any computer system and the printed output
29187 looks exactly the same.
29190 \begin_layout Standard
29191 PDF can contain images in its own PDF format, in the format
29192 \begin_inset Quotes eld
29195 Joint Photographic Experts Group
29196 \begin_inset Quotes erd
29199 (JPG, file extension
29200 \begin_inset Quotes eld
29208 \begin_inset Quotes erd
29212 \begin_inset Quotes eld
29220 \begin_inset Quotes erd
29223 ), and in the format
29224 \begin_inset Quotes eld
29227 Portable Network Graphics
29228 \begin_inset Quotes erd
29231 (PNG, file extension
29232 \begin_inset Quotes eld
29240 \begin_inset Quotes erd
29244 Nevertheless you can use any other image format, because LyX converts them
29245 in the background to one of these formats.
29246 But as described in the section about PostScript, the image conversion
29247 will slow down your work flow.
29248 So it is recommended to use images in one of the three mentioned formats.
29251 \begin_layout Standard
29252 You can export your document to PDF via the menu
29254 File\SpecialChar \menuseparator
29257 in three different ways:
29260 \begin_layout Description
29262 (ps2pdf) This uses the program
29266 that creates a PDF from a PostScript-version of your file.
29267 The PostScript-version is produced by the program
29271 which uses a DVI-version as intermediate step.
29272 So this export variant consist of three conversions.
29275 \begin_layout Description
29277 (dvipdfm) This uses the program
29281 that converts your file in the background to DVI and in a second step to
29285 \begin_layout Description
29287 (pdflatex) This uses the program
29291 that converts your file directly to PDF.
29294 \begin_layout Standard
29295 It is recommended to use
29304 supports all features of actual PDF-versions, is quick and works stable
29310 is not under development and therefore a bit outdated.
29313 \begin_layout Standard
29314 You can view your document as PDF via the
29318 menu or by using the toolbar button
29319 \begin_inset Graphics
29320 filename ../images/buffer-view_pdf2.xpm
29337 \begin_layout Chapter
29338 Explanation of Equation\InsetSpace ~
29340 \begin_inset LatexCommand eqref
29346 \begin_inset LatexCommand label
29347 name "cha:Explanation-of-Equation"
29354 \begin_layout Standard
29360 \begin_inset Formula $W_{\mathrm{tot\, n}}$
29363 can be calculated to
29366 \begin_layout Standard
29367 \begin_inset Formula \begin{equation}
29368 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
29375 \begin_layout Standard
29377 \begin_inset Formula $W_{g\, n}$
29380 is the given width of all cells.
29387 is the LaTeX-length between the cell text and the cell border, its default
29388 value is 6\InsetSpace \thinspace{}
29396 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
29400 \begin_layout Standard
29401 Following equation\InsetSpace ~
29403 \begin_inset LatexCommand eqref
29404 reference "eq:Wtot_n"
29408 , the total width of a multicolumn
29409 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
29415 \begin_layout Standard
29416 \begin_inset Formula \begin{equation}
29417 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
29424 \begin_layout Standard
29425 By setting equation\InsetSpace ~
29427 \begin_inset LatexCommand eqref
29428 reference "eq:Wtot_n"
29433 \begin_inset LatexCommand eqref
29434 reference "eq:Wtot_mult"
29438 equal we can calculate the needed given width
29439 \begin_inset Formula $W_{g\, n}$
29446 columns are spanned, so that each column has a total width of
29447 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
29453 \begin_layout Standard
29454 \begin_inset Formula \begin{equation}
29455 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
29462 \begin_layout Bibliography
29463 \begin_inset LatexCommand bibitem
29464 key "latexcompanion"
29468 Frank Mittelbach and Michel Goossens:
29470 The LaTeX Companion Second Edition.
29473 Addison-Wesley, 2004
29476 \begin_layout Bibliography
29477 \begin_inset LatexCommand bibitem
29482 Helmut Kopka and Patrick W.
29485 A Guide to LaTeX Fourth Edition.
29488 Addison-Wesley, 2003
29491 \begin_layout Bibliography
29492 \begin_inset LatexCommand bibitem
29499 LaTeX: A Document Preparation System.
29502 Addison-Wesley, second edition, 1994
29505 \begin_layout Bibliography
29506 \begin_inset LatexCommand bibitem
29515 \begin_layout Standard
29519 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
29529 \begin_layout Standard
29536 of the LaTeX-package
29541 \begin_inset LatexCommand index
29542 name "LaTeX-packages ! booktabs"
29549 \begin_layout Bibliography
29550 \begin_inset LatexCommand bibitem
29559 \begin_layout Standard
29563 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29572 \begin_layout Standard
29579 of the LaTeX-package
29584 \begin_inset LatexCommand index
29585 name "LaTeX-packages ! caption"
29592 \begin_layout Bibliography
29593 \begin_inset LatexCommand bibitem
29602 \begin_layout Standard
29606 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
29616 \begin_layout Standard
29623 of the LaTeX-package
29628 \begin_layout Bibliography
29629 \begin_inset LatexCommand bibitem
29638 \begin_layout Standard
29642 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
29652 \begin_layout Standard
29659 of the LaTeX-package
29661 endf\SpecialChar \textcompwordmark{}
29665 \begin_inset LatexCommand index
29666 name "LaTeX-packages ! endfloat"
29673 \begin_layout Bibliography
29674 \begin_inset LatexCommand bibitem
29683 \begin_layout Standard
29687 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29697 \begin_layout Standard
29704 of the LaTeX-package
29706 floatf\SpecialChar \textcompwordmark{}
29710 \begin_inset LatexCommand index
29711 name "LaTeX-packages ! floatflt"
29718 \begin_layout Bibliography
29719 \begin_inset LatexCommand bibitem
29728 \begin_layout Standard
29732 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29742 \begin_layout Standard
29749 of the LaTeX-package
29754 \begin_inset LatexCommand index
29755 name "LaTeX-packages ! footmisc"
29762 \begin_layout Bibliography
29763 \begin_inset LatexCommand bibitem
29772 \begin_layout Standard
29776 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
29785 \begin_layout Standard
29792 of the LaTeX-package
29797 \begin_inset LatexCommand index
29798 name "LaTeX-packages ! hyperref"
29805 \begin_layout Bibliography
29806 \begin_inset LatexCommand bibitem
29815 \begin_layout Standard
29819 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29829 \begin_layout Standard
29836 of the LaTeX-package
29841 \begin_inset LatexCommand index
29842 name "LaTeX-packages ! hyperref"
29849 \begin_layout Bibliography
29850 \begin_inset LatexCommand bibitem
29859 \begin_layout Standard
29863 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29873 \begin_layout Standard
29880 of the LaTeX-package
29885 \begin_inset LatexCommand index
29886 name "LaTeX-packages ! koma-script"
29893 \begin_layout Bibliography
29894 \begin_inset LatexCommand bibitem
29895 key "koma-script-de"
29903 \begin_layout Standard
29907 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
29917 \begin_layout Standard
29924 of the LaTeX-package
29929 \begin_inset LatexCommand index
29930 name "LaTeX-packages ! koma-script"
29937 \begin_layout Bibliography
29938 \begin_inset LatexCommand bibitem
29947 \begin_layout Standard
29951 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
29961 \begin_layout Standard
29968 of the LaTeX-package
29973 \begin_inset LatexCommand index
29974 name "LaTeX-packages ! listings"
29981 \begin_layout Bibliography
29982 \begin_inset LatexCommand bibitem
29991 \begin_layout Standard
29995 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
30005 \begin_layout Standard
30012 of the LaTeX-package
30017 \begin_inset LatexCommand index
30018 name "LaTeX-packages ! marginnote"
30025 \begin_layout Bibliography
30026 \begin_inset LatexCommand bibitem
30035 \begin_layout Standard
30039 href{http://tug.org/PSTricks/main.cgi/}{
30048 \begin_layout Standard
30055 of the LaTeX-package
30060 \begin_inset LatexCommand index
30061 name "LaTeX-packages ! PSTricks"
30068 \begin_layout Bibliography
30069 \begin_inset LatexCommand bibitem
30078 \begin_layout Standard
30082 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
30091 \begin_layout Standard
30098 of the LaTeX-package
30103 \begin_inset LatexCommand index
30104 name "LaTeX-packages ! sidecap"
30111 \begin_layout Bibliography
30112 \begin_inset LatexCommand bibitem
30121 \begin_layout Standard
30125 href{http://wiki.lyx.org/LyX/NewInLyX15}{
30134 \begin_layout Standard
30141 about new LyX-features planned for the release
30148 \begin_layout Standard
30149 \begin_inset LatexCommand printindex
30156 \begin_layout Standard
30157 \begin_inset FloatList figure
30164 \begin_layout Standard
30165 \begin_inset FloatList table