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 recalculated to bitmaps when the output file is
1230 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\InsetSpace ~
4611 \begin_inset LatexCommand ref
4612 reference "sub:Longtable-Captions"
4616 for an explanation of this command.
4624 \begin_layout Subsection
4625 Footnotes in Longtables
4626 \begin_inset LatexCommand label
4627 name "sub:Footnotes-in-Longtables"
4632 \begin_inset LatexCommand index
4633 name "Longtables ! Footnotes"
4640 \begin_layout Standard
4641 Footnotes can be inserted to every longtable cell.
4642 They appear at the bottom of the page where the table cell with the footnote
4646 \begin_inset LatexCommand ref
4647 reference "tab:DiffCaptions"
4651 has for example a footnote.
4654 \begin_layout Subsection
4656 \begin_inset LatexCommand index
4657 name "Longtables ! Captions"
4662 \begin_inset LatexCommand label
4663 name "sub:Longtable-Captions"
4670 \begin_layout Standard
4671 A longtable cannot be put into a table float because floats can only be
4672 on one page but the caption environment of floats can also be used for
4676 \begin_layout Standard
4677 As LyX does not yet fully support captions in longtables, a hack is needed
4681 \begin_layout Enumerate
4687 \begin_layout Enumerate
4688 Mark the first row and disable its upper line.
4691 \begin_layout Enumerate
4692 Insert a caption via the menu
4694 Insert\SpecialChar \menuseparator
4697 into the first table cell.
4699 You can also add a short title for the caption.
4702 \begin_layout Enumerate
4704 \begin_inset Quotes eld
4716 \begin_inset Quotes erd
4719 as ERT behind the caption.
4722 \begin_layout Standard
4723 A short title that will appear in the LOT instead of the full title.
4732 behind the caption omits the vertical lines between the following cells
4734 The first table row is now only a dummy row for the caption, the actual
4735 table starts with the second row.
4738 \begin_layout Standard
4739 Here is a short longtable to see how it works:
4742 \begin_layout Standard
4743 \begin_inset Tabular
4744 <lyxtabular version="3" rows="6" columns="5">
4745 <features islongtable="true">
4746 <column alignment="center" valignment="top" leftline="true" width="0">
4747 <column alignment="center" valignment="top" leftline="true" width="0">
4748 <column alignment="center" valignment="top" leftline="true" width="0">
4749 <column alignment="center" valignment="top" leftline="true" width="0">
4750 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4755 \begin_layout Standard
4756 \begin_inset Caption
4758 \begin_layout Standard
4759 Longtable with caption
4763 \begin_layout Standard
4778 \begin_layout Standard
4794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4797 \begin_layout Standard
4803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4806 \begin_layout Standard
4812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4815 \begin_layout Standard
4821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4824 \begin_layout Standard
4831 <row topline="true">
4832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4835 \begin_layout Standard
4841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4844 \begin_layout Standard
4850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4853 \begin_layout Standard
4859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4862 \begin_layout Standard
4868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4871 \begin_layout Standard
4878 <row topline="true">
4879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4882 \begin_layout Standard
4888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4891 \begin_layout Standard
4897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4900 \begin_layout Standard
4906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4909 \begin_layout Standard
4915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4918 \begin_layout Standard
4925 <row topline="true">
4926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4929 \begin_layout Standard
4935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4938 \begin_layout Standard
4944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4947 \begin_layout Standard
4953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4956 \begin_layout Standard
4962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4965 \begin_layout Standard
4972 <row topline="true">
4973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4976 \begin_layout Standard
4982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4985 \begin_layout Standard
4991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4994 \begin_layout Standard
5000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5003 \begin_layout Standard
5009 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5012 \begin_layout Standard
5019 <row topline="true" bottomline="true">
5020 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5023 \begin_layout Standard
5029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5032 \begin_layout Standard
5038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5041 \begin_layout Standard
5047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5050 \begin_layout Standard
5056 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5059 \begin_layout Standard
5073 \begin_layout Standard
5074 \begin_inset VSpace medskip
5078 \begin_inset Note Greyedout
5081 \begin_layout Standard
5086 The table number is increased for every longtable, also if you didn't set
5088 For this reason you could have the case that e.g.
5090 2.4 follows on Table\InsetSpace ~
5091 2.1 in the list of tables if there are two longtables
5093 To avoid this you can add the following command in ERT behind every longtable
5097 \begin_layout Standard
5102 addtocounter{table}{-1}
5110 \begin_layout Standard
5111 \begin_inset Note Greyedout
5114 \begin_layout Standard
5119 If you are using the LaTeX-package
5124 \begin_inset LatexCommand index
5125 name "LaTeX-packages ! hyperref"
5129 to link cross-references, the link to a longtable caption will always point
5130 to the beginning of the document.
5138 \begin_layout Subsubsection
5139 References to Longtables
5140 \begin_inset LatexCommand index
5141 name "Longtables ! References"
5148 \begin_layout Standard
5149 \begin_inset Tabular
5150 <lyxtabular version="3" rows="6" columns="5">
5151 <features islongtable="true">
5152 <column alignment="center" valignment="top" leftline="true" width="0">
5153 <column alignment="center" valignment="top" leftline="true" width="0">
5154 <column alignment="center" valignment="top" leftline="true" width="0">
5155 <column alignment="center" valignment="top" leftline="true" width="0">
5156 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5161 \begin_layout Standard
5162 \begin_inset Caption
5164 \begin_layout Standard
5165 Referenced longtable
5166 \begin_inset LatexCommand label
5167 name "tab:RefExample"
5180 \begin_layout Standard
5196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5199 \begin_layout Standard
5205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5208 \begin_layout Standard
5214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5217 \begin_layout Standard
5223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5226 \begin_layout Standard
5233 <row topline="true">
5234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5237 \begin_layout Standard
5243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5246 \begin_layout Standard
5252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5255 \begin_layout Standard
5261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5264 \begin_layout Standard
5270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5273 \begin_layout Standard
5280 <row topline="true">
5281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5284 \begin_layout Standard
5290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5293 \begin_layout Standard
5299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5302 \begin_layout Standard
5308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5311 \begin_layout Standard
5317 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5320 \begin_layout Standard
5327 <row topline="true">
5328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5331 \begin_layout Standard
5337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5340 \begin_layout Standard
5346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5349 \begin_layout Standard
5355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5358 \begin_layout Standard
5364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5367 \begin_layout Standard
5374 <row topline="true">
5375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5378 \begin_layout Standard
5384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5387 \begin_layout Standard
5393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5396 \begin_layout Standard
5402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5405 \begin_layout Standard
5411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5414 \begin_layout Standard
5421 <row topline="true" bottomline="true">
5422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5425 \begin_layout Standard
5431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5434 \begin_layout Standard
5440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5443 \begin_layout Standard
5449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5452 \begin_layout Standard
5458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5461 \begin_layout Standard
5475 \begin_layout Standard
5476 To reference a longtable, insert a label into the caption.
5477 Note that you have to add the label prefix
5478 \begin_inset Quotes eld
5486 \begin_inset Quotes eld
5489 manually in the label field.
5492 \begin_layout Standard
5493 This is a reference to Table\InsetSpace ~
5495 \begin_inset LatexCommand ref
5496 reference "tab:RefExample"
5503 \begin_layout Standard
5504 The caption layout can be set together with all other caption of your document
5505 using the LaTeX-package
5510 \begin_inset LatexCommand index
5511 name "LaTeX-packages ! caption"
5515 , see section\InsetSpace ~
5517 \begin_inset LatexCommand ref
5518 reference "sec:Caption-Formatting"
5525 \begin_layout Subsubsection
5527 \begin_inset LatexCommand index
5528 name "Longtables ! Caption Width"
5535 \begin_layout Standard
5536 The maximal width of of caption lines is defined by the length
5543 Its default value is 4\InsetSpace \thinspace{}
5545 To change it add the following command to your document preamble or as
5546 ERT into your document before the longtable that should be affected
5549 \begin_layout Standard
5559 \begin_layout Standard
5560 where the width could have one of the units listed in appendix\InsetSpace ~
5562 \begin_inset LatexCommand ref
5563 reference "cha:Units-available-in"
5570 \begin_layout Standard
5571 The following tables show the difference:
5574 \begin_layout Standard
5575 \begin_inset Tabular
5576 <lyxtabular version="3" rows="6" columns="5">
5577 <features islongtable="true">
5578 <column alignment="center" valignment="top" leftline="true" width="0">
5579 <column alignment="center" valignment="top" leftline="true" width="0">
5580 <column alignment="center" valignment="top" leftline="true" width="0">
5581 <column alignment="center" valignment="top" leftline="true" width="0">
5582 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5587 \begin_layout Standard
5588 \begin_inset Caption
5590 \begin_layout Standard
5591 long full title with default width long full title with default width long
5592 full title with default width
5596 \begin_layout Standard
5597 caption with default width
5611 \begin_layout Standard
5627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5630 \begin_layout Standard
5636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5639 \begin_layout Standard
5645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5648 \begin_layout Standard
5654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5657 \begin_layout Standard
5664 <row topline="true">
5665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5668 \begin_layout Standard
5674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5677 \begin_layout Standard
5683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5686 \begin_layout Standard
5692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5695 \begin_layout Standard
5701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5704 \begin_layout Standard
5711 <row topline="true">
5712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5715 \begin_layout Standard
5721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5724 \begin_layout Standard
5730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5733 \begin_layout Standard
5739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5742 \begin_layout Standard
5748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5751 \begin_layout Standard
5758 <row topline="true">
5759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5762 \begin_layout Standard
5768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5771 \begin_layout Standard
5777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5780 \begin_layout Standard
5786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5789 \begin_layout Standard
5795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5798 \begin_layout Standard
5805 <row topline="true">
5806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5809 \begin_layout Standard
5815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5818 \begin_layout Standard
5824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5827 \begin_layout Standard
5833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5836 \begin_layout Standard
5842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5845 \begin_layout Standard
5852 <row topline="true" bottomline="true">
5853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5856 \begin_layout Standard
5862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5865 \begin_layout Standard
5871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5874 \begin_layout Standard
5880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5883 \begin_layout Standard
5889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5892 \begin_layout Standard
5906 \begin_layout Standard
5910 \begin_layout Standard
5922 \begin_inset Tabular
5923 <lyxtabular version="3" rows="6" columns="5">
5924 <features islongtable="true">
5925 <column alignment="center" valignment="top" leftline="true" width="0">
5926 <column alignment="center" valignment="top" leftline="true" width="0">
5927 <column alignment="center" valignment="top" leftline="true" width="0">
5928 <column alignment="center" valignment="top" leftline="true" width="0">
5929 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5934 \begin_layout Standard
5935 \begin_inset Caption
5937 \begin_layout Standard
5938 long full title with width set to 5\InsetSpace \thinspace{}
5939 cm long full title with width set to
5940 5\InsetSpace \thinspace{}
5941 cm long full title with width set to 5\InsetSpace \thinspace{}
5946 \begin_layout Standard
5947 caption with width\InsetSpace \thinspace{}
5948 =\InsetSpace \thinspace{}
5949 5\InsetSpace \thinspace{}
5964 \begin_layout Standard
5980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5983 \begin_layout Standard
5989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5992 \begin_layout Standard
5998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6001 \begin_layout Standard
6007 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6010 \begin_layout Standard
6017 <row topline="true">
6018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6021 \begin_layout Standard
6027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6030 \begin_layout Standard
6036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6039 \begin_layout Standard
6045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6048 \begin_layout Standard
6054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6057 \begin_layout Standard
6064 <row topline="true">
6065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6068 \begin_layout Standard
6074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6077 \begin_layout Standard
6083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6086 \begin_layout Standard
6092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6095 \begin_layout Standard
6101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6104 \begin_layout Standard
6111 <row topline="true">
6112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6115 \begin_layout Standard
6121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6124 \begin_layout Standard
6130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6133 \begin_layout Standard
6139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6142 \begin_layout Standard
6148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6151 \begin_layout Standard
6158 <row topline="true">
6159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6162 \begin_layout Standard
6168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6171 \begin_layout Standard
6177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6180 \begin_layout Standard
6186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6189 \begin_layout Standard
6195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6198 \begin_layout Standard
6205 <row topline="true" bottomline="true">
6206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6209 \begin_layout Standard
6215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6218 \begin_layout Standard
6224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6227 \begin_layout Standard
6233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6236 \begin_layout Standard
6242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6245 \begin_layout Standard
6259 \begin_layout Standard
6263 \begin_layout Standard
6277 \begin_layout Standard
6278 \begin_inset Note Greyedout
6281 \begin_layout Standard
6286 When the LaTeX-package
6291 \begin_inset LatexCommand index
6292 name "LaTeX-packages ! caption"
6296 is used, as in this document, the full page width is used for the caption
6297 when you use the default value of 4\InsetSpace \thinspace{}
6305 To get in this case exactly a 4\InsetSpace \thinspace{}
6306 in wide caption, you can either use a value
6307 slightly different from 4.0\InsetSpace \thinspace{}
6309 3.99\InsetSpace \thinspace{}
6310 in, or the LaTeX-command
6314 captionsetup{width=value}
6316 that is provided by the
6328 \begin_layout Subsubsection
6329 Different Captions for Table Pages
6330 \begin_inset LatexCommand index
6331 name "Longtables ! Different Captions for Pages"
6338 \begin_layout Standard
6339 When the other captions should differ from the one of the first table page,
6340 insert a caption with a non-empty short title in a dummy caption row marked
6342 The caption used for the other table pages is inserted as caption without
6343 a short title in a dummy caption row that is marked as main header.
6344 When this caption shouldn't include the table number, use the command
6347 \begin_layout Standard
6352 caption*{caption text}
6355 \begin_layout Standard
6356 instead of LyX's caption box.
6357 The label to reference the table is inserted into the caption of the first
6361 \begin_inset LatexCommand ref
6362 reference "tab:DiffCaptions"
6366 is an example for a longtable with different heading where the second caption
6367 doesn't include the table number.
6370 \begin_layout Standard
6372 \begin_inset Tabular
6373 <lyxtabular version="3" rows="60" columns="3">
6374 <features islongtable="true">
6375 <column alignment="left" valignment="top" leftline="true" width="0cm">
6376 <column alignment="left" valignment="top" rightline="true" width="0pt">
6377 <column alignment="right" valignment="top" rightline="true" width="0pt">
6378 <row endfirsthead="true">
6379 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6382 \begin_layout Standard
6383 \begin_inset Caption
6385 \begin_layout Standard
6387 \begin_inset LatexCommand label
6388 name "tab:DiffCaptions"
6396 \begin_layout Standard
6411 \begin_layout Standard
6427 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6430 \begin_layout Standard
6436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6439 \begin_layout Standard
6446 <row topline="true" bottomline="true" endfirsthead="true">
6447 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6450 \begin_layout Standard
6453 Example Phone List (ignore the names)
6458 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6461 \begin_layout Standard
6467 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6470 \begin_layout Standard
6477 <row topline="true" bottomline="true" endfirsthead="true">
6478 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6481 \begin_layout Standard
6489 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6492 \begin_layout Standard
6498 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6501 \begin_layout Standard
6510 <row bottomline="true" endhead="true">
6511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6514 \begin_layout Standard
6518 \begin_layout Standard
6522 caption*{Continued Example Phone List}
6536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6539 \begin_layout Standard
6545 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6548 \begin_layout Standard
6555 <row topline="true" bottomline="true" endhead="true">
6556 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6559 \begin_layout Standard
6567 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6570 \begin_layout Standard
6576 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6579 \begin_layout Standard
6586 <row topline="true" bottomline="true" endhead="true">
6587 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6590 \begin_layout Standard
6598 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6601 \begin_layout Standard
6607 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6610 \begin_layout Standard
6619 <row topline="true" bottomline="true" endfoot="true">
6620 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6623 \begin_layout Standard
6624 continued on next page
6629 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6632 \begin_layout Standard
6638 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6641 \begin_layout Standard
6649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6652 \begin_layout Standard
6660 <cell alignment="center" valignment="top" topline="true" usebox="none">
6663 \begin_layout Standard
6669 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6672 \begin_layout Standard
6680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6683 \begin_layout Standard
6691 <cell alignment="center" valignment="top" topline="true" usebox="none">
6694 \begin_layout Standard
6700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6703 \begin_layout Standard
6711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6714 \begin_layout Standard
6722 <cell alignment="center" valignment="top" topline="true" usebox="none">
6725 \begin_layout Standard
6731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6734 \begin_layout Standard
6742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6745 \begin_layout Standard
6753 <cell alignment="center" valignment="top" topline="true" usebox="none">
6756 \begin_layout Standard
6762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6765 \begin_layout Standard
6773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6776 \begin_layout Standard
6784 <cell alignment="center" valignment="top" topline="true" usebox="none">
6787 \begin_layout Standard
6793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6796 \begin_layout Standard
6804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6807 \begin_layout Standard
6815 <cell alignment="center" valignment="top" topline="true" usebox="none">
6818 \begin_layout Standard
6824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6827 \begin_layout Standard
6835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6838 \begin_layout Standard
6846 <cell alignment="center" valignment="top" topline="true" usebox="none">
6849 \begin_layout Standard
6855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6858 \begin_layout Standard
6866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6869 \begin_layout Standard
6877 <cell alignment="center" valignment="top" topline="true" usebox="none">
6880 \begin_layout Standard
6886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6889 \begin_layout Standard
6897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6900 \begin_layout Standard
6908 <cell alignment="center" valignment="top" topline="true" usebox="none">
6911 \begin_layout Standard
6917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6920 \begin_layout Standard
6928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6931 \begin_layout Standard
6939 <cell alignment="center" valignment="top" topline="true" usebox="none">
6942 \begin_layout Standard
6948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6951 \begin_layout Standard
6959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6962 \begin_layout Standard
6970 <cell alignment="center" valignment="top" topline="true" usebox="none">
6973 \begin_layout Standard
6979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6982 \begin_layout Standard
6990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6993 \begin_layout Standard
7001 <cell alignment="center" valignment="top" topline="true" usebox="none">
7004 \begin_layout Standard
7010 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7013 \begin_layout Standard
7021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7024 \begin_layout Standard
7032 <cell alignment="center" valignment="top" topline="true" usebox="none">
7035 \begin_layout Standard
7041 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7044 \begin_layout Standard
7052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7055 \begin_layout Standard
7063 <cell alignment="center" valignment="top" topline="true" usebox="none">
7066 \begin_layout Standard
7072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7075 \begin_layout Standard
7083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7086 \begin_layout Standard
7095 \begin_layout Standard
7106 <cell alignment="center" valignment="top" topline="true" usebox="none">
7109 \begin_layout Standard
7115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7118 \begin_layout Standard
7126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7129 \begin_layout Standard
7137 <cell alignment="center" valignment="top" topline="true" usebox="none">
7140 \begin_layout Standard
7146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7149 \begin_layout Standard
7157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7160 \begin_layout Standard
7168 <cell alignment="center" valignment="top" topline="true" usebox="none">
7171 \begin_layout Standard
7177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7180 \begin_layout Standard
7188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7191 \begin_layout Standard
7199 <cell alignment="center" valignment="top" topline="true" usebox="none">
7202 \begin_layout Standard
7208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7211 \begin_layout Standard
7219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7222 \begin_layout Standard
7230 <cell alignment="center" valignment="top" topline="true" usebox="none">
7233 \begin_layout Standard
7239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7242 \begin_layout Standard
7250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7253 \begin_layout Standard
7261 <cell alignment="center" valignment="top" topline="true" usebox="none">
7264 \begin_layout Standard
7270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7273 \begin_layout Standard
7281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7284 \begin_layout Standard
7292 <cell alignment="center" valignment="top" topline="true" usebox="none">
7295 \begin_layout Standard
7301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7304 \begin_layout Standard
7312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7315 \begin_layout Standard
7323 <cell alignment="center" valignment="top" topline="true" usebox="none">
7326 \begin_layout Standard
7332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7335 \begin_layout Standard
7343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7346 \begin_layout Standard
7354 <cell alignment="center" valignment="top" topline="true" usebox="none">
7357 \begin_layout Standard
7363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7366 \begin_layout Standard
7374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7377 \begin_layout Standard
7385 <cell alignment="center" valignment="top" topline="true" usebox="none">
7388 \begin_layout Standard
7394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7397 \begin_layout Standard
7405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7408 \begin_layout Standard
7416 <cell alignment="center" valignment="top" topline="true" usebox="none">
7419 \begin_layout Standard
7425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7428 \begin_layout Standard
7436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7439 \begin_layout Standard
7447 <cell alignment="center" valignment="top" topline="true" usebox="none">
7450 \begin_layout Standard
7456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7459 \begin_layout Standard
7467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7470 \begin_layout Standard
7478 <cell alignment="center" valignment="top" topline="true" usebox="none">
7481 \begin_layout Standard
7487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7490 \begin_layout Standard
7498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7501 \begin_layout Standard
7509 <cell alignment="center" valignment="top" topline="true" usebox="none">
7512 \begin_layout Standard
7518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7521 \begin_layout Standard
7529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7532 \begin_layout Standard
7540 <cell alignment="center" valignment="top" topline="true" usebox="none">
7543 \begin_layout Standard
7549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7552 \begin_layout Standard
7560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7563 \begin_layout Standard
7571 <cell alignment="center" valignment="top" topline="true" usebox="none">
7574 \begin_layout Standard
7580 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7583 \begin_layout Standard
7590 <row bottomline="true">
7591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7594 \begin_layout Standard
7602 <cell alignment="center" valignment="top" topline="true" usebox="none">
7605 \begin_layout Standard
7611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7614 \begin_layout Standard
7621 <row bottomline="true">
7622 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7625 \begin_layout Standard
7631 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7634 \begin_layout Standard
7640 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7643 \begin_layout Standard
7651 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7654 \begin_layout Standard
7662 <cell alignment="center" valignment="top" topline="true" usebox="none">
7665 \begin_layout Standard
7671 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7674 \begin_layout Standard
7682 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7685 \begin_layout Standard
7693 <cell alignment="center" valignment="top" topline="true" usebox="none">
7696 \begin_layout Standard
7702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7705 \begin_layout Standard
7713 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7716 \begin_layout Standard
7724 <cell alignment="center" valignment="top" topline="true" usebox="none">
7727 \begin_layout Standard
7733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7736 \begin_layout Standard
7744 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7747 \begin_layout Standard
7755 <cell alignment="center" valignment="top" topline="true" usebox="none">
7758 \begin_layout Standard
7764 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7767 \begin_layout Standard
7775 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7778 \begin_layout Standard
7786 <cell alignment="center" valignment="top" topline="true" usebox="none">
7789 \begin_layout Standard
7795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7798 \begin_layout Standard
7806 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7809 \begin_layout Standard
7817 <cell alignment="center" valignment="top" topline="true" usebox="none">
7820 \begin_layout Standard
7826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7829 \begin_layout Standard
7837 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7840 \begin_layout Standard
7848 <cell alignment="center" valignment="top" topline="true" usebox="none">
7851 \begin_layout Standard
7857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7860 \begin_layout Standard
7868 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7871 \begin_layout Standard
7879 <cell alignment="center" valignment="top" topline="true" usebox="none">
7882 \begin_layout Standard
7888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7891 \begin_layout Standard
7899 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7902 \begin_layout Standard
7910 <cell alignment="center" valignment="top" topline="true" usebox="none">
7913 \begin_layout Standard
7919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7922 \begin_layout Standard
7930 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7933 \begin_layout Standard
7941 <cell alignment="center" valignment="top" topline="true" usebox="none">
7944 \begin_layout Standard
7950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7953 \begin_layout Standard
7961 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7964 \begin_layout Standard
7972 <cell alignment="center" valignment="top" topline="true" usebox="none">
7975 \begin_layout Standard
7981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7984 \begin_layout Standard
7992 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7995 \begin_layout Standard
8003 <cell alignment="center" valignment="top" topline="true" usebox="none">
8006 \begin_layout Standard
8012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8015 \begin_layout Standard
8023 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8026 \begin_layout Standard
8034 <cell alignment="center" valignment="top" topline="true" usebox="none">
8037 \begin_layout Standard
8043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8046 \begin_layout Standard
8054 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8057 \begin_layout Standard
8065 <cell alignment="center" valignment="top" topline="true" usebox="none">
8068 \begin_layout Standard
8074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8077 \begin_layout Standard
8085 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8088 \begin_layout Standard
8096 <cell alignment="center" valignment="top" topline="true" usebox="none">
8099 \begin_layout Standard
8105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8108 \begin_layout Standard
8116 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8119 \begin_layout Standard
8127 <cell alignment="center" valignment="top" topline="true" usebox="none">
8130 \begin_layout Standard
8136 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8139 \begin_layout Standard
8147 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8150 \begin_layout Standard
8158 <cell alignment="center" valignment="top" topline="true" usebox="none">
8161 \begin_layout Standard
8167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8170 \begin_layout Standard
8178 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8181 \begin_layout Standard
8189 <cell alignment="center" valignment="top" topline="true" usebox="none">
8192 \begin_layout Standard
8198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8201 \begin_layout Standard
8209 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8212 \begin_layout Standard
8220 <cell alignment="center" valignment="top" topline="true" usebox="none">
8223 \begin_layout Standard
8229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8232 \begin_layout Standard
8239 <row bottomline="true">
8240 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8243 \begin_layout Standard
8251 <cell alignment="center" valignment="top" topline="true" usebox="none">
8254 \begin_layout Standard
8260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8263 \begin_layout Standard
8270 <row bottomline="true" endlastfoot="true">
8271 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8274 \begin_layout Standard
8280 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8283 \begin_layout Standard
8289 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8292 \begin_layout Standard
8306 \begin_layout Section
8307 Special Longtable Issues
8308 \begin_inset LatexCommand label
8309 name "sec:Special-Longtable-Issues"
8316 \begin_layout Subsection
8317 Longtable Calculation
8318 \begin_inset LatexCommand index
8319 name "Longtables ! Calculation"
8326 \begin_layout Standard
8327 LaTeX calculates the height of table pages and their page breaks using so
8329 Chunks are pieces of the tables that are at once in LaTeX's memory.
8330 The default value is historically set to only 20 table rows.
8331 If you are using longtables with many pages this may slow down the creation
8333 You can safely increase the chunk size to values of 100-1000 by adding
8334 this command line to your document preamble:
8337 \begin_layout Standard
8342 setcounter{LTchunksize}{100}
8345 \begin_layout Subsection
8346 Floats and Longtables
8347 \begin_inset LatexCommand index
8348 name "Longtables ! Floats"
8355 \begin_layout Standard
8356 There might be problems when a float appears on the same page where a longtable
8358 To avoid such situation, add the command
8364 as ERT before your longtable.
8367 \begin_layout Subsection
8369 \begin_inset LatexCommand index
8370 name "Longtables ! Forced Page Breaks"
8377 \begin_layout Standard
8378 By default tables are only broken between rows.
8379 If you have a cell with multiples lines and want to have a page break within
8380 the cell, insert the new line command
8381 \begin_inset Quotes eld
8393 \begin_inset Quotes erd
8396 as ERT at this point of the cell where it should be broken.
8405 command you have to insert in ERT so many
8406 \begin_inset Quotes eld
8414 \begin_inset Quotes erd
8417 characters like the number of the following table columns.
8422 is the character to separate table cells.
8423 Write in ERT after each
8427 the content of the corresponding following cell and delete the content
8438 command, insert so many
8442 characters like the number of table columns before the current column.
8443 In Table\InsetSpace ~
8445 \begin_inset LatexCommand ref
8446 reference "tab:ForcedPagebreak"
8450 the cell that should be broken is in the second column followed by another
8452 Therefore the following command was inserted in the cell as ERT behind
8454 \begin_inset Quotes eld
8462 \begin_inset Quotes erd
8468 \begin_layout Standard
8480 \begin_layout Standard
8482 \begin_inset Quotes eld
8486 \begin_inset Quotes erd
8489 in the third columns of the row was deleted.
8490 If your footer row of the longtable has for a certain reason no upper line
8491 but you would have a horizontal line where the cell is broken, use this
8495 \begin_layout Standard
8509 \begin_layout Standard
8510 When the cell to be broken is in the last column, the command
8513 \begin_layout Standard
8520 parf\SpecialChar \textcompwordmark{}
8524 \begin_layout Standard
8525 must be inserted as ERT at the beginning of the cell.
8526 This assures that the part of the cell that will be displayed on the new
8527 page appears with the full width.
8530 \begin_layout Standard
8532 \begin_inset Tabular
8533 <lyxtabular version="3" rows="39" columns="3">
8534 <features islongtable="true">
8535 <column alignment="left" valignment="top" leftline="true" width="0cm">
8536 <column alignment="left" valignment="top" rightline="true" width="3cm">
8537 <column alignment="right" valignment="top" rightline="true" width="0pt">
8538 <row endfirsthead="true">
8539 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8542 \begin_layout Standard
8543 \begin_inset Caption
8545 \begin_layout Standard
8546 Table with forced page break in table cell
8547 \begin_inset LatexCommand label
8548 name "tab:ForcedPagebreak"
8556 \begin_layout Standard
8557 Table with forced page break in table cell
8571 \begin_layout Standard
8587 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8590 \begin_layout Standard
8596 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8599 \begin_layout Standard
8606 <row topline="true" bottomline="true" endfirsthead="true">
8607 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8610 \begin_layout Standard
8613 Example Phone List (ignore the names)
8618 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8621 \begin_layout Standard
8627 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8630 \begin_layout Standard
8637 <row topline="true" bottomline="true" endfirsthead="true">
8638 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8641 \begin_layout Standard
8649 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8652 \begin_layout Standard
8658 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8661 \begin_layout Standard
8670 <row bottomline="true" endhead="true">
8671 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8674 \begin_layout Standard
8678 \begin_layout Standard
8682 caption*{Continued table with forced page break in table cell}
8696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8699 \begin_layout Standard
8705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8708 \begin_layout Standard
8715 <row topline="true" bottomline="true" endhead="true">
8716 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8719 \begin_layout Standard
8727 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8730 \begin_layout Standard
8736 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8739 \begin_layout Standard
8746 <row topline="true" bottomline="true" endhead="true">
8747 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8750 \begin_layout Standard
8758 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8761 \begin_layout Standard
8767 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8770 \begin_layout Standard
8779 <row topline="true" bottomline="true" endfoot="true">
8780 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8783 \begin_layout Standard
8784 continued on next page
8789 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8792 \begin_layout Standard
8798 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8801 \begin_layout Standard
8809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8812 \begin_layout Standard
8820 <cell alignment="center" valignment="top" topline="true" usebox="none">
8823 \begin_layout Standard
8829 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8832 \begin_layout Standard
8840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8843 \begin_layout Standard
8851 <cell alignment="center" valignment="top" topline="true" usebox="none">
8854 \begin_layout Standard
8860 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8863 \begin_layout Standard
8871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8874 \begin_layout Standard
8882 <cell alignment="center" valignment="top" topline="true" usebox="none">
8885 \begin_layout Standard
8891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8894 \begin_layout Standard
8902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8905 \begin_layout Standard
8913 <cell alignment="center" valignment="top" topline="true" usebox="none">
8916 \begin_layout Standard
8922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8925 \begin_layout Standard
8933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8936 \begin_layout Standard
8944 <cell alignment="center" valignment="top" topline="true" usebox="none">
8947 \begin_layout Standard
8953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8956 \begin_layout Standard
8964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8967 \begin_layout Standard
8975 <cell alignment="center" valignment="top" topline="true" usebox="none">
8978 \begin_layout Standard
8984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8987 \begin_layout Standard
8995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8998 \begin_layout Standard
9006 <cell alignment="center" valignment="top" topline="true" usebox="none">
9009 \begin_layout Standard
9015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9018 \begin_layout Standard
9026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9029 \begin_layout Standard
9037 <cell alignment="center" valignment="top" topline="true" usebox="none">
9040 \begin_layout Standard
9046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9049 \begin_layout Standard
9057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9060 \begin_layout Standard
9068 <cell alignment="center" valignment="top" topline="true" usebox="none">
9071 \begin_layout Standard
9077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9080 \begin_layout Standard
9088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9091 \begin_layout Standard
9099 <cell alignment="center" valignment="top" topline="true" usebox="none">
9102 \begin_layout Standard
9108 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9111 \begin_layout Standard
9119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9122 \begin_layout Standard
9130 <cell alignment="center" valignment="top" topline="true" usebox="none">
9133 \begin_layout Standard
9139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9142 \begin_layout Standard
9150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9153 \begin_layout Standard
9161 <cell alignment="center" valignment="top" topline="true" usebox="none">
9164 \begin_layout Standard
9170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9173 \begin_layout Standard
9181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9184 \begin_layout Standard
9192 <cell alignment="center" valignment="top" topline="true" usebox="none">
9195 \begin_layout Standard
9201 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9204 \begin_layout Standard
9212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9215 \begin_layout Standard
9223 <cell alignment="center" valignment="top" topline="true" usebox="none">
9226 \begin_layout Standard
9232 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9235 \begin_layout Standard
9243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9246 \begin_layout Standard
9254 <cell alignment="center" valignment="top" topline="true" usebox="none">
9257 \begin_layout Standard
9263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9266 \begin_layout Standard
9274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9277 \begin_layout Standard
9285 <cell alignment="center" valignment="top" topline="true" usebox="none">
9288 \begin_layout Standard
9294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9297 \begin_layout Standard
9305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9308 \begin_layout Standard
9316 <cell alignment="center" valignment="top" topline="true" usebox="none">
9319 \begin_layout Standard
9325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9328 \begin_layout Standard
9336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9339 \begin_layout Standard
9347 <cell alignment="center" valignment="top" topline="true" usebox="none">
9350 \begin_layout Standard
9356 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9359 \begin_layout Standard
9367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9370 \begin_layout Standard
9378 <cell alignment="center" valignment="top" topline="true" usebox="none">
9381 \begin_layout Standard
9387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9390 \begin_layout Standard
9398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9401 \begin_layout Standard
9409 <cell alignment="center" valignment="top" topline="true" usebox="none">
9412 \begin_layout Standard
9418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9421 \begin_layout Standard
9429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9432 \begin_layout Standard
9440 <cell alignment="center" valignment="top" topline="true" usebox="none">
9443 \begin_layout Standard
9449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9452 \begin_layout Standard
9460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9463 \begin_layout Standard
9471 <cell alignment="center" valignment="top" topline="true" usebox="none">
9474 \begin_layout Standard
9480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9483 \begin_layout Standard
9491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9494 \begin_layout Standard
9502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9505 \begin_layout Standard
9507 Fürst von Montecompatri, 11.
9508 Fürst von Sulmona und Vivaro, 10.
9509 Fürst von Rossano, 5.
9510 Herzog von Canemorte, 11.
9511 Herzog von Palombara, 5.
9512 Herzog von Castelchiodato,
9516 \begin_layout Standard
9525 \begin_layout Standard
9533 Herzog von Poggionativo, 11.
9534 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9535 Graf von Valinfreda, 11.
9536 Baron von Cropalati, 11.
9537 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9542 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9545 \begin_layout Standard
9553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9556 \begin_layout Standard
9564 <cell alignment="center" valignment="top" topline="true" usebox="none">
9567 \begin_layout Standard
9573 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9576 \begin_layout Standard
9584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9587 \begin_layout Standard
9595 <cell alignment="center" valignment="top" topline="true" usebox="none">
9598 \begin_layout Standard
9604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9607 \begin_layout Standard
9615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9618 \begin_layout Standard
9626 <cell alignment="center" valignment="top" topline="true" usebox="none">
9629 \begin_layout Standard
9635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9638 \begin_layout Standard
9646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9649 \begin_layout Standard
9657 <cell alignment="center" valignment="top" topline="true" usebox="none">
9660 \begin_layout Standard
9666 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9669 \begin_layout Standard
9677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9680 \begin_layout Standard
9688 <cell alignment="center" valignment="top" topline="true" usebox="none">
9691 \begin_layout Standard
9697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9700 \begin_layout Standard
9708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9711 \begin_layout Standard
9719 <cell alignment="center" valignment="top" topline="true" usebox="none">
9722 \begin_layout Standard
9728 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9731 \begin_layout Standard
9739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9742 \begin_layout Standard
9750 <cell alignment="center" valignment="top" topline="true" usebox="none">
9753 \begin_layout Standard
9759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9762 \begin_layout Standard
9769 <row bottomline="true">
9770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9773 \begin_layout Standard
9781 <cell alignment="center" valignment="top" topline="true" usebox="none">
9784 \begin_layout Standard
9790 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9793 \begin_layout Standard
9800 <row endlastfoot="true">
9801 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9804 \begin_layout Standard
9810 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9813 \begin_layout Standard
9819 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9822 \begin_layout Standard
9836 \begin_layout Section
9837 Multiple Lines Columns and Rows
9840 \begin_layout Subsection
9841 Multiple Lines in Table Cells
9842 \begin_inset LatexCommand label
9843 name "sub:Multiple-Lines-in"
9848 \begin_inset LatexCommand index
9849 name "Multiple Lines in Table Cells"
9854 \begin_inset LatexCommand index
9855 name "Table ! Linebreaks"
9862 \begin_layout Standard
9864 \begin_inset Float table
9870 \begin_layout Standard
9871 \begin_inset Caption
9873 \begin_layout Standard
9874 \begin_inset LatexCommand label
9875 name "tab:Table-with-multiple"
9879 Table with multiple lines in cells
9887 \begin_layout Standard
9889 \begin_inset Tabular
9890 <lyxtabular version="3" rows="3" columns="3">
9892 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9893 <column alignment="center" valignment="middle" leftline="true" width="0">
9894 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
9895 <row topline="true">
9896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9899 \begin_layout Standard
9904 \begin_layout Standard
9918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9921 \begin_layout Standard
9927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9930 \begin_layout Standard
9937 <row topline="true">
9938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9941 \begin_layout Standard
9947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9950 \begin_layout Standard
9956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9959 \begin_layout Standard
9966 <row topline="true" bottomline="true">
9967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9970 \begin_layout Standard
9976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9979 \begin_layout Standard
9985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9988 \begin_layout Standard
10007 \begin_layout Standard
10008 Adjusting a fixed width for a column, enables to enter text as a paragraph
10009 with multiple lines and hyphenations.
10012 \begin_layout Standard
10013 To produce Table\InsetSpace ~
10015 \begin_inset LatexCommand ref
10016 reference "tab:Table-with-multiple"
10020 , create a 3×3 table, mark the first cell and right-click on it.
10021 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10022 cm and choose centered
10023 for the vertical and horizontal alignment.
10024 The vertical alignment is used for all cells of the row.
10025 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10026 cm, only one line will appear.
10027 To get two lines, we add a line break with the command
10030 \begin_layout Standard
10038 \begin_layout Standard
10040 If the text is wider than the set cell width it will automatically be broken
10044 \begin_layout Standard
10045 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10046 by LaTeX if it is the first entry.
10047 Therefore you need to insert something, to make the word not being the
10048 first entry: Add the command
10051 \begin_layout Standard
10059 \begin_layout Standard
10060 in ERT before the word.
10061 As the space is zero, it doesn't change the output.
10064 \begin_inset LatexCommand ref
10065 reference "tab:Table-with-and"
10072 \begin_layout Standard
10073 \begin_inset Float table
10079 \begin_layout Standard
10080 \begin_inset Caption
10082 \begin_layout Standard
10083 \begin_inset LatexCommand label
10084 name "tab:Table-with-and"
10088 Table with and without hyphenation
10096 \begin_layout Standard
10100 \begin_inset Tabular
10101 <lyxtabular version="3" rows="3" columns="3">
10103 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10104 <column alignment="center" valignment="middle" leftline="true" width="0">
10105 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10106 <row topline="true">
10107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10110 \begin_layout Standard
10111 verylongtablecellword
10116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10119 \begin_layout Standard
10125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10128 \begin_layout Standard
10135 <row topline="true">
10136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10139 \begin_layout Standard
10145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10148 \begin_layout Standard
10154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10157 \begin_layout Standard
10164 <row topline="true" bottomline="true">
10165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10168 \begin_layout Standard
10174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10177 \begin_layout Standard
10183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10186 \begin_layout Standard
10200 \begin_inset Tabular
10201 <lyxtabular version="3" rows="3" columns="3">
10203 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10204 <column alignment="center" valignment="middle" leftline="true" width="0">
10205 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10206 <row topline="true">
10207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10210 \begin_layout Standard
10214 \begin_layout Standard
10223 verylongtablecellword
10228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10231 \begin_layout Standard
10237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10240 \begin_layout Standard
10247 <row topline="true">
10248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10251 \begin_layout Standard
10257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10260 \begin_layout Standard
10266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10269 \begin_layout Standard
10276 <row topline="true" bottomline="true">
10277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10280 \begin_layout Standard
10286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10289 \begin_layout Standard
10295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10298 \begin_layout Standard
10319 \begin_layout Standard
10325 \begin_layout Subsection
10327 \begin_inset LatexCommand label
10328 name "sub:Multicolumns"
10333 \begin_inset LatexCommand index
10334 name "Multicolumns"
10339 \begin_inset LatexCommand index
10340 name "Table ! Multicolumns"
10347 \begin_layout Subsubsection
10351 \begin_layout Standard
10352 To span a cell over multiple columns, mark as much cells within a line that
10353 should be one spanned cell and use either the table-toolbar button
10354 \begin_inset Graphics
10355 filename ../images/tabular-feature_multicolumn.xpm
10362 Edit\SpecialChar \menuseparator
10363 Table\SpecialChar \menuseparator
10366 , or right click on the marked cells and choose multicolumn in the appearing
10367 table dialog under the tab
10374 \begin_layout Standard
10375 Multicolumns have there own cell settings.
10376 That means changing cell borders, cell alignment, and the width only affects
10378 Here is an example table with a multicolumn cell in the first row and one
10379 in the last row without the upper border:
10382 \begin_layout Standard
10384 \begin_inset Tabular
10385 <lyxtabular version="3" rows="3" columns="4">
10386 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10387 <column alignment="center" valignment="top" leftline="true" width="0pt">
10388 <column alignment="center" valignment="middle" leftline="true" width="0">
10389 <column alignment="center" valignment="top" leftline="true" width="0in">
10390 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10391 <row topline="true" bottomline="true">
10392 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10395 \begin_layout Standard
10401 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10404 \begin_layout Standard
10410 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10413 \begin_layout Standard
10419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10422 \begin_layout Standard
10429 <row topline="true">
10430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10433 \begin_layout Standard
10448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10451 \begin_layout Standard
10457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10460 \begin_layout Standard
10466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10469 \begin_layout Standard
10476 <row topline="true" bottomline="true">
10477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10480 \begin_layout Standard
10486 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10489 \begin_layout Standard
10495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10498 \begin_layout Standard
10504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10507 \begin_layout Standard
10521 \begin_layout Subsubsection
10522 Multicolumn Calculations
10523 \begin_inset LatexCommand label
10524 name "sub:Multicolumn-Calculations"
10529 \begin_inset LatexCommand index
10530 name "Multicolumns ! Calculations"
10537 \begin_layout Standard
10538 LyX supports multicolumns directly, but we have to take notice of the cell
10539 width of the columns spanned by the multicolumn cell.
10542 \begin_layout Standard
10543 \begin_inset Float table
10548 \begin_layout Standard
10549 \begin_inset Caption
10551 \begin_layout Standard
10552 \begin_inset LatexCommand label
10553 name "tab:Table-with-centered"
10557 Table with centered multicolumn text above two columns that have exactly
10558 half the width of the multicolumn cell
10559 \begin_inset OptArg
10562 \begin_layout Standard
10563 Perfect multicolumn table
10576 \begin_layout Standard
10578 \begin_inset Tabular
10579 <lyxtabular version="3" rows="3" columns="3">
10581 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
10582 <column alignment="center" valignment="middle" leftline="true" width="0">
10583 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10584 <row topline="true">
10585 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
10588 \begin_layout Standard
10589 multiple lines multicolumn
10594 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10597 \begin_layout Standard
10603 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10606 \begin_layout Standard
10613 <row topline="true">
10614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10617 \begin_layout Standard
10623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10626 \begin_layout Standard
10632 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10635 \begin_layout Standard
10642 <row topline="true" bottomline="true">
10643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10646 \begin_layout Standard
10652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10655 \begin_layout Standard
10661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10664 \begin_layout Standard
10683 \begin_layout Standard
10684 To create for example Table\InsetSpace ~
10686 \begin_inset LatexCommand ref
10687 reference "tab:Table-with-centered"
10691 , mark the first two cells in the first row of a 3×3 table and right-click
10693 Now choose for this cell
10701 and a width of 2.5\InsetSpace \thinspace{}
10702 cm in the table dialog.
10703 The spanned columns should have exactly half the width of the multicolumn
10704 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10705 cm for the first column.
10706 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10708 width - width of first column).
10709 This was done for Table\InsetSpace ~
10711 \begin_inset LatexCommand ref
10712 reference "tab:Table-without-half"
10719 \begin_layout Standard
10720 \begin_inset Float table
10725 \begin_layout Standard
10726 \begin_inset Caption
10728 \begin_layout Standard
10729 \begin_inset LatexCommand label
10730 name "tab:Table-without-half"
10734 Table where the spanned table columns have not exactly half the width of
10735 the multicolumn cell
10736 \begin_inset OptArg
10739 \begin_layout Standard
10740 Imperfect multicolumn table
10753 \begin_layout Standard
10755 \begin_inset Tabular
10756 <lyxtabular version="3" rows="3" columns="3">
10758 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10759 <column alignment="center" valignment="top" leftline="true" width="0">
10760 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10761 <row topline="true" bottomline="true">
10762 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10765 \begin_layout Standard
10766 multiple lines multicolumn
10771 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10774 \begin_layout Standard
10780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10783 \begin_layout Standard
10790 <row topline="true">
10791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10794 \begin_layout Standard
10800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10803 \begin_layout Standard
10809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10812 \begin_layout Standard
10819 <row topline="true" bottomline="true">
10820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10823 \begin_layout Standard
10829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10832 \begin_layout Standard
10838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10841 \begin_layout Standard
10860 \begin_layout Standard
10861 You can see that the first column has not the half width of the multicolumn
10862 cell, it is a bit bigger.
10863 The reason is that the given width of a cell
10864 \begin_inset Formula $W_{g}$
10867 is not its total width
10868 \begin_inset Formula $W_{\mathrm{tot}}$
10871 because a cell is always a bit larger than its given width.
10872 Appendix\InsetSpace ~
10874 \begin_inset LatexCommand eqref
10875 reference "cha:Explanation-of-Equation"
10879 explains it in detail.
10882 \begin_layout Standard
10883 The needed given width
10884 \begin_inset Formula $W_{g\, n}$
10891 columns are spanned can be calculated, so that each column has a total
10893 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10897 \begin_inset Formula \begin{equation}
10898 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10905 \begin_layout Standard
10906 In our case we have
10907 \begin_inset Formula $n=2$
10911 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10914 cm and the default values for the lengths, so that equation
10915 \begin_inset LatexCommand ref
10921 \begin_inset Formula \begin{equation}
10922 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10929 \begin_layout Standard
10930 To enable calculations in LaTeX, the LaTeX-package
10934 must be loaded with the document preamble line
10935 \begin_inset LatexCommand index
10936 name "LaTeX-packages ! calc"
10943 \begin_layout Standard
10951 \begin_layout Standard
10952 LyX does not allow to calculate lengths in the width-field of the table
10954 Therefore you have to format the column by inserting a LaTeX-argument in
10956 Here is an overview about the arguments:
10959 \begin_layout Itemize
10964 creates cell with a fixed width, its text is vertically top-aligned
10967 \begin_layout Itemize
10972 creates cell with a fixed width, its text is vertically centered
10975 \begin_layout Itemize
10980 creates cell with a fixed width, its text is vertically bottom-aligned
10983 \begin_layout Standard
10984 By entering a LaTeX-argument, all cell settings set in the table dialog
10988 \begin_layout Standard
10989 \begin_inset Note Greyedout
10992 \begin_layout Standard
10997 Due to a bug, LyX shows the overwritten settings anyway.
11005 \begin_layout Standard
11006 As the text should be horizontally centered, the command
11013 You can now enter the following LaTeX-argument for the first spanned column:
11016 \begin_layout Standard
11021 centering}m{1.25cm-6.2pt}
11024 \begin_layout Standard
11029 means, that the commands inside the braces are applied before the cell
11033 \begin_layout Standard
11034 Although we have chosen centered alignment for the text of the multicolumn
11035 cell, it is still left aligned.
11036 This is because LyX only applies the alignment to single columns.
11037 So we have to use for the multicolumn the LaTeX-argument
11040 \begin_layout Standard
11048 \begin_layout Subsection
11050 \begin_inset LatexCommand index
11056 \begin_inset LatexCommand index
11057 name "Table ! Multirows"
11062 \begin_inset LatexCommand index
11063 name "LaTeX-packages ! multirow"
11070 \begin_layout Standard
11071 In contrary to multicolumns multirows are not yet supported by LyX so a
11072 bit of ERT needs to be used.
11073 To use multirows load the LaTeX-package
11077 in your document preamble with the command
11080 \begin_layout Standard
11085 usepackage{multirow}
11088 \begin_layout Standard
11089 Multirows are created with the command
11092 \begin_layout Standard
11097 multirow{number of rows}{cell width}{cell entry}
11100 \begin_layout Standard
11101 To create the following table:
11104 \begin_layout Standard
11109 \begin_layout Standard
11123 \begin_inset Tabular
11124 <lyxtabular version="3" rows="3" columns="3">
11126 <column alignment="center" valignment="top" leftline="true" width="0">
11127 <column alignment="center" valignment="top" leftline="true" width="0">
11128 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11129 <row topline="true">
11130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11133 \begin_layout Standard
11139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11142 \begin_layout Standard
11148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11151 \begin_layout Standard
11158 <row topline="true">
11159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11162 \begin_layout Standard
11166 \begin_layout Standard
11170 multirow{2}{2.5cm}{
11179 \begin_layout Standard
11191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11194 \begin_layout Standard
11200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11203 \begin_layout Standard
11210 <row topline="true" bottomline="true">
11211 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11214 \begin_layout Standard
11220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11223 \begin_layout Standard
11229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11232 \begin_layout Standard
11247 \begin_layout Standard
11263 \begin_layout Standard
11264 create a 3×3 table.
11265 To get rid of the line above the last cell in the first column, the cell
11266 is marked as multicolumn and the upper border is unset.
11267 The multirow is now created in the second row of the first column by inserting
11271 \begin_layout Standard
11276 multirow{2}{2.5cm}{
11279 \begin_layout Standard
11281 According to the command parameters the multirow spans now two rows and
11282 has a width of 2.5\InsetSpace \thinspace{}
11284 The content of the multirow cell follows outside the ERT box and the command
11285 is finished with a right brace
11289 in another ERT-box behind the text.
11292 \begin_layout Standard
11299 left-aligns its content by default.
11300 To override the default, renew the command
11309 \begin_layout Standard
11321 \begin_layout Standard
11322 in ERT in the document preamble.
11323 Then all entries of multirow cells in the document are centered.
11324 If centering is only needed for several tables, you can renew the command
11325 in an ERT box just before the table instead of the preamble.
11326 If the text should be right-aligned, replace
11339 To return to left-alignment
11348 \begin_layout Section
11350 \begin_inset LatexCommand label
11351 name "sec:Formal-Tables"
11356 \begin_inset LatexCommand index
11357 name "Table ! Formal"
11364 \begin_layout Standard
11365 Tables are often typeset in books similar to Table\InsetSpace ~
11367 \begin_inset LatexCommand ref
11368 reference "tab:Example-booktabs-table"
11373 This kind of tables is called
11374 \begin_inset Quotes eld
11382 \begin_inset Quotes erd
11386 To make a table a formal table use the option
11394 tab of the table dialog.
11397 \begin_layout Standard
11398 \begin_inset Float table
11404 \begin_layout Standard
11405 \begin_inset Caption
11407 \begin_layout Standard
11408 \begin_inset LatexCommand label
11409 name "tab:Example-booktabs-table"
11413 Example booktabs-table
11421 \begin_layout Standard
11423 \begin_inset Tabular
11424 <lyxtabular version="3" rows="8" columns="4">
11425 <features booktabs="true">
11426 <column alignment="center" valignment="top" rightline="true" width="0">
11427 <column alignment="center" valignment="top" width="0">
11428 <column alignment="center" valignment="top" width="0">
11429 <column alignment="center" valignment="top" width="0">
11430 <row topline="true">
11431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11434 \begin_layout Standard
11440 <cell alignment="center" valignment="top" topline="true" usebox="none">
11443 \begin_layout Standard
11445 \begin_inset Formula $\,$
11453 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11456 \begin_layout Standard
11458 \begin_inset Formula $\,$
11466 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11469 \begin_layout Standard
11477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11480 \begin_layout Standard
11484 \begin_layout Standard
11497 \begin_layout Standard
11506 Detector thickness [µm]
11511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11514 \begin_layout Standard
11520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11523 \begin_layout Standard
11529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11532 \begin_layout Standard
11539 <row topline="true">
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" usebox="none">
11552 \begin_layout Standard
11558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11561 \begin_layout Standard
11567 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11570 \begin_layout Standard
11577 <row topspace="default">
11578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11581 \begin_layout Standard
11582 Spatial resolution [µm]
11587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11590 \begin_layout Standard
11596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11599 \begin_layout Standard
11605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11608 \begin_layout Standard
11615 <row topspace="default">
11616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11619 \begin_layout Standard
11621 \begin_inset Formula $f_{\mathrm{max}}$
11629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11632 \begin_layout Standard
11638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11641 \begin_layout Standard
11647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11650 \begin_layout Standard
11657 <row topspace="default">
11658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11661 \begin_layout Standard
11665 \begin_layout Standard
11669 cmidrule(l{10pt}){1-1}
11674 LSF-spatial resolution
11679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11682 \begin_layout Standard
11688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11691 \begin_layout Standard
11697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11700 \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" usebox="none">
11720 \begin_layout Standard
11726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11729 \begin_layout Standard
11735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11738 \begin_layout Standard
11745 <row bottomline="true">
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" usebox="none">
11758 \begin_layout Standard
11764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11767 \begin_layout Standard
11773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11776 \begin_layout Standard
11795 \begin_layout Standard
11796 Spaces to table rows can be added using the
11800 tab of the table dialog as described in section\InsetSpace ~
11802 \begin_inset LatexCommand ref
11803 reference "sub:Row-Spacing"
11810 \begin_layout Standard
11811 In contrary to normal tables, formal tables have no vertical table lines.
11812 The horizontal table lines can be set like for normal tables but they appear
11813 with different width in the output:
11815 The first and the last table line have
11816 a default width of 0.08\InsetSpace \thinspace{}
11817 em while the other lines have a default width of
11818 0.05\InsetSpace \thinspace{}
11822 \begin_layout Standard
11823 The default widths can be changed with the following preamble lines
11826 \begin_layout Standard
11846 \begin_layout Standard
11847 This example is for the first line, the so called
11852 If you want to change the width for the last line, replace
11861 To change the width for the other lines replace
11870 You can use all units listed in appendix\InsetSpace ~
11872 \begin_inset LatexCommand ref
11873 reference "cha:Units-available-in"
11880 \begin_layout Standard
11881 Lines that don't span over all table columns can be created by setting a
11882 table line for multicolumn cells.
11883 LyX will then internally use the command
11889 to create this line.
11893 \begin_layout Standard
11898 cmidrule[width](trim){startcol-endcol}
11901 \begin_layout Standard
11908 are are currently not supported by LyX so you have to use ERT to be able
11916 s can manually be created by inserting the command as ERT as first cell
11917 entry of the first cell of a row.
11918 The line is then drawn in the output above the current row.
11921 \begin_layout Standard
11922 The default for the width is 0.03\InsetSpace \thinspace{}
11924 Startcol is the number of the column where the line starts and endcol the
11925 column number where the line ends.
11926 The endcol always needs to be specified, also when the line should span
11928 The optional parameter trim could be either
11936 where the trimwidth is also optional.
11937 Using for example the parameter
11941 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11943 If you don't specify the trimwidth the lines are trimmed by the default
11944 of 0.5\InsetSpace \thinspace{}
11948 \begin_layout Standard
11949 \begin_inset VSpace bigskip
11954 \begin_inset LatexCommand ref
11955 reference "tab:Example-booktabs-table"
11959 was created using the commands
11962 \begin_layout Standard
11972 \begin_layout Standard
11973 at the beginning of the in the second row and
11976 \begin_layout Standard
11981 cmidrule(l{10pt}){1-1}
11984 \begin_layout Standard
11988 \begin_layout Standard
11989 \begin_inset VSpace bigskip
11995 \begin_layout Standard
11996 You might want to have overlapping
12002 s like in Table\InsetSpace ~
12004 \begin_inset LatexCommand ref
12005 reference "tab:Special-booktabs-table"
12010 This can be achieved with the ERT command
12013 \begin_layout Standard
12021 \begin_layout Standard
12022 The command that was used for the second row of Table\InsetSpace ~
12024 \begin_inset LatexCommand ref
12025 reference "tab:Special-booktabs-table"
12032 \begin_layout Standard
12046 \begin_layout Standard
12047 The command for the sixth row is
12050 \begin_layout Standard
12062 \begin_layout Standard
12063 \begin_inset VSpace bigskip
12069 \begin_layout Standard
12070 If you are anyway not satisfied with the border line spacing, you can use
12071 the following command to produce lines that span over all table columns
12076 \begin_layout Standard
12081 specialrule{width}{space above}{space below}
12084 \begin_layout Standard
12085 For more informations about these specialties, we refer to the manual of
12091 \begin_inset LatexCommand cite
12097 \begin_inset LatexCommand index
12098 name "LaTeX-packages ! booktabs"
12105 \begin_layout Standard
12106 \begin_inset Float table
12112 \begin_layout Standard
12113 \begin_inset Caption
12115 \begin_layout Standard
12116 \begin_inset LatexCommand label
12117 name "tab:Special-booktabs-table"
12121 Special booktabs-table
12129 \begin_layout Standard
12131 \begin_inset Tabular
12132 <lyxtabular version="3" rows="8" columns="4">
12133 <features booktabs="true">
12134 <column alignment="center" valignment="top" width="0">
12135 <column alignment="center" valignment="top" width="0">
12136 <column alignment="center" valignment="top" width="0">
12137 <column alignment="center" valignment="top" width="0">
12138 <row topline="true">
12139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12142 \begin_layout Standard
12148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12151 \begin_layout Standard
12152 Medipix\InsetSpace \thinspace{}
12158 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12161 \begin_layout Standard
12162 Medipix\InsetSpace \thinspace{}
12168 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12171 \begin_layout Standard
12179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12182 \begin_layout Standard
12186 \begin_layout Standard
12199 \begin_layout Standard
12212 \begin_layout Standard
12225 \begin_layout Standard
12234 Detector thickness [µm]
12239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12242 \begin_layout Standard
12248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12251 \begin_layout Standard
12257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12260 \begin_layout Standard
12267 <row topline="true">
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" usebox="none">
12280 \begin_layout Standard
12286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12289 \begin_layout Standard
12295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12298 \begin_layout Standard
12305 <row topspace="default">
12306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12309 \begin_layout Standard
12310 Spatial resolution [µm]
12315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12318 \begin_layout Standard
12324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12327 \begin_layout Standard
12333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12336 \begin_layout Standard
12343 <row topspace="default">
12344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12347 \begin_layout Standard
12349 \begin_inset Formula $f_{\mathrm{max}}$
12357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12360 \begin_layout Standard
12366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12369 \begin_layout Standard
12375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12378 \begin_layout Standard
12385 <row topline="true">
12386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12389 \begin_layout Standard
12393 \begin_layout Standard
12406 \begin_layout Standard
12415 LSF-spatial resolution
12420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12423 \begin_layout Standard
12429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12432 \begin_layout Standard
12438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12441 \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" usebox="none">
12461 \begin_layout Standard
12467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12470 \begin_layout Standard
12476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12479 \begin_layout Standard
12486 <row bottomline="true">
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" usebox="none">
12499 \begin_layout Standard
12505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12508 \begin_layout Standard
12514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12517 \begin_layout Standard
12536 \begin_layout Section
12537 Vertical Table Alignment
12538 \begin_inset LatexCommand index
12539 name "Table ! Alignment"
12546 \begin_layout Standard
12547 To align tables vertically in a text line the table must be inside a box.
12548 The box can then be vertically aligned as described in section\InsetSpace ~
12550 \begin_inset LatexCommand ref
12551 reference "sec:Box-Dialog"
12558 \begin_layout Standard
12559 In the following example the tables are inside a minipage
12563 \begin_layout Standard
12564 Minipages are described in section\InsetSpace ~
12566 \begin_inset LatexCommand ref
12567 reference "sec:Minipages"
12576 box that has a width of 15\InsetSpace \thinspace{}
12580 \begin_layout Itemize
12582 \begin_inset Box Frameless
12591 height_special "totalheight"
12594 \begin_layout Standard
12595 \begin_inset Tabular
12596 <lyxtabular version="3" rows="3" columns="3">
12598 <column alignment="center" valignment="top" leftline="true" width="0">
12599 <column alignment="center" valignment="top" leftline="true" width="0">
12600 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12601 <row topline="true">
12602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12605 \begin_layout Standard
12611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12614 \begin_layout Standard
12620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12623 \begin_layout Standard
12630 <row topline="true">
12631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12634 \begin_layout Standard
12640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12643 \begin_layout Standard
12649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12652 \begin_layout Standard
12659 <row topline="true" bottomline="true">
12660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12663 \begin_layout Standard
12669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12672 \begin_layout Standard
12678 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12681 \begin_layout Standard
12701 \begin_layout Standard
12713 \begin_inset Box Frameless
12722 height_special "totalheight"
12725 \begin_layout Standard
12726 \begin_inset Tabular
12727 <lyxtabular version="3" rows="3" columns="3">
12729 <column alignment="center" valignment="top" leftline="true" width="0">
12730 <column alignment="center" valignment="top" leftline="true" width="0">
12731 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12732 <row topline="true">
12733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12736 \begin_layout Standard
12742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12745 \begin_layout Standard
12751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12754 \begin_layout Standard
12761 <row topline="true">
12762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12765 \begin_layout Standard
12771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12774 \begin_layout Standard
12780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12783 \begin_layout Standard
12790 <row topline="true" bottomline="true">
12791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12794 \begin_layout Standard
12800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12803 \begin_layout Standard
12809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12812 \begin_layout Standard
12832 \begin_layout Standard
12842 \begin_layout Itemize
12844 \begin_inset Box Frameless
12853 height_special "totalheight"
12856 \begin_layout Standard
12857 \begin_inset Tabular
12858 <lyxtabular version="3" rows="3" columns="3">
12860 <column alignment="center" valignment="top" leftline="true" width="0">
12861 <column alignment="center" valignment="top" leftline="true" width="0">
12862 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12863 <row topline="true">
12864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12867 \begin_layout Standard
12873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12876 \begin_layout Standard
12882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12885 \begin_layout Standard
12892 <row topline="true">
12893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12896 \begin_layout Standard
12902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12905 \begin_layout Standard
12911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12914 \begin_layout Standard
12921 <row topline="true" bottomline="true">
12922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12925 \begin_layout Standard
12931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12934 \begin_layout Standard
12940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12943 \begin_layout Standard
12962 \begin_layout Itemize
12964 \begin_inset Box Frameless
12973 height_special "totalheight"
12976 \begin_layout Standard
12977 \begin_inset Tabular
12978 <lyxtabular version="3" rows="3" columns="3">
12980 <column alignment="center" valignment="top" leftline="true" width="0">
12981 <column alignment="center" valignment="top" leftline="true" width="0">
12982 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12983 <row topline="true">
12984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12987 \begin_layout Standard
12993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12996 \begin_layout Standard
13002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13005 \begin_layout Standard
13012 <row topline="true">
13013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13016 \begin_layout Standard
13022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13025 \begin_layout Standard
13031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13034 \begin_layout Standard
13041 <row topline="true" bottomline="true">
13042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13045 \begin_layout Standard
13051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13054 \begin_layout Standard
13060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13063 \begin_layout Standard
13083 \begin_layout Standard
13095 \begin_inset Box Frameless
13104 height_special "totalheight"
13107 \begin_layout Standard
13108 \begin_inset Tabular
13109 <lyxtabular version="3" rows="3" columns="3">
13111 <column alignment="center" valignment="top" leftline="true" width="0">
13112 <column alignment="center" valignment="top" leftline="true" width="0">
13113 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13114 <row topline="true">
13115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13118 \begin_layout Standard
13124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13127 \begin_layout Standard
13133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13136 \begin_layout Standard
13143 <row topline="true">
13144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13147 \begin_layout Standard
13153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13156 \begin_layout Standard
13162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13165 \begin_layout Standard
13172 <row topline="true" bottomline="true">
13173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13176 \begin_layout Standard
13182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13185 \begin_layout Standard
13191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13194 \begin_layout Standard
13214 \begin_layout Standard
13224 \begin_layout Standard
13225 As you can see, the content of the first and last table row is not correctly
13226 aligned with the text line where the table is in.
13227 To get this alignment, the minipage box must be set into a raisebox
13231 \begin_layout Standard
13232 Raiseboxes are described in section\InsetSpace ~
13234 \begin_inset LatexCommand ref
13235 reference "sub:Vertical-Alignment"
13245 In the example above the second table in the first item is aligned using
13249 \begin_layout Standard
13259 \begin_layout Standard
13261 Behind the box the closing brace
13265 is inserted as ERT.
13266 For the second table in the last item the command
13269 \begin_layout Standard
13279 \begin_layout Standard
13283 \begin_layout Standard
13284 \begin_inset Note Greyedout
13287 \begin_layout Standard
13292 The alignment of the table row content to the surrounding text line is
13294 The needed factor of the
13300 command for this alignment depends on the document font, the font size,
13301 and the table line thickness.
13309 \begin_layout Section
13311 \begin_inset LatexCommand label
13312 name "sec:Colored-Tables"
13317 \begin_inset LatexCommand index
13318 name "Table ! Color"
13325 \begin_layout Subsection
13327 \begin_inset LatexCommand index
13328 name "Table Color ! for Cells"
13333 \begin_inset LatexCommand index
13334 name "Color ! for Table Cells"
13341 \begin_layout Standard
13342 \begin_inset Float table
13348 \begin_layout Standard
13349 \begin_inset Caption
13351 \begin_layout Standard
13352 \begin_inset LatexCommand label
13353 name "tab:Table-colored-without"
13357 Table colored without using the package
13362 \begin_inset OptArg
13365 \begin_layout Standard
13366 Table without colortbl
13379 \begin_layout Standard
13381 \begin_inset Tabular
13382 <lyxtabular version="3" rows="3" columns="3">
13384 <column alignment="center" valignment="top" leftline="true" width="0">
13385 <column alignment="center" valignment="top" leftline="true" width="0">
13386 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13387 <row topline="true">
13388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13391 \begin_layout Standard
13399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13402 \begin_layout Standard
13410 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13413 \begin_layout Standard
13422 <row topline="true">
13423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13426 \begin_layout Standard
13434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13437 \begin_layout Standard
13445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13448 \begin_layout Standard
13457 <row topline="true" bottomline="true">
13458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13461 \begin_layout Standard
13469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13472 \begin_layout Standard
13480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13483 \begin_layout Standard
13504 \begin_layout Standard
13505 If you only need colored text, mark the cells and choose a color in the
13508 Edit\SpecialChar \menuseparator
13513 This was used to create Table\InsetSpace ~
13515 \begin_inset LatexCommand ref
13516 reference "tab:Table-colored-without"
13521 In any other case you have to use the LaTeX-package
13526 \begin_inset LatexCommand index
13527 name "LaTeX-packages ! colortbl"
13534 \begin_layout Standard
13535 To create colored tables,
13539 must be loaded in the preamble with the line
13542 \begin_layout Standard
13547 usepackage{colortbl}
13550 \begin_layout Standard
13551 The color of a column is adjusted with the command
13554 \begin_layout Standard
13559 columncolor{name of color}
13562 \begin_layout Standard
13568 More about the command
13572 is described in section\InsetSpace ~
13574 \begin_inset LatexCommand ref
13575 reference "sub:Multicolumn-Calculations"
13582 \begin_layout Standard
13583 The following color names are predefined:
13586 \begin_layout Standard
13620 \begin_layout Standard
13621 \begin_inset VSpace medskip
13627 \begin_layout Standard
13628 You can also define your own color with the command
13631 \begin_layout Standard
13636 def\SpecialChar \textcompwordmark{}
13637 inecolor{color name}{color model}{color values}
13640 \begin_layout Standard
13641 The color model can be
13644 \begin_layout Labeling
13645 \labelwidthstring 00.00.0000
13646 cmyk: cyan, magenta, yellow, black
13649 \begin_layout Labeling
13650 \labelwidthstring 00.00.0000
13651 rgb: red, green blue
13654 \begin_layout Labeling
13655 \labelwidthstring 00.00.0000
13659 \begin_layout Standard
13660 and the color values are comma separated numbers between 0 and 1 describing
13661 the factor for the corresponding color of the color model.
13664 \begin_layout Standard
13665 You can e.\InsetSpace \thinspace{}
13671 " in the preamble with
13674 \begin_layout Standard
13679 def\SpecialChar \textcompwordmark{}
13680 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13683 \begin_layout Standard
13691 \begin_layout Standard
13696 def\SpecialChar \textcompwordmark{}
13697 inecolor{lightgray}{gray}{0.8}
13700 \begin_layout Standard
13701 \begin_inset VSpace medskip
13707 \begin_layout Standard
13708 Lines are colored with the command
13711 \begin_layout Standard
13716 rowcolor{name of color}
13719 \begin_layout Standard
13720 and cells are colored with the command
13723 \begin_layout Standard
13728 cellcolor{name of color}
13731 \begin_layout Standard
13732 Both commands are inserted at the beginning of a cell as ERT.
13735 \begin_layout Standard
13736 To color characters in the table, mark the cells and use the LyX menu
13738 Edit\SpecialChar \menuseparator
13743 If a cell contains ERT mark only the characters, otherwise the colored
13744 ERT will cause LaTeX-errors.
13747 \begin_layout Standard
13748 \begin_inset Note Greyedout
13751 \begin_layout Standard
13756 Not all DVI-viewers are able to display self-defined colors.
13764 \begin_layout Standard
13765 \begin_inset VSpace bigskip
13771 \begin_layout Standard
13772 To create Table\InsetSpace ~
13774 \begin_inset LatexCommand ref
13775 reference "tab:Table-colored-using"
13779 do the following: The color of the first column should be
13787 \begin_layout Standard
13792 columncolor{darkgreen}
13797 \begin_layout Standard
13798 as LaTeX-argument for this column.
13799 The first row should be blue, therefore the ERT command
13802 \begin_layout Standard
13810 \begin_layout Standard
13811 is inserted to the first cell of this row.
13812 Note that this overwrites the column color for the first cell.
13813 The last cell of the last row is colored magenta by inserting the ERT command
13816 \begin_layout Standard
13824 \begin_layout Standard
13825 The characters could now be colored using the menu
13827 Edit\SpecialChar \menuseparator
13834 \begin_layout Standard
13835 \begin_inset Float table
13841 \begin_layout Standard
13842 \begin_inset Caption
13844 \begin_layout Standard
13845 \begin_inset LatexCommand label
13846 name "tab:Table-colored-using"
13850 Table colored using the package
13855 \begin_inset OptArg
13858 \begin_layout Standard
13859 Table with colortbl
13872 \begin_layout Standard
13874 \begin_inset Tabular
13875 <lyxtabular version="3" rows="3" columns="3">
13877 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
13878 <column alignment="center" valignment="top" width="0">
13879 <column alignment="center" valignment="top" width="0">
13881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13884 \begin_layout Standard
13888 \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
13963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13966 \begin_layout Standard
13974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13977 \begin_layout Standard
13985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13988 \begin_layout Standard
13992 \begin_layout Standard
14021 \begin_layout Subsection
14023 \begin_inset LatexCommand index
14024 name "Table Color ! for Lines"
14029 \begin_inset LatexCommand index
14030 name "Color ! for Table Lines"
14037 \begin_layout Standard
14038 As described in section\InsetSpace ~
14040 \begin_inset LatexCommand ref
14041 reference "sub:Line-Thickness"
14045 , the line thickness for all lines in a table can be adjusted with the length
14053 It is set to 1.5\InsetSpace \thinspace{}
14054 pt for all tables of this section.
14058 \begin_layout Standard
14064 arrayrulewidth}{1.5pt}
14072 \begin_layout Standard
14073 To color vertical lines for example with green, create the following column
14074 format in the document preamble, according to the description in section\InsetSpace ~
14076 \begin_inset LatexCommand ref
14077 reference "sub:Customized-Format"
14084 \begin_layout Standard
14089 newcolumntype{W}{!{
14096 \begin_layout Standard
14097 For Table\InsetSpace ~
14099 \begin_inset LatexCommand ref
14100 reference "tab:Table-with-vertical-colored"
14107 \begin_layout Standard
14113 \begin_layout Standard
14114 was used for the last column and
14117 \begin_layout Standard
14123 \begin_layout Standard
14124 for the other columns.
14127 \begin_layout Standard
14128 If you want to have several colors, define more column formats.
14131 \begin_layout Standard
14132 \begin_inset Float table
14137 \begin_layout Standard
14138 \begin_inset Caption
14140 \begin_layout Standard
14141 \begin_inset LatexCommand label
14142 name "tab:Table-with-vertical-colored"
14146 Table with colored vertical lines
14154 \begin_layout Standard
14156 \begin_inset Tabular
14157 <lyxtabular version="3" rows="3" columns="3">
14159 <column alignment="center" valignment="top" width="0" special="Wc">
14160 <column alignment="center" valignment="top" width="0" special="Wc">
14161 <column alignment="center" valignment="top" width="0" special="WcW">
14162 <row topline="true">
14163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14166 \begin_layout Standard
14172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14175 \begin_layout Standard
14181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14184 \begin_layout Standard
14191 <row topline="true">
14192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14195 \begin_layout Standard
14201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14204 \begin_layout Standard
14210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14213 \begin_layout Standard
14220 <row topline="true" bottomline="true">
14221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14224 \begin_layout Standard
14230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14233 \begin_layout Standard
14239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14242 \begin_layout Standard
14261 \begin_layout Standard
14262 \begin_inset VSpace bigskip
14265 To color horizontal lines for example with red, like in Table\InsetSpace ~
14267 \begin_inset LatexCommand ref
14268 reference "tab:Table-with-horizontal-colored"
14272 , insert these commands in ERT before the table or table float:
14275 \begin_layout Standard
14292 arrayrulecolor{red}
14296 arrayrulecolor{black}}
14299 \begin_layout Standard
14303 \begin_layout Standard
14314 \begin_layout Standard
14322 arrayrulecolor{red}
14326 arrayrulecolor{black}}
14332 \begin_inset Float table
14337 \begin_layout Standard
14338 \begin_inset Caption
14340 \begin_layout Standard
14341 \begin_inset LatexCommand label
14342 name "tab:Table-with-horizontal-colored"
14346 Table with colored horizontal lines
14354 \begin_layout Standard
14356 \begin_inset Tabular
14357 <lyxtabular version="3" rows="3" columns="3">
14359 <column alignment="center" valignment="top" leftline="true" width="0">
14360 <column alignment="center" valignment="top" leftline="true" width="0">
14361 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14362 <row topline="true">
14363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14366 \begin_layout Standard
14372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14375 \begin_layout Standard
14381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14384 \begin_layout Standard
14391 <row topline="true">
14392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14395 \begin_layout Standard
14401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14404 \begin_layout Standard
14410 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14413 \begin_layout Standard
14420 <row topline="true" bottomline="true">
14421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14424 \begin_layout Standard
14430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14433 \begin_layout Standard
14439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14442 \begin_layout Standard
14461 \begin_layout Standard
14465 \begin_layout Standard
14477 \begin_layout Standard
14478 To return to the default line color black, insert this command in ERT behind
14479 the table or table float:
14482 \begin_layout Standard
14494 \begin_layout Standard
14497 \begin_inset LatexCommand ref
14498 reference "tab:Table-with-colored"
14502 is an example with colored vertical and horizontal lines.
14505 \begin_layout Standard
14506 \begin_inset Float table
14511 \begin_layout Standard
14512 \begin_inset Caption
14514 \begin_layout Standard
14515 \begin_inset LatexCommand label
14516 name "tab:Table-with-colored"
14520 Table with colored lines
14528 \begin_layout Standard
14530 \begin_inset Tabular
14531 <lyxtabular version="3" rows="3" columns="3">
14533 <column alignment="center" valignment="top" width="0" special="Wc">
14534 <column alignment="center" valignment="top" width="0" special="Wc">
14535 <column alignment="center" valignment="top" width="0" special="WcW">
14536 <row topline="true">
14537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14540 \begin_layout Standard
14546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14549 \begin_layout Standard
14555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14558 \begin_layout Standard
14565 <row topline="true">
14566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14569 \begin_layout Standard
14575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14578 \begin_layout Standard
14584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14587 \begin_layout Standard
14594 <row topline="true" bottomline="true" topspace="default">
14595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14598 \begin_layout Standard
14604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14607 \begin_layout Standard
14613 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14616 \begin_layout Standard
14635 \begin_layout Standard
14639 \begin_layout Standard
14655 \begin_layout Standard
14659 \begin_layout Standard
14665 arrayrulewidth}{0.4pt}
14673 \begin_layout Section
14674 Table Customization
14675 \begin_inset LatexCommand index
14676 name "Table Customization"
14681 \begin_inset LatexCommand index
14682 name "Table ! Customization"
14689 \begin_layout Subsection
14691 \begin_inset LatexCommand label
14692 name "sub:Row-Spacing"
14697 \begin_inset LatexCommand index
14698 name "Table Customization ! Row Spacing"
14705 \begin_layout Standard
14706 You can add vertical space to table rows in the
14710 tab of the table dialog.
14711 You find there three possibilities:
14714 \begin_layout Description
14717 row will add space above the characters of the table row.
14718 If the table is a formal table
14722 \begin_layout Standard
14723 Formal tables are explained in section\InsetSpace ~
14725 \begin_inset LatexCommand ref
14726 reference "sec:Formal-Tables"
14735 LyX will insert as default 0.5\InsetSpace \thinspace{}
14737 For normal tables the inserted space will unfortunately destroy the vertical
14738 table lines as in the following table:
14739 \begin_inset VSpace defskip
14748 \begin_layout Standard
14760 \begin_inset Tabular
14761 <lyxtabular version="3" rows="3" columns="1">
14763 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14764 <row topline="true">
14765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14768 \begin_layout Standard
14775 <row topline="true" topspace="3mm">
14776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14779 \begin_layout Standard
14780 3\InsetSpace \thinspace{}
14781 mm space top of row
14787 <row topline="true" bottomline="true">
14788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14791 \begin_layout Standard
14808 \begin_layout Standard
14818 \begin_inset VSpace defskip
14823 So inserting space to the top of row for normal tables is only useful when
14824 you don't have vertical lines.
14827 \begin_layout Description
14828 Bottom\InsetSpace ~
14830 row will add space below the characters of the table row.
14831 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14833 normal tables the default size is 2\InsetSpace \thinspace{}
14837 \begin_layout Description
14838 Between\InsetSpace ~
14839 rows adds space between the current and the following row.
14840 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14842 For normal tables the inserted space will unfortunately destroy the vertical
14843 table lines as in the following table:
14844 \begin_inset VSpace defskip
14853 \begin_layout Standard
14865 \begin_inset Tabular
14866 <lyxtabular version="3" rows="3" columns="1">
14868 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14869 <row topline="true">
14870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14873 \begin_layout Standard
14880 <row topline="true" interlinespace="3mm">
14881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14884 \begin_layout Standard
14885 \begin_inset Formula $\downarrow$
14888 3\InsetSpace \thinspace{}
14889 mm space between row
14890 \begin_inset Formula $\downarrow$
14899 <row topline="true" bottomline="true">
14900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14903 \begin_layout Standard
14904 \begin_inset Formula $\uparrow$
14907 3\InsetSpace \thinspace{}
14908 mm space between row
14909 \begin_inset Formula $\uparrow$
14928 \begin_layout Standard
14938 \begin_inset VSpace defskip
14943 So inserting space between rows for normal tables is only useful when you
14944 don't have vertical lines.
14947 \begin_layout Standard
14948 When you want to add extra height to all cells of all tables, you can do
14949 this with the following preamble line:
14952 \begin_layout Standard
14959 extrarowheight}{height}
14962 \begin_layout Standard
14963 But this has the disadvantage that the cell texts are no longer exactly
14964 vertically centered.
14967 \begin_layout Subsection
14968 Special Cell Alignment
14969 \begin_inset LatexCommand index
14970 name "Table Customization ! Special Cell Alignment"
14977 \begin_layout Standard
14978 Sometimes it looks better when the cell entries of a column are aligned
14979 with a special character, e.\InsetSpace \thinspace{}
14981 with the decimal separator as in Table\InsetSpace ~
14983 \begin_inset LatexCommand ref
14984 reference "tab:Table-cells-of"
14991 \begin_layout Standard
14992 \begin_inset Float table
14998 \begin_layout Standard
14999 \begin_inset Caption
15001 \begin_layout Standard
15002 \begin_inset LatexCommand label
15003 name "tab:Table-cells-of"
15007 Table cells of a column aligned with the decimal separator.
15015 \begin_layout Standard
15017 \begin_inset Tabular
15018 <lyxtabular version="3" rows="4" columns="2">
15020 <column alignment="right" valignment="top" width="0">
15021 <column alignment="left" valignment="top" width="0" special="@{}l">
15022 <row bottomline="true">
15023 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15026 \begin_layout Standard
15032 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15035 \begin_layout Standard
15043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15046 \begin_layout Standard
15052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15055 \begin_layout Standard
15063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15066 \begin_layout Standard
15072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15075 \begin_layout Standard
15083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15086 \begin_layout Standard
15092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15095 \begin_layout Standard
15114 \begin_layout Standard
15115 This table was created with a 4×2 table.
15116 The heading is a centered multicolumn.
15117 The first column is right-aligned and contains the digits before the decimal
15118 point and the decimal point.
15119 The second column is left aligned and contains the digits after the decimal
15121 To omit the space that is normally between two table columns, use the following
15122 LaTeX-argument for the second column:
15125 \begin_layout Standard
15131 \begin_layout Standard
15134 \begin_inset LatexCommand ref
15135 reference "tab:Several-table-cell"
15139 shows some example alignments.
15140 For the alignment with the relation sign, you must add the second smallest
15141 math-space at the beginning of the last column to get the correct space
15142 surrounding the relation sign.
15145 \begin_layout Standard
15146 \begin_inset Float table
15151 \begin_layout Standard
15152 \begin_inset Caption
15154 \begin_layout Standard
15155 \begin_inset LatexCommand label
15156 name "tab:Several-table-cell"
15160 Several table cell alignments.
15168 \begin_layout Standard
15170 \begin_inset Tabular
15171 <lyxtabular version="3" rows="4" columns="6">
15173 <column alignment="right" valignment="top" width="0">
15174 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15175 <column alignment="right" valignment="top" width="0">
15176 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15177 <column alignment="right" valignment="top" width="0">
15178 <column alignment="left" valignment="top" width="0" special="@{}l">
15179 <row bottomline="true">
15180 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15183 \begin_layout Standard
15189 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15192 \begin_layout Standard
15198 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15201 \begin_layout Standard
15207 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15210 \begin_layout Standard
15216 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15219 \begin_layout Standard
15225 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15228 \begin_layout Standard
15236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15239 \begin_layout Standard
15245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15248 \begin_layout Standard
15249 24\InsetSpace \thinspace{}
15255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15258 \begin_layout Standard
15259 \begin_inset Formula $10\cdot$
15267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15270 \begin_layout Standard
15271 \begin_inset Formula $10^{\mbox{-}17}$
15279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15282 \begin_layout Standard
15283 \begin_inset Formula $\Gamma(t)\propto$
15291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15294 \begin_layout Standard
15295 \begin_inset Formula $\:\Upsilon(t)$
15305 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15308 \begin_layout Standard
15314 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15317 \begin_layout Standard
15318 768\InsetSpace \thinspace{}
15324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15327 \begin_layout Standard
15328 \begin_inset Formula $5.78\cdot$
15336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15339 \begin_layout Standard
15340 \begin_inset Formula $10^{7}$
15348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15351 \begin_layout Standard
15352 \begin_inset Formula $A\ne$
15360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15363 \begin_layout Standard
15364 \begin_inset Formula $\: B_{\mathrm{red}}$
15374 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15377 \begin_layout Standard
15383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15386 \begin_layout Standard
15387 6\InsetSpace \thinspace{}
15393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15396 \begin_layout Standard
15398 \begin_inset Formula $33.5\cdot$
15406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15409 \begin_layout Standard
15410 \begin_inset Formula $10^{4}$
15418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15421 \begin_layout Standard
15422 \begin_inset Formula $\sin(\alpha)\ge$
15430 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15433 \begin_layout Standard
15434 \begin_inset Formula $\:\sin(\beta)$
15455 \begin_layout Standard
15456 \begin_inset VSpace bigskip
15459 There is also the LaTeX-package
15464 \begin_inset LatexCommand index
15465 name "LaTeX-packages ! dcolumn"
15469 that provides table cell alignments.
15470 But this unfortunately treats the cell entries as math and doesn't allow
15471 formulas in table cells: The first column of Table\InsetSpace ~
15473 \begin_inset LatexCommand ref
15474 reference "tab:Several-table-cell"
15482 like the first column in Table\InsetSpace ~
15484 \begin_inset LatexCommand ref
15485 reference "tab:Alignments-when"
15489 and only with some tricks like the expected.
15490 The alignment of the second and third column of Table\InsetSpace ~
15492 \begin_inset LatexCommand ref
15493 reference "tab:Several-table-cell"
15497 is not possible with
15504 \begin_layout Standard
15505 \begin_inset Float table
15511 \begin_layout Standard
15512 \begin_inset Caption
15514 \begin_layout Standard
15515 \begin_inset LatexCommand label
15516 name "tab:Alignments-when"
15520 Alignments when LaTeX-package dcolumn is used.
15521 For all column alignments tricks have to be used to get the output.
15529 \begin_layout Standard
15531 \begin_inset Tabular
15532 <lyxtabular version="3" rows="4" columns="3">
15534 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
15535 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
15536 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
15537 <row bottomline="true">
15538 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15541 \begin_layout Standard
15547 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15550 \begin_layout Standard
15556 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15559 \begin_layout Standard
15567 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15570 \begin_layout Standard
15571 12x24\InsetSpace \thinspace{}
15577 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15580 \begin_layout Standard
15581 12x24\InsetSpace \thinspace{}
15583 \begin_inset Formula $\mbox{bottles}$
15591 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15594 \begin_layout Standard
15599 \begin_layout Standard
15609 \begin_inset Formula $\mbox{bottles}$
15619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15622 \begin_layout Standard
15623 1024x768\InsetSpace \thinspace{}
15629 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15632 \begin_layout Standard
15633 1024x768\InsetSpace \thinspace{}
15635 \begin_inset Formula $\mbox{Pixels}$
15643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15646 \begin_layout Standard
15651 \begin_layout Standard
15661 \begin_inset Formula $\mbox{Pixels}$
15671 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15674 \begin_layout Standard
15675 32x6\InsetSpace \thinspace{}
15681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15684 \begin_layout Standard
15685 32x6\InsetSpace \thinspace{}
15687 \begin_inset Formula $\mbox{cm}$
15695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15698 \begin_layout Standard
15703 \begin_layout Standard
15713 \begin_inset Formula $\mbox{cm}$
15734 \begin_layout Subsection
15735 Customized Cell/Column Format
15736 \begin_inset LatexCommand label
15737 name "sub:Customized-Format"
15742 \begin_inset LatexCommand index
15743 name "Table Customization ! Cell/Column Format"
15750 \begin_layout Standard
15751 Calculating the needed width for spanned columns like in section\InsetSpace ~
15753 \begin_inset LatexCommand ref
15754 reference "sub:Multicolumn-Calculations"
15758 is very annoying if you have several tables with multicolumn cells.
15759 To make life easier, you can define a cell/column format in the preamble,
15760 so that it can be used in all tables of the document.
15761 The format is defined with the command
15764 \begin_layout Standard
15769 newcolumntype{name of format}[number of arguments]{commands}
15772 \begin_layout Standard
15773 The format name may only consist of one letter.
15798 are predefined and cannot be used.
15799 But all letters are allowed as capitals.
15802 \begin_layout Standard
15803 \begin_inset VSpace medskip
15809 \begin_layout Standard
15810 For vertically and horizontally centered multicolumn cells with a fixed
15811 width you can define the cell format
15814 \begin_layout Standard
15819 newcolumntype{M}[1]{>{
15826 \begin_layout Standard
15833 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15835 \begin_inset LatexCommand ref
15836 reference "sub:Multiple-Lines-in"
15841 Now you can simply enter
15844 \begin_layout Standard
15850 \begin_layout Standard
15851 as LaTeX-argument in the table dialog to create a multicolumn.
15854 \begin_layout Standard
15855 \begin_inset VSpace bigskip
15861 \begin_layout Standard
15862 For cells spanned by a multicolumn cell, you can define the format
15865 \begin_layout Standard
15870 newcolumntype{S}[2]{>{
15880 \begin_layout Standard
15891 newcolumntype{S}[2]
15895 \begin_layout Standard
15906 arrayrulewidth)*(1-#2))/#2}}
15909 \begin_layout Standard
15910 This format uses equation
15911 \begin_inset LatexCommand eqref
15916 to calculate the needed width so that each spanned cell has the same width.
15919 \begin_layout Standard
15923 \begin_layout Standard
15926 S{width of multicolumn cell}{number of spanned columns}
15929 \begin_layout Standard
15930 as LaTeX-argument of the column.
15933 \begin_layout Standard
15934 \begin_inset VSpace bigskip
15940 \begin_layout Standard
15941 For colored columns, you can define
15944 \begin_layout Standard
15949 newcolumntype{K}[1]{>{
15956 \begin_layout Standard
15958 \begin_inset Quotes eld
15962 \begin_inset Quotes erd
15965 at the end creates a column with a flexible width whose text is horizontally
15970 \begin_layout Standard
15976 \begin_layout Standard
15980 \begin_layout Standard
15981 \begin_inset VSpace bigskip
15987 \begin_layout Standard
15988 To create Table\InsetSpace ~
15990 \begin_inset LatexCommand ref
15991 reference "tab:Table-using-user-defined"
15995 use the LaTeX-arguments
15998 \begin_layout Standard
16004 \begin_layout Standard
16005 for the first column and the multicolumn,
16008 \begin_layout Standard
16014 \begin_layout Standard
16015 for the the last column, and
16018 \begin_layout Standard
16024 \begin_layout Standard
16025 for the cells in the second column.
16028 \begin_layout Standard
16029 \begin_inset Float table
16035 \begin_layout Standard
16036 \begin_inset Caption
16038 \begin_layout Standard
16039 \begin_inset LatexCommand label
16040 name "tab:Table-using-user-defined"
16044 Table using user-defined table formats
16052 \begin_layout Standard
16054 \begin_inset Tabular
16055 <lyxtabular version="3" rows="3" columns="4">
16057 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16058 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16059 <column alignment="center" valignment="middle" leftline="true" width="0">
16060 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16061 <row topline="true">
16062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16065 \begin_layout Standard
16066 verylongtablecellword
16071 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16074 \begin_layout Standard
16075 multiple lines multicolumn
16080 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16083 \begin_layout Standard
16089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16092 \begin_layout Standard
16099 <row topline="true">
16100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16103 \begin_layout Standard
16109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16112 \begin_layout Standard
16118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16121 \begin_layout Standard
16127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16130 \begin_layout Standard
16137 <row topline="true" bottomline="true">
16138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16141 \begin_layout Standard
16147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16150 \begin_layout Standard
16156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16159 \begin_layout Standard
16165 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16168 \begin_layout Standard
16187 \begin_layout Subsection
16189 \begin_inset LatexCommand label
16190 name "sub:Line-Thickness"
16195 \begin_inset LatexCommand index
16196 name "Table Customization ! Line Thickness"
16203 \begin_layout Standard
16204 The line thickness for all lines in a table can be adjusted with the length
16212 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16213 pt, like in Table\InsetSpace ~
16215 \begin_inset LatexCommand ref
16216 reference "tab:Table-with-1.5"
16220 , insert the command
16223 \begin_layout Standard
16230 arrayrulewidth}{1.5pt}
16233 \begin_layout Standard
16234 in ERT before the table or table float.
16235 The changed thickness is valid for all following tables.
16236 To use the default value again, set
16242 to 0.4\InsetSpace \thinspace{}
16243 pt in ERT behind the table or table float.
16246 \begin_layout Standard
16250 \begin_layout Standard
16256 arrayrulewidth}{1.5pt}
16262 \begin_inset Float table
16267 \begin_layout Standard
16268 \begin_inset Caption
16270 \begin_layout Standard
16271 \begin_inset LatexCommand label
16272 name "tab:Table-with-1.5"
16276 Table with 1.5\InsetSpace \thinspace{}
16285 \begin_layout Standard
16287 \begin_inset Tabular
16288 <lyxtabular version="3" rows="3" columns="3">
16290 <column alignment="center" valignment="top" leftline="true" width="0">
16291 <column alignment="center" valignment="top" leftline="true" width="0">
16292 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16293 <row topline="true">
16294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16297 \begin_layout Standard
16303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16306 \begin_layout Standard
16312 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16315 \begin_layout Standard
16322 <row topline="true">
16323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16326 \begin_layout Standard
16332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16335 \begin_layout Standard
16341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16344 \begin_layout Standard
16351 <row topline="true" bottomline="true">
16352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16355 \begin_layout Standard
16361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16364 \begin_layout Standard
16370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16373 \begin_layout Standard
16393 \begin_layout Standard
16399 arrayrulewidth}{0.4pt}
16407 \begin_layout Standard
16408 \begin_inset VSpace bigskip
16411 To set the line thickness to 1.5\InsetSpace \thinspace{}
16412 pt only for horizontal lines, like in Table\InsetSpace ~
16414 \begin_inset LatexCommand ref
16415 reference "tab:Table-with-horizontal"
16419 , insert these commands in ERT before the table or table float:
16422 \begin_layout Standard
16445 arrayrulewidth 1.5pt}
16455 arrayrulewidth 0.4pt}}
16458 \begin_layout Standard
16459 To return to the default line thickness, insert this command in ERT behind
16460 the table or table float:
16463 \begin_layout Standard
16475 \begin_layout Standard
16479 \begin_layout Standard
16490 \begin_layout Standard
16499 \begin_layout Standard
16507 arrayrulewidth 1.5pt}
16510 \begin_layout Standard
16520 arrayrulewidth 0.4pt}}
16526 \begin_inset Float table
16531 \begin_layout Standard
16532 \begin_inset Caption
16534 \begin_layout Standard
16535 \begin_inset LatexCommand label
16536 name "tab:Table-with-horizontal"
16540 Table with 1.5\InsetSpace \thinspace{}
16541 pt thick horizontal lines
16549 \begin_layout Standard
16551 \begin_inset Tabular
16552 <lyxtabular version="3" rows="3" columns="3">
16554 <column alignment="center" valignment="top" leftline="true" width="0">
16555 <column alignment="center" valignment="top" leftline="true" width="0">
16556 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16557 <row topline="true">
16558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16561 \begin_layout Standard
16567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16570 \begin_layout Standard
16576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16579 \begin_layout Standard
16586 <row topline="true">
16587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16590 \begin_layout Standard
16596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16599 \begin_layout Standard
16605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16608 \begin_layout Standard
16615 <row topline="true" bottomline="true">
16616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16619 \begin_layout Standard
16625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16628 \begin_layout Standard
16634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16637 \begin_layout Standard
16657 \begin_layout Standard
16673 \begin_layout Standard
16674 \begin_inset VSpace bigskip
16677 To set the line thickness to 1.5\InsetSpace \thinspace{}
16678 pt only for vertical lines, create the following
16679 column format in the document preamble, according to the description in
16680 section\InsetSpace ~
16682 \begin_inset LatexCommand ref
16683 reference "sub:Customized-Format"
16690 \begin_layout Standard
16695 newcolumntype{V}{!{
16697 vrule width 1.5pt}}
16700 \begin_layout Standard
16701 For Table\InsetSpace ~
16703 \begin_inset LatexCommand ref
16704 reference "tab:Table-with-vertical"
16711 \begin_layout Standard
16717 \begin_layout Standard
16718 was used for the last column and
16721 \begin_layout Standard
16727 \begin_layout Standard
16728 for the other columns.
16731 \begin_layout Standard
16732 \begin_inset Float table
16737 \begin_layout Standard
16738 \begin_inset Caption
16740 \begin_layout Standard
16741 \begin_inset LatexCommand label
16742 name "tab:Table-with-vertical"
16746 Table with 1.5\InsetSpace \thinspace{}
16747 pt thick vertical lines
16755 \begin_layout Standard
16757 \begin_inset Tabular
16758 <lyxtabular version="3" rows="3" columns="3">
16760 <column alignment="center" valignment="top" width="0" special="Vc">
16761 <column alignment="center" valignment="top" width="0" special="Vc">
16762 <column alignment="center" valignment="top" width="0" special="VcV">
16763 <row topline="true">
16764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16767 \begin_layout Standard
16773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16776 \begin_layout Standard
16782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16785 \begin_layout Standard
16792 <row topline="true">
16793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16796 \begin_layout Standard
16802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16805 \begin_layout Standard
16811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16814 \begin_layout Standard
16821 <row topline="true" bottomline="true">
16822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16825 \begin_layout Standard
16831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16834 \begin_layout Standard
16840 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16843 \begin_layout Standard
16862 \begin_layout Subsection
16864 \begin_inset LatexCommand index
16865 name "Table Customization ! Dashed Lines"
16872 \begin_layout Standard
16876 \begin_layout Standard
16886 \begin_inset Note Note
16889 \begin_layout Standard
16890 The following section will only be displayed when you have the LaTeX-package
16903 \begin_layout Standard
16904 \begin_inset Float table
16910 \begin_layout Standard
16911 \begin_inset Caption
16913 \begin_layout Standard
16914 \begin_inset LatexCommand label
16915 name "tab:Table-with-dashed"
16919 Table with dashed lines
16927 \begin_layout Standard
16929 \begin_inset Tabular
16930 <lyxtabular version="3" rows="5" columns="5">
16932 <column alignment="center" valignment="top" leftline="true" width="0">
16933 <column alignment="center" valignment="top" leftline="true" width="0">
16934 <column alignment="center" valignment="top" width="0" special=":c">
16935 <column alignment="center" valignment="top" leftline="true" width="0">
16936 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16937 <row topline="true" bottomline="true">
16938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16941 \begin_layout Standard
16947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16950 \begin_layout Standard
16956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16959 \begin_layout Standard
16965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16968 \begin_layout Standard
16974 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16977 \begin_layout Standard
16984 <row topline="true">
16985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16988 \begin_layout Standard
16994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16997 \begin_layout Standard
17003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17006 \begin_layout Standard
17012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17015 \begin_layout Standard
17021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17024 \begin_layout Standard
17032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17035 \begin_layout Standard
17039 \begin_layout Standard
17053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17056 \begin_layout Standard
17062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17065 \begin_layout Standard
17071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17074 \begin_layout Standard
17080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17083 \begin_layout Standard
17090 <row topline="true">
17091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17094 \begin_layout Standard
17098 \begin_layout Standard
17112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17115 \begin_layout Standard
17121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17124 \begin_layout Standard
17130 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17133 \begin_layout Standard
17139 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17142 \begin_layout Standard
17149 <row topline="true" bottomline="true">
17150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17153 \begin_layout Standard
17159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17162 \begin_layout Standard
17168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17171 \begin_layout Standard
17177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17180 \begin_layout Standard
17186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17189 \begin_layout Standard
17208 \begin_layout Standard
17209 LyX doesn't natively support dashed lines, so you have to use ERT.
17210 As prerequisite the LaTeX-package
17215 \begin_inset LatexCommand index
17216 name "LaTeX-packages ! arydshln"
17220 must be loaded in the document preamble with the command
17223 \begin_layout Standard
17228 usepackage{arydshln}
17231 \begin_layout Standard
17232 To make a vertical line dashed, enter the colon
17233 \begin_inset Quotes eld
17237 \begin_inset Quotes erd
17240 together with the character for the horizontal alignment as LaTeX-argument
17241 in the table cell dialog.
17244 \begin_layout Standard
17245 For a horizontal dashed line add the command
17248 \begin_layout Standard
17256 \begin_layout Standard
17257 in ERT as first element of the first cell in the table row.
17260 \begin_layout Standard
17261 For dashed multicolumn lines use the command
17264 \begin_layout Standard
17269 cdashline{line number
17274 \begin_layout Standard
17275 in ERT as first element of the first cell in the table row.
17276 If you have for example a multicolumn spanning over columns 2 to 4 and
17277 you want to have a dashed line above, add the command
17280 \begin_layout Standard
17288 \begin_layout Standard
17289 as first element of the first cell in the row of the multicolumn.
17292 \begin_layout Standard
17293 \begin_inset VSpace bigskip
17299 \begin_layout Standard
17302 \begin_inset LatexCommand ref
17303 reference "tab:Table-with-dashed"
17308 \begin_inset Quotes eld
17316 \begin_inset Quotes erd
17319 as LaTeX-argument of the third column.
17326 was inserted to the first cell of the third row and the the ERT command
17335 was inserted to the first cell of the fourth row.
17338 \begin_layout Standard
17339 \begin_inset Note Greyedout
17342 \begin_layout Standard
17347 The used LaTeX-package
17351 is apparently not compatible with the LaTeX-package
17356 \begin_inset LatexCommand index
17357 name "LaTeX-packages ! colortbl"
17361 that is used for colored tables in section\InsetSpace ~
17363 \begin_inset LatexCommand ref
17364 reference "sec:Colored-Tables"
17369 That means colored tables cannot have dashed lines.
17377 \begin_layout Standard
17381 \begin_layout Standard
17391 \begin_inset Note Note
17394 \begin_layout Standard
17395 The following will be displayed when the LaTeX-package
17407 \begin_layout Standard
17408 You need to install the package
17412 to see the contents of this section in the output.
17415 \begin_layout Standard
17419 \begin_layout Standard
17431 \begin_layout Chapter
17433 \begin_inset LatexCommand index
17439 \begin_inset LatexCommand label
17447 \begin_layout Section
17449 \begin_inset LatexCommand label
17450 name "sec:FloatIntroduction"
17455 \begin_inset LatexCommand index
17456 name "Floats ! Introduction"
17463 \begin_layout Standard
17464 A float is a block of text associated with some sort of label, which doesn't
17465 have a fixed location.
17467 \begin_inset Quotes eld
17471 \begin_inset Quotes erd
17474 forward or backward a page or two, to wherever it fits best.
17481 Margin\InsetSpace ~
17484 are also floats, because they can float to the next page when there are
17485 too many notes at the page.
17488 \begin_layout Standard
17489 Floats allow a high quality layout.
17490 Images and tables can evenly be spread to the pages to avoid white space
17491 and pages without text.
17492 As the floating often destroys the context between the text and the image/table
17493 , every float can be referenced in the text.
17494 Floats are therefore numbered.
17495 Referencing is described in section\InsetSpace ~
17497 \begin_inset LatexCommand ref
17498 reference "sec:Referencing-Floats"
17505 \begin_layout Standard
17506 To insert a float, use the menu
17508 Insert\SpecialChar \menuseparator
17516 inset, a box with a label.
17517 The label will automatically be translated to the document language in
17519 Behind the label you can insert the caption text.
17520 The image or table is inserted above or below the caption in a separate
17521 paragraph within the float.
17522 More about the caption placement is described in section\InsetSpace ~
17524 \begin_inset LatexCommand ref
17525 reference "sec:Caption-Placement"
17530 To keep your LyX-document readable, you can open and close the float box
17531 by left-clicking on the box label.
17532 A closed float box looks like this:
17533 \begin_inset Graphics
17534 filename clipart/floatQt4.png
17539 -- a gray button with a red label.
17542 \begin_layout Standard
17543 It is recommended to insert floats as a separate paragraph to avoid possible
17544 LaTeX-errors that can occur when the surrounding text is specially formatted.
17547 \begin_layout Standard
17548 Existing figures or tables can be put into a float by marking them and then
17549 pressing the corresponding toolbar button for a new float.
17552 \begin_layout Section
17556 \begin_layout Standard
17557 Besides figure and table floats that are described in section\InsetSpace ~
17559 \begin_inset LatexCommand ref
17560 reference "sec:Figure-Floats"
17565 \begin_inset LatexCommand ref
17566 reference "sec:Table-Floats"
17570 , respectively, LyX offers the float types
17583 \begin_layout Subsection
17585 \begin_inset LatexCommand index
17586 name "Floats ! Algorithms"
17593 \begin_layout Standard
17594 \begin_inset Float algorithm
17600 \begin_layout Standard
17601 \begin_inset Caption
17603 \begin_layout Standard
17604 \begin_inset LatexCommand label
17605 name "alg:Example-Algorithm-float"
17609 Example Algorithm float
17617 \begin_layout LyX-Code
17620 Sum:= Sum + A(I); /*comment*/
17623 \begin_inset VSpace -4mm
17634 \begin_layout Standard
17635 This float type is inserted with the menu
17637 Insert\SpecialChar \menuseparator
17638 Floats\SpecialChar \menuseparator
17642 It is used for program codes and descriptions of algorithms.
17643 A possible environment for algorithms is the
17647 , described in LyX's
17652 Algorithm\InsetSpace ~
17654 \begin_inset LatexCommand ref
17655 reference "alg:Example-Algorithm-float"
17659 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17660 mm vertical space was added
17661 at the end of the float to have the bottom rule exactly below the last
17665 \begin_layout Standard
17666 The float label is not automatically translated into the document language.
17667 If your document is not in English, you have to do this manually by adding
17668 the following line to the document preamble
17673 \begin_layout Standard
17678 floatname{algorithm}{your\InsetSpace ~
17682 \begin_layout Standard
17689 \begin_inset Quotes eld
17697 \begin_inset Quotes erd
17703 \begin_layout Description
17708 When the LaTeX-package
17713 \begin_inset LatexCommand index
17714 name "LaTeX-packages ! hyperref"
17718 is used to link cross-references to floats in the PDF-output, it must be
17719 loaded in the document preamble before the definition of floats to be able
17720 to reference floats.
17721 As LyX sets the float definition for algorithm floats automatically before
17722 the user editable part of the document preamble, you need to insert the
17723 following preamble lines
17727 the loading command of
17734 \begin_inset VSpace defskip
17741 newfloat{Xalgorithm}{tbp}{loa}
17745 floatname{Xalgorithm}{your\InsetSpace ~
17758 renewenvironment{algorithm}[1][tbp]
17764 \begin_layout Standard
17775 begin{Xalgorithm}[#1]}{
17778 \begin_inset VSpace defskip
17784 \begin_layout Standard
17785 Algorithm floats are not by default numbered in the scheme
17786 \begin_inset Quotes eld
17790 \begin_inset Quotes erd
17793 like it is the case for table and figure floats in many document-classes.
17794 To number algorithm floats in the same scheme, add this command to your
17798 \begin_layout Standard
17803 numberwithin{algorithm}{chapter}
17806 \begin_layout Standard
17807 If you use the LaTeX-package
17811 , add this line instead
17819 (the commands from above) to the preamble:
17822 \begin_layout Standard
17827 numberwithin{Xalgorithm}{chapter}
17830 \begin_layout Standard
17831 To be able to use the command
17842 in the document settings the option
17852 \begin_layout Subsection
17854 \begin_inset LatexCommand index
17855 name "Floats ! Text Wrap Floats"
17860 \begin_inset LatexCommand label
17861 name "sub:floatflt-wrap-float"
17868 \begin_layout Standard
17869 This float type is used if you want to
17870 \begin_inset Quotes eld
17874 \begin_inset Quotes erd
17877 text around a figure so that it only occupies some fraction of the column
17879 It can be inserted using the menu
17880 \begin_inset Wrap figure
17885 \begin_layout Standard
17886 \begin_inset Graphics
17887 filename clipart/mobius.eps
17890 rotateOrigin center
17897 \begin_layout Standard
17898 \begin_inset Caption
17900 \begin_layout Standard
17901 \begin_inset LatexCommand label
17902 name "fig:This-is-a"
17906 This is a wrapped figure, and this is the brilliant caption that describes
17908 \begin_inset VSpace medskip
17923 Insert\SpecialChar \menuseparator
17924 Floats\SpecialChar \menuseparator
17929 if the LaTeX-package
17931 f\SpecialChar \textcompwordmark{}
17932 loatf\SpecialChar \textcompwordmark{}
17936 \begin_inset LatexCommand index
17937 name "LaTeX-packages ! floatflt"
17945 \begin_layout Standard
17946 Installing a LaTeX-package is explained it in the
17956 The width and placement of the float is adjusted by right-clicking on the
17958 Figure\InsetSpace ~
17960 \begin_inset LatexCommand ref
17961 reference "fig:This-is-a"
17965 is an example text wrap float with a width of 40
17966 \begin_inset Formula $\,$
17973 \begin_layout Standard
17974 Available units are explained in
17975 \begin_inset LatexCommand ref
17976 reference "cha:Units-available-in"
17985 Some space was added under the caption to separate it better from the surroundi
17989 \begin_layout Standard
17992 f\SpecialChar \textcompwordmark{}
17993 loatf\SpecialChar \textcompwordmark{}
17996 also supports table wrap floats, but they are not yet supported by LyX.
17997 If you need this, read the documentation of
17999 f\SpecialChar \textcompwordmark{}
18000 loatf\SpecialChar \textcompwordmark{}
18004 \begin_inset LatexCommand cite
18012 \begin_layout Standard
18013 \begin_inset Note Greyedout
18016 \begin_layout Standard
18022 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18024 having a figure too close to the bottom
18025 of the page can mess things up in the way that the float doesn't appear
18026 in the output or that it is placed over some other text.
18030 \begin_layout Standard
18031 The better solution is to use the LaTeX-package
18033 wrapf\SpecialChar \textcompwordmark{}
18037 \begin_inset LatexCommand index
18038 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18044 f\SpecialChar \textcompwordmark{}
18045 loatf\SpecialChar \textcompwordmark{}
18048 , but it is currently not supported by LyX.
18061 \begin_layout Standard
18065 \begin_layout Itemize
18066 Wrap floats should not be placed in paragraphs that run over a page break.
18067 That means that wrap floats should better be inserted to the exact place
18068 when the document is nearly finished and you are able to estimate where
18069 page breaks will appear.
18072 \begin_layout Itemize
18073 Wrap floats should either be placed in an own paragraph before the paragraph
18074 where they should wrap into or within a paragraph.
18077 \begin_layout Itemize
18078 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18079 there is a text paragraph between them as separator.
18082 \begin_layout Itemize
18083 Wrap floats are not allowed in section headings or tables.
18086 \begin_layout Section
18088 \begin_inset LatexCommand label
18089 name "sec:Float-Numbering"
18094 \begin_inset LatexCommand index
18095 name "Floats ! Numbering"
18102 \begin_layout Standard
18103 Floats are usually numbered either independent from the sections the floats
18104 are in, or in the scheme
18105 \begin_inset Quotes eld
18109 \begin_inset Quotes erd
18113 \begin_inset Quotes eld
18117 \begin_inset Quotes erd
18121 This depends on the used document class.
18124 \begin_layout Standard
18125 To change the section independent numbering, you can use this command in
18126 the document preamble:
18129 \begin_layout Standard
18141 \begin_layout Standard
18148 is the command that prints the table number, for figure floats, the command
18162 prints in the command above the table number as small roman number.
18165 \begin_layout Standard
18166 To change the numbering scheme for example to
18167 \begin_inset Quotes eld
18171 \begin_inset Quotes erd
18174 , use this command in the preamble:
18177 \begin_layout Standard
18182 numberwithin{table}{subsection}
18185 \begin_layout Standard
18186 To be able to use the command
18197 in the document settings the option
18207 \begin_layout Standard
18208 Please also have a look at section\InsetSpace ~
18210 \begin_inset LatexCommand ref
18211 reference "sub:Footnote-Numbering"
18215 for the details and important notes about the numbering commands.
18218 \begin_layout Section
18220 \begin_inset LatexCommand label
18221 name "sec:Referencing-Floats"
18226 \begin_inset LatexCommand index
18227 name "Floats ! References"
18232 \begin_inset LatexCommand index
18240 \begin_layout Standard
18241 To reference a float, insert a label into its caption using the menu
18243 Insert\SpecialChar \menuseparator
18246 or the toolbar button
18247 \begin_inset Graphics
18248 filename ../images/label-insert.xpm
18254 A grey label box like this one:
18255 \begin_inset Graphics
18256 filename clipart/labelQt4.png
18261 will be inserted and the label window pops up asking for the label text.
18262 LyX offers as text the first words of the caption with a prefix.
18263 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18265 for figure floats the prefix will
18273 \begin_layout Standard
18274 The label is used as anchor and name for the reference.
18275 You can refer to the label using the menu
18277 Insert\SpecialChar \menuseparator
18280 or the toolbar button
18281 \begin_inset Graphics
18282 filename ../images/dialog-show-new-inset_ref.xpm
18288 A grey cross-reference box like this one:
18289 \begin_inset Graphics
18290 filename clipart/referenceQt4.png
18295 will be inserted and the cross-reference window appear showing all labels
18297 If you have multiple LyX-documents opened, choose the one you are working
18298 on from the drop-list at the top of the dialog.
18299 You can now sort the labels alphabetically and then choose one.
18300 At the position of the cross-reference box the float number will appear
18304 \begin_layout Standard
18305 It is recommended to use a protected space between the cross-reference name
18306 and its number to avoid line breaks between them.
18307 If a cross-reference refers to a non-existing label, you will see two question
18308 marks in the output instead of the reference.
18311 \begin_layout Standard
18312 You can change labels at any time by clicking on the label box.
18313 References to the changed label will automatically change its link to the
18314 new label text, so that you don't need to take care about this.
18317 \begin_layout Standard
18324 in the cross-reference window sets the cursor before the referred label.
18325 The button text changes then to Go\InsetSpace ~
18326 Back and you can use it to set the cursor
18327 back to the cross-reference.
18328 Right-clicking on a cross-reference box also sets the cursor before the
18329 referenced label but without a possibility to go back.
18332 \begin_layout Subsection
18333 Cross-Reference Formats
18334 \begin_inset LatexCommand label
18335 name "sub:Cross-Reference-Formats"
18340 \begin_inset LatexCommand index
18341 name "References ! Formats"
18348 \begin_layout Standard
18349 There are six varieties of cross-references:
18352 \begin_layout Description
18353 <reference>: prints the float number, this is the default:
18354 \begin_inset LatexCommand ref
18355 reference "fig:Two-distorted-images"
18362 \begin_layout Description
18363 (<reference>): prints the float number within two parentheses, this is the
18364 style normally used to reference formulas, especially when the reference
18366 \begin_inset Quotes eld
18370 \begin_inset Quotes erd
18374 \begin_inset LatexCommand eqref
18382 \begin_layout Description
18383 <page>: prints the page number: Page\InsetSpace ~
18385 \begin_inset LatexCommand pageref
18386 reference "fig:Two-distorted-images"
18393 \begin_layout Description
18396 <page>: prints the text "on page" and the page number:
18397 \begin_inset LatexCommand vpageref
18398 reference "fig:Two-distorted-images"
18405 \begin_layout Description
18406 <reference>\InsetSpace ~
18409 <page>: prints the float number, the text "on page", and
18411 \begin_inset LatexCommand vref
18412 reference "fig:Two-distorted-images"
18419 \begin_layout Description
18420 Formatted\InsetSpace ~
18421 reference: prints a self defined cross-reference format.
18423 \begin_inset Note Greyedout
18426 \begin_layout Standard
18431 This feature is only available when you have the LaTeX-package
18443 \begin_layout Standard
18444 Note that the style <page> won't print the page number if the label is on
18445 the previous, the same, or the next page.
18446 You will e.\InsetSpace \thinspace{}
18449 \begin_inset Quotes eld
18457 \begin_inset Quotes erd
18463 \begin_layout Standard
18464 The number and current page of the referred document part in the output,
18465 is automatically calculated by LaTeX.
18466 The varieties are adjusted in the field
18470 of the cross-reference window, that appear when you click on the cross-referenc
18474 \begin_layout Subsection
18475 Referencing Subfigures
18476 \begin_inset LatexCommand label
18477 name "sub:Referencing-Subfigures"
18482 \begin_inset LatexCommand index
18483 name "References ! to Subfigures"
18490 \begin_layout Standard
18491 Currently referencing subfigures is not supported by LyX, so you have to
18492 use LaTeX-commands.
18493 The label is the created with the command
18496 \begin_layout Standard
18501 label{fig:YourLabelName}
18504 \begin_layout Standard
18505 that is directly inserted into the subfigure caption field.
18506 To reference the label add this command in ERT
18509 \begin_layout Standard
18514 ref{fig:YourLabelName}
18517 \begin_layout Standard
18518 to the position in your document where the reference should be placed.
18519 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18524 \begin_layout Standard
18536 \begin_layout Subsection
18537 Automatic Reference Naming
18538 \begin_inset LatexCommand index
18539 name "References ! Automatic Reference Naming"
18546 \begin_layout Standard
18551 provides a very useful feature that cross-references automatically include
18552 the name of the referenced floats (or text parts like sections).
18553 You save to write e.\InsetSpace \thinspace{}
18556 \begin_inset Quotes eld
18560 \begin_inset Quotes erd
18563 before every reference box.
18564 To get this automatic reference naming, you have to load the LaTeX-package
18570 \begin_inset LatexCommand index
18571 name "LaTeX-packages ! hyperref"
18575 in the document preamble with
18578 \begin_layout Standard
18583 usepackage[pdfborder={0 0 0}]{hyperref}
18598 \begin_layout Standard
18603 is used to link cross-references in the DVI- and PDF-output, this means
18604 that the reader of your document will be able to click on a table of content
18605 (TOC) entry or on a reference and he will be shown the referenced document
18611 also creates PDF-bookmarks for every section of your document to make it
18612 easier for readers to navigate through the document.
18613 This is also used in this document but when you have a look in the document
18614 preamble you will find various options in the load command of
18619 To learn more about the
18623 package, we refer to its documentation
18624 \begin_inset LatexCommand cite
18632 \begin_layout Standard
18633 \begin_inset Note Greyedout
18636 \begin_layout Standard
18641 Automatic reference naming cannot be used when you use cross-references
18644 Formatted\InsetSpace ~
18647 style, described in section\InsetSpace ~
18649 \begin_inset LatexCommand ref
18650 reference "sub:Cross-Reference-Formats"
18662 \begin_layout Subsection
18664 \begin_inset LatexCommand label
18665 name "sub:Reference-Position"
18670 \begin_inset LatexCommand index
18671 name "References ! Reference Position"
18678 \begin_layout Standard
18684 \begin_inset LatexCommand index
18685 name "LaTeX-packages ! hyperref"
18689 to link cross-references in the output, you will see that clicking on an
18690 image float reference jumps to the image label.
18691 The caption will be the first text part on the screen, so that you cannot
18692 see the image without scrolling.
18693 This is because the reference link anchor is placed at the position of
18695 With the use of the package
18700 \begin_inset LatexCommand index
18701 name "LaTeX-packages ! hypcap"
18705 , which is part of the LaTeX-package
18710 \begin_inset LatexCommand index
18711 name "LaTeX-packages ! oberdiek"
18715 , the link anchor is placed at the beginning of a float.
18716 To use this feature for figure floats, load
18720 in the document preamble with the line
18723 \begin_layout Standard
18728 usepackage[f\SpecialChar \textcompwordmark{}
18732 \begin_layout Standard
18737 for all floats but this isn't recommended for stability reasons.
18738 For more informations, have a look at
18743 \begin_inset LatexCommand cite
18751 \begin_layout Standard
18752 \begin_inset Note Greyedout
18755 \begin_layout Standard
18764 must be loaded after
18768 in the document preamble.
18776 \begin_layout Standard
18777 \begin_inset Note Greyedout
18780 \begin_layout Standard
18789 has no effect for references to subfigures.
18797 \begin_layout Section
18799 \begin_inset LatexCommand label
18800 name "sec:Float-Placement"
18805 \begin_inset LatexCommand index
18806 name "Floats ! Placement"
18813 \begin_layout Standard
18814 Right-clicking on a float-box opens a dialog where you can alter the placement
18815 options that LaTeX uses for positioning the float.
18822 is only useful for two-column documents: If you select it, the float will
18823 span across both columns on the page instead of being confined to just
18828 Rotate\InsetSpace ~
18831 is used to rotate floats, see section
18832 \begin_inset LatexCommand ref
18833 reference "sec:Rotated-Floats"
18840 \begin_layout Standard
18841 You can use one ore more of the following options in the float dialog to
18842 set the placement for a particular float when you uncheck the option
18845 default\InsetSpace ~
18851 \begin_layout Description
18854 possible try to place the float on the position where it is inserted
18857 \begin_layout Description
18860 page try to place the float on the top of the current page
18863 \begin_layout Description
18864 Bottom\InsetSpace ~
18866 page try to place the float on the bottom of the current page
18869 \begin_layout Description
18872 floats try to place the float on an own page
18875 \begin_layout Standard
18876 The order of the above option is
18881 That means, if you use the default placement, LaTeX will first try out
18894 , and then the others.
18895 If you don't use the default, LaTeX will try only the checked options but
18897 If none of the 4 placements are possible the procedure is internally repeated
18898 but it is tried to put the float on the following page.
18901 \begin_layout Standard
18902 By default, each option has its own rules:
18905 \begin_layout Labeling
18906 \labelwidthstring 00.00.0000
18913 only floats occupying less than 70\InsetSpace \thinspace{}
18914 % of the page can be placed at the top
18924 \begin_layout Labeling
18925 \labelwidthstring 00.00.0000
18928 Bottom\InsetSpace ~
18932 : only floats occupying less than 30\InsetSpace \thinspace{}
18933 % of the page can be placed at the bottom
18944 \begin_layout Labeling
18945 \labelwidthstring 00.00.0000
18952 : only if more than 50\InsetSpace \thinspace{}
18953 % of the page are occupied by floats, several floats
18954 can be set together on a page.
18964 \begin_layout Standard
18965 If you don't like these rules, you can ignore them by using the additional
18968 Ignore\InsetSpace ~
18974 You can also redefine the rules with LaTeX-commands that are given in parenthese
18975 s behind the rules description above.
18976 To increase for example the often too small default of the bottom-rule
18977 to 50\InsetSpace \thinspace{}
18978 % of the page, add this line to your document preamble:
18981 \begin_layout Standard
18988 bottomfraction}{0.5}
18991 \begin_layout Standard
18992 Sometimes you might need, under all circumstances, a float to be placed
18993 exactly at the position where it is inserted.
18994 For this case you can use the option
19000 Use this option very rarely and only if the document is nearly ready to
19002 Because the float is then no longer able to
19003 \begin_inset Quotes eld
19007 \begin_inset Quotes erd
19010 when you change your document and this will often destroy the page layout.
19013 \begin_layout Standard
19014 There are no placement options for text wrap floats, because they are always
19015 surrounded by the text of a certain paragraph.
19016 \begin_inset VSpace bigskip
19022 \begin_layout Standard
19023 Sometimes you have the problem that a float is placed at the top of a page
19024 while its corresponding section starts at the middle of the page, so that
19025 the reader could think the float is part of the previous section.
19026 To avoid this the LaTeX-command
19030 suppressf\SpecialChar \textcompwordmark{}
19034 It suppresses a given float placement for the page where it is inserted
19035 and can therefore be used to avoid that floats could be set before a section
19037 To get this, add these commands to your document preamble:
19040 \begin_layout Standard
19057 suppressf\SpecialChar \textcompwordmark{}
19063 \begin_layout Standard
19064 You can define the same for all section headings, like chapters and subsections.
19065 This definition is not recommended to be used for small text parts like
19066 subsubsections because LaTeX may then have problems to find a suitable
19070 \begin_layout Standard
19071 \begin_inset VSpace bigskip
19074 In some cases it is required to have all figures/tables at the end of the
19076 For this purpose the LaTeX-package
19078 endf\SpecialChar \textcompwordmark{}
19082 \begin_inset LatexCommand index
19083 name "LaTeX-packages ! endfloat"
19088 It puts all figure and table floats at the end of the document into own
19090 At the original float position a text hint like
19091 \begin_inset Quotes eld
19096 [Figure\InsetSpace ~
19100 \begin_inset Quotes erd
19104 The endfloat-package is loaded in the preamble with the line
19107 \begin_layout Standard
19112 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19116 \begin_layout Standard
19117 There are various package options to format the created figure/table sections.
19118 For more information we refer to the
19120 endf\SpecialChar \textcompwordmark{}
19124 \begin_inset LatexCommand cite
19132 \begin_inset Note Greyedout
19135 \begin_layout Standard
19138 Note: endf\SpecialChar \textcompwordmark{}
19141 doesn't provide an automatic translation for the text hint, you have to
19142 do this manually, see section\InsetSpace ~
19144 \begin_inset LatexCommand cite
19157 \begin_inset Note Greyedout
19160 \begin_layout Standard
19165 There is currently a bug in
19167 endf\SpecialChar \textcompwordmark{}
19170 when the caption contains a German
19171 \begin_inset Quotes eld
19175 \begin_inset Quotes erd
19179 Use in this case the command
19180 \begin_inset Quotes eld
19190 \begin_inset Quotes erd
19194 \begin_inset Quotes eld
19198 \begin_inset Quotes erd
19209 \begin_layout Standard
19210 \begin_inset VSpace bigskip
19213 For more details about float placements, have a look at LaTeX books,
19214 \begin_inset LatexCommand cite
19215 key "latexcompanion,latexguide,latexbook"
19222 \begin_layout Section
19224 \begin_inset LatexCommand label
19225 name "sec:Rotated-Floats"
19230 \begin_inset LatexCommand index
19231 name "Floats ! Rotating"
19238 \begin_layout Standard
19239 Especially for wide tables you might have floats rotated.
19240 To rotate a whole float including the caption, right-click on the float-box
19243 Rotate\InsetSpace ~
19249 \begin_layout Standard
19250 Rotated floats are always placed on its own page (or column, when you have
19251 a two-column document).
19252 They are normally rotated so that you can read them from the outside margin
19253 -- to the left on even pages, to the right on odd pages.
19254 To force a certain rotation direction for all pages, you can add either
19263 to the document class options.
19266 \begin_layout Standard
19267 Referencing rotated floats is the same like for normal floats, the caption
19268 format is also the same: Table\InsetSpace ~
19270 \begin_inset LatexCommand ref
19271 reference "tab:Rotated-table"
19275 is an example of a rotated table float.
19278 \begin_layout Standard
19279 \begin_inset Note Greyedout
19282 \begin_layout Standard
19287 Not all DVI-viewers are able to display rotated floats.
19295 \begin_layout Standard
19296 \begin_inset Float table
19301 \begin_layout Standard
19302 \begin_inset Caption
19304 \begin_layout Standard
19305 \begin_inset LatexCommand label
19306 name "tab:Rotated-table"
19318 \begin_layout Standard
19320 \begin_inset Tabular
19321 <lyxtabular version="3" rows="1" columns="5">
19323 <column alignment="center" valignment="top" leftline="true" width="0">
19324 <column alignment="center" valignment="top" leftline="true" width="0">
19325 <column alignment="center" valignment="top" leftline="true" width="0">
19326 <column alignment="center" valignment="top" leftline="true" width="0">
19327 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19328 <row topline="true" bottomline="true">
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" usebox="none">
19350 \begin_layout Standard
19356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19359 \begin_layout Standard
19365 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19368 \begin_layout Standard
19387 \begin_layout Section
19389 \begin_inset LatexCommand index
19390 name "Caption ! Formatting"
19395 \begin_inset LatexCommand index
19396 name "Floats ! Caption Formatting"
19401 \begin_inset LatexCommand index
19402 name "LaTeX-packages ! caption"
19407 \begin_inset LatexCommand label
19408 name "sec:Caption-Formatting"
19415 \begin_layout Standard
19420 environment is the default paragraph environment for
19425 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19428 \begin_inset Quotes eld
19436 \begin_inset Quotes erd
19439 followed by the caption text.
19441 \begin_inset Quotes eld
19445 \begin_inset Quotes erd
19448 is the actual reference number.
19449 By default the label and the number are in the same font as the caption
19450 text and a colon follows the number to divide the label from the text.
19451 This caption format is not suitable for all document formats.
19455 \begin_layout Standard
19456 To change the default caption format, load the LaTeX-package
19461 \begin_inset LatexCommand index
19462 name "LaTeX-packages ! caption"
19466 in the document preamble with this line:
19469 \begin_layout Standard
19474 usepackage[format definition]{caption}
19477 \begin_layout Standard
19478 To have for example the label and the number in sans-serif bold font and
19479 the table captions always above the table like in this document, use the
19483 \begin_layout Standard
19488 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19491 \begin_layout Standard
19492 You can also define different caption formats for the different float types.
19493 In this case load the
19497 package without format specific options and define the different formats
19498 with the help of the command
19501 \begin_layout Standard
19506 captionsetup[float type]{format definition}
19509 \begin_layout Standard
19510 in the document preamble.
19511 For example the caption formats of Figure\InsetSpace ~
19513 \begin_inset LatexCommand ref
19514 reference "fig:This-is-an-fig"
19518 and Table\InsetSpace ~
19520 \begin_inset LatexCommand ref
19521 reference "tab:This-is-an-tab"
19525 can be created using these commands in the document preamble:
19528 \begin_layout Standard
19533 usepackage[tableposition=top]{caption}
19541 captionsetup[f\SpecialChar \textcompwordmark{}
19542 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19548 \begin_layout Standard
19556 captionsetup[figure]
19567 captionsetup[table]{labelfont={bf,sf}}
19570 \begin_layout Standard
19571 \begin_inset Note Greyedout
19574 \begin_layout Standard
19583 has no effect when a
19588 \begin_inset LatexCommand index
19589 name "LaTeX-packages ! koma-script"
19593 document class is used.
19594 In this case the document class option
19606 \begin_layout Standard
19607 For more information about the package
19611 we refer to its documentation
19612 \begin_inset LatexCommand cite
19613 key "caption,caption-de"
19620 \begin_layout Standard
19621 To change the label name from e.g.
19623 \begin_inset Quotes eld
19627 \begin_inset Quotes erd
19631 \begin_inset Quotes eld
19635 \begin_inset Quotes erd
19638 use this preamble command:
19641 \begin_layout Standard
19648 fnum@figure}{Image~
19653 \begin_layout Standard
19660 inserts the figure number and
19663 \begin_inset Quotes eld
19669 \begin_inset Quotes erd
19672 creates a protected space.
19675 \begin_layout Standard
19676 \begin_inset VSpace bigskip
19684 \begin_inset LatexCommand index
19685 name "LaTeX-packages ! koma-script"
19691 article (koma-script)
19699 letter (koma-script)
19703 report (koma-script)
19705 \InsetSpace \thinspace{}
19706 ), you can alternatively to the
19714 's built-in command
19721 For example, to have the caption label in bold, add this command to your
19725 \begin_layout Standard
19730 setkomafont{captionlabel}{
19735 \begin_layout Standard
19736 For more information about
19747 \begin_inset LatexCommand cite
19748 key "koma-script,koma-script-de"
19755 \begin_layout Standard
19759 \begin_layout Standard
19763 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19770 \begin_inset Note Note
19773 \begin_layout Standard
19774 The caption format is changed only for this example.
19782 \begin_layout Standard
19783 \begin_inset Float figure
19789 \begin_layout Standard
19791 \begin_inset Graphics
19792 filename clipart/mobius.eps
19801 \begin_layout Standard
19802 \begin_inset Caption
19804 \begin_layout Standard
19805 \begin_inset LatexCommand label
19806 name "fig:This-is-an-fig"
19810 This is an example figure caption that is longer than one line to show the
19811 different caption format.
19812 Here a self-defined caption format is used.
19825 \begin_layout Standard
19829 \begin_layout Standard
19833 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19842 \begin_layout Standard
19843 \begin_inset Float table
19849 \begin_layout Standard
19850 \begin_inset Caption
19852 \begin_layout Standard
19853 \begin_inset LatexCommand label
19854 name "tab:This-is-an-tab"
19858 This is an example table caption that is longer than one line to show the
19859 different caption format.
19860 Here the standard caption format for tables in this document is used.
19868 \begin_layout Standard
19870 \begin_inset Tabular
19871 <lyxtabular version="3" rows="1" columns="5">
19873 <column alignment="center" valignment="top" leftline="true" width="0">
19874 <column alignment="center" valignment="top" leftline="true" width="0">
19875 <column alignment="center" valignment="top" leftline="true" width="0">
19876 <column alignment="center" valignment="top" leftline="true" width="0">
19877 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19878 <row topline="true" bottomline="true">
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" usebox="none">
19900 \begin_layout Standard
19906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19909 \begin_layout Standard
19915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19918 \begin_layout Standard
19937 \begin_layout Section
19939 \begin_inset LatexCommand index
19940 name "Caption ! Placement"
19945 \begin_inset LatexCommand index
19946 name "Floats ! Caption Placement"
19951 \begin_inset LatexCommand label
19952 name "sec:Caption-Placement"
19959 \begin_layout Standard
19960 The common caption placement rule is:
19963 \begin_layout Description
19964 Figure: Caption is set below the figure
19967 \begin_layout Description
19968 Table: Caption is set above the table
19971 \begin_layout Standard
19972 Having the caption above the table is unfortunately not supported in LaTeX's
19974 That means if you are using the document classes
19990 there will be no space between the caption and the table.
19991 To insert the needed space, add the following option to the load command
19992 of the LaTeX-package
19996 in your document preamble
20000 \begin_layout Standard
20001 See section\InsetSpace ~
20003 \begin_inset LatexCommand ref
20004 reference "sec:Caption-Formatting"
20008 for more information of the package
20020 \begin_layout Standard
20026 \begin_layout Standard
20032 \begin_inset LatexCommand index
20033 name "LaTeX-packages ! koma-script"
20039 article (koma-script)
20047 letter (koma-script)
20051 report (koma-script)
20053 \InsetSpace \thinspace{}
20054 ), you can alternatively to the
20058 package set the document class option
20062 , or you can use the environment
20064 caption\InsetSpace ~
20074 \begin_layout Standard
20075 \begin_inset VSpace bigskip
20078 It is also possible to set the caption beside a figure or table.
20079 To get this the LaTeX-package
20084 \begin_inset LatexCommand index
20085 name "LaTeX-packages ! sidecap"
20089 has to be loaded in the document preamble with the line
20092 \begin_layout Standard
20097 usepackage[option]{sidecap}
20100 \begin_layout Standard
20101 If you set no option, the caption is placed on the side of the outer page
20102 margin -- to the right on odd pages, to the left on even pages.
20103 You can change the placement to inner margin with the option
20108 To force the placement always to the right or left, use the option
20119 \begin_layout Standard
20120 To place in LyX the caption of a float on the side, it is necessary to add
20121 these commands to the document preamble:
20124 \begin_layout Standard
20130 \begin_layout Standard
20143 \begin_layout Standard
20164 \begin_layout Standard
20185 \begin_layout Standard
20196 renewenvironment{table}{
20203 \begin_layout Standard
20216 \begin_layout Standard
20237 \begin_layout Standard
20255 \begin_layout Standard
20268 \begin_layout Standard
20283 f\SpecialChar \textcompwordmark{}
20290 \begin_layout Standard
20303 MyEndf\SpecialChar \textcompwordmark{}
20306 endf\SpecialChar \textcompwordmark{}
20313 \begin_layout Standard
20324 renewenvironment{f\SpecialChar \textcompwordmark{}
20327 begin{SCf\SpecialChar \textcompwordmark{}
20330 end{SCf\SpecialChar \textcompwordmark{}
20334 \begin_layout Standard
20347 \begin_layout Standard
20360 f\SpecialChar \textcompwordmark{}
20369 \begin_layout Standard
20382 endf\SpecialChar \textcompwordmark{}
20385 MyEndf\SpecialChar \textcompwordmark{}
20389 \begin_layout Standard
20395 \begin_layout Standard
20396 The commands allow you to redefine the floats so that the caption is set
20398 For figure floats use the command
20401 \begin_layout Standard
20409 \begin_layout Standard
20410 in ERT before the float.
20411 Behind the float insert the command
20414 \begin_layout Standard
20422 \begin_layout Standard
20423 in ERT to get back to the original float definition.
20426 \begin_layout Standard
20427 For table floats use the corresponding commands
20430 \begin_layout Standard
20444 \begin_layout Standard
20445 Figure\InsetSpace ~
20447 \begin_inset LatexCommand ref
20448 reference "fig:cap-beside-fig"
20452 and Table\InsetSpace ~
20454 \begin_inset LatexCommand ref
20455 reference "tab:cap-beside-tab"
20459 are examples where the caption is set beside.
20462 \begin_layout Standard
20463 You can see in the examples that the caption text appears at the top of
20464 the floats for table floats and at the bottom for figure floats.
20465 To change this, you can use the command
20468 \begin_layout Standard
20473 sidecaptionvpos{float type}{placement}
20476 \begin_layout Standard
20477 in the document preamble or in ERT before the float.
20478 The float type is either
20486 , the placement can be
20487 \begin_inset Quotes eld
20495 \begin_inset Quotes erd
20499 \begin_inset Quotes eld
20507 \begin_inset Quotes erd
20511 \begin_inset Quotes eld
20519 \begin_inset Quotes erd
20523 To have for example the caption of figure floats vertically centered, use
20527 \begin_layout Standard
20532 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20536 \begin_layout Standard
20537 This was used for Figure\InsetSpace ~
20539 \begin_inset LatexCommand ref
20540 reference "fig:cap-beside-fig-2"
20547 \begin_layout Standard
20548 \begin_inset VSpace medskip
20551 For more information about the package
20555 we refer to its documentation
20556 \begin_inset LatexCommand cite
20564 \begin_layout Standard
20565 \begin_inset Note Greyedout
20568 \begin_layout Standard
20578 \begin_inset LatexCommand index
20579 name "LaTeX-packages ! hypcap"
20583 , described in section\InsetSpace ~
20585 \begin_inset LatexCommand ref
20586 reference "sub:Reference-Position"
20590 , has no effect on floats with the caption set beside.
20598 \begin_layout Standard
20602 \begin_layout Standard
20614 \begin_layout Standard
20615 \begin_inset Float figure
20620 \begin_layout Standard
20621 \begin_inset Graphics
20622 filename clipart/escher-lsd.eps
20630 \begin_layout Standard
20631 \begin_inset Caption
20633 \begin_layout Standard
20634 \begin_inset LatexCommand label
20635 name "fig:cap-beside-fig"
20639 This is a caption beside a figure.
20652 \begin_layout Standard
20656 \begin_layout Standard
20668 \begin_layout Standard
20669 \begin_inset Float table
20674 \begin_layout Standard
20675 \begin_inset Caption
20677 \begin_layout Standard
20678 \begin_inset LatexCommand label
20679 name "tab:cap-beside-tab"
20683 This is a caption beside a table.
20691 \begin_layout Standard
20692 \begin_inset Tabular
20693 <lyxtabular version="3" rows="4" columns="5">
20695 <column alignment="center" valignment="top" leftline="true" width="0">
20696 <column alignment="center" valignment="top" leftline="true" width="0">
20697 <column alignment="center" valignment="top" leftline="true" width="0">
20698 <column alignment="center" valignment="top" leftline="true" width="0">
20699 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20700 <row topline="true">
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" usebox="none">
20722 \begin_layout Standard
20728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20731 \begin_layout Standard
20737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20740 \begin_layout Standard
20747 <row topline="true">
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" usebox="none">
20769 \begin_layout Standard
20775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20778 \begin_layout Standard
20784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20787 \begin_layout Standard
20794 <row topline="true">
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" usebox="none">
20816 \begin_layout Standard
20822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20825 \begin_layout Standard
20831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20834 \begin_layout Standard
20841 <row topline="true" bottomline="true">
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
20869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20872 \begin_layout Standard
20878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20881 \begin_layout Standard
20900 \begin_layout Standard
20904 \begin_layout Standard
20916 \begin_layout Standard
20920 \begin_layout Standard
20924 sidecaptionvpos{figure}{c}
20930 \begin_inset Float figure
20935 \begin_layout Standard
20936 \begin_inset Graphics
20937 filename clipart/escher-lsd.eps
20945 \begin_layout Standard
20946 \begin_inset Caption
20948 \begin_layout Standard
20949 \begin_inset LatexCommand label
20950 name "fig:cap-beside-fig-2"
20954 This is a vertically centered caption beside a figure.
20967 \begin_layout Standard
20971 \begin_layout Standard
20983 \begin_layout Section
20985 \begin_inset LatexCommand label
20986 name "sec:Listings-of-Floats"
20991 \begin_inset LatexCommand index
20992 name "Floats ! Float Lists"
20999 \begin_layout Standard
21000 Similar to the the table of contents where the sections of the document
21001 are listed, there are listings for all float types, like the figures of
21003 You can insert them via the
21005 Insert\SpecialChar \menuseparator
21013 \begin_layout Standard
21014 The list entries are the float captions or its short title, the float number,
21015 and the page number where they appear in the document.
21018 \begin_layout Standard
21019 You can find the list of figures and tables at the end of this document.
21022 \begin_layout Chapter
21026 \begin_layout Section
21030 \begin_layout Standard
21043 \begin_layout Standard
21051 \begin_inset LatexCommand label
21052 name "sec:LyX-Notes"
21057 \begin_inset LatexCommand index
21058 name "Notes ! LyX Notes"
21063 \begin_inset Note Note
21066 \begin_layout Standard
21069 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
21070 are displayed wrongly in PDF-bookmarks.
21071 For more information about this, have a look at
21072 \begin_inset LatexCommand cite
21085 \begin_layout Standard
21086 Notes are inserted with the toolbar button
21087 \begin_inset Graphics
21088 filename ../images/note-insert.xpm
21095 Insert\SpecialChar \menuseparator
21099 There are five types of notes:
21102 \begin_layout Description
21104 Note This note type is for internal notes that won't appear in the output.
21105 Its note-box looks like this:
21110 \begin_inset Graphics
21111 filename clipart/LyXNoteImageQt4.png
21118 \begin_inset Note Note
21121 \begin_layout Standard
21122 This is text in a note box that doesn't appear in the output.
21130 \begin_layout Description
21131 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21132 ent, when you export the document to LaTeX via the menu
21134 File\SpecialChar \menuseparator
21135 Export\SpecialChar \menuseparator
21136 LaTeX (pdflatex) / LaTeX (plain)
21139 Its note-box looks like this:
21144 \begin_inset Graphics
21145 filename clipart/CommentNoteImageQt4.png
21152 \begin_inset Note Comment
21155 \begin_layout Standard
21156 This is text in a note box that only appears as comment in LaTeX-files.
21164 \begin_layout Description
21165 Greyed\InsetSpace ~
21166 Out This note will appear in the output as grey text.
21167 Its note-box looks like this:
21172 \begin_inset Graphics
21173 filename clipart/GreyedOutNoteImageQt4.png
21185 \begin_layout Standard
21189 renewenvironment{lyxgreyedout}
21192 \begin_layout Standard
21196 textcolor[gray]{0.8}
21206 \begin_inset Note Greyedout
21209 \begin_layout Standard
21214 \begin_layout Standard
21215 This is an example footnote within a greyed out note.
21220 of a comment that appears in the output as grey text.
21229 \begin_layout Standard
21233 renewenvironment{lyxgreyedout}
21236 \begin_layout Standard
21250 \begin_inset Note Note
21253 \begin_layout Standard
21254 The greyed out note is here redefined to show it with the original LyX definitio
21255 n because greyed out notes are redefined in the preamble of this document,
21256 as described below, to have blue text.
21265 As you can see in the example, the first line of greyed out notes is a bit
21266 indented and greyed out notes can have footnotes.
21269 \begin_layout Description
21270 Framed This note will appear in the output as framed text.
21271 Its note-box looks like this:
21276 \begin_inset Graphics
21277 filename clipart/FramedNoteImageQt4.png
21284 \begin_inset Note Framed
21287 \begin_layout Standard
21288 This is text in a note box that appears framed in the output.
21293 In contrary to framed boxes
21297 \begin_layout Standard
21298 Framed boxes are described in section\InsetSpace ~
21300 \begin_inset LatexCommand ref
21301 reference "sec:Framed-Boxes"
21310 the frame uses always the whole text width and the note is set into its
21314 \begin_layout Description
21315 Shaded This note will appear in the output with red background color.
21316 Its note box looks like this:
21321 \begin_inset Graphics
21322 filename clipart/ShadedNoteImageQt4.png
21329 \begin_inset Note Shaded
21332 \begin_layout Standard
21333 This text in a note box appears in the output with red background.
21338 In contrary to colored boxes
21342 \begin_layout Standard
21343 Colored boxes are described in section\InsetSpace ~
21345 \begin_inset LatexCommand ref
21346 reference "sec:Colored-Boxes"
21355 the note uses always the whole text width and the note is set into its
21359 \begin_layout Standard
21360 \begin_inset VSpace bigskip
21363 When you use the toolbar button
21364 \begin_inset Graphics
21365 filename ../images/note-insert.xpm
21376 You can switch between the five note types by right-clicking on the note-box.
21381 If you want to turn existing text into a note, mark it and click on the
21397 \begin_layout Standard
21398 \begin_inset VSpace bigskip
21401 You can change the text color of the greyed out notes in the preamble with
21402 the following command:
21405 \begin_layout Standard
21410 renewenvironment{lyxgreyedout}
21416 \begin_layout Standard
21434 \begin_layout Standard
21435 The available colors and the method to define own colors is explained in
21436 section\InsetSpace ~
21438 \begin_inset LatexCommand ref
21439 reference "sec:Colored-Tables"
21446 \begin_layout Standard
21447 Notes that appear in blue in this document are set using greyed out notes
21451 \begin_layout Standard
21452 \begin_inset VSpace bigskip
21458 \begin_layout Standard
21467 notes can be set in the
21474 \begin_layout Standard
21475 The default frame width for
21479 notes is 0.4\InsetSpace \thinspace{}
21480 pt; it can be changed by changing the size
21487 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21489 be changed by changing the size
21496 For example the frame appearance of the following
21500 note is set with the ERT commands
21503 \begin_layout Standard
21513 \begin_layout Standard
21517 \begin_layout Standard
21529 \begin_inset Note Framed
21532 \begin_layout Standard
21546 \begin_layout Standard
21560 \begin_layout Standard
21561 \begin_inset VSpace bigskip
21567 \begin_layout Standard
21572 notes the default space between the note content and the note border is
21573 3\InsetSpace \thinspace{}
21574 pt; it can be changed by changing the size
21582 The default background color red can be changed with the command
21586 def\SpecialChar \textcompwordmark{}
21594 def\SpecialChar \textcompwordmark{}
21597 command is explained in section\InsetSpace ~
21599 \begin_inset LatexCommand ref
21600 reference "sec:Colored-Tables"
21608 \begin_layout Standard
21615 \SpecialChar \textcompwordmark{}
21620 requires the LaTeX-package
21624 in the preamble, see section\InsetSpace ~
21626 \begin_inset LatexCommand ref
21627 reference "sec:Colored-Boxes"
21639 \begin_layout Standard
21640 For example the appearance of the following
21644 note is set with the ERT commands
21647 \begin_layout Standard
21660 def\SpecialChar \textcompwordmark{}
21661 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21664 \begin_layout Standard
21668 \begin_layout Standard
21681 \begin_layout Standard
21685 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21691 \begin_inset Note Shaded
21694 \begin_layout Standard
21697 This is yellow text in a
21707 note with darkgreen background.
21716 \begin_layout Standard
21729 \begin_layout Standard
21733 definecolor{shadecolor}{rgb}{1,0,0}
21741 \begin_layout Section
21743 \begin_inset LatexCommand label
21744 name "sec:Footnotes"
21749 \begin_inset LatexCommand index
21750 name "Notes ! Footnotes"
21755 \begin_inset LatexCommand index
21763 \begin_layout Standard
21764 Footnotes can be inserted using the toolbar button
21765 \begin_inset Graphics
21766 filename ../images/footnote-insert.xpm
21773 Insert\SpecialChar \menuseparator
21785 then the following footnote-box:
21786 \begin_inset Graphics
21787 filename clipart/footnoteQt4.png
21796 where you can enter the footnote text.
21797 If you want to turn existing text into a footnote, mark it and click on
21813 \begin_layout Standard
21814 Here is an example footnote:
21822 \begin_layout Standard
21823 \begin_inset LatexCommand label
21824 name "foot:This-is-an"
21828 This is an example footnote.
21841 \begin_layout Standard
21845 newcounter{MyRepeatFoot}
21848 \begin_layout Standard
21852 setcounter{MyRepeatFoot}{
21862 \begin_layout Standard
21863 The footnote will appear in the output as a superscript number at the text
21864 position where the footnote box is placed.
21865 The footnote text is placed at the bottom of the current page.
21866 The footnote number is calculated by LaTeX, the numbers are consecutive.
21867 It depends on your document-class, if the footnote number is reset for
21871 \begin_layout Standard
21872 Footnotes can be referenced like floats: Insert a label into the footnote
21873 and cross-reference this label in the text as described in section\InsetSpace ~
21875 \begin_inset LatexCommand ref
21876 reference "sec:Referencing-Floats"
21882 This is a cross-reference of Footnote\InsetSpace ~
21884 \begin_inset LatexCommand ref
21885 reference "foot:This-is-an"
21892 \begin_layout Standard
21893 \begin_inset VSpace defskip
21896 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21898 \begin_inset LatexCommand ref
21899 reference "sec:Minipages"
21904 Footnotes within longtables are described in section\InsetSpace ~
21906 \begin_inset LatexCommand ref
21907 reference "sub:Footnotes-in-Longtables"
21914 \begin_layout Standard
21915 \begin_inset VSpace defskip
21918 To create only a mark for a footnote, use the command
21922 footnotemark[number]
21925 This is used when you have the same annotation several times in a text
21926 but doesn't want to print the footnote text every time.
21929 the number of the repeating footnote while you are writing the text, you
21930 have to store its number.
21931 For the following footnote mark example, these commands were inserted in
21932 ERT behind Footnote\InsetSpace ~
21934 \begin_inset LatexCommand ref
21935 reference "foot:This-is-an"
21939 to store the footnote number:
21942 \begin_layout Standard
21947 newcounter{MyRepeatFoot}
21951 setcounter{MyRepeatFoot}{
21956 \begin_layout Standard
21957 The footnote mark was then created with this command:
21960 \begin_layout Standard
21970 \begin_layout Standard
21971 Here is an example footnote mark:
21979 \begin_layout Standard
21993 \begin_layout Subsection
21995 \begin_inset LatexCommand label
21996 name "sub:Footnote-Numbering"
22001 \begin_inset LatexCommand index
22002 name "Footnotes ! Numbering"
22009 \begin_layout Standard
22010 To reset the footnote number back to 1 after each section
22012 , add this command to your document preamble:
22015 \begin_layout Standard
22020 @addtoreset{footnote}{section}
22023 \begin_layout Standard
22024 \begin_inset VSpace bigskip
22027 The following preamble command changes the footnote numbering style to small
22031 \begin_layout Standard
22043 \begin_layout Standard
22047 \begin_layout Standard
22060 This is a footnote with roman numbering:
22064 \begin_layout Standard
22065 This is an example footnote with roman numbering.
22073 \begin_layout Standard
22074 To change the numbering style to capital roman numerals replace in the command
22089 \begin_inset Quotes eld
22093 \begin_inset Quotes erd
22096 footnotes with capital or small Latin letters use
22110 \begin_inset Quotes eld
22114 \begin_inset Quotes erd
22117 footnotes with symbols use
22126 \begin_layout Standard
22127 \begin_inset Note Greyedout
22130 \begin_layout Standard
22135 You can only number 26 footnotes with Latin letters, because this numbering
22136 is limited to single letters.
22144 \begin_inset Note Greyedout
22147 \begin_layout Standard
22152 You can only number 9 footnotes with symbols.
22160 \begin_layout Standard
22161 To return to the default numbering style when you changed to another one,
22174 in the command above.
22178 \begin_layout Standard
22194 \begin_layout Standard
22195 \begin_inset VSpace bigskip
22201 \begin_layout Standard
22202 If you want to have footnotes numbered in the scheme
22203 \begin_inset Quotes eld
22207 \begin_inset Quotes erd
22210 , add the following command to your document preamble:
22213 \begin_layout Standard
22218 numberwithin{footnote}{chapter}
22221 \begin_layout Standard
22222 To be able to use the command
22233 in the document settings the option
22243 \begin_layout Standard
22247 \begin_layout Standard
22251 numberwithin{footnote}{chapter}
22256 This is another example footnote:
22262 \begin_layout Standard
22263 This is a footnote numbered in the scheme
22264 \begin_inset Quotes eld
22268 \begin_inset Quotes erd
22282 \begin_layout Standard
22298 \begin_layout Standard
22299 \begin_inset Note Greyedout
22302 \begin_layout Standard
22313 always prints out the footnote number as arabic number; previous redefinitions
22314 to get non-arabic numbers are overwritten.
22322 \begin_layout Standard
22323 So to get for example the scheme
22324 \begin_inset Quotes eld
22330 \begin_inset Quotes erd
22333 , use this command instead of
22342 \begin_layout Standard
22356 \begin_layout Subsection
22358 \begin_inset LatexCommand index
22359 name "Footnotes ! Placement"
22366 \begin_layout Standard
22367 If you have several footnotes in one page, they appear without vertical
22368 space between them at the bottom of the page.
22369 To make them better readable you can e.\InsetSpace \thinspace{}
22371 add 1.5\InsetSpace \thinspace{}
22372 mm space with the following
22376 \begin_layout Standard
22398 \begin_layout Standard
22399 \begin_inset VSpace bigskip
22402 In a two-column document the footnotes appear at the bottom of every column,
22403 see Figure\InsetSpace ~
22405 \begin_inset LatexCommand ref
22406 reference "fig:Standard-footnote-placement"
22411 If the footnotes should only appear at the bottom of the right column,
22412 as in Figure\InsetSpace ~
22414 \begin_inset LatexCommand ref
22415 reference "fig:Footnote-placement-in"
22419 , use the LaTeX-package
22424 \begin_inset LatexCommand index
22425 name "LaTeX-packages ! ftnright"
22429 with this command in the document preamble:
22432 \begin_layout Standard
22437 usepackage{ftnright}
22440 \begin_layout Standard
22441 \begin_inset Float figure
22447 \begin_layout Standard
22451 \begin_layout Standard
22461 \begin_inset Graphics
22462 filename clipart/without_fntright.pdf
22471 \begin_layout Standard
22481 \begin_layout Standard
22482 \begin_inset Caption
22484 \begin_layout Standard
22485 \begin_inset LatexCommand label
22486 name "fig:Standard-footnote-placement"
22490 Standard footnote placement in two-column documents.
22503 \begin_layout Standard
22504 \begin_inset Float figure
22510 \begin_layout Standard
22514 \begin_layout Standard
22524 \begin_inset Graphics
22525 filename clipart/with_fntright.pdf
22534 \begin_layout Standard
22544 \begin_layout Standard
22545 \begin_inset Caption
22547 \begin_layout Standard
22548 \begin_inset LatexCommand label
22549 name "fig:Footnote-placement-in"
22553 Footnote placement in two-column documents when the LaTeX-package
22570 \begin_layout Standard
22571 \begin_inset VSpace bigskip
22574 In some scientific literature it is usual to collect the footnotes and print
22575 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22577 \begin_inset LatexCommand ref
22578 reference "fig:Endnotes----footnotes"
22583 They are then so called
22584 \begin_inset Quotes eld
22588 \begin_inset Quotes erd
22592 To use endnotes instead of footnotes in your document, load the LaTeX-package
22598 \begin_inset LatexCommand index
22599 name "LaTeX-packages ! endnotes"
22603 with the document preamble lines
22606 \begin_layout Standard
22611 usepackage{endnotes}
22622 \begin_layout Standard
22623 To insert the collected footnotes, insert the command
22626 \begin_layout Standard
22634 \begin_layout Standard
22635 in ERT at the the end of a section or chapter.
22638 \begin_layout Standard
22639 \begin_inset Float figure
22644 \begin_layout Standard
22649 \begin_layout Standard
22659 \begin_inset Graphics
22660 filename clipart/endnotes.pdf
22668 \begin_layout Standard
22678 \begin_layout Standard
22679 \begin_inset Caption
22681 \begin_layout Standard
22682 \begin_inset LatexCommand label
22683 name "fig:Endnotes----footnotes"
22687 Endnotes -- footnotes are printed in a separate paragraph at the end of
22688 sections or chapters.
22701 \begin_layout Standard
22702 \begin_inset VSpace medskip
22705 The paragraph heading for the endnotes isn't automatically translated into
22706 the document language, this must be done manually.
22707 The following preamble command translate the default English name
22708 \begin_inset Quotes eld
22712 \begin_inset Quotes erd
22715 to the German translation
22716 \begin_inset Quotes eld
22720 \begin_inset Quotes erd
22726 \begin_layout Standard
22733 notesname}{Anmerkungen}
22736 \begin_layout Standard
22737 \begin_inset VSpace medskip
22740 The numbering of endnotes can be changed like the footnote numbering as
22741 described in section\InsetSpace ~
22743 \begin_inset LatexCommand ref
22744 reference "sub:Footnote-Numbering"
22748 ; just replace the command
22761 To reset the endnote number use the command
22767 as described in section\InsetSpace ~
22769 \begin_inset LatexCommand ref
22770 reference "sub:Footnote-Numbering"
22774 and replace the command parameter
22785 \begin_layout Standard
22786 To create only a mark for an endnote, use the command
22790 endnotemark[number]
22792 similar to the command
22798 , described in section\InsetSpace ~
22800 \begin_inset LatexCommand ref
22801 reference "sec:Footnotes"
22808 \begin_layout Standard
22809 \begin_inset VSpace bigskip
22812 Footnotes can also be placed in the page margin and the footnote text alignment
22813 can be changed, see the LaTeX-package
22818 \begin_inset LatexCommand index
22819 name "LaTeX-packages ! footmisc"
22824 \begin_inset LatexCommand cite
22829 for more information about this.
22832 \begin_layout Standard
22833 For various further footnote formatting issues have a look at LaTeX-books,
22835 \begin_inset LatexCommand cite
22836 key "latexcompanion,latexguide,latexbook"
22843 \begin_layout Section
22845 \begin_inset LatexCommand index
22846 name "Notes ! Margin Notes"
22853 \begin_layout Standard
22854 Margin notes look and behave in LyX like footnotes.
22855 They are inserted via the menu
22857 Insert\SpecialChar \menuseparator
22858 Marginal\InsetSpace ~
22861 or the toolbar button
22862 \begin_inset Graphics
22863 filename ../images/marginalnote-insert.xpm
22879 \begin_inset Quotes eld
22883 \begin_inset Quotes erd
22886 appears where you can enter the text of the margin note.
22889 \begin_layout Standard
22890 At the side is an example margin note.
22894 \begin_inset Marginal
22897 \begin_layout Standard
22898 This is a margin note.
22906 \begin_layout Standard
22907 Margin notes appear at the right side in single-sided documents.
22908 In double-sided documents they appear in the outer margin -- left on even
22909 pages, right on odd pages.
22910 The text of margin notes is aligned opposite to the outer margin -- right-align
22911 ed when the note appears in the left margin.
22912 The first line of the margin note is placed at the position of the text
22913 line where it is inserted in the document.
22916 \begin_layout Standard
22917 \begin_inset VSpace bigskip
22920 To place the margin note in the inner margin, add the command
22923 \begin_layout Standard
22931 \begin_layout Standard
22932 in ERT before a margin note.
22933 The new placement is valid for all following margin notes.
22937 \begin_layout Standard
22947 \begin_inset Marginal
22950 \begin_layout Standard
22951 This is a margin note in the inner margin.
22963 \begin_inset Note Greyedout
22966 \begin_layout Standard
22971 There is often not enough space in the inner margin so that the notes are
22972 not correctly displayed in the output.
22980 \begin_layout Standard
22981 To return to the default placement insert the command
22984 \begin_layout Standard
22992 \begin_layout Standard
22997 \begin_layout Standard
23007 \begin_inset Note Greyedout
23010 \begin_layout Standard
23015 The command is ignored when it is within a paragraph where also the command
23030 \begin_layout Standard
23031 \begin_inset VSpace bigskip
23038 \begin_inset Marginal
23041 \begin_layout Standard
23042 AVeryLongMarginParWord that isn't hyphenated.
23050 Similar to the case described in section\InsetSpace ~
23052 \begin_inset LatexCommand ref
23053 reference "sub:Multiple-Lines-in"
23057 , long words cannot be hyphenated when they are the first word in a margin
23059 To avoid this, insert the command
23062 \begin_layout Standard
23070 \begin_layout Standard
23071 in ERT before the word
23075 \begin_inset Marginal
23078 \begin_layout Standard
23082 \begin_layout Standard
23091 AVeryLongMarginParWord that is hyphenated.
23099 \begin_layout Standard
23100 \begin_inset VSpace bigskip
23106 \begin_layout Standard
23107 \begin_inset Note Greyedout
23110 \begin_layout Standard
23115 Margin notes can normally not be used inside tables, floats, and footnotes.
23123 \begin_layout Standard
23124 \begin_inset VSpace bigskip
23130 \begin_layout Standard
23134 \begin_layout Standard
23144 \begin_inset Note Note
23147 \begin_layout Standard
23148 The following section will only be displayed when you have the LaTeX-package
23161 \begin_layout Standard
23162 This restriction can be evaded by using the LaTeX-package
23167 \begin_inset LatexCommand index
23168 name "LaTeX-packages ! marginnote"
23173 By adding these two lines to your document preamble, the command used by
23174 LyX for margin notes is redefined to use the command provided by the
23181 \begin_layout Standard
23186 usepackage{marginnote}
23197 \begin_layout Standard
23198 This is also used in this document because
23202 has another useful feature: You can set a vertical offset for the note.
23203 This is often needed when too many margin notes are too close together
23204 or for a better page layout.
23205 The offset is set in LyX as ERT directly behind the margin note in the
23209 \begin_layout Standard
23215 \begin_layout Standard
23216 where the offset is a length with one of the units listed in Table\InsetSpace ~
23218 \begin_inset LatexCommand ref
23219 reference "tab:Units"
23224 A negative value shifts the note up, a positive value shifts it down.
23228 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23231 \begin_inset Quotes eld
23241 \begin_inset Quotes erd
23245 \begin_inset Marginal
23248 \begin_layout Standard
23249 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23250 cm from its original position.
23262 \begin_layout Standard
23272 \begin_layout Standard
23273 \begin_inset VSpace medskip
23280 you can also change the alignment of the text in the margin note.
23281 For example the commands
23284 \begin_layout Standard
23291 raggedleftmarginnote}{
23299 raggedrightmarginnote}{
23304 \begin_layout Standard
23305 set the alignment to centered.
23310 raggedleftmarginnote
23312 denotes margin notes that appear at the left side.
23319 \begin_layout Standard
23325 raggedleftmarginnote}{
23330 \begin_layout Standard
23336 raggedrightmarginnote}{
23344 \begin_inset Marginal
23347 \begin_layout Standard
23348 The text of this margin note is centered.
23359 \begin_layout Standard
23366 raggedleftmarginnote}{
23374 raggedrightmarginnote}{
23383 \begin_layout Standard
23389 raggedleftmarginnote}{
23394 \begin_layout Standard
23400 raggedrightmarginnote}{
23410 \begin_layout Standard
23411 \begin_inset VSpace medskip
23414 For the other features of
23418 we refer to its documentation
23419 \begin_inset LatexCommand cite
23427 \begin_layout Standard
23428 \begin_inset VSpace bigskip
23431 You can adjust the layout of margin notes by changing its definition.
23432 To create for example a header for all margin notes with the underlined,
23433 sans-serif, and bold header text
23434 \begin_inset Quotes eld
23446 \begin_inset Quotes erd
23449 , add this to your document preamble:
23452 \begin_layout Standard
23475 \begin_layout Standard
23492 underbar{Attention!}}}%
23498 \begin_layout Standard
23516 \begin_layout Standard
23523 \begin_layout Standard
23534 \begin_layout Standard
23545 \begin_layout Standard
23553 underbar{Attention!}}}%
23556 \begin_layout Standard
23570 \begin_inset Marginal
23573 \begin_layout Standard
23574 This is a margin note with a defined heading.
23586 \begin_layout Standard
23600 \begin_layout Standard
23617 \begin_inset Note Note
23620 \begin_layout Standard
23621 The margin note format is changed only for this example.
23629 \begin_layout Standard
23633 \begin_layout Standard
23643 \begin_inset Note Note
23646 \begin_layout Standard
23647 The following will be displayed when the LaTeX-package
23659 \begin_layout Standard
23660 You need to install the LaTeX-package
23664 to see the following part of this section in the output.
23667 \begin_layout Standard
23671 \begin_layout Standard
23683 \begin_layout Chapter
23687 \begin_layout Section
23689 \begin_inset LatexCommand index
23690 name "Boxes ! Introduction"
23697 \begin_layout Standard
23698 Boxes are used to format a block of text.
23699 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23701 \begin_inset LatexCommand ref
23702 reference "sec:Minipages"
23706 , to frame texts, see section\InsetSpace ~
23708 \begin_inset LatexCommand ref
23709 reference "sec:Framed-Boxes"
23713 , to prevent words to be hyphenated, see section\InsetSpace ~
23715 \begin_inset LatexCommand ref
23716 reference "sec:Prevent-Hyphenation"
23720 , to align text, see section\InsetSpace ~
23722 \begin_inset LatexCommand ref
23723 reference "sub:Vertical-Alignment"
23727 , or to set the background color of texts, see section\InsetSpace ~
23729 \begin_inset LatexCommand ref
23730 reference "sec:Colored-Boxes"
23737 \begin_layout Standard
23738 Boxes can be inserted with the menu
23740 Insert\SpecialChar \menuseparator
23744 A grey box with the label
23749 \begin_inset Graphics
23750 filename clipart/BoxInsetDefaultQt4.png
23755 , will be inserted.
23756 The box type can be specified by right-clicking on the box.
23757 The appearing box dialog offers the
23775 is the default for new boxes and is explained in section\InsetSpace ~
23777 \begin_inset LatexCommand ref
23778 reference "sec:Minipages"
23786 is described in section\InsetSpace ~
23788 \begin_inset LatexCommand ref
23789 reference "sec:Parboxes"
23796 \begin_layout Standard
23797 Boxes aren't numbered and can therefore not be referenced like floats or
23801 \begin_layout Standard
23802 \begin_inset Note Greyedout
23805 \begin_layout Standard
23810 Due to a bug in LyX you have to insert a protected space behind a box when
23811 you want to separate in a line the box from the following text with a space.
23819 \begin_layout Standard
23820 \begin_inset Note Greyedout
23823 \begin_layout Standard
23828 Boxes must not be the item in an
23844 \begin_layout Standard
23845 \begin_inset Note Greyedout
23848 \begin_layout Standard
23853 For an unknown reason you can only set the
23862 when you use a framed box.
23868 type and without frames are explained in section\InsetSpace ~
23870 \begin_inset LatexCommand ref
23871 reference "sec:Prevent-Hyphenation"
23883 \begin_layout Section
23885 \begin_inset LatexCommand label
23886 name "sec:Box-Dialog"
23891 \begin_inset LatexCommand index
23892 name "Boxes ! Box Dialog"
23897 \begin_inset LatexCommand index
23898 name "Boxes ! Alignment"
23905 \begin_layout Standard
23906 In the box dialog you can adjust the box geometry in the fields
23915 The available units for the geometry are explained in Table\InsetSpace ~
23917 \begin_inset LatexCommand ref
23918 reference "tab:Units"
23927 offers the following additional sizes:
23930 \begin_layout Description
23931 Depth This is the plain text
23932 \begin_inset Quotes eld
23936 \begin_inset Quotes erd
23940 It ignores the total depth when there are multiple text lines in the box:
23947 \begin_inset Box Boxed
23956 height_special "depth"
23959 \begin_layout Standard
23961 Box height set to 1\InsetSpace \thinspace{}
23974 \begin_layout Description
23975 Height This is the heigth of the text that is inside the box.
23976 A value of e.\InsetSpace \thinspace{}
23978 2 for this size will set the box heigth to 2 times the text
23980 \begin_inset Box Boxed
23989 height_special "height"
23992 \begin_layout Standard
23994 Box height set to 2\InsetSpace \thinspace{}
24003 \begin_layout Description
24005 Height This is the Height\InsetSpace \thinspace{}
24006 +\InsetSpace \thinspace{}
24008 \begin_inset Box Boxed
24017 height_special "totalheight"
24020 \begin_layout Standard
24022 Box height set to 1\InsetSpace \thinspace{}
24032 \begin_layout Description
24033 Width This set the width of the box as heigth:
24034 \begin_inset Box Boxed
24043 height_special "width"
24046 \begin_layout Standard
24048 Box height set to 1\InsetSpace \thinspace{}
24057 \begin_layout Standard
24058 \begin_inset VSpace bigskip
24061 When you have chosen an
24066 , the vertical box alignment can be:
24069 \begin_layout Description
24070 Top This is an example text line.
24072 \begin_inset Box Boxed
24081 height_special "totalheight"
24084 \begin_layout Standard
24086 This box is top-aligned.
24092 This is an example text line.
24095 \begin_layout Description
24096 Middle This is an example text line.
24098 \begin_inset Box Boxed
24107 height_special "totalheight"
24110 \begin_layout Standard
24112 This box is middle-aligned.
24118 This is an example text line.
24121 \begin_layout Description
24122 Bottom This is an example text line.
24124 \begin_inset Box Boxed
24133 height_special "totalheight"
24136 \begin_layout Standard
24138 This box is bottom-aligned.
24144 This is an example text line.
24147 \begin_layout Standard
24148 The horizontal box alignment can be set via LyX's paragraph dialog when
24149 you set the box into its own paragraph.
24152 \begin_layout Standard
24153 \begin_inset VSpace bigskip
24156 When you have chosen an
24161 , the box content can be vertical aligned to:
24164 \begin_layout Description
24165 top This is an example text line.
24167 \begin_inset Box Boxed
24176 height_special "totalheight"
24179 \begin_layout Standard
24181 This box text is top-aligned.
24187 This is an example text line.
24190 \begin_layout Description
24191 middle This is an example text line.
24193 \begin_inset Box Boxed
24202 height_special "totalheight"
24205 \begin_layout Standard
24207 This box text is middle-aligned.
24213 This is an example text line.
24216 \begin_layout Description
24217 bottom This is an example text line.
24219 \begin_inset Box Boxed
24228 height_special "totalheight"
24231 \begin_layout Standard
24233 This box text is bottom-aligned.
24239 This is an example text line.
24242 \begin_layout Description
24243 stretch This is an example text line.
24245 \begin_inset Box Boxed
24254 height_special "totalheight"
24257 \begin_layout Standard
24262 \begin_layout Standard
24267 \begin_layout Standard
24275 This is an example text line.
24278 \begin_layout Standard
24279 To stretch the box content, it must consist of more than one paragraph.
24280 In the example above every text line is in an own paragraph.
24283 \begin_layout Standard
24284 \begin_inset VSpace bigskip
24287 To align the box content horizontally you can use LyX's paragraph dialog
24288 when you have chosen an
24296 \begin_layout Standard
24298 \begin_inset Box Boxed
24307 height_special "totalheight"
24310 \begin_layout Standard
24315 \begin_layout Standard
24320 \begin_layout Standard
24330 \begin_layout Standard
24331 If you haven't set an
24336 , you can align the box content horizontally in the box dialog.
24339 \begin_layout Standard
24341 \begin_inset Box Boxed
24350 height_special "totalheight"
24353 \begin_layout Standard
24355 This box text is horizontally stretched.
24363 \begin_layout Section
24365 \begin_inset LatexCommand label
24366 name "sec:Framed-Boxes"
24371 \begin_inset LatexCommand index
24372 name "Boxes ! Frames"
24379 \begin_layout Standard
24380 The frame style of the box can be specified in the box-dialog in the drop-down
24386 The following frame types are possible:
24389 \begin_layout Description
24390 Rectangular\InsetSpace ~
24391 box This draws a rectangle frame around the box.
24392 The frame line thickness has the size of
24400 \begin_inset Box Boxed
24409 height_special "totalheight"
24412 \begin_layout Standard
24422 \begin_layout Description
24425 thin This draws an oval frame around the box.
24426 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24429 \begin_inset Box ovalbox
24438 height_special "totalheight"
24441 \begin_layout Standard
24451 \begin_layout Description
24454 thick This draws an oval frame around the box.
24455 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24458 \begin_inset Box Ovalbox
24467 height_special "totalheight"
24470 \begin_layout Standard
24480 \begin_layout Description
24481 Shadow\InsetSpace ~
24482 box This draws a rectangle frame with a shadow around the box.
24483 The frame line thickness has the size of
24489 , the shadow has a width of 4\InsetSpace \thinspace{}
24492 \begin_inset Box Shadowbox
24501 height_special "totalheight"
24504 \begin_layout Standard
24514 \begin_layout Description
24515 Double\InsetSpace ~
24516 box This draws a double-line rectangle frame around the box.
24517 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24524 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24532 The distance between the lines is 1.5\InsetSpace \thinspace{}
24539 \InsetSpace \thinspace{}
24540 +\InsetSpace \thinspace{}
24541 0.5\InsetSpace \thinspace{}
24544 \begin_inset Box Doublebox
24553 height_special "totalheight"
24556 \begin_layout Standard
24566 \begin_layout Standard
24567 \begin_inset VSpace bigskip
24570 LyX's box label will change to the used frame style when you set a frame.
24571 To be able to use the different frame styles, the LaTeX-package
24576 \begin_inset LatexCommand index
24577 name "LaTeX-packages ! fancybox"
24584 \begin_layout Standard
24585 \begin_inset VSpace bigskip
24588 The default value for the size
24594 is 0.4\InsetSpace \thinspace{}
24596 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24598 2\InsetSpace \thinspace{}
24602 \begin_layout Standard
24612 \begin_layout Standard
24616 \begin_layout Standard
24628 \begin_inset Box Boxed
24637 height_special "totalheight"
24640 \begin_layout Standard
24642 Rectangular box with
24648 \InsetSpace \thinspace{}
24649 =\InsetSpace \thinspace{}
24650 2\InsetSpace \thinspace{}
24660 \begin_layout Standard
24674 \begin_layout Standard
24675 \begin_inset VSpace bigskip
24678 The space between the frame and the box content is for all frame styles
24679 by default 3\InsetSpace \thinspace{}
24681 You can change it by setting the length
24688 For example the command
24691 \begin_layout Standard
24701 \begin_layout Standard
24702 sets the value to 10\InsetSpace \thinspace{}
24703 pt, like for the following box:
24706 \begin_layout Standard
24710 \begin_layout Standard
24722 \begin_inset Box Boxed
24731 height_special "totalheight"
24734 \begin_layout Standard
24736 Rectangular box with
24742 \InsetSpace \thinspace{}
24743 =\InsetSpace \thinspace{}
24744 10\InsetSpace \thinspace{}
24754 \begin_layout Standard
24768 \begin_layout Standard
24769 \begin_inset VSpace bigskip
24772 The diameter of the round corners of the oval boxes can be set with the
24783 \begin_layout Standard
24791 \begin_layout Standard
24792 sets the diameter to 1\InsetSpace \thinspace{}
24797 \begin_layout Standard
24805 \begin_layout Standard
24806 sets the diameter to
24808 num\InsetSpace \thinspace{}
24809 ×\InsetSpace \thinspace{}
24810 minimum(width and heigth of box)
24822 \begin_layout Standard
24826 \begin_layout Standard
24836 \begin_inset Box Ovalbox
24845 height_special "totalheight"
24848 \begin_layout Standard
24856 \InsetSpace \thinspace{}
24857 =\InsetSpace \thinspace{}
24858 1.5\InsetSpace \thinspace{}
24868 \begin_layout Standard
24880 \begin_layout Standard
24881 \begin_inset VSpace bigskip
24884 The size of the shadow can be adjusted by changing the length
24891 It it set to 2\InsetSpace \thinspace{}
24892 pt for the following box by this command:
24895 \begin_layout Standard
24905 \begin_layout Standard
24909 \begin_layout Standard
24921 \begin_inset Box Shadowbox
24930 height_special "totalheight"
24933 \begin_layout Standard
24941 \InsetSpace \thinspace{}
24942 =\InsetSpace \thinspace{}
24943 2\InsetSpace \thinspace{}
24953 \begin_layout Standard
24967 \begin_layout Standard
24968 \begin_inset VSpace bigskip
24971 Changed lengths and widths are valid for all boxes following the commands
24975 \begin_layout Section
24977 \begin_inset LatexCommand label
24978 name "sec:Minipages"
24983 \begin_inset LatexCommand index
24984 name "Boxes ! Minipages"
24991 \begin_layout Standard
24992 Minipages are treated by LaTeX as pages within pages and can therefore for
24993 example have their own footnotes.
24996 \begin_layout Standard
24997 Minipages are useful when you write documents with different languages.
25000 \begin_layout Standard
25001 Below are two example minipages side by side.
25002 Their width is set to 45\InsetSpace \thinspace{}
25003 col% and they are separated by a horizontal fill,
25004 that was inserted via the menu
25006 Insert\SpecialChar \menuseparator
25007 Special\InsetSpace ~
25008 Formatting\SpecialChar \menuseparator
25009 Horizontal\InsetSpace ~
25015 \begin_layout Standard
25016 \begin_inset Box Frameless
25025 height_special "totalheight"
25028 \begin_layout Standard
25031 Dies ist ein deutscher Text.
25032 Dies ist ein deutscher Text.
25033 Dies ist ein deutscher Text.
25034 Dies ist ein deutscher Text.
25035 Dies ist ein deutscher Text.
25036 Dies ist ein deutscher Text.
25037 Dies ist ein deutscher Text.
25038 Dies ist ein deutscher Text.
25039 Dies ist ein deutscher Text.
25040 Dies ist ein deutscher Text.
25041 Dies ist ein deutscher Text.
25042 Dies ist ein deutscher Text.
25043 Dies ist ein deutscher Text
25047 \begin_layout Standard
25050 Dies ist eine deutsche Fußnote.
25056 Dies ist ein deutscher Text.
25057 Dies ist ein deutscher Text.
25065 \begin_inset Box Frameless
25074 height_special "totalheight"
25077 \begin_layout Standard
25078 This is an English Text.
25079 This is an English Text.
25080 This is an English Text.
25081 This is an English Text.
25082 This is an English Text.
25083 This is an English Text.
25084 This is an English Text.
25085 This is an English Text.
25086 This is an English Text.
25087 This is an English Text.
25088 This is an English Text.
25089 This is an English Text.
25090 This is an English Text.
25091 This is an English Text.
25092 This is an English Text.
25093 This is an English Text.
25097 \begin_layout Standard
25098 This is an English footnote.
25103 This is an English Text.
25112 \begin_layout Standard
25113 \begin_inset VSpace bigskip
25116 Another application for minipages are footnotes within tables.
25117 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25118 bottom of the current page.
25119 But when you put the table with the footnote to a minipage, the footnote
25120 will appear at its bottom, numbered with Latin letters.
25121 The footnote number is reset to 1 in every minipage but not outside the
25125 \begin_layout Standard
25126 The footnote of this table doesn't appear:
25127 \begin_inset Tabular
25128 <lyxtabular version="3" rows="3" columns="4">
25130 <column alignment="center" valignment="top" leftline="true" width="0pt">
25131 <column alignment="center" valignment="top" leftline="true" width="0pt">
25132 <column alignment="center" valignment="top" leftline="true" width="0pt">
25133 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25134 <row topline="true">
25135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25138 \begin_layout Standard
25144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25147 \begin_layout Standard
25153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25156 \begin_layout Standard
25161 \begin_layout Standard
25162 This is a footnote within a table.
25172 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25175 \begin_layout Standard
25182 <row topline="true">
25183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25186 \begin_layout Standard
25192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25195 \begin_layout Standard
25201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25204 \begin_layout Standard
25210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25213 \begin_layout Standard
25220 <row topline="true" bottomline="true">
25221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25224 \begin_layout Standard
25230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25233 \begin_layout Standard
25239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25242 \begin_layout Standard
25248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25251 \begin_layout Standard
25265 \begin_layout Standard
25267 \begin_inset Box Frameless
25276 height_special "totalheight"
25279 \begin_layout Standard
25281 \begin_inset Tabular
25282 <lyxtabular version="3" rows="3" columns="4">
25284 <column alignment="center" valignment="top" leftline="true" width="0pt">
25285 <column alignment="center" valignment="top" leftline="true" width="0pt">
25286 <column alignment="center" valignment="top" leftline="true" width="0pt">
25287 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25288 <row topline="true">
25289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25292 \begin_layout Standard
25298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25301 \begin_layout Standard
25307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25310 \begin_layout Standard
25315 \begin_layout Standard
25316 This is a footnote within a table.
25326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25329 \begin_layout Standard
25336 <row topline="true">
25337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25340 \begin_layout Standard
25346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25349 \begin_layout Standard
25355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25358 \begin_layout Standard
25364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25367 \begin_layout Standard
25374 <row topline="true" bottomline="true">
25375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25378 \begin_layout Standard
25384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25387 \begin_layout Standard
25393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25396 \begin_layout Standard
25402 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25405 \begin_layout Standard
25424 \begin_layout Standard
25425 \begin_inset VSpace bigskip
25428 The document-wide paragraph settings are ignored within minipages.
25429 That means that there will be no space between paragraphs in minipages
25430 although you set it to e.\InsetSpace \thinspace{}
25436 in the document settings.
25439 \begin_layout Standard
25440 Minipages can also be used to set a background color for text parts, see
25441 section\InsetSpace ~
25443 \begin_inset LatexCommand ref
25444 reference "sub:Color-for-Paragraphs"
25451 \begin_layout Standard
25452 \begin_inset Note Greyedout
25455 \begin_layout Standard
25460 You cannot have floats or margin notes inside minipages but minipages can
25461 be used inside tables, floats, and other boxes.
25469 \begin_layout Section
25471 \begin_inset LatexCommand label
25472 name "sec:Parboxes"
25477 \begin_inset LatexCommand index
25478 name "Boxes ! Parboxes"
25485 \begin_layout Standard
25486 Parboxes are very similar to minipages with the difference that they cannot
25488 The main difference to minipages is that minipages are in contrary to parboxes
25489 no real boxes but LaTeX-environments.
25492 \begin_layout Standard
25494 \begin_inset Box Frameless
25503 height_special "totalheight"
25506 \begin_layout Standard
25507 This a text within a parbox.
25508 This a text within a parbox.
25511 \begin_layout Standard
25512 This footnote won't appear:
25516 \begin_layout Standard
25517 This footnote is inside a parbox and will therefore not appear.
25530 \begin_layout Section
25531 Boxes for Words and Characters
25532 \begin_inset LatexCommand index
25533 name "Boxes ! for Characters"
25540 \begin_layout Subsection
25541 Prevent Hyphenation
25542 \begin_inset LatexCommand label
25543 name "sec:Prevent-Hyphenation"
25548 \begin_inset LatexCommand index
25549 name "Boxes ! to Prevent Hyphenation"
25556 \begin_layout Standard
25557 You can use a special kind of boxes to prevent words or text to be hyphenated.
25560 e is an example text:
25563 \begin_layout Standard
25564 This line is an example to show how you can prevent the hyphenation of
25565 \begin_inset Quotes eld
25569 \begin_inset Quotes erd
25575 \begin_layout Standard
25576 To prevent the hyphenation of the word
25577 \begin_inset Quotes eld
25581 \begin_inset Quotes erd
25587 \begin_layout Standard
25595 \begin_layout Standard
25596 in ERT before the word.
25597 Behind the word insert a closing brace
25598 \begin_inset Quotes eld
25606 \begin_inset Quotes erd
25613 \begin_layout Standard
25625 \begin_layout Standard
25626 This is the result:
25629 \begin_layout Standard
25630 This line is an example to show how you can prevent the hyphenation of
25634 \begin_layout Standard
25644 \begin_inset Quotes eld
25648 \begin_inset Quotes erd
25655 \begin_layout Standard
25665 \begin_layout Standard
25666 You can alternatively set the command
25667 \begin_inset Quotes eld
25677 \begin_inset Quotes grd
25680 as ERT directly before the word:
25683 \begin_layout Standard
25684 This line is an example to show how you can prevent the hyphenation of
25685 \begin_inset Quotes eld
25692 \begin_layout Standard
25702 \begin_inset Quotes erd
25708 \begin_layout Standard
25709 Of course the word now protrudes over the side margin.
25710 To avoid this, add via the menu
25712 Insert\SpecialChar \menuseparator
25713 Special\InsetSpace ~
25714 Formatting\SpecialChar \menuseparator
25722 ) a line break before the word:
25725 \begin_layout Standard
25726 This line is an example to show how you can prevent the hyphenation of
25732 \begin_layout Standard
25742 \begin_inset Quotes eld
25746 \begin_inset Quotes erd
25753 \begin_layout Standard
25763 \begin_layout Subsection
25765 \begin_inset LatexCommand label
25766 name "sub:Vertical-Alignment"
25771 \begin_inset LatexCommand index
25772 name "Boxes ! for Vertical Alignment"
25777 \begin_inset LatexCommand index
25778 name "Boxes ! Raiseboxes"
25785 \begin_layout Standard
25786 With the help of the command
25792 you can align words, characters or other boxes vertically to the surrounding
25800 is used with the following scheme:
25803 \begin_layout Standard
25808 raisebox{lift}[height][depth]{box content}
25811 \begin_layout Standard
25812 The lift can be a positive value to raise the box or a negative value to
25816 \begin_layout Standard
25817 To align for example the word
25818 \begin_inset Quotes eld
25822 \begin_inset Quotes erd
25825 so that the bottom of the
25826 \begin_inset Quotes eld
25830 \begin_inset Quotes erd
25834 \begin_inset Quotes eld
25838 \begin_inset Quotes erd
25841 is at the baseline, insert the command
25844 \begin_layout Standard
25854 \begin_layout Standard
25855 in ERT before the word.
25856 Behind the word insert a closing brace
25857 \begin_inset Quotes eld
25865 \begin_inset Quotes erd
25870 This is the result:
25873 \begin_layout Standard
25874 This is a text line with the word
25878 \begin_layout Standard
25890 \begin_inset Quotes eld
25894 \begin_inset Quotes erd
25901 \begin_layout Standard
25911 \begin_layout Standard
25912 \begin_inset VSpace bigskip
25915 When you raise or lower characters in a line, the line distance will be
25919 \begin_layout Standard
25920 This is a text line with the word
25924 \begin_layout Standard
25936 \begin_inset Quotes eld
25940 \begin_inset Quotes erd
25947 \begin_layout Standard
25956 This is a text line with the word
25960 \begin_layout Standard
25970 \begin_inset Quotes eld
25974 \begin_inset Quotes erd
25981 \begin_layout Standard
25991 \begin_layout Standard
25992 If you want to prevent this for a certain reason, set the box height to
25997 \begin_layout Standard
26007 \begin_layout Standard
26008 This is a text line with the word
26012 \begin_layout Standard
26024 \begin_inset Quotes eld
26028 \begin_inset Quotes erd
26035 \begin_layout Standard
26044 This is a text line with the word
26048 \begin_layout Standard
26052 raisebox{0.5cm}[0pt]{
26058 \begin_inset Quotes eld
26062 \begin_inset Quotes erd
26069 \begin_layout Standard
26079 \begin_layout Section
26081 \begin_inset LatexCommand label
26082 name "sec:Colored-Boxes"
26087 \begin_inset LatexCommand index
26088 name "Boxes ! Color"
26095 \begin_layout Subsection
26097 \begin_inset LatexCommand index
26098 name "Color ! for Text"
26105 \begin_layout Standard
26106 To color the background of text the text must be put into a so called
26107 \begin_inset Quotes eld
26111 \begin_inset Quotes erd
26115 This requires that the LaTeX-package
26120 \begin_inset LatexCommand index
26121 name "LaTeX-packages ! color"
26125 is loaded in the document preamble with the command
26128 \begin_layout Standard
26133 @ifundef\SpecialChar \textcompwordmark{}
26140 \begin_layout Standard
26151 usepackage{color}}{}
26154 \begin_layout Standard
26159 will be loaded automatically by LyX when you color text
26163 \begin_layout Standard
26164 To avoid that it is loaded twice the command
26168 @ifundef\SpecialChar \textcompwordmark{}
26179 \begin_layout Standard
26180 \begin_inset VSpace medskip
26183 Colorboxes are created with the command
26190 This will be used with the following scheme:
26193 \begin_layout Standard
26198 colorbox{color}{box content}
26201 \begin_layout Standard
26202 The box content can also be a box and colorboxes can also be within other
26206 \begin_layout Standard
26207 The following colors are predefined:
26246 You can also define your own color as described in section\InsetSpace ~
26248 \begin_inset LatexCommand ref
26249 reference "sec:Colored-Tables"
26256 \begin_layout Standard
26257 To have e.\InsetSpace \thinspace{}
26259 a red background for a word, insert the command
26262 \begin_layout Standard
26270 \begin_layout Standard
26271 before the word in ERT.
26272 Behind the word insert a closing brace
26273 \begin_inset Quotes eld
26281 \begin_inset Quotes erd
26286 This is the result:
26289 \begin_layout Standard
26290 This is a line where the word
26294 \begin_layout Standard
26304 \begin_inset Quotes eld
26308 \begin_inset Quotes erd
26315 \begin_layout Standard
26322 has a red background.
26325 \begin_layout Standard
26326 \begin_inset VSpace bigskip
26329 If you would have the box frame in a different color, you can use the command
26336 with the following scheme:
26339 \begin_layout Standard
26344 fcolorbox{frame color}{box color}{box content}
26347 \begin_layout Standard
26361 The frame thickness and the space between the frame and the box content
26362 can be adjusted with the lengths
26374 , respectively, as described in section\InsetSpace ~
26376 \begin_inset LatexCommand ref
26377 reference "sec:Framed-Boxes"
26384 \begin_layout Standard
26385 For the following example the command
26388 \begin_layout Standard
26393 fcolorbox{cyan}{magenta}{
26396 \begin_layout Standard
26400 \begin_layout Standard
26401 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26408 \begin_layout Standard
26423 \begin_layout Standard
26427 fcolorbox{cyan}{magenta}{
26432 This is text within a colored, framed box.
26436 \begin_layout Standard
26446 \begin_layout Standard
26447 \begin_inset VSpace bigskip
26450 Of course you can also have colored text inside a colorbox:
26456 \begin_layout Standard
26460 fcolorbox{cyan}{magenta}{
26467 This is colored text within a colored, framed box.
26473 \begin_layout Standard
26484 \begin_layout Standard
26498 \begin_layout Standard
26501 \begin_inset VSpace medskip
26507 \begin_layout Standard
26508 \begin_inset Note Greyedout
26511 \begin_layout Standard
26516 Text in colorboxes cannot have line breaks.
26517 To color multiple text lines or paragraphs, use a box inside a colorbox
26518 as described in the following.
26526 \begin_layout Subsection
26527 Color for Paragraphs
26528 \begin_inset LatexCommand label
26529 name "sub:Color-for-Paragraphs"
26534 \begin_inset LatexCommand index
26535 name "Color ! for Paragraphs"
26542 \begin_layout Standard
26543 To set the background color for more than one text line, put the text into
26545 Before the minipage insert the
26554 \begin_layout Standard
26562 \begin_layout Standard
26564 Behind the minipage insert a closing brace
26565 \begin_inset Quotes eld
26573 \begin_inset Quotes erd
26579 \begin_layout Standard
26583 \begin_layout Standard
26587 colorbox{lightgrey}{
26593 \begin_inset Box Frameless
26602 height_special "totalheight"
26605 \begin_layout Standard
26606 This is text with background color.
26607 This is text with background color.
26610 \begin_layout Standard
26611 \begin_inset VSpace defskip
26614 The text can have footnotes
26618 \begin_layout Standard
26619 Another example footnote
26624 and can include tables and figures.
26627 \begin_layout Standard
26629 \begin_inset Tabular
26630 <lyxtabular version="3" rows="3" columns="3">
26632 <column alignment="center" valignment="top" leftline="true" width="0">
26633 <column alignment="center" valignment="top" leftline="true" width="0">
26634 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26635 <row topline="true">
26636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26639 \begin_layout Standard
26645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26648 \begin_layout Standard
26654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26657 \begin_layout Standard
26664 <row topline="true">
26665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26668 \begin_layout Standard
26674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26677 \begin_layout Standard
26679 \begin_inset Quotes erd
26687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26690 \begin_layout Standard
26697 <row topline="true" bottomline="true">
26698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26701 \begin_layout Standard
26707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26710 \begin_layout Standard
26716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26719 \begin_layout Standard
26739 \begin_layout Standard
26749 \begin_layout Section
26750 URLs (Uniform Resource Locators)
26751 \begin_inset LatexCommand index
26759 \begin_layout Standard
26760 Links to web pages or email addresses can be inserted via the menu
26762 Insert\SpecialChar \menuseparator
26766 The appearing URL dialog has two fields; the
26774 field for the URL description, which will be typeset as plain text immediately
26778 \begin_layout Standard
26779 Here is an example URL:
26780 \begin_inset LatexCommand url
26781 name "LyX's homepage"
26782 target "http://www.lyx.org"
26789 \begin_layout Standard
26792 Generate\InsetSpace ~
26795 in the URL dialog has only an affect when you export your document to the
26797 \begin_inset Quotes eld
26805 \begin_inset Quotes erd
26811 \begin_layout Standard
26812 You cannot change the style of the link text.
26817 field will have the default text style of the document while the text of
26822 field will have the style
26823 \begin_inset Quotes eld
26831 \begin_inset Quotes erd
26837 \begin_layout Standard
26838 When you use the LaTeX-package
26843 \begin_inset LatexCommand index
26844 name "LaTeX-packages ! hyperref"
26848 to link cross-references in the output, URLs will automatically become
26849 clickable hyperlinks in DVI and PDF-output.
26852 \begin_layout Standard
26853 \begin_inset Note Greyedout
26856 \begin_layout Standard
26861 When you use the following characters: "%", "#", "^", you have to write
26862 them with a preceding backslash, e.\InsetSpace \thinspace{}
26865 \begin_inset Quotes eld
26871 \begin_inset Quotes erd
26875 URLs must not end with a backslash.
26883 \begin_layout Standard
26884 \begin_inset VSpace bigskip
26887 To create real hyperlinks without the force to write the link location to
26888 the text, you can use the command
26891 \begin_layout Standard
26896 href{link location}{link text}
26899 \begin_layout Standard
26901 To get for example a link to LyX's web page, write the command
26904 \begin_layout Standard
26909 href{http://www.lyx.org}{
26912 \begin_layout Standard
26914 Insert after the command the link text
26915 \begin_inset Quotes eld
26919 \begin_inset Quotes erd
26922 as normal text followed by a closing brace
26923 \begin_inset Quotes eld
26931 \begin_inset Quotes erd
26935 This is the result:
26939 \begin_layout Standard
26943 href{http://www.lyx.org}{
26952 \begin_layout Standard
26962 \begin_layout Standard
26963 To link to email addresses, add the prefix
26964 \begin_inset Quotes eld
26972 \begin_inset Quotes erd
26975 to the link location:
26981 \begin_layout Standard
26985 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26990 lyx-docs mailing list
26994 \begin_layout Standard
27004 \begin_layout Standard
27011 instead of LyX's URL box has the advantage that you can specify the text
27012 style of the link text like for all other text parts.
27013 You can then set hyphenation points and forced linebreaks to have long
27014 link text broken at the page margin.
27015 You are furthermore able to change the text style for all URLs in your
27016 document with an option in
27020 's load command and the restrictions mentioned above doesn't apply for
27029 \begin_layout Chapter
27031 \begin_inset LatexCommand index
27032 name "External Stuff"
27039 \begin_layout Standard
27042 Insert\SpecialChar \menuseparator
27045 you can insert external material to your document.
27049 \begin_layout Description
27051 Document Another LyX document; its content is directly inserted to your
27055 \begin_layout Description
27057 Text A text document; every of its text lines is inserted to your document
27061 \begin_layout Description
27065 Lines A text document; its text lines are inserted as they
27067 Empty text lines creates a new paragraph in your document.
27070 \begin_layout Description
27071 External\InsetSpace ~
27072 Material Files in various formats.
27075 \begin_layout Description
27077 Document LyX or LaTeX-documents.
27080 \begin_layout Section
27082 \begin_inset LatexCommand index
27083 name "External Stuff ! External Material"
27090 \begin_layout Standard
27091 The external material feature allows you to insert files to your document
27092 without converting them previously to a format that can be read by the
27093 document output format because LyX takes care of needed conversions.
27094 This is similar to images that can be inserted in various image formats
27098 \begin_layout Standard
27099 External material can be inserted via the
27103 dialog that is accessible with the menu
27105 Insert\SpecialChar \menuseparator
27106 File\SpecialChar \menuseparator
27107 External\InsetSpace ~
27111 Currently the following file types (
27118 \begin_layout Description
27119 ChessDiagram This template supports chess position diagrams made with the
27124 \begin_layout Standard
27128 href{http://en.wikipedia.org/wiki/XBoard}{
27141 \begin_layout Standard
27151 \begin_layout Description
27152 Date This inserts the date in the form
27157 This is a date inserted as external material:
27158 \begin_inset External
27166 The date is not shown within LyX, only in the output.
27167 There are two other methods of inserting a date: Via menu
27169 Insert\SpecialChar \menuseparator
27172 and with the LaTeX command
27179 The different methods are compared in Table\InsetSpace ~
27181 \begin_inset LatexCommand ref
27182 reference "tab:Comparison-of-the"
27189 \begin_layout Description
27190 LilyPond This template is used for music notation typeset with the program
27194 \begin_layout Standard
27207 \begin_layout Standard
27211 href{http://en.wikipedia.org/wiki/LilyPond}{
27224 \begin_layout Standard
27232 \begin_inset Note Note
27235 \begin_layout Standard
27242 breaks the line while the remaining text in the line is stretched to the
27251 \begin_layout Description
27252 RasterImage This can be used for bitmap images.
27253 Nearly all popular image formats are supported.
27254 The image can be treated in the
27258 dialog like the images that are usually included via the
27262 dialog as described in section\InsetSpace ~
27264 \begin_inset LatexCommand ref
27265 reference "sec:Graphics-Dialog"
27270 The difference is that only raster images are allowed, that means that
27271 PDF and EPS-images are not supported.
27274 \begin_layout Description
27275 XFig This template supports images created with the program
27279 \begin_layout Standard
27283 href{http://en.wikipedia.org/wiki/Xfig}{
27296 \begin_layout Standard
27306 \begin_layout Standard
27307 \begin_inset Float table
27313 \begin_layout Standard
27314 \begin_inset Caption
27316 \begin_layout Standard
27317 \begin_inset LatexCommand label
27318 name "tab:Comparison-of-the"
27322 Comparison of the date input methods.
27330 \begin_layout Standard
27332 \begin_inset Tabular
27333 <lyxtabular version="3" rows="4" columns="4">
27335 <column alignment="center" valignment="top" leftline="true" width="0">
27336 <column alignment="center" valignment="top" leftline="true" width="0">
27337 <column alignment="center" valignment="top" leftline="true" width="0">
27338 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27339 <row topline="true">
27340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27343 \begin_layout Standard
27349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27352 \begin_layout Standard
27355 External Material\SpecialChar \menuseparator
27361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27364 \begin_layout Standard
27367 Insert\SpecialChar \menuseparator
27373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27376 \begin_layout Standard
27387 <row topline="true">
27388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27391 \begin_layout Standard
27397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27400 \begin_layout Standard
27406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27409 \begin_layout Standard
27415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27418 \begin_layout Standard
27425 <row topline="true">
27426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27429 \begin_layout Standard
27435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27438 \begin_layout Standard
27444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27447 \begin_layout Standard
27453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27456 \begin_layout Standard
27463 <row topline="true" bottomline="true">
27464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27467 \begin_layout Standard
27473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27476 \begin_layout Standard
27482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27485 \begin_layout Standard
27491 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27494 \begin_layout Standard
27513 \begin_layout Standard
27514 When you use the option
27526 dialog, only the path to the inserted file is shown in the output.
27529 material is displayed in LyX either as box like this:
27530 \begin_inset Graphics
27531 filename clipart/ExternalMaterialQt4.png
27536 or as image, depending on the setting in the
27548 \begin_layout Standard
27555 manual explains how you can define your own templates.
27558 \begin_layout Section
27560 \begin_inset LatexCommand label
27561 name "sec:Child-Documents"
27566 \begin_inset LatexCommand index
27567 name "External Stuff ! Child Documents"
27572 \begin_inset LatexCommand index
27573 name "Files ! Include"
27580 \begin_layout Standard
27581 Child documents are used when you have a long document consisting of several
27582 larger parts or sections.
27583 For maintenance it is often useful and sometimes even required to split
27584 the document in several files that can be revised separately.
27585 The different documents are then the so called child documents and a master
27586 document connects them to print the full document or parts of it.
27589 \begin_layout Standard
27590 Included documents are displayed in LyX as a box like this:
27591 \begin_inset Graphics
27592 filename clipart/ChildDocumentQt4.png
27597 To include child documents to a master document use the menu
27599 Insert\SpecialChar \menuseparator
27600 File\SpecialChar \menuseparator
27605 A dialog pops up where you can choose between four include methods:
27608 \begin_layout Description
27609 Include You can include LyX and LaTeX-documents.
27618 dialog, the included documents will be opened in LyX in a new file tab
27619 so that you can modify it.
27624 \begin_layout Standard
27625 Here is a child document inserted using
27630 \begin_inset Include \include{DummyDocument1.lyx}
27638 \begin_layout Standard
27639 The section numbering includes the sections of the included files in the
27640 order they are inserted in the master document.
27641 The included example document has for example a subsection that is numbered
27642 as subsection of this section.
27643 Labels of included documents can be referenced: Subsection\InsetSpace ~
27645 \begin_inset LatexCommand ref
27646 reference "sub:External-Subsection-1"
27653 \begin_layout Standard
27654 The preamble of the child document is ignored, only the preamble of the
27655 master document is used.
27656 Included documents are inserted starting on a new page and end with a pagebreak.
27659 \begin_layout Standard
27660 With the LaTeX-command
27666 you can specify which included child documents are processed when the output
27668 This is useful when you are perhaps only working on a certain chapter of
27669 your large document as this saves compiling time.
27676 is inserted to the master document preamble.
27677 It takes a comma-separated list of the filenames as argument, e.g.
27680 \begin_layout Standard
27685 includeonly{chapter1,chapter5}
27688 \begin_layout Standard
27689 will only process the included files named
27690 \begin_inset Quotes eld
27694 \begin_inset Quotes erd
27698 \begin_inset Quotes eld
27702 \begin_inset Quotes erd
27706 \begin_inset Quotes eld
27710 \begin_inset Quotes erd
27716 \begin_layout Standard
27717 \begin_inset Note Greyedout
27720 \begin_layout Standard
27725 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27726 w the document in case that the child document uses another document class
27727 than the master document as this will lead to unexpected outputs.
27735 \begin_layout Description
27736 Input This method is very similar to the Include method.
27737 The differences are:
27741 \begin_layout Itemize
27742 Input files don't start with a new page and don't end with a pagebreak.
27745 \begin_layout Itemize
27746 Input files can be previewed in LyX when
27748 Instant\InsetSpace ~
27751 is enabled in LyX's preferences under
27755 feel\SpecialChar \menuseparator
27761 \begin_layout Itemize
27772 \begin_layout Standard
27773 Here is a child document inserted using
27778 \begin_inset Include \input{DummyDocument2.lyx}
27786 \begin_layout Description
27787 Verbatim With this method every text file can be included.
27788 The file is shown in the output with its source code, no command used in
27789 the text is invoked.
27790 You can use the option
27792 Mark spaces in output
27794 that displays the character
27795 \begin_inset Quotes eld
27802 \begin_layout Standard
27812 \begin_inset Quotes erd
27815 for every space character in the source code.
27816 The difference to the method via the menu
27818 Insert\SpecialChar \menuseparator
27819 File\SpecialChar \menuseparator
27823 is that the document content is not shown in LyX.
27826 \begin_layout Standard
27827 Here is a child document inserted as Verbatim:
27828 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27834 \begin_inset VSpace bigskip
27837 Here is a child document inserted as Verbatim using the
27839 Mark spaces in output
27842 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27850 \begin_layout Standard
27851 \begin_inset VSpace bigskip
27857 \begin_layout Standard
27858 \begin_inset Note Greyedout
27861 \begin_layout Standard
27866 As you can see in the examples above, the text of the documents included
27871 is not broken at the end of the document lines.
27879 \begin_layout Description
27880 Listings This type is described in chapter\InsetSpace ~
27882 \begin_inset LatexCommand ref
27883 reference "cha:Program-Code-Listings"
27890 \begin_layout Standard
27891 \begin_inset Note Greyedout
27894 \begin_layout Standard
27899 Including the same document twice in a document using different methods
27900 could cause LaTeX-problems.
27908 \begin_layout Chapter
27909 Program Code Listings
27910 \begin_inset LatexCommand label
27911 name "cha:Program-Code-Listings"
27916 \begin_inset LatexCommand index
27922 \begin_inset LatexCommand index
27923 name "Program Code"
27928 \begin_inset LatexCommand index
27929 name "Floats ! Listings"
27936 \begin_layout Standard
27937 To include and typeset program code you can use the
27941 inset that can be inserted via the menu
27943 Insert\SpecialChar \menuseparator
27952 \begin_inset LatexCommand index
27953 name "LaTeX-packages ! listings"
27957 provides a powerful and flexible way to insert program source code to your
27961 \begin_layout Standard
27962 When right-clicking on a listings inset a dialog pops up where you can set
27963 the listings format.
27966 \begin_layout Standard
27967 By default, a listing starts a new paragraph in the output.
27968 The placement option
27970 Inline\InsetSpace ~
27973 prints the listing inline like this:
27974 \begin_inset listings
27975 lstparams "language={C++}"
27979 \begin_layout Standard
27992 creates a listings float where you can specify the placement options
27993 \begin_inset Quotes eld
28001 \begin_inset Quotes erd
28005 \begin_inset Quotes eld
28013 \begin_inset Quotes erd
28017 \begin_inset Quotes eld
28025 \begin_inset Quotes erd
28029 \begin_inset Quotes eld
28037 \begin_inset Quotes erd
28040 corresponding to the float placement options described in section\InsetSpace ~
28042 \begin_inset LatexCommand ref
28043 reference "sec:Float-Placement"
28048 The placement options can be mixed and are inserted without any separation,
28049 e.\InsetSpace \thinspace{}
28052 \begin_inset Quotes eld
28060 \begin_inset Quotes erd
28065 \begin_inset Quotes eld
28069 \begin_inset Quotes erd
28072 has sometimes no effect, but you don't need to use the
28076 option in this case as also non-float listings can have captions and be
28080 \begin_layout Standard
28081 You can add captions to listings with the menu
28083 Insert\SpecialChar \menuseparator
28087 Listings can be referenced like floats: Listing\InsetSpace ~
28089 \begin_inset LatexCommand ref
28090 reference "lst:Example-Listing"
28097 \begin_layout Standard
28098 \begin_inset listings
28099 lstparams "language=Python"
28103 \begin_layout Standard
28105 \begin_inset Caption
28107 \begin_layout Standard
28108 \begin_inset LatexCommand label
28109 name "lst:Example-Listing"
28113 Example Listing float
28118 # Example listing float
28121 \begin_layout Standard
28126 \begin_layout Standard
28128 'this is a python function'
28131 \begin_layout Standard
28141 \begin_layout Standard
28142 When you have set a programming language in the listings dialog, the keywords
28143 of this language will be recognized and specially typeset in the output.
28144 In the example listings the Python keyword
28145 \begin_inset Quotes eld
28149 \begin_inset Quotes erd
28152 is recognized and printed bold in the output.
28155 \begin_layout Standard
28161 of the listings dialog you can specify the line numbering style.
28162 You can insert a number to specify which lines are numbered to the field
28168 When you insert e.g.
28170 \begin_inset Quotes eld
28174 \begin_inset Quotes erd
28177 , only every 3rd line will be numbered.
28180 \begin_layout Standard
28181 You can furthermore specify a range of lines, only these will then appear
28185 Extended\InsetSpace ~
28188 should be used when you use national characters like the German umlauts
28191 Here is an example listing with left line numbering, step
28193 \begin_inset Quotes eld
28197 \begin_inset Quotes erd
28201 \begin_inset Quotes eld
28205 \begin_inset Quotes erd
28209 \begin_inset Quotes eld
28212 Extended\InsetSpace ~
28214 \begin_inset Quotes erd
28218 \begin_inset Quotes eld
28224 \begin_inset Quotes erd
28227 , range lines 3\InsetSpace \thinspace{}
28228 -\InsetSpace \thinspace{}
28232 \begin_layout Standard
28233 \begin_inset listings
28234 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
28238 \begin_layout Standard
28243 \begin_layout Standard
28245 'this is a python function'
28248 \begin_layout Standard
28253 \begin_layout Standard
28258 \begin_layout Standard
28260 'This is a German word: Tschüß'
28263 \begin_layout Standard
28268 \begin_layout Standard
28273 \begin_layout Standard
28275 'this is a python function'
28278 \begin_layout Standard
28288 \begin_layout Standard
28289 \begin_inset Note Greyedout
28292 \begin_layout Standard
28297 The line numbering is shifted by a line by every previous listing.
28298 That's the reason why the lines 2 and 5 are numbered in the above listing
28299 and not the lines 3 and 6.
28307 \begin_layout Standard
28308 \begin_inset VSpace bigskip
28314 \begin_layout Standard
28315 It is also possible to print lines from a file as listing.
28316 To do this, use the menu
28318 Insert\SpecialChar \menuseparator
28319 File\SpecialChar \menuseparator
28322 and choose the type
28330 \begin_layout Standard
28331 The other child document types are described in section\InsetSpace ~
28333 \begin_inset LatexCommand ref
28334 reference "sec:Child-Documents"
28343 In the child document dialog you can specify the listing parameters in
28345 To show a list of all available parameters, type in a question mark
28346 \begin_inset Quotes eld
28350 \begin_inset Quotes erd
28356 \begin_layout Standard
28357 To reference child document listings, write a label text into the corresponding
28358 field of the child document dialog.
28359 The label can then be referenced using the menu
28361 Insert\SpecialChar \menuseparator
28367 \begin_layout Standard
28368 Listing\InsetSpace ~
28370 \begin_inset LatexCommand ref
28371 reference "lst:file-listing"
28375 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
28376 -\InsetSpace \thinspace{}
28381 \begin_layout Standard
28382 \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]
28390 \begin_layout Standard
28391 \begin_inset VSpace bigskip
28397 \begin_layout Standard
28398 Global listings settings can be set in the
28400 Document\SpecialChar \menuseparator
28401 Settings\SpecialChar \menuseparator
28405 To get there a list of available options, type in a question mark
28406 \begin_inset Quotes eld
28410 \begin_inset Quotes erd
28415 Listings\InsetSpace ~
28421 \begin_layout Standard
28422 For more information about the
28426 package, we refer to its documentation
28427 \begin_inset LatexCommand cite
28435 \begin_layout Standard
28441 \begin_layout Chapter
28447 \begin_layout Standard
28460 \begin_layout Standard
28468 \begin_inset LatexCommand index
28474 \begin_inset LatexCommand label
28475 name "cha:Units-available-in"
28480 \begin_inset Note Note
28483 \begin_layout Standard
28486 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
28487 are displayed wrongly in PDF-bookmarks.
28488 For more information about this, have a look at
28489 \begin_inset LatexCommand cite
28502 \begin_layout Standard
28503 To understand the units described in this documentation, Table\InsetSpace ~
28505 \begin_inset LatexCommand ref
28506 reference "tab:Units"
28510 explains all units available in LyX.
28513 \begin_layout Standard
28514 \begin_inset Float table
28520 \begin_layout Standard
28521 \begin_inset Caption
28523 \begin_layout Standard
28524 \begin_inset LatexCommand label
28537 \begin_layout Standard
28538 \begin_inset VSpace medskip
28544 \begin_layout Standard
28546 \begin_inset Tabular
28547 <lyxtabular version="3" rows="20" columns="2">
28549 <column alignment="center" valignment="top" leftline="true" width="0">
28550 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28551 <row topline="true" bottomline="true">
28552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28555 \begin_layout Standard
28561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28564 \begin_layout Standard
28571 <row topline="true">
28572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28575 \begin_layout Standard
28581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28584 \begin_layout Standard
28591 <row topline="true">
28592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28595 \begin_layout Standard
28601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28604 \begin_layout Standard
28611 <row topline="true">
28612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28615 \begin_layout Standard
28621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28624 \begin_layout Standard
28631 <row topline="true">
28632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28635 \begin_layout Standard
28641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28644 \begin_layout Standard
28645 point (72.27\InsetSpace \thinspace{}
28646 pt = 1\InsetSpace \thinspace{}
28653 <row topline="true">
28654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28657 \begin_layout Standard
28663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28666 \begin_layout Standard
28667 pica (1\InsetSpace \thinspace{}
28668 pc = 12\InsetSpace \thinspace{}
28675 <row topline="true">
28676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28679 \begin_layout Standard
28685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28688 \begin_layout Standard
28689 scaled point (65536\InsetSpace \thinspace{}
28690 sp = 1\InsetSpace \thinspace{}
28697 <row topline="true">
28698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28701 \begin_layout Standard
28707 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28710 \begin_layout Standard
28711 big point (72\InsetSpace \thinspace{}
28712 bp = 1\InsetSpace \thinspace{}
28719 <row topline="true">
28720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28723 \begin_layout Standard
28729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28732 \begin_layout Standard
28733 didot (1\InsetSpace \thinspace{}
28735 \begin_inset Formula $\approx$
28738 0.376\InsetSpace \thinspace{}
28745 <row topline="true">
28746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28749 \begin_layout Standard
28755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28758 \begin_layout Standard
28759 cicero (1\InsetSpace \thinspace{}
28760 cc = 12\InsetSpace \thinspace{}
28767 <row topline="true">
28768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28771 \begin_layout Standard
28777 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28780 \begin_layout Standard
28781 % of original image width
28787 <row topline="true">
28788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28791 \begin_layout Standard
28797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28800 \begin_layout Standard
28807 <row topline="true">
28808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28811 \begin_layout Standard
28817 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28820 \begin_layout Standard
28827 <row topline="true">
28828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28831 \begin_layout Standard
28837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28840 \begin_layout Standard
28847 <row topline="true">
28848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28851 \begin_layout Standard
28857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28860 \begin_layout Standard
28867 <row topline="true">
28868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28871 \begin_layout Standard
28877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28880 \begin_layout Standard
28887 <row topline="true">
28888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28891 \begin_layout Standard
28897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28900 \begin_layout Standard
28907 <row topline="true">
28908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28911 \begin_layout Standard
28917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28920 \begin_layout Standard
28931 <row topline="true">
28932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28935 \begin_layout Standard
28941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28944 \begin_layout Standard
28955 <row topline="true" bottomline="true">
28956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28959 \begin_layout Standard
28965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28968 \begin_layout Standard
28969 math unit (1\InsetSpace \thinspace{}
28970 mu = 1/18\InsetSpace \thinspace{}
28989 \begin_layout Chapter
28990 Output File Formats with Graphics
28991 \begin_inset LatexCommand label
28992 name "cha:Output-File-Formats"
28999 \begin_layout Section
29001 \begin_inset LatexCommand index
29002 name "File Formats ! DVI"
29007 \begin_inset LatexCommand index
29008 name "DVI|see{File Formats}"
29015 \begin_layout Standard
29016 This file type has the extension
29017 \begin_inset Quotes eld
29025 \begin_inset Quotes erd
29030 \begin_inset Quotes eld
29034 \begin_inset Quotes erd
29037 (DVI), because it is completely portable; you can move them from one machine
29038 to another without needing to do any sort of conversion.
29039 At the time when this file-format was developed, this was no matter of
29041 DVIs are used for quick previews and as pre-stage for other output formats,
29045 \begin_layout Standard
29046 \begin_inset Note Greyedout
29049 \begin_layout Standard
29054 DVI-files doesn't contain images, they will only be a linked.
29059 So don't forget this, if you move your
29063 file to another computer.
29064 This property can also slow down your computer when you view the DVI.
29065 Because the DVI-viewer has to convert the image in the background to make
29066 it visible when you scroll in the DVI.
29067 So we recommend to use PDF for files with many images.
29070 \begin_layout Standard
29071 You can export your document to DVI by using the menu
29073 File\SpecialChar \menuseparator
29074 Export\SpecialChar \menuseparator
29078 You can view your document as DVI via the
29082 menu or by using the toolbar button
29083 \begin_inset Graphics
29084 filename ../images/buffer-view_dvi.xpm
29092 \begin_layout Section
29094 \begin_inset LatexCommand label
29095 name "sec:PostScript"
29100 \begin_inset LatexCommand index
29101 name "File Formats ! PostScript"
29106 \begin_inset LatexCommand index
29107 name "PostScript|see{File Formats}"
29114 \begin_layout Standard
29115 This file type has the extension
29116 \begin_inset Quotes eld
29124 \begin_inset Quotes erd
29128 PostScript was developed by the company
29132 as printer language.
29133 The file contains therefore commands that the printer uses to print the
29135 PostScript can be seen as
29136 \begin_inset Quotes eld
29139 programming language
29140 \begin_inset Quotes erd
29143 ; you can calculate with it and draw diagrams and images
29147 \begin_layout Standard
29148 If you are interested to learn more about this, have a look at the LaTeX-package
29154 \begin_inset LatexCommand cite
29165 Due to this ability, the files are often bigger than PDFs.
29168 \begin_layout Standard
29169 PostScript can only contain images in the format
29170 \begin_inset Quotes eld
29173 Encapsulated PostScript
29174 \begin_inset Quotes erd
29177 (EPS, file extension
29178 \begin_inset Quotes eld
29186 \begin_inset Quotes erd
29190 As LyX allows you to use any known image format in your document, it has
29191 to convert images in the background to EPS.
29192 If you have e.g 50 images in your document, LyX has to do 50 conversions
29193 whenever you view or export your document.
29194 This will slow down your work flow with LyX drastically.
29195 So if you plan to use PostScript, you can insert your images directly as
29196 EPS to avoid this problem.
29199 \begin_layout Standard
29200 You can export your document to PostScript using the menu
29202 File\SpecialChar \menuseparator
29203 Export\SpecialChar \menuseparator
29207 You can view your document as PostScript via the
29211 menu or by using the toolbar button
29212 \begin_inset Graphics
29213 filename ../images/buffer-view_ps.xpm
29221 \begin_layout Section
29223 \begin_inset LatexCommand label
29229 \begin_inset LatexCommand index
29230 name "File Formats ! PDF"
29235 \begin_inset LatexCommand index
29243 \begin_layout Standard
29244 This file type has the extension
29245 \begin_inset Quotes eld
29253 \begin_inset Quotes erd
29258 \begin_inset Quotes eld
29261 Portable Document Format
29262 \begin_inset Quotes erd
29265 (PDF) is developed by
29269 as derivative from PostScript.
29270 It is more compressed and it uses much less commands than PostScript.
29272 \begin_inset Quotes eld
29276 \begin_inset Quotes erd
29279 implies, it can be processed at any computer system and the printed output
29280 looks exactly the same.
29283 \begin_layout Standard
29284 PDF can contain images in its own PDF format, in the format
29285 \begin_inset Quotes eld
29288 Joint Photographic Experts Group
29289 \begin_inset Quotes erd
29292 (JPG, file extension
29293 \begin_inset Quotes eld
29301 \begin_inset Quotes erd
29305 \begin_inset Quotes eld
29313 \begin_inset Quotes erd
29316 ), and in the format
29317 \begin_inset Quotes eld
29320 Portable Network Graphics
29321 \begin_inset Quotes erd
29324 (PNG, file extension
29325 \begin_inset Quotes eld
29333 \begin_inset Quotes erd
29337 Nevertheless you can use any other image format, because LyX converts them
29338 in the background to one of these formats.
29339 But as described in the section about PostScript, the image conversion
29340 will slow down your work flow.
29341 So it is recommended to use images in one of the three mentioned formats.
29344 \begin_layout Standard
29345 You can export your document to PDF via the menu
29347 File\SpecialChar \menuseparator
29350 in three different ways:
29353 \begin_layout Description
29355 (ps2pdf) This uses the program
29359 that creates a PDF from a PostScript-version of your file.
29360 The PostScript-version is produced by the program
29364 which uses a DVI-version as intermediate step.
29365 So this export variant consist of three conversions.
29368 \begin_layout Description
29370 (dvipdfm) This uses the program
29374 that converts your file in the background to DVI and in a second step to
29378 \begin_layout Description
29380 (pdflatex) This uses the program
29384 that converts your file directly to PDF.
29387 \begin_layout Standard
29388 It is recommended to use
29397 supports all features of actual PDF-versions, is quick and works stable
29403 is not under development and therefore a bit outdated.
29406 \begin_layout Standard
29407 You can view your document as PDF via the
29411 menu or by using the toolbar button
29412 \begin_inset Graphics
29413 filename ../images/buffer-view_pdf2.xpm
29430 \begin_layout Chapter
29431 Explanation of Equation\InsetSpace ~
29433 \begin_inset LatexCommand eqref
29439 \begin_inset LatexCommand label
29440 name "cha:Explanation-of-Equation"
29447 \begin_layout Standard
29453 \begin_inset Formula $W_{\mathrm{tot\, n}}$
29456 can be calculated to
29459 \begin_layout Standard
29460 \begin_inset Formula \begin{equation}
29461 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
29468 \begin_layout Standard
29470 \begin_inset Formula $W_{g\, n}$
29473 is the given width of all cells.
29480 is the LaTeX-length between the cell text and the cell border, its default
29481 value is 6\InsetSpace \thinspace{}
29489 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
29493 \begin_layout Standard
29494 Following equation\InsetSpace ~
29496 \begin_inset LatexCommand eqref
29497 reference "eq:Wtot_n"
29501 , the total width of a multicolumn
29502 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
29508 \begin_layout Standard
29509 \begin_inset Formula \begin{equation}
29510 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
29517 \begin_layout Standard
29518 By setting equation\InsetSpace ~
29520 \begin_inset LatexCommand eqref
29521 reference "eq:Wtot_n"
29526 \begin_inset LatexCommand eqref
29527 reference "eq:Wtot_mult"
29531 equal we can calculate the needed given width
29532 \begin_inset Formula $W_{g\, n}$
29539 columns are spanned, so that each column has a total width of
29540 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
29546 \begin_layout Standard
29547 \begin_inset Formula \begin{equation}
29548 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
29555 \begin_layout Bibliography
29556 \begin_inset LatexCommand bibitem
29557 key "latexcompanion"
29561 Frank Mittelbach and Michel Goossens:
29563 The LaTeX Companion Second Edition.
29566 Addison-Wesley, 2004
29569 \begin_layout Bibliography
29570 \begin_inset LatexCommand bibitem
29575 Helmut Kopka and Patrick W.
29578 A Guide to LaTeX Fourth Edition.
29581 Addison-Wesley, 2003
29584 \begin_layout Bibliography
29585 \begin_inset LatexCommand bibitem
29592 LaTeX: A Document Preparation System.
29595 Addison-Wesley, second edition, 1994
29598 \begin_layout Bibliography
29599 \begin_inset LatexCommand bibitem
29608 \begin_layout Standard
29612 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
29622 \begin_layout Standard
29629 of the LaTeX-package
29634 \begin_inset LatexCommand index
29635 name "LaTeX-packages ! booktabs"
29642 \begin_layout Bibliography
29643 \begin_inset LatexCommand bibitem
29652 \begin_layout Standard
29656 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29665 \begin_layout Standard
29672 of the LaTeX-package
29677 \begin_inset LatexCommand index
29678 name "LaTeX-packages ! caption"
29685 \begin_layout Bibliography
29686 \begin_inset LatexCommand bibitem
29695 \begin_layout Standard
29699 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
29709 \begin_layout Standard
29716 of the LaTeX-package
29721 \begin_layout Bibliography
29722 \begin_inset LatexCommand bibitem
29731 \begin_layout Standard
29735 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
29745 \begin_layout Standard
29752 of the LaTeX-package
29754 endf\SpecialChar \textcompwordmark{}
29758 \begin_inset LatexCommand index
29759 name "LaTeX-packages ! endfloat"
29766 \begin_layout Bibliography
29767 \begin_inset LatexCommand bibitem
29776 \begin_layout Standard
29780 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29790 \begin_layout Standard
29797 of the LaTeX-package
29799 f\SpecialChar \textcompwordmark{}
29800 loatf\SpecialChar \textcompwordmark{}
29804 \begin_inset LatexCommand index
29805 name "LaTeX-packages ! floatflt"
29812 \begin_layout Bibliography
29813 \begin_inset LatexCommand bibitem
29822 \begin_layout Standard
29826 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29836 \begin_layout Standard
29843 of the LaTeX-package
29848 \begin_inset LatexCommand index
29849 name "LaTeX-packages ! footmisc"
29856 \begin_layout Bibliography
29857 \begin_inset LatexCommand bibitem
29866 \begin_layout Standard
29870 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
29879 \begin_layout Standard
29886 of the LaTeX-package
29891 \begin_inset LatexCommand index
29892 name "LaTeX-packages ! hyperref"
29899 \begin_layout Bibliography
29900 \begin_inset LatexCommand bibitem
29909 \begin_layout Standard
29913 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29923 \begin_layout Standard
29930 of the LaTeX-package
29935 \begin_inset LatexCommand index
29936 name "LaTeX-packages ! hyperref"
29943 \begin_layout Bibliography
29944 \begin_inset LatexCommand bibitem
29953 \begin_layout Standard
29957 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29967 \begin_layout Standard
29974 of the LaTeX-package
29979 \begin_inset LatexCommand index
29980 name "LaTeX-packages ! koma-script"
29987 \begin_layout Bibliography
29988 \begin_inset LatexCommand bibitem
29989 key "koma-script-de"
29997 \begin_layout Standard
30001 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
30011 \begin_layout Standard
30018 of the LaTeX-package
30023 \begin_inset LatexCommand index
30024 name "LaTeX-packages ! koma-script"
30031 \begin_layout Bibliography
30032 \begin_inset LatexCommand bibitem
30041 \begin_layout Standard
30045 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
30055 \begin_layout Standard
30062 of the LaTeX-package
30067 \begin_inset LatexCommand index
30068 name "LaTeX-packages ! listings"
30075 \begin_layout Bibliography
30076 \begin_inset LatexCommand bibitem
30085 \begin_layout Standard
30089 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
30099 \begin_layout Standard
30106 of the LaTeX-package
30111 \begin_inset LatexCommand index
30112 name "LaTeX-packages ! marginnote"
30119 \begin_layout Bibliography
30120 \begin_inset LatexCommand bibitem
30129 \begin_layout Standard
30133 href{http://tug.org/PSTricks/main.cgi/}{
30142 \begin_layout Standard
30149 of the LaTeX-package
30154 \begin_inset LatexCommand index
30155 name "LaTeX-packages ! PSTricks"
30162 \begin_layout Bibliography
30163 \begin_inset LatexCommand bibitem
30172 \begin_layout Standard
30176 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
30185 \begin_layout Standard
30192 of the LaTeX-package
30197 \begin_inset LatexCommand index
30198 name "LaTeX-packages ! sidecap"
30205 \begin_layout Bibliography
30206 \begin_inset LatexCommand bibitem
30215 \begin_layout Standard
30219 href{http://wiki.lyx.org/LyX/NewInLyX15}{
30228 \begin_layout Standard
30235 about new LyX-features planned for the release
30242 \begin_layout Standard
30243 \begin_inset LatexCommand printindex
30250 \begin_layout Standard
30251 \begin_inset FloatList figure
30258 \begin_layout Standard
30259 \begin_inset FloatList table