1 #LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}} % if it exists
15 \usepackage[scaled=0.92]{helvet}
18 } % end if it exists not
20 % link all cross references and URLs
22 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered, bookmarksopen, bookmarksopenlevel=1,
23 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
24 pdfpagelayout=OneColumn, pdfnewwindow=true,
25 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
26 pdfauthor={LyX Team}, pdftex,
27 pdftitle={LyX's Figure, Table, Floats, Notes, and Boxes manual},
28 pdfsubject={LyX-documentation about figures, tables, floats, notes, and boxes},
29 pdfkeywords={LyX, Tables, Figures, Floats, Boxes, Notes}]{hyperref}
31 \else % if dvi or ps is produced
33 % link all cross references and URLs in DVI output
34 \usepackage[ps2pdf, colorlinks=true,
35 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue]{hyperref}
37 \fi % end if pdflatex is used
39 % that links to image floats jumps
40 % to the beginning of the float and
42 \usepackage[figure]{hypcap}
44 % the pages of the TOC are numbered roman
45 % and a PDF-bookmark for the TOC is added
47 \let\myTOC\tableofcontents
48 \renewcommand{\tableofcontents}{%
49 \pdfbookmark[1]{Contents}{}
52 \pagenumbering{arabic}}
54 % provides caption formatting
55 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
57 % provides commands to set caption
58 % beside tables/images
61 \newcommand{\TabBesBeg}{%
63 \let\MyEndtable\endtable
64 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
66 \newcommand{\TabBesEnd}{%
68 \let\endtable\MyEndtable}
70 \newcommand{\FigBesBeg}{%
72 \let\MyEndfigure\endfigure
73 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
75 \newcommand{\FigBesEnd}{%
77 \let\endfigure\MyEndfigure}
79 % enables calculation of values,
82 % provides special table cell alignments
85 % increase the bottom float placement fraction
86 \renewcommand{\bottomfraction}{0.5}
88 % avoids that floats are placed before their
89 % corresponding section starts
90 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
92 % speed up the longtable calculation
93 \setcounter{LTchunksize}{100}
95 % used for colored tables
96 \@ifundefined{textcolor}
97 {\usepackage{color}}{}
99 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
100 \definecolor{lightgrey}{gray}{0.8}
103 \usepackage{multirow}
104 %\renewcommand{\multirowsetup}{\centering}
106 % used for book-style tables
107 \usepackage{booktabs}
109 % used to have extra space in table cells,
110 \setlength{\extrarowheight}{2pt}
112 % used for customized tables
115 {>{\centering\hspace{0pt}}m{#1}}
118 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
121 {>{\columncolor{#1}\hspace{0pt}}c}
123 \newcolumntype{V}{!{\vrule width 1.5pt}}
125 \newcolumntype{W}{!{\color{green}\vline}}
128 % To be able to enter the characters ° and · directly in LyX
129 \DeclareInputText{176}{\ifmmode^\circ\else\textdegree\fi}
130 \DeclareInputText{183}{\ifmmode\cdot\else\textperiodcentered\fi}
132 % insert additional vertical space of
133 % 1.5 mm between footnotes
135 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
137 % enable algorithm floats to be referenced
138 \newfloat{Xalgorithm}{tbp}{loa}
139 \floatname{Xalgorithm}{Algorithm}
140 \newcommand{\theHalgorithm}{\theHXalgorithm}
141 \renewenvironment{algorithm}[1][tbp]
142 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
144 % number algorithm floats within chapters
145 \numberwithin{Xalgorithm}{chapter}
147 % redefine the greyed out note
148 \renewenvironment{lyxgreyedout}
149 {\textcolor{blue}\bgroup}{\egroup}
151 % ------------------------------------
152 % used to check for needed LaTeX packages
155 % check for package arydshln
156 % used for tables with dashed lines
157 \newboolean{arydshln}
158 \IfFileExists{arydshln.sty}
159 {\usepackage{arydshln}
160 \setboolean{arydshln}{true}}
161 {\setboolean{arydshln}{false}}
163 % check for package marginnote
164 % used for margin notes
165 \newboolean{marginnote}
166 \IfFileExists{marginnote.sty}
167 {\usepackage{marginnote}
168 \let\marginpar\marginnote
169 \setboolean{marginnote}{true}}
170 {\setboolean{marginnote}{false}}
172 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
177 \font_typewriter default
178 \font_default_family default
192 \paperorientation portrait
195 \paragraph_separation skip
197 \quotes_language english
200 \paperpagestyle default
204 \tracking_changes false
205 \output_changes false
215 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
224 \begin_layout Standard
226 If you have comments or error corrections, please send them to the LyX Documenta
233 \begin_layout Standard
237 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's ExtendedInsets manual}{
242 lyx-docs@lists.lyx.org
246 \begin_layout Standard
259 \begin_inset Note Note
262 \begin_layout Standard
263 original author: Uwe Stöhr
279 \begin_layout Standard
280 \begin_inset LatexCommand tableofcontents
287 \begin_layout Standard
288 \begin_inset Note Note
291 \begin_layout Standard
292 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
302 If they are not installed you can export the document anyway but the sections
303 where the packages are required won't appear in the output.
306 \begin_layout Standard
307 The latest PDF-version of this document can be found here:
311 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
319 \begin_layout Chapter
321 \begin_inset LatexCommand label
327 \begin_inset LatexCommand index
333 \begin_inset LatexCommand index
334 name "Graphics|see{Figures}"
341 \begin_layout Section
343 \begin_inset LatexCommand index
344 name "Figures ! Graphics Dialog"
349 \begin_inset LatexCommand label
350 name "sec:Graphics-Dialog"
357 \begin_layout Standard
358 To insert an image into your document, place the cursor at the text position
359 you want and click on the toolbar icon
360 \begin_inset Graphics
361 filename ../images/dialog-show-new-inset_graphics.xpm
368 Insert\SpecialChar \menuseparator
372 Then a dialog will appear to choose the file to load.
373 The image will appear in the output exactly at the position where it is
377 \begin_layout Standard
378 The graphics dialog can be called at any time by right-clicking on an image.
379 This dialog has three tabs:
382 \begin_layout Description
387 Here you can choose an image file and adjust its appearance in the output.
388 The available units for the image size are explained in appendix\InsetSpace ~
390 \begin_inset LatexCommand ref
391 reference "cha:Units-available-in"
397 You can rotate images counter-clockwise by setting a rotation angle and
399 The image will also be rotated inside LyX.
401 Images can be scaled by using
402 a percentage value or by setting the width and height explicitly.
403 If you set only the width or only the height, the other size will be determined
405 If you set both, then the image will be transformed to the given size,
406 possibly distorting it.
407 To prevent the image from distortion, use the option
409 Maintain aspect ratio
412 The image will then be scaled so that its width and height don't exceed
413 the specified dimensions.
415 Images can be opened in a program of your choice
421 The program can be set for every image format in the file format settings
422 in LyX's preferences.
425 \begin_layout Description
430 Alternatively to the usage of scaling units it is possible to set image
431 coordinates to adjust the height and width of the image in the output.
432 The coordinates can also be calculated automatically by pressing the button
444 bounding\InsetSpace ~
447 will only print the image region within the given coordinates.
448 Normally you don't need to take care about image coordinates and can ignore
452 \begin_layout Description
458 In this tab you can modify the appearance of the image within LyX and set
459 the image to be a subfigure of a figure float with an own caption.
460 Subfigures are explained in section\InsetSpace ~
462 \begin_inset LatexCommand ref
463 reference "sec:Figure-Floats"
469 LaTeX experts can also specify on this tab additional LaTeX options.
477 makes the image appear in the output only as a frame with the size of the
487 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
494 When the option is used the images will not be unzipped on export, since
495 LaTeX can handle them as they are.
497 Zipped EPS-graphics are useful to save
498 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
500 \begin_inset LatexCommand ref
501 reference "sec:PostScript"
506 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
517 zgrep %%Bounding x.eps.gz > x.eps.bb
521 The second command creates the bounding box file
522 \begin_inset Quotes eld
526 \begin_inset Quotes erd
529 that is needed by LaTeX for zipped graphics.
532 \begin_layout Standard
533 \begin_inset VSpace bigskip
539 \begin_layout Standard
540 This is an example image in EPS format
544 \begin_layout Standard
545 Image formats are explained in section\InsetSpace ~
547 \begin_inset LatexCommand ref
548 reference "sec:Image-Formats"
557 within a separate, horizontally centered paragraph:
560 \begin_layout Standard
562 \begin_inset Graphics
563 filename clipart/mobius.eps
573 \begin_layout Standard
574 This is the same image like the one above but in draft mode:
577 \begin_layout Standard
579 \begin_inset Graphics
580 filename clipart/mobius.eps
591 \begin_layout Section
593 \begin_inset LatexCommand label
594 name "sec:Figure-Floats"
599 \begin_inset LatexCommand index
600 name "Floats ! Figures"
605 \begin_inset LatexCommand index
606 name "Figures ! Floats"
613 \begin_layout Standard
614 For general explanations about floats, have a look at section\InsetSpace ~
616 \begin_inset LatexCommand ref
617 reference "sec:FloatIntroduction"
624 \begin_layout Standard
626 \begin_inset Graphics
627 filename ../images/float-insert_figure.xpm
634 Insert\SpecialChar \menuseparator
635 Float\SpecialChar \menuseparator
638 inserts a float with a caption that has the label
639 \begin_inset Quotes eld
644 \begin_inset Quotes erd
647 (# is the actual number).
648 You can insert the image above the caption, like in Figure\InsetSpace ~
650 \begin_inset LatexCommand ref
651 reference "fig:kill-plat"
655 or below the caption, like in Figure\InsetSpace ~
657 \begin_inset LatexCommand ref
658 reference "fig:escher"
663 More about the caption placement is described in section\InsetSpace ~
665 \begin_inset LatexCommand ref
666 reference "sec:Caption-Placement"
673 \begin_layout Standard
674 \begin_inset Float figure
679 \begin_layout Standard
681 \begin_inset Graphics
682 filename clipart/platypus.eps
692 \begin_layout Standard
695 \begin_layout Standard
696 \begin_inset LatexCommand label
701 A severely distorted platypus in a float.
714 \begin_layout Standard
715 \begin_inset Float figure
720 \begin_layout Standard
723 \begin_layout Standard
724 \begin_inset LatexCommand label
738 \begin_layout Standard
740 \begin_inset Graphics
741 filename clipart/escher-lsd.eps
756 \begin_layout Standard
757 \begin_inset LatexCommand index
758 name "References ! to Figures"
764 \begin_inset LatexCommand ref
765 reference "fig:kill-plat"
770 \begin_inset LatexCommand ref
771 reference "fig:escher"
775 are examples of referenced figures.
776 Figures can be referenced in the text by referencing their label.
777 To do this insert a label in the caption using the menu
779 Insert\SpecialChar \menuseparator
782 or the toolbar button
783 \begin_inset Graphics
784 filename ../images/label-insert.xpm
790 You can now refer to the label using the menu
792 Insert\SpecialChar \menuseparator
796 or the toolbar button
797 \begin_inset Graphics
798 filename ../images/dialog-show-new-inset_ref.xpm
804 It is important to use references to floats, rather than using vague references
806 \begin_inset Quotes eld
810 \begin_inset Quotes erd
813 , because as LaTeX will reposition the floats in the final document, it
815 \begin_inset Quotes eld
819 \begin_inset Quotes erd
824 Referencing is explained in detail in section\InsetSpace ~
826 \begin_inset LatexCommand ref
827 reference "sec:Referencing-Floats"
834 \begin_layout Standard
835 Normally only one image is inserted to a figure float, but sometimes you
836 might want to use two images with separate subcaptions.
837 This can be set in the tab
842 of the graphics dialog.
843 Choose there the option
847 and enter the subcaption for the image in the caption field.
848 Note that only the main caption of the float is added to the List of Figures.
851 erencing subfigures is explained in section\InsetSpace ~
853 \begin_inset LatexCommand ref
854 reference "sub:Referencing-Subfigures"
861 \begin_layout Standard
864 \begin_inset LatexCommand ref
865 reference "fig:Two-distorted-images"
869 is an example of a figure float with two images set side by side.
870 You can also set the images one below the other.
873 \begin_layout Standard
874 \begin_inset Float figure
879 \begin_layout Standard
883 \begin_inset Graphics
884 filename clipart/escher-lsd.eps
887 subcaptionText "Undefinable structure"
894 \begin_inset Graphics
895 filename clipart/platypus.eps
899 subcaptionText "\label{fig:Platypus} Platypus"
908 \begin_layout Standard
911 \begin_layout Standard
912 \begin_inset LatexCommand label
913 name "fig:Two-distorted-images"
917 Two distorted images.
930 \begin_layout Section
932 \begin_inset LatexCommand label
933 name "sec:Image-Formats"
938 \begin_inset LatexCommand index
944 \begin_inset LatexCommand index
945 name "Figures ! Image Formats"
952 \begin_layout Standard
953 You can insert images in any known file format.
954 But as explained in appendix\InsetSpace ~
956 \begin_inset LatexCommand ref
957 reference "cha:Output-File-Formats"
961 , every output document format allows only a few image formats.
962 LyX uses therefore the program
966 in the background to convert the images to the right format.
967 To increase your work flow by avoiding these conversions in the background,
968 you can use only the image formats that can directly be embedded in the
970 The output file formats are explained in appendix\InsetSpace ~
972 \begin_inset LatexCommand ref
973 reference "cha:Output-File-Formats"
980 \begin_layout Standard
981 Similar to fonts there are two types of image formats:
984 \begin_layout Description
986 images consist of pixel values, often in a compressed form.
987 They are therefore not fully scalable and look pixeled in large zooms.
988 Well-known bitmap image formats are
989 \begin_inset Quotes eld
992 Graphics Interchange Format
993 \begin_inset Quotes erd
997 \begin_inset Quotes eld
1005 \begin_inset Quotes erd
1009 \begin_inset LatexCommand index
1010 name "GIF|see{Image formats}"
1015 \begin_inset Quotes eld
1018 Portable Network Graphics
1019 \begin_inset Quotes erd
1022 (PNG, file extension
1023 \begin_inset Quotes eld
1031 \begin_inset Quotes erd
1035 \begin_inset LatexCommand index
1036 name "PNG|see{Image formats}"
1041 \begin_inset Quotes eld
1044 Joint Photographic Experts Group
1045 \begin_inset Quotes erd
1048 (JPG, file extension
1049 \begin_inset Quotes eld
1057 \begin_inset Quotes erd
1061 \begin_inset Quotes eld
1069 \begin_inset Quotes erd
1073 \begin_inset LatexCommand index
1074 name "JPG|see{Image formats}"
1081 \begin_layout Description
1083 images consist of vectors and can therefore be scaled to any size
1085 The scaling ability is necessary if you want to create presentations, because
1086 presentations are always scaled by the video projector.
1087 Scaling is also useful for online documents to let the user zoom into diagrams.
1090 ell-known scalable image formats are
1091 \begin_inset Quotes eld
1094 Scalable Vector Graphics
1095 \begin_inset Quotes erd
1098 (SVG, file extension
1099 \begin_inset Quotes eld
1107 \begin_inset Quotes erd
1111 \begin_inset LatexCommand index
1112 name "SVG|see{Image formats}"
1117 \begin_inset Quotes eld
1120 Encapsulated PostScript
1121 \begin_inset Quotes erd
1124 (EPS, file extension
1125 \begin_inset Quotes eld
1133 \begin_inset Quotes erd
1137 \begin_inset LatexCommand index
1138 name "EPS|see{Image formats}"
1143 \begin_inset Quotes eld
1146 Portable Document Format
1147 \begin_inset Quotes erd
1150 (PDF, file extension
1151 \begin_inset Quotes eld
1159 \begin_inset Quotes erd
1163 \begin_inset LatexCommand index
1169 \begin_inset Quotes eld
1173 \begin_inset Quotes erd
1176 (WMF, file extension
1177 \begin_inset Quotes eld
1185 \begin_inset Quotes erd
1189 \begin_inset LatexCommand index
1190 name "SVG|see{Image formats}"
1196 \begin_inset Quotes eld
1200 \begin_inset Quotes erd
1203 , because you can convert any bitmap image to a PDF or EPS-image and the
1204 result will still be a bitmap image.
1205 In this cases only a header with the image properties is added to the original
1210 \begin_layout Standard
1211 In the case of PDF, the original image is additionally compressed.
1217 The PDF-files generated by
1221 are for example bitmap images.
1224 \begin_layout Standard
1225 Normally it is not possible to convert a bitmap image into a scalable one,
1227 Only the image formats PDF and EPS can directly be embedded to PDF and
1228 PostScript output files, respectively.
1229 SVG and WMF-images are currently recalculated to bitmaps when the output
1230 file is generated because there is currently no adequate WMF/SVG
1231 \begin_inset Formula $\to$
1234 PDF/EPS converter available.
1237 \begin_layout Chapter
1239 \begin_inset LatexCommand label
1245 \begin_inset LatexCommand index
1253 \begin_layout Section
1255 \begin_inset LatexCommand index
1256 name "Table ! Introduction"
1263 \begin_layout Standard
1264 You can insert a table using either the toolbar button
1265 \begin_inset Graphics
1266 filename ../images/tabular-insert.xpm
1273 Insert\SpecialChar \menuseparator
1277 The toolbar button offers you a graphical selection: Move the mouse to
1278 set the column/row number of the table that should be created and then
1279 press a mouse button.
1280 When you use the menu to create a table, a dialog will appear, asking you
1281 for the number of rows and columns.
1283 The default table has lines around any
1284 cell and the first row appears separated from the rest of the table.
1285 This separation occurs due to a double line: The cells of the first row
1286 have a line below them and the cells of the second row have a line above
1288 Here is an example table:
1291 \begin_layout Standard
1293 \begin_inset Tabular
1294 <lyxtabular version="3" rows="4" columns="4">
1296 <column alignment="center" valignment="top" leftline="true" width="0">
1297 <column alignment="center" valignment="top" leftline="true" width="0">
1298 <column alignment="center" valignment="top" leftline="true" width="0">
1299 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1300 <row topline="true" bottomline="true">
1301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1304 \begin_layout Standard
1310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1313 \begin_layout Standard
1328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1331 \begin_layout Standard
1337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1340 \begin_layout Standard
1347 <row topline="true">
1348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1351 \begin_layout Standard
1366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1369 \begin_layout Standard
1375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1378 \begin_layout Standard
1384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1387 \begin_layout Standard
1394 <row topline="true">
1395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1398 \begin_layout Standard
1413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1416 \begin_layout Standard
1422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1425 \begin_layout Standard
1431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1434 \begin_layout Standard
1441 <row topline="true" bottomline="true">
1442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1445 \begin_layout Standard
1460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1463 \begin_layout Standard
1469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1472 \begin_layout Standard
1478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1481 \begin_layout Standard
1495 \begin_layout Section
1497 \begin_inset LatexCommand index
1498 name "Table ! Dialog"
1505 \begin_layout Standard
1506 You can alter a table by clicking on it with the right mouse button, which
1507 brings up the table dialog.
1508 Here you can adjust the settings of that cell and row/column respectively
1509 where the cursor is currently placed.
1510 Most of the dialog options also work on selections.
1511 This means if you select more cells, columns or rows, the action is done
1512 for the whole selection.
1513 Note that there is a difference between selecting the
1517 of the cell, and the cell itself.
1518 You can alter tables with the following tabs of the table dialog:
1521 \begin_layout Description
1527 Here you can set the horizontal alignment and the width of the current
1529 When you have set a width you can also adjust the vertical alignment of
1531 A given width will allow the cell to have line breaks and multiple paragraphs
1532 of text, see section\InsetSpace ~
1534 \begin_inset LatexCommand ref
1535 reference "sub:Multiple-Lines-in"
1540 If you set no width, the column is as wide as their widest cell content
1543 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1544 cell, see section\InsetSpace ~
1546 \begin_inset LatexCommand ref
1547 reference "sub:Multicolumns"
1553 The rotate check boxes rotates the current cell, a selection, or the whole
1554 table counter-clockwise by 90°.
1555 The rotation is not shown within LyX, only in the output.
1558 \begin_inset Note Greyedout
1561 \begin_layout Standard
1566 Not all DVI-viewers are able to display rotations.
1573 It is also possible to enter a LaTeX-argument which is needed for special
1574 table formattings, see section\InsetSpace ~
1576 \begin_inset LatexCommand ref
1577 reference "sub:Multicolumn-Calculations"
1582 \begin_inset LatexCommand ref
1583 reference "sec:Colored-Tables"
1590 \begin_layout Description
1595 In this tab you can add and delete border lines for the current row/column.
1602 will convert the table to a formal table as described in section\InsetSpace ~
1604 \begin_inset LatexCommand ref
1605 reference "sec:Formal-Tables"
1611 You can also add here space to table rows as decribed in section\InsetSpace ~
1613 \begin_inset LatexCommand ref
1614 reference "sub:Row-Spacing"
1621 \begin_layout Description
1626 This tab is to make a table a so called
1627 \begin_inset Quotes eld
1635 \begin_inset Quotes erd
1638 that can run over several pages.
1639 Section\InsetSpace ~
1641 \begin_inset LatexCommand ref
1642 reference "sec:Longtables"
1647 \begin_inset LatexCommand ref
1648 reference "sec:Special-Longtable-Issues"
1652 describe the longtable features in detail.
1655 \begin_layout Standard
1656 When the table toolbar is opened, you can move the cursor with the arrow
1657 keys from cell to cell and the property of the current cell will immediately
1658 be displayed in the dialog.
1661 \begin_layout Section
1663 \begin_inset LatexCommand index
1664 name "Table ! Toolbar"
1671 \begin_layout Standard
1672 The table toolbar is an alternative to the table dialog to be able to alter
1674 It should normally appear at the bottom of LyX's main window when the cursor
1676 You can alternatively switch it on to appear always, by right-clicking
1677 in LyX's main menu bar.
1680 \begin_layout Standard
1681 The toolbar has the following icons:
1684 \begin_layout Labeling
1685 \labelwidthstring 00.00.0000
1686 \begin_inset Graphics
1687 filename ../images/tabular-feature_append-row.xpm
1691 adds a row below the current cell or selection
1694 \begin_layout Labeling
1695 \labelwidthstring 00.00.0000
1696 \begin_inset Graphics
1697 filename ../images/tabular-feature_append-column.xpm
1701 adds a column right beside the current cell or selection
1704 \begin_layout Labeling
1705 \labelwidthstring 00.00.0000
1706 \begin_inset Graphics
1707 filename ../images/tabular-feature_delete-row.xpm
1711 deletes the current row or selection
1714 \begin_layout Labeling
1715 \labelwidthstring 00.00.0000
1716 \begin_inset Graphics
1717 filename ../images/tabular-feature_delete-column.xpm
1721 deletes the current column or selection
1724 \begin_layout Labeling
1725 \labelwidthstring 00.00.0000
1726 \begin_inset Graphics
1727 filename ../images/tabular-feature_toggle-line-top.xpm
1731 adds a line at the top of the current cell / row or of a selection
1734 \begin_layout Labeling
1735 \labelwidthstring 00.00.0000
1736 \begin_inset Graphics
1737 filename ../images/tabular-feature_toggle-line-bottom.xpm
1741 adds a line at the bottom of the current cell / row or of a selection
1744 \begin_layout Labeling
1745 \labelwidthstring 00.00.0000
1746 \begin_inset Graphics
1747 filename ../images/tabular-feature_toggle-line-left.xpm
1751 adds a line at the left side of the current cell / row or of a selection
1754 \begin_layout Labeling
1755 \labelwidthstring 00.00.0000
1756 \begin_inset Graphics
1757 filename ../images/tabular-feature_toggle-line-right.xpm
1761 adds a line at the right side of the current cell / row or of a selection
1764 \begin_layout Labeling
1765 \labelwidthstring 00.00.0000
1766 \begin_inset Graphics
1767 filename ../images/tabular-feature_set-all-lines.xpm
1771 adds lines around the current or selected cells - if the current cell no
1772 multicolumn this also affects the current row and column
1775 \begin_layout Labeling
1776 \labelwidthstring 00.00.0000
1777 \begin_inset Graphics
1778 filename ../images/tabular-feature_unset-all-lines.xpm
1782 deletes all lines of the current or selected cells - if the current cell
1783 no multicolumn this also affects the current row and column
1786 \begin_layout Labeling
1787 \labelwidthstring 00.00.0000
1788 \begin_inset Graphics
1789 filename ../images/tabular-feature_align-left.xpm
1793 left-aligns the content of the current cell / column
1796 \begin_layout Labeling
1797 \labelwidthstring 00.00.0000
1798 \begin_inset Graphics
1799 filename ../images/tabular-feature_align-center.xpm
1803 centers the content of the current cell / column horizontally
1806 \begin_layout Labeling
1807 \labelwidthstring 00.00.0000
1808 \begin_inset Graphics
1809 filename ../images/tabular-feature_align-right.xpm
1813 right-aligns the content of the current cell / column
1816 \begin_layout Labeling
1817 \labelwidthstring 00.00.0000
1818 \begin_inset Graphics
1819 filename ../images/tabular-feature_valign-top.xpm
1823 aligns the content of the current cell vertically to the top
1826 \begin_layout Labeling
1827 \labelwidthstring 00.00.0000
1828 \begin_inset Graphics
1829 filename ../images/tabular-feature_valign-middle.xpm
1833 centers the content of the current cell vertically
1836 \begin_layout Labeling
1837 \labelwidthstring 00.00.0000
1838 \begin_inset Graphics
1839 filename ../images/tabular-feature_valign-bottom.xpm
1843 aligns the content of the current cell vertically to the bottom
1846 \begin_layout Labeling
1847 \labelwidthstring 00.00.0000
1848 \begin_inset Graphics
1849 filename ../images/tabular-feature_set-rotate-cell.xpm
1853 rotates the current cell or selection counter-clockwise by 90°
1856 \begin_layout Labeling
1857 \labelwidthstring 00.00.0000
1858 \begin_inset Graphics
1859 filename ../images/tabular-feature_set-rotate-tabular.xpm
1863 rotates the whole table counter-clockwise by 90°
1866 \begin_layout Labeling
1867 \labelwidthstring 00.00.0000
1868 \begin_inset Graphics
1869 filename ../images/tabular-feature_multicolumn.xpm
1873 sets the current cell or selection as a multicolumn
1876 \begin_layout Standard
1877 \begin_inset Note Greyedout
1880 \begin_layout Standard
1885 For the output the vertical alignment of the first cell in a row is used
1886 for all following cells in the row.
1894 \begin_layout Section
1896 \begin_inset LatexCommand index
1897 name "Table ! Edit Menu"
1904 \begin_layout Standard
1905 Additionally to the table dialog and toolbar, the menu
1907 Edit\SpecialChar \menuseparator
1910 allows you to add and delete border lines for the current row/column and
1911 to set the current selection as multicolumn.
1912 The menu is only available when the cursor is inside a table.
1915 \begin_layout Section
1917 \begin_inset LatexCommand label
1918 name "sec:Table-Floats"
1923 \begin_inset LatexCommand index
1924 name "Floats ! Tables"
1929 \begin_inset LatexCommand index
1930 name "Table ! Floats"
1937 \begin_layout Standard
1938 For general explanations about floats, have a look at section\InsetSpace ~
1940 \begin_inset LatexCommand ref
1941 reference "sec:FloatIntroduction"
1948 \begin_layout Standard
1949 \begin_inset Float table
1955 \begin_layout Standard
1956 \begin_inset Caption
1958 \begin_layout Standard
1959 \begin_inset LatexCommand label
1960 name "tab:a table float"
1972 \begin_layout Standard
1974 \begin_inset Tabular
1975 <lyxtabular version="3" rows="3" columns="3">
1977 <column alignment="center" valignment="top" leftline="true" width="0pt">
1978 <column alignment="center" valignment="top" leftline="true" width="0pt">
1979 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
1980 <row topline="true" bottomline="true">
1981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1984 \begin_layout Standard
1999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2002 \begin_layout Standard
2017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2020 \begin_layout Standard
2036 <row topline="true">
2037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2040 \begin_layout Standard
2055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2058 \begin_layout Standard
2073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2076 \begin_layout Standard
2092 <row topline="true" bottomline="true">
2093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2096 \begin_layout Standard
2106 \begin_inset Formula $\int x^{2}dx$
2114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2117 \begin_layout Standard
2127 \begin_inset Formula $\left[\begin{array}{cc}
2129 c & d\end{array}\right]$
2137 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2140 \begin_layout Standard
2150 \begin_inset Formula $1+1=2$
2171 \begin_layout Standard
2172 Table floats can be inserted using the menu
2174 Insert\SpecialChar \menuseparator
2175 Float\SpecialChar \menuseparator
2178 or the toolbar button
2179 \begin_inset Graphics
2180 filename ../images/float-insert_table.xpm
2188 \begin_layout Standard
2189 The float appears as a collapsible box with a caption that has the label
2191 \begin_inset Quotes eld
2196 \begin_inset Quotes erd
2199 (# is the actual table number).
2200 You can insert tables to the float above or below the caption.
2203 \begin_layout Standard
2206 \begin_inset LatexCommand ref
2207 reference "tab:a table float"
2211 is an example table within a table float.
2214 \begin_layout Standard
2215 Having the caption above the table is the common rule that is unfortunately
2216 not supported in LaTeX's standard classes.
2217 That means if you are using the document classes
2233 there will be no space between the caption and the table.
2234 To insert the needed space, add the following option to the load command
2235 of the LaTeX-package
2240 \begin_inset LatexCommand index
2241 name "LaTeX-packages ! caption"
2245 in your document preamble
2249 \begin_layout Standard
2250 For more information have a look at section\InsetSpace ~
2252 \begin_inset LatexCommand ref
2253 reference "sec:Caption-Placement"
2265 \begin_layout Standard
2271 \begin_layout Standard
2276 , which is described in section\InsetSpace ~
2278 \begin_inset LatexCommand ref
2279 reference "sec:Caption-Formatting"
2283 , is used to adjust the caption format.
2286 \begin_layout Standard
2287 \begin_inset LatexCommand index
2288 name "References ! to Tables"
2292 Tables can be cross-referenced in the text by referencing their label.
2293 To do this insert a label in the caption using the menu
2295 Insert\SpecialChar \menuseparator
2298 or the toolbar button
2299 \begin_inset Graphics
2300 filename ../images/label-insert.xpm
2306 You can now refer to the label using the menu
2308 Insert\SpecialChar \menuseparator
2312 or the toolbar button
2313 \begin_inset Graphics
2314 filename ../images/dialog-show-new-inset_ref.xpm
2321 Referencing is explained in detail in section\InsetSpace ~
2323 \begin_inset LatexCommand ref
2324 reference "sec:Referencing-Floats"
2331 \begin_layout Section
2333 \begin_inset LatexCommand label
2334 name "sec:Longtables"
2339 \begin_inset LatexCommand index
2345 \begin_inset LatexCommand index
2346 name "Table ! Longtables"
2353 \begin_layout Standard
2354 If the table is too long to fit on one page, you can use the option
2364 of the table dialog to split the table automatically over more pages.
2365 Doing this enables some check boxes and you can now define:
2368 \begin_layout Description
2373 : The current row and all rows above, that don't have any special options
2374 defined, are defined to be the header rows of all pages of the longtable;
2375 except for the first page, if
2381 This therefore called the main header.
2384 \begin_layout Description
2390 : The current row and all rows above, that don't have any special options
2391 defined, are defined to be the header rows of the first page of the longtable.
2394 \begin_layout Description
2399 : The current row and all rows below, that don't have any special options
2400 defined, are defined to be the footer rows of all pages of the longtable;
2401 except for the last page, if
2409 \begin_layout Description
2415 : The current row and all rows below, that don't have any special options
2416 defined, are defined to be the footer rows of the last page of the longtable.
2419 \begin_layout Standard
2420 You can also specify a row where the table is splitted.
2421 If you set more than one option in the same table row, you should be aware
2422 of the fact that only the first one is used in the given table row.
2423 The others will then be defined as
2428 In this context, first means first in this order:
2435 header, Footer, Last\InsetSpace ~
2439 See the following longtable to see how it works:
2442 \begin_layout Standard
2444 \begin_inset Tabular
2445 <lyxtabular version="3" rows="69" columns="3">
2446 <features islongtable="true">
2447 <column alignment="left" valignment="top" leftline="true" width="0cm">
2448 <column alignment="left" valignment="top" width="0pt">
2449 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2450 <row topline="true" bottomline="true" endfirsthead="true">
2451 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2454 \begin_layout Standard
2457 Example Phone List (ignore the names)
2462 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2465 \begin_layout Standard
2471 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2474 \begin_layout Standard
2481 <row topline="true" bottomline="true" endfirsthead="true">
2482 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2485 \begin_layout Standard
2493 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2496 \begin_layout Standard
2502 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2505 \begin_layout Standard
2514 <row topline="true" bottomline="true" endhead="true">
2515 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2518 \begin_layout Standard
2526 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2529 \begin_layout Standard
2535 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2538 \begin_layout Standard
2545 <row topline="true" bottomline="true" endhead="true">
2546 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2549 \begin_layout Standard
2557 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2560 \begin_layout Standard
2566 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2569 \begin_layout Standard
2578 <row topline="true" bottomline="true" endfoot="true">
2579 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2582 \begin_layout Standard
2583 continued on next page
2588 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2591 \begin_layout Standard
2597 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2600 \begin_layout Standard
2608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2611 \begin_layout Standard
2619 <cell alignment="center" valignment="top" topline="true" usebox="none">
2622 \begin_layout Standard
2628 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2631 \begin_layout Standard
2639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2642 \begin_layout Standard
2650 <cell alignment="center" valignment="top" topline="true" usebox="none">
2653 \begin_layout Standard
2659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2662 \begin_layout Standard
2670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2673 \begin_layout Standard
2681 <cell alignment="center" valignment="top" topline="true" usebox="none">
2684 \begin_layout Standard
2690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2693 \begin_layout Standard
2701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2704 \begin_layout Standard
2712 <cell alignment="center" valignment="top" topline="true" usebox="none">
2715 \begin_layout Standard
2721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2724 \begin_layout Standard
2732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2735 \begin_layout Standard
2743 <cell alignment="center" valignment="top" topline="true" usebox="none">
2746 \begin_layout Standard
2752 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2755 \begin_layout Standard
2763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2766 \begin_layout Standard
2774 <cell alignment="center" valignment="top" topline="true" usebox="none">
2777 \begin_layout Standard
2783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2786 \begin_layout Standard
2794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2797 \begin_layout Standard
2805 <cell alignment="center" valignment="top" topline="true" usebox="none">
2808 \begin_layout Standard
2814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2817 \begin_layout Standard
2825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2828 \begin_layout Standard
2836 <cell alignment="center" valignment="top" topline="true" usebox="none">
2839 \begin_layout Standard
2845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2848 \begin_layout Standard
2856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2859 \begin_layout Standard
2867 <cell alignment="center" valignment="top" topline="true" usebox="none">
2870 \begin_layout Standard
2876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2879 \begin_layout Standard
2887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2890 \begin_layout Standard
2898 <cell alignment="center" valignment="top" topline="true" usebox="none">
2901 \begin_layout Standard
2907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2910 \begin_layout Standard
2918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2921 \begin_layout Standard
2929 <cell alignment="center" valignment="top" topline="true" usebox="none">
2932 \begin_layout Standard
2938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2941 \begin_layout Standard
2949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2952 \begin_layout Standard
2960 <cell alignment="center" valignment="top" topline="true" usebox="none">
2963 \begin_layout Standard
2969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2972 \begin_layout Standard
2980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2983 \begin_layout Standard
2991 <cell alignment="center" valignment="top" topline="true" usebox="none">
2994 \begin_layout Standard
3000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3003 \begin_layout Standard
3011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3014 \begin_layout Standard
3022 <cell alignment="center" valignment="top" topline="true" usebox="none">
3025 \begin_layout Standard
3031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3034 \begin_layout Standard
3042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3045 \begin_layout Standard
3053 <cell alignment="center" valignment="top" topline="true" usebox="none">
3056 \begin_layout Standard
3062 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3065 \begin_layout Standard
3073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3076 \begin_layout Standard
3084 <cell alignment="center" valignment="top" topline="true" usebox="none">
3087 \begin_layout Standard
3093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3096 \begin_layout Standard
3104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3107 \begin_layout Standard
3115 <cell alignment="center" valignment="top" topline="true" usebox="none">
3118 \begin_layout Standard
3124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3127 \begin_layout Standard
3135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3138 \begin_layout Standard
3146 <cell alignment="center" valignment="top" topline="true" usebox="none">
3149 \begin_layout Standard
3155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3158 \begin_layout Standard
3166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3169 \begin_layout Standard
3177 <cell alignment="center" valignment="top" topline="true" usebox="none">
3180 \begin_layout Standard
3186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3189 \begin_layout Standard
3197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3200 \begin_layout Standard
3208 <cell alignment="center" valignment="top" topline="true" usebox="none">
3211 \begin_layout Standard
3217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3220 \begin_layout Standard
3228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3231 \begin_layout Standard
3239 <cell alignment="center" valignment="top" topline="true" usebox="none">
3242 \begin_layout Standard
3248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3251 \begin_layout Standard
3259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3262 \begin_layout Standard
3270 <cell alignment="center" valignment="top" topline="true" usebox="none">
3273 \begin_layout Standard
3279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3282 \begin_layout Standard
3290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3293 \begin_layout Standard
3301 <cell alignment="center" valignment="top" topline="true" usebox="none">
3304 \begin_layout Standard
3310 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3313 \begin_layout Standard
3321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3324 \begin_layout Standard
3332 <cell alignment="center" valignment="top" topline="true" usebox="none">
3335 \begin_layout Standard
3341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3344 \begin_layout Standard
3352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3355 \begin_layout Standard
3363 <cell alignment="center" valignment="top" topline="true" usebox="none">
3366 \begin_layout Standard
3372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3375 \begin_layout Standard
3383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3386 \begin_layout Standard
3394 <cell alignment="center" valignment="top" topline="true" usebox="none">
3397 \begin_layout Standard
3403 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3406 \begin_layout Standard
3414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3417 \begin_layout Standard
3425 <cell alignment="center" valignment="top" topline="true" usebox="none">
3428 \begin_layout Standard
3434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3437 \begin_layout Standard
3445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3448 \begin_layout Standard
3456 <cell alignment="center" valignment="top" topline="true" usebox="none">
3459 \begin_layout Standard
3465 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3468 \begin_layout Standard
3476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3479 \begin_layout Standard
3487 <cell alignment="center" valignment="top" topline="true" usebox="none">
3490 \begin_layout Standard
3496 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3499 \begin_layout Standard
3507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3510 \begin_layout Standard
3518 <cell alignment="center" valignment="top" topline="true" usebox="none">
3521 \begin_layout Standard
3527 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3530 \begin_layout Standard
3537 <row bottomline="true">
3538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3541 \begin_layout Standard
3549 <cell alignment="center" valignment="top" topline="true" usebox="none">
3552 \begin_layout Standard
3558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3561 \begin_layout Standard
3568 <row bottomline="true">
3569 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3572 \begin_layout Standard
3578 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3581 \begin_layout Standard
3587 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3590 \begin_layout Standard
3598 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3601 \begin_layout Standard
3609 <cell alignment="center" valignment="top" topline="true" usebox="none">
3612 \begin_layout Standard
3618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3621 \begin_layout Standard
3629 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3632 \begin_layout Standard
3640 <cell alignment="center" valignment="top" topline="true" usebox="none">
3643 \begin_layout Standard
3649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3652 \begin_layout Standard
3660 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3663 \begin_layout Standard
3671 <cell alignment="center" valignment="top" topline="true" usebox="none">
3674 \begin_layout Standard
3680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3683 \begin_layout Standard
3691 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3694 \begin_layout Standard
3702 <cell alignment="center" valignment="top" topline="true" usebox="none">
3705 \begin_layout Standard
3711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3714 \begin_layout Standard
3722 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3725 \begin_layout Standard
3733 <cell alignment="center" valignment="top" topline="true" usebox="none">
3736 \begin_layout Standard
3742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3745 \begin_layout Standard
3753 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3756 \begin_layout Standard
3764 <cell alignment="center" valignment="top" topline="true" usebox="none">
3767 \begin_layout Standard
3773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3776 \begin_layout Standard
3784 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3787 \begin_layout Standard
3795 <cell alignment="center" valignment="top" topline="true" usebox="none">
3798 \begin_layout Standard
3804 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3807 \begin_layout Standard
3815 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3818 \begin_layout Standard
3826 <cell alignment="center" valignment="top" topline="true" usebox="none">
3829 \begin_layout Standard
3835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3838 \begin_layout Standard
3846 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3849 \begin_layout Standard
3857 <cell alignment="center" valignment="top" topline="true" usebox="none">
3860 \begin_layout Standard
3866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3869 \begin_layout Standard
3877 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3880 \begin_layout Standard
3888 <cell alignment="center" valignment="top" topline="true" usebox="none">
3891 \begin_layout Standard
3897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3900 \begin_layout Standard
3908 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3911 \begin_layout Standard
3919 <cell alignment="center" valignment="top" topline="true" usebox="none">
3922 \begin_layout Standard
3928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3931 \begin_layout Standard
3939 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3942 \begin_layout Standard
3950 <cell alignment="center" valignment="top" topline="true" usebox="none">
3953 \begin_layout Standard
3959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3962 \begin_layout Standard
3970 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3973 \begin_layout Standard
3981 <cell alignment="center" valignment="top" topline="true" usebox="none">
3984 \begin_layout Standard
3990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3993 \begin_layout Standard
4001 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4004 \begin_layout Standard
4012 <cell alignment="center" valignment="top" topline="true" usebox="none">
4015 \begin_layout Standard
4021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4024 \begin_layout Standard
4032 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4035 \begin_layout Standard
4043 <cell alignment="center" valignment="top" topline="true" usebox="none">
4046 \begin_layout Standard
4052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4055 \begin_layout Standard
4063 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4066 \begin_layout Standard
4074 <cell alignment="center" valignment="top" topline="true" usebox="none">
4077 \begin_layout Standard
4083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4086 \begin_layout Standard
4094 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4097 \begin_layout Standard
4105 <cell alignment="center" valignment="top" topline="true" usebox="none">
4108 \begin_layout Standard
4114 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4117 \begin_layout Standard
4125 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4128 \begin_layout Standard
4136 <cell alignment="center" valignment="top" topline="true" usebox="none">
4139 \begin_layout Standard
4145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4148 \begin_layout Standard
4156 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4159 \begin_layout Standard
4167 <cell alignment="center" valignment="top" topline="true" usebox="none">
4170 \begin_layout Standard
4176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4179 \begin_layout Standard
4187 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4190 \begin_layout Standard
4198 <cell alignment="center" valignment="top" topline="true" usebox="none">
4201 \begin_layout Standard
4207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4210 \begin_layout Standard
4218 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4221 \begin_layout Standard
4229 <cell alignment="center" valignment="top" topline="true" usebox="none">
4232 \begin_layout Standard
4238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4241 \begin_layout Standard
4249 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4252 \begin_layout Standard
4260 <cell alignment="center" valignment="top" topline="true" usebox="none">
4263 \begin_layout Standard
4269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4272 \begin_layout Standard
4280 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4283 \begin_layout Standard
4291 <cell alignment="center" valignment="top" topline="true" usebox="none">
4294 \begin_layout Standard
4300 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4303 \begin_layout Standard
4311 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4314 \begin_layout Standard
4322 <cell alignment="center" valignment="top" topline="true" usebox="none">
4325 \begin_layout Standard
4331 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4334 \begin_layout Standard
4342 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4345 \begin_layout Standard
4353 <cell alignment="center" valignment="top" topline="true" usebox="none">
4356 \begin_layout Standard
4362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4365 \begin_layout Standard
4373 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4376 \begin_layout Standard
4384 <cell alignment="center" valignment="top" topline="true" usebox="none">
4387 \begin_layout Standard
4393 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4396 \begin_layout Standard
4404 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4407 \begin_layout Standard
4415 <cell alignment="center" valignment="top" topline="true" usebox="none">
4418 \begin_layout Standard
4424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4427 \begin_layout Standard
4435 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4438 \begin_layout Standard
4446 <cell alignment="center" valignment="top" topline="true" usebox="none">
4449 \begin_layout Standard
4455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4458 \begin_layout Standard
4466 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4469 \begin_layout Standard
4477 <cell alignment="center" valignment="top" topline="true" usebox="none">
4480 \begin_layout Standard
4486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4489 \begin_layout Standard
4497 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4500 \begin_layout Standard
4508 <cell alignment="center" valignment="top" topline="true" usebox="none">
4511 \begin_layout Standard
4517 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4520 \begin_layout Standard
4527 <row bottomline="true">
4528 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4531 \begin_layout Standard
4539 <cell alignment="center" valignment="top" topline="true" usebox="none">
4542 \begin_layout Standard
4548 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4551 \begin_layout Standard
4558 <row bottomline="true" endlastfoot="true">
4559 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4562 \begin_layout Standard
4568 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4571 \begin_layout Standard
4577 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4580 \begin_layout Standard
4595 \begin_layout Standard
4599 addtocounter{table}{-1}
4605 \begin_inset Note Note
4608 \begin_layout Standard
4609 See greyed-out note in section 2.6.2 for an explanation of this command.
4617 \begin_layout Subsection
4618 Footnotes in Longtables
4619 \begin_inset LatexCommand label
4620 name "sub:Footnotes-in-Longtables"
4625 \begin_inset LatexCommand index
4626 name "Longtables ! Footnotes"
4633 \begin_layout Standard
4634 Footnotes can be inserted to every longtable cell.
4635 They appear at the bottom of the page where the table cell with the footnote
4639 \begin_inset LatexCommand ref
4640 reference "tab:DiffCaptions"
4644 has for example a footnote.
4647 \begin_layout Subsection
4649 \begin_inset LatexCommand index
4650 name "Longtables ! Captions"
4657 \begin_layout Standard
4658 A longtable cannot be put into a table float because floats can only be
4659 on one page but the caption environment of floats can also be used for
4663 \begin_layout Standard
4664 As LyX does not yet fully support captions in longtables, a hack is needed
4668 \begin_layout Enumerate
4674 \begin_layout Enumerate
4675 Mark the first row and disable its upper line.
4678 \begin_layout Enumerate
4679 Insert a caption via the menu
4681 Insert\SpecialChar \menuseparator
4684 into the first table cell.
4686 You can also add a short title for the caption.
4689 \begin_layout Enumerate
4691 \begin_inset Quotes eld
4703 \begin_inset Quotes erd
4706 as ERT behind the caption.
4709 \begin_layout Standard
4710 A short title that will appear in the LOT instead of the full title.
4719 behind the caption omits the vertical lines between the following cells
4721 The first table row is now only a dummy row for the caption, the actual
4722 table starts with the second row.
4725 \begin_layout Standard
4726 Here is a short longtable to see how it works:
4729 \begin_layout Standard
4730 \begin_inset Tabular
4731 <lyxtabular version="3" rows="6" columns="5">
4732 <features islongtable="true">
4733 <column alignment="center" valignment="top" leftline="true" width="0">
4734 <column alignment="center" valignment="top" leftline="true" width="0">
4735 <column alignment="center" valignment="top" leftline="true" width="0">
4736 <column alignment="center" valignment="top" leftline="true" width="0">
4737 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4742 \begin_layout Standard
4743 \begin_inset Caption
4745 \begin_layout Standard
4746 Longtable with caption
4750 \begin_layout Standard
4765 \begin_layout Standard
4781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4784 \begin_layout Standard
4790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4793 \begin_layout Standard
4799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4802 \begin_layout Standard
4808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4811 \begin_layout Standard
4818 <row topline="true">
4819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4822 \begin_layout Standard
4828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4831 \begin_layout Standard
4837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4840 \begin_layout Standard
4846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4849 \begin_layout Standard
4855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4858 \begin_layout Standard
4865 <row topline="true">
4866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4869 \begin_layout Standard
4875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4878 \begin_layout Standard
4884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4887 \begin_layout Standard
4893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4896 \begin_layout Standard
4902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4905 \begin_layout Standard
4912 <row topline="true">
4913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4916 \begin_layout Standard
4922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4925 \begin_layout Standard
4931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4934 \begin_layout Standard
4940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4943 \begin_layout Standard
4949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4952 \begin_layout Standard
4959 <row topline="true">
4960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4963 \begin_layout Standard
4969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4972 \begin_layout Standard
4978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4981 \begin_layout Standard
4987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4990 \begin_layout Standard
4996 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4999 \begin_layout Standard
5006 <row topline="true" bottomline="true">
5007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5010 \begin_layout Standard
5016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5019 \begin_layout Standard
5025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5028 \begin_layout Standard
5034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5037 \begin_layout Standard
5043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5046 \begin_layout Standard
5060 \begin_layout Standard
5061 \begin_inset VSpace medskip
5065 \begin_inset Note Greyedout
5068 \begin_layout Standard
5073 The table number is increased for every longtable, also if you didn't set
5075 For this reason you could have the case that e.g.
5077 2.4 follows on Table\InsetSpace ~
5078 2.1 in the list of tables if there are two longtables
5080 To avoid this you can add the following command in ERT behind every longtable
5084 \begin_layout Standard
5089 addtocounter{table}{-1}
5097 \begin_layout Standard
5098 \begin_inset Note Greyedout
5101 \begin_layout Standard
5106 If you are using the LaTeX-package
5111 \begin_inset LatexCommand index
5112 name "LaTeX-packages ! hyperref"
5116 to link cross-references, the link to a longtable caption will always point
5117 to the beginning of the document.
5125 \begin_layout Subsubsection
5126 References to Longtables
5127 \begin_inset LatexCommand index
5128 name "Longtables ! References"
5135 \begin_layout Standard
5136 \begin_inset Tabular
5137 <lyxtabular version="3" rows="6" columns="5">
5138 <features islongtable="true">
5139 <column alignment="center" valignment="top" leftline="true" width="0">
5140 <column alignment="center" valignment="top" leftline="true" width="0">
5141 <column alignment="center" valignment="top" leftline="true" width="0">
5142 <column alignment="center" valignment="top" leftline="true" width="0">
5143 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5148 \begin_layout Standard
5149 \begin_inset Caption
5151 \begin_layout Standard
5152 Referenced longtable
5153 \begin_inset LatexCommand label
5154 name "tab:RefExample"
5167 \begin_layout Standard
5183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5186 \begin_layout Standard
5192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5195 \begin_layout Standard
5201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5204 \begin_layout Standard
5210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5213 \begin_layout Standard
5220 <row topline="true">
5221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5224 \begin_layout Standard
5230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5233 \begin_layout Standard
5239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5242 \begin_layout Standard
5248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5251 \begin_layout Standard
5257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5260 \begin_layout Standard
5267 <row topline="true">
5268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5271 \begin_layout Standard
5277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5280 \begin_layout Standard
5286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5289 \begin_layout Standard
5295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5298 \begin_layout Standard
5304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5307 \begin_layout Standard
5314 <row topline="true">
5315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5318 \begin_layout Standard
5324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5327 \begin_layout Standard
5333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5336 \begin_layout Standard
5342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5345 \begin_layout Standard
5351 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5354 \begin_layout Standard
5361 <row topline="true">
5362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5365 \begin_layout Standard
5371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5374 \begin_layout Standard
5380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5383 \begin_layout Standard
5389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5392 \begin_layout Standard
5398 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5401 \begin_layout Standard
5408 <row topline="true" bottomline="true">
5409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5412 \begin_layout Standard
5418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5421 \begin_layout Standard
5427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5430 \begin_layout Standard
5436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5439 \begin_layout Standard
5445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5448 \begin_layout Standard
5462 \begin_layout Standard
5463 To reference a longtable, insert a label into the caption.
5464 Note that you have to add the label prefix
5465 \begin_inset Quotes eld
5473 \begin_inset Quotes eld
5476 manually in the label field.
5479 \begin_layout Standard
5480 This is a reference to Table\InsetSpace ~
5482 \begin_inset LatexCommand ref
5483 reference "tab:RefExample"
5490 \begin_layout Standard
5491 The caption layout can be set together with all other caption of your document
5492 using the LaTeX-package
5497 \begin_inset LatexCommand index
5498 name "LaTeX-packages ! caption"
5502 , see section\InsetSpace ~
5504 \begin_inset LatexCommand ref
5505 reference "sec:Caption-Formatting"
5512 \begin_layout Subsubsection
5514 \begin_inset LatexCommand index
5515 name "Longtables ! Caption Width"
5522 \begin_layout Standard
5523 The maximal width of of caption lines is defined by the length
5530 Its default value is 4\InsetSpace \thinspace{}
5532 To change it add the following command to your document preamble or as
5533 ERT into your document before the longtable that should be affected
5536 \begin_layout Standard
5546 \begin_layout Standard
5547 where the width could have one of the units listed in appendix\InsetSpace ~
5549 \begin_inset LatexCommand ref
5550 reference "cha:Units-available-in"
5557 \begin_layout Standard
5558 The following tables show the difference:
5561 \begin_layout Standard
5562 \begin_inset Tabular
5563 <lyxtabular version="3" rows="6" columns="5">
5564 <features islongtable="true">
5565 <column alignment="center" valignment="top" leftline="true" width="0">
5566 <column alignment="center" valignment="top" leftline="true" width="0">
5567 <column alignment="center" valignment="top" leftline="true" width="0">
5568 <column alignment="center" valignment="top" leftline="true" width="0">
5569 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5574 \begin_layout Standard
5575 \begin_inset Caption
5577 \begin_layout Standard
5578 long full title with default width long full title with default width long
5579 full title with default width
5583 \begin_layout Standard
5584 caption with default width
5598 \begin_layout Standard
5614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5617 \begin_layout Standard
5623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5626 \begin_layout Standard
5632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5635 \begin_layout Standard
5641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5644 \begin_layout Standard
5651 <row topline="true">
5652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5655 \begin_layout Standard
5661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5664 \begin_layout Standard
5670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5673 \begin_layout Standard
5679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5682 \begin_layout Standard
5688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5691 \begin_layout Standard
5698 <row topline="true">
5699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5702 \begin_layout Standard
5708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5711 \begin_layout Standard
5717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5720 \begin_layout Standard
5726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5729 \begin_layout Standard
5735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5738 \begin_layout Standard
5745 <row topline="true">
5746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5749 \begin_layout Standard
5755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5758 \begin_layout Standard
5764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5767 \begin_layout Standard
5773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5776 \begin_layout Standard
5782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5785 \begin_layout Standard
5792 <row topline="true">
5793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5796 \begin_layout Standard
5802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5805 \begin_layout Standard
5811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5814 \begin_layout Standard
5820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5823 \begin_layout Standard
5829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5832 \begin_layout Standard
5839 <row topline="true" bottomline="true">
5840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5843 \begin_layout Standard
5849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5852 \begin_layout Standard
5858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5861 \begin_layout Standard
5867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5870 \begin_layout Standard
5876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5879 \begin_layout Standard
5893 \begin_layout Standard
5897 \begin_layout Standard
5909 \begin_inset Tabular
5910 <lyxtabular version="3" rows="6" columns="5">
5911 <features islongtable="true">
5912 <column alignment="center" valignment="top" leftline="true" width="0">
5913 <column alignment="center" valignment="top" leftline="true" width="0">
5914 <column alignment="center" valignment="top" leftline="true" width="0">
5915 <column alignment="center" valignment="top" leftline="true" width="0">
5916 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5921 \begin_layout Standard
5922 \begin_inset Caption
5924 \begin_layout Standard
5925 long full title with width set to 5\InsetSpace \thinspace{}
5926 cm long full title with width set to
5927 5\InsetSpace \thinspace{}
5928 cm long full title with width set to 5\InsetSpace \thinspace{}
5933 \begin_layout Standard
5934 caption with width\InsetSpace \thinspace{}
5935 =\InsetSpace \thinspace{}
5936 5\InsetSpace \thinspace{}
5951 \begin_layout Standard
5967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5970 \begin_layout Standard
5976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5979 \begin_layout Standard
5985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5988 \begin_layout Standard
5994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5997 \begin_layout Standard
6004 <row topline="true">
6005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6008 \begin_layout Standard
6014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6017 \begin_layout Standard
6023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6026 \begin_layout Standard
6032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6035 \begin_layout Standard
6041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6044 \begin_layout Standard
6051 <row topline="true">
6052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6055 \begin_layout Standard
6061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6064 \begin_layout Standard
6070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6073 \begin_layout Standard
6079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6082 \begin_layout Standard
6088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6091 \begin_layout Standard
6098 <row topline="true">
6099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6102 \begin_layout Standard
6108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6111 \begin_layout Standard
6117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6120 \begin_layout Standard
6126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6129 \begin_layout Standard
6135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6138 \begin_layout Standard
6145 <row topline="true">
6146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6149 \begin_layout Standard
6155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6158 \begin_layout Standard
6164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6167 \begin_layout Standard
6173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6176 \begin_layout Standard
6182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6185 \begin_layout Standard
6192 <row topline="true" bottomline="true">
6193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6196 \begin_layout Standard
6202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6205 \begin_layout Standard
6211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6214 \begin_layout Standard
6220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6223 \begin_layout Standard
6229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6232 \begin_layout Standard
6246 \begin_layout Standard
6250 \begin_layout Standard
6264 \begin_layout Standard
6265 \begin_inset Note Greyedout
6268 \begin_layout Standard
6273 When the LaTeX-package
6278 \begin_inset LatexCommand index
6279 name "LaTeX-packages ! caption"
6283 is used, as in this document, the full page width is used for the caption
6284 when you use the default value of 4\InsetSpace \thinspace{}
6292 To get in this case exactly a 4\InsetSpace \thinspace{}
6293 in wide caption, you can either use a value
6294 slightly different from 4.0\InsetSpace \thinspace{}
6296 3.99\InsetSpace \thinspace{}
6297 in, or the LaTeX-command
6301 captionsetup{width=value}
6303 that is provided by the
6315 \begin_layout Subsubsection
6316 Different Captions for Table Pages
6317 \begin_inset LatexCommand index
6318 name "Longtables ! Different Captions for Pages"
6325 \begin_layout Standard
6326 When the other captions should differ from the one of the first table page,
6327 insert a caption with a non-empty short title in a dummy caption row marked
6329 The caption used for the other table pages is inserted as caption without
6330 a short title in a dummy caption row that is marked as main header.
6331 When this caption shouldn't include the table number, use the command
6334 \begin_layout Standard
6339 caption*{caption text}
6342 \begin_layout Standard
6343 instead of LyX's caption box.
6344 The label to reference the table is inserted into the caption of the first
6348 \begin_inset LatexCommand ref
6349 reference "tab:DiffCaptions"
6353 is an example for a longtable with different heading where the second caption
6354 doesn't include the table number.
6357 \begin_layout Standard
6359 \begin_inset Tabular
6360 <lyxtabular version="3" rows="60" columns="3">
6361 <features islongtable="true">
6362 <column alignment="left" valignment="top" leftline="true" width="0cm">
6363 <column alignment="left" valignment="top" rightline="true" width="0pt">
6364 <column alignment="right" valignment="top" rightline="true" width="0pt">
6365 <row endfirsthead="true">
6366 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6369 \begin_layout Standard
6370 \begin_inset Caption
6372 \begin_layout Standard
6374 \begin_inset LatexCommand label
6375 name "tab:DiffCaptions"
6383 \begin_layout Standard
6398 \begin_layout Standard
6414 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6417 \begin_layout Standard
6423 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6426 \begin_layout Standard
6433 <row topline="true" bottomline="true" endfirsthead="true">
6434 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6437 \begin_layout Standard
6440 Example Phone List (ignore the names)
6445 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6448 \begin_layout Standard
6454 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6457 \begin_layout Standard
6464 <row topline="true" bottomline="true" endfirsthead="true">
6465 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6468 \begin_layout Standard
6476 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6479 \begin_layout Standard
6485 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6488 \begin_layout Standard
6497 <row bottomline="true" endhead="true">
6498 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6501 \begin_layout Standard
6505 \begin_layout Standard
6509 caption*{Continued Example Phone List}
6523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6526 \begin_layout Standard
6532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6535 \begin_layout Standard
6542 <row topline="true" bottomline="true" endhead="true">
6543 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6546 \begin_layout Standard
6554 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6557 \begin_layout Standard
6563 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6566 \begin_layout Standard
6573 <row topline="true" bottomline="true" endhead="true">
6574 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6577 \begin_layout Standard
6585 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6588 \begin_layout Standard
6594 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6597 \begin_layout Standard
6606 <row topline="true" bottomline="true" endfoot="true">
6607 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6610 \begin_layout Standard
6611 continued on next page
6616 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6619 \begin_layout Standard
6625 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6628 \begin_layout Standard
6636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6639 \begin_layout Standard
6647 <cell alignment="center" valignment="top" topline="true" usebox="none">
6650 \begin_layout Standard
6656 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6659 \begin_layout Standard
6667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6670 \begin_layout Standard
6678 <cell alignment="center" valignment="top" topline="true" usebox="none">
6681 \begin_layout Standard
6687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6690 \begin_layout Standard
6698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6701 \begin_layout Standard
6709 <cell alignment="center" valignment="top" topline="true" usebox="none">
6712 \begin_layout Standard
6718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6721 \begin_layout Standard
6729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6732 \begin_layout Standard
6740 <cell alignment="center" valignment="top" topline="true" usebox="none">
6743 \begin_layout Standard
6749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6752 \begin_layout Standard
6760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6763 \begin_layout Standard
6771 <cell alignment="center" valignment="top" topline="true" usebox="none">
6774 \begin_layout Standard
6780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6783 \begin_layout Standard
6791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6794 \begin_layout Standard
6802 <cell alignment="center" valignment="top" topline="true" usebox="none">
6805 \begin_layout Standard
6811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6814 \begin_layout Standard
6822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6825 \begin_layout Standard
6833 <cell alignment="center" valignment="top" topline="true" usebox="none">
6836 \begin_layout Standard
6842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6845 \begin_layout Standard
6853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6856 \begin_layout Standard
6864 <cell alignment="center" valignment="top" topline="true" usebox="none">
6867 \begin_layout Standard
6873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6876 \begin_layout Standard
6884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6887 \begin_layout Standard
6895 <cell alignment="center" valignment="top" topline="true" usebox="none">
6898 \begin_layout Standard
6904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6907 \begin_layout Standard
6915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6918 \begin_layout Standard
6926 <cell alignment="center" valignment="top" topline="true" usebox="none">
6929 \begin_layout Standard
6935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6938 \begin_layout Standard
6946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6949 \begin_layout Standard
6957 <cell alignment="center" valignment="top" topline="true" usebox="none">
6960 \begin_layout Standard
6966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6969 \begin_layout Standard
6977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6980 \begin_layout Standard
6988 <cell alignment="center" valignment="top" topline="true" usebox="none">
6991 \begin_layout Standard
6997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7000 \begin_layout Standard
7008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7011 \begin_layout Standard
7019 <cell alignment="center" valignment="top" topline="true" usebox="none">
7022 \begin_layout Standard
7028 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7031 \begin_layout Standard
7039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7042 \begin_layout Standard
7050 <cell alignment="center" valignment="top" topline="true" usebox="none">
7053 \begin_layout Standard
7059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7062 \begin_layout Standard
7070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7073 \begin_layout Standard
7082 \begin_layout Standard
7093 <cell alignment="center" valignment="top" topline="true" usebox="none">
7096 \begin_layout Standard
7102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7105 \begin_layout Standard
7113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7116 \begin_layout Standard
7124 <cell alignment="center" valignment="top" topline="true" usebox="none">
7127 \begin_layout Standard
7133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7136 \begin_layout Standard
7144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7147 \begin_layout Standard
7155 <cell alignment="center" valignment="top" topline="true" usebox="none">
7158 \begin_layout Standard
7164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7167 \begin_layout Standard
7175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7178 \begin_layout Standard
7186 <cell alignment="center" valignment="top" topline="true" usebox="none">
7189 \begin_layout Standard
7195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7198 \begin_layout Standard
7206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7209 \begin_layout Standard
7217 <cell alignment="center" valignment="top" topline="true" usebox="none">
7220 \begin_layout Standard
7226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7229 \begin_layout Standard
7237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7240 \begin_layout Standard
7248 <cell alignment="center" valignment="top" topline="true" usebox="none">
7251 \begin_layout Standard
7257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7260 \begin_layout Standard
7268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7271 \begin_layout Standard
7279 <cell alignment="center" valignment="top" topline="true" usebox="none">
7282 \begin_layout Standard
7288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7291 \begin_layout Standard
7299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7302 \begin_layout Standard
7310 <cell alignment="center" valignment="top" topline="true" usebox="none">
7313 \begin_layout Standard
7319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7322 \begin_layout Standard
7330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7333 \begin_layout Standard
7341 <cell alignment="center" valignment="top" topline="true" usebox="none">
7344 \begin_layout Standard
7350 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7353 \begin_layout Standard
7361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7364 \begin_layout Standard
7372 <cell alignment="center" valignment="top" topline="true" usebox="none">
7375 \begin_layout Standard
7381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7384 \begin_layout Standard
7392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7395 \begin_layout Standard
7403 <cell alignment="center" valignment="top" topline="true" usebox="none">
7406 \begin_layout Standard
7412 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7415 \begin_layout Standard
7423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7426 \begin_layout Standard
7434 <cell alignment="center" valignment="top" topline="true" usebox="none">
7437 \begin_layout Standard
7443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7446 \begin_layout Standard
7454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7457 \begin_layout Standard
7465 <cell alignment="center" valignment="top" topline="true" usebox="none">
7468 \begin_layout Standard
7474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7477 \begin_layout Standard
7485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7488 \begin_layout Standard
7496 <cell alignment="center" valignment="top" topline="true" usebox="none">
7499 \begin_layout Standard
7505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7508 \begin_layout Standard
7516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7519 \begin_layout Standard
7527 <cell alignment="center" valignment="top" topline="true" usebox="none">
7530 \begin_layout Standard
7536 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7539 \begin_layout Standard
7547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7550 \begin_layout Standard
7558 <cell alignment="center" valignment="top" topline="true" usebox="none">
7561 \begin_layout Standard
7567 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7570 \begin_layout Standard
7577 <row bottomline="true">
7578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7581 \begin_layout Standard
7589 <cell alignment="center" valignment="top" topline="true" usebox="none">
7592 \begin_layout Standard
7598 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7601 \begin_layout Standard
7608 <row bottomline="true">
7609 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7612 \begin_layout Standard
7618 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7621 \begin_layout Standard
7627 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7630 \begin_layout Standard
7638 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7641 \begin_layout Standard
7649 <cell alignment="center" valignment="top" topline="true" usebox="none">
7652 \begin_layout Standard
7658 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7661 \begin_layout Standard
7669 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7672 \begin_layout Standard
7680 <cell alignment="center" valignment="top" topline="true" usebox="none">
7683 \begin_layout Standard
7689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7692 \begin_layout Standard
7700 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7703 \begin_layout Standard
7711 <cell alignment="center" valignment="top" topline="true" usebox="none">
7714 \begin_layout Standard
7720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7723 \begin_layout Standard
7731 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7734 \begin_layout Standard
7742 <cell alignment="center" valignment="top" topline="true" usebox="none">
7745 \begin_layout Standard
7751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7754 \begin_layout Standard
7762 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7765 \begin_layout Standard
7773 <cell alignment="center" valignment="top" topline="true" usebox="none">
7776 \begin_layout Standard
7782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7785 \begin_layout Standard
7793 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7796 \begin_layout Standard
7804 <cell alignment="center" valignment="top" topline="true" usebox="none">
7807 \begin_layout Standard
7813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7816 \begin_layout Standard
7824 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7827 \begin_layout Standard
7835 <cell alignment="center" valignment="top" topline="true" usebox="none">
7838 \begin_layout Standard
7844 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7847 \begin_layout Standard
7855 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7858 \begin_layout Standard
7866 <cell alignment="center" valignment="top" topline="true" usebox="none">
7869 \begin_layout Standard
7875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7878 \begin_layout Standard
7886 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7889 \begin_layout Standard
7897 <cell alignment="center" valignment="top" topline="true" usebox="none">
7900 \begin_layout Standard
7906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7909 \begin_layout Standard
7917 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7920 \begin_layout Standard
7928 <cell alignment="center" valignment="top" topline="true" usebox="none">
7931 \begin_layout Standard
7937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7940 \begin_layout Standard
7948 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7951 \begin_layout Standard
7959 <cell alignment="center" valignment="top" topline="true" usebox="none">
7962 \begin_layout Standard
7968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7971 \begin_layout Standard
7979 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7982 \begin_layout Standard
7990 <cell alignment="center" valignment="top" topline="true" usebox="none">
7993 \begin_layout Standard
7999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8002 \begin_layout Standard
8010 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8013 \begin_layout Standard
8021 <cell alignment="center" valignment="top" topline="true" usebox="none">
8024 \begin_layout Standard
8030 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8033 \begin_layout Standard
8041 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8044 \begin_layout Standard
8052 <cell alignment="center" valignment="top" topline="true" usebox="none">
8055 \begin_layout Standard
8061 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8064 \begin_layout Standard
8072 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8075 \begin_layout Standard
8083 <cell alignment="center" valignment="top" topline="true" usebox="none">
8086 \begin_layout Standard
8092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8095 \begin_layout Standard
8103 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8106 \begin_layout Standard
8114 <cell alignment="center" valignment="top" topline="true" usebox="none">
8117 \begin_layout Standard
8123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8126 \begin_layout Standard
8134 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8137 \begin_layout Standard
8145 <cell alignment="center" valignment="top" topline="true" usebox="none">
8148 \begin_layout Standard
8154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8157 \begin_layout Standard
8165 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8168 \begin_layout Standard
8176 <cell alignment="center" valignment="top" topline="true" usebox="none">
8179 \begin_layout Standard
8185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8188 \begin_layout Standard
8196 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8199 \begin_layout Standard
8207 <cell alignment="center" valignment="top" topline="true" usebox="none">
8210 \begin_layout Standard
8216 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8219 \begin_layout Standard
8226 <row bottomline="true">
8227 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8230 \begin_layout Standard
8238 <cell alignment="center" valignment="top" topline="true" usebox="none">
8241 \begin_layout Standard
8247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8250 \begin_layout Standard
8257 <row bottomline="true" endlastfoot="true">
8258 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8261 \begin_layout Standard
8267 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8270 \begin_layout Standard
8276 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8279 \begin_layout Standard
8293 \begin_layout Section
8294 Special Longtable Issues
8295 \begin_inset LatexCommand label
8296 name "sec:Special-Longtable-Issues"
8303 \begin_layout Subsection
8304 Longtable Calculation
8305 \begin_inset LatexCommand index
8306 name "Longtables ! Calculation"
8313 \begin_layout Standard
8314 LaTeX calculates the height of table pages and their page breaks using so
8316 Chunks are pieces of the tables that are at once in LaTeX's memory.
8317 The default value is historically set to only 20 table rows.
8318 If you are using longtables with many pages this may slow down the creation
8320 You can safely increase the chunk size to values of 100-1000 by adding
8321 this command line to your document preamble:
8324 \begin_layout Standard
8329 setcounter{LTchunksize}{100}
8332 \begin_layout Subsection
8333 Floats and Longtables
8334 \begin_inset LatexCommand index
8335 name "Longtables ! Floats"
8342 \begin_layout Standard
8343 There might be problems when a float appears on the same page where a longtable
8345 To avoid such situation, add the command
8351 as ERT before your longtable.
8354 \begin_layout Subsection
8356 \begin_inset LatexCommand index
8357 name "Longtables ! Forced Page Breaks"
8364 \begin_layout Standard
8365 By default tables are only broken between rows.
8366 If you have a cell with multiples lines and want to have a page break within
8367 the cell, insert the new line command
8368 \begin_inset Quotes eld
8380 \begin_inset Quotes erd
8383 as ERT at this point of the cell where it should be broken.
8392 command you have to insert in ERT so many
8393 \begin_inset Quotes eld
8401 \begin_inset Quotes erd
8404 characters like the number of the following table columns.
8409 is the character to separate table cells.
8410 Write in ERT after each
8414 the content of the corresponding following cell and delete the content
8425 command, insert so many
8429 characters like the number of table columns before the current column.
8430 In Table\InsetSpace ~
8432 \begin_inset LatexCommand ref
8433 reference "tab:ForcedPagebreak"
8437 the cell that should be broken is in the second column followed by another
8439 Therefore the following command was inserted in the cell as ERT behind
8441 \begin_inset Quotes eld
8449 \begin_inset Quotes erd
8455 \begin_layout Standard
8467 \begin_layout Standard
8469 \begin_inset Quotes eld
8473 \begin_inset Quotes erd
8476 in the third columns of the row was deleted.
8477 If your footer row of the longtable has for a certain reason no upper line
8478 but you would have a horizontal line where the cell is broken, use this
8482 \begin_layout Standard
8496 \begin_layout Standard
8497 When the cell to be broken is in the last column, the command
8500 \begin_layout Standard
8507 parf\SpecialChar \textcompwordmark{}
8511 \begin_layout Standard
8512 must be inserted as ERT at the beginning of the cell.
8513 This assures that the part of the cell that will be displayed on the new
8514 page appears with the full width.
8518 \begin_layout Standard
8520 \begin_inset Tabular
8521 <lyxtabular version="3" rows="39" columns="3">
8522 <features islongtable="true">
8523 <column alignment="left" valignment="top" leftline="true" width="0cm">
8524 <column alignment="left" valignment="top" rightline="true" width="3cm">
8525 <column alignment="right" valignment="top" rightline="true" width="0pt">
8526 <row endfirsthead="true">
8527 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8530 \begin_layout Standard
8531 \begin_inset Caption
8533 \begin_layout Standard
8534 Table with forced page break in table cell
8535 \begin_inset LatexCommand label
8536 name "tab:ForcedPagebreak"
8544 \begin_layout Standard
8545 Table with forced page break in table cell
8559 \begin_layout Standard
8575 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8578 \begin_layout Standard
8584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8587 \begin_layout Standard
8594 <row topline="true" bottomline="true" endfirsthead="true">
8595 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8598 \begin_layout Standard
8601 Example Phone List (ignore the names)
8606 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8609 \begin_layout Standard
8615 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8618 \begin_layout Standard
8625 <row topline="true" bottomline="true" endfirsthead="true">
8626 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8629 \begin_layout Standard
8637 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8640 \begin_layout Standard
8646 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8649 \begin_layout Standard
8658 <row bottomline="true" endhead="true">
8659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8662 \begin_layout Standard
8666 \begin_layout Standard
8670 caption*{Continued table with forced page break in table cell}
8684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8687 \begin_layout Standard
8693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8696 \begin_layout Standard
8703 <row topline="true" bottomline="true" endhead="true">
8704 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8707 \begin_layout Standard
8715 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8718 \begin_layout Standard
8724 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8727 \begin_layout Standard
8734 <row topline="true" bottomline="true" endhead="true">
8735 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8738 \begin_layout Standard
8746 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8749 \begin_layout Standard
8755 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8758 \begin_layout Standard
8767 <row topline="true" bottomline="true" endfoot="true">
8768 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8771 \begin_layout Standard
8772 continued on next page
8777 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8780 \begin_layout Standard
8786 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8789 \begin_layout Standard
8797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8800 \begin_layout Standard
8808 <cell alignment="center" valignment="top" topline="true" usebox="none">
8811 \begin_layout Standard
8817 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8820 \begin_layout Standard
8828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8831 \begin_layout Standard
8839 <cell alignment="center" valignment="top" topline="true" usebox="none">
8842 \begin_layout Standard
8848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8851 \begin_layout Standard
8859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8862 \begin_layout Standard
8870 <cell alignment="center" valignment="top" topline="true" usebox="none">
8873 \begin_layout Standard
8879 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8882 \begin_layout Standard
8890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8893 \begin_layout Standard
8901 <cell alignment="center" valignment="top" topline="true" usebox="none">
8904 \begin_layout Standard
8910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8913 \begin_layout Standard
8921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8924 \begin_layout Standard
8932 <cell alignment="center" valignment="top" topline="true" usebox="none">
8935 \begin_layout Standard
8941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8944 \begin_layout Standard
8952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8955 \begin_layout Standard
8963 <cell alignment="center" valignment="top" topline="true" usebox="none">
8966 \begin_layout Standard
8972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8975 \begin_layout Standard
8983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8986 \begin_layout Standard
8994 <cell alignment="center" valignment="top" topline="true" usebox="none">
8997 \begin_layout Standard
9003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9006 \begin_layout Standard
9014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9017 \begin_layout Standard
9025 <cell alignment="center" valignment="top" topline="true" usebox="none">
9028 \begin_layout Standard
9034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9037 \begin_layout Standard
9045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9048 \begin_layout Standard
9056 <cell alignment="center" valignment="top" topline="true" usebox="none">
9059 \begin_layout Standard
9065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9068 \begin_layout Standard
9076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9079 \begin_layout Standard
9087 <cell alignment="center" valignment="top" topline="true" usebox="none">
9090 \begin_layout Standard
9096 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9099 \begin_layout Standard
9107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9110 \begin_layout Standard
9118 <cell alignment="center" valignment="top" topline="true" usebox="none">
9121 \begin_layout Standard
9127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9130 \begin_layout Standard
9138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9141 \begin_layout Standard
9149 <cell alignment="center" valignment="top" topline="true" usebox="none">
9152 \begin_layout Standard
9158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9161 \begin_layout Standard
9169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9172 \begin_layout Standard
9180 <cell alignment="center" valignment="top" topline="true" usebox="none">
9183 \begin_layout Standard
9189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9192 \begin_layout Standard
9200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9203 \begin_layout Standard
9211 <cell alignment="center" valignment="top" topline="true" usebox="none">
9214 \begin_layout Standard
9220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9223 \begin_layout Standard
9231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9234 \begin_layout Standard
9242 <cell alignment="center" valignment="top" topline="true" usebox="none">
9245 \begin_layout Standard
9251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9254 \begin_layout Standard
9262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9265 \begin_layout Standard
9273 <cell alignment="center" valignment="top" topline="true" usebox="none">
9276 \begin_layout Standard
9282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9285 \begin_layout Standard
9293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9296 \begin_layout Standard
9304 <cell alignment="center" valignment="top" topline="true" usebox="none">
9307 \begin_layout Standard
9313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9316 \begin_layout Standard
9324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9327 \begin_layout Standard
9335 <cell alignment="center" valignment="top" topline="true" usebox="none">
9338 \begin_layout Standard
9344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9347 \begin_layout Standard
9355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9358 \begin_layout Standard
9366 <cell alignment="center" valignment="top" topline="true" usebox="none">
9369 \begin_layout Standard
9375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9378 \begin_layout Standard
9386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9389 \begin_layout Standard
9397 <cell alignment="center" valignment="top" topline="true" usebox="none">
9400 \begin_layout Standard
9406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9409 \begin_layout Standard
9417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9420 \begin_layout Standard
9428 <cell alignment="center" valignment="top" topline="true" usebox="none">
9431 \begin_layout Standard
9437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9440 \begin_layout Standard
9448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9451 \begin_layout Standard
9459 <cell alignment="center" valignment="top" topline="true" usebox="none">
9462 \begin_layout Standard
9468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9471 \begin_layout Standard
9479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9482 \begin_layout Standard
9490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9493 \begin_layout Standard
9495 Fürst von Montecompatri, 11.
9496 Fürst von Sulmona und Vivaro, 10.
9497 Fürst von Rossano, 5.
9498 Herzog von Canemorte, 11.
9499 Herzog von Palombara, 5.
9500 Herzog von Castelchiodato,
9504 \begin_layout Standard
9513 \begin_layout Standard
9521 Herzog von Poggionativo, 11.
9522 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9523 Graf von Valinfreda, 11.
9524 Baron von Cropalati, 11.
9525 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9533 \begin_layout Standard
9541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9544 \begin_layout Standard
9552 <cell alignment="center" valignment="top" topline="true" usebox="none">
9555 \begin_layout Standard
9561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9564 \begin_layout Standard
9572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9575 \begin_layout Standard
9583 <cell alignment="center" valignment="top" topline="true" usebox="none">
9586 \begin_layout Standard
9592 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9595 \begin_layout Standard
9603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9606 \begin_layout Standard
9614 <cell alignment="center" valignment="top" topline="true" usebox="none">
9617 \begin_layout Standard
9623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9626 \begin_layout Standard
9634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9637 \begin_layout Standard
9645 <cell alignment="center" valignment="top" topline="true" usebox="none">
9648 \begin_layout Standard
9654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9657 \begin_layout Standard
9665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9668 \begin_layout Standard
9676 <cell alignment="center" valignment="top" topline="true" usebox="none">
9679 \begin_layout Standard
9685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9688 \begin_layout Standard
9696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9699 \begin_layout Standard
9707 <cell alignment="center" valignment="top" topline="true" usebox="none">
9710 \begin_layout Standard
9716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9719 \begin_layout Standard
9727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9730 \begin_layout Standard
9738 <cell alignment="center" valignment="top" topline="true" usebox="none">
9741 \begin_layout Standard
9747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9750 \begin_layout Standard
9757 <row bottomline="true">
9758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9761 \begin_layout Standard
9769 <cell alignment="center" valignment="top" topline="true" usebox="none">
9772 \begin_layout Standard
9778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9781 \begin_layout Standard
9788 <row endlastfoot="true">
9789 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9792 \begin_layout Standard
9798 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9801 \begin_layout Standard
9807 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9810 \begin_layout Standard
9824 \begin_layout Section
9825 Multiple Lines Columns and Rows
9828 \begin_layout Subsection
9829 Multiple Lines in Table Cells
9830 \begin_inset LatexCommand label
9831 name "sub:Multiple-Lines-in"
9836 \begin_inset LatexCommand index
9837 name "Multiple Lines in Table Cells"
9842 \begin_inset LatexCommand index
9843 name "Table ! Linebreaks"
9850 \begin_layout Standard
9852 \begin_inset Float table
9858 \begin_layout Standard
9859 \begin_inset Caption
9861 \begin_layout Standard
9862 \begin_inset LatexCommand label
9863 name "tab:Table-with-multiple"
9867 Table with multiple lines in cells
9875 \begin_layout Standard
9877 \begin_inset Tabular
9878 <lyxtabular version="3" rows="3" columns="3">
9880 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9881 <column alignment="center" valignment="middle" leftline="true" width="0">
9882 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
9883 <row topline="true">
9884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9887 \begin_layout Standard
9892 \begin_layout Standard
9906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9909 \begin_layout Standard
9915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9918 \begin_layout Standard
9925 <row topline="true">
9926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9929 \begin_layout Standard
9935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9938 \begin_layout Standard
9944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9947 \begin_layout Standard
9954 <row topline="true" bottomline="true">
9955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9958 \begin_layout Standard
9964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9967 \begin_layout Standard
9973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9976 \begin_layout Standard
9995 \begin_layout Standard
9996 Adjusting a fixed width for a column, enables to enter text as a paragraph
9997 with multiple lines and hyphenations.
10000 \begin_layout Standard
10001 To produce Table\InsetSpace ~
10003 \begin_inset LatexCommand ref
10004 reference "tab:Table-with-multiple"
10008 , create a 3×3 table, mark the first cell and right-click on it.
10009 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10010 cm and choose centered
10011 for the vertical and horizontal alignment.
10012 The vertical alignment is used for all cells of the row.
10013 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10014 cm, only one line will appear.
10015 To get two lines, we add a line break with the command
10018 \begin_layout Standard
10026 \begin_layout Standard
10028 If the text is wider than the set cell width it will automatically be broken
10032 \begin_layout Standard
10033 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10034 by LaTeX if it is the first entry.
10035 Therefore you need to insert something, to make the word not being the
10036 first entry: Add the command
10039 \begin_layout Standard
10047 \begin_layout Standard
10048 in ERT before the word.
10049 As the space is zero, it doesn't change the output.
10052 \begin_inset LatexCommand ref
10053 reference "tab:Table-with-and"
10060 \begin_layout Standard
10061 \begin_inset Float table
10067 \begin_layout Standard
10068 \begin_inset Caption
10070 \begin_layout Standard
10071 \begin_inset LatexCommand label
10072 name "tab:Table-with-and"
10076 Table with and without hyphenation
10084 \begin_layout Standard
10088 \begin_inset Tabular
10089 <lyxtabular version="3" rows="3" columns="3">
10091 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10092 <column alignment="center" valignment="middle" leftline="true" width="0">
10093 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10094 <row topline="true">
10095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10098 \begin_layout Standard
10099 verylongtablecellword
10104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10107 \begin_layout Standard
10113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10116 \begin_layout Standard
10123 <row topline="true">
10124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10127 \begin_layout Standard
10133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10136 \begin_layout Standard
10142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10145 \begin_layout Standard
10152 <row topline="true" bottomline="true">
10153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10156 \begin_layout Standard
10162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10165 \begin_layout Standard
10171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10174 \begin_layout Standard
10188 \begin_inset Tabular
10189 <lyxtabular version="3" rows="3" columns="3">
10191 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10192 <column alignment="center" valignment="middle" leftline="true" width="0">
10193 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0">
10194 <row topline="true">
10195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10198 \begin_layout Standard
10202 \begin_layout Standard
10211 verylongtablecellword
10216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10219 \begin_layout Standard
10225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10228 \begin_layout Standard
10235 <row topline="true">
10236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10239 \begin_layout Standard
10245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10248 \begin_layout Standard
10254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10257 \begin_layout Standard
10264 <row topline="true" bottomline="true">
10265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10268 \begin_layout Standard
10274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10277 \begin_layout Standard
10283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10286 \begin_layout Standard
10307 \begin_layout Standard
10313 \begin_layout Subsection
10315 \begin_inset LatexCommand label
10316 name "sub:Multicolumns"
10321 \begin_inset LatexCommand index
10322 name "Multicolumns"
10327 \begin_inset LatexCommand index
10328 name "Table ! Multicolumns"
10335 \begin_layout Subsubsection
10339 \begin_layout Standard
10340 To span a cell over multiple columns, mark as much cells within a line that
10341 should be one spanned cell and use either the table-toolbar button
10342 \begin_inset Graphics
10343 filename ../images/tabular-feature_multicolumn.xpm
10350 Edit\SpecialChar \menuseparator
10351 Table\SpecialChar \menuseparator
10354 , or right click on the marked cells and choose multicolumn in the appearing
10355 table dialog under the tab
10362 \begin_layout Standard
10363 Multicolumns have there own cell settings.
10364 That means changing cell borders, cell alignment, and the width only affects
10366 Here is an example table with a multicolumn cell in the first row and one
10367 in the last row without the upper border:
10370 \begin_layout Standard
10372 \begin_inset Tabular
10373 <lyxtabular version="3" rows="3" columns="4">
10374 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10375 <column alignment="center" valignment="top" leftline="true" width="0pt">
10376 <column alignment="center" valignment="middle" leftline="true" width="0">
10377 <column alignment="center" valignment="top" leftline="true" width="0in">
10378 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10379 <row topline="true" bottomline="true">
10380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10383 \begin_layout Standard
10389 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10392 \begin_layout Standard
10398 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10401 \begin_layout Standard
10407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10410 \begin_layout Standard
10417 <row topline="true">
10418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10421 \begin_layout Standard
10436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10439 \begin_layout Standard
10445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10448 \begin_layout Standard
10454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10457 \begin_layout Standard
10464 <row topline="true" bottomline="true">
10465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10468 \begin_layout Standard
10474 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10477 \begin_layout Standard
10483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10486 \begin_layout Standard
10492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10495 \begin_layout Standard
10509 \begin_layout Subsubsection
10510 Multicolumn Calculations
10511 \begin_inset LatexCommand label
10512 name "sub:Multicolumn-Calculations"
10517 \begin_inset LatexCommand index
10518 name "Multicolumns ! Calculations"
10525 \begin_layout Standard
10526 LyX supports multicolumns directly, but we have to take notice of the cell
10527 width of the columns spanned by the multicolumn cell.
10530 \begin_layout Standard
10531 \begin_inset Float table
10536 \begin_layout Standard
10537 \begin_inset Caption
10539 \begin_layout Standard
10540 \begin_inset LatexCommand label
10541 name "tab:Table-with-centered"
10545 Table with centered multicolumn text above two columns that have exactly
10546 half the width of the multicolumn cell
10547 \begin_inset OptArg
10550 \begin_layout Standard
10551 Perfect multicolumn table
10564 \begin_layout Standard
10566 \begin_inset Tabular
10567 <lyxtabular version="3" rows="3" columns="3">
10569 <column alignment="center" valignment="middle" leftline="true" width="0" special=">{\centering}m{1.25cm-6.2pt}">
10570 <column alignment="center" valignment="middle" leftline="true" width="0">
10571 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10572 <row topline="true">
10573 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
10576 \begin_layout Standard
10577 multiple lines multicolumn
10582 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10585 \begin_layout Standard
10591 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10594 \begin_layout Standard
10601 <row topline="true">
10602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10605 \begin_layout Standard
10611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10614 \begin_layout Standard
10620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10623 \begin_layout Standard
10630 <row topline="true" bottomline="true">
10631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10634 \begin_layout Standard
10640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10643 \begin_layout Standard
10649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10652 \begin_layout Standard
10671 \begin_layout Standard
10672 To create for example Table\InsetSpace ~
10674 \begin_inset LatexCommand ref
10675 reference "tab:Table-with-centered"
10679 , mark the first two cells in the first row of a 3×3 table and right-click
10681 Now choose for this cell
10689 and a width of 2.5\InsetSpace \thinspace{}
10690 cm in the table dialog.
10691 The spanned columns should have exactly half the width of the multicolumn
10692 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10693 cm for the first column.
10694 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10696 width - width of first column).
10697 This was done for Table\InsetSpace ~
10699 \begin_inset LatexCommand ref
10700 reference "tab:Table-without-half"
10707 \begin_layout Standard
10708 \begin_inset Float table
10713 \begin_layout Standard
10714 \begin_inset Caption
10716 \begin_layout Standard
10717 \begin_inset LatexCommand label
10718 name "tab:Table-without-half"
10722 Table where the spanned table columns have not exactly half the width of
10723 the multicolumn cell
10724 \begin_inset OptArg
10727 \begin_layout Standard
10728 Imperfect multicolumn table
10741 \begin_layout Standard
10743 \begin_inset Tabular
10744 <lyxtabular version="3" rows="3" columns="3">
10746 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10747 <column alignment="center" valignment="top" leftline="true" width="0">
10748 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10749 <row topline="true" bottomline="true">
10750 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10753 \begin_layout Standard
10754 multiple lines multicolumn
10759 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10762 \begin_layout Standard
10768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10771 \begin_layout Standard
10778 <row topline="true">
10779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10782 \begin_layout Standard
10788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10791 \begin_layout Standard
10797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10800 \begin_layout Standard
10807 <row topline="true" bottomline="true">
10808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10811 \begin_layout Standard
10817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10820 \begin_layout Standard
10826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10829 \begin_layout Standard
10848 \begin_layout Standard
10849 You can see that the first column has not the half width of the multicolumn
10850 cell, it is a bit bigger.
10851 The reason is that the given width of a cell
10852 \begin_inset Formula $W_{g}$
10855 is not its total width
10856 \begin_inset Formula $W_{\mathrm{tot}}$
10859 because a cell is always a bit larger than its given width.
10860 Appendix\InsetSpace ~
10862 \begin_inset LatexCommand eqref
10863 reference "cha:Explanation-of-Equation"
10867 explains it in detail.
10870 \begin_layout Standard
10871 The needed given width
10872 \begin_inset Formula $W_{g\, n}$
10879 columns are spanned can be calculated, so that each column has a total
10881 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10885 \begin_inset Formula \begin{equation}
10886 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10893 \begin_layout Standard
10894 In our case we have
10895 \begin_inset Formula $n=2$
10899 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10902 cm and the default values for the lengths, so that equation
10903 \begin_inset LatexCommand ref
10909 \begin_inset Formula \begin{equation}
10910 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10917 \begin_layout Standard
10918 To enable calculations in LaTeX, the LaTeX-package
10922 must be loaded with the document preamble line
10923 \begin_inset LatexCommand index
10924 name "LaTeX-packages ! calc"
10931 \begin_layout Standard
10939 \begin_layout Standard
10940 LyX does not allow to calculate lengths in the width-field of the table
10942 Therefore you have to format the column by inserting a LaTeX-argument in
10944 Here is an overview about the arguments:
10947 \begin_layout Itemize
10952 creates cell with a fixed width, its text is vertically top-aligned
10955 \begin_layout Itemize
10960 creates cell with a fixed width, its text is vertically centered
10963 \begin_layout Itemize
10968 creates cell with a fixed width, its text is vertically bottom-aligned
10971 \begin_layout Standard
10972 By entering a LaTeX-argument, all cell properties set in the table dialog
10975 \begin_inset Note Greyedout
10978 \begin_layout Standard
10983 Due to a bug, LyX shows the overwritten properties anyway.
10988 As the text should be horizontally centered, the command
10995 You can now enter the following LaTeX-argument for the first spanned column:
10998 \begin_layout Standard
11003 centering}m{1.25cm-6.2pt}
11006 \begin_layout Standard
11011 means, that the commands inside the braces are applied before the cell
11015 \begin_layout Standard
11016 Although we have chosen centered alignment for the text of the multicolumn
11017 cell, it is still left aligned.
11018 This is because LyX only applies the alignment to single columns.
11019 So we have to use for the multicolumn the LaTeX-argument
11022 \begin_layout Standard
11030 \begin_layout Subsection
11032 \begin_inset LatexCommand index
11038 \begin_inset LatexCommand index
11039 name "Table ! Multirows"
11044 \begin_inset LatexCommand index
11045 name "LaTeX-packages ! multirow"
11052 \begin_layout Standard
11053 In contrary to multicolumns multirows are not yet supported by LyX so a
11054 bit of ERT needs to be used.
11055 To use multirows load the LaTeX-package
11059 in your document preamble with the command
11062 \begin_layout Standard
11067 usepackage{multirow}
11070 \begin_layout Standard
11071 Multirows are created with the command
11074 \begin_layout Standard
11079 multirow{number of rows}{cell width}{cell entry}
11082 \begin_layout Standard
11083 To create the following table:
11086 \begin_layout Standard
11091 \begin_layout Standard
11105 \begin_inset Tabular
11106 <lyxtabular version="3" rows="3" columns="3">
11108 <column alignment="center" valignment="top" leftline="true" width="0">
11109 <column alignment="center" valignment="top" leftline="true" width="0">
11110 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11111 <row topline="true">
11112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11115 \begin_layout Standard
11121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11124 \begin_layout Standard
11130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11133 \begin_layout Standard
11140 <row topline="true">
11141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11144 \begin_layout Standard
11148 \begin_layout Standard
11152 multirow{2}{2.5cm}{
11161 \begin_layout Standard
11173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11176 \begin_layout Standard
11182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11185 \begin_layout Standard
11192 <row topline="true" bottomline="true">
11193 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11196 \begin_layout Standard
11202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11205 \begin_layout Standard
11211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11214 \begin_layout Standard
11229 \begin_layout Standard
11245 \begin_layout Standard
11246 create a 3×3 table.
11247 To get rid of the line above the last cell in the first column, the cell
11248 is marked as multicolumn and the upper border is unset.
11249 The multirow is now created in the second row of the first column by inserting
11253 \begin_layout Standard
11258 multirow{2}{2.5cm}{
11261 \begin_layout Standard
11263 According to the command parameters the multirow spans now two rows and
11264 has a width of 2.5\InsetSpace \thinspace{}
11266 The content of the multirow cell follows outside the ERT box and the command
11267 is finished with a right brace
11271 in another ERT-box behind the text.
11274 \begin_layout Standard
11281 left-aligns its content by default.
11282 To override the default, renew the command
11291 \begin_layout Standard
11303 \begin_layout Standard
11304 in ERT in the document preamble.
11305 Then all entries of multirow cells in the document are centered.
11306 If centering is only needed for several tables, you can renew the command
11307 in an ERT box just before the table instead of the preamble.
11308 If the text should be right-aligned, replace
11321 To return to left-alignment
11330 \begin_layout Section
11332 \begin_inset LatexCommand label
11333 name "sec:Formal-Tables"
11338 \begin_inset LatexCommand index
11339 name "Table ! Formal"
11346 \begin_layout Standard
11347 Tables are often typeset in books similar to Table\InsetSpace ~
11349 \begin_inset LatexCommand ref
11350 reference "tab:Example-booktabs-table"
11355 This kind of tables is called
11356 \begin_inset Quotes eld
11364 \begin_inset Quotes erd
11368 To make a table a formal table use the option
11376 tab of the table dialog.
11379 \begin_layout Standard
11380 \begin_inset Float table
11386 \begin_layout Standard
11387 \begin_inset Caption
11389 \begin_layout Standard
11390 \begin_inset LatexCommand label
11391 name "tab:Example-booktabs-table"
11395 Example booktabs-table
11403 \begin_layout Standard
11405 \begin_inset Tabular
11406 <lyxtabular version="3" rows="8" columns="4">
11407 <features booktabs="true">
11408 <column alignment="center" valignment="top" rightline="true" width="0">
11409 <column alignment="center" valignment="top" width="0">
11410 <column alignment="center" valignment="top" width="0">
11411 <column alignment="center" valignment="top" width="0">
11412 <row topline="true">
11413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11416 \begin_layout Standard
11422 <cell alignment="center" valignment="top" topline="true" usebox="none">
11425 \begin_layout Standard
11427 \begin_inset Formula $\,$
11435 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11438 \begin_layout Standard
11440 \begin_inset Formula $\,$
11448 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11451 \begin_layout Standard
11459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11462 \begin_layout Standard
11466 \begin_layout Standard
11479 \begin_layout Standard
11488 Detector thickness [µm]
11493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11496 \begin_layout Standard
11502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11505 \begin_layout Standard
11511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11514 \begin_layout Standard
11521 <row topline="true">
11522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11525 \begin_layout Standard
11531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11534 \begin_layout Standard
11540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11543 \begin_layout Standard
11549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11552 \begin_layout Standard
11559 <row topspace="default">
11560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11563 \begin_layout Standard
11564 Spatial resolution [µm]
11569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11572 \begin_layout Standard
11578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11581 \begin_layout Standard
11587 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11590 \begin_layout Standard
11597 <row topspace="default">
11598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11601 \begin_layout Standard
11603 \begin_inset Formula $f_{\mathrm{max}}$
11611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11614 \begin_layout Standard
11620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11623 \begin_layout Standard
11629 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11632 \begin_layout Standard
11639 <row topspace="default">
11640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11643 \begin_layout Standard
11647 \begin_layout Standard
11651 cmidrule(l{10pt}){1-1}
11656 LSF-spatial resolution
11661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11664 \begin_layout Standard
11670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11673 \begin_layout Standard
11679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11682 \begin_layout Standard
11690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11693 \begin_layout Standard
11699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11702 \begin_layout Standard
11708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11711 \begin_layout Standard
11717 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11720 \begin_layout Standard
11727 <row bottomline="true">
11728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11731 \begin_layout Standard
11737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11740 \begin_layout Standard
11746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11749 \begin_layout Standard
11755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11758 \begin_layout Standard
11777 \begin_layout Standard
11778 Spaces to table rows can be added using the
11782 tab of the table dialog as described in section\InsetSpace ~
11784 \begin_inset LatexCommand ref
11785 reference "sub:Row-Spacing"
11792 \begin_layout Standard
11793 In contrary to normal tables, formal tables have no vertical table lines.
11794 The horizontal table lines can be set like for normal tables but they appear
11795 with different width in the output:
11797 The first and the last table line have
11798 a default width of 0.08\InsetSpace \thinspace{}
11799 em while the other lines have a default width of
11800 0.05\InsetSpace \thinspace{}
11804 \begin_layout Standard
11805 The default widths can be changed with the following preamble lines
11808 \begin_layout Standard
11828 \begin_layout Standard
11829 This example is for the first line, the so called toprule.
11830 If you want to change the width for the last line, replace
11839 To change the width for the other lines replace
11848 You can use all units listed in appendix\InsetSpace ~
11850 \begin_inset LatexCommand ref
11851 reference "cha:Units-available-in"
11858 \begin_layout Standard
11859 Lines that don't span over all table columns can be created by setting a
11860 table line for multicolumn cells.
11861 LyX will then internally use the command
11867 to create this line.
11871 \begin_layout Standard
11876 cmidrule[width](trim){startcol-endcol}
11879 \begin_layout Standard
11886 are are currently not supported by LyX so you have to use ERT to be able
11894 s can manually be created by inserting the command as ERT as first cell
11895 entry of the first cell of a row.
11896 The line is then drawn in the output above the current row.
11899 \begin_layout Standard
11900 The default for the width is 0.03\InsetSpace \thinspace{}
11902 Startcol is the number of the column where the line starts and endcol the
11903 column number where the line ends.
11904 The endcol always needs to be specified, also when the line should span
11906 The optional parameter trim could be either
11914 where the trimwidth is also optional.
11915 Using for example the parameter
11919 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11921 If you don't specify the trimwidth the lines are trimmed by the default
11922 of 0.5\InsetSpace \thinspace{}
11926 \begin_layout Standard
11927 \begin_inset VSpace bigskip
11932 \begin_inset LatexCommand ref
11933 reference "tab:Example-booktabs-table"
11937 was created using the commands
11940 \begin_layout Standard
11950 \begin_layout Standard
11951 at the beginning of the in the second row and
11954 \begin_layout Standard
11959 cmidrule(l{10pt}){1-1}
11962 \begin_layout Standard
11966 \begin_layout Standard
11970 \begin_layout Standard
11971 \begin_inset VSpace bigskip
11977 \begin_layout Standard
11978 You might want to have overlapping
11984 s like in Table\InsetSpace ~
11986 \begin_inset LatexCommand ref
11987 reference "tab:Special-booktabs-table"
11992 This can be achieved with the ERT command
11995 \begin_layout Standard
12003 \begin_layout Standard
12004 The command that was used for the second row of Table\InsetSpace ~
12006 \begin_inset LatexCommand ref
12007 reference "tab:Special-booktabs-table"
12014 \begin_layout Standard
12028 \begin_layout Standard
12029 The command for the sixth row is
12032 \begin_layout Standard
12044 \begin_layout Standard
12045 \begin_inset VSpace bigskip
12051 \begin_layout Standard
12052 If you are anyway not satisfied with the border line spacing, you can use
12053 the following command to produce lines that span over all table columns
12058 \begin_layout Standard
12063 specialrule{width}{space above}{space below}
12066 \begin_layout Standard
12067 For more informations about these specialties, we refer to the manual of
12073 \begin_inset LatexCommand cite
12079 \begin_inset LatexCommand index
12080 name "LaTeX-packages ! booktabs"
12087 \begin_layout Standard
12088 \begin_inset Float table
12094 \begin_layout Standard
12095 \begin_inset Caption
12097 \begin_layout Standard
12098 \begin_inset LatexCommand label
12099 name "tab:Special-booktabs-table"
12103 Special booktabs-table
12111 \begin_layout Standard
12113 \begin_inset Tabular
12114 <lyxtabular version="3" rows="8" columns="4">
12115 <features booktabs="true">
12116 <column alignment="center" valignment="top" width="0">
12117 <column alignment="center" valignment="top" width="0">
12118 <column alignment="center" valignment="top" width="0">
12119 <column alignment="center" valignment="top" width="0">
12120 <row topline="true">
12121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12124 \begin_layout Standard
12130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12133 \begin_layout Standard
12134 Medipix\InsetSpace \thinspace{}
12140 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12143 \begin_layout Standard
12144 Medipix\InsetSpace \thinspace{}
12150 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12153 \begin_layout Standard
12161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12164 \begin_layout Standard
12168 \begin_layout Standard
12181 \begin_layout Standard
12194 \begin_layout Standard
12207 \begin_layout Standard
12216 Detector thickness [µm]
12221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12224 \begin_layout Standard
12230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12233 \begin_layout Standard
12239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12242 \begin_layout Standard
12249 <row topline="true">
12250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12253 \begin_layout Standard
12259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12262 \begin_layout Standard
12268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12271 \begin_layout Standard
12277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12280 \begin_layout Standard
12287 <row topspace="default">
12288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12291 \begin_layout Standard
12292 Spatial resolution [µm]
12297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12300 \begin_layout Standard
12306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12309 \begin_layout Standard
12315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12318 \begin_layout Standard
12325 <row topspace="default">
12326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12329 \begin_layout Standard
12331 \begin_inset Formula $f_{\mathrm{max}}$
12339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12342 \begin_layout Standard
12348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12351 \begin_layout Standard
12357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12360 \begin_layout Standard
12367 <row topline="true">
12368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12371 \begin_layout Standard
12375 \begin_layout Standard
12388 \begin_layout Standard
12397 LSF-spatial resolution
12402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12405 \begin_layout Standard
12411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12414 \begin_layout Standard
12420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12423 \begin_layout Standard
12431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12434 \begin_layout Standard
12440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12443 \begin_layout Standard
12449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12452 \begin_layout Standard
12458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12461 \begin_layout Standard
12468 <row bottomline="true">
12469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12472 \begin_layout Standard
12478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12481 \begin_layout Standard
12487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12490 \begin_layout Standard
12496 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12499 \begin_layout Standard
12518 \begin_layout Section
12519 Vertical Table Alignment
12520 \begin_inset LatexCommand index
12521 name "Table ! Alignment"
12528 \begin_layout Standard
12529 To align tables vertically in a text line the table must be inside a box.
12530 The box can then be vertically aligned as described in section\InsetSpace ~
12532 \begin_inset LatexCommand ref
12533 reference "sec:Box-Dialog"
12540 \begin_layout Standard
12541 In the following example the tables are inside a minipage
12545 \begin_layout Standard
12546 Minipages are described in section\InsetSpace ~
12548 \begin_inset LatexCommand ref
12549 reference "sec:Minipages"
12558 box that has a width of 15\InsetSpace \thinspace{}
12562 \begin_layout Itemize
12564 \begin_inset Box Frameless
12573 height_special "totalheight"
12576 \begin_layout Standard
12577 \begin_inset Tabular
12578 <lyxtabular version="3" rows="3" columns="3">
12580 <column alignment="center" valignment="top" leftline="true" width="0">
12581 <column alignment="center" valignment="top" leftline="true" width="0">
12582 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12583 <row topline="true">
12584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12587 \begin_layout Standard
12593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12596 \begin_layout Standard
12602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12605 \begin_layout Standard
12612 <row topline="true">
12613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12616 \begin_layout Standard
12622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12625 \begin_layout Standard
12631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12634 \begin_layout Standard
12641 <row topline="true" bottomline="true">
12642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12645 \begin_layout Standard
12651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12654 \begin_layout Standard
12660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12663 \begin_layout Standard
12683 \begin_layout Standard
12695 \begin_inset Box Frameless
12704 height_special "totalheight"
12707 \begin_layout Standard
12708 \begin_inset Tabular
12709 <lyxtabular version="3" rows="3" columns="3">
12711 <column alignment="center" valignment="top" leftline="true" width="0">
12712 <column alignment="center" valignment="top" leftline="true" width="0">
12713 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12714 <row topline="true">
12715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12718 \begin_layout Standard
12724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12727 \begin_layout Standard
12733 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12736 \begin_layout Standard
12743 <row topline="true">
12744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12747 \begin_layout Standard
12753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12756 \begin_layout Standard
12762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12765 \begin_layout Standard
12772 <row topline="true" bottomline="true">
12773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12776 \begin_layout Standard
12782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12785 \begin_layout Standard
12791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12794 \begin_layout Standard
12814 \begin_layout Standard
12824 \begin_layout Itemize
12826 \begin_inset Box Frameless
12835 height_special "totalheight"
12838 \begin_layout Standard
12839 \begin_inset Tabular
12840 <lyxtabular version="3" rows="3" columns="3">
12842 <column alignment="center" valignment="top" leftline="true" width="0">
12843 <column alignment="center" valignment="top" leftline="true" width="0">
12844 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12845 <row topline="true">
12846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12849 \begin_layout Standard
12855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12858 \begin_layout Standard
12864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12867 \begin_layout Standard
12874 <row topline="true">
12875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12878 \begin_layout Standard
12884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12887 \begin_layout Standard
12893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12896 \begin_layout Standard
12903 <row topline="true" bottomline="true">
12904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12907 \begin_layout Standard
12913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12916 \begin_layout Standard
12922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12925 \begin_layout Standard
12944 \begin_layout Itemize
12946 \begin_inset Box Frameless
12955 height_special "totalheight"
12958 \begin_layout Standard
12959 \begin_inset Tabular
12960 <lyxtabular version="3" rows="3" columns="3">
12962 <column alignment="center" valignment="top" leftline="true" width="0">
12963 <column alignment="center" valignment="top" leftline="true" width="0">
12964 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12965 <row topline="true">
12966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12969 \begin_layout Standard
12975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12978 \begin_layout Standard
12984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12987 \begin_layout Standard
12994 <row topline="true">
12995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12998 \begin_layout Standard
13004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13007 \begin_layout Standard
13013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13016 \begin_layout Standard
13023 <row topline="true" bottomline="true">
13024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13027 \begin_layout Standard
13033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13036 \begin_layout Standard
13042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13045 \begin_layout Standard
13065 \begin_layout Standard
13077 \begin_inset Box Frameless
13086 height_special "totalheight"
13089 \begin_layout Standard
13090 \begin_inset Tabular
13091 <lyxtabular version="3" rows="3" columns="3">
13093 <column alignment="center" valignment="top" leftline="true" width="0">
13094 <column alignment="center" valignment="top" leftline="true" width="0">
13095 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13096 <row topline="true">
13097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13100 \begin_layout Standard
13106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13109 \begin_layout Standard
13115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13118 \begin_layout Standard
13125 <row topline="true">
13126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13129 \begin_layout Standard
13135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13138 \begin_layout Standard
13144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13147 \begin_layout Standard
13154 <row topline="true" bottomline="true">
13155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13158 \begin_layout Standard
13164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13167 \begin_layout Standard
13173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13176 \begin_layout Standard
13196 \begin_layout Standard
13206 \begin_layout Standard
13207 As you can see, the content of the first and last table row is not correctly
13208 aligned with the text line where the table is in.
13209 To get this alignment, the minipage box must be set into a raisebox
13213 \begin_layout Standard
13214 Raiseboxes are described in section\InsetSpace ~
13216 \begin_inset LatexCommand ref
13217 reference "sub:Vertical-Alignment"
13227 In the example above the second table in the first item is aligned using
13231 \begin_layout Standard
13241 \begin_layout Standard
13243 Behind the box the closing brace
13247 is inserted as ERT.
13248 For the second table in the last item the command
13251 \begin_layout Standard
13261 \begin_layout Standard
13265 \begin_layout Standard
13266 \begin_inset Note Greyedout
13269 \begin_layout Standard
13274 The alignment of the table row content to the surrounding text line is
13276 The needed factor of the
13282 command for this alignment depends on the document font, the font size,
13283 and the table line thickness.
13291 \begin_layout Section
13293 \begin_inset LatexCommand label
13294 name "sec:Colored-Tables"
13299 \begin_inset LatexCommand index
13300 name "Table ! Color"
13307 \begin_layout Subsection
13309 \begin_inset LatexCommand index
13310 name "Table Color ! for Cells"
13315 \begin_inset LatexCommand index
13316 name "Color ! for Table Cells"
13323 \begin_layout Standard
13324 \begin_inset Float table
13330 \begin_layout Standard
13331 \begin_inset Caption
13333 \begin_layout Standard
13334 \begin_inset LatexCommand label
13335 name "tab:Table-colored-without"
13339 Table colored without using the package
13344 \begin_inset OptArg
13347 \begin_layout Standard
13348 Table without colortbl
13361 \begin_layout Standard
13363 \begin_inset Tabular
13364 <lyxtabular version="3" rows="3" columns="3">
13366 <column alignment="center" valignment="top" leftline="true" width="0">
13367 <column alignment="center" valignment="top" leftline="true" width="0">
13368 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13369 <row topline="true">
13370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13373 \begin_layout Standard
13381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13384 \begin_layout Standard
13392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13395 \begin_layout Standard
13404 <row topline="true">
13405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13408 \begin_layout Standard
13416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13419 \begin_layout Standard
13427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13430 \begin_layout Standard
13439 <row topline="true" bottomline="true">
13440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13443 \begin_layout Standard
13451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13454 \begin_layout Standard
13462 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13465 \begin_layout Standard
13486 \begin_layout Standard
13487 If you only need colored text, mark the cells and choose a color in the
13490 Edit\SpecialChar \menuseparator
13495 This was used to create Table\InsetSpace ~
13497 \begin_inset LatexCommand ref
13498 reference "tab:Table-colored-without"
13503 In any other case you have to use the LaTeX-package
13508 \begin_inset LatexCommand index
13509 name "LaTeX-packages ! colortbl"
13516 \begin_layout Standard
13517 To create colored tables,
13521 must be loaded in the preamble with the line
13524 \begin_layout Standard
13529 usepackage{colortbl}
13532 \begin_layout Standard
13533 The color of a column is adjusted with the command
13536 \begin_layout Standard
13541 columncolor{name of color}
13544 \begin_layout Standard
13550 More about the command
13554 is described in section\InsetSpace ~
13556 \begin_inset LatexCommand ref
13557 reference "sub:Multicolumn-Calculations"
13564 \begin_layout Standard
13565 The following color names are predefined:
13568 \begin_layout Standard
13602 \begin_layout Standard
13603 \begin_inset VSpace medskip
13609 \begin_layout Standard
13610 You can also define your own color with the command
13613 \begin_layout Standard
13618 def\SpecialChar \textcompwordmark{}
13619 inecolor{color name}{color model}{color values}
13622 \begin_layout Standard
13623 The color model can be
13626 \begin_layout Labeling
13627 \labelwidthstring 00.00.0000
13628 cmyk: cyan, magenta, yellow, black
13631 \begin_layout Labeling
13632 \labelwidthstring 00.00.0000
13633 rgb: red, green blue
13636 \begin_layout Labeling
13637 \labelwidthstring 00.00.0000
13641 \begin_layout Standard
13642 and the color values are comma separated numbers between 0 and 1 describing
13643 the factor for the corresponding color of the color model.
13646 \begin_layout Standard
13647 You can e.\InsetSpace \thinspace{}
13653 " in the preamble with
13656 \begin_layout Standard
13661 def\SpecialChar \textcompwordmark{}
13662 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13665 \begin_layout Standard
13673 \begin_layout Standard
13678 def\SpecialChar \textcompwordmark{}
13679 inecolor{lightgray}{gray}{0.8}
13682 \begin_layout Standard
13683 \begin_inset VSpace medskip
13689 \begin_layout Standard
13690 Lines are colored with the command
13693 \begin_layout Standard
13698 rowcolor{name of color}
13701 \begin_layout Standard
13702 and cells are colored with the command
13705 \begin_layout Standard
13710 cellcolor{name of color}
13713 \begin_layout Standard
13714 Both commands are inserted at the beginning of a cell as ERT.
13717 \begin_layout Standard
13718 To color characters in the table, mark the cells and use the LyX menu
13720 Edit\SpecialChar \menuseparator
13725 If a cell contains ERT mark only the characters, otherwise the colored
13726 ERT will cause LaTeX-errors.
13729 \begin_layout Standard
13730 \begin_inset VSpace bigskip
13736 \begin_layout Standard
13737 To create Table\InsetSpace ~
13739 \begin_inset LatexCommand ref
13740 reference "tab:Table-colored-using"
13744 do the following: The color of the first column should be
13752 \begin_layout Standard
13757 columncolor{darkgreen}
13762 \begin_layout Standard
13763 as LaTeX-argument for this column.
13764 The first row should be blue, therefore the ERT command
13767 \begin_layout Standard
13775 \begin_layout Standard
13776 is inserted to the first cell of this row.
13777 Note that this overwrites the column color for the first cell.
13778 The last cell of the last row is colored magenta by inserting the ERT command
13781 \begin_layout Standard
13789 \begin_layout Standard
13790 The characters could now be colored using the menu
13792 Edit\SpecialChar \menuseparator
13799 \begin_layout Standard
13800 \begin_inset Float table
13806 \begin_layout Standard
13807 \begin_inset Caption
13809 \begin_layout Standard
13810 \begin_inset LatexCommand label
13811 name "tab:Table-colored-using"
13815 Table colored using the package
13820 \begin_inset OptArg
13823 \begin_layout Standard
13824 Table with colortbl
13837 \begin_layout Standard
13839 \begin_inset Tabular
13840 <lyxtabular version="3" rows="3" columns="3">
13842 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
13843 <column alignment="center" valignment="top" width="0">
13844 <column alignment="center" valignment="top" width="0">
13846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13849 \begin_layout Standard
13853 \begin_layout Standard
13869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13872 \begin_layout Standard
13880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13883 \begin_layout Standard
13893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13896 \begin_layout Standard
13904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13907 \begin_layout Standard
13915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13918 \begin_layout Standard
13928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13931 \begin_layout Standard
13939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13942 \begin_layout Standard
13950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13953 \begin_layout Standard
13957 \begin_layout Standard
13986 \begin_layout Subsection
13988 \begin_inset LatexCommand index
13989 name "Table Color ! for Lines"
13994 \begin_inset LatexCommand index
13995 name "Color ! for Table Lines"
14002 \begin_layout Standard
14003 As described in section\InsetSpace ~
14005 \begin_inset LatexCommand ref
14006 reference "sub:Line-Thickness"
14010 , the line thickness for all lines in a table can be adjusted with the length
14018 It is set to 1.5\InsetSpace \thinspace{}
14019 pt for all tables of this section.
14023 \begin_layout Standard
14029 arrayrulewidth}{1.5pt}
14037 \begin_layout Standard
14038 To color vertical lines for example with green, create the following column
14039 format in the document preamble, according to the description in section\InsetSpace ~
14041 \begin_inset LatexCommand ref
14042 reference "sub:Customized-Format"
14049 \begin_layout Standard
14054 newcolumntype{W}{!{
14061 \begin_layout Standard
14062 For Table\InsetSpace ~
14064 \begin_inset LatexCommand ref
14065 reference "tab:Table-with-vertical-colored"
14072 \begin_layout Standard
14078 \begin_layout Standard
14079 was used for the last column and
14082 \begin_layout Standard
14088 \begin_layout Standard
14089 for the other columns.
14092 \begin_layout Standard
14093 If you want to have several colors, define more column formats.
14096 \begin_layout Standard
14097 \begin_inset Float table
14102 \begin_layout Standard
14103 \begin_inset Caption
14105 \begin_layout Standard
14106 \begin_inset LatexCommand label
14107 name "tab:Table-with-vertical-colored"
14111 Table with colored vertical lines
14119 \begin_layout Standard
14121 \begin_inset Tabular
14122 <lyxtabular version="3" rows="3" columns="3">
14124 <column alignment="center" valignment="top" width="0" special="Wc">
14125 <column alignment="center" valignment="top" width="0" special="Wc">
14126 <column alignment="center" valignment="top" width="0" special="WcW">
14127 <row topline="true">
14128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14131 \begin_layout Standard
14137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14140 \begin_layout Standard
14146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14149 \begin_layout Standard
14156 <row topline="true">
14157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14160 \begin_layout Standard
14166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14169 \begin_layout Standard
14175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14178 \begin_layout Standard
14185 <row topline="true" bottomline="true">
14186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14189 \begin_layout Standard
14195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14198 \begin_layout Standard
14204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14207 \begin_layout Standard
14226 \begin_layout Standard
14227 \begin_inset VSpace bigskip
14230 To color horizontal lines for example with red, like in Table\InsetSpace ~
14232 \begin_inset LatexCommand ref
14233 reference "tab:Table-with-horizontal-colored"
14237 , insert these commands in ERT before the table or table float:
14240 \begin_layout Standard
14257 arrayrulecolor{red}
14261 arrayrulecolor{black}}
14264 \begin_layout Standard
14268 \begin_layout Standard
14279 \begin_layout Standard
14287 arrayrulecolor{red}
14291 arrayrulecolor{black}}
14297 \begin_inset Float table
14302 \begin_layout Standard
14303 \begin_inset Caption
14305 \begin_layout Standard
14306 \begin_inset LatexCommand label
14307 name "tab:Table-with-horizontal-colored"
14311 Table with colored horizontal lines
14319 \begin_layout Standard
14321 \begin_inset Tabular
14322 <lyxtabular version="3" rows="3" columns="3">
14324 <column alignment="center" valignment="top" leftline="true" width="0">
14325 <column alignment="center" valignment="top" leftline="true" width="0">
14326 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14327 <row topline="true">
14328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14331 \begin_layout Standard
14337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14340 \begin_layout Standard
14346 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14349 \begin_layout Standard
14356 <row topline="true">
14357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14360 \begin_layout Standard
14366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14369 \begin_layout Standard
14375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14378 \begin_layout Standard
14385 <row topline="true" bottomline="true">
14386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14389 \begin_layout Standard
14395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14398 \begin_layout Standard
14404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14407 \begin_layout Standard
14426 \begin_layout Standard
14430 \begin_layout Standard
14442 \begin_layout Standard
14443 To return to the default line color black, insert this command in ERT behind
14444 the table or table float:
14447 \begin_layout Standard
14459 \begin_layout Standard
14462 \begin_inset LatexCommand ref
14463 reference "tab:Table-with-colored"
14467 is an example with colored vertical and horizontal lines.
14470 \begin_layout Standard
14471 \begin_inset Float table
14476 \begin_layout Standard
14477 \begin_inset Caption
14479 \begin_layout Standard
14480 \begin_inset LatexCommand label
14481 name "tab:Table-with-colored"
14485 Table with colored lines
14493 \begin_layout Standard
14495 \begin_inset Tabular
14496 <lyxtabular version="3" rows="3" columns="3">
14498 <column alignment="center" valignment="top" width="0" special="Wc">
14499 <column alignment="center" valignment="top" width="0" special="Wc">
14500 <column alignment="center" valignment="top" width="0" special="WcW">
14501 <row topline="true">
14502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14505 \begin_layout Standard
14511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14514 \begin_layout Standard
14520 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14523 \begin_layout Standard
14530 <row topline="true">
14531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14534 \begin_layout Standard
14540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14543 \begin_layout Standard
14549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14552 \begin_layout Standard
14559 <row topline="true" bottomline="true" topspace="default">
14560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14563 \begin_layout Standard
14569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14572 \begin_layout Standard
14578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14581 \begin_layout Standard
14600 \begin_layout Standard
14604 \begin_layout Standard
14620 \begin_layout Standard
14624 \begin_layout Standard
14630 arrayrulewidth}{0.4pt}
14638 \begin_layout Section
14639 Table Customization
14640 \begin_inset LatexCommand index
14641 name "Table Customization"
14646 \begin_inset LatexCommand index
14647 name "Table ! Customization"
14654 \begin_layout Subsection
14656 \begin_inset LatexCommand label
14657 name "sub:Row-Spacing"
14662 \begin_inset LatexCommand index
14663 name "Table Customization ! Row Spacing"
14670 \begin_layout Standard
14671 You can add vertical space to table rows in the
14675 tab of the table dialog.
14676 You find there three possibilities:
14679 \begin_layout Description
14682 row will add space above the characters of the table row.
14683 If the table is a formal table
14687 \begin_layout Standard
14688 Formal tables are explained in section\InsetSpace ~
14690 \begin_inset LatexCommand ref
14691 reference "sec:Formal-Tables"
14700 LyX will insert as default 0.5\InsetSpace \thinspace{}
14702 For normal tables the inserted space will unfortunately destroy the vertical
14703 table lines as in the following table:
14704 \begin_inset VSpace defskip
14713 \begin_layout Standard
14725 \begin_inset Tabular
14726 <lyxtabular version="3" rows="3" columns="1">
14728 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14729 <row topline="true">
14730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14733 \begin_layout Standard
14740 <row topline="true" topspace="3mm">
14741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14744 \begin_layout Standard
14745 3\InsetSpace \thinspace{}
14746 mm space top of row
14752 <row topline="true" bottomline="true">
14753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14756 \begin_layout Standard
14773 \begin_layout Standard
14783 \begin_inset VSpace defskip
14788 So inserting space to the top of row for normal tables is only useful when
14789 you don't have vertical lines.
14792 \begin_layout Description
14793 Bottom\InsetSpace ~
14795 row will add space below the characters of the table row.
14796 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14798 normal tables the default size is 2\InsetSpace \thinspace{}
14802 \begin_layout Description
14803 Between\InsetSpace ~
14804 rows adds space between the current and the following row.
14805 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14807 For normal tables the inserted space will unfortunately destroy the vertical
14808 table lines as in the following table:
14809 \begin_inset VSpace defskip
14818 \begin_layout Standard
14830 \begin_inset Tabular
14831 <lyxtabular version="3" rows="3" columns="1">
14833 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14834 <row topline="true">
14835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14838 \begin_layout Standard
14845 <row topline="true" interlinespace="3mm">
14846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14849 \begin_layout Standard
14850 \begin_inset Formula $\downarrow$
14853 3\InsetSpace \thinspace{}
14854 mm space between row
14855 \begin_inset Formula $\downarrow$
14864 <row topline="true" bottomline="true">
14865 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14868 \begin_layout Standard
14869 \begin_inset Formula $\uparrow$
14872 3\InsetSpace \thinspace{}
14873 mm space between row
14874 \begin_inset Formula $\uparrow$
14893 \begin_layout Standard
14903 \begin_inset VSpace defskip
14908 So inserting space between rows for normal tables is only useful when you
14909 don't have vertical lines.
14912 \begin_layout Standard
14913 When you want to add extra height to all cells of all tables, you can do
14914 this with the following preamble line:
14917 \begin_layout Standard
14924 extrarowheight}{height}
14927 \begin_layout Standard
14928 But this has the disadvantage that the cell texts are no longer exactly
14929 vertically centered.
14932 \begin_layout Subsection
14933 Special Cell Alignment
14934 \begin_inset LatexCommand index
14935 name "Table Customization ! Special Cell Alignment"
14942 \begin_layout Standard
14943 Sometimes it looks better when the cell entries of a column are aligned
14944 with a special character, e.\InsetSpace \thinspace{}
14946 with the decimal separator as in Table\InsetSpace ~
14948 \begin_inset LatexCommand ref
14949 reference "tab:Table-cells-of"
14956 \begin_layout Standard
14957 \begin_inset Float table
14963 \begin_layout Standard
14964 \begin_inset Caption
14966 \begin_layout Standard
14967 \begin_inset LatexCommand label
14968 name "tab:Table-cells-of"
14972 Table cells of a column aligned with the decimal separator.
14980 \begin_layout Standard
14982 \begin_inset Tabular
14983 <lyxtabular version="3" rows="4" columns="2">
14985 <column alignment="right" valignment="top" width="0">
14986 <column alignment="left" valignment="top" width="0" special="@{}l">
14987 <row bottomline="true">
14988 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
14991 \begin_layout Standard
14997 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15000 \begin_layout Standard
15008 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15011 \begin_layout Standard
15017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15020 \begin_layout Standard
15028 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15031 \begin_layout Standard
15037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15040 \begin_layout Standard
15048 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15051 \begin_layout Standard
15057 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15060 \begin_layout Standard
15079 \begin_layout Standard
15080 This table was created with a 4×2 table.
15081 The heading is a centered multicolumn.
15082 The first column is right-aligned and contains the digits before the decimal
15083 point and the decimal point.
15084 The second column is left aligned and contains the digits after the decimal
15086 To omit the space that is normally between two table columns, use the following
15087 LaTeX-argument for the second column:
15090 \begin_layout Standard
15096 \begin_layout Standard
15099 \begin_inset LatexCommand ref
15100 reference "tab:Several-table-cell"
15104 shows some example alignments.
15105 For the alignment with the relation sign, you must add the second smallest
15106 math-space at the beginning of the last column to get the correct space
15107 surrounding the relation sign.
15110 \begin_layout Standard
15111 \begin_inset Float table
15116 \begin_layout Standard
15117 \begin_inset Caption
15119 \begin_layout Standard
15120 \begin_inset LatexCommand label
15121 name "tab:Several-table-cell"
15125 Several table cell alignments.
15133 \begin_layout Standard
15135 \begin_inset Tabular
15136 <lyxtabular version="3" rows="4" columns="6">
15138 <column alignment="right" valignment="top" width="0">
15139 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15140 <column alignment="right" valignment="top" width="0">
15141 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15142 <column alignment="right" valignment="top" width="0">
15143 <column alignment="left" valignment="top" width="0" special="@{}l">
15144 <row bottomline="true">
15145 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15148 \begin_layout Standard
15154 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15157 \begin_layout Standard
15163 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15166 \begin_layout Standard
15172 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15175 \begin_layout Standard
15181 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15184 \begin_layout Standard
15190 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15193 \begin_layout Standard
15201 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15204 \begin_layout Standard
15210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15213 \begin_layout Standard
15214 24\InsetSpace \thinspace{}
15220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15223 \begin_layout Standard
15224 \begin_inset Formula $10\cdot$
15232 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15235 \begin_layout Standard
15236 \begin_inset Formula $10^{\mbox{-}17}$
15244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15247 \begin_layout Standard
15248 \begin_inset Formula $\Gamma(t)\propto$
15256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15259 \begin_layout Standard
15260 \begin_inset Formula $\:\Upsilon(t)$
15270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15273 \begin_layout Standard
15279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15282 \begin_layout Standard
15283 768\InsetSpace \thinspace{}
15289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15292 \begin_layout Standard
15293 \begin_inset Formula $5.78\cdot$
15301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15304 \begin_layout Standard
15305 \begin_inset Formula $10^{7}$
15313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15316 \begin_layout Standard
15317 \begin_inset Formula $A\ne$
15325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15328 \begin_layout Standard
15329 \begin_inset Formula $\: B_{\mathrm{red}}$
15339 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15342 \begin_layout Standard
15348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15351 \begin_layout Standard
15352 6\InsetSpace \thinspace{}
15358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15361 \begin_layout Standard
15363 \begin_inset Formula $33.5\cdot$
15371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15374 \begin_layout Standard
15375 \begin_inset Formula $10^{4}$
15383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15386 \begin_layout Standard
15387 \begin_inset Formula $\sin(\alpha)\ge$
15395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15398 \begin_layout Standard
15399 \begin_inset Formula $\:\sin(\beta)$
15420 \begin_layout Standard
15421 \begin_inset VSpace bigskip
15424 There is also the LaTeX-package
15429 \begin_inset LatexCommand index
15430 name "LaTeX-packages ! dcolumn"
15434 that provides table cell alignments.
15435 But this unfortunately treats the cell entries as math and doesn't allow
15436 formulas in table cells: The first column of Table\InsetSpace ~
15438 \begin_inset LatexCommand ref
15439 reference "tab:Several-table-cell"
15447 like the first column in Table\InsetSpace ~
15449 \begin_inset LatexCommand ref
15450 reference "tab:Alignments-when"
15454 and only with some tricks like the expected.
15455 The alignment of the second and third column of Table\InsetSpace ~
15457 \begin_inset LatexCommand ref
15458 reference "tab:Several-table-cell"
15462 is not possible with
15469 \begin_layout Standard
15470 \begin_inset Float table
15476 \begin_layout Standard
15477 \begin_inset Caption
15479 \begin_layout Standard
15480 \begin_inset LatexCommand label
15481 name "tab:Alignments-when"
15485 Alignments when LaTeX-package dcolumn is used.
15486 For all column alignments tricks have to be used to get the output.
15494 \begin_layout Standard
15496 \begin_inset Tabular
15497 <lyxtabular version="3" rows="4" columns="3">
15499 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{-1}">
15500 <column alignment="center" valignment="top" rightline="true" width="0" special="D{x}{\times}{4.9}">
15501 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
15502 <row bottomline="true">
15503 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15506 \begin_layout Standard
15512 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15515 \begin_layout Standard
15521 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15524 \begin_layout Standard
15532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15535 \begin_layout Standard
15536 12x24\InsetSpace \thinspace{}
15542 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15545 \begin_layout Standard
15546 12x24\InsetSpace \thinspace{}
15548 \begin_inset Formula $\mbox{bottles}$
15556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15559 \begin_layout Standard
15564 \begin_layout Standard
15574 \begin_inset Formula $\mbox{bottles}$
15584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15587 \begin_layout Standard
15588 1024x768\InsetSpace \thinspace{}
15594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15597 \begin_layout Standard
15598 1024x768\InsetSpace \thinspace{}
15600 \begin_inset Formula $\mbox{Pixels}$
15608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15611 \begin_layout Standard
15616 \begin_layout Standard
15626 \begin_inset Formula $\mbox{Pixels}$
15636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15639 \begin_layout Standard
15640 32x6\InsetSpace \thinspace{}
15646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15649 \begin_layout Standard
15650 32x6\InsetSpace \thinspace{}
15652 \begin_inset Formula $\mbox{cm}$
15660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15663 \begin_layout Standard
15668 \begin_layout Standard
15678 \begin_inset Formula $\mbox{cm}$
15699 \begin_layout Subsection
15700 Customized Cell/Column Format
15701 \begin_inset LatexCommand label
15702 name "sub:Customized-Format"
15707 \begin_inset LatexCommand index
15708 name "Table Customization ! Cell/Column Format"
15715 \begin_layout Standard
15716 Calculating the needed width for spanned columns like in section\InsetSpace ~
15718 \begin_inset LatexCommand ref
15719 reference "sub:Multicolumn-Calculations"
15723 is very annoying if you have several tables with multicolumn cells.
15724 To make life easier, you can define a cell/column format in the preamble,
15725 so that it can be used in all tables of the document.
15726 The format is defined with the command
15729 \begin_layout Standard
15734 newcolumntype{name of format}[number of arguments]{commands}
15737 \begin_layout Standard
15738 The format name may only consist of one letter.
15763 are predefined and cannot be used.
15764 But all letters are allowed as capitals.
15767 \begin_layout Standard
15768 \begin_inset VSpace medskip
15774 \begin_layout Standard
15775 For vertically and horizontally centered multicolumn cells with a fixed
15776 width you can define the cell format
15779 \begin_layout Standard
15784 newcolumntype{M}[1]{>{
15791 \begin_layout Standard
15798 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15800 \begin_inset LatexCommand ref
15801 reference "sub:Multiple-Lines-in"
15806 Now you can simply enter
15809 \begin_layout Standard
15815 \begin_layout Standard
15816 as LaTeX-argument in the table dialog to create a multicolumn.
15819 \begin_layout Standard
15820 \begin_inset VSpace bigskip
15826 \begin_layout Standard
15827 For cells spanned by a multicolumn cell, you can define the format
15830 \begin_layout Standard
15835 newcolumntype{S}[2]{>{
15845 \begin_layout Standard
15856 newcolumntype{S}[2]
15860 \begin_layout Standard
15871 arrayrulewidth)*(1-#2))/#2}}
15874 \begin_layout Standard
15875 This format uses equation
15876 \begin_inset LatexCommand eqref
15881 to calculate the needed width so that each spanned cell has the same width.
15884 \begin_layout Standard
15888 \begin_layout Standard
15891 S{width of multicolumn cell}{number of spanned columns}
15894 \begin_layout Standard
15895 as LaTeX-argument of the column.
15898 \begin_layout Standard
15899 \begin_inset VSpace bigskip
15905 \begin_layout Standard
15906 For colored columns, you can define
15909 \begin_layout Standard
15914 newcolumntype{K}[1]{>{
15921 \begin_layout Standard
15923 \begin_inset Quotes eld
15927 \begin_inset Quotes erd
15930 at the end creates a column with a flexible width whose text is horizontally
15935 \begin_layout Standard
15941 \begin_layout Standard
15945 \begin_layout Standard
15946 \begin_inset VSpace bigskip
15952 \begin_layout Standard
15953 To create Table\InsetSpace ~
15955 \begin_inset LatexCommand ref
15956 reference "tab:Table-using-user-defined"
15960 use the LaTeX-arguments
15963 \begin_layout Standard
15969 \begin_layout Standard
15970 for the first column and the multicolumn,
15973 \begin_layout Standard
15979 \begin_layout Standard
15980 for the the last column, and
15983 \begin_layout Standard
15989 \begin_layout Standard
15990 for the cells in the second column.
15993 \begin_layout Standard
15994 \begin_inset Float table
16000 \begin_layout Standard
16001 \begin_inset Caption
16003 \begin_layout Standard
16004 \begin_inset LatexCommand label
16005 name "tab:Table-using-user-defined"
16009 Table using user-defined table formats
16017 \begin_layout Standard
16019 \begin_inset Tabular
16020 <lyxtabular version="3" rows="3" columns="4">
16022 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="M{2.5cm}">
16023 <column alignment="center" valignment="middle" leftline="true" width="0" special="S{2.5cm}{2}">
16024 <column alignment="center" valignment="middle" leftline="true" width="0">
16025 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="K{red}">
16026 <row topline="true">
16027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16030 \begin_layout Standard
16031 verylongtablecellword
16036 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}">
16039 \begin_layout Standard
16040 multiple lines multicolumn
16045 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16048 \begin_layout Standard
16054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16057 \begin_layout Standard
16064 <row topline="true">
16065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16068 \begin_layout Standard
16074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16077 \begin_layout Standard
16083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16086 \begin_layout Standard
16092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16095 \begin_layout Standard
16102 <row topline="true" bottomline="true">
16103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16106 \begin_layout Standard
16112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16115 \begin_layout Standard
16121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16124 \begin_layout Standard
16130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16133 \begin_layout Standard
16152 \begin_layout Subsection
16154 \begin_inset LatexCommand label
16155 name "sub:Line-Thickness"
16160 \begin_inset LatexCommand index
16161 name "Table Customization ! Line Thickness"
16168 \begin_layout Standard
16169 The line thickness for all lines in a table can be adjusted with the length
16177 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16178 pt, like in Table\InsetSpace ~
16180 \begin_inset LatexCommand ref
16181 reference "tab:Table-with-1.5"
16185 , insert the command
16188 \begin_layout Standard
16195 arrayrulewidth}{1.5pt}
16198 \begin_layout Standard
16199 in ERT before the table or table float.
16200 The changed thickness is valid for all following tables.
16201 To use the default value again, set
16207 to 0.4\InsetSpace \thinspace{}
16208 pt in ERT behind the table or table float.
16211 \begin_layout Standard
16215 \begin_layout Standard
16221 arrayrulewidth}{1.5pt}
16227 \begin_inset Float table
16232 \begin_layout Standard
16233 \begin_inset Caption
16235 \begin_layout Standard
16236 \begin_inset LatexCommand label
16237 name "tab:Table-with-1.5"
16241 Table with 1.5\InsetSpace \thinspace{}
16250 \begin_layout Standard
16252 \begin_inset Tabular
16253 <lyxtabular version="3" rows="3" columns="3">
16255 <column alignment="center" valignment="top" leftline="true" width="0">
16256 <column alignment="center" valignment="top" leftline="true" width="0">
16257 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16258 <row topline="true">
16259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16262 \begin_layout Standard
16268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16271 \begin_layout Standard
16277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16280 \begin_layout Standard
16287 <row topline="true">
16288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16291 \begin_layout Standard
16297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16300 \begin_layout Standard
16306 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16309 \begin_layout Standard
16316 <row topline="true" bottomline="true">
16317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16320 \begin_layout Standard
16326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16329 \begin_layout Standard
16335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16338 \begin_layout Standard
16358 \begin_layout Standard
16364 arrayrulewidth}{0.4pt}
16372 \begin_layout Standard
16373 \begin_inset VSpace bigskip
16376 To set the line thickness to 1.5\InsetSpace \thinspace{}
16377 pt only for horizontal lines, like in Table\InsetSpace ~
16379 \begin_inset LatexCommand ref
16380 reference "tab:Table-with-horizontal"
16384 , insert these commands in ERT before the table or table float:
16387 \begin_layout Standard
16410 arrayrulewidth 1.5pt}
16420 arrayrulewidth 0.4pt}}
16423 \begin_layout Standard
16424 To return to the default line thickness, insert this command in ERT behind
16425 the table or table float:
16428 \begin_layout Standard
16440 \begin_layout Standard
16444 \begin_layout Standard
16455 \begin_layout Standard
16464 \begin_layout Standard
16472 arrayrulewidth 1.5pt}
16475 \begin_layout Standard
16485 arrayrulewidth 0.4pt}}
16491 \begin_inset Float table
16496 \begin_layout Standard
16497 \begin_inset Caption
16499 \begin_layout Standard
16500 \begin_inset LatexCommand label
16501 name "tab:Table-with-horizontal"
16505 Table with 1.5\InsetSpace \thinspace{}
16506 pt thick horizontal lines
16514 \begin_layout Standard
16516 \begin_inset Tabular
16517 <lyxtabular version="3" rows="3" columns="3">
16519 <column alignment="center" valignment="top" leftline="true" width="0">
16520 <column alignment="center" valignment="top" leftline="true" width="0">
16521 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16522 <row topline="true">
16523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16526 \begin_layout Standard
16532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16535 \begin_layout Standard
16541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16544 \begin_layout Standard
16551 <row topline="true">
16552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16555 \begin_layout Standard
16561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16564 \begin_layout Standard
16570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16573 \begin_layout Standard
16580 <row topline="true" bottomline="true">
16581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16584 \begin_layout Standard
16590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16593 \begin_layout Standard
16599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16602 \begin_layout Standard
16622 \begin_layout Standard
16638 \begin_layout Standard
16639 \begin_inset VSpace bigskip
16642 To set the line thickness to 1.5\InsetSpace \thinspace{}
16643 pt only for vertical lines, create the following
16644 column format in the document preamble, according to the description in
16645 section\InsetSpace ~
16647 \begin_inset LatexCommand ref
16648 reference "sub:Customized-Format"
16655 \begin_layout Standard
16660 newcolumntype{V}{!{
16662 vrule width 1.5pt}}
16665 \begin_layout Standard
16666 For Table\InsetSpace ~
16668 \begin_inset LatexCommand ref
16669 reference "tab:Table-with-vertical"
16676 \begin_layout Standard
16682 \begin_layout Standard
16683 was used for the last column and
16686 \begin_layout Standard
16692 \begin_layout Standard
16693 for the other columns.
16696 \begin_layout Standard
16697 \begin_inset Float table
16702 \begin_layout Standard
16703 \begin_inset Caption
16705 \begin_layout Standard
16706 \begin_inset LatexCommand label
16707 name "tab:Table-with-vertical"
16711 Table with 1.5\InsetSpace \thinspace{}
16712 pt thick vertical lines
16720 \begin_layout Standard
16722 \begin_inset Tabular
16723 <lyxtabular version="3" rows="3" columns="3">
16725 <column alignment="center" valignment="top" width="0" special="Vc">
16726 <column alignment="center" valignment="top" width="0" special="Vc">
16727 <column alignment="center" valignment="top" width="0" special="VcV">
16728 <row topline="true">
16729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16732 \begin_layout Standard
16738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16741 \begin_layout Standard
16747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16750 \begin_layout Standard
16757 <row topline="true">
16758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16761 \begin_layout Standard
16767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16770 \begin_layout Standard
16776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16779 \begin_layout Standard
16786 <row topline="true" bottomline="true">
16787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16790 \begin_layout Standard
16796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16799 \begin_layout Standard
16805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16808 \begin_layout Standard
16827 \begin_layout Subsection
16829 \begin_inset LatexCommand index
16830 name "Table Customization ! Dashed Lines"
16837 \begin_layout Standard
16841 \begin_layout Standard
16851 \begin_inset Note Note
16854 \begin_layout Standard
16855 The following section will only be displayed when you have the LaTeX-package
16868 \begin_layout Standard
16869 \begin_inset Float table
16875 \begin_layout Standard
16876 \begin_inset Caption
16878 \begin_layout Standard
16879 \begin_inset LatexCommand label
16880 name "tab:Table-with-dashed"
16884 Table with dashed lines
16892 \begin_layout Standard
16894 \begin_inset Tabular
16895 <lyxtabular version="3" rows="5" columns="5">
16897 <column alignment="center" valignment="top" leftline="true" width="0">
16898 <column alignment="center" valignment="top" leftline="true" width="0">
16899 <column alignment="center" valignment="top" width="0" special=":c">
16900 <column alignment="center" valignment="top" leftline="true" width="0">
16901 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16902 <row topline="true" bottomline="true">
16903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16906 \begin_layout Standard
16912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16915 \begin_layout Standard
16921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16924 \begin_layout Standard
16930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16933 \begin_layout Standard
16939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16942 \begin_layout Standard
16949 <row topline="true">
16950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16953 \begin_layout Standard
16959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16962 \begin_layout Standard
16968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16971 \begin_layout Standard
16977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16980 \begin_layout Standard
16986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16989 \begin_layout Standard
16997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17000 \begin_layout Standard
17004 \begin_layout Standard
17018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17021 \begin_layout Standard
17027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17030 \begin_layout Standard
17036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17039 \begin_layout Standard
17045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17048 \begin_layout Standard
17055 <row topline="true">
17056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17059 \begin_layout Standard
17063 \begin_layout Standard
17077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17080 \begin_layout Standard
17086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
17089 \begin_layout Standard
17095 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
17098 \begin_layout Standard
17104 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17107 \begin_layout Standard
17114 <row topline="true" bottomline="true">
17115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17118 \begin_layout Standard
17124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17127 \begin_layout Standard
17133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17136 \begin_layout Standard
17142 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17145 \begin_layout Standard
17151 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17154 \begin_layout Standard
17173 \begin_layout Standard
17174 LyX doesn't natively support dashed lines, so you have to use ERT.
17175 As prerequisite the LaTeX-package
17180 \begin_inset LatexCommand index
17181 name "LaTeX-packages ! arydshln"
17185 must be loaded in the document preamble with the command
17188 \begin_layout Standard
17193 usepackage{arydshln}
17196 \begin_layout Standard
17197 To make a vertical line dashed, enter the colon
17198 \begin_inset Quotes eld
17202 \begin_inset Quotes erd
17205 together with the character for the horizontal alignment as LaTeX-argument
17206 in the table cell dialog.
17209 \begin_layout Standard
17210 For a horizontal dashed line add the command
17213 \begin_layout Standard
17221 \begin_layout Standard
17222 in ERT as first element of the first cell in the table row.
17225 \begin_layout Standard
17226 For dashed multicolumn lines use the command
17229 \begin_layout Standard
17234 cdashline{line number
17239 \begin_layout Standard
17240 in ERT as first element of the first cell in the table row.
17241 If you have for example a multicolumn spanning over columns 2 to 4 and
17242 you want to have a dashed line above, add the command
17245 \begin_layout Standard
17253 \begin_layout Standard
17254 as first element of the first cell in the row of the multicolumn.
17257 \begin_layout Standard
17258 \begin_inset VSpace bigskip
17264 \begin_layout Standard
17267 \begin_inset LatexCommand ref
17268 reference "tab:Table-with-dashed"
17273 \begin_inset Quotes eld
17281 \begin_inset Quotes erd
17284 as LaTeX-argument of the third column.
17291 was inserted to the first cell of the third row and the the ERT command
17300 was inserted to the first cell of the fourth row.
17303 \begin_layout Standard
17304 \begin_inset Note Greyedout
17307 \begin_layout Standard
17312 The used LaTeX-package
17316 is apparently not compatible with the LaTeX-package
17321 \begin_inset LatexCommand index
17322 name "LaTeX-packages ! colortbl"
17326 that is used for colored tables in section\InsetSpace ~
17328 \begin_inset LatexCommand ref
17329 reference "sec:Colored-Tables"
17334 That means colored tables cannot have dashed lines.
17342 \begin_layout Standard
17346 \begin_layout Standard
17356 \begin_inset Note Note
17359 \begin_layout Standard
17360 The following will be displayed when the LaTeX-package
17372 \begin_layout Standard
17373 You need to install the package
17377 to see the contents of this section in the output.
17380 \begin_layout Standard
17384 \begin_layout Standard
17396 \begin_layout Chapter
17398 \begin_inset LatexCommand index
17404 \begin_inset LatexCommand label
17412 \begin_layout Section
17414 \begin_inset LatexCommand label
17415 name "sec:FloatIntroduction"
17420 \begin_inset LatexCommand index
17421 name "Floats ! Introduction"
17428 \begin_layout Standard
17429 A float is a block of text associated with some sort of label, which doesn't
17430 have a fixed location.
17432 \begin_inset Quotes eld
17436 \begin_inset Quotes erd
17439 forward or backward a page or two, to wherever it fits best.
17446 Margin\InsetSpace ~
17449 are also floats, because they can float to the next page when there are
17450 too many notes at the page.
17453 \begin_layout Standard
17454 Floats allow a high quality layout.
17455 Images and tables can evenly be spread to the pages to avoid white space
17456 and pages without text.
17457 As the floating often destroys the context between the text and the image/table
17458 , every float can be referenced in the text.
17459 Floats are therefore numbered.
17460 Referencing is described in section\InsetSpace ~
17462 \begin_inset LatexCommand ref
17463 reference "sec:Referencing-Floats"
17470 \begin_layout Standard
17471 To insert a float, use the menu
17473 Insert\SpecialChar \menuseparator
17481 inset, a box with a label.
17482 The label will automatically be translated to the document language in
17484 Behind the label you can insert the caption text.
17485 The image or table is inserted above or below the caption in a separate
17486 paragraph within the float.
17487 More about the caption placement is described in section\InsetSpace ~
17489 \begin_inset LatexCommand ref
17490 reference "sec:Caption-Placement"
17495 To keep your LyX-document readable, you can open and close the float box
17496 by left-clicking on the box label.
17497 A closed float box looks like this:
17498 \begin_inset Graphics
17499 filename clipart/floatQt4.png
17504 -- a gray button with a red label.
17507 \begin_layout Standard
17508 It is recommended to insert floats as a separate paragraph to avoid possible
17509 LaTeX-errors that can occur when the surrounding text is specially formatted.
17512 \begin_layout Standard
17513 Existing figures or tables can be put into a float by marking them and then
17514 pressing the corresponding toolbar button for a new float.
17517 \begin_layout Section
17521 \begin_layout Standard
17522 Besides figure and table floats that are described in section\InsetSpace ~
17524 \begin_inset LatexCommand ref
17525 reference "sec:Figure-Floats"
17530 \begin_inset LatexCommand ref
17531 reference "sec:Table-Floats"
17535 , respectively, LyX offers the float types
17548 \begin_layout Subsection
17550 \begin_inset LatexCommand index
17551 name "Floats ! Algorithms"
17558 \begin_layout Standard
17559 \begin_inset Float algorithm
17565 \begin_layout Standard
17566 \begin_inset Caption
17568 \begin_layout Standard
17569 \begin_inset LatexCommand label
17570 name "alg:Example-Algorithm-float"
17574 Example Algorithm float
17582 \begin_layout LyX-Code
17585 Sum:= Sum + A(I); /*senseless comment*/
17588 \begin_inset VSpace -4mm
17599 \begin_layout Standard
17600 This float type is inserted with the menu
17602 Insert\SpecialChar \menuseparator
17603 Floats\SpecialChar \menuseparator
17607 It is used for program codes and descriptions of algorithms.
17608 A possible environment for algorithms is the
17612 , described in LyX's
17617 Algorithm\InsetSpace ~
17619 \begin_inset LatexCommand ref
17620 reference "alg:Example-Algorithm-float"
17624 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17625 mm vertical space was added
17626 at the end of the float to have the bottom rule exactly below the last
17630 \begin_layout Standard
17631 The float label is not automatically translated into the document language.
17632 If your document is not in English, you have to do this manually by adding
17633 the following line to the document preamble
17638 \begin_layout Standard
17643 floatname{algorithm}{your\InsetSpace ~
17647 \begin_layout Standard
17654 \begin_inset Quotes eld
17662 \begin_inset Quotes erd
17668 \begin_layout Description
17673 When the LaTeX-package
17678 \begin_inset LatexCommand index
17679 name "LaTeX-packages ! hyperref"
17683 is used to link cross-references to floats in the PDF-output, it must be
17684 loaded in the document preamble before the definition of floats to be able
17685 to reference floats.
17686 As LyX sets the float definition for algorithm floats automatically before
17687 the user editable part of the document preamble, you need to insert the
17688 following preamble lines
17692 the loading command of
17699 \begin_inset VSpace defskip
17706 newfloat{Xalgorithm}{tbp}{loa}
17710 floatname{Xalgorithm}{your\InsetSpace ~
17723 renewenvironment{algorithm}[1][tbp]
17729 \begin_layout Standard
17740 begin{Xalgorithm}[#1]}{
17743 \begin_inset VSpace defskip
17756 \begin_inset Quotes eld
17764 \begin_inset Quotes erd
17770 \begin_layout Standard
17771 Algorithm floats are not by default numbered in the scheme
17772 \begin_inset Quotes eld
17776 \begin_inset Quotes erd
17779 like it is the case for table and figure floats in many document-classes.
17780 To number algorithm floats in the same scheme, add this command to your
17784 \begin_layout Standard
17789 numberwithin{algorithm}{chapter}
17792 \begin_layout Standard
17793 If you use the LaTeX-package
17797 , add this line instead
17805 (the commands from above) to the preamble:
17808 \begin_layout Standard
17813 numberwithin{Xalgorithm}{chapter}
17816 \begin_layout Standard
17817 To be able to use the command
17828 in the document settings the option
17838 \begin_layout Subsection
17840 \begin_inset LatexCommand index
17841 name "Floats ! Text Wrap Floats"
17846 \begin_inset LatexCommand label
17847 name "sub:floatflt-wrap-float"
17854 \begin_layout Standard
17855 This float type is used if you want to
17856 \begin_inset Quotes eld
17860 \begin_inset Quotes erd
17863 text around a figure so that it only occupies some fraction of the column
17865 It can be inserted using the menu
17866 \begin_inset Wrap figure
17871 \begin_layout Standard
17872 \begin_inset Graphics
17873 filename clipart/mobius.eps
17876 rotateOrigin center
17883 \begin_layout Standard
17884 \begin_inset Caption
17886 \begin_layout Standard
17887 \begin_inset LatexCommand label
17888 name "fig:This-is-a"
17892 This is a wrapped figure, and this is the brilliant caption that describes
17894 \begin_inset VSpace medskip
17909 Insert\SpecialChar \menuseparator
17910 Floats\SpecialChar \menuseparator
17915 if the LaTeX-package
17917 floatf\SpecialChar \textcompwordmark{}
17921 \begin_inset LatexCommand index
17922 name "LaTeX-packages ! floatflt"
17930 \begin_layout Standard
17931 Installing a LaTeX-package is explained it in the
17941 The width and placement of the float is adjusted by right-clicking on the
17943 Figure\InsetSpace ~
17945 \begin_inset LatexCommand ref
17946 reference "fig:This-is-a"
17950 is an example text wrap float with a width of 40
17951 \begin_inset Formula $\,$
17958 \begin_layout Standard
17959 Available units are explained in
17960 \begin_inset LatexCommand ref
17961 reference "cha:Units-available-in"
17970 Some space was added under the caption to separate it better from the surroundi
17974 \begin_layout Standard
17977 floatf\SpecialChar \textcompwordmark{}
17980 also supports table wrap floats, but they are not yet supported by LyX.
17981 If you need this, read the documentation of
17983 floatf\SpecialChar \textcompwordmark{}
17987 \begin_inset LatexCommand cite
17995 \begin_layout Standard
17996 \begin_inset Note Greyedout
17999 \begin_layout Standard
18005 wrap float floats are fragile! E.\InsetSpace \thinspace{}
18007 having a figure too close to the bottom
18008 of the page can mess things up in the way that the float doesn't appear
18009 in the output or that it is placed over some other text.
18013 \begin_layout Standard
18014 The better solution is to use the LaTeX-package
18016 wrapf\SpecialChar \textcompwordmark{}
18020 \begin_inset LatexCommand index
18021 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
18027 floatf\SpecialChar \textcompwordmark{}
18030 , but it is currently not supported by LyX.
18043 \begin_layout Standard
18047 \begin_layout Itemize
18048 Wrap floats should not be placed in paragraphs that run over a page break.
18049 That means that wrap floats should better be inserted to the exact place
18050 when the document is nearly finished and you are able to estimate where
18051 page breaks will appear.
18054 \begin_layout Itemize
18055 Wrap floats should either be placed in an own paragraph before the paragraph
18056 where they should wrap into or within a paragraph.
18059 \begin_layout Itemize
18060 Wrap floats in consecutive paragraphs may cause troubles, so assure that
18061 there is a text paragraph between them as separator.
18064 \begin_layout Itemize
18065 Wrap floats are not allowed in section headings or tables.
18068 \begin_layout Section
18070 \begin_inset LatexCommand label
18071 name "sec:Float-Numbering"
18076 \begin_inset LatexCommand index
18077 name "Floats ! Numbering"
18084 \begin_layout Standard
18085 Floats are usually numbered either independent from the sections the floats
18086 are in, or in the scheme
18087 \begin_inset Quotes eld
18091 \begin_inset Quotes erd
18095 \begin_inset Quotes eld
18099 \begin_inset Quotes erd
18103 This depends on the used document class.
18106 \begin_layout Standard
18107 To change the section independent numbering, you can use this command in
18108 the document preamble:
18111 \begin_layout Standard
18123 \begin_layout Standard
18130 is the command that prints the table number, for figure floats, the command
18144 prints in the command above the table number as small roman number.
18147 \begin_layout Standard
18148 To change the numbering scheme for example to
18149 \begin_inset Quotes eld
18153 \begin_inset Quotes erd
18156 , use this command in the preamble:
18159 \begin_layout Standard
18164 numberwithin{table}{subsection}
18167 \begin_layout Standard
18168 To be able to use the command
18179 in the document settings the option
18189 \begin_layout Standard
18190 Please also have a look at section\InsetSpace ~
18192 \begin_inset LatexCommand ref
18193 reference "sub:Footnote-Numbering"
18197 for the details and important notes about the numbering commands.
18200 \begin_layout Section
18202 \begin_inset LatexCommand label
18203 name "sec:Referencing-Floats"
18208 \begin_inset LatexCommand index
18209 name "Floats ! References"
18214 \begin_inset LatexCommand index
18222 \begin_layout Standard
18223 To reference a float, insert a label into its caption using the menu
18225 Insert\SpecialChar \menuseparator
18228 or the toolbar button
18229 \begin_inset Graphics
18230 filename ../images/label-insert.xpm
18236 A grey label box like this one:
18237 \begin_inset Graphics
18238 filename clipart/labelQt4.png
18243 will be inserted and the label window pops up asking for the label text.
18244 LyX offers as text the first words of the caption with a prefix.
18245 The prefix depends on the float type, e.\InsetSpace \thinspace{}
18247 for figure floats the prefix will
18255 \begin_layout Standard
18256 The label is used as anchor and name for the reference.
18257 You can refer to the label using the menu
18259 Insert\SpecialChar \menuseparator
18262 or the toolbar button
18263 \begin_inset Graphics
18264 filename ../images/dialog-show-new-inset_ref.xpm
18270 A grey cross-reference box like this one:
18271 \begin_inset Graphics
18272 filename clipart/referenceQt4.png
18277 will be inserted and the cross-reference window appear showing all labels
18279 If you have multiple LyX-documents opened, choose the one you are working
18280 on from the drop-list at the top of the dialog.
18281 You can now sort the labels alphabetically and then choose one.
18282 At the position of the cross-reference box the float number will appear
18286 \begin_layout Standard
18287 It is recommended to use a protected space between the cross-reference name
18288 and its number to avoid line breaks between them.
18289 If a cross-reference refers to a non-existing label, you will see two question
18290 marks in the output instead of the reference.
18293 \begin_layout Standard
18294 You can change labels at any time by clicking on the label box.
18295 References to the changed label will automatically change its link to the
18296 new label text, so that you don't need to take care about this.
18299 \begin_layout Standard
18306 in the cross-reference window sets the cursor before the referred label.
18307 The button text changes then to Go\InsetSpace ~
18308 Back and you can use it to set the cursor
18309 back to the cross-reference.
18310 Right-clicking on a cross-reference box also sets the cursor before the
18311 referenced label but without a possibility to go back.
18314 \begin_layout Subsection
18315 Cross-Reference Formats
18316 \begin_inset LatexCommand label
18317 name "sub:Cross-Reference-Formats"
18322 \begin_inset LatexCommand index
18323 name "References ! Formats"
18330 \begin_layout Standard
18331 There are six varieties of cross-references:
18334 \begin_layout Description
18335 <reference>: prints the float number, this is the default:
18336 \begin_inset LatexCommand ref
18337 reference "fig:Two-distorted-images"
18344 \begin_layout Description
18345 (<reference>): prints the float number within two parentheses, this is the
18346 style normally used to reference formulas, especially when the reference
18348 \begin_inset Quotes eld
18352 \begin_inset Quotes erd
18356 \begin_inset LatexCommand eqref
18364 \begin_layout Description
18365 <page>: prints the page number: Page\InsetSpace ~
18367 \begin_inset LatexCommand pageref
18368 reference "fig:Two-distorted-images"
18375 \begin_layout Description
18378 <page>: prints the text "on page" and the page number:
18379 \begin_inset LatexCommand vpageref
18380 reference "fig:Two-distorted-images"
18387 \begin_layout Description
18388 <reference>\InsetSpace ~
18391 <page>: prints the float number, the text "on page", and
18393 \begin_inset LatexCommand vref
18394 reference "fig:Two-distorted-images"
18401 \begin_layout Description
18402 Formatted\InsetSpace ~
18403 reference: prints a self defined cross-reference format.
18405 \begin_inset Note Greyedout
18408 \begin_layout Standard
18413 This feature is only available when you have the LaTeX-package
18425 \begin_layout Standard
18426 Note that the style <page> won't print the page number if the label is on
18427 the previous, the same, or the next page.
18428 You will e.\InsetSpace \thinspace{}
18431 \begin_inset Quotes eld
18439 \begin_inset Quotes erd
18445 \begin_layout Standard
18446 The number and current page of the referred document part in the output,
18447 is automatically calculated by LaTeX.
18448 The varieties are adjusted in the field
18452 of the cross-reference window, that appear when you click on the cross-referenc
18456 \begin_layout Subsection
18457 Referencing Subfigures
18458 \begin_inset LatexCommand label
18459 name "sub:Referencing-Subfigures"
18464 \begin_inset LatexCommand index
18465 name "References ! to Subfigures"
18472 \begin_layout Standard
18473 Currently referencing subfigures is not supported by LyX, so you have to
18474 use LaTeX-commands.
18475 The label is the created with the command
18478 \begin_layout Standard
18483 label{fig:YourLabelName}
18486 \begin_layout Standard
18487 that is directly inserted into the subfigure caption field.
18488 To reference the label add this command in ERT
18491 \begin_layout Standard
18496 ref{fig:YourLabelName}
18499 \begin_layout Standard
18500 to the position in your document where the reference should be placed.
18501 Here is a reference to a subfigure: Subfigure\InsetSpace ~
18506 \begin_layout Standard
18518 \begin_layout Subsection
18519 Automatic Reference Naming
18520 \begin_inset LatexCommand index
18521 name "References ! Automatic Reference Naming"
18528 \begin_layout Standard
18533 provides a very useful feature that cross-references automatically include
18534 the name of the referenced floats (or text parts like sections).
18535 You save to write e.\InsetSpace \thinspace{}
18538 \begin_inset Quotes eld
18542 \begin_inset Quotes erd
18545 before every reference box.
18546 To get this automatic reference naming, you have to load the LaTeX-package
18552 \begin_inset LatexCommand index
18553 name "LaTeX-packages ! hyperref"
18557 in the document preamble with
18560 \begin_layout Standard
18565 usepackage[pdfborder={0 0 0}]{hyperref}
18580 \begin_layout Standard
18585 is used to link cross-references in the DVI- and PDF-output, this means
18586 that the reader of your document will be able to click on a table of content
18587 (TOC) entry or on a reference and he will be shown the referenced document
18593 also creates PDF-bookmarks for every section of your document to make it
18594 easier for readers to navigate through the document.
18595 This is also used in this document but when you have a look in the document
18596 preamble you will find various options in the load command of
18601 To learn more about the
18605 package, we refer to its documentation
18606 \begin_inset LatexCommand cite
18614 \begin_layout Standard
18615 \begin_inset Note Greyedout
18618 \begin_layout Standard
18623 Automatic reference naming cannot be used when you use cross-references
18626 Formatted\InsetSpace ~
18629 style, described in section\InsetSpace ~
18631 \begin_inset LatexCommand ref
18632 reference "sub:Cross-Reference-Formats"
18644 \begin_layout Subsection
18646 \begin_inset LatexCommand label
18647 name "sub:Reference-Position"
18652 \begin_inset LatexCommand index
18653 name "References ! Reference Position"
18660 \begin_layout Standard
18666 \begin_inset LatexCommand index
18667 name "LaTeX-packages ! hyperref"
18671 to link cross-references in the output, you will see that clicking on an
18672 image float reference jumps to the image label.
18673 The caption will be the first text part on the screen, so that you cannot
18674 see the image without scrolling.
18675 This is because the reference link anchor is placed at the position of
18677 With the use of the package
18682 \begin_inset LatexCommand index
18683 name "LaTeX-packages ! hypcap"
18687 , which is part of the LaTeX-package
18692 \begin_inset LatexCommand index
18693 name "LaTeX-packages ! oberdiek"
18697 , the link anchor is placed at the beginning of a float.
18698 To use this feature for figure floats, load
18702 in the document preamble with the line
18705 \begin_layout Standard
18710 usepackage[f\SpecialChar \textcompwordmark{}
18714 \begin_layout Standard
18719 for all floats but this isn't recommended for stability reasons.
18720 For more informations, have a look at
18725 \begin_inset LatexCommand cite
18733 \begin_layout Standard
18734 \begin_inset Note Greyedout
18737 \begin_layout Standard
18746 must be loaded after
18750 in the document preamble.
18758 \begin_layout Standard
18759 \begin_inset Note Greyedout
18762 \begin_layout Standard
18771 has no effect for references to subfigures.
18779 \begin_layout Section
18781 \begin_inset LatexCommand label
18782 name "sec:Float-Placement"
18787 \begin_inset LatexCommand index
18788 name "Floats ! Placement"
18795 \begin_layout Standard
18796 Right-clicking on a float-box opens a dialog where you can alter the placement
18797 options that LaTeX uses for positioning the float.
18804 is only useful for two-column documents: If you select it, the float will
18805 span across both columns on the page instead of being confined to just
18810 Rotate\InsetSpace ~
18813 is used to rotate floats, see section
18814 \begin_inset LatexCommand ref
18815 reference "sec:Rotated-Floats"
18822 \begin_layout Standard
18823 You can use one ore more of the following options in the float dialog to
18824 set the placement for a particular float when you uncheck the option
18827 default\InsetSpace ~
18833 \begin_layout Description
18836 possible: try to place the float on the position where it is inserted
18839 \begin_layout Description
18842 page: try to place the float on the top of the current page
18845 \begin_layout Description
18846 Bottom\InsetSpace ~
18848 page: try to place the float on the bottom of the current page
18851 \begin_layout Description
18854 floats: try to place the float on an own page
18857 \begin_layout Standard
18858 The order of the above option is
18863 That means, if you use the default placement, LaTeX will first try out
18876 , and then the others.
18877 If you don't use the default, LaTeX will try only the checked options but
18879 If none of the 4 placements are possible the procedure is internally repeated
18880 but it is tried to put the float on the following page.
18883 \begin_layout Standard
18884 By default, each option has its own rules:
18887 \begin_layout Labeling
18888 \labelwidthstring 00.00.0000
18895 only floats occupying less than 70\InsetSpace \thinspace{}
18896 % of the page can be placed at the top
18906 \begin_layout Labeling
18907 \labelwidthstring 00.00.0000
18910 Bottom\InsetSpace ~
18914 : only floats occupying less than 30\InsetSpace \thinspace{}
18915 % of the page can be placed at the bottom
18926 \begin_layout Labeling
18927 \labelwidthstring 00.00.0000
18934 : only if more than 50\InsetSpace \thinspace{}
18935 % of the page are occupied by floats, several floats
18936 can be set together on a page.
18946 \begin_layout Standard
18947 If you don't like these rules, you can ignore them by using the additional
18950 Ignore\InsetSpace ~
18956 You can also redefine the rules with LaTeX-commands that are given in parenthese
18957 s behind the rules description above.
18958 To increase for example the often too small default of the bottom-rule
18959 to 50\InsetSpace \thinspace{}
18960 % of the page, add this line to your document preamble:
18963 \begin_layout Standard
18970 bottomfraction}{0.5}
18973 \begin_layout Standard
18974 Sometimes you might need, under all circumstances, a float to be placed
18975 exactly at the position where it is inserted.
18976 For this case you can use the option
18982 Use this option very rarely and only if the document is nearly ready to
18984 Because the float is then no longer able to
18985 \begin_inset Quotes eld
18989 \begin_inset Quotes erd
18992 when you change your document and this will often destroy the page layout.
18995 \begin_layout Standard
18996 There are no placement options for text wrap floats, because they are always
18997 surrounded by the text of a certain paragraph.
18998 \begin_inset VSpace bigskip
19004 \begin_layout Standard
19005 Sometimes you have the problem that a float is placed at the top of a page
19006 while its corresponding section starts at the middle of the page, so that
19007 the reader could think the float is part of the previous section.
19008 To avoid this the LaTeX-command
19012 suppressf\SpecialChar \textcompwordmark{}
19016 It suppresses a given float placement for the page where it is inserted
19017 and can therefore be used to avoid that floats could be set before a section
19019 To get this, add these commands to your document preamble:
19022 \begin_layout Standard
19039 suppressf\SpecialChar \textcompwordmark{}
19045 \begin_layout Standard
19046 You can define the same for all section headings, like chapters and subsections.
19047 This definition is not recommended to be used for small text parts like
19048 subsubsections because LaTeX may then have problems to find a suitable
19052 \begin_layout Standard
19053 \begin_inset VSpace bigskip
19056 In some cases it is required to have all figures/tables at the end of the
19058 For this purpose the LaTeX-package
19060 endf\SpecialChar \textcompwordmark{}
19064 \begin_inset LatexCommand index
19065 name "LaTeX-packages ! endfloat"
19070 It puts all figure and table floats at the end of the document into own
19072 At the original float position a text hint like
19073 \begin_inset Quotes eld
19078 [Figure\InsetSpace ~
19082 \begin_inset Quotes erd
19086 The endfloat-package is loaded in the preamble with the line
19089 \begin_layout Standard
19094 usepackage[options]{endf\SpecialChar \textcompwordmark{}
19098 \begin_layout Standard
19099 There are various package options to format the created figure/table sections.
19100 For more information we refer to the
19102 endf\SpecialChar \textcompwordmark{}
19106 \begin_inset LatexCommand cite
19114 \begin_inset Note Greyedout
19117 \begin_layout Standard
19120 Note: endf\SpecialChar \textcompwordmark{}
19123 doesn't provide an automatic translation for the text hint, you have to
19124 do this manually, see section\InsetSpace ~
19126 \begin_inset LatexCommand cite
19139 \begin_inset Note Greyedout
19142 \begin_layout Standard
19147 There is currently a bug in
19149 endf\SpecialChar \textcompwordmark{}
19152 when the caption contains a German
19153 \begin_inset Quotes eld
19157 \begin_inset Quotes erd
19161 Use in this case the command
19162 \begin_inset Quotes eld
19172 \begin_inset Quotes erd
19176 \begin_inset Quotes eld
19180 \begin_inset Quotes erd
19191 \begin_layout Standard
19192 \begin_inset VSpace bigskip
19195 For more details about float placements, have a look at LaTeX books,
19196 \begin_inset LatexCommand cite
19197 key "latexcompanion,latexguide,latexbook"
19204 \begin_layout Section
19206 \begin_inset LatexCommand label
19207 name "sec:Rotated-Floats"
19212 \begin_inset LatexCommand index
19213 name "Floats ! Rotating"
19220 \begin_layout Standard
19221 Especially for wide tables you might have floats rotated.
19222 To rotate a whole float including the caption, right-click on the float-box
19225 Rotate\InsetSpace ~
19231 \begin_layout Standard
19232 Rotated floats are always placed on its own page (or column, when you have
19233 a two-column document).
19234 They are normally rotated so that you can read them from the outside margin
19235 -- to the left on even pages, to the right on odd pages.
19238 \begin_layout Standard
19239 Referencing rotated floats is the same like for normal floats, the caption
19240 format is also the same: Table\InsetSpace ~
19242 \begin_inset LatexCommand ref
19243 reference "tab:Rotated-table"
19247 is an example of a rotated table float.
19250 \begin_layout Standard
19251 \begin_inset Note Greyedout
19254 \begin_layout Standard
19259 Not all DVI-viewers are able to display rotated floats.
19267 \begin_layout Standard
19268 \begin_inset Float table
19273 \begin_layout Standard
19274 \begin_inset Caption
19276 \begin_layout Standard
19277 \begin_inset LatexCommand label
19278 name "tab:Rotated-table"
19290 \begin_layout Standard
19292 \begin_inset Tabular
19293 <lyxtabular version="3" rows="1" columns="5">
19295 <column alignment="center" valignment="top" leftline="true" width="0">
19296 <column alignment="center" valignment="top" leftline="true" width="0">
19297 <column alignment="center" valignment="top" leftline="true" width="0">
19298 <column alignment="center" valignment="top" leftline="true" width="0">
19299 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19300 <row topline="true" bottomline="true">
19301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19304 \begin_layout Standard
19310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19313 \begin_layout Standard
19319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19322 \begin_layout Standard
19328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19331 \begin_layout Standard
19337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19340 \begin_layout Standard
19359 \begin_layout Section
19361 \begin_inset LatexCommand index
19362 name "Caption ! Formatting"
19367 \begin_inset LatexCommand index
19368 name "Floats ! Caption Formatting"
19373 \begin_inset LatexCommand index
19374 name "LaTeX-packages ! caption"
19379 \begin_inset LatexCommand label
19380 name "sec:Caption-Formatting"
19387 \begin_layout Standard
19392 environment is the default paragraph environment for
19397 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19400 \begin_inset Quotes eld
19408 \begin_inset Quotes erd
19411 followed by the caption text.
19413 \begin_inset Quotes eld
19417 \begin_inset Quotes erd
19420 is the actual reference number.
19421 By default the label and the number are in the same font as the caption
19422 text and a colon follows the number to divide the label from the text.
19423 This caption format is not suitable for all document formats.
19427 \begin_layout Standard
19428 To change the default caption format, load the LaTeX-package
19433 \begin_inset LatexCommand index
19434 name "LaTeX-packages ! caption"
19438 in the document preamble with this line:
19441 \begin_layout Standard
19446 usepackage[format definition]{caption}
19449 \begin_layout Standard
19450 To have for example the label and the number in sans-serif bold font and
19451 the table captions always above the table like in this document, use the
19455 \begin_layout Standard
19460 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19463 \begin_layout Standard
19464 You can also define different caption formats for the different float types.
19465 In this case load the
19469 package without format specific options and define the different formats
19470 with the help of the command
19473 \begin_layout Standard
19478 captionsetup[float type]{format definition}
19481 \begin_layout Standard
19482 in the document preamble.
19483 For example the caption formats of Figure\InsetSpace ~
19485 \begin_inset LatexCommand ref
19486 reference "fig:This-is-an-fig"
19490 and Table\InsetSpace ~
19492 \begin_inset LatexCommand ref
19493 reference "tab:This-is-an-tab"
19497 can be created using these commands in the document preamble:
19500 \begin_layout Standard
19505 usepackage[tableposition=top]{caption}
19513 captionsetup[f\SpecialChar \textcompwordmark{}
19514 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19520 \begin_layout Standard
19528 captionsetup[figure]
19539 captionsetup[table]{labelfont={bf,sf}}
19542 \begin_layout Standard
19543 \begin_inset Note Greyedout
19546 \begin_layout Standard
19555 has no effect when a
19560 \begin_inset LatexCommand index
19561 name "LaTeX-packages ! koma-script"
19565 document class is used.
19566 In this case the document class option
19578 \begin_layout Standard
19579 For more information about the package
19583 we refer to its documentation
19584 \begin_inset LatexCommand cite
19585 key "caption,caption-de"
19592 \begin_layout Standard
19593 To change the label name from e.g.
19595 \begin_inset Quotes eld
19599 \begin_inset Quotes erd
19603 \begin_inset Quotes eld
19607 \begin_inset Quotes erd
19610 use this preamble command:
19613 \begin_layout Standard
19620 fnum@figure}{Image~
19625 \begin_layout Standard
19632 inserts the figure number and
19635 \begin_inset Quotes eld
19641 \begin_inset Quotes erd
19644 creates a protected space.
19647 \begin_layout Standard
19648 \begin_inset VSpace bigskip
19656 \begin_inset LatexCommand index
19657 name "LaTeX-packages ! koma-script"
19663 article (koma-script)
19671 letter (koma-script)
19675 report (koma-script)
19677 \InsetSpace \thinspace{}
19678 ), you can alternatively to the
19686 's built-in command
19693 For example, to have the caption label in bold, add this command to your
19697 \begin_layout Standard
19702 setkomafont{captionlabel}{
19707 \begin_layout Standard
19708 For more information about
19719 \begin_inset LatexCommand cite
19720 key "koma-script,koma-script-de"
19727 \begin_layout Standard
19731 \begin_layout Standard
19735 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19742 \begin_inset Note Note
19745 \begin_layout Standard
19746 The caption format is changed only for this example.
19754 \begin_layout Standard
19755 \begin_inset Float figure
19761 \begin_layout Standard
19763 \begin_inset Graphics
19764 filename clipart/mobius.eps
19773 \begin_layout Standard
19774 \begin_inset Caption
19776 \begin_layout Standard
19777 \begin_inset LatexCommand label
19778 name "fig:This-is-an-fig"
19782 This is an example figure caption that is longer than one line to show the
19783 different caption format.
19784 Here a self-defined caption format is used.
19797 \begin_layout Standard
19801 \begin_layout Standard
19805 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19814 \begin_layout Standard
19815 \begin_inset Float table
19821 \begin_layout Standard
19822 \begin_inset Caption
19824 \begin_layout Standard
19825 \begin_inset LatexCommand label
19826 name "tab:This-is-an-tab"
19830 This is an example table caption that is longer than one line to show the
19831 different caption format.
19832 Here the standard caption format for tables in this document is used.
19840 \begin_layout Standard
19842 \begin_inset Tabular
19843 <lyxtabular version="3" rows="1" columns="5">
19845 <column alignment="center" valignment="top" leftline="true" width="0">
19846 <column alignment="center" valignment="top" leftline="true" width="0">
19847 <column alignment="center" valignment="top" leftline="true" width="0">
19848 <column alignment="center" valignment="top" leftline="true" width="0">
19849 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19850 <row topline="true" bottomline="true">
19851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19854 \begin_layout Standard
19860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19863 \begin_layout Standard
19869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19872 \begin_layout Standard
19878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19881 \begin_layout Standard
19887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19890 \begin_layout Standard
19909 \begin_layout Section
19911 \begin_inset LatexCommand index
19912 name "Caption ! Placement"
19917 \begin_inset LatexCommand index
19918 name "Floats ! Caption Placement"
19923 \begin_inset LatexCommand label
19924 name "sec:Caption-Placement"
19931 \begin_layout Standard
19932 The common caption placement rule is:
19935 \begin_layout Description
19936 Figure: Caption is set below the figure
19939 \begin_layout Description
19940 Table: Caption is set above the table
19943 \begin_layout Standard
19944 Having the caption above the table is unfortunately not supported in LaTeX's
19946 That means if you are using the document classes
19962 there will be no space between the caption and the table.
19963 To insert the needed space, add the following option to the load command
19964 of the LaTeX-package
19968 in your document preamble
19972 \begin_layout Standard
19973 See section\InsetSpace ~
19975 \begin_inset LatexCommand ref
19976 reference "sec:Caption-Formatting"
19980 for more information of the package
19992 \begin_layout Standard
19998 \begin_layout Standard
20004 \begin_inset LatexCommand index
20005 name "LaTeX-packages ! koma-script"
20011 article (koma-script)
20019 letter (koma-script)
20023 report (koma-script)
20025 \InsetSpace \thinspace{}
20026 ), you can alternatively to the
20030 package set the document class option
20034 , or you can use the environment
20036 caption\InsetSpace ~
20046 \begin_layout Standard
20047 \begin_inset VSpace bigskip
20050 It is also possible to set the caption beside a figure or table.
20051 To get this the LaTeX-package
20056 \begin_inset LatexCommand index
20057 name "LaTeX-packages ! sidecap"
20061 has to be loaded in the document preamble with the line
20064 \begin_layout Standard
20069 usepackage[option]{sidecap}
20072 \begin_layout Standard
20073 If you set no option, the caption is placed on the side of the outer page
20074 margin -- to the right on odd pages, to the left on even pages.
20075 You can change the placement to inner margin with the option
20080 To force the placement always to the right or left, use the option
20091 \begin_layout Standard
20092 To place in LyX the caption of a float on the side, it is necessary to add
20093 these commands to the document preamble:
20096 \begin_layout Standard
20102 \begin_layout Standard
20115 \begin_layout Standard
20136 \begin_layout Standard
20157 \begin_layout Standard
20168 renewenvironment{table}{
20175 \begin_layout Standard
20188 \begin_layout Standard
20209 \begin_layout Standard
20227 \begin_layout Standard
20240 \begin_layout Standard
20255 f\SpecialChar \textcompwordmark{}
20262 \begin_layout Standard
20275 MyEndf\SpecialChar \textcompwordmark{}
20278 endf\SpecialChar \textcompwordmark{}
20285 \begin_layout Standard
20296 renewenvironment{f\SpecialChar \textcompwordmark{}
20299 begin{SCf\SpecialChar \textcompwordmark{}
20302 end{SCf\SpecialChar \textcompwordmark{}
20306 \begin_layout Standard
20319 \begin_layout Standard
20332 f\SpecialChar \textcompwordmark{}
20341 \begin_layout Standard
20354 endf\SpecialChar \textcompwordmark{}
20357 MyEndf\SpecialChar \textcompwordmark{}
20361 \begin_layout Standard
20367 \begin_layout Standard
20368 The commands allow you to redefine the floats so that the caption is set
20370 For figure floats use the command
20373 \begin_layout Standard
20381 \begin_layout Standard
20382 in ERT before the float.
20383 Behind the float insert the command
20386 \begin_layout Standard
20394 \begin_layout Standard
20395 in ERT to get back to the original float definition.
20398 \begin_layout Standard
20399 For table floats use the corresponding commands
20402 \begin_layout Standard
20416 \begin_layout Standard
20417 Figure\InsetSpace ~
20419 \begin_inset LatexCommand ref
20420 reference "fig:cap-beside-fig"
20424 and Table\InsetSpace ~
20426 \begin_inset LatexCommand ref
20427 reference "tab:cap-beside-tab"
20431 are examples where the caption is set beside.
20434 \begin_layout Standard
20435 You can see in the examples that the caption text appears at the top of
20436 the floats for table floats and at the bottom for figure floats.
20437 To change this, you can use the command
20440 \begin_layout Standard
20445 sidecaptionvpos{float type}{placement}
20448 \begin_layout Standard
20449 in the document preamble or in ERT before the float.
20450 The float type is either
20458 , the placement can be
20459 \begin_inset Quotes eld
20467 \begin_inset Quotes erd
20471 \begin_inset Quotes eld
20479 \begin_inset Quotes erd
20483 \begin_inset Quotes eld
20491 \begin_inset Quotes erd
20495 To have for example the caption of figure floats vertically centered, use
20499 \begin_layout Standard
20504 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20508 \begin_layout Standard
20509 This was used for Figure\InsetSpace ~
20511 \begin_inset LatexCommand ref
20512 reference "fig:cap-beside-fig-2"
20519 \begin_layout Standard
20520 \begin_inset VSpace defskip
20523 For more information about the package
20527 we refer to its documentation
20528 \begin_inset LatexCommand cite
20536 \begin_layout Standard
20537 \begin_inset Note Greyedout
20540 \begin_layout Standard
20550 \begin_inset LatexCommand index
20551 name "LaTeX-packages ! hypcap"
20555 , described in section\InsetSpace ~
20557 \begin_inset LatexCommand ref
20558 reference "sub:Reference-Position"
20562 , has no effect on floats with the caption set beside.
20570 \begin_layout Standard
20574 \begin_layout Standard
20586 \begin_layout Standard
20587 \begin_inset Float figure
20592 \begin_layout Standard
20593 \begin_inset Graphics
20594 filename clipart/escher-lsd.eps
20602 \begin_layout Standard
20603 \begin_inset Caption
20605 \begin_layout Standard
20606 \begin_inset LatexCommand label
20607 name "fig:cap-beside-fig"
20611 This is a caption beside a figure.
20624 \begin_layout Standard
20628 \begin_layout Standard
20640 \begin_layout Standard
20641 \begin_inset Float table
20646 \begin_layout Standard
20647 \begin_inset Caption
20649 \begin_layout Standard
20650 \begin_inset LatexCommand label
20651 name "tab:cap-beside-tab"
20655 This is a caption beside a table.
20663 \begin_layout Standard
20664 \begin_inset Tabular
20665 <lyxtabular version="3" rows="4" columns="5">
20667 <column alignment="center" valignment="top" leftline="true" width="0">
20668 <column alignment="center" valignment="top" leftline="true" width="0">
20669 <column alignment="center" valignment="top" leftline="true" width="0">
20670 <column alignment="center" valignment="top" leftline="true" width="0">
20671 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20672 <row topline="true">
20673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20676 \begin_layout Standard
20682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20685 \begin_layout Standard
20691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20694 \begin_layout Standard
20700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20703 \begin_layout Standard
20709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20712 \begin_layout Standard
20719 <row topline="true">
20720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20723 \begin_layout Standard
20729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20732 \begin_layout Standard
20738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20741 \begin_layout Standard
20747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20750 \begin_layout Standard
20756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20759 \begin_layout Standard
20766 <row topline="true">
20767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20770 \begin_layout Standard
20776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20779 \begin_layout Standard
20785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20788 \begin_layout Standard
20794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20797 \begin_layout Standard
20803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20806 \begin_layout Standard
20813 <row topline="true" bottomline="true">
20814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20817 \begin_layout Standard
20823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20826 \begin_layout Standard
20832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20835 \begin_layout Standard
20841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20844 \begin_layout Standard
20850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20853 \begin_layout Standard
20872 \begin_layout Standard
20876 \begin_layout Standard
20888 \begin_layout Standard
20892 \begin_layout Standard
20896 sidecaptionvpos{figure}{c}
20902 \begin_inset Float figure
20907 \begin_layout Standard
20908 \begin_inset Graphics
20909 filename clipart/escher-lsd.eps
20917 \begin_layout Standard
20918 \begin_inset Caption
20920 \begin_layout Standard
20921 \begin_inset LatexCommand label
20922 name "fig:cap-beside-fig-2"
20926 This is a vertically centered caption beside a figure.
20939 \begin_layout Standard
20943 \begin_layout Standard
20955 \begin_layout Section
20957 \begin_inset LatexCommand label
20958 name "sec:Listings-of-Floats"
20963 \begin_inset LatexCommand index
20964 name "Floats ! Float Lists"
20971 \begin_layout Standard
20972 Similar to the the table of contents where the sections of the document
20973 are listed, there are listings for all float types, like the figures of
20975 You can insert them via the
20977 Insert\SpecialChar \menuseparator
20985 \begin_layout Standard
20986 The list entries are the float captions or its short title, the float number,
20987 and the page number where they appear in the document.
20990 \begin_layout Standard
20991 You can find the list of figures and tables at the end of this document.
20994 \begin_layout Chapter
20998 \begin_layout Section
21002 \begin_layout Standard
21015 \begin_layout Standard
21023 \begin_inset LatexCommand label
21024 name "sec:LyX-Notes"
21029 \begin_inset LatexCommand index
21030 name "Notes ! LyX Notes"
21035 \begin_inset Note Note
21038 \begin_layout Standard
21041 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
21042 are displayed wrongly in PDF-bookmarks.
21043 For more information about this, have a look at
21044 \begin_inset LatexCommand cite
21057 \begin_layout Standard
21058 Notes are inserted with the toolbar button
21059 \begin_inset Graphics
21060 filename ../images/note-insert.xpm
21067 Insert\SpecialChar \menuseparator
21071 There are five types of notes:
21074 \begin_layout Description
21076 Note This note type is for internal notes that won't appear in the output.
21077 Its note-box looks like this:
21082 \begin_inset Graphics
21083 filename clipart/LyXNoteImageQt4.png
21090 \begin_inset Note Note
21093 \begin_layout Standard
21094 This is text in a note box that doesn't appear in the output.
21102 \begin_layout Description
21103 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
21104 ent, when you export the document to LaTeX via the menu
21106 File\SpecialChar \menuseparator
21107 Export\SpecialChar \menuseparator
21108 LaTeX (pdflatex) / LaTeX (plain)
21111 Its note-box looks like this:
21116 \begin_inset Graphics
21117 filename clipart/CommentNoteImageQt4.png
21124 \begin_inset Note Comment
21127 \begin_layout Standard
21128 This is text in a note box that only appears as comment in LaTeX-files.
21136 \begin_layout Description
21137 Greyed\InsetSpace ~
21138 Out This note will appear in the output as grey text.
21139 Its note-box looks like this:
21144 \begin_inset Graphics
21145 filename clipart/GreyedOutNoteImageQt4.png
21157 \begin_layout Standard
21161 renewenvironment{lyxgreyedout}
21164 \begin_layout Standard
21168 textcolor[gray]{0.8}
21178 \begin_inset Note Greyedout
21181 \begin_layout Standard
21186 \begin_layout Standard
21187 This is an example footnote within a greyed out note.
21192 of a comment that appears in the output as grey text.
21201 \begin_layout Standard
21205 renewenvironment{lyxgreyedout}
21208 \begin_layout Standard
21222 \begin_inset Note Note
21225 \begin_layout Standard
21226 The greyed out note is here redefined to show it with the original LyX definitio
21227 n because greyed out notes are redefined in the preamble of this document,
21228 as described below, to have blue text.
21237 As you can see in the example, the first line of greyed out notes is a bit
21238 indented and greyed out notes can have footnotes.
21241 \begin_layout Description
21242 Framed This note will appear in the output as framed text.
21243 Its note-box looks like this:
21248 \begin_inset Graphics
21249 filename clipart/FramedNoteImageQt4.png
21256 \begin_inset Note Framed
21259 \begin_layout Standard
21260 This is text in a note box that appears framed in the output.
21265 In contrary to framed boxes
21269 \begin_layout Standard
21270 Framed boxes are described in section\InsetSpace ~
21272 \begin_inset LatexCommand ref
21273 reference "sec:Framed-Boxes"
21282 the frame uses always the whole text width and the note is set into its
21286 \begin_layout Description
21287 Shaded This note will appear in the output with red background color.
21288 Its note box looks like this:
21293 \begin_inset Graphics
21294 filename clipart/ShadedNoteImageQt4.png
21301 \begin_inset Note Shaded
21304 \begin_layout Standard
21305 This text in a note box appears in the output with red background.
21310 In contrary to colored boxes
21314 \begin_layout Standard
21315 Colored boxes are described in section\InsetSpace ~
21317 \begin_inset LatexCommand ref
21318 reference "sec:Colored-Boxes"
21327 the note uses always the whole text width and the note is set into its
21331 \begin_layout Standard
21332 \begin_inset VSpace bigskip
21335 When you use the toolbar button to insert notes, a
21341 You can switch between the five note types by right-clicking on the note-box.
21346 If you want to turn existing text into a note, mark it and click on the
21362 \begin_layout Standard
21363 \begin_inset VSpace bigskip
21366 You can change the text color of the greyed out notes in the preamble with
21367 the following command:
21370 \begin_layout Standard
21375 renewenvironment{lyxgreyedout}
21381 \begin_layout Standard
21399 \begin_layout Standard
21400 The available colors and the method to define own colors is explained in
21401 section\InsetSpace ~
21403 \begin_inset LatexCommand ref
21404 reference "sec:Colored-Tables"
21411 \begin_layout Standard
21412 Notes that appear in blue in this document are set using greyed out notes
21416 \begin_layout Standard
21417 \begin_inset VSpace bigskip
21423 \begin_layout Standard
21432 notes can be set in the
21439 \begin_layout Standard
21440 The default frame width for
21444 notes is 0.4\InsetSpace \thinspace{}
21445 pt; it can be changed by changing the size
21452 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
21454 be changed by changing the size
21461 For example the frame appearance of the following
21465 note is set with the ERT commands
21468 \begin_layout Standard
21478 \begin_layout Standard
21482 \begin_layout Standard
21494 \begin_inset Note Framed
21497 \begin_layout Standard
21511 \begin_layout Standard
21525 \begin_layout Standard
21526 \begin_inset VSpace bigskip
21532 \begin_layout Standard
21537 notes the default space between the note content and the note border is
21538 3\InsetSpace \thinspace{}
21539 pt; it can be changed by changing the size
21547 The default background color red can be changed with the command
21551 def\SpecialChar \textcompwordmark{}
21559 def\SpecialChar \textcompwordmark{}
21562 command is explained in section\InsetSpace ~
21564 \begin_inset LatexCommand ref
21565 reference "sec:Colored-Tables"
21573 \begin_layout Standard
21580 \SpecialChar \textcompwordmark{}
21585 requires the LaTeX-package
21589 in the preamble, see section\InsetSpace ~
21591 \begin_inset LatexCommand ref
21592 reference "sec:Colored-Boxes"
21604 \begin_layout Standard
21605 For example the appearance of the following
21609 note is set with the ERT commands
21612 \begin_layout Standard
21625 def\SpecialChar \textcompwordmark{}
21626 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21629 \begin_layout Standard
21633 \begin_layout Standard
21646 \begin_layout Standard
21650 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21656 \begin_inset Note Shaded
21659 \begin_layout Standard
21662 This is yellow text in a
21672 note with darkgreen background.
21681 \begin_layout Standard
21694 \begin_layout Standard
21698 definecolor{shadecolor}{rgb}{1,0,0}
21706 \begin_layout Section
21708 \begin_inset LatexCommand label
21709 name "sec:Footnotes"
21714 \begin_inset LatexCommand index
21715 name "Notes ! Footnotes"
21720 \begin_inset LatexCommand index
21728 \begin_layout Standard
21729 Footnotes can be inserted using the toolbar button
21730 \begin_inset Graphics
21731 filename ../images/footnote-insert.xpm
21738 Insert\SpecialChar \menuseparator
21750 then the following footnote-box:
21751 \begin_inset Graphics
21752 filename clipart/footnoteQt4.png
21761 where you can enter the footnote text.
21762 If you want to turn existing text into a footnote, mark it and click on
21778 \begin_layout Standard
21779 Here is an example footnote:
21787 \begin_layout Standard
21788 \begin_inset LatexCommand label
21789 name "foot:This-is-an"
21793 This is an example footnote.
21806 \begin_layout Standard
21810 newcounter{MyRepeatFoot}
21813 \begin_layout Standard
21817 setcounter{MyRepeatFoot}{
21827 \begin_layout Standard
21828 The footnote will appear in the output as a superscript number at the text
21829 position where the footnote box is placed.
21830 The footnote text is placed at the bottom of the current page.
21831 The footnote number is calculated by LaTeX, the numbers are consecutive.
21832 It depends on your document-class, if the footnote number is reset for
21836 \begin_layout Standard
21837 Footnotes can be referenced like floats: Insert a label into the footnote
21838 and cross-reference this label in the text as described in section\InsetSpace ~
21840 \begin_inset LatexCommand ref
21841 reference "sec:Referencing-Floats"
21847 This is a cross-reference of Footnote\InsetSpace ~
21849 \begin_inset LatexCommand ref
21850 reference "foot:This-is-an"
21857 \begin_layout Standard
21858 \begin_inset VSpace defskip
21861 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21863 \begin_inset LatexCommand ref
21864 reference "sec:Minipages"
21869 Footnotes within longtables are described in section\InsetSpace ~
21871 \begin_inset LatexCommand ref
21872 reference "sub:Footnotes-in-Longtables"
21879 \begin_layout Standard
21880 \begin_inset VSpace defskip
21883 To create only a mark for a footnote, use the command
21887 footnotemark[number]
21890 This is used when you have the same annotation several times in a text
21891 but doesn't want to print the footnote text every time.
21894 the number of the repeating footnote while you are writing the text, you
21895 have to store its number.
21896 For the following footnote mark example, these commands were inserted in
21897 ERT behind Footnote\InsetSpace ~
21899 \begin_inset LatexCommand ref
21900 reference "foot:This-is-an"
21904 to store the footnote number:
21907 \begin_layout Standard
21912 newcounter{MyRepeatFoot}
21916 setcounter{MyRepeatFoot}{
21921 \begin_layout Standard
21922 The footnote mark was then created with this command:
21925 \begin_layout Standard
21935 \begin_layout Standard
21936 Here is an example footnote mark:
21944 \begin_layout Standard
21958 \begin_layout Subsection
21960 \begin_inset LatexCommand label
21961 name "sub:Footnote-Numbering"
21966 \begin_inset LatexCommand index
21967 name "Footnotes ! Numbering"
21974 \begin_layout Standard
21975 To reset the footnote number back to 1 after each section
21977 , add this command to your document preamble:
21980 \begin_layout Standard
21985 @addtoreset{footnote}{section}
21988 \begin_layout Standard
21989 \begin_inset VSpace bigskip
21992 The following preamble command changes the footnote numbering style to small
21996 \begin_layout Standard
22008 \begin_layout Standard
22012 \begin_layout Standard
22025 This is a footnote with roman numbering:
22029 \begin_layout Standard
22030 This is an example footnote with roman numbering.
22039 \begin_layout Standard
22055 \begin_layout Standard
22056 To change the numbering style to capital roman numerals replace in the command
22071 \begin_inset Quotes eld
22075 \begin_inset Quotes erd
22078 footnotes with capital or small Latin letters use
22092 \begin_inset Quotes eld
22096 \begin_inset Quotes erd
22099 footnotes with symbols use
22108 \begin_layout Standard
22109 \begin_inset Note Greyedout
22112 \begin_layout Standard
22117 You can only number 26 footnotes with Latin letters, because this numbering
22118 is limited to single letters.
22126 \begin_inset Note Greyedout
22129 \begin_layout Standard
22134 You can only number 9 footnotes with symbols.
22142 \begin_layout Standard
22143 To return to the default numbering style when you changed to another one,
22156 in the command above.
22159 \begin_layout Standard
22160 \begin_inset VSpace bigskip
22166 \begin_layout Standard
22167 If you want to have footnotes numbered in the scheme
22168 \begin_inset Quotes eld
22172 \begin_inset Quotes erd
22175 , add the following command to your document preamble:
22178 \begin_layout Standard
22183 numberwithin{footnote}{chapter}
22186 \begin_layout Standard
22187 To be able to use the command
22198 in the document settings the option
22208 \begin_layout Standard
22212 \begin_layout Standard
22216 numberwithin{footnote}{chapter}
22221 This is another example footnote:
22227 \begin_layout Standard
22228 This is a footnote numbered in the scheme
22229 \begin_inset Quotes eld
22233 \begin_inset Quotes erd
22247 \begin_layout Standard
22263 \begin_layout Standard
22264 \begin_inset Note Greyedout
22267 \begin_layout Standard
22278 always prints out the footnote number as arabic number; previous redefinitions
22279 to get non-arabic numbers are overwritten.
22287 \begin_layout Standard
22288 So to get for example the scheme
22289 \begin_inset Quotes eld
22295 \begin_inset Quotes erd
22298 , use this command instead of
22307 \begin_layout Standard
22321 \begin_layout Subsection
22323 \begin_inset LatexCommand index
22324 name "Footnotes ! Placement"
22331 \begin_layout Standard
22332 If you have several footnotes in one page, they appear without vertical
22333 space between them at the bottom of the page.
22334 To make them better readable you can e.\InsetSpace \thinspace{}
22336 add 1.5\InsetSpace \thinspace{}
22337 mm space with the following
22341 \begin_layout Standard
22363 \begin_layout Standard
22364 \begin_inset VSpace bigskip
22367 In a two-column document the footnotes appear at the bottom of every column,
22368 see Figure\InsetSpace ~
22370 \begin_inset LatexCommand ref
22371 reference "fig:Standard-footnote-placement"
22376 If the footnotes should only appear at the bottom of the right column,
22377 as in Figure\InsetSpace ~
22379 \begin_inset LatexCommand ref
22380 reference "fig:Footnote-placement-in"
22384 , use the LaTeX-package
22389 \begin_inset LatexCommand index
22390 name "LaTeX-packages ! ftnright"
22394 with this command in the document preamble:
22397 \begin_layout Standard
22402 usepackage{ftnright}
22405 \begin_layout Standard
22406 \begin_inset Float figure
22412 \begin_layout Standard
22416 \begin_layout Standard
22426 \begin_inset Graphics
22427 filename clipart/without_fntright.pdf
22436 \begin_layout Standard
22446 \begin_layout Standard
22447 \begin_inset Caption
22449 \begin_layout Standard
22450 \begin_inset LatexCommand label
22451 name "fig:Standard-footnote-placement"
22455 Standard footnote placement in two-column documents.
22468 \begin_layout Standard
22469 \begin_inset Float figure
22475 \begin_layout Standard
22479 \begin_layout Standard
22489 \begin_inset Graphics
22490 filename clipart/with_fntright.pdf
22499 \begin_layout Standard
22509 \begin_layout Standard
22510 \begin_inset Caption
22512 \begin_layout Standard
22513 \begin_inset LatexCommand label
22514 name "fig:Footnote-placement-in"
22518 Footnote placement in two-column documents when the LaTeX-package
22535 \begin_layout Standard
22536 \begin_inset VSpace bigskip
22539 In some scientific literature it is usual to collect the footnotes and print
22540 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
22542 \begin_inset LatexCommand ref
22543 reference "fig:Endnotes----footnotes"
22548 They are then so called
22549 \begin_inset Quotes eld
22553 \begin_inset Quotes erd
22557 To use endnotes instead of footnotes in your document, load the LaTeX-package
22563 \begin_inset LatexCommand index
22564 name "LaTeX-packages ! endnotes"
22568 with the document preamble lines
22571 \begin_layout Standard
22576 usepackage{endnotes}
22587 \begin_layout Standard
22588 To insert the collected footnotes, insert the command
22591 \begin_layout Standard
22599 \begin_layout Standard
22600 in ERT at the the end of a section or chapter.
22603 \begin_layout Standard
22604 \begin_inset Float figure
22609 \begin_layout Standard
22614 \begin_layout Standard
22624 \begin_inset Graphics
22625 filename clipart/endnotes.pdf
22633 \begin_layout Standard
22643 \begin_layout Standard
22644 \begin_inset Caption
22646 \begin_layout Standard
22647 \begin_inset LatexCommand label
22648 name "fig:Endnotes----footnotes"
22652 Endnotes -- footnotes are printed in a separate paragraph at the end of
22653 sections or chapters.
22666 \begin_layout Standard
22667 \begin_inset VSpace defskip
22670 The paragraph heading for the endnotes isn't automatically translated into
22671 the document language, this must be done manually.
22672 The following preamble command translate the default English name
22673 \begin_inset Quotes eld
22677 \begin_inset Quotes erd
22680 to the German translation
22681 \begin_inset Quotes eld
22685 \begin_inset Quotes erd
22691 \begin_layout Standard
22698 notesname}{Anmerkungen}
22701 \begin_layout Standard
22702 \begin_inset VSpace defskip
22705 The numbering of endnotes can be changed like the footnote numbering as
22706 described in section\InsetSpace ~
22708 \begin_inset LatexCommand ref
22709 reference "sub:Footnote-Numbering"
22713 ; just replace the command
22726 To reset the endnote number use the command
22732 as described in section\InsetSpace ~
22734 \begin_inset LatexCommand ref
22735 reference "sub:Footnote-Numbering"
22739 and replace the command parameter
22750 \begin_layout Standard
22751 To create only a mark for an endnote, use the command
22755 endnotemark[number]
22757 similar to the command
22763 , described in section\InsetSpace ~
22765 \begin_inset LatexCommand ref
22766 reference "sec:Footnotes"
22773 \begin_layout Standard
22774 \begin_inset VSpace bigskip
22777 Footnotes can also be placed in the page margin and the footnote text alignment
22778 can be changed, see the LaTeX-package
22783 \begin_inset LatexCommand index
22784 name "LaTeX-packages ! footmisc"
22789 \begin_inset LatexCommand cite
22794 for more information about this.
22797 \begin_layout Standard
22798 For various further footnote formatting issues have a look at LaTeX-books,
22800 \begin_inset LatexCommand cite
22801 key "latexcompanion,latexguide,latexbook"
22808 \begin_layout Section
22810 \begin_inset LatexCommand index
22811 name "Notes ! Margin Notes"
22818 \begin_layout Standard
22819 Margin notes look and behave in LyX like footnotes.
22820 They are inserted via the menu
22822 Insert\SpecialChar \menuseparator
22823 Marginal\InsetSpace ~
22826 or the toolbar button
22827 \begin_inset Graphics
22828 filename ../images/marginalnote-insert.xpm
22844 \begin_inset Quotes eld
22848 \begin_inset Quotes erd
22851 appears where you can enter the text of the margin note.
22854 \begin_layout Standard
22855 At the side is an example margin note.
22859 \begin_inset Marginal
22862 \begin_layout Standard
22863 This is a margin note.
22871 \begin_layout Standard
22872 Margin notes appear at the right side in single-sided documents.
22873 In double-sided documents they appear in the outer margin -- left on even
22874 pages, right on odd pages.
22875 The text of margin notes is aligned opposite to the outer margin -- right-align
22876 ed when the note appears in the left margin.
22877 The first line of the margin note is placed at the position of the text
22878 line where it is inserted in the document.
22881 \begin_layout Standard
22882 \begin_inset VSpace bigskip
22885 To place the margin note in the inner margin, add the command
22888 \begin_layout Standard
22896 \begin_layout Standard
22897 in ERT before a margin note.
22898 The new placement is valid for all following margin notes.
22902 \begin_layout Standard
22912 \begin_inset Marginal
22915 \begin_layout Standard
22916 This is a margin note in the inner margin.
22928 \begin_inset Note Greyedout
22931 \begin_layout Standard
22936 There is often not enough space in the inner margin so that the notes are
22937 not correctly displayed in the output.
22945 \begin_layout Standard
22949 \begin_layout Standard
22958 To return to the default placement insert the command
22961 \begin_layout Standard
22969 \begin_layout Standard
22972 \begin_inset Note Greyedout
22975 \begin_layout Standard
22980 The command is ignored when it is within a paragraph where also the command
22995 \begin_layout Standard
22996 \begin_inset VSpace bigskip
23003 \begin_inset Marginal
23006 \begin_layout Standard
23007 AVeryLongMarginParWord that isn't hyphenated.
23015 Similar to the case described in section\InsetSpace ~
23017 \begin_inset LatexCommand ref
23018 reference "sub:Multiple-Lines-in"
23022 , long words cannot be hyphenated when they are the first word in a margin
23024 To avoid this, insert the command
23027 \begin_layout Standard
23035 \begin_layout Standard
23036 in ERT before the word
23040 \begin_inset Marginal
23043 \begin_layout Standard
23047 \begin_layout Standard
23056 AVeryLongMarginParWord that is hyphenated.
23064 \begin_layout Standard
23065 \begin_inset VSpace bigskip
23071 \begin_layout Standard
23072 \begin_inset Note Greyedout
23075 \begin_layout Standard
23080 Margin notes can normally not be used inside tables, floats, and footnotes.
23088 \begin_layout Standard
23089 \begin_inset VSpace bigskip
23095 \begin_layout Standard
23099 \begin_layout Standard
23109 \begin_inset Note Note
23112 \begin_layout Standard
23113 The following section will only be displayed when you have the LaTeX-package
23126 \begin_layout Standard
23127 This restriction can be evaded by using the LaTeX-package
23132 \begin_inset LatexCommand index
23133 name "LaTeX-packages ! marginnote"
23138 By adding these two lines to your document preamble, the command used by
23139 LyX for margin notes is redefined to use the command provided by the
23146 \begin_layout Standard
23151 usepackage{marginnote}
23162 \begin_layout Standard
23163 This is also used in this document because
23167 has another useful feature: You can set a vertical offset for the note.
23168 This is often needed when too many margin notes are too close together
23169 or for a better page layout.
23170 The offset is set in LyX as ERT directly behind the margin note in the
23174 \begin_layout Standard
23180 \begin_layout Standard
23181 where the offset is a length with one of the units listed in Table\InsetSpace ~
23183 \begin_inset LatexCommand ref
23184 reference "tab:Units"
23189 A negative value shifts the note up, a positive value shifts it down.
23193 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
23196 \begin_inset Quotes eld
23206 \begin_inset Quotes erd
23210 \begin_inset Marginal
23213 \begin_layout Standard
23214 This margin note is shifted up 1.5\InsetSpace \thinspace{}
23215 cm from its original position.
23227 \begin_layout Standard
23237 \begin_layout Standard
23238 \begin_inset VSpace defskip
23245 you can also change the alignment of the text in the margin note.
23246 For example the commands
23249 \begin_layout Standard
23256 raggedleftmarginnote}{
23264 raggedrightmarginnote}{
23269 \begin_layout Standard
23270 set the alignment to centered.
23275 raggedleftmarginnote
23277 denotes margin notes that appear at the left side.
23284 \begin_layout Standard
23290 raggedleftmarginnote}{
23295 \begin_layout Standard
23301 raggedrightmarginnote}{
23309 \begin_inset Marginal
23312 \begin_layout Standard
23313 The text of this margin note is centered.
23324 \begin_layout Standard
23331 raggedleftmarginnote}{
23339 raggedrightmarginnote}{
23348 \begin_layout Standard
23354 raggedleftmarginnote}{
23359 \begin_layout Standard
23365 raggedrightmarginnote}{
23375 \begin_layout Standard
23376 \begin_inset VSpace defskip
23379 For the other features of
23383 we refer to its documentation
23384 \begin_inset LatexCommand cite
23392 \begin_layout Standard
23393 \begin_inset VSpace bigskip
23396 You can change the layout of margin notes by redefining its definition.
23397 To create for example a header for all margin notes with the underlined,
23398 sans-serif, and bold header text
23399 \begin_inset Quotes eld
23411 \begin_inset Quotes erd
23414 , add this to your document preamble:
23417 \begin_layout Standard
23440 \begin_layout Standard
23457 underbar{Attention!}}}%
23463 \begin_layout Standard
23481 \begin_layout Standard
23488 \begin_layout Standard
23499 \begin_layout Standard
23510 \begin_layout Standard
23518 underbar{Attention!}}}%
23521 \begin_layout Standard
23535 \begin_inset Marginal
23538 \begin_layout Standard
23539 This is a margin note with a defined heading.
23551 \begin_layout Standard
23565 \begin_layout Standard
23582 \begin_inset Note Note
23585 \begin_layout Standard
23586 The margin note format is changed only for this example.
23594 \begin_layout Standard
23598 \begin_layout Standard
23608 \begin_inset Note Note
23611 \begin_layout Standard
23612 The following will be displayed when the LaTeX-package
23624 \begin_layout Standard
23625 You need to install the LaTeX-package
23629 to see the following part of this section in the output.
23632 \begin_layout Standard
23636 \begin_layout Standard
23648 \begin_layout Standard
23652 \begin_layout Chapter
23656 \begin_layout Section
23658 \begin_inset LatexCommand index
23659 name "Boxes ! Introduction"
23666 \begin_layout Standard
23667 Boxes are used to format a block of text.
23668 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23670 \begin_inset LatexCommand ref
23671 reference "sec:Minipages"
23675 , to frame texts, see section\InsetSpace ~
23677 \begin_inset LatexCommand ref
23678 reference "sec:Framed-Boxes"
23682 , to prevent words to be hyphenated, see section\InsetSpace ~
23684 \begin_inset LatexCommand ref
23685 reference "sec:Prevent-Hyphenation"
23689 , to align text, see section\InsetSpace ~
23691 \begin_inset LatexCommand ref
23692 reference "sub:Vertical-Alignment"
23696 , or to set the background color of texts, see section\InsetSpace ~
23698 \begin_inset LatexCommand ref
23699 reference "sec:Colored-Boxes"
23706 \begin_layout Standard
23707 Boxes can be inserted with the menu
23709 Insert\SpecialChar \menuseparator
23713 A grey box with the label
23718 \begin_inset Graphics
23719 filename clipart/BoxInsetDefaultQt4.png
23724 , will be inserted.
23725 The box type can be specified by right-clicking on the box.
23726 The appearing box dialog offers the
23744 is the default for new boxes and is explained in section\InsetSpace ~
23746 \begin_inset LatexCommand ref
23747 reference "sec:Minipages"
23755 is described in section\InsetSpace ~
23757 \begin_inset LatexCommand ref
23758 reference "sec:Parboxes"
23765 \begin_layout Standard
23766 Boxes aren't numbered and can therefore not be referenced like floats or
23770 \begin_layout Standard
23771 \begin_inset Note Greyedout
23774 \begin_layout Standard
23779 Due to a bug in LyX you have to insert a protected space behind a box when
23780 you want to separate in a line the box from the following text with a space.
23788 \begin_layout Standard
23789 \begin_inset Note Greyedout
23792 \begin_layout Standard
23797 Boxes must not be the item in an
23813 \begin_layout Standard
23814 \begin_inset Note Greyedout
23817 \begin_layout Standard
23822 For an unknown reason you can only set the
23831 when you use a framed box.
23837 type and without frames are explained in section\InsetSpace ~
23839 \begin_inset LatexCommand ref
23840 reference "sec:Prevent-Hyphenation"
23852 \begin_layout Section
23854 \begin_inset LatexCommand label
23855 name "sec:Box-Dialog"
23860 \begin_inset LatexCommand index
23861 name "Boxes ! Box Dialog"
23866 \begin_inset LatexCommand index
23867 name "Boxes ! Alignment"
23874 \begin_layout Standard
23875 In the box dialog you can adjust the box geometry in the fields
23884 The available units for the geometry are explained in Table\InsetSpace ~
23886 \begin_inset LatexCommand ref
23887 reference "tab:Units"
23896 offers the following additional sizes:
23899 \begin_layout Description
23900 Depth This is the plain text
23901 \begin_inset Quotes eld
23905 \begin_inset Quotes erd
23909 It ignores the total depth when there are multiple text lines in the box:
23916 \begin_inset Box Boxed
23925 height_special "depth"
23928 \begin_layout Standard
23930 Box height set to 1\InsetSpace \thinspace{}
23943 \begin_layout Description
23944 Height This is the heigth of the text that is inside the box.
23945 A value of e.\InsetSpace \thinspace{}
23947 2 for this size will set the box heigth to 2 times the text
23949 \begin_inset Box Boxed
23958 height_special "height"
23961 \begin_layout Standard
23963 Box height set to 2\InsetSpace \thinspace{}
23972 \begin_layout Description
23974 Height This is the Height\InsetSpace \thinspace{}
23975 +\InsetSpace \thinspace{}
23977 \begin_inset Box Boxed
23986 height_special "totalheight"
23989 \begin_layout Standard
23991 Box height set to 1\InsetSpace \thinspace{}
24001 \begin_layout Description
24002 Width This set the width of the box as heigth:
24003 \begin_inset Box Boxed
24012 height_special "width"
24015 \begin_layout Standard
24017 Box height set to 1\InsetSpace \thinspace{}
24026 \begin_layout Standard
24027 \begin_inset VSpace bigskip
24030 When you have chosen an
24035 , the vertical box alignment can be:
24038 \begin_layout Description
24039 Top This is an example text line.
24041 \begin_inset Box Boxed
24050 height_special "totalheight"
24053 \begin_layout Standard
24055 This box is top-aligned.
24061 This is an example text line.
24064 \begin_layout Description
24065 Middle This is an example text line.
24067 \begin_inset Box Boxed
24076 height_special "totalheight"
24079 \begin_layout Standard
24081 This box is middle-aligned.
24087 This is an example text line.
24090 \begin_layout Description
24091 Bottom This is an example text line.
24093 \begin_inset Box Boxed
24102 height_special "totalheight"
24105 \begin_layout Standard
24107 This box is bottom-aligned.
24113 This is an example text line.
24116 \begin_layout Standard
24117 The horizontal box alignment can be set via LyX's paragraph dialog when
24118 you set the box into its own paragraph.
24121 \begin_layout Standard
24122 \begin_inset VSpace bigskip
24125 When you have chosen an
24130 , the box content can be vertical aligned to:
24133 \begin_layout Description
24134 top This is an example text line.
24136 \begin_inset Box Boxed
24145 height_special "totalheight"
24148 \begin_layout Standard
24150 This box text is top-aligned.
24156 This is an example text line.
24159 \begin_layout Description
24160 middle This is an example text line.
24162 \begin_inset Box Boxed
24171 height_special "totalheight"
24174 \begin_layout Standard
24176 This box text is middle-aligned.
24182 This is an example text line.
24185 \begin_layout Description
24186 bottom This is an example text line.
24188 \begin_inset Box Boxed
24197 height_special "totalheight"
24200 \begin_layout Standard
24202 This box text is bottom-aligned.
24208 This is an example text line.
24211 \begin_layout Description
24212 stretch This is an example text line.
24214 \begin_inset Box Boxed
24223 height_special "totalheight"
24226 \begin_layout Standard
24231 \begin_layout Standard
24236 \begin_layout Standard
24244 This is an example text line.
24247 \begin_layout Standard
24248 To stretch the box content, it must consist of more than one paragraph.
24249 In the example above every text line is in an own paragraph.
24252 \begin_layout Standard
24253 \begin_inset VSpace bigskip
24256 To align the box content horizontally you can use LyX's paragraph dialog
24257 when you have chosen an
24265 \begin_layout Standard
24267 \begin_inset Box Boxed
24276 height_special "totalheight"
24279 \begin_layout Standard
24284 \begin_layout Standard
24289 \begin_layout Standard
24299 \begin_layout Standard
24300 If you haven't set an
24305 , you can align the box content horizontally in the box dialog.
24308 \begin_layout Standard
24310 \begin_inset Box Boxed
24319 height_special "totalheight"
24322 \begin_layout Standard
24324 This box text is horizontally stretched.
24332 \begin_layout Section
24334 \begin_inset LatexCommand label
24335 name "sec:Framed-Boxes"
24340 \begin_inset LatexCommand index
24341 name "Boxes ! Frames"
24348 \begin_layout Standard
24349 The frame style of the box can be specified in the box-dialog in the drop-down
24355 The following frame types are possible:
24358 \begin_layout Description
24359 Rectangular\InsetSpace ~
24360 box This draws a rectangle frame around the box.
24361 The frame line thickness has the size of
24369 \begin_inset Box Boxed
24378 height_special "totalheight"
24381 \begin_layout Standard
24391 \begin_layout Description
24394 thin This draws an oval frame around the box.
24395 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
24398 \begin_inset Box ovalbox
24407 height_special "totalheight"
24410 \begin_layout Standard
24420 \begin_layout Description
24423 thick This draws an oval frame around the box.
24424 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
24427 \begin_inset Box Ovalbox
24436 height_special "totalheight"
24439 \begin_layout Standard
24449 \begin_layout Description
24450 Shadow\InsetSpace ~
24451 box This draws a rectangle frame with a shadow around the box.
24452 The frame line thickness has the size of
24458 , the shadow has a width of 4\InsetSpace \thinspace{}
24461 \begin_inset Box Shadowbox
24470 height_special "totalheight"
24473 \begin_layout Standard
24483 \begin_layout Description
24484 Double\InsetSpace ~
24485 box This draws a double-line rectangle frame around the box.
24486 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
24493 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
24501 The distance between the lines is 1.5\InsetSpace \thinspace{}
24508 \InsetSpace \thinspace{}
24509 +\InsetSpace \thinspace{}
24510 0.5\InsetSpace \thinspace{}
24513 \begin_inset Box Doublebox
24522 height_special "totalheight"
24525 \begin_layout Standard
24535 \begin_layout Standard
24536 \begin_inset VSpace bigskip
24539 LyX's box label will change to the used frame style when you set a frame.
24540 To be able to use the different frame styles, the LaTeX-package
24545 \begin_inset LatexCommand index
24546 name "LaTeX-packages ! fancybox"
24553 \begin_layout Standard
24554 \begin_inset VSpace bigskip
24557 The default value for the size
24563 is 0.4\InsetSpace \thinspace{}
24565 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
24567 2\InsetSpace \thinspace{}
24571 \begin_layout Standard
24581 \begin_layout Standard
24585 \begin_layout Standard
24597 \begin_inset Box Boxed
24606 height_special "totalheight"
24609 \begin_layout Standard
24611 Rectangular box with
24617 \InsetSpace \thinspace{}
24618 =\InsetSpace \thinspace{}
24619 2\InsetSpace \thinspace{}
24629 \begin_layout Standard
24643 \begin_layout Standard
24644 \begin_inset VSpace bigskip
24647 The space between the frame and the box content is for all frame styles
24648 by default 3\InsetSpace \thinspace{}
24650 You can change it by setting the length
24657 For example the command
24660 \begin_layout Standard
24670 \begin_layout Standard
24671 sets the value to 10\InsetSpace \thinspace{}
24672 pt, like for the following box:
24675 \begin_layout Standard
24679 \begin_layout Standard
24691 \begin_inset Box Boxed
24700 height_special "totalheight"
24703 \begin_layout Standard
24705 Rectangular box with
24711 \InsetSpace \thinspace{}
24712 =\InsetSpace \thinspace{}
24713 10\InsetSpace \thinspace{}
24723 \begin_layout Standard
24737 \begin_layout Standard
24738 \begin_inset VSpace bigskip
24741 The diameter of the round corners of the oval boxes can be set with the
24752 \begin_layout Standard
24760 \begin_layout Standard
24761 sets the diameter to 1\InsetSpace \thinspace{}
24766 \begin_layout Standard
24774 \begin_layout Standard
24775 sets the diameter to
24777 num\InsetSpace \thinspace{}
24778 ×\InsetSpace \thinspace{}
24779 minimum(width and heigth of box)
24791 \begin_layout Standard
24795 \begin_layout Standard
24805 \begin_inset Box Ovalbox
24814 height_special "totalheight"
24817 \begin_layout Standard
24825 \InsetSpace \thinspace{}
24826 =\InsetSpace \thinspace{}
24827 1.5\InsetSpace \thinspace{}
24837 \begin_layout Standard
24849 \begin_layout Standard
24850 \begin_inset VSpace bigskip
24853 The size of the shadow can be adjusted by changing the length
24860 It it set to 2\InsetSpace \thinspace{}
24861 pt for the following box by this command:
24864 \begin_layout Standard
24874 \begin_layout Standard
24878 \begin_layout Standard
24890 \begin_inset Box Shadowbox
24899 height_special "totalheight"
24902 \begin_layout Standard
24910 \InsetSpace \thinspace{}
24911 =\InsetSpace \thinspace{}
24912 2\InsetSpace \thinspace{}
24922 \begin_layout Standard
24936 \begin_layout Standard
24937 \begin_inset VSpace bigskip
24940 Changed lengths and widths are valid for all boxes following the commands
24944 \begin_layout Section
24946 \begin_inset LatexCommand label
24947 name "sec:Minipages"
24952 \begin_inset LatexCommand index
24953 name "Boxes ! Minipages"
24960 \begin_layout Standard
24961 Minipages are treated by LaTeX as pages within pages and can therefore for
24962 example have their own footnotes.
24965 \begin_layout Standard
24966 Minipages are useful when you write documents with different languages.
24969 \begin_layout Standard
24970 Below are two example minipages side by side.
24971 Their width is set to 45\InsetSpace \thinspace{}
24972 col% and they are separated by a horizontal fill,
24973 that was inserted via the menu
24975 Insert\SpecialChar \menuseparator
24976 Special\InsetSpace ~
24977 Formatting\SpecialChar \menuseparator
24978 Horizontal\InsetSpace ~
24984 \begin_layout Standard
24985 \begin_inset Box Frameless
24994 height_special "totalheight"
24997 \begin_layout Standard
25000 Dies ist ein deutscher Text.
25001 Dies ist ein deutscher Text.
25002 Dies ist ein deutscher Text.
25003 Dies ist ein deutscher Text.
25004 Dies ist ein deutscher Text.
25005 Dies ist ein deutscher Text.
25006 Dies ist ein deutscher Text.
25007 Dies ist ein deutscher Text.
25008 Dies ist ein deutscher Text.
25009 Dies ist ein deutscher Text.
25010 Dies ist ein deutscher Text.
25011 Dies ist ein deutscher Text.
25012 Dies ist ein deutscher Text
25016 \begin_layout Standard
25019 Dies ist eine deutsche Fußnote.
25025 Dies ist ein deutscher Text.
25026 Dies ist ein deutscher Text.
25034 \begin_inset Box Frameless
25043 height_special "totalheight"
25046 \begin_layout Standard
25047 This is an English Text.
25048 This is an English Text.
25049 This is an English Text.
25050 This is an English Text.
25051 This is an English Text.
25052 This is an English Text.
25053 This is an English Text.
25054 This is an English Text.
25055 This is an English Text.
25056 This is an English Text.
25057 This is an English Text.
25058 This is an English Text.
25059 This is an English Text.
25060 This is an English Text.
25061 This is an English Text.
25062 This is an English Text.
25066 \begin_layout Standard
25067 This is an English footnote.
25072 This is an English Text.
25081 \begin_layout Standard
25082 \begin_inset VSpace bigskip
25085 Another application for minipages are footnotes within tables.
25086 Due to a LaTeX restriction footnotes within tables doesn't appear at the
25087 bottom of the current page.
25088 But when you put the table with the footnote to a minipage, the footnote
25089 will appear at its bottom, numbered with Latin letters.
25090 The footnote number is reset to 1 in every minipage but not outside the
25094 \begin_layout Standard
25095 The footnote of this table doesn't appear:
25096 \begin_inset Tabular
25097 <lyxtabular version="3" rows="3" columns="4">
25099 <column alignment="center" valignment="top" leftline="true" width="0pt">
25100 <column alignment="center" valignment="top" leftline="true" width="0pt">
25101 <column alignment="center" valignment="top" leftline="true" width="0pt">
25102 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25103 <row topline="true">
25104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25107 \begin_layout Standard
25113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25116 \begin_layout Standard
25122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25125 \begin_layout Standard
25130 \begin_layout Standard
25131 This is a footnote within a table.
25141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25144 \begin_layout Standard
25151 <row topline="true">
25152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25155 \begin_layout Standard
25161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25164 \begin_layout Standard
25170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25173 \begin_layout Standard
25179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25182 \begin_layout Standard
25189 <row topline="true" bottomline="true">
25190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25193 \begin_layout Standard
25199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25202 \begin_layout Standard
25208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25211 \begin_layout Standard
25217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25220 \begin_layout Standard
25234 \begin_layout Standard
25236 \begin_inset Box Frameless
25245 height_special "totalheight"
25248 \begin_layout Standard
25250 \begin_inset Tabular
25251 <lyxtabular version="3" rows="3" columns="4">
25253 <column alignment="center" valignment="top" leftline="true" width="0pt">
25254 <column alignment="center" valignment="top" leftline="true" width="0pt">
25255 <column alignment="center" valignment="top" leftline="true" width="0pt">
25256 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
25257 <row topline="true">
25258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25261 \begin_layout Standard
25267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25270 \begin_layout Standard
25276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25279 \begin_layout Standard
25284 \begin_layout Standard
25285 This is a footnote within a table.
25295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25298 \begin_layout Standard
25305 <row topline="true">
25306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25309 \begin_layout Standard
25315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25318 \begin_layout Standard
25324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25327 \begin_layout Standard
25333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25336 \begin_layout Standard
25343 <row topline="true" bottomline="true">
25344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25347 \begin_layout Standard
25353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25356 \begin_layout Standard
25362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25365 \begin_layout Standard
25371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25374 \begin_layout Standard
25393 \begin_layout Standard
25394 \begin_inset VSpace bigskip
25397 The document-wide paragraph settings are ignored within minipages.
25398 That means that there will be no space between paragraphs in minipages
25399 although you set it to e.\InsetSpace \thinspace{}
25405 in the document settings.
25408 \begin_layout Standard
25409 Minipages can also be used to set a background color for text parts, see
25410 section\InsetSpace ~
25412 \begin_inset LatexCommand ref
25413 reference "sub:Color-for-Paragraphs"
25420 \begin_layout Standard
25421 \begin_inset Note Greyedout
25424 \begin_layout Standard
25429 You cannot have floats or margin notes inside minipages but minipages can
25430 be used inside tables, floats, and other boxes.
25438 \begin_layout Section
25440 \begin_inset LatexCommand label
25441 name "sec:Parboxes"
25446 \begin_inset LatexCommand index
25447 name "Boxes ! Parboxes"
25454 \begin_layout Standard
25455 Parboxes are very similar to minipages with the difference that they cannot
25457 The main difference to minipages is that minipages are in contrary to parboxes
25458 no real boxes but LaTeX-environments.
25461 \begin_layout Standard
25463 \begin_inset Box Frameless
25472 height_special "totalheight"
25475 \begin_layout Standard
25476 This a text within a parbox.
25477 This a text within a parbox.
25480 \begin_layout Standard
25481 This footnote won't appear:
25485 \begin_layout Standard
25486 This footnote is inside a parbox and will therefore not appear.
25499 \begin_layout Section
25500 Boxes for Words and Characters
25501 \begin_inset LatexCommand index
25502 name "Boxes ! for Characters"
25509 \begin_layout Subsection
25510 Prevent Hyphenation
25511 \begin_inset LatexCommand label
25512 name "sec:Prevent-Hyphenation"
25517 \begin_inset LatexCommand index
25518 name "Boxes ! to Prevent Hyphenation"
25525 \begin_layout Standard
25526 You can use a special kind of boxes to prevent words or text to be hyphenated.
25529 e is an example text:
25532 \begin_layout Standard
25533 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25539 \begin_layout Standard
25540 To prevent the hyphenation of the word
25541 \begin_inset Quotes eld
25545 \begin_inset Quotes erd
25551 \begin_layout Standard
25559 \begin_layout Standard
25560 in ERT before the word.
25561 Behind the word insert a closing brace
25562 \begin_inset Quotes eld
25570 \begin_inset Quotes erd
25577 \begin_layout Standard
25589 \begin_layout Standard
25590 This is the result:
25593 \begin_layout Standard
25594 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25600 \begin_layout Standard
25613 \begin_layout Standard
25623 \begin_layout Standard
25624 Of course the word now protrudes over the side margin.
25625 To avoid this, add via the menu
25627 Insert\SpecialChar \menuseparator
25628 Special\InsetSpace ~
25629 Formatting\SpecialChar \menuseparator
25637 ) a line break before the word:
25640 \begin_layout Standard
25641 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
25649 \begin_layout Standard
25662 \begin_layout Standard
25672 \begin_layout Subsection
25674 \begin_inset LatexCommand label
25675 name "sub:Vertical-Alignment"
25680 \begin_inset LatexCommand index
25681 name "Boxes ! for Vertical Alignment"
25686 \begin_inset LatexCommand index
25687 name "Boxes ! Raiseboxes"
25694 \begin_layout Standard
25695 With the help of the command
25701 you can align words, characters or other boxes vertically to the surrounding
25709 is used with the following scheme:
25712 \begin_layout Standard
25717 raisebox{lift}[height][depth]{box content}
25720 \begin_layout Standard
25721 The lift can be a positive value to raise the box or a negative value to
25725 \begin_layout Standard
25726 To align for example the word
25727 \begin_inset Quotes eld
25731 \begin_inset Quotes erd
25734 so that the bottom of the
25735 \begin_inset Quotes eld
25739 \begin_inset Quotes erd
25743 \begin_inset Quotes eld
25747 \begin_inset Quotes erd
25750 is at the baseline, insert the command
25753 \begin_layout Standard
25763 \begin_layout Standard
25764 in ERT before the word.
25765 Behind the word insert a closing brace
25766 \begin_inset Quotes eld
25774 \begin_inset Quotes erd
25779 This is the result:
25782 \begin_layout Standard
25783 This is a text line with the word
25787 \begin_layout Standard
25799 \begin_inset Quotes eld
25803 \begin_inset Quotes erd
25810 \begin_layout Standard
25820 \begin_layout Standard
25821 \begin_inset VSpace bigskip
25824 When you raise or lower characters in a line, the line distance will be
25828 \begin_layout Standard
25829 This is a text line with the word
25833 \begin_layout Standard
25845 \begin_inset Quotes eld
25849 \begin_inset Quotes erd
25856 \begin_layout Standard
25865 This is a text line with the word
25869 \begin_layout Standard
25879 \begin_inset Quotes eld
25883 \begin_inset Quotes erd
25890 \begin_layout Standard
25900 \begin_layout Standard
25901 If you want to prevent this for a certain reason, set the box height to
25906 \begin_layout Standard
25916 \begin_layout Standard
25917 This is a text line with the word
25921 \begin_layout Standard
25933 \begin_inset Quotes eld
25937 \begin_inset Quotes erd
25944 \begin_layout Standard
25953 This is a text line with the word
25957 \begin_layout Standard
25961 raisebox{0.5cm}[0pt]{
25967 \begin_inset Quotes eld
25971 \begin_inset Quotes erd
25978 \begin_layout Standard
25988 \begin_layout Section
25990 \begin_inset LatexCommand label
25991 name "sec:Colored-Boxes"
25996 \begin_inset LatexCommand index
25997 name "Boxes ! Color"
26004 \begin_layout Subsection
26006 \begin_inset LatexCommand index
26007 name "Color ! for Text"
26014 \begin_layout Standard
26015 To color the background of text the text must be put into a so called colorbox.
26016 This requires that the LaTeX-package
26021 \begin_inset LatexCommand index
26022 name "LaTeX-packages ! color"
26026 is loaded in the document preamble with the command
26029 \begin_layout Standard
26034 @ifundef\SpecialChar \textcompwordmark{}
26041 \begin_layout Standard
26052 usepackage{color}}{}
26055 \begin_layout Standard
26060 will be loaded automatically by LyX when you color text
26064 \begin_layout Standard
26065 To avoid that it is loaded twice the command
26069 @ifundef\SpecialChar \textcompwordmark{}
26080 \begin_layout Standard
26081 \begin_inset VSpace medskip
26084 Colorboxes are created with the command
26091 This will be used with the following scheme:
26094 \begin_layout Standard
26099 colorbox{color}{box content}
26102 \begin_layout Standard
26103 The box content can also be a box and colorboxes can also be within other
26107 \begin_layout Standard
26108 The following colors are predefined:
26147 You can also define your own color as described in section\InsetSpace ~
26149 \begin_inset LatexCommand ref
26150 reference "sec:Colored-Tables"
26157 \begin_layout Standard
26158 To have e.\InsetSpace \thinspace{}
26160 a red background for a word, insert the command
26163 \begin_layout Standard
26171 \begin_layout Standard
26172 before the word in ERT.
26173 Behind the word insert a closing brace
26174 \begin_inset Quotes eld
26182 \begin_inset Quotes erd
26187 This is the result:
26190 \begin_layout Standard
26191 This is a line where the word
26195 \begin_layout Standard
26205 \begin_inset Quotes eld
26209 \begin_inset Quotes erd
26216 \begin_layout Standard
26223 has a red background.
26226 \begin_layout Standard
26227 \begin_inset VSpace bigskip
26230 If you would have the box frame in a different color, you can use the command
26237 with the following scheme:
26240 \begin_layout Standard
26245 fcolorbox{frame color}{box color}{box content}
26248 \begin_layout Standard
26262 The frame thickness and the space between the frame and the box content
26263 can be adjusted with the lengths
26275 , respectively, as described in section\InsetSpace ~
26277 \begin_inset LatexCommand ref
26278 reference "sec:Framed-Boxes"
26285 \begin_layout Standard
26286 For the following example the command
26289 \begin_layout Standard
26294 fcolorbox{cyan}{magenta}{
26297 \begin_layout Standard
26301 \begin_layout Standard
26302 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
26309 \begin_layout Standard
26324 \begin_layout Standard
26328 fcolorbox{cyan}{magenta}{
26333 This is text within a colored, framed box.
26337 \begin_layout Standard
26347 \begin_layout Standard
26348 \begin_inset VSpace bigskip
26351 Of course you can also have colored text inside a colorbox:
26357 \begin_layout Standard
26361 fcolorbox{cyan}{magenta}{
26368 This is colored text within a colored, framed box.
26374 \begin_layout Standard
26385 \begin_layout Standard
26399 \begin_layout Standard
26402 \begin_inset VSpace medskip
26408 \begin_layout Standard
26409 \begin_inset Note Greyedout
26412 \begin_layout Standard
26417 Text in colorboxes cannot have line breaks.
26418 To color multiple text lines or paragraphs, use a box inside a colorbox
26419 as described in the following.
26427 \begin_layout Subsection
26428 Color for Paragraphs
26429 \begin_inset LatexCommand label
26430 name "sub:Color-for-Paragraphs"
26435 \begin_inset LatexCommand index
26436 name "Color ! for Paragraphs"
26443 \begin_layout Standard
26444 To set the background color for more than one text line, put the text into
26446 Before the minipage insert the
26455 \begin_layout Standard
26463 \begin_layout Standard
26465 Behind the minipage insert a closing brace
26466 \begin_inset Quotes eld
26474 \begin_inset Quotes erd
26480 \begin_layout Standard
26484 \begin_layout Standard
26488 colorbox{lightgrey}{
26494 \begin_inset Box Frameless
26503 height_special "totalheight"
26506 \begin_layout Standard
26507 This is text with background color.
26508 This is text with background color.
26511 \begin_layout Standard
26512 \begin_inset VSpace defskip
26515 The text can have footnotes
26519 \begin_layout Standard
26520 Another example footnote
26525 and can include tables and figures.
26528 \begin_layout Standard
26530 \begin_inset Tabular
26531 <lyxtabular version="3" rows="3" columns="3">
26533 <column alignment="center" valignment="top" leftline="true" width="0">
26534 <column alignment="center" valignment="top" leftline="true" width="0">
26535 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26536 <row topline="true">
26537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26540 \begin_layout Standard
26546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26549 \begin_layout Standard
26555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26558 \begin_layout Standard
26565 <row topline="true">
26566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26569 \begin_layout Standard
26575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26578 \begin_layout Standard
26580 \begin_inset Quotes erd
26588 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26591 \begin_layout Standard
26598 <row topline="true" bottomline="true">
26599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26602 \begin_layout Standard
26608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26611 \begin_layout Standard
26617 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26620 \begin_layout Standard
26640 \begin_layout Standard
26650 \begin_layout Section
26651 URLs (Uniform Resource Locators)
26652 \begin_inset LatexCommand index
26660 \begin_layout Standard
26661 Links to web pages or email addresses can be inserted via the menu
26663 Insert\SpecialChar \menuseparator
26667 The appearing URL dialog has two fields; the
26675 field for the URL description, which will be typeset as plain text immediately
26679 \begin_layout Standard
26680 Here is an example URL:
26681 \begin_inset LatexCommand url
26682 name "LyX's homepage"
26683 target "http://www.lyx.org"
26690 \begin_layout Standard
26693 Generate\InsetSpace ~
26696 in the URL dialog has only an affect when you export your document to the
26698 \begin_inset Quotes eld
26706 \begin_inset Quotes erd
26712 \begin_layout Standard
26713 You cannot change the style of the link text.
26718 field will have the default text style of the document while the text of
26723 field will have the style
26724 \begin_inset Quotes eld
26732 \begin_inset Quotes erd
26738 \begin_layout Standard
26739 When you use the LaTeX-package
26744 \begin_inset LatexCommand index
26745 name "LaTeX-packages ! hyperref"
26749 to link cross-references in the output, URLs will automatically become
26750 clickable hyperlinks in DVI and PDF-output.
26753 \begin_layout Standard
26754 \begin_inset Note Greyedout
26757 \begin_layout Standard
26762 When you use the following characters: "%", "#", "^", you have to write
26763 them with a preceding backslash, e.\InsetSpace \thinspace{}
26766 \begin_inset Quotes eld
26772 \begin_inset Quotes erd
26776 URLs must not end with a backslash.
26784 \begin_layout Standard
26785 \begin_inset VSpace bigskip
26788 To create real hyperlinks without the force to write the link location to
26789 the text, you can use the command
26792 \begin_layout Standard
26797 href{link location}{link text}
26800 \begin_layout Standard
26802 To get for example a link to LyX's web page, write the command
26805 \begin_layout Standard
26810 href{http://www.lyx.org}{
26813 \begin_layout Standard
26815 Insert after the command the link text
26816 \begin_inset Quotes eld
26820 \begin_inset Quotes erd
26823 as normal text followed by a closing brace
26824 \begin_inset Quotes eld
26832 \begin_inset Quotes erd
26836 This is the result:
26840 \begin_layout Standard
26844 href{http://www.lyx.org}{
26853 \begin_layout Standard
26863 \begin_layout Standard
26864 To link to email addresses, add the prefix
26865 \begin_inset Quotes eld
26873 \begin_inset Quotes erd
26876 to the link location:
26882 \begin_layout Standard
26886 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26891 lyx-docs mailing list
26895 \begin_layout Standard
26905 \begin_layout Standard
26912 instead of LyX's URL box has the advantage that you can specify the text
26913 style of the link text like for all other text parts.
26914 You can therefore set hyphenation points and forced linebreaks to have
26915 long link text broken at the page margin.
26916 You are furthermore able to change the text style for all URLs in your
26917 document with an option in
26921 's load command and the restrictions mentioned above doesn't apply for
26930 \begin_layout Chapter
26932 \begin_inset LatexCommand index
26933 name "External Stuff"
26940 \begin_layout Standard
26943 Insert\SpecialChar \menuseparator
26946 you can insert external material to your document.
26950 \begin_layout Description
26952 Document Another LyX document; its content is directly inserted to your
26956 \begin_layout Description
26958 Text A text document; every of its text lines is inserted to your document
26962 \begin_layout Description
26966 Lines A text document; its text lines are inserted as they
26968 Empty text lines creates a new paragraph in your document.
26971 \begin_layout Description
26972 External\InsetSpace ~
26973 Material Files in various formats.
26976 \begin_layout Description
26978 Document LyX or LaTeX-documents.
26981 \begin_layout Section
26983 \begin_inset LatexCommand index
26984 name "External Stuff ! External Material"
26991 \begin_layout Standard
26992 The external material feature allows you to insert files to your document
26993 without converting them previously to a format that can be read by the
26994 document output format because LyX takes care of needed conversions.
26995 This is similar to images that can be inserted in various image formats
26999 \begin_layout Standard
27000 External material can be inserted via the
27004 dialog that is accessible with the menu
27006 Insert\SpecialChar \menuseparator
27007 File\SpecialChar \menuseparator
27008 External\InsetSpace ~
27012 Currently the following file types (
27019 \begin_layout Description
27020 ChessDiagram This template supports chess position diagrams made with the
27025 \begin_layout Standard
27029 href{http://en.wikipedia.org/wiki/XBoard}{
27042 \begin_layout Standard
27052 \begin_layout Description
27053 Date This inserts the date in the form
27058 This is a date inserted as external material:
27059 \begin_inset External
27067 The date is not shown within LyX, only in the output.
27068 There are two other methods of inserting a date, via menu
27070 Insert\SpecialChar \menuseparator
27073 and with the LaTeX command
27080 The different methods are compared in Table\InsetSpace ~
27082 \begin_inset LatexCommand ref
27083 reference "tab:Comparison-of-the"
27090 \begin_layout Description
27091 LilyPond This template is used for music notation typeset with the program
27095 \begin_layout Standard
27108 \begin_layout Standard
27112 href{http://en.wikipedia.org/wiki/LilyPond}{
27125 \begin_layout Standard
27133 \begin_inset Note Note
27136 \begin_layout Standard
27143 breaks the line while the remaining text in the line is stretched to the
27152 \begin_layout Description
27153 RasterImage This can be used for bitmap images.
27154 Nearly all popular image formats are supported.
27155 The image can be treated in the
27159 dialog like the images that are usually included via the
27163 dialog as described in section\InsetSpace ~
27165 \begin_inset LatexCommand ref
27166 reference "sec:Graphics-Dialog"
27171 The difference is that only raster images are allowed, that means that
27172 PDF and EPS-images are not supported.
27175 \begin_layout Description
27176 XFig This template supports images created with the program
27180 \begin_layout Standard
27184 href{http://en.wikipedia.org/wiki/Xfig}{
27197 \begin_layout Standard
27207 \begin_layout Standard
27208 \begin_inset Float table
27214 \begin_layout Standard
27215 \begin_inset Caption
27217 \begin_layout Standard
27218 \begin_inset LatexCommand label
27219 name "tab:Comparison-of-the"
27223 Comparison of the date input methods.
27231 \begin_layout Standard
27233 \begin_inset Tabular
27234 <lyxtabular version="3" rows="4" columns="4">
27236 <column alignment="center" valignment="top" leftline="true" width="0">
27237 <column alignment="center" valignment="top" leftline="true" width="0">
27238 <column alignment="center" valignment="top" leftline="true" width="0">
27239 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
27240 <row topline="true">
27241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27244 \begin_layout Standard
27250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27253 \begin_layout Standard
27256 External Material\SpecialChar \menuseparator
27262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27265 \begin_layout Standard
27268 Insert\SpecialChar \menuseparator
27274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27277 \begin_layout Standard
27288 <row topline="true">
27289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27292 \begin_layout Standard
27298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27301 \begin_layout Standard
27307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27310 \begin_layout Standard
27316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27319 \begin_layout Standard
27326 <row topline="true">
27327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27330 \begin_layout Standard
27336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27339 \begin_layout Standard
27345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27348 \begin_layout Standard
27354 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27357 \begin_layout Standard
27364 <row topline="true" bottomline="true">
27365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27368 \begin_layout Standard
27374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27377 \begin_layout Standard
27383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27386 \begin_layout Standard
27392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27395 \begin_layout Standard
27414 \begin_layout Standard
27415 When you use the option
27427 dialog, only the path to the inserted file is shown in the output.
27430 material is displayed in LyX either as box like this:
27431 \begin_inset Graphics
27432 filename clipart/ExternalMaterialQt4.png
27437 or as image, depending on the setting in the
27449 \begin_layout Standard
27456 manual explains how you can define your own templates.
27459 \begin_layout Section
27461 \begin_inset LatexCommand label
27462 name "sec:Child-Documents"
27467 \begin_inset LatexCommand index
27468 name "External Stuff ! Child Documents"
27473 \begin_inset LatexCommand index
27474 name "Files ! Include"
27481 \begin_layout Standard
27482 Child documents are used when you have a long document consisting of several
27483 larger parts or sections.
27484 For maintenance it is often useful and sometimes even required to split
27485 the document in several files that can be revised separately.
27486 The different documents are then the so called child documents and a master
27487 document connects them to print the full document or parts of it.
27490 \begin_layout Standard
27491 Included documents are displayed in LyX as a box like this:
27492 \begin_inset Graphics
27493 filename clipart/ChildDocumentQt4.png
27498 To include child documents to a master document use the menu
27500 Insert\SpecialChar \menuseparator
27501 File\SpecialChar \menuseparator
27506 A dialog pops up where you can choose between four include methods:
27509 \begin_layout Description
27510 Include You can include LyX and LaTeX-documents.
27519 dialog, the included documents will be opened in LyX in a new file tab
27520 so that you can modify it.
27525 \begin_layout Standard
27526 Here is a child document inserted using
27531 \begin_inset Include \include{DummyDocument1.lyx}
27539 \begin_layout Standard
27540 The section numbering includes the sections of the included files in the
27541 order they are inserted in the master document.
27542 The included example document has for example a subsection that is numbered
27543 as subsection of this section.
27544 Labels of included documents can be referenced: Subsection\InsetSpace ~
27546 \begin_inset LatexCommand ref
27547 reference "sub:External-Subsection-1"
27554 \begin_layout Standard
27555 The preamble of the child document is ignored, only the preamble of the
27556 master document is used.
27557 Included documents are inserted starting on a new page and end with a pagebreak.
27560 \begin_layout Standard
27561 With the LaTeX-command
27567 you can specify which included child documents are processed when the output
27569 This is useful when you are perhaps only working on a certain chapter of
27570 your large document as this saves compiling time.
27577 is inserted to the master document preamble.
27578 It takes a comma-separated list of the filenames as argument, e.g.
27581 \begin_layout Standard
27586 includeonly{chapter1,chapter5}
27589 \begin_layout Standard
27590 will only process the included files named
27591 \begin_inset Quotes eld
27595 \begin_inset Quotes erd
27599 \begin_inset Quotes eld
27603 \begin_inset Quotes erd
27607 \begin_inset Quotes eld
27611 \begin_inset Quotes erd
27617 \begin_layout Standard
27618 \begin_inset Note Greyedout
27621 \begin_layout Standard
27626 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
27627 w the document in case that the child document uses another document class
27628 than the master document as this will lead to unexpected outputs.
27636 \begin_layout Description
27637 Input This method is very similar to the Include method.
27638 The differences are:
27642 \begin_layout Itemize
27643 Input files don't start with a new page and don't end with a pagebreak.
27646 \begin_layout Itemize
27647 Input files can be previewed in LyX when
27649 Instant\InsetSpace ~
27652 is enabled in LyX's preferences under
27656 feel\SpecialChar \menuseparator
27662 \begin_layout Itemize
27673 \begin_layout Standard
27674 Here is a child document inserted using
27679 \begin_inset Include \input{DummyDocument2.lyx}
27687 \begin_layout Description
27688 Verbatim With this method every text file can be included.
27689 The file is shown in the output with its source code, no command used in
27690 the text is invoked.
27691 You can use the option
27693 Mark spaces in output
27695 that displays the character
27696 \begin_inset Quotes eld
27703 \begin_layout Standard
27713 \begin_inset Quotes erd
27716 for every space character in the source code.
27717 The difference to the method via the menu
27719 Insert\SpecialChar \menuseparator
27720 File\SpecialChar \menuseparator
27724 is that the document content is not shown in LyX.
27727 \begin_layout Standard
27728 Here is a child document inserted as Verbatim:
27729 \begin_inset Include \verbatiminput{DummyTextDocument.txt}
27735 \begin_inset VSpace bigskip
27738 Here is a child document inserted as Verbatim using the
27740 Mark spaces in output
27743 \begin_inset Include \verbatiminput*{DummyTextDocument.txt}
27751 \begin_layout Standard
27752 \begin_inset VSpace bigskip
27758 \begin_layout Standard
27759 \begin_inset Note Greyedout
27762 \begin_layout Standard
27767 As you can see in the examples above, the text of the documents included
27768 as verbatim is not broken at the end of the document lines.
27776 \begin_layout Description
27777 Listings This type is described in chapter\InsetSpace ~
27779 \begin_inset LatexCommand ref
27780 reference "cha:Program-Code-Listings"
27787 \begin_layout Standard
27788 \begin_inset Note Greyedout
27791 \begin_layout Standard
27796 Including the same document twice in a document using different methods
27797 could cause LaTeX-problems.
27805 \begin_layout Chapter
27806 Program Code Listings
27807 \begin_inset LatexCommand label
27808 name "cha:Program-Code-Listings"
27813 \begin_inset LatexCommand index
27819 \begin_inset LatexCommand index
27820 name "Program Code"
27825 \begin_inset LatexCommand index
27826 name "Floats ! Listings"
27833 \begin_layout Standard
27834 To include and typeset program code you can use the
27838 inset that can be inserted via the menu
27840 Insert\SpecialChar \menuseparator
27849 \begin_inset LatexCommand index
27850 name "LaTeX-packages ! listings"
27854 provides a powerful and flexible way to insert program source code to your
27858 \begin_layout Standard
27859 When right-clicking on a listings inset a dialog pops up where you can set
27860 the listings format.
27863 \begin_layout Standard
27864 By default, a listing starts a new paragraph in the output.
27865 The placement option
27867 Inline\InsetSpace ~
27870 prints the listing inline like this:
27871 \begin_inset listings
27872 lstparams "language={C++}"
27876 \begin_layout Standard
27889 creates a listings float where you can specify the placement options
27890 \begin_inset Quotes eld
27898 \begin_inset Quotes erd
27902 \begin_inset Quotes eld
27910 \begin_inset Quotes erd
27914 \begin_inset Quotes eld
27922 \begin_inset Quotes erd
27926 \begin_inset Quotes eld
27934 \begin_inset Quotes erd
27937 corresponding to the float placement options described in section\InsetSpace ~
27939 \begin_inset LatexCommand ref
27940 reference "sec:Float-Placement"
27945 The placement options can be mixed and are inserted without any separation,
27946 e.\InsetSpace \thinspace{}
27949 \begin_inset Quotes eld
27957 \begin_inset Quotes erd
27962 \begin_inset Quotes eld
27966 \begin_inset Quotes erd
27969 has sometimes no effect, but you don't need to use the
27973 option in this case as also non-float listings can have captions and be
27977 \begin_layout Standard
27978 You can add captions to listings with the menu
27980 Insert\SpecialChar \menuseparator
27984 Listings can be referenced like floats: Listing\InsetSpace ~
27986 \begin_inset LatexCommand ref
27987 reference "lst:Example-Listing"
27994 \begin_layout Standard
27995 \begin_inset listings
27996 lstparams "language=Python"
28000 \begin_layout Standard
28002 \begin_inset Caption
28004 \begin_layout Standard
28005 \begin_inset LatexCommand label
28006 name "lst:Example-Listing"
28010 Example Listing float
28015 # Example listing float
28018 \begin_layout Standard
28023 \begin_layout Standard
28025 'this is a python function'
28028 \begin_layout Standard
28038 \begin_layout Standard
28039 When you have set a programming language in the listings dialog, the keywords
28040 of this language will be recognized and specially typeset in the output.
28041 In the example listings the Python keyword
28042 \begin_inset Quotes eld
28046 \begin_inset Quotes erd
28049 is recognized and printed bold in the output.
28052 \begin_layout Standard
28058 of the listings dialog you can specify the line numbering style.
28059 You can insert a number to specify which lines are numbered to the field
28065 When you insert e.g.
28067 \begin_inset Quotes eld
28071 \begin_inset Quotes erd
28074 , only every 3rd line will be numbered.
28077 \begin_layout Standard
28078 You can furthermore specify a range of lines, only these will then appear
28082 Extended\InsetSpace ~
28085 should be used when you use national characters like the German umlauts
28088 Here is an example listing with left line numbering, step
28090 \begin_inset Quotes eld
28094 \begin_inset Quotes erd
28098 \begin_inset Quotes eld
28102 \begin_inset Quotes erd
28106 \begin_inset Quotes eld
28109 Extended\InsetSpace ~
28111 \begin_inset Quotes erd
28115 \begin_inset Quotes eld
28121 \begin_inset Quotes erd
28124 , range lines 3\InsetSpace \thinspace{}
28125 -\InsetSpace \thinspace{}
28129 \begin_layout Standard
28130 \begin_inset listings
28131 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
28135 \begin_layout Standard
28140 \begin_layout Standard
28142 'this is a python function'
28145 \begin_layout Standard
28150 \begin_layout Standard
28155 \begin_layout Standard
28157 'This is a German word: Tschüß'
28160 \begin_layout Standard
28165 \begin_layout Standard
28170 \begin_layout Standard
28172 'this is a python function'
28175 \begin_layout Standard
28185 \begin_layout Standard
28186 \begin_inset Note Greyedout
28189 \begin_layout Standard
28194 The line numbering is shifted by a line by every previous listing.
28195 That's the reason why the lines 2 and 5 are numbered in the above listing
28196 and not the lines 3 and 6.
28204 \begin_layout Standard
28205 \begin_inset VSpace bigskip
28211 \begin_layout Standard
28212 It is also possible to print lines from a file as listing.
28213 To do this, use the menu
28215 Insert\SpecialChar \menuseparator
28216 File\SpecialChar \menuseparator
28219 and choose the type
28227 \begin_layout Standard
28228 The other child document types are described in section\InsetSpace ~
28230 \begin_inset LatexCommand ref
28231 reference "sec:Child-Documents"
28240 In the child document dialog you can specify the listing parameters in
28242 To show a list of all available parameters, type in a question mark
28243 \begin_inset Quotes eld
28247 \begin_inset Quotes erd
28253 \begin_layout Standard
28254 To reference child document listings, write a label text into the corresponding
28255 field of the child document dialog.
28256 The label can then be referenced using the menu
28258 Insert\SpecialChar \menuseparator
28264 \begin_layout Standard
28265 Listing\InsetSpace ~
28267 \begin_inset LatexCommand ref
28268 reference "lst:file-listing"
28272 is an example for a listing of a file; there the lines 10\InsetSpace \thinspace{}
28273 -\InsetSpace \thinspace{}
28278 \begin_layout Standard
28279 \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]
28287 \begin_layout Standard
28288 \begin_inset VSpace bigskip
28294 \begin_layout Standard
28295 Global listings settings can be set in the
28297 Document\SpecialChar \menuseparator
28298 Settings\SpecialChar \menuseparator
28302 To get there a list of available options, type in a question mark
28303 \begin_inset Quotes eld
28307 \begin_inset Quotes erd
28312 Listings\InsetSpace ~
28318 \begin_layout Standard
28319 For more information about the
28323 package, we refer to its documentation
28324 \begin_inset LatexCommand cite
28332 \begin_layout Standard
28338 \begin_layout Chapter
28344 \begin_layout Standard
28357 \begin_layout Standard
28365 \begin_inset LatexCommand index
28371 \begin_inset LatexCommand label
28372 name "cha:Units-available-in"
28377 \begin_inset Note Note
28380 \begin_layout Standard
28383 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
28384 are displayed wrongly in PDF-bookmarks.
28385 For more information about this, have a look at
28386 \begin_inset LatexCommand cite
28399 \begin_layout Standard
28400 To understand the units described in this documentation, Table\InsetSpace ~
28402 \begin_inset LatexCommand ref
28403 reference "tab:Units"
28407 explains all units available in LyX.
28410 \begin_layout Standard
28411 \begin_inset Float table
28417 \begin_layout Standard
28418 \begin_inset Caption
28420 \begin_layout Standard
28421 \begin_inset LatexCommand label
28434 \begin_layout Standard
28435 \begin_inset VSpace medskip
28441 \begin_layout Standard
28443 \begin_inset Tabular
28444 <lyxtabular version="3" rows="20" columns="2">
28446 <column alignment="center" valignment="top" leftline="true" width="0">
28447 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
28448 <row topline="true" bottomline="true">
28449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28452 \begin_layout Standard
28458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28461 \begin_layout Standard
28468 <row topline="true">
28469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28472 \begin_layout Standard
28478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28481 \begin_layout Standard
28488 <row topline="true">
28489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28492 \begin_layout Standard
28498 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28501 \begin_layout Standard
28508 <row topline="true">
28509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28512 \begin_layout Standard
28518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28521 \begin_layout Standard
28528 <row topline="true">
28529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28532 \begin_layout Standard
28538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28541 \begin_layout Standard
28542 point (72.27\InsetSpace \thinspace{}
28543 pt = 1\InsetSpace \thinspace{}
28550 <row topline="true">
28551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28554 \begin_layout Standard
28560 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28563 \begin_layout Standard
28564 pica (1\InsetSpace \thinspace{}
28565 pc = 12\InsetSpace \thinspace{}
28572 <row topline="true">
28573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28576 \begin_layout Standard
28582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28585 \begin_layout Standard
28586 scaled point (65536\InsetSpace \thinspace{}
28587 sp = 1\InsetSpace \thinspace{}
28594 <row topline="true">
28595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28598 \begin_layout Standard
28604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28607 \begin_layout Standard
28608 big point (72\InsetSpace \thinspace{}
28609 bp = 1\InsetSpace \thinspace{}
28616 <row topline="true">
28617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28620 \begin_layout Standard
28626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28629 \begin_layout Standard
28630 didot (72\InsetSpace \thinspace{}
28632 \begin_inset Formula $\approx$
28635 37.6\InsetSpace \thinspace{}
28642 <row topline="true">
28643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28646 \begin_layout Standard
28652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28655 \begin_layout Standard
28656 cicero (1\InsetSpace \thinspace{}
28657 cc = 12\InsetSpace \thinspace{}
28664 <row topline="true">
28665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28668 \begin_layout Standard
28674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28677 \begin_layout Standard
28678 % of original image width
28684 <row topline="true">
28685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28688 \begin_layout Standard
28694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28697 \begin_layout Standard
28704 <row topline="true">
28705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28708 \begin_layout Standard
28714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28717 \begin_layout Standard
28724 <row topline="true">
28725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28728 \begin_layout Standard
28734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28737 \begin_layout Standard
28744 <row topline="true">
28745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28748 \begin_layout Standard
28754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28757 \begin_layout Standard
28764 <row topline="true">
28765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28768 \begin_layout Standard
28774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28777 \begin_layout Standard
28784 <row topline="true">
28785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28788 \begin_layout Standard
28794 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28797 \begin_layout Standard
28804 <row topline="true">
28805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28808 \begin_layout Standard
28814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28817 \begin_layout Standard
28828 <row topline="true">
28829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28832 \begin_layout Standard
28838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28841 \begin_layout Standard
28852 <row topline="true" bottomline="true">
28853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28856 \begin_layout Standard
28862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28865 \begin_layout Standard
28866 math unit (1\InsetSpace \thinspace{}
28867 mu = 1/18\InsetSpace \thinspace{}
28886 \begin_layout Chapter
28887 Output File Formats with Graphics
28888 \begin_inset LatexCommand label
28889 name "cha:Output-File-Formats"
28896 \begin_layout Section
28898 \begin_inset LatexCommand index
28899 name "File Formats ! DVI"
28904 \begin_inset LatexCommand index
28905 name "DVI|see{File Formats}"
28912 \begin_layout Standard
28913 This file type has the extension
28914 \begin_inset Quotes eld
28922 \begin_inset Quotes erd
28927 \begin_inset Quotes eld
28931 \begin_inset Quotes erd
28934 (DVI), because it is completely portable; you can move them from one machine
28935 to another without needing to do any sort of conversion.
28936 At the time when this file-format was developed, this was no matter of
28938 DVIs are used for quick previews and as pre-stage for other output formats,
28942 \begin_layout Standard
28943 \begin_inset Note Greyedout
28946 \begin_layout Standard
28951 DVI-files doesn't contain images, they will only be a linked.
28956 So don't forget this, if you move your
28960 file to another computer.
28961 This property can also slow down your computer when you view the DVI.
28962 Because the DVI-viewer has to convert the image in the background to make
28963 it visible when you scroll in the DVI.
28964 So we recommend to use PDF for files with many images.
28967 \begin_layout Standard
28968 You can export your document to DVI by using the menu
28970 File\SpecialChar \menuseparator
28971 Export\SpecialChar \menuseparator
28975 You can view your document as DVI via the
28979 menu or by using the toolbar button
28980 \begin_inset Graphics
28981 filename ../images/buffer-view_dvi.xpm
28989 \begin_layout Section
28991 \begin_inset LatexCommand label
28992 name "sec:PostScript"
28997 \begin_inset LatexCommand index
28998 name "File Formats ! PostScript"
29003 \begin_inset LatexCommand index
29004 name "PostScript|see{File Formats}"
29011 \begin_layout Standard
29012 This file type has the extension
29013 \begin_inset Quotes eld
29021 \begin_inset Quotes erd
29025 PostScript was developed by the company
29029 as printer language.
29030 The file contains therefore commands that the printer uses to print the
29032 PostScript can be seen as
29033 \begin_inset Quotes eld
29036 programming language
29037 \begin_inset Quotes erd
29040 ; you can calculate with it and draw diagrams and images
29044 \begin_layout Standard
29045 If you are interested to learn more about this, have a look at the LaTeX-package
29051 \begin_inset LatexCommand cite
29062 Due to this ability, the files are often bigger than PDFs.
29065 \begin_layout Standard
29066 PostScript can only contain images in the format
29067 \begin_inset Quotes eld
29070 Encapsulated PostScript
29071 \begin_inset Quotes erd
29074 (EPS, file extension
29075 \begin_inset Quotes eld
29083 \begin_inset Quotes erd
29087 As LyX allows you to use any known image format in your document, it has
29088 to convert images in the background to EPS.
29089 If you have e.g 50 images in your document, LyX has to do 50 conversions
29090 whenever you view or export your document.
29091 This will slow down your work flow with LyX drastically.
29092 So if you plan to use PostScript, you can insert your images directly as
29093 EPS to avoid this problem.
29096 \begin_layout Standard
29097 You can export your document to PostScript using the menu
29099 File\SpecialChar \menuseparator
29100 Export\SpecialChar \menuseparator
29104 You can view your document as PostScript via the
29108 menu or by using the toolbar button
29109 \begin_inset Graphics
29110 filename ../images/buffer-view_ps.xpm
29118 \begin_layout Section
29120 \begin_inset LatexCommand label
29126 \begin_inset LatexCommand index
29127 name "File Formats ! PDF"
29132 \begin_inset LatexCommand index
29140 \begin_layout Standard
29141 This file type has the extension
29142 \begin_inset Quotes eld
29150 \begin_inset Quotes erd
29155 \begin_inset Quotes eld
29158 Portable Document Format
29159 \begin_inset Quotes erd
29162 (PDF) is developed by
29166 as derivative from PostScript.
29167 It is more compressed and it uses much less commands than PostScript.
29169 \begin_inset Quotes eld
29173 \begin_inset Quotes erd
29176 implies, it can be processed at any computer system and the printed output
29177 looks exactly the same.
29180 \begin_layout Standard
29181 PDF can contain images in its own PDF format, in the format
29182 \begin_inset Quotes eld
29185 Joint Photographic Experts Group
29186 \begin_inset Quotes erd
29189 (JPG, file extension
29190 \begin_inset Quotes eld
29198 \begin_inset Quotes erd
29202 \begin_inset Quotes eld
29210 \begin_inset Quotes erd
29213 ), and in the format
29214 \begin_inset Quotes eld
29217 Portable Network Graphics
29218 \begin_inset Quotes erd
29221 (PNG, file extension
29222 \begin_inset Quotes eld
29230 \begin_inset Quotes erd
29234 You can although use any other image format, because LyX converts them
29235 in the background to one of these formats.
29236 But as described in the section about PostScript, the image conversion
29237 will slow down your work flow.
29238 So it is recommended to use images in one of the three mentioned formats.
29241 \begin_layout Standard
29242 You can export your document to PDF via the menu
29244 File\SpecialChar \menuseparator
29247 in three different ways:
29250 \begin_layout Description
29251 PDF This uses the program
29255 that creates a PDF from a PostScript-version of your file.
29256 The PostScript-version is produced by the program
29260 which uses a DVI-version as intermediate step.
29261 So this export variant consist of three conversions.
29264 \begin_layout Description
29266 (dvipdfm) This uses the program
29270 that converts your file in the background to DVI and in a second step to
29274 \begin_layout Description
29276 (pdflatex) This uses the program
29280 that converts your file directly to PDF.
29283 \begin_layout Standard
29284 It is recommended to use
29293 supports all features of actual PDF-versions, is quick and works stable
29299 is not under development and therefore a bit outdated.
29302 \begin_layout Standard
29303 You can view your document as PDF via the
29307 menu or by using the toolbar button
29308 \begin_inset Graphics
29309 filename ../images/buffer-view_pdf2.xpm
29326 \begin_layout Chapter
29327 Explanation of Equation\InsetSpace ~
29329 \begin_inset LatexCommand eqref
29335 \begin_inset LatexCommand label
29336 name "cha:Explanation-of-Equation"
29343 \begin_layout Standard
29349 \begin_inset Formula $W_{\mathrm{tot\, n}}$
29352 can be calculated to
29355 \begin_layout Standard
29356 \begin_inset Formula \begin{equation}
29357 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
29364 \begin_layout Standard
29366 \begin_inset Formula $W_{g\, n}$
29369 is the given width of all cells.
29376 is the LaTeX-length between the cell text and the cell border, its default
29377 value is 6\InsetSpace \thinspace{}
29385 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
29389 \begin_layout Standard
29390 Following equation\InsetSpace ~
29392 \begin_inset LatexCommand eqref
29393 reference "eq:Wtot_n"
29397 , the total width of a multicolumn
29398 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
29404 \begin_layout Standard
29405 \begin_inset Formula \begin{equation}
29406 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
29413 \begin_layout Standard
29414 By setting equation\InsetSpace ~
29416 \begin_inset LatexCommand eqref
29417 reference "eq:Wtot_n"
29422 \begin_inset LatexCommand eqref
29423 reference "eq:Wtot_mult"
29427 equal we can calculate the needed given width
29428 \begin_inset Formula $W_{g\, n}$
29435 columns are spanned, so that each column has a total width of
29436 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
29442 \begin_layout Standard
29443 \begin_inset Formula \begin{equation}
29444 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
29451 \begin_layout Bibliography
29452 \begin_inset LatexCommand bibitem
29453 key "latexcompanion"
29457 Frank Mittelbach and Michel Goossens:
29459 The LaTeX Companion Second Edition.
29462 Addison-Wesley, 2004
29465 \begin_layout Bibliography
29466 \begin_inset LatexCommand bibitem
29471 Helmut Kopka and Patrick W.
29474 A Guide to LaTeX Fourth Edition.
29477 Addison-Wesley, 2003
29480 \begin_layout Bibliography
29481 \begin_inset LatexCommand bibitem
29488 LaTeX: A Document Preparation System.
29491 Addison-Wesley, second edition, 1994
29494 \begin_layout Bibliography
29495 \begin_inset LatexCommand bibitem
29504 \begin_layout Standard
29508 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
29518 \begin_layout Standard
29525 of the LaTeX-package
29530 \begin_inset LatexCommand index
29531 name "LaTeX-packages ! booktabs"
29538 \begin_layout Bibliography
29539 \begin_inset LatexCommand bibitem
29548 \begin_layout Standard
29552 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
29561 \begin_layout Standard
29568 of the LaTeX-package
29573 \begin_inset LatexCommand index
29574 name "LaTeX-packages ! caption"
29581 \begin_layout Bibliography
29582 \begin_inset LatexCommand bibitem
29591 \begin_layout Standard
29595 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
29605 \begin_layout Standard
29612 of the LaTeX-package
29617 \begin_layout Bibliography
29618 \begin_inset LatexCommand bibitem
29627 \begin_layout Standard
29631 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
29641 \begin_layout Standard
29648 of the LaTeX-package
29650 endf\SpecialChar \textcompwordmark{}
29654 \begin_inset LatexCommand index
29655 name "LaTeX-packages ! endfloat"
29662 \begin_layout Bibliography
29663 \begin_inset LatexCommand bibitem
29672 \begin_layout Standard
29676 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
29686 \begin_layout Standard
29693 of the LaTeX-package
29695 floatf\SpecialChar \textcompwordmark{}
29699 \begin_inset LatexCommand index
29700 name "LaTeX-packages ! floatflt"
29707 \begin_layout Bibliography
29708 \begin_inset LatexCommand bibitem
29717 \begin_layout Standard
29721 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
29731 \begin_layout Standard
29738 of the LaTeX-package
29743 \begin_inset LatexCommand index
29744 name "LaTeX-packages ! footmisc"
29751 \begin_layout Bibliography
29752 \begin_inset LatexCommand bibitem
29761 \begin_layout Standard
29765 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
29774 \begin_layout Standard
29781 of the LaTeX-package
29786 \begin_inset LatexCommand index
29787 name "LaTeX-packages ! hyperref"
29794 \begin_layout Bibliography
29795 \begin_inset LatexCommand bibitem
29804 \begin_layout Standard
29808 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
29818 \begin_layout Standard
29825 of the LaTeX-package
29830 \begin_inset LatexCommand index
29831 name "LaTeX-packages ! hyperref"
29838 \begin_layout Bibliography
29839 \begin_inset LatexCommand bibitem
29848 \begin_layout Standard
29852 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
29862 \begin_layout Standard
29869 of the LaTeX-package
29874 \begin_inset LatexCommand index
29875 name "LaTeX-packages ! koma-script"
29882 \begin_layout Bibliography
29883 \begin_inset LatexCommand bibitem
29884 key "koma-script-de"
29892 \begin_layout Standard
29896 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
29906 \begin_layout Standard
29913 of the LaTeX-package
29918 \begin_inset LatexCommand index
29919 name "LaTeX-packages ! koma-script"
29926 \begin_layout Bibliography
29927 \begin_inset LatexCommand bibitem
29936 \begin_layout Standard
29940 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf}
29950 \begin_layout Standard
29957 of the LaTeX-package
29962 \begin_inset LatexCommand index
29963 name "LaTeX-packages ! listings"
29970 \begin_layout Bibliography
29971 \begin_inset LatexCommand bibitem
29980 \begin_layout Standard
29984 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
29994 \begin_layout Standard
30001 of the LaTeX-package
30006 \begin_inset LatexCommand index
30007 name "LaTeX-packages ! marginnote"
30014 \begin_layout Bibliography
30015 \begin_inset LatexCommand bibitem
30024 \begin_layout Standard
30028 href{http://tug.org/PSTricks/main.cgi/}{
30037 \begin_layout Standard
30044 of the LaTeX-package
30049 \begin_inset LatexCommand index
30050 name "LaTeX-packages ! PSTricks"
30057 \begin_layout Bibliography
30058 \begin_inset LatexCommand bibitem
30067 \begin_layout Standard
30071 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
30080 \begin_layout Standard
30087 of the LaTeX-package
30092 \begin_inset LatexCommand index
30093 name "LaTeX-packages ! sidecap"
30100 \begin_layout Bibliography
30101 \begin_inset LatexCommand bibitem
30110 \begin_layout Standard
30114 href{http://wiki.lyx.org/LyX/NewInLyX15}{
30123 \begin_layout Standard
30130 about new LyX-features planned for the release
30137 \begin_layout Standard
30138 \begin_inset LatexCommand printindex
30145 \begin_layout Standard
30146 \begin_inset FloatList figure
30153 \begin_layout Standard
30154 \begin_inset FloatList table