1 #LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
7 % provides missing characters,
10 % provides caption formatting
11 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}
13 % provides commands to set caption
14 % beside tables/images
17 \newcommand{\TabBesBeg}{%
19 \let\MyEndtable\endtable
20 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
22 \newcommand{\TabBesEnd}{%
24 \let\endtable\MyEndtable}
26 \newcommand{\FigBesBeg}{%
28 \let\MyEndfigure\endfigure
29 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
31 \newcommand{\FigBesEnd}{%
33 \let\endfigure\MyEndfigure}
35 % use the marginnote package for margin notes
36 \usepackage{marginnote}
37 \let\marginpar\marginnote
39 % enables calculation of values,
42 % provides special table cell alignments
45 % increase the bottom float placement fraction
46 \renewcommand{\bottomfraction}{0.5}
48 % avoids that floats are placed before their
49 % corresponding section starts
50 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
52 % speed up the longtable calculation
53 \setcounter{LTchunksize}{100}
55 % define a new reference format
57 {Figure~float~\ref{#1} printed on page~\pageref{#1}}
63 % set fonts for nicer pdf view
64 \IfFileExists{lmodern.sty}
65 {\usepackage{lmodern}} % if it exists
67 \usepackage[scaled=0.92]{helvet}
70 } % end if it exists not
72 % link all cross references and URLs
74 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered, bookmarksopen, bookmarksopenlevel=1,
75 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
76 pdfpagelayout=OneColumn, pdfnewwindow=true,
77 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
78 pdfauthor={LyX Team}, pdftex,
79 pdftitle={LyX's Table Manual},
80 pdfsubject={LyX-documentation about tables},
81 pdfkeywords={LyX}]{hyperref}
83 \else % if dvi or ps is produced
85 % link all cross references and URLs in DVI output
86 \usepackage[ps2pdf, colorlinks=true,
87 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue]{hyperref}
89 \fi % end if pdflatex is used
91 % that links to image floats jumps
92 % to the beginning of the float and
94 \usepackage[figure]{hypcap}
96 % used for colored tables
97 \@ifundefined{textcolor}
98 {\usepackage{color}}{}
100 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
101 \definecolor{lightgrey}{gray}{0.8}
103 % used for tables with dashed lines
104 \usepackage{arydshln}
107 \usepackage{multirow}
108 %\renewcommand{\multirowsetup}{\centering}
110 % used for book-style tables
111 \usepackage{booktabs}
113 % used to have extra space in table cells,
114 \setlength{\extrarowheight}{2pt}
116 % used for customized tables
119 {>{\centering\hspace{0pt}}m{#1}}
122 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
125 {>{\columncolor{#1}\hspace{0pt}}c}
127 \newcolumntype{V}{!{\vrule width 1.5pt}}
129 \newcolumntype{W}{!{\color{green}\vline}}
132 % To be able to enter the characters ° , · and × directly in LyX
133 \DeclareInputText{177}{\ifmmode\pm\else\textpm\fi}
134 \DeclareInputText{176}{\ifmmode^\circ\else\textdegree\fi}
135 \DeclareInputText{183}{\ifmmode\cdot\else\textperiodcentered\fi}
136 \DeclareInputText{215}{\ifmmode\times\else\texttimes\fi}
138 % the pages of the TOC are numbered roman
139 % and a PDF-bookmark for the TOC is added
140 \pagenumbering{roman}
141 \let\myTOC\tableofcontents
142 \renewcommand{\tableofcontents}{%
143 \pdfbookmark[1]{Contents}{}
146 \pagenumbering{arabic}
148 % increase link area for cross-references
150 %\AtBeginDocument{\renewcommand{\ref}[1]
151 % {\mbox{\autoref{#1}}}}
153 %\settowidth{\abc}{\space}
154 %\renewcommand{\equationautorefname}
157 % insert additional vertical space of
158 % 1.5 mm between footnotes
160 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
162 % enable algorithm floats to be referenced
163 \newfloat{Xalgorithm}{tbp}{loa}
164 \floatname{Xalgorithm}{Algorithm}
165 \newcommand{\theHalgorithm}{\theHXalgorithm}
166 \renewenvironment{algorithm}[1][tbp]
167 {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}}
169 % number algorithm floats within chapters
170 \numberwithin{Xalgorithm}{chapter}
172 % redefine the greyed out note
173 \renewenvironment{lyxgreyedout}
174 {\textcolor{blue}\bgroup}{\egroup}
176 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage
181 \font_typewriter default
182 \font_default_family default
196 \paperorientation portrait
199 \paragraph_separation skip
201 \quotes_language english
204 \paperpagestyle default
208 \tracking_changes false
216 LyX's detailed Boxes, Figure, Floats, Notes, and Table manual
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 <uwestoehr@web.de>
279 \begin_layout Standard
280 \begin_inset LatexCommand tableofcontents
287 \begin_layout Chapter
289 \begin_inset LatexCommand label
295 \begin_inset LatexCommand index
303 \begin_layout Section
305 \begin_inset LatexCommand index
306 name "Figure ! Graphics Dialog"
313 \begin_layout Standard
314 To insert an image into your document, place the cursor at the text position
315 you want and click on the toolbar icon
316 \begin_inset Graphics
317 filename ../images/dialog-show-new-inset_graphics.xpm
324 Insert\SpecialChar \menuseparator
328 Then a dialog will appear to choose the file to load.
329 The image will appear in the output exactly at the position where it is
333 \begin_layout Standard
334 The graphics dialog can be called at any time by right-clicking on an image.
335 This dialog has three tabs:
338 \begin_layout Description
343 Here you can choose an image file and adjust its appearance in the output.
344 The available units for the image size are explained in appendix\InsetSpace ~
346 \begin_inset LatexCommand ref
347 reference "cha:Units-available-in"
353 You can rotate images counter-clockwise by setting a rotation angle and
355 The image will also be rotated inside LyX.
358 \begin_layout Description
363 Alternatively to the usage of scaling units it is possible to set image
364 coordinates to adjust the height and width of the image in the output.
365 The coordinates can also be calculated automatically by pressing the button
377 bounding\InsetSpace ~
380 will only print the image region within the given coordinates.
381 Normally you don't need to take care about image coordinates and can ignore
385 \begin_layout Description
391 In this tab you can modify the appearance of the image within LyX and set
392 the image to be a subfigure of a figure float with an own caption.
393 Subfigures are explained in section\InsetSpace ~
395 \begin_inset LatexCommand ref
396 reference "sec:Figure-Floats"
402 LaTeX experts can also specify on this tab additional LaTeX options.
410 makes the image appear in the output only as a frame with the size of the
420 option only affects zipped EPS-graphics, e.\InsetSpace \thinspace{}
427 When the option is used the images will not be unzipped on export, since
428 LaTeX can handle them as they are.
430 Zipped EPS-graphics are useful to save
431 disk space when you choose PostScript as output format, see appendix\InsetSpace ~
433 \begin_inset LatexCommand ref
434 reference "sec:PostScript"
439 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
450 zgrep %%Bounding x.eps.gz > x.eps.bb
454 The second command creates the bounding box file
455 \begin_inset Quotes eld
459 \begin_inset Quotes erd
462 that is needed by LaTeX for zipped graphics.
465 \begin_layout Standard
468 This is an example image in PDF format
472 \begin_layout Standard
473 The PDF format is explained in appendix\InsetSpace ~
475 \begin_inset LatexCommand ref
485 within a separate, horizontally centered paragraph:
488 \begin_layout Standard
490 \begin_inset Graphics
501 \begin_layout Standard
502 This is the same image like the one above but in draft mode:
505 \begin_layout Standard
507 \begin_inset Graphics
519 \begin_layout Section
521 \begin_inset LatexCommand label
522 name "sec:Figure-Floats"
527 \begin_inset LatexCommand index
528 name "Floats ! Figure Floats"
533 \begin_inset LatexCommand index
534 name "Figure ! Floats"
541 \begin_layout Standard
542 For general explanations about floats, have a look at section\InsetSpace ~
544 \begin_inset LatexCommand ref
545 reference "sec:FloatIntroduction"
552 \begin_layout Standard
554 \begin_inset Graphics
555 filename ../images/float-insert_figure.xpm
562 Insert\SpecialChar \menuseparator
563 Float\SpecialChar \menuseparator
566 inserts a float with the label
567 \begin_inset Quotes eld
576 \begin_inset Quotes erd
580 Set the cursor behind this label, press Enter and insert the image as described
581 above to get the caption printed below the image.
582 This was done for Figure\InsetSpace ~
584 \begin_inset LatexCommand ref
585 reference "fig:kill-plat"
590 If you want the caption to be above the image, set the cursor at the end
591 of the caption, press enter and insert the image.
592 This was done in Figure\InsetSpace ~
594 \begin_inset LatexCommand ref
595 reference "fig:escher"
600 More about the caption placement is described in section\InsetSpace ~
602 \begin_inset LatexCommand ref
603 reference "sec:Caption-Placement"
610 \begin_layout Standard
611 \begin_inset Float figure
616 \begin_layout Standard
618 \begin_inset Graphics
619 filename platypus.eps
629 \begin_layout Caption
630 \begin_inset LatexCommand label
635 A severely distorted platypus in a float.
643 \begin_layout Standard
644 \begin_inset Float figure
649 \begin_layout Caption
650 \begin_inset LatexCommand label
659 \begin_layout Standard
661 \begin_inset Graphics
662 filename escher-lsd.eps
677 \begin_layout Standard
678 \begin_inset LatexCommand index
679 name "References ! to Figures"
685 \begin_inset LatexCommand ref
686 reference "fig:kill-plat"
691 \begin_inset LatexCommand ref
692 reference "fig:escher"
696 are an example of cross-referenced figures.
697 Figures can be cross-referenced in the text by referencing their label.
698 To do this insert a label in the caption using the menu
700 Insert\SpecialChar \menuseparator
703 or the toolbar button
704 \begin_inset Graphics
705 filename ../images/label-insert.xpm
711 You can now refer to the label using the menu
713 Insert\SpecialChar \menuseparator
717 or the toolbar button
718 \begin_inset Graphics
719 filename ../images/dialog-show-new-inset_ref.xpm
725 It is important to use references to floats, rather than using vague references
727 \begin_inset Quotes eld
731 \begin_inset Quotes erd
734 , because as LaTeX will reposition the floats in the final document, it
736 \begin_inset Quotes eld
740 \begin_inset Quotes erd
746 \begin_layout Standard
747 Normally only one image is inserted to a figure float, but sometimes you
748 might want to use two images with separate subcaptions.
749 This can be set in the tab
754 of the graphics dialog.
755 Choose there the option
759 and enter the subcaption for the image in the caption field.
760 Note that only the main caption of the float is added to the List of Figures.
763 \begin_layout Standard
766 \begin_inset LatexCommand ref
767 reference "fig:Two-distorted-images"
771 is an example of a figure float with two images set side by side.
772 You can also set the images one below the other.
775 \begin_layout Standard
776 \begin_inset Float figure
781 \begin_layout Standard
785 \begin_inset Graphics
786 filename escher-lsd.eps
789 subcaptionText "Undefinable structure"
796 \begin_inset Graphics
797 filename platypus.eps
801 subcaptionText "Platypus"
810 \begin_layout Caption
811 \begin_inset LatexCommand label
812 name "fig:Two-distorted-images"
816 Two distorted images.
824 \begin_layout Section
826 \begin_inset LatexCommand label
827 name "sec:Image-Formats"
832 \begin_inset LatexCommand index
838 \begin_inset LatexCommand index
839 name "Figure ! Image Formats"
846 \begin_layout Standard
847 You can insert images in any known file format.
848 But as explained in appendix\InsetSpace ~
850 \begin_inset LatexCommand ref
851 reference "cha:Output-File-Formats"
855 , every output document format allows only a few image formats.
856 LyX uses therefore the program
860 in the background to convert the images to the right format.
861 To increase your work flow by avoiding these conversions in the background,
862 you can use only the image formats that can directly be embedded in the
864 The output file formats are explained in appendix\InsetSpace ~
866 \begin_inset LatexCommand ref
867 reference "cha:Output-File-Formats"
874 \begin_layout Standard
875 Similar to fonts there are two types of image formats:
878 \begin_layout Description
880 images consist of pixel values, often in a compressed form.
881 They are therefore not fully scalable and look pixeled in large zooms.
882 Well-known bitmap image formats are
883 \begin_inset Quotes eld
886 Graphics Interchange Format
887 \begin_inset Quotes erd
891 \begin_inset Quotes eld
899 \begin_inset Quotes erd
903 \begin_inset LatexCommand index
904 name "GIF|see{Image formats}"
909 \begin_inset Quotes eld
912 Portable Network Graphics
913 \begin_inset Quotes erd
917 \begin_inset Quotes eld
925 \begin_inset Quotes erd
929 \begin_inset LatexCommand index
930 name "PNG|see{Image formats}"
935 \begin_inset Quotes eld
938 Joint Photographic Experts Group
939 \begin_inset Quotes erd
943 \begin_inset Quotes eld
951 \begin_inset Quotes erd
955 \begin_inset Quotes eld
963 \begin_inset Quotes erd
967 \begin_inset LatexCommand index
968 name "JPG|see{Image formats}"
975 \begin_layout Description
977 images consist of vectors and can therefore be scaled to any size
979 The scaling ability is necessary if you want to create presentations, because
980 presentations are always scaled by the video projector.
981 Scaling is also useful for online documents to let the user zoom into diagrams.
984 calable image formats can be
985 \begin_inset Quotes eld
988 Scalable Vector Graphics
989 \begin_inset Quotes erd
993 \begin_inset Quotes eld
1001 \begin_inset Quotes erd
1005 \begin_inset LatexCommand index
1006 name "SVG|see{Image formats}"
1011 \begin_inset Quotes eld
1014 Encapsulated PostScript
1015 \begin_inset Quotes erd
1018 (EPS, file extension
1019 \begin_inset Quotes eld
1027 \begin_inset Quotes erd
1031 \begin_inset LatexCommand index
1032 name "EPS|see{Image formats}"
1037 \begin_inset Quotes eld
1040 Portable Document Format
1041 \begin_inset Quotes erd
1044 (PDF, file extension
1045 \begin_inset Quotes eld
1053 \begin_inset Quotes erd
1057 \begin_inset LatexCommand index
1063 \begin_inset Quotes eld
1067 \begin_inset Quotes erd
1070 (WMF, file extension
1071 \begin_inset Quotes eld
1079 \begin_inset Quotes erd
1083 \begin_inset LatexCommand index
1084 name "SVG|see{Image formats}"
1090 \begin_inset Quotes eld
1094 \begin_inset Quotes erd
1097 , because you can convert any bitmap image to a PDF or EPS-image and the
1098 result will still be a bitmap image.
1099 In this cases only a header with the image properties is added to the original
1104 \begin_layout Standard
1105 In the case of PDF, the original image is additionally compressed.
1111 The PDF-files generated by
1115 are for example bitmap images.
1118 \begin_layout Standard
1119 Normally it is not possible to convert a bitmap image into a scalable one,
1121 Only the image formats PDF and EPS can directly be embedded to PDF and
1122 PostScript output files, respectively.
1123 SVG and WMF-images are currently recalculated to bitmaps when the output
1124 file is generated because there is currently no adequate WMF/SVG
1125 \begin_inset Formula $\to$
1128 PDF/EPS converter available.
1131 \begin_layout Chapter
1133 \begin_inset LatexCommand label
1139 \begin_inset LatexCommand index
1147 \begin_layout Section
1149 \begin_inset LatexCommand index
1150 name "Table ! Introduction"
1157 \begin_layout Standard
1158 You can insert a table using either the toolbar button
1159 \begin_inset Graphics
1160 filename ../images/tabular-insert.xpm
1167 Insert\SpecialChar \menuseparator
1171 The toolbar button offers you a graphical selection: Move the mouse to
1172 set the column/row number of the table that should be created and then
1173 press a mouse button.
1174 When you use the menu to create a table, a dialog will appear, asking you
1175 for the number of rows and columns.
1177 The default table has lines around any
1178 cell and the first row appears separated from the rest of the table.
1179 This separation occurs due to a double line: The cells of the first row
1180 have a line below them and the cells of the second row have a line above
1182 Here is an example table:
1185 \begin_layout Standard
1187 \begin_inset Tabular
1188 <lyxtabular version="3" rows="4" columns="4">
1190 <column alignment="center" valignment="top" leftline="true" width="0">
1191 <column alignment="center" valignment="top" leftline="true" width="0pt">
1192 <column alignment="center" valignment="top" leftline="true" width="0in">
1193 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
1194 <row topline="true" bottomline="true">
1195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1198 \begin_layout Standard
1204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1207 \begin_layout Standard
1222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1225 \begin_layout Standard
1231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1234 \begin_layout Standard
1241 <row topline="true">
1242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1245 \begin_layout Standard
1260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1263 \begin_layout Standard
1269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1272 \begin_layout Standard
1278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1281 \begin_layout Standard
1288 <row topline="true">
1289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1292 \begin_layout Standard
1307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1310 \begin_layout Standard
1316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1319 \begin_layout Standard
1334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1337 \begin_layout Standard
1344 <row topline="true" bottomline="true">
1345 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1348 \begin_layout Standard
1363 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1366 \begin_layout Standard
1372 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1375 \begin_layout Standard
1381 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1384 \begin_layout Standard
1398 \begin_layout Section
1400 \begin_inset LatexCommand index
1401 name "Table ! Dialog"
1408 \begin_layout Standard
1409 You can alter a table by clicking on it with the right mouse button, which
1410 brings up the table dialog.
1411 Here you can adjust the settings of that cell and row/column respectively
1412 where the cursor is currently placed.
1413 Most of the dialog options also work on selections.
1414 This means if you select more cells, columns or rows, the action is done
1415 for the whole selection.
1416 Note that there is a difference between selecting the
1420 of the cell, and the cell itself.
1421 You can alter tables with the following tabs of the table dialog:
1424 \begin_layout Description
1430 Here you can set the horizontal alignment for the current row and the width
1431 of the current column.
1432 When you have set a width you can also adjust the vertical alignment of
1434 A given width will allow the cell to have line breaks and multiple paragraphs
1435 of text, see section\InsetSpace ~
1437 \begin_inset LatexCommand ref
1438 reference "sub:Multiple-Lines-in"
1443 If you set no width, the column is as wide as their widest cell content
1446 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1447 cell, see section\InsetSpace ~
1449 \begin_inset LatexCommand ref
1450 reference "sub:Multicolumns"
1456 The rotate check boxes rotates the current cell, a selection, or the whole
1457 table counter-clockwise by 90°.
1458 The rotation is not shown within LyX, only in the output.
1461 \begin_inset Note Greyedout
1464 \begin_layout Standard
1469 Not all DVI-viewers are able to display rotations.
1476 It is also possible to enter a LaTeX-argument which is needed for special
1477 table formattings, see section\InsetSpace ~
1479 \begin_inset LatexCommand ref
1480 reference "sub:Multicolumn-Calculations"
1485 \begin_inset LatexCommand ref
1486 reference "sec:Colored-Tables"
1493 \begin_layout Description
1498 In this tab you can add and delete border lines for the current row/column.
1499 Using the style option Formal will convert the table into a booktabs-table
1500 as described in section\InsetSpace ~
1502 \begin_inset LatexCommand ref
1503 reference "alg:Example-Algorithm-float"
1510 \begin_layout Description
1515 This tab is to make a table a so called
1516 \begin_inset Quotes eld
1524 \begin_inset Quotes erd
1527 that can run over several pages.
1528 Section\InsetSpace ~
1530 \begin_inset LatexCommand ref
1531 reference "sec:Longtables"
1535 describes the longtable feature in detail.
1538 \begin_layout Standard
1539 When the table toolbar is opened, you can move the cursor with the arrow
1540 keys from cell to cell and the property of the current cell will immediately
1541 be displayed in the dialog.
1544 \begin_layout Section
1546 \begin_inset LatexCommand index
1547 name "Table ! Toolbar"
1554 \begin_layout Standard
1555 The table toolbar is an alternative to the table dialog to be able to alter
1557 It should normally appear at the bottom of LyX's main window when the cursor
1559 You can alternatively switch it on to appear always, by right-clicking
1560 in LyX's main menu bar.
1563 \begin_layout Standard
1564 The toolbar has the following icons:
1567 \begin_layout Labeling
1568 \labelwidthstring 00.00.0000
1569 \begin_inset Graphics
1570 filename ../images/tabular-feature_append-row.xpm
1574 adds a row below the current cell or selection
1577 \begin_layout Labeling
1578 \labelwidthstring 00.00.0000
1579 \begin_inset Graphics
1580 filename ../images/tabular-feature_append-column.xpm
1584 adds a column right beside the current cell or selection
1587 \begin_layout Labeling
1588 \labelwidthstring 00.00.0000
1589 \begin_inset Graphics
1590 filename ../images/tabular-feature_delete-row.xpm
1594 deletes the current row or selection
1597 \begin_layout Labeling
1598 \labelwidthstring 00.00.0000
1599 \begin_inset Graphics
1600 filename ../images/tabular-feature_delete-column.xpm
1604 deletes the current column or selection
1607 \begin_layout Labeling
1608 \labelwidthstring 00.00.0000
1609 \begin_inset Graphics
1610 filename ../images/tabular-feature_toggle-line-top.xpm
1614 adds a line at the top of the current cell / row or of a selection
1617 \begin_layout Labeling
1618 \labelwidthstring 00.00.0000
1619 \begin_inset Graphics
1620 filename ../images/tabular-feature_toggle-line-bottom.xpm
1624 adds a line at the bottom of the current cell / row or of a selection
1627 \begin_layout Labeling
1628 \labelwidthstring 00.00.0000
1629 \begin_inset Graphics
1630 filename ../images/tabular-feature_toggle-line-left.xpm
1634 adds a line at the left side of the current cell / row or of a selection
1637 \begin_layout Labeling
1638 \labelwidthstring 00.00.0000
1639 \begin_inset Graphics
1640 filename ../images/tabular-feature_toggle-line-right.xpm
1644 adds a line at the right side of the current cell / row or of a selection
1647 \begin_layout Labeling
1648 \labelwidthstring 00.00.0000
1649 \begin_inset Graphics
1650 filename ../images/tabular-feature_set-all-lines.xpm
1654 adds lines around the current or selected cells - if the current cell no
1655 multicolumn this also affects the current row and column
1658 \begin_layout Labeling
1659 \labelwidthstring 00.00.0000
1660 \begin_inset Graphics
1661 filename ../images/tabular-feature_unset-all-lines.xpm
1665 deletes all lines of the current or selected cells - if the current cell
1666 no multicolumn this also affects the current row and column
1669 \begin_layout Labeling
1670 \labelwidthstring 00.00.0000
1671 \begin_inset Graphics
1672 filename ../images/tabular-feature_align-left.xpm
1676 left-aligns the content of the current cell / column
1679 \begin_layout Labeling
1680 \labelwidthstring 00.00.0000
1681 \begin_inset Graphics
1682 filename ../images/tabular-feature_align-center.xpm
1686 centers the content of the current cell / column horizontally
1689 \begin_layout Labeling
1690 \labelwidthstring 00.00.0000
1691 \begin_inset Graphics
1692 filename ../images/tabular-feature_align-right.xpm
1696 right-aligns the content of the current cell / column
1699 \begin_layout Labeling
1700 \labelwidthstring 00.00.0000
1701 \begin_inset Graphics
1702 filename ../images/tabular-feature_valign-top.xpm
1706 aligns the content of the current cell vertically to the top
1709 \begin_layout Labeling
1710 \labelwidthstring 00.00.0000
1711 \begin_inset Graphics
1712 filename ../images/tabular-feature_valign-middle.xpm
1716 centers the content of the current cell vertically
1719 \begin_layout Labeling
1720 \labelwidthstring 00.00.0000
1721 \begin_inset Graphics
1722 filename ../images/tabular-feature_valign-bottom.xpm
1726 aligns the content of the current cell vertically to the bottom
1729 \begin_layout Labeling
1730 \labelwidthstring 00.00.0000
1731 \begin_inset Graphics
1732 filename ../images/tabular-feature_set-rotate-cell.xpm
1736 rotates the current cell or selection counter-clockwise by 90°
1739 \begin_layout Labeling
1740 \labelwidthstring 00.00.0000
1741 \begin_inset Graphics
1742 filename ../images/tabular-feature_set-rotate-tabular.xpm
1746 rotates the whole table counter-clockwise by 90°
1749 \begin_layout Labeling
1750 \labelwidthstring 00.00.0000
1751 \begin_inset Graphics
1752 filename ../images/tabular-feature_multicolumn.xpm
1756 sets the current cell or selection as a multicolumn
1759 \begin_layout Section
1761 \begin_inset LatexCommand index
1762 name "Table ! Edit Menu"
1769 \begin_layout Standard
1770 Additionally to the table dialog and toolbar, the menu Edit
1772 \SpecialChar \menuseparator
1775 Table allows you to add and delete border lines for the current row/column
1776 and to set the current selection as multicolumn.
1777 The menu is only available when the cursor is inside a table.
1780 \begin_layout Section
1782 \begin_inset LatexCommand label
1783 name "sec:Table-Floats"
1788 \begin_inset LatexCommand index
1789 name "Floats ! Tables"
1794 \begin_inset LatexCommand index
1795 name "Table ! Floats"
1802 \begin_layout Standard
1803 For general explanations about floats, have a look at section\InsetSpace ~
1805 \begin_inset LatexCommand ref
1806 reference "sec:FloatIntroduction"
1813 \begin_layout Standard
1814 \begin_inset Float table
1820 \begin_layout Caption
1821 \begin_inset LatexCommand label
1822 name "tab:a table float"
1829 \begin_layout Standard
1831 \begin_inset Tabular
1832 <lyxtabular version="3" rows="3" columns="3">
1834 <column alignment="center" valignment="top" leftline="true" width="0pt">
1835 <column alignment="center" valignment="top" leftline="true" width="0pt">
1836 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
1837 <row topline="true" bottomline="true">
1838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1841 \begin_layout Standard
1856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1859 \begin_layout Standard
1874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1877 \begin_layout Standard
1893 <row topline="true">
1894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1897 \begin_layout Standard
1912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1915 \begin_layout Standard
1930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1933 \begin_layout Standard
1949 <row topline="true" bottomline="true">
1950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1953 \begin_layout Standard
1963 \begin_inset Formula $\int x^{2}dx$
1971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1974 \begin_layout Standard
1984 \begin_inset Formula $\left[\begin{array}{cc}
1986 c & d\end{array}\right]$
1994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1997 \begin_layout Standard
2007 \begin_inset Formula $1+1=2$
2028 \begin_layout Standard
2029 Table floats can be inserted using the menu
2031 Insert\SpecialChar \menuseparator
2032 Float\SpecialChar \menuseparator
2035 or the toolbar button
2036 \begin_inset Graphics
2037 filename ../images/float-insert_table.xpm
2045 \begin_layout Standard
2046 The float appears as a collapsible box with the label
2047 \begin_inset Quotes eld
2056 \begin_inset Quotes erd
2060 The text following the label is the caption of the table.
2061 To insert a table to the the float set the cursor at the end of the caption
2062 text, press enter and insert the table.
2063 The caption is now printed above the table.
2066 \begin_layout Standard
2069 \begin_inset LatexCommand ref
2070 reference "tab:a table float"
2074 is an example table within a table float.
2077 \begin_layout Standard
2078 Having the caption above the table is the common rule that is unfortunately
2079 not supported in LaTeX's standard classes.
2080 That means if you are using the document classes
2096 there will be no space between the caption and the table.
2097 To insert the needed space, add the following option to the load command
2098 of the LaTeX-package
2103 \begin_inset LatexCommand index
2104 name "LaTeX-packages ! caption"
2108 in your document preamble
2112 \begin_layout Standard
2113 For more information have a look at section\InsetSpace ~
2115 \begin_inset LatexCommand ref
2116 reference "sec:Caption-Placement"
2128 \begin_layout Standard
2134 \begin_layout Standard
2139 , which is described in section\InsetSpace ~
2141 \begin_inset LatexCommand ref
2142 reference "sec:Caption-Formatting"
2146 , is used to adjust the caption format.
2149 \begin_layout Standard
2150 \begin_inset LatexCommand index
2151 name "References ! to Tables"
2155 Tables can be cross-referenced in the text by referencing their label.
2156 To do this insert a label in the caption using the menu
2158 Insert\SpecialChar \menuseparator
2161 or the toolbar button
2162 \begin_inset Graphics
2163 filename ../images/label-insert.xpm
2169 You can now refer to the label using the menu
2171 Insert\SpecialChar \menuseparator
2175 or the toolbar button
2176 \begin_inset Graphics
2177 filename ../images/dialog-show-new-inset_ref.xpm
2185 \begin_layout Standard
2189 \begin_layout Section
2191 \begin_inset LatexCommand label
2192 name "sec:Longtables"
2197 \begin_inset LatexCommand index
2203 \begin_inset LatexCommand index
2204 name "Table ! Longtables"
2211 \begin_layout Standard
2212 If the table is too long to fit on one page, you can use the option
2222 of the table dialog to split the table automatically over more pages.
2223 Doing this enables some check boxes and you can now define:
2226 \begin_layout Description
2231 : The current row and all rows above, that don't have any special options
2232 defined, are defined to be the header rows of all pages of the longtable;
2233 except for the first page, if
2239 This therefore called the main header.
2242 \begin_layout Description
2248 : The current row and all rows above, that don't have any special options
2249 defined, are defined to be the header rows of the first page of the longtable.
2252 \begin_layout Description
2257 : The current row and all rows below, that don't have any special options
2258 defined, are defined to be the footer rows of all pages of the longtable;
2259 except for the last page, if
2267 \begin_layout Description
2273 : The current row and all rows below, that don't have any special options
2274 defined, are defined to be the footer rows of the last page of the longtable.
2277 \begin_layout Standard
2278 You can also specify a row where the table is splitted.
2279 If you set more than one option in the same table row, you should be aware
2280 of the fact that only the first one is used in the given table row.
2281 The others will then be defined as
2286 In this context, first means first in this order:
2288 Footer, Last\InsetSpace ~
2304 See the following longtable to see how it works:
2307 \begin_layout Standard
2309 \begin_inset Tabular
2310 <lyxtabular version="3" rows="69" columns="3">
2311 <features islongtable="true">
2312 <column alignment="left" valignment="top" leftline="true" width="0cm">
2313 <column alignment="left" valignment="top" width="0pt">
2314 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2315 <row topline="true" bottomline="true" endfirsthead="true">
2316 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2319 \begin_layout Standard
2322 Example Phone List (ignore the names)
2327 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2330 \begin_layout Standard
2336 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2339 \begin_layout Standard
2346 <row topline="true" bottomline="true" endfirsthead="true">
2347 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2350 \begin_layout Standard
2358 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2361 \begin_layout Standard
2367 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2370 \begin_layout Standard
2379 <row topline="true" bottomline="true" endhead="true">
2380 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2383 \begin_layout Standard
2391 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2394 \begin_layout Standard
2400 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2403 \begin_layout Standard
2410 <row topline="true" bottomline="true" endhead="true">
2411 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2414 \begin_layout Standard
2422 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2425 \begin_layout Standard
2431 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2434 \begin_layout Standard
2443 <row topline="true" bottomline="true" endfoot="true">
2444 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2447 \begin_layout Standard
2448 continued on next page
2453 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2456 \begin_layout Standard
2462 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2465 \begin_layout Standard
2473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2476 \begin_layout Standard
2484 <cell alignment="center" valignment="top" topline="true" usebox="none">
2487 \begin_layout Standard
2493 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2496 \begin_layout Standard
2504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2507 \begin_layout Standard
2515 <cell alignment="center" valignment="top" topline="true" usebox="none">
2518 \begin_layout Standard
2524 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2527 \begin_layout Standard
2535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2538 \begin_layout Standard
2546 <cell alignment="center" valignment="top" topline="true" usebox="none">
2549 \begin_layout Standard
2555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2558 \begin_layout Standard
2566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2569 \begin_layout Standard
2577 <cell alignment="center" valignment="top" topline="true" usebox="none">
2580 \begin_layout Standard
2586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2589 \begin_layout Standard
2597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2600 \begin_layout Standard
2608 <cell alignment="center" valignment="top" topline="true" usebox="none">
2611 \begin_layout Standard
2617 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2620 \begin_layout Standard
2628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2631 \begin_layout Standard
2639 <cell alignment="center" valignment="top" topline="true" usebox="none">
2642 \begin_layout Standard
2648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2651 \begin_layout Standard
2659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2662 \begin_layout Standard
2670 <cell alignment="center" valignment="top" topline="true" usebox="none">
2673 \begin_layout Standard
2679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2682 \begin_layout Standard
2690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2693 \begin_layout Standard
2701 <cell alignment="center" valignment="top" topline="true" usebox="none">
2704 \begin_layout Standard
2710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2713 \begin_layout Standard
2721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2724 \begin_layout Standard
2732 <cell alignment="center" valignment="top" topline="true" usebox="none">
2735 \begin_layout Standard
2741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2744 \begin_layout Standard
2752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2755 \begin_layout Standard
2763 <cell alignment="center" valignment="top" topline="true" usebox="none">
2766 \begin_layout Standard
2772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2775 \begin_layout Standard
2783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2786 \begin_layout Standard
2794 <cell alignment="center" valignment="top" topline="true" usebox="none">
2797 \begin_layout Standard
2803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2806 \begin_layout Standard
2814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2817 \begin_layout Standard
2825 <cell alignment="center" valignment="top" topline="true" usebox="none">
2828 \begin_layout Standard
2834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2837 \begin_layout Standard
2845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2848 \begin_layout Standard
2856 <cell alignment="center" valignment="top" topline="true" usebox="none">
2859 \begin_layout Standard
2865 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2868 \begin_layout Standard
2876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2879 \begin_layout Standard
2887 <cell alignment="center" valignment="top" topline="true" usebox="none">
2890 \begin_layout Standard
2896 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2899 \begin_layout Standard
2907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2910 \begin_layout Standard
2918 <cell alignment="center" valignment="top" topline="true" usebox="none">
2921 \begin_layout Standard
2927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2930 \begin_layout Standard
2938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2941 \begin_layout Standard
2949 <cell alignment="center" valignment="top" topline="true" usebox="none">
2952 \begin_layout Standard
2958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2961 \begin_layout Standard
2969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2972 \begin_layout Standard
2980 <cell alignment="center" valignment="top" topline="true" usebox="none">
2983 \begin_layout Standard
2989 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2992 \begin_layout Standard
3000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3003 \begin_layout Standard
3011 <cell alignment="center" valignment="top" topline="true" usebox="none">
3014 \begin_layout Standard
3020 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3023 \begin_layout Standard
3031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3034 \begin_layout Standard
3042 <cell alignment="center" valignment="top" topline="true" usebox="none">
3045 \begin_layout Standard
3051 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3054 \begin_layout Standard
3062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3065 \begin_layout Standard
3073 <cell alignment="center" valignment="top" topline="true" usebox="none">
3076 \begin_layout Standard
3082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3085 \begin_layout Standard
3093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3096 \begin_layout Standard
3104 <cell alignment="center" valignment="top" topline="true" usebox="none">
3107 \begin_layout Standard
3113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3116 \begin_layout Standard
3124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3127 \begin_layout Standard
3135 <cell alignment="center" valignment="top" topline="true" usebox="none">
3138 \begin_layout Standard
3144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3147 \begin_layout Standard
3155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3158 \begin_layout Standard
3166 <cell alignment="center" valignment="top" topline="true" usebox="none">
3169 \begin_layout Standard
3175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3178 \begin_layout Standard
3186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3189 \begin_layout Standard
3197 <cell alignment="center" valignment="top" topline="true" usebox="none">
3200 \begin_layout Standard
3206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3209 \begin_layout Standard
3217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3220 \begin_layout Standard
3228 <cell alignment="center" valignment="top" topline="true" usebox="none">
3231 \begin_layout Standard
3237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3240 \begin_layout Standard
3248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3251 \begin_layout Standard
3259 <cell alignment="center" valignment="top" topline="true" usebox="none">
3262 \begin_layout Standard
3268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3271 \begin_layout Standard
3279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3282 \begin_layout Standard
3290 <cell alignment="center" valignment="top" topline="true" usebox="none">
3293 \begin_layout Standard
3299 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3302 \begin_layout Standard
3310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3313 \begin_layout Standard
3321 <cell alignment="center" valignment="top" topline="true" usebox="none">
3324 \begin_layout Standard
3330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3333 \begin_layout Standard
3341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3344 \begin_layout Standard
3352 <cell alignment="center" valignment="top" topline="true" usebox="none">
3355 \begin_layout Standard
3361 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3364 \begin_layout Standard
3372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3375 \begin_layout Standard
3383 <cell alignment="center" valignment="top" topline="true" usebox="none">
3386 \begin_layout Standard
3392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3395 \begin_layout Standard
3402 <row bottomline="true">
3403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3406 \begin_layout Standard
3414 <cell alignment="center" valignment="top" topline="true" usebox="none">
3417 \begin_layout Standard
3423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3426 \begin_layout Standard
3433 <row bottomline="true">
3434 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3437 \begin_layout Standard
3443 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3446 \begin_layout Standard
3452 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3455 \begin_layout Standard
3463 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3466 \begin_layout Standard
3474 <cell alignment="center" valignment="top" topline="true" usebox="none">
3477 \begin_layout Standard
3483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3486 \begin_layout Standard
3494 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3497 \begin_layout Standard
3505 <cell alignment="center" valignment="top" topline="true" usebox="none">
3508 \begin_layout Standard
3514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3517 \begin_layout Standard
3525 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3528 \begin_layout Standard
3536 <cell alignment="center" valignment="top" topline="true" usebox="none">
3539 \begin_layout Standard
3545 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3548 \begin_layout Standard
3556 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3559 \begin_layout Standard
3567 <cell alignment="center" valignment="top" topline="true" usebox="none">
3570 \begin_layout Standard
3576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3579 \begin_layout Standard
3587 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3590 \begin_layout Standard
3598 <cell alignment="center" valignment="top" topline="true" usebox="none">
3601 \begin_layout Standard
3607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3610 \begin_layout Standard
3618 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3621 \begin_layout Standard
3629 <cell alignment="center" valignment="top" topline="true" usebox="none">
3632 \begin_layout Standard
3638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3641 \begin_layout Standard
3649 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3652 \begin_layout Standard
3660 <cell alignment="center" valignment="top" topline="true" usebox="none">
3663 \begin_layout Standard
3669 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3672 \begin_layout Standard
3680 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3683 \begin_layout Standard
3691 <cell alignment="center" valignment="top" topline="true" usebox="none">
3694 \begin_layout Standard
3700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3703 \begin_layout Standard
3711 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3714 \begin_layout Standard
3722 <cell alignment="center" valignment="top" topline="true" usebox="none">
3725 \begin_layout Standard
3731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3734 \begin_layout Standard
3742 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3745 \begin_layout Standard
3753 <cell alignment="center" valignment="top" topline="true" usebox="none">
3756 \begin_layout Standard
3762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3765 \begin_layout Standard
3773 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3776 \begin_layout Standard
3784 <cell alignment="center" valignment="top" topline="true" usebox="none">
3787 \begin_layout Standard
3793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3796 \begin_layout Standard
3804 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3807 \begin_layout Standard
3815 <cell alignment="center" valignment="top" topline="true" usebox="none">
3818 \begin_layout Standard
3824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3827 \begin_layout Standard
3835 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3838 \begin_layout Standard
3846 <cell alignment="center" valignment="top" topline="true" usebox="none">
3849 \begin_layout Standard
3855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3858 \begin_layout Standard
3866 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3869 \begin_layout Standard
3877 <cell alignment="center" valignment="top" topline="true" usebox="none">
3880 \begin_layout Standard
3886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3889 \begin_layout Standard
3897 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3900 \begin_layout Standard
3908 <cell alignment="center" valignment="top" topline="true" usebox="none">
3911 \begin_layout Standard
3917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3920 \begin_layout Standard
3928 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3931 \begin_layout Standard
3939 <cell alignment="center" valignment="top" topline="true" usebox="none">
3942 \begin_layout Standard
3948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3951 \begin_layout Standard
3959 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3962 \begin_layout Standard
3970 <cell alignment="center" valignment="top" topline="true" usebox="none">
3973 \begin_layout Standard
3979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3982 \begin_layout Standard
3990 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3993 \begin_layout Standard
4001 <cell alignment="center" valignment="top" topline="true" usebox="none">
4004 \begin_layout Standard
4010 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4013 \begin_layout Standard
4021 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4024 \begin_layout Standard
4032 <cell alignment="center" valignment="top" topline="true" usebox="none">
4035 \begin_layout Standard
4041 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4044 \begin_layout Standard
4052 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4055 \begin_layout Standard
4063 <cell alignment="center" valignment="top" topline="true" usebox="none">
4066 \begin_layout Standard
4072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4075 \begin_layout Standard
4083 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4086 \begin_layout Standard
4094 <cell alignment="center" valignment="top" topline="true" usebox="none">
4097 \begin_layout Standard
4103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4106 \begin_layout Standard
4114 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4117 \begin_layout Standard
4125 <cell alignment="center" valignment="top" topline="true" usebox="none">
4128 \begin_layout Standard
4134 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4137 \begin_layout Standard
4145 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4148 \begin_layout Standard
4156 <cell alignment="center" valignment="top" topline="true" usebox="none">
4159 \begin_layout Standard
4165 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4168 \begin_layout Standard
4176 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4179 \begin_layout Standard
4187 <cell alignment="center" valignment="top" topline="true" usebox="none">
4190 \begin_layout Standard
4196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4199 \begin_layout Standard
4207 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4210 \begin_layout Standard
4218 <cell alignment="center" valignment="top" topline="true" usebox="none">
4221 \begin_layout Standard
4227 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4230 \begin_layout Standard
4238 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4241 \begin_layout Standard
4249 <cell alignment="center" valignment="top" topline="true" usebox="none">
4252 \begin_layout Standard
4258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4261 \begin_layout Standard
4269 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4272 \begin_layout Standard
4280 <cell alignment="center" valignment="top" topline="true" usebox="none">
4283 \begin_layout Standard
4289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4292 \begin_layout Standard
4300 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4303 \begin_layout Standard
4311 <cell alignment="center" valignment="top" topline="true" usebox="none">
4314 \begin_layout Standard
4320 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4323 \begin_layout Standard
4331 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4334 \begin_layout Standard
4342 <cell alignment="center" valignment="top" topline="true" usebox="none">
4345 \begin_layout Standard
4351 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4354 \begin_layout Standard
4362 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4365 \begin_layout Standard
4373 <cell alignment="center" valignment="top" topline="true" usebox="none">
4376 \begin_layout Standard
4382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4385 \begin_layout Standard
4392 <row bottomline="true">
4393 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4396 \begin_layout Standard
4404 <cell alignment="center" valignment="top" topline="true" usebox="none">
4407 \begin_layout Standard
4413 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4416 \begin_layout Standard
4423 <row bottomline="true" endlastfoot="true">
4424 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4427 \begin_layout Standard
4433 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4436 \begin_layout Standard
4442 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4445 \begin_layout Standard
4459 \begin_layout Subsection
4460 Footnotes in Longtables
4461 \begin_inset LatexCommand label
4462 name "sub:Footnotes-in-Longtables"
4467 \begin_inset LatexCommand index
4468 name "Longtables ! Footnotes"
4475 \begin_layout Standard
4476 Footnotes can be inserted to every longtable cell.
4477 They appear at the bottom of the page where the table cell with the footnote
4481 \begin_inset LatexCommand ref
4482 reference "tab:DiffCaptions"
4486 has for example a footnote.
4489 \begin_layout Subsection
4491 \begin_inset LatexCommand index
4492 name "Longtables ! Captions"
4499 \begin_layout Standard
4500 A longtable cannot be put into a table float because floats can only be
4502 Therefore the caption layout cannot be used for longtables.
4505 \begin_layout Standard
4506 To add a caption, a dirty hack is needed:
4509 \begin_layout Enumerate
4513 \begin_layout Enumerate
4514 Mark the first row an disable its upper line
4517 \begin_layout Enumerate
4518 Insert the following command as ERT into the first table cell:
4524 caption[short title]{full title}
4531 \begin_layout Enumerate
4533 \begin_inset Quotes eld
4541 \begin_inset Quotes erd
4544 as ERT into every cell of the first row
4547 \begin_layout Standard
4554 command is used like for normal captions, the short title that will appear
4555 in the LOT instead of the full title is optional.
4560 in the table cells omits the vertical line between the the cells.
4561 The first table row is now only a dummy row for the caption, the actual
4562 table starts with the second row.
4565 \begin_layout Standard
4566 Here is a short longtable to see how it works:
4569 \begin_layout Standard
4570 \begin_inset Tabular
4571 <lyxtabular version="3" rows="6" columns="5">
4572 <features islongtable="true">
4573 <column alignment="center" valignment="top" leftline="true" width="0">
4574 <column alignment="center" valignment="top" leftline="true" width="0">
4575 <column alignment="center" valignment="top" leftline="true" width="0">
4576 <column alignment="center" valignment="top" leftline="true" width="0">
4577 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4582 \begin_layout Standard
4586 \begin_layout Standard
4590 caption[Longtable]{Longtable with caption}
4604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4607 \begin_layout Standard
4611 \begin_layout Standard
4623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4626 \begin_layout Standard
4630 \begin_layout Standard
4642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4645 \begin_layout Standard
4649 \begin_layout Standard
4661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4664 \begin_layout Standard
4668 \begin_layout Standard
4681 <row topline="true">
4682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4685 \begin_layout Standard
4691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4694 \begin_layout Standard
4700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4703 \begin_layout Standard
4709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4712 \begin_layout Standard
4718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4721 \begin_layout Standard
4728 <row topline="true">
4729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4732 \begin_layout Standard
4738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4741 \begin_layout Standard
4747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4750 \begin_layout Standard
4756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4759 \begin_layout Standard
4765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4768 \begin_layout Standard
4775 <row topline="true">
4776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4779 \begin_layout Standard
4785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4788 \begin_layout Standard
4794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4797 \begin_layout Standard
4803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4806 \begin_layout Standard
4812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4815 \begin_layout Standard
4822 <row topline="true">
4823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4826 \begin_layout Standard
4832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4835 \begin_layout Standard
4841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4844 \begin_layout Standard
4850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4853 \begin_layout Standard
4859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4862 \begin_layout Standard
4869 <row topline="true" bottomline="true">
4870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4873 \begin_layout Standard
4879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4882 \begin_layout Standard
4888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4891 \begin_layout Standard
4897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4900 \begin_layout Standard
4906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4909 \begin_layout Standard
4923 \begin_layout Standard
4924 \begin_inset VSpace medskip
4928 \begin_inset Note Greyedout
4931 \begin_layout Standard
4936 If you are using the LaTeX-package
4941 \begin_inset LatexCommand index
4942 name "LaTeX-packages ! hyperref"
4946 to link cross-references, the link to a longtable caption will always point
4947 to the beginning of the document.
4955 \begin_layout Subsubsection
4956 References to Longtables
4957 \begin_inset LatexCommand index
4958 name "Longtables ! References"
4965 \begin_layout Standard
4966 \begin_inset Tabular
4967 <lyxtabular version="3" rows="6" columns="5">
4968 <features islongtable="true">
4969 <column alignment="center" valignment="top" leftline="true" width="0">
4970 <column alignment="center" valignment="top" leftline="true" width="0">
4971 <column alignment="center" valignment="top" leftline="true" width="0">
4972 <column alignment="center" valignment="top" leftline="true" width="0">
4973 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4978 \begin_layout Standard
4982 \begin_layout Standard
4986 caption{Referenced longtable
4992 \begin_inset LatexCommand label
4993 name "tab:RefExample"
5001 \begin_layout Standard
5017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5020 \begin_layout Standard
5024 \begin_layout Standard
5036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5039 \begin_layout Standard
5043 \begin_layout Standard
5055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5058 \begin_layout Standard
5062 \begin_layout Standard
5074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5077 \begin_layout Standard
5081 \begin_layout Standard
5094 <row topline="true">
5095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5098 \begin_layout Standard
5104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5107 \begin_layout Standard
5113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5116 \begin_layout Standard
5122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5125 \begin_layout Standard
5131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5134 \begin_layout Standard
5141 <row topline="true">
5142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5145 \begin_layout Standard
5151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5154 \begin_layout Standard
5160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5163 \begin_layout Standard
5169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5172 \begin_layout Standard
5178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5181 \begin_layout Standard
5188 <row topline="true">
5189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5192 \begin_layout Standard
5198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5201 \begin_layout Standard
5207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5210 \begin_layout Standard
5216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5219 \begin_layout Standard
5225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5228 \begin_layout Standard
5235 <row topline="true">
5236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5239 \begin_layout Standard
5245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5248 \begin_layout Standard
5254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5257 \begin_layout Standard
5263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5266 \begin_layout Standard
5272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5275 \begin_layout Standard
5282 <row topline="true" bottomline="true">
5283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5286 \begin_layout Standard
5292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5295 \begin_layout Standard
5301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5304 \begin_layout Standard
5310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5313 \begin_layout Standard
5319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5322 \begin_layout Standard
5336 \begin_layout Standard
5337 To reference a longtable, insert a label into the
5344 This is done by splitting the ERT of the caption command.
5345 The part of the caption command before the last closing brace
5348 \begin_layout Standard
5353 caption[short title]{full title
5356 \begin_layout Standard
5357 is in the first ERT box, the label is inserted behind it.
5358 Note that you have to add the label prefix
5359 \begin_inset Quotes eld
5367 \begin_inset Quotes eld
5370 manually in the label field.
5371 The second ERT box contains the rest of the
5376 \begin_layout Standard
5386 \begin_layout Standard
5387 and is inserted behind the label box, see Table\InsetSpace ~
5389 \begin_inset LatexCommand ref
5390 reference "tab:RefExample"
5397 \begin_layout Standard
5398 The caption layout can be set together with all other caption of your document
5399 using the LaTeX-package
5404 \begin_inset LatexCommand index
5405 name "LaTeX-packages ! caption"
5409 , see section\InsetSpace ~
5411 \begin_inset LatexCommand ref
5412 reference "sec:Caption-Formatting"
5419 \begin_layout Subsubsection
5421 \begin_inset LatexCommand index
5422 name "Longtables ! Caption Width"
5429 \begin_layout Standard
5430 The maximal width of of caption lines is defined by the length
5437 It default value is 4\InsetSpace \thinspace{}
5439 To change it add the following command to your document preamble or as
5440 ERT into your document before the longtable that should be affected
5443 \begin_layout Standard
5453 \begin_layout Standard
5454 where the width could have one of the units listed in appendix\InsetSpace ~
5456 \begin_inset LatexCommand ref
5457 reference "cha:Units-available-in"
5464 \begin_layout Standard
5465 The following tables show the difference:
5468 \begin_layout Standard
5469 \begin_inset Tabular
5470 <lyxtabular version="3" rows="6" columns="5">
5471 <features islongtable="true">
5472 <column alignment="center" valignment="top" leftline="true" width="0">
5473 <column alignment="center" valignment="top" leftline="true" width="0">
5474 <column alignment="center" valignment="top" leftline="true" width="0">
5475 <column alignment="center" valignment="top" leftline="true" width="0">
5476 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5481 \begin_layout Standard
5485 \begin_layout Standard
5489 caption[caption with default width]{long full title with default width
5492 \begin_layout Standard
5494 long full title with default width long full title with default width}
5508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5511 \begin_layout Standard
5515 \begin_layout Standard
5527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5530 \begin_layout Standard
5534 \begin_layout Standard
5546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5549 \begin_layout Standard
5553 \begin_layout Standard
5565 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5568 \begin_layout Standard
5572 \begin_layout Standard
5585 <row topline="true">
5586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5589 \begin_layout Standard
5595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5598 \begin_layout Standard
5604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5607 \begin_layout Standard
5613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5616 \begin_layout Standard
5622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5625 \begin_layout Standard
5632 <row topline="true">
5633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5636 \begin_layout Standard
5642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5645 \begin_layout Standard
5651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5654 \begin_layout Standard
5660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5663 \begin_layout Standard
5669 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5672 \begin_layout Standard
5679 <row topline="true">
5680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5683 \begin_layout Standard
5689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5692 \begin_layout Standard
5698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5701 \begin_layout Standard
5707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5710 \begin_layout Standard
5716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5719 \begin_layout Standard
5726 <row topline="true">
5727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5730 \begin_layout Standard
5736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5739 \begin_layout Standard
5745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5748 \begin_layout Standard
5754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5757 \begin_layout Standard
5763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5766 \begin_layout Standard
5773 <row topline="true" bottomline="true">
5774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5777 \begin_layout Standard
5783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5786 \begin_layout Standard
5792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5795 \begin_layout Standard
5801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5804 \begin_layout Standard
5810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5813 \begin_layout Standard
5827 \begin_layout Standard
5831 \begin_layout Standard
5843 \begin_inset Tabular
5844 <lyxtabular version="3" rows="6" columns="5">
5845 <features islongtable="true">
5846 <column alignment="center" valignment="top" leftline="true" width="0">
5847 <column alignment="center" valignment="top" leftline="true" width="0">
5848 <column alignment="center" valignment="top" leftline="true" width="0">
5849 <column alignment="center" valignment="top" leftline="true" width="0">
5850 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5855 \begin_layout Standard
5859 \begin_layout Standard
5863 caption[caption with width
5869 ,cm]{long full title with width set to 5
5874 \begin_layout Standard
5876 long full title with width set to 15
5878 ,cm long full title with width set to 5
5894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5897 \begin_layout Standard
5901 \begin_layout Standard
5913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5916 \begin_layout Standard
5920 \begin_layout Standard
5932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5935 \begin_layout Standard
5939 \begin_layout Standard
5951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5954 \begin_layout Standard
5958 \begin_layout Standard
5971 <row topline="true">
5972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5975 \begin_layout Standard
5981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5984 \begin_layout Standard
5990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5993 \begin_layout Standard
5999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6002 \begin_layout Standard
6008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6011 \begin_layout Standard
6018 <row topline="true">
6019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6022 \begin_layout Standard
6028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6031 \begin_layout Standard
6037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6040 \begin_layout Standard
6046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6049 \begin_layout Standard
6055 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6058 \begin_layout Standard
6065 <row topline="true">
6066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6069 \begin_layout Standard
6075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6078 \begin_layout Standard
6084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6087 \begin_layout Standard
6093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6096 \begin_layout Standard
6102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6105 \begin_layout Standard
6112 <row topline="true">
6113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6116 \begin_layout Standard
6122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6125 \begin_layout Standard
6131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6134 \begin_layout Standard
6140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6143 \begin_layout Standard
6149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6152 \begin_layout Standard
6159 <row topline="true" bottomline="true">
6160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6163 \begin_layout Standard
6169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6172 \begin_layout Standard
6178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6181 \begin_layout Standard
6187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6190 \begin_layout Standard
6196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6199 \begin_layout Standard
6214 \begin_layout Standard
6228 \begin_layout Standard
6232 \begin_layout Subsubsection
6233 Different Captions for Table Pages
6234 \begin_inset LatexCommand index
6235 name "Longtables ! Different Captions for Pages"
6242 \begin_layout Standard
6243 When the other captions should differ from the one of the first table page,
6250 command with a non-empty short title in a dummy caption row marked as first
6252 The caption used for the other table pages is inserted as
6258 command without a short title in a dummy caption row that is marked as
6260 When this caption shouldn't include the table number, use the command
6273 The label to reference the table is inserted into the caption of the first
6277 \begin_inset LatexCommand ref
6278 reference "tab:DiffCaptions"
6282 is an example for a longtable with different heading where the second caption
6283 doesn't include the table number.
6286 \begin_layout Standard
6288 \begin_inset Tabular
6289 <lyxtabular version="3" rows="60" columns="3">
6290 <features islongtable="true">
6291 <column alignment="left" valignment="top" leftline="true" width="0cm">
6292 <column alignment="left" valignment="top" rightline="true" width="0pt">
6293 <column alignment="right" valignment="top" rightline="true" width="0pt">
6294 <row endfirsthead="true">
6295 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6298 \begin_layout Standard
6302 \begin_layout Standard
6306 caption[Example Phone List]{Example Phone List
6312 \begin_inset LatexCommand label
6313 name "tab:DiffCaptions"
6321 \begin_layout Standard
6337 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6340 \begin_layout Standard
6344 \begin_layout Standard
6356 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6359 \begin_layout Standard
6363 \begin_layout Standard
6376 <row topline="true" bottomline="true" endfirsthead="true">
6377 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6380 \begin_layout Standard
6383 Example Phone List (ignore the names)
6388 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6391 \begin_layout Standard
6397 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6400 \begin_layout Standard
6407 <row topline="true" bottomline="true" endfirsthead="true">
6408 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6411 \begin_layout Standard
6419 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6422 \begin_layout Standard
6428 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6431 \begin_layout Standard
6440 <row bottomline="true" endhead="true">
6441 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6444 \begin_layout Standard
6448 \begin_layout Standard
6452 caption*{Continued Example Phone List}
6466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6469 \begin_layout Standard
6473 \begin_layout Standard
6485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6488 \begin_layout Standard
6492 \begin_layout Standard
6505 <row topline="true" bottomline="true" endhead="true">
6506 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6509 \begin_layout Standard
6517 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6520 \begin_layout Standard
6526 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6529 \begin_layout Standard
6536 <row topline="true" bottomline="true" endhead="true">
6537 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6540 \begin_layout Standard
6548 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6551 \begin_layout Standard
6557 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6560 \begin_layout Standard
6569 <row topline="true" bottomline="true" endfoot="true">
6570 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6573 \begin_layout Standard
6574 continued on next page
6579 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6582 \begin_layout Standard
6588 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6591 \begin_layout Standard
6599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6602 \begin_layout Standard
6610 <cell alignment="center" valignment="top" topline="true" usebox="none">
6613 \begin_layout Standard
6619 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6622 \begin_layout Standard
6630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6633 \begin_layout Standard
6641 <cell alignment="center" valignment="top" topline="true" usebox="none">
6644 \begin_layout Standard
6650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6653 \begin_layout Standard
6661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6664 \begin_layout Standard
6672 <cell alignment="center" valignment="top" topline="true" usebox="none">
6675 \begin_layout Standard
6681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6684 \begin_layout Standard
6692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6695 \begin_layout Standard
6703 <cell alignment="center" valignment="top" topline="true" usebox="none">
6706 \begin_layout Standard
6712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6715 \begin_layout Standard
6723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6726 \begin_layout Standard
6734 <cell alignment="center" valignment="top" topline="true" usebox="none">
6737 \begin_layout Standard
6743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6746 \begin_layout Standard
6754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6757 \begin_layout Standard
6765 <cell alignment="center" valignment="top" topline="true" usebox="none">
6768 \begin_layout Standard
6774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6777 \begin_layout Standard
6785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6788 \begin_layout Standard
6796 <cell alignment="center" valignment="top" topline="true" usebox="none">
6799 \begin_layout Standard
6805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6808 \begin_layout Standard
6816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6819 \begin_layout Standard
6827 <cell alignment="center" valignment="top" topline="true" usebox="none">
6830 \begin_layout Standard
6836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6839 \begin_layout Standard
6847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6850 \begin_layout Standard
6858 <cell alignment="center" valignment="top" topline="true" usebox="none">
6861 \begin_layout Standard
6867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6870 \begin_layout Standard
6878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6881 \begin_layout Standard
6889 <cell alignment="center" valignment="top" topline="true" usebox="none">
6892 \begin_layout Standard
6898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6901 \begin_layout Standard
6909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6912 \begin_layout Standard
6920 <cell alignment="center" valignment="top" topline="true" usebox="none">
6923 \begin_layout Standard
6929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6932 \begin_layout Standard
6940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6943 \begin_layout Standard
6951 <cell alignment="center" valignment="top" topline="true" usebox="none">
6954 \begin_layout Standard
6960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6963 \begin_layout Standard
6971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6974 \begin_layout Standard
6982 <cell alignment="center" valignment="top" topline="true" usebox="none">
6985 \begin_layout Standard
6991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6994 \begin_layout Standard
7002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7005 \begin_layout Standard
7013 <cell alignment="center" valignment="top" topline="true" usebox="none">
7016 \begin_layout Standard
7022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7025 \begin_layout Standard
7033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7036 \begin_layout Standard
7045 \begin_layout Standard
7056 <cell alignment="center" valignment="top" topline="true" usebox="none">
7059 \begin_layout Standard
7065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7068 \begin_layout Standard
7076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7079 \begin_layout Standard
7087 <cell alignment="center" valignment="top" topline="true" usebox="none">
7090 \begin_layout Standard
7096 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7099 \begin_layout Standard
7107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7110 \begin_layout Standard
7118 <cell alignment="center" valignment="top" topline="true" usebox="none">
7121 \begin_layout Standard
7127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7130 \begin_layout Standard
7138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7141 \begin_layout Standard
7149 <cell alignment="center" valignment="top" topline="true" usebox="none">
7152 \begin_layout Standard
7158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7161 \begin_layout Standard
7169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7172 \begin_layout Standard
7180 <cell alignment="center" valignment="top" topline="true" usebox="none">
7183 \begin_layout Standard
7189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7192 \begin_layout Standard
7200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7203 \begin_layout Standard
7211 <cell alignment="center" valignment="top" topline="true" usebox="none">
7214 \begin_layout Standard
7220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7223 \begin_layout Standard
7231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7234 \begin_layout Standard
7242 <cell alignment="center" valignment="top" topline="true" usebox="none">
7245 \begin_layout Standard
7251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7254 \begin_layout Standard
7262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7265 \begin_layout Standard
7273 <cell alignment="center" valignment="top" topline="true" usebox="none">
7276 \begin_layout Standard
7282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7285 \begin_layout Standard
7293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7296 \begin_layout Standard
7304 <cell alignment="center" valignment="top" topline="true" usebox="none">
7307 \begin_layout Standard
7313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7316 \begin_layout Standard
7324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7327 \begin_layout Standard
7335 <cell alignment="center" valignment="top" topline="true" usebox="none">
7338 \begin_layout Standard
7344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7347 \begin_layout Standard
7355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7358 \begin_layout Standard
7366 <cell alignment="center" valignment="top" topline="true" usebox="none">
7369 \begin_layout Standard
7375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7378 \begin_layout Standard
7386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7389 \begin_layout Standard
7397 <cell alignment="center" valignment="top" topline="true" usebox="none">
7400 \begin_layout Standard
7406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7409 \begin_layout Standard
7417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7420 \begin_layout Standard
7428 <cell alignment="center" valignment="top" topline="true" usebox="none">
7431 \begin_layout Standard
7437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7440 \begin_layout Standard
7448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7451 \begin_layout Standard
7459 <cell alignment="center" valignment="top" topline="true" usebox="none">
7462 \begin_layout Standard
7468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7471 \begin_layout Standard
7479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7482 \begin_layout Standard
7490 <cell alignment="center" valignment="top" topline="true" usebox="none">
7493 \begin_layout Standard
7499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7502 \begin_layout Standard
7510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7513 \begin_layout Standard
7521 <cell alignment="center" valignment="top" topline="true" usebox="none">
7524 \begin_layout Standard
7530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7533 \begin_layout Standard
7540 <row bottomline="true">
7541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7544 \begin_layout Standard
7552 <cell alignment="center" valignment="top" topline="true" usebox="none">
7555 \begin_layout Standard
7561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7564 \begin_layout Standard
7571 <row bottomline="true">
7572 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7575 \begin_layout Standard
7581 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7584 \begin_layout Standard
7590 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7593 \begin_layout Standard
7601 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7604 \begin_layout Standard
7612 <cell alignment="center" valignment="top" topline="true" usebox="none">
7615 \begin_layout Standard
7621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7624 \begin_layout Standard
7632 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7635 \begin_layout Standard
7643 <cell alignment="center" valignment="top" topline="true" usebox="none">
7646 \begin_layout Standard
7652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7655 \begin_layout Standard
7663 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7666 \begin_layout Standard
7674 <cell alignment="center" valignment="top" topline="true" usebox="none">
7677 \begin_layout Standard
7683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7686 \begin_layout Standard
7694 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7697 \begin_layout Standard
7705 <cell alignment="center" valignment="top" topline="true" usebox="none">
7708 \begin_layout Standard
7714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7717 \begin_layout Standard
7725 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7728 \begin_layout Standard
7736 <cell alignment="center" valignment="top" topline="true" usebox="none">
7739 \begin_layout Standard
7745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7748 \begin_layout Standard
7756 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7759 \begin_layout Standard
7767 <cell alignment="center" valignment="top" topline="true" usebox="none">
7770 \begin_layout Standard
7776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7779 \begin_layout Standard
7787 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7790 \begin_layout Standard
7798 <cell alignment="center" valignment="top" topline="true" usebox="none">
7801 \begin_layout Standard
7807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7810 \begin_layout Standard
7818 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7821 \begin_layout Standard
7829 <cell alignment="center" valignment="top" topline="true" usebox="none">
7832 \begin_layout Standard
7838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7841 \begin_layout Standard
7849 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7852 \begin_layout Standard
7860 <cell alignment="center" valignment="top" topline="true" usebox="none">
7863 \begin_layout Standard
7869 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7872 \begin_layout Standard
7880 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7883 \begin_layout Standard
7891 <cell alignment="center" valignment="top" topline="true" usebox="none">
7894 \begin_layout Standard
7900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7903 \begin_layout Standard
7911 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7914 \begin_layout Standard
7922 <cell alignment="center" valignment="top" topline="true" usebox="none">
7925 \begin_layout Standard
7931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7934 \begin_layout Standard
7942 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7945 \begin_layout Standard
7953 <cell alignment="center" valignment="top" topline="true" usebox="none">
7956 \begin_layout Standard
7962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7965 \begin_layout Standard
7973 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7976 \begin_layout Standard
7984 <cell alignment="center" valignment="top" topline="true" usebox="none">
7987 \begin_layout Standard
7993 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7996 \begin_layout Standard
8004 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8007 \begin_layout Standard
8015 <cell alignment="center" valignment="top" topline="true" usebox="none">
8018 \begin_layout Standard
8024 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8027 \begin_layout Standard
8035 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8038 \begin_layout Standard
8046 <cell alignment="center" valignment="top" topline="true" usebox="none">
8049 \begin_layout Standard
8055 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8058 \begin_layout Standard
8066 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8069 \begin_layout Standard
8077 <cell alignment="center" valignment="top" topline="true" usebox="none">
8080 \begin_layout Standard
8086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8089 \begin_layout Standard
8097 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8100 \begin_layout Standard
8108 <cell alignment="center" valignment="top" topline="true" usebox="none">
8111 \begin_layout Standard
8117 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8120 \begin_layout Standard
8128 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8131 \begin_layout Standard
8139 <cell alignment="center" valignment="top" topline="true" usebox="none">
8142 \begin_layout Standard
8148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8151 \begin_layout Standard
8159 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8162 \begin_layout Standard
8170 <cell alignment="center" valignment="top" topline="true" usebox="none">
8173 \begin_layout Standard
8179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8182 \begin_layout Standard
8189 <row bottomline="true">
8190 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8193 \begin_layout Standard
8201 <cell alignment="center" valignment="top" topline="true" usebox="none">
8204 \begin_layout Standard
8210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8213 \begin_layout Standard
8220 <row bottomline="true" endlastfoot="true">
8221 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8224 \begin_layout Standard
8230 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8233 \begin_layout Standard
8239 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8242 \begin_layout Standard
8256 \begin_layout Section
8257 Special Longtable Issues
8260 \begin_layout Subsection
8261 Longtable Calculation
8262 \begin_inset LatexCommand index
8263 name "Longtables ! Calculation"
8270 \begin_layout Standard
8271 LaTeX calculates the height of table pages and their page breaks using so
8273 Chunks are pieces of the tables that are at once in LaTeX's memory.
8274 The default value is historically set to only 20 table rows.
8275 If you are using longtables with many pages this may slow down the creation
8277 You can safely increase the chunk size to values of 100-1000 by adding
8278 this command line to your document preamble:
8281 \begin_layout Standard
8286 setcounter{LTchunksize}{100}
8289 \begin_layout Subsection
8290 Floats and Longtables
8291 \begin_inset LatexCommand index
8292 name "Longtables ! Floats"
8299 \begin_layout Standard
8300 There might be problems when a float appears on the same page where a longtable
8302 To avoid such situation, add the command
8308 as ERT before your longtable.
8311 \begin_layout Subsection
8313 \begin_inset LatexCommand index
8314 name "Longtables ! Forced Page Breaks"
8321 \begin_layout Standard
8322 By default tables are only broken between rows.
8323 If you have a cell with multiples lines and want to have a page break within
8324 the cell, insert the new line command
8325 \begin_inset Quotes eld
8337 \begin_inset Quotes erd
8340 as ERT at this point of the cell where it should be broken.
8349 command you have to insert in ERT so many
8350 \begin_inset Quotes eld
8358 \begin_inset Quotes erd
8361 characters like the number of the following table columns.
8366 is the character to separate table cells.
8367 Write in ERT after each
8371 the content of the corresponding following cell and delete the content
8382 command, insert so many
8386 characters like the number of table columns before the current column.
8387 In Table\InsetSpace ~
8389 \begin_inset LatexCommand ref
8390 reference "tab:ForcedPagebreak"
8394 the cell that should be broken is in the second column followed by another
8396 Therefore the following command was inserted in the cell as ERT behind
8398 \begin_inset Quotes eld
8406 \begin_inset Quotes erd
8412 \begin_layout Standard
8424 \begin_layout Standard
8426 \begin_inset Quotes eld
8430 \begin_inset Quotes erd
8433 in the third columns of the row was deleted.
8434 If your footer row of the longtable has for a certain reason no upper line
8435 but you would have a horizontal line where the cell is broken, use this
8439 \begin_layout Standard
8453 \begin_layout Standard
8454 When the cell to be broken is in the last column, the command
8457 \begin_layout Standard
8467 \begin_layout Standard
8468 must be inserted as ERT at the beginning of the cell.
8469 This assures that the part of the cell that will be displayed on the new
8470 page appears with the full width.
8474 \begin_layout Standard
8476 \begin_inset Tabular
8477 <lyxtabular version="3" rows="39" columns="3">
8478 <features islongtable="true">
8479 <column alignment="left" valignment="top" leftline="true" width="0cm">
8480 <column alignment="left" valignment="top" rightline="true" width="3cm">
8481 <column alignment="right" valignment="top" rightline="true" width="0pt">
8482 <row endfirsthead="true">
8483 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8486 \begin_layout Standard
8490 \begin_layout Standard
8494 caption[Table with forced page break in table cell]{Table with forced page
8501 \begin_inset LatexCommand label
8502 name "tab:ForcedPagebreak"
8510 \begin_layout Standard
8526 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8529 \begin_layout Standard
8533 \begin_layout Standard
8545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8548 \begin_layout Standard
8552 \begin_layout Standard
8565 <row topline="true" bottomline="true" endfirsthead="true">
8566 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8569 \begin_layout Standard
8572 Example Phone List (ignore the names)
8577 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8580 \begin_layout Standard
8586 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8589 \begin_layout Standard
8596 <row topline="true" bottomline="true" endfirsthead="true">
8597 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8600 \begin_layout Standard
8608 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8611 \begin_layout Standard
8617 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8620 \begin_layout Standard
8629 <row bottomline="true" endhead="true">
8630 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8633 \begin_layout Standard
8637 \begin_layout Standard
8641 caption{Continued table with forced page break in table cell}
8655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8658 \begin_layout Standard
8662 \begin_layout Standard
8674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8677 \begin_layout Standard
8681 \begin_layout Standard
8694 <row topline="true" bottomline="true" endhead="true">
8695 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8698 \begin_layout Standard
8706 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8709 \begin_layout Standard
8715 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8718 \begin_layout Standard
8725 <row topline="true" bottomline="true" endhead="true">
8726 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8729 \begin_layout Standard
8737 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8740 \begin_layout Standard
8746 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8749 \begin_layout Standard
8758 <row topline="true" bottomline="true" endfoot="true">
8759 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8762 \begin_layout Standard
8763 continued on next page
8768 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8771 \begin_layout Standard
8777 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8780 \begin_layout Standard
8788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8791 \begin_layout Standard
8799 <cell alignment="center" valignment="top" topline="true" usebox="none">
8802 \begin_layout Standard
8808 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8811 \begin_layout Standard
8819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8822 \begin_layout Standard
8830 <cell alignment="center" valignment="top" topline="true" usebox="none">
8833 \begin_layout Standard
8839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8842 \begin_layout Standard
8850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8853 \begin_layout Standard
8861 <cell alignment="center" valignment="top" topline="true" usebox="none">
8864 \begin_layout Standard
8870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8873 \begin_layout Standard
8881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8884 \begin_layout Standard
8892 <cell alignment="center" valignment="top" topline="true" usebox="none">
8895 \begin_layout Standard
8901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8904 \begin_layout Standard
8912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8915 \begin_layout Standard
8923 <cell alignment="center" valignment="top" topline="true" usebox="none">
8926 \begin_layout Standard
8932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8935 \begin_layout Standard
8943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8946 \begin_layout Standard
8954 <cell alignment="center" valignment="top" topline="true" usebox="none">
8957 \begin_layout Standard
8963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8966 \begin_layout Standard
8974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8977 \begin_layout Standard
8985 <cell alignment="center" valignment="top" topline="true" usebox="none">
8988 \begin_layout Standard
8994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8997 \begin_layout Standard
9005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9008 \begin_layout Standard
9016 <cell alignment="center" valignment="top" topline="true" usebox="none">
9019 \begin_layout Standard
9025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9028 \begin_layout Standard
9036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9039 \begin_layout Standard
9047 <cell alignment="center" valignment="top" topline="true" usebox="none">
9050 \begin_layout Standard
9056 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9059 \begin_layout Standard
9067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9070 \begin_layout Standard
9078 <cell alignment="center" valignment="top" topline="true" usebox="none">
9081 \begin_layout Standard
9087 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9090 \begin_layout Standard
9098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9101 \begin_layout Standard
9109 <cell alignment="center" valignment="top" topline="true" usebox="none">
9112 \begin_layout Standard
9118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9121 \begin_layout Standard
9129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9132 \begin_layout Standard
9140 <cell alignment="center" valignment="top" topline="true" usebox="none">
9143 \begin_layout Standard
9149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9152 \begin_layout Standard
9160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9163 \begin_layout Standard
9171 <cell alignment="center" valignment="top" topline="true" usebox="none">
9174 \begin_layout Standard
9180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9183 \begin_layout Standard
9191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9194 \begin_layout Standard
9202 <cell alignment="center" valignment="top" topline="true" usebox="none">
9205 \begin_layout Standard
9211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9214 \begin_layout Standard
9222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9225 \begin_layout Standard
9233 <cell alignment="center" valignment="top" topline="true" usebox="none">
9236 \begin_layout Standard
9242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9245 \begin_layout Standard
9253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9256 \begin_layout Standard
9264 <cell alignment="center" valignment="top" topline="true" usebox="none">
9267 \begin_layout Standard
9273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9276 \begin_layout Standard
9284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9287 \begin_layout Standard
9295 <cell alignment="center" valignment="top" topline="true" usebox="none">
9298 \begin_layout Standard
9304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9307 \begin_layout Standard
9315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9318 \begin_layout Standard
9326 <cell alignment="center" valignment="top" topline="true" usebox="none">
9329 \begin_layout Standard
9335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9338 \begin_layout Standard
9346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9349 \begin_layout Standard
9357 <cell alignment="center" valignment="top" topline="true" usebox="none">
9360 \begin_layout Standard
9366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9369 \begin_layout Standard
9377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9380 \begin_layout Standard
9388 <cell alignment="center" valignment="top" topline="true" usebox="none">
9391 \begin_layout Standard
9397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9400 \begin_layout Standard
9408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9411 \begin_layout Standard
9419 <cell alignment="center" valignment="top" topline="true" usebox="none">
9422 \begin_layout Standard
9428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9431 \begin_layout Standard
9439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9442 \begin_layout Standard
9450 <cell alignment="center" valignment="top" topline="true" usebox="none">
9453 \begin_layout Standard
9459 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9462 \begin_layout Standard
9470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9473 \begin_layout Standard
9481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9484 \begin_layout Standard
9486 Fürst von Montecompatri, 11.
9487 Fürst von Sulmona und Vivaro, 10.
9488 Fürst von Rossano, 5.
9489 Herzog von Canemorte, 11.
9490 Herzog von Palombara, 5.
9491 Herzog von Castelchiodato,
9495 \begin_layout Standard
9504 \begin_layout Standard
9512 Herzog von Poggionativo, 11.
9513 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9514 Graf von Valinfreda, 11.
9515 Baron von Cropalati, 11.
9516 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9524 \begin_layout Standard
9532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9535 \begin_layout Standard
9543 <cell alignment="center" valignment="top" topline="true" usebox="none">
9546 \begin_layout Standard
9552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9555 \begin_layout Standard
9563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9566 \begin_layout Standard
9574 <cell alignment="center" valignment="top" topline="true" usebox="none">
9577 \begin_layout Standard
9583 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9586 \begin_layout Standard
9594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9597 \begin_layout Standard
9605 <cell alignment="center" valignment="top" topline="true" usebox="none">
9608 \begin_layout Standard
9614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9617 \begin_layout Standard
9625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9628 \begin_layout Standard
9636 <cell alignment="center" valignment="top" topline="true" usebox="none">
9639 \begin_layout Standard
9645 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9648 \begin_layout Standard
9656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9659 \begin_layout Standard
9667 <cell alignment="center" valignment="top" topline="true" usebox="none">
9670 \begin_layout Standard
9676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9679 \begin_layout Standard
9687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9690 \begin_layout Standard
9698 <cell alignment="center" valignment="top" topline="true" usebox="none">
9701 \begin_layout Standard
9707 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9710 \begin_layout Standard
9718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9721 \begin_layout Standard
9729 <cell alignment="center" valignment="top" topline="true" usebox="none">
9732 \begin_layout Standard
9738 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9741 \begin_layout Standard
9748 <row bottomline="true">
9749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9752 \begin_layout Standard
9760 <cell alignment="center" valignment="top" topline="true" usebox="none">
9763 \begin_layout Standard
9769 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9772 \begin_layout Standard
9779 <row endlastfoot="true">
9780 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9783 \begin_layout Standard
9789 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9792 \begin_layout Standard
9798 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9801 \begin_layout Standard
9815 \begin_layout Section
9816 Multiple Lines Columns and Rows
9819 \begin_layout Subsection
9820 Multiple Lines in Table Cells
9821 \begin_inset LatexCommand label
9822 name "sub:Multiple-Lines-in"
9827 \begin_inset LatexCommand index
9828 name "Multiple Lines in Table Cells"
9833 \begin_inset LatexCommand index
9834 name "Table ! Linebreaks"
9841 \begin_layout Standard
9843 \begin_inset Float table
9849 \begin_layout Caption
9850 \begin_inset LatexCommand label
9851 name "tab:Table-with-multiple"
9855 Table with multiple lines in cells
9858 \begin_layout Standard
9860 \begin_inset Tabular
9861 <lyxtabular version="3" rows="3" columns="3">
9863 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9864 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
9865 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
9866 <row topline="true">
9867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9870 \begin_layout Standard
9875 \begin_layout Standard
9889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9892 \begin_layout Standard
9898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9901 \begin_layout Standard
9908 <row topline="true">
9909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9912 \begin_layout Standard
9918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9921 \begin_layout Standard
9927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9930 \begin_layout Standard
9937 <row topline="true" bottomline="true">
9938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9941 \begin_layout Standard
9947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9950 \begin_layout Standard
9956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9959 \begin_layout Standard
9978 \begin_layout Standard
9979 Adjusting a fixed width for a column, enables to enter text as a paragraph
9980 with multiple lines and hyphenations.
9983 \begin_layout Standard
9984 To produce Table\InsetSpace ~
9986 \begin_inset LatexCommand ref
9987 reference "tab:Table-with-multiple"
9991 , create a 3×3 table, mark the first cell and right-click on it.
9992 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
9993 cm and choose centered
9994 for the vertical and horizontal alignment.
9995 As our text is smaller than than 2.5\InsetSpace \thinspace{}
9996 cm, only one line will appear.
9997 To get two lines, we add a line break with the command
10000 \begin_layout Standard
10008 \begin_layout Standard
10010 If the text is wider than the set cell width it will automatically be broken
10014 \begin_layout Standard
10015 To center the text inside the two other cells of the first row vertically,
10016 right-click in the second cell, adjust a fixed width of 0.5\InsetSpace \thinspace{}
10018 centered alignments.
10019 Then do the same for the third cell of the row.
10022 \begin_layout Standard
10023 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10024 by LaTeX if it is the first entry.
10025 Therefore you need to insert something, to make the word not being the
10026 first entry: Add the command
10029 \begin_layout Standard
10037 \begin_layout Standard
10038 in ERT before the word.
10039 As the space is zero, it doesn't change the output.
10042 \begin_inset LatexCommand ref
10043 reference "tab:Table-with-and"
10050 \begin_layout Standard
10051 \begin_inset Float table
10056 \begin_layout Caption
10057 \begin_inset LatexCommand label
10058 name "tab:Table-with-and"
10062 Table with and without hyphenation
10065 \begin_layout Standard
10069 \begin_inset Tabular
10070 <lyxtabular version="3" rows="3" columns="3">
10072 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10073 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10074 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10075 <row topline="true">
10076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10079 \begin_layout Standard
10080 verylongtablecellword
10085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10088 \begin_layout Standard
10094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10097 \begin_layout Standard
10104 <row topline="true">
10105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10108 \begin_layout Standard
10114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10117 \begin_layout Standard
10123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10126 \begin_layout Standard
10133 <row topline="true" bottomline="true">
10134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10137 \begin_layout Standard
10143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10146 \begin_layout Standard
10152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10155 \begin_layout Standard
10169 \begin_inset Tabular
10170 <lyxtabular version="3" rows="3" columns="3">
10172 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10173 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10174 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10175 <row topline="true">
10176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10179 \begin_layout Standard
10183 \begin_layout Standard
10192 verylongtablecellword
10197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10200 \begin_layout Standard
10206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10209 \begin_layout Standard
10216 <row topline="true">
10217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10220 \begin_layout Standard
10226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10229 \begin_layout Standard
10235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10238 \begin_layout Standard
10245 <row topline="true" bottomline="true">
10246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10249 \begin_layout Standard
10255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10258 \begin_layout Standard
10264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10267 \begin_layout Standard
10288 \begin_layout Standard
10294 \begin_layout Subsection
10296 \begin_inset LatexCommand label
10297 name "sub:Multicolumns"
10302 \begin_inset LatexCommand index
10303 name "Multicolumns"
10308 \begin_inset LatexCommand index
10309 name "Table ! Multicolumns"
10316 \begin_layout Subsubsection
10320 \begin_layout Standard
10321 To span a cell over multiple columns, mark as much cells within a line that
10322 should be one spanned cell and use either the table-toolbar button
10323 \begin_inset Graphics
10324 filename ../images/tabular-feature_multicolumn.xpm
10331 Edit\SpecialChar \menuseparator
10332 Table\SpecialChar \menuseparator
10335 , or right click on the marked cells and choose multicolumn in the appearing
10336 table dialog under the tab
10343 \begin_layout Standard
10344 Multicolumns have there own cell settings.
10345 That means changing cell borders, cell alignment, and the width only affects
10347 Here is an example table with a multicolumn cell in the first row and one
10348 in the last row without the upper border:
10351 \begin_layout Standard
10353 \begin_inset Tabular
10354 <lyxtabular version="3" rows="3" columns="4">
10355 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10356 <column alignment="center" valignment="top" leftline="true" width="0pt">
10357 <column alignment="center" valignment="middle" leftline="true" width="0">
10358 <column alignment="center" valignment="top" leftline="true" width="0in">
10359 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10360 <row topline="true" bottomline="true">
10361 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10364 \begin_layout Standard
10370 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10373 \begin_layout Standard
10383 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10386 \begin_layout Standard
10392 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10395 \begin_layout Standard
10402 <row topline="true">
10403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10406 \begin_layout Standard
10421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10424 \begin_layout Standard
10430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10433 \begin_layout Standard
10439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10442 \begin_layout Standard
10449 <row topline="true" bottomline="true">
10450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10453 \begin_layout Standard
10459 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10462 \begin_layout Standard
10468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10471 \begin_layout Standard
10477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10480 \begin_layout Standard
10494 \begin_layout Subsubsection
10495 Multicolumn Calculations
10496 \begin_inset LatexCommand label
10497 name "sub:Multicolumn-Calculations"
10502 \begin_inset LatexCommand index
10503 name "Multicolumns ! Calculations"
10510 \begin_layout Standard
10511 LyX supports multicolumns directly, but we have to take notice of the cell
10512 width of the columns spanned by the multicolumn cell.
10515 \begin_layout Standard
10516 \begin_inset Float table
10521 \begin_layout Caption
10522 \begin_inset LatexCommand label
10523 name "tab:Table-with-centered"
10527 Table with centered multicolumn text above two columns that have exactly
10528 half the width of the multicolumn cell
10529 \begin_inset OptArg
10532 \begin_layout Standard
10533 Perfect multicolumn table
10541 \begin_layout Standard
10543 \begin_inset Tabular
10544 <lyxtabular version="3" rows="3" columns="3">
10546 <column alignment="center" valignment="middle" leftline="true" width="0" special="|>{\centering}m{1.25cm-6.2pt}">
10547 <column alignment="center" valignment="middle" leftline="true" width="0">
10548 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10549 <row topline="true">
10550 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special="|>{\centering}m{2.5cm}|">
10553 \begin_layout Standard
10554 multiple lines multicolumn
10559 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10562 \begin_layout Standard
10568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10571 \begin_layout Standard
10578 <row topline="true">
10579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10582 \begin_layout Standard
10588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10591 \begin_layout Standard
10597 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10600 \begin_layout Standard
10607 <row topline="true" bottomline="true">
10608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10611 \begin_layout Standard
10617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10620 \begin_layout Standard
10626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10629 \begin_layout Standard
10648 \begin_layout Standard
10649 To create for example Table\InsetSpace ~
10651 \begin_inset LatexCommand ref
10652 reference "tab:Table-with-centered"
10656 , mark the first two cells in the first row a 3×3 table and right-click
10658 Now choose for this cell
10666 and a width of 2.5\InsetSpace \thinspace{}
10667 cm in the table dialog.
10668 The spanned columns should have exactly half the width of the multicolumn
10669 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10670 cm for the first column.
10671 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10673 width - width of first column).
10674 This was done for Table\InsetSpace ~
10676 \begin_inset LatexCommand ref
10677 reference "tab:Table-without-half"
10684 \begin_layout Standard
10685 \begin_inset Float table
10690 \begin_layout Caption
10691 \begin_inset LatexCommand label
10692 name "tab:Table-without-half"
10696 Table where the spanned table columns have not exactly half the width of
10697 the multicolumn cell
10698 \begin_inset OptArg
10701 \begin_layout Standard
10702 Imperfect multicolumn table
10710 \begin_layout Standard
10712 \begin_inset Tabular
10713 <lyxtabular version="3" rows="3" columns="3">
10715 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10716 <column alignment="center" valignment="top" leftline="true" width="0">
10717 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10718 <row topline="true" bottomline="true">
10719 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10722 \begin_layout Standard
10723 multiple lines multicolumn
10728 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10731 \begin_layout Standard
10737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10740 \begin_layout Standard
10747 <row topline="true">
10748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10751 \begin_layout Standard
10757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10760 \begin_layout Standard
10766 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10769 \begin_layout Standard
10776 <row topline="true" bottomline="true">
10777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10780 \begin_layout Standard
10786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10789 \begin_layout Standard
10795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10798 \begin_layout Standard
10817 \begin_layout Standard
10818 You can see that the first column has not the half width of the multicolumn
10819 cell, it is a bit bigger.
10820 The reason is that the given width of a cell
10821 \begin_inset Formula $W_{g}$
10824 is not its total width
10825 \begin_inset Formula $W_{\mathrm{tot}}$
10828 because a cell is always a bit larger than its given width.
10829 Appendix\InsetSpace ~
10831 \begin_inset LatexCommand eqref
10832 reference "cha:Explanation-of-Equation"
10836 explains it in detail.
10839 \begin_layout Standard
10840 The needed given width
10841 \begin_inset Formula $W_{g\, n}$
10848 columns are spanned columns can be calculated, so that each column has
10850 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10854 \begin_inset Formula \begin{equation}
10855 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10862 \begin_layout Standard
10863 In our case we have
10864 \begin_inset Formula $n=2$
10868 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10871 cm and the default values for the lengths, so that equation
10872 \begin_inset LatexCommand ref
10878 \begin_inset Formula \begin{equation}
10879 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10886 \begin_layout Standard
10887 To enable calculations in LaTeX, the LaTeX-package
10891 must be loaded with the document preamble line
10892 \begin_inset LatexCommand index
10893 name "LaTeX-packages ! calc"
10900 \begin_layout Standard
10908 \begin_layout Standard
10909 LyX does not allow to calculate lengths in the width-field of the table
10911 Therefore you have to format the column by inserting a LaTeX-argument in
10913 Here is an overview about the arguments:
10916 \begin_layout Itemize
10921 creates cell with a fixed width, its text is vertically top-aligned
10924 \begin_layout Itemize
10929 creates cell with a fixed width, its text is vertically centered
10932 \begin_layout Itemize
10937 creates cell with a fixed width, its text is vertically bottom-aligned
10940 \begin_layout Standard
10941 By entering a LaTeX-argument, all cell properties set in the table dialog
10944 \begin_inset Note Greyedout
10947 \begin_layout Standard
10952 Due to a bug, LyX shows the overwritten properties anyway.
10957 As the text should be horizontally centered, the command
10964 You can now enter the following LaTeX-argument for the first spanned column:
10967 \begin_layout Standard
10972 centering}m{1.25cm-6.2pt}
10975 \begin_layout Standard
10977 \begin_inset Quotes eld
10985 \begin_inset Quotes erd
10988 at the beginning draws the border line and the command
10992 means, that the commands inside the braces are applied before the cell
10996 \begin_layout Standard
10997 Although we have chosen centered alignment for the text of the multicolumn
10998 cell, it is still left aligned.
10999 This is because LyX only applies the alignment to single columns.
11000 So we have to use for the multicolumn the LaTeX-argument
11003 \begin_layout Standard
11008 centering}m{2.5cm}|
11011 \begin_layout Subsection
11013 \begin_inset LatexCommand index
11019 \begin_inset LatexCommand index
11020 name "Table ! Multirows"
11025 \begin_inset LatexCommand index
11026 name "LaTeX-packages ! multirow"
11033 \begin_layout Standard
11034 In contrary to multicolumns multirows are not yet supported by LyX so a
11035 bit of ERT needs to be used.
11036 To use multirows load the LaTeX-package
11040 in your document preamble with the command
11043 \begin_layout Standard
11048 usepackage{multirow}
11051 \begin_layout Standard
11052 Multirows are created with the command
11055 \begin_layout Standard
11060 multirow{number of rows}{cell width}{cell entry}
11063 \begin_layout Standard
11064 To create the following table:
11067 \begin_layout Standard
11072 \begin_layout Standard
11086 \begin_inset Tabular
11087 <lyxtabular version="3" rows="3" columns="3">
11089 <column alignment="center" valignment="top" leftline="true" width="0">
11090 <column alignment="center" valignment="top" leftline="true" width="0">
11091 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11092 <row topline="true">
11093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11096 \begin_layout Standard
11102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11105 \begin_layout Standard
11111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11114 \begin_layout Standard
11121 <row topline="true">
11122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11125 \begin_layout Standard
11129 \begin_layout Standard
11133 multirow{2}{2.5cm}{
11142 \begin_layout Standard
11154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11157 \begin_layout Standard
11163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11166 \begin_layout Standard
11173 <row topline="true" bottomline="true">
11174 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11177 \begin_layout Standard
11183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11186 \begin_layout Standard
11192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11195 \begin_layout Standard
11210 \begin_layout Standard
11226 \begin_layout Standard
11227 create a 3×3 table.
11228 To get rid of the line above the last cell in the first column, the cell
11229 is marked as multicolumn and the upper border is unset.
11230 The multirow is now created in the second row of the first column by inserting
11234 \begin_layout Standard
11239 multirow{2}{2.5cm}{
11242 \begin_layout Standard
11244 According to the command parameters the multirow spans now two rows and
11245 has a width of 2.5\InsetSpace \thinspace{}
11247 The content of the multirow cell follows outside the ERT box and the command
11248 is finished with a right brace
11252 in another ERT-box behind the text.
11255 \begin_layout Standard
11262 left-aligns its content by default.
11263 To override the default, renew the command
11272 \begin_layout Standard
11284 \begin_layout Standard
11285 in ERT in the document preamble.
11286 Then all entries of multirow cells in the document are centered.
11287 If centering is only needed for several tables, you can renew the command
11288 in an ERT box just before the table instead of the preamble.
11289 If the text should be right-aligned, replace
11302 To return to left-alignment
11311 \begin_layout Section
11313 \begin_inset LatexCommand label
11314 name "sec:Booktabs"
11319 \begin_inset LatexCommand index
11325 \begin_inset LatexCommand index
11326 name "LaTeX-packages ! booktabs"
11333 \begin_layout Standard
11334 Tables are often typeset in books similar to Table\InsetSpace ~
11336 \begin_inset LatexCommand ref
11337 reference "tab:Example-booktabs-table"
11342 They are therefore called
11343 \begin_inset Quotes eld
11351 \begin_inset Quotes erd
11355 To make a table a booktabs-table use the option
11358 \begin_layout Standard
11359 \begin_inset Float table
11365 \begin_layout Caption
11366 \begin_inset LatexCommand label
11367 name "tab:Example-booktabs-table"
11371 Example booktabs-table
11374 \begin_layout Standard
11376 \begin_inset Tabular
11377 <lyxtabular version="3" rows="9" columns="4">
11379 <column alignment="center" valignment="top" width="0">
11380 <column alignment="center" valignment="top" width="0">
11381 <column alignment="center" valignment="top" width="0">
11382 <column alignment="center" valignment="top" width="0">
11384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11387 \begin_layout Standard
11391 \begin_layout Standard
11405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11408 \begin_layout Standard
11410 \begin_inset Formula $\,$
11418 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11421 \begin_layout Standard
11423 \begin_inset Formula $\,$
11431 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11434 \begin_layout Standard
11442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11445 \begin_layout Standard
11449 \begin_layout Standard
11462 \begin_layout Standard
11471 Detector thickness [
11475 \begin_layout Standard
11489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11492 \begin_layout Standard
11498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11501 \begin_layout Standard
11507 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11510 \begin_layout Standard
11518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11521 \begin_layout Standard
11525 \begin_layout Standard
11539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11542 \begin_layout Standard
11548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11551 \begin_layout Standard
11557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11560 \begin_layout Standard
11568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11571 \begin_layout Standard
11575 \begin_layout Standard
11584 Spatial resolution [
11588 \begin_layout Standard
11602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11605 \begin_layout Standard
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" rightline="true" usebox="none">
11623 \begin_layout Standard
11631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11634 \begin_layout Standard
11638 \begin_layout Standard
11648 \begin_inset Formula $f_{\mathrm{max}}$
11656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11659 \begin_layout Standard
11665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11668 \begin_layout Standard
11674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11677 \begin_layout Standard
11685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11688 \begin_layout Standard
11692 \begin_layout Standard
11705 \begin_layout Standard
11709 cmidrule(l{10pt}){1-1}
11714 LSF-spatial resolution
11719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11722 \begin_layout Standard
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" rightline="true" usebox="none">
11740 \begin_layout Standard
11748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11751 \begin_layout Standard
11756 \begin_layout Standard
11770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11773 \begin_layout Standard
11779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11782 \begin_layout Standard
11788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11791 \begin_layout Standard
11799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11802 \begin_layout Standard
11808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11811 \begin_layout Standard
11817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11820 \begin_layout Standard
11826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11829 \begin_layout Standard
11837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11840 \begin_layout Standard
11844 \begin_layout Standard
11858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11861 \begin_layout Standard
11867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11870 \begin_layout Standard
11876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11879 \begin_layout Standard
11898 \begin_layout Standard
11899 This chapter describes how to create booktabs tables in LyX\InsetSpace ~
11903 \begin_layout Subsection
11905 \begin_inset LatexCommand index
11906 name "Booktabs ! Basic Commands"
11913 \begin_layout Standard
11914 To be able to use booktabs the LaTeX-package
11918 must be loaded in the document preamble with the line
11919 \begin_inset LatexCommand index
11920 name "LaTeX-packages ! booktabs"
11927 \begin_layout Standard
11932 usepackage{booktabs}
11935 \begin_layout Standard
11936 \begin_inset VSpace medskip
11942 \begin_layout Standard
11943 The first line of a booktabs table is created with the command
11946 \begin_layout Standard
11954 \begin_layout Standard
11955 that is inserted into the first table cell in ERT as first cell entry.
11956 The optional width specifies the thickness of the line; its default is
11957 0.08\InsetSpace \thinspace{}
11959 You can use all units listed in appendix\InsetSpace ~
11961 \begin_inset LatexCommand ref
11962 reference "cha:Units-available-in"
11968 Note that all commands in ERT must end with a space when
11969 text follows the ERT-box!
11972 \begin_layout Standard
11973 The last line of a booktabs table is created with the ERT command
11976 \begin_layout Standard
11984 \begin_layout Standard
11985 in the first cell of the last row.
11986 The last row is only for this command and could not have any other content.
11987 The default for the width is the same as for
11996 \begin_layout Standard
11997 Horizontal lines that span over all columns are created with the ERT command
12000 \begin_layout Standard
12008 \begin_layout Standard
12009 The default for the width is 0.05\InsetSpace \thinspace{}
12013 \begin_layout Standard
12014 Lines that don't span over all table columns are created with the ERT command
12017 \begin_layout Standard
12022 cmidrule[width](trim){startcol-endcol}
12025 \begin_layout Standard
12026 The default for the width is 0.03\InsetSpace \thinspace{}
12028 Startcol is the number of the column where the line starts and endcol is
12029 the column number where the line ends.
12030 The endcol always needs to be specified also when the line should span
12032 The optional parameter trim could be either
12040 where the trimwidth is also optional.
12041 Using for example the parameter
12045 means that the line is trimmed from its left end by 2pt.
12046 If you don't specify the trimwidth the lines are trimmed by the default
12047 of 0.5\InsetSpace \thinspace{}
12051 \begin_layout Standard
12064 commands must be inserted as first cell entry of the first cell of a row.
12065 The lines are created above the row.
12068 \begin_layout Standard
12069 \begin_inset VSpace bigskip
12074 \begin_inset LatexCommand ref
12075 reference "tab:Example-booktabs-table"
12079 was created using the commands
12082 \begin_layout Standard
12092 \begin_layout Standard
12099 in the third row, and
12102 \begin_layout Standard
12107 cmidrule(l{10pt}){1-1}
12110 \begin_layout Standard
12114 \begin_layout Subsection
12116 \begin_inset LatexCommand index
12117 name "Booktabs ! Special Commands"
12124 \begin_layout Standard
12125 To separate rows vertically the following ERT command can be used
12128 \begin_layout Standard
12133 addlinespace[width]
12136 \begin_layout Standard
12137 The default width is 0.5 em.
12138 In Table\InsetSpace ~
12140 \begin_inset LatexCommand ref
12141 reference "tab:Example-booktabs-table"
12151 was inserted to the first cell of some rows.
12152 The space is created above the rows where the command is inserted
12155 \begin_layout Standard
12156 \begin_inset VSpace medskip
12162 \begin_layout Standard
12163 You might want to have overlapping
12169 s like in Table\InsetSpace ~
12171 \begin_inset LatexCommand ref
12172 reference "tab:Special-booktabs-table"
12177 This can be achieved with the ERT command
12180 \begin_layout Standard
12190 \begin_layout Standard
12191 The command that was used for the second row of Table\InsetSpace ~
12193 \begin_inset LatexCommand ref
12194 reference "tab:Special-booktabs-table"
12201 \begin_layout Standard
12215 \begin_layout Standard
12216 The command for the sixth row is
12219 \begin_layout Standard
12231 \begin_layout Standard
12232 \begin_inset VSpace bigskip
12238 \begin_layout Standard
12239 The surrounding space of each line in a booktabs table can be specified
12240 and changed in the document preamble.
12241 For more informations about this, we refer to the manual of the booktabs
12243 \begin_inset LatexCommand cite
12249 If you are anyway not satisfied with the spacing, you can use the following
12250 command to produce lines that span over all table columns
12253 \begin_layout Standard
12258 specialrule{width}{space above}{space below}
12261 \begin_layout Standard
12262 \begin_inset Float table
12268 \begin_layout Caption
12269 \begin_inset LatexCommand label
12270 name "tab:Special-booktabs-table"
12274 Special booktabs-table
12277 \begin_layout Standard
12279 \begin_inset Tabular
12280 <lyxtabular version="3" rows="8" columns="4">
12281 <features booktabs="true">
12282 <column alignment="center" valignment="top" width="0">
12283 <column alignment="center" valignment="top" width="0">
12284 <column alignment="center" valignment="top" width="0">
12285 <column alignment="center" valignment="top" width="0">
12286 <row topline="true">
12287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12290 \begin_layout Standard
12296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12299 \begin_layout Standard
12300 Medipix\InsetSpace \thinspace{}
12306 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12309 \begin_layout Standard
12310 Medipix\InsetSpace \thinspace{}
12316 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12319 \begin_layout Standard
12327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12330 \begin_layout Standard
12334 \begin_layout Standard
12347 \begin_layout Standard
12360 \begin_layout Standard
12373 \begin_layout Standard
12382 Detector thickness [
12386 \begin_layout Standard
12400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12403 \begin_layout Standard
12409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12412 \begin_layout Standard
12418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12421 \begin_layout Standard
12428 <row topline="true">
12429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12432 \begin_layout Standard
12438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12441 \begin_layout Standard
12447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12450 \begin_layout Standard
12456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12459 \begin_layout Standard
12466 <row topspace="default">
12467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12470 \begin_layout Standard
12471 Spatial resolution [
12475 \begin_layout Standard
12489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12492 \begin_layout Standard
12498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12501 \begin_layout Standard
12507 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12510 \begin_layout Standard
12517 <row topspace="default">
12518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12521 \begin_layout Standard
12523 \begin_inset Formula $f_{\mathrm{max}}$
12531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12534 \begin_layout Standard
12540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12543 \begin_layout Standard
12549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12552 \begin_layout Standard
12559 <row topline="true">
12560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12563 \begin_layout Standard
12567 \begin_layout Standard
12580 \begin_layout Standard
12589 LSF-spatial resolution
12594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12597 \begin_layout Standard
12603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12606 \begin_layout Standard
12612 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12615 \begin_layout Standard
12623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12626 \begin_layout Standard
12631 \begin_layout Standard
12645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12648 \begin_layout Standard
12654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12657 \begin_layout Standard
12663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12666 \begin_layout Standard
12673 <row bottomline="true">
12674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12677 \begin_layout Standard
12683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12686 \begin_layout Standard
12692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12695 \begin_layout Standard
12701 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12704 \begin_layout Standard
12723 \begin_layout Section
12724 Vertical Table Alignment
12725 \begin_inset LatexCommand index
12726 name "Table ! Alignment"
12733 \begin_layout Standard
12734 To align tables vertically in a text line the table must be inside a box.
12735 The box can then be vertically aligned as described in section\InsetSpace ~
12737 \begin_inset LatexCommand ref
12738 reference "sec:Box-Dialog"
12745 \begin_layout Standard
12746 In the following example the tables are inside a minipage
12750 \begin_layout Standard
12751 Minipages are described in section\InsetSpace ~
12753 \begin_inset LatexCommand ref
12754 reference "sec:Minipages"
12763 box that has a width of 15\InsetSpace \thinspace{}
12767 \begin_layout Itemize
12769 \begin_inset Box Frameless
12778 height_special "totalheight"
12781 \begin_layout Standard
12782 \begin_inset Tabular
12783 <lyxtabular version="3" rows="3" columns="3">
12785 <column alignment="center" valignment="top" leftline="true" width="0">
12786 <column alignment="center" valignment="top" leftline="true" width="0">
12787 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12788 <row topline="true">
12789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12792 \begin_layout Standard
12798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12801 \begin_layout Standard
12807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12810 \begin_layout Standard
12817 <row topline="true">
12818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12821 \begin_layout Standard
12827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12830 \begin_layout Standard
12836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12839 \begin_layout Standard
12846 <row topline="true" bottomline="true">
12847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12850 \begin_layout Standard
12856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12859 \begin_layout Standard
12865 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12868 \begin_layout Standard
12888 \begin_layout Standard
12900 \begin_inset Box Frameless
12909 height_special "totalheight"
12912 \begin_layout Standard
12913 \begin_inset Tabular
12914 <lyxtabular version="3" rows="3" columns="3">
12916 <column alignment="center" valignment="top" leftline="true" width="0">
12917 <column alignment="center" valignment="top" leftline="true" width="0">
12918 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12919 <row topline="true">
12920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12923 \begin_layout Standard
12929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12932 \begin_layout Standard
12938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12941 \begin_layout Standard
12948 <row topline="true">
12949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12952 \begin_layout Standard
12958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12961 \begin_layout Standard
12967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12970 \begin_layout Standard
12977 <row topline="true" bottomline="true">
12978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12981 \begin_layout Standard
12987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12990 \begin_layout Standard
12996 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12999 \begin_layout Standard
13019 \begin_layout Standard
13029 \begin_layout Itemize
13031 \begin_inset Box Frameless
13040 height_special "totalheight"
13043 \begin_layout Standard
13044 \begin_inset Tabular
13045 <lyxtabular version="3" rows="3" columns="3">
13047 <column alignment="center" valignment="top" leftline="true" width="0">
13048 <column alignment="center" valignment="top" leftline="true" width="0">
13049 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13050 <row topline="true">
13051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13054 \begin_layout Standard
13060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13063 \begin_layout Standard
13069 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13072 \begin_layout Standard
13079 <row topline="true">
13080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13083 \begin_layout Standard
13089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13092 \begin_layout Standard
13098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13101 \begin_layout Standard
13108 <row topline="true" bottomline="true">
13109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13112 \begin_layout Standard
13118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13121 \begin_layout Standard
13127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13130 \begin_layout Standard
13149 \begin_layout Itemize
13151 \begin_inset Box Frameless
13160 height_special "totalheight"
13163 \begin_layout Standard
13164 \begin_inset Tabular
13165 <lyxtabular version="3" rows="3" columns="3">
13167 <column alignment="center" valignment="top" leftline="true" width="0">
13168 <column alignment="center" valignment="top" leftline="true" width="0">
13169 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13170 <row topline="true">
13171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13174 \begin_layout Standard
13180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13183 \begin_layout Standard
13189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13192 \begin_layout Standard
13199 <row topline="true">
13200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13203 \begin_layout Standard
13209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13212 \begin_layout Standard
13218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13221 \begin_layout Standard
13228 <row topline="true" bottomline="true">
13229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13232 \begin_layout Standard
13238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13241 \begin_layout Standard
13247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13250 \begin_layout Standard
13270 \begin_layout Standard
13282 \begin_inset Box Frameless
13291 height_special "totalheight"
13294 \begin_layout Standard
13295 \begin_inset Tabular
13296 <lyxtabular version="3" rows="3" columns="3">
13298 <column alignment="center" valignment="top" leftline="true" width="0">
13299 <column alignment="center" valignment="top" leftline="true" width="0">
13300 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13301 <row topline="true">
13302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13305 \begin_layout Standard
13311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13314 \begin_layout Standard
13320 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13323 \begin_layout Standard
13330 <row topline="true">
13331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13334 \begin_layout Standard
13340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13343 \begin_layout Standard
13349 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13352 \begin_layout Standard
13359 <row topline="true" bottomline="true">
13360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13363 \begin_layout Standard
13369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13372 \begin_layout Standard
13378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13381 \begin_layout Standard
13401 \begin_layout Standard
13411 \begin_layout Standard
13412 As you can see, the content of the first and last table row is not correctly
13413 aligned with the text line where the table is in.
13414 To get this alignment, the minipage box must be set into a raisebox
13418 \begin_layout Standard
13419 Raiseboxes are described in section\InsetSpace ~
13421 \begin_inset LatexCommand ref
13422 reference "sub:Vertical-Alignment"
13432 In the example above the second table in the first item is aligned using
13436 \begin_layout Standard
13446 \begin_layout Standard
13448 Behind the box the closing brace
13452 is inserted as ERT.
13453 For the second table in the last item the command
13456 \begin_layout Standard
13466 \begin_layout Standard
13470 \begin_layout Standard
13471 \begin_inset Note Greyedout
13474 \begin_layout Standard
13479 The alignment of the table row content to the surrounding text line is not
13481 The needed factor of the
13487 command for this alignment depends on the document font, the font size,
13488 and the table line thickness.
13496 \begin_layout Section
13498 \begin_inset LatexCommand label
13499 name "sec:Colored-Tables"
13504 \begin_inset LatexCommand index
13505 name "Table ! Color"
13512 \begin_layout Subsection
13514 \begin_inset LatexCommand index
13515 name "Table Color ! for Cells"
13520 \begin_inset LatexCommand index
13521 name "Color ! for Table Cells"
13528 \begin_layout Standard
13529 \begin_inset Float table
13535 \begin_layout Caption
13536 \begin_inset LatexCommand label
13537 name "tab:Table-colored-without"
13541 Table colored without using the package
13546 \begin_inset OptArg
13549 \begin_layout Standard
13550 Table without colortbl
13558 \begin_layout Standard
13560 \begin_inset Tabular
13561 <lyxtabular version="3" rows="3" columns="3">
13563 <column alignment="center" valignment="top" leftline="true" width="0">
13564 <column alignment="center" valignment="top" leftline="true" width="0">
13565 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13566 <row topline="true">
13567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13570 \begin_layout Standard
13578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13581 \begin_layout Standard
13589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13592 \begin_layout Standard
13601 <row topline="true">
13602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13605 \begin_layout Standard
13613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13616 \begin_layout Standard
13624 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13627 \begin_layout Standard
13636 <row topline="true" bottomline="true">
13637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13640 \begin_layout Standard
13648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13651 \begin_layout Standard
13659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13662 \begin_layout Standard
13683 \begin_layout Standard
13684 If you only need colored text, mark the cells and choose a color in the
13687 Edit\SpecialChar \menuseparator
13692 This was used to create Table\InsetSpace ~
13694 \begin_inset LatexCommand ref
13695 reference "tab:Table-colored-without"
13700 In any other case you have to use the LaTeX-package
13705 \begin_inset LatexCommand index
13706 name "LaTeX-packages ! colortbl"
13713 \begin_layout Standard
13714 To create colored tables,
13718 must be loaded in the preamble with the line
13721 \begin_layout Standard
13726 usepackage{colortbl}
13729 \begin_layout Standard
13730 The color of a column is adjusted with the command
13733 \begin_layout Standard
13738 columncolor{name of color}
13741 \begin_layout Standard
13747 More about the command
13751 is described in section\InsetSpace ~
13753 \begin_inset LatexCommand ref
13754 reference "sub:Multicolumn-Calculations"
13761 \begin_layout Standard
13762 The following color names are predefined:
13765 \begin_layout Standard
13799 \begin_layout Standard
13800 \begin_inset VSpace medskip
13806 \begin_layout Standard
13807 You can also define your own color with the command
13810 \begin_layout Standard
13815 definecolor{color name}{color model}{color values}
13818 \begin_layout Standard
13819 The color model can be
13822 \begin_layout Labeling
13823 \labelwidthstring 00.00.0000
13824 cmyk: cyan, magenta, yellow, black
13827 \begin_layout Labeling
13828 \labelwidthstring 00.00.0000
13829 rgb: red, green blue
13832 \begin_layout Labeling
13833 \labelwidthstring 00.00.0000
13837 \begin_layout Standard
13838 and the color values are comma separated numbers between 0 and 1 describing
13839 the factor for the corresponding color of the color model.
13842 \begin_layout Standard
13843 You can e.\InsetSpace \thinspace{}
13849 " in the preamble with
13852 \begin_layout Standard
13857 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13860 \begin_layout Standard
13868 \begin_layout Standard
13873 definecolor{lightgray}{gray}{0.8}
13876 \begin_layout Standard
13877 \begin_inset VSpace medskip
13883 \begin_layout Standard
13884 Lines are colored with the command
13887 \begin_layout Standard
13892 rowcolor{name of color}
13895 \begin_layout Standard
13896 and cells are colored with the command
13899 \begin_layout Standard
13904 cellcolor{name of color}
13907 \begin_layout Standard
13908 Both commands are inserted at the beginning of a cell as ERT.
13911 \begin_layout Standard
13912 To color characters in the table, mark the cells and use the LyX menu
13914 Edit\SpecialChar \menuseparator
13919 If a cell contains ERT mark only the characters, otherwise the colored
13920 ERT will cause LaTeX-errors.
13923 \begin_layout Standard
13924 \begin_inset VSpace bigskip
13930 \begin_layout Standard
13931 To create Table\InsetSpace ~
13933 \begin_inset LatexCommand ref
13934 reference "tab:Table-colored-using"
13938 do the following: The color of the first column should be
13946 \begin_layout Standard
13951 columncolor{darkgreen}
13956 \begin_layout Standard
13957 as LaTeX-argument for this column.
13958 The first row should be blue, therefore the ERT command
13961 \begin_layout Standard
13969 \begin_layout Standard
13970 is inserted to the first cell of this row.
13971 Note that this overwrites the column color for the first cell.
13972 The last cell of the last row is colored magenta by inserting the ERT command
13975 \begin_layout Standard
13983 \begin_layout Standard
13984 The characters could now be colored using the menu
13986 Edit\SpecialChar \menuseparator
13993 \begin_layout Standard
13994 \begin_inset Float table
14000 \begin_layout Caption
14001 \begin_inset LatexCommand label
14002 name "tab:Table-colored-using"
14006 Table colored using the package
14011 \begin_inset OptArg
14014 \begin_layout Standard
14015 Table with colortbl
14023 \begin_layout Standard
14025 \begin_inset Tabular
14026 <lyxtabular version="3" rows="3" columns="3">
14028 <column alignment="center" valignment="top" leftline="true" width="0" special=">{\columncolor{darkgreen}\centering}c">
14029 <column alignment="center" valignment="top" width="0">
14030 <column alignment="center" valignment="top" width="0">
14032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14035 \begin_layout Standard
14039 \begin_layout Standard
14055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14058 \begin_layout Standard
14066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14069 \begin_layout Standard
14079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14082 \begin_layout Standard
14090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14093 \begin_layout Standard
14101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14104 \begin_layout Standard
14114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14117 \begin_layout Standard
14125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14128 \begin_layout Standard
14136 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14139 \begin_layout Standard
14143 \begin_layout Standard
14172 \begin_layout Subsection
14174 \begin_inset LatexCommand index
14175 name "Table Color ! for Lines"
14180 \begin_inset LatexCommand index
14181 name "Color ! for Table Lines"
14188 \begin_layout Standard
14189 As described in section\InsetSpace ~
14191 \begin_inset LatexCommand ref
14192 reference "sub:Line-Thickness"
14196 , the line thickness for all lines in a table can be adjusted with the length
14204 It is set to 1.5\InsetSpace \thinspace{}
14205 pt for all tables of this section.
14209 \begin_layout Standard
14215 arrayrulewidth}{1.5pt}
14223 \begin_layout Standard
14224 To color vertical lines for example with green, create the following column
14225 format in the document preamble, according to the description in section\InsetSpace ~
14227 \begin_inset LatexCommand ref
14228 reference "sub:Customized-Format"
14235 \begin_layout Standard
14240 newcolumntype{W}{!{
14247 \begin_layout Standard
14248 For Table\InsetSpace ~
14250 \begin_inset LatexCommand ref
14251 reference "tab:Table-with-vertical-colored"
14258 \begin_layout Standard
14264 \begin_layout Standard
14265 was used for the last column and
14268 \begin_layout Standard
14274 \begin_layout Standard
14275 for the other columns.
14278 \begin_layout Standard
14279 If you want to have several colors, define more column formats.
14282 \begin_layout Standard
14283 \begin_inset Float table
14288 \begin_layout Caption
14289 \begin_inset LatexCommand label
14290 name "tab:Table-with-vertical-colored"
14294 Table with colored vertical lines
14297 \begin_layout Standard
14299 \begin_inset Tabular
14300 <lyxtabular version="3" rows="3" columns="3">
14302 <column alignment="center" valignment="top" leftline="true" width="0" special="Wc">
14303 <column alignment="center" valignment="top" width="0" special="Wc">
14304 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0" special="WcW">
14305 <row topline="true">
14306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14309 \begin_layout Standard
14315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14318 \begin_layout Standard
14324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14327 \begin_layout Standard
14334 <row topline="true">
14335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14338 \begin_layout Standard
14344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14347 \begin_layout Standard
14353 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14356 \begin_layout Standard
14363 <row topline="true" bottomline="true">
14364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14367 \begin_layout Standard
14373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14376 \begin_layout Standard
14382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14385 \begin_layout Standard
14404 \begin_layout Standard
14405 \begin_inset VSpace bigskip
14408 To color horizontal lines for example with red, like in Table\InsetSpace ~
14410 \begin_inset LatexCommand ref
14411 reference "tab:Table-with-horizontal-colored"
14415 , insert these commands in ERT before the table or table float:
14418 \begin_layout Standard
14435 arrayrulecolor{red}
14439 arrayrulecolor{black}}
14442 \begin_layout Standard
14446 \begin_layout Standard
14457 \begin_layout Standard
14465 arrayrulecolor{red}
14469 arrayrulecolor{black}}
14475 \begin_inset Float table
14480 \begin_layout Caption
14481 \begin_inset LatexCommand label
14482 name "tab:Table-with-horizontal-colored"
14486 Table with colored horizontal lines
14489 \begin_layout Standard
14491 \begin_inset Tabular
14492 <lyxtabular version="3" rows="3" columns="3">
14494 <column alignment="center" valignment="top" leftline="true" width="0">
14495 <column alignment="center" valignment="top" leftline="true" width="0">
14496 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14497 <row topline="true">
14498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14501 \begin_layout Standard
14507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14510 \begin_layout Standard
14516 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14519 \begin_layout Standard
14526 <row topline="true">
14527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14530 \begin_layout Standard
14536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14539 \begin_layout Standard
14545 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14548 \begin_layout Standard
14555 <row topline="true" bottomline="true">
14556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14559 \begin_layout Standard
14565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14568 \begin_layout Standard
14574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14577 \begin_layout Standard
14596 \begin_layout Standard
14600 \begin_layout Standard
14612 \begin_layout Standard
14613 To return to the default line color black, insert this command in ERT behind
14614 the table or table float:
14617 \begin_layout Standard
14629 \begin_layout Standard
14632 \begin_inset LatexCommand ref
14633 reference "tab:Table-with-colored"
14637 is an example with colored vertical and horizontal lines.
14640 \begin_layout Standard
14641 \begin_inset Float table
14646 \begin_layout Caption
14647 \begin_inset LatexCommand label
14648 name "tab:Table-with-colored"
14652 Table with colored lines
14655 \begin_layout Standard
14657 \begin_inset Tabular
14658 <lyxtabular version="3" rows="3" columns="3">
14660 <column alignment="center" valignment="top" leftline="true" width="0" special="Wc">
14661 <column alignment="center" valignment="top" width="0" special="Wc">
14662 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0" special="WcW">
14663 <row topline="true">
14664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14667 \begin_layout Standard
14673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14676 \begin_layout Standard
14682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14685 \begin_layout Standard
14692 <row topline="true">
14693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14696 \begin_layout Standard
14702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14705 \begin_layout Standard
14711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14714 \begin_layout Standard
14721 <row topline="true" bottomline="true">
14722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14725 \begin_layout Standard
14731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14734 \begin_layout Standard
14740 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14743 \begin_layout Standard
14762 \begin_layout Standard
14766 \begin_layout Standard
14782 \begin_layout Standard
14786 \begin_layout Standard
14792 arrayrulewidth}{0.4pt}
14800 \begin_layout Section
14801 Table Customization
14802 \begin_inset LatexCommand index
14803 name "Table Customization"
14808 \begin_inset LatexCommand index
14809 name "Table ! Customization"
14816 \begin_layout Subsection
14818 \begin_inset LatexCommand label
14819 name "sub:Extra-Row-Height"
14824 \begin_inset LatexCommand index
14825 name "Table Customization ! Extra Row Height"
14832 \begin_layout Standard
14833 Large letters or those with a bigger height like
14841 often have not enough space between under the upper cell border.
14842 With the preamble line
14845 \begin_layout Standard
14852 extrarowheight}{2pt}
14855 \begin_layout Standard
14856 you can add 2\InsetSpace \thinspace{}
14857 pt extra height to all cells of all tables.
14858 Although this often looks better, it has the disadvantage that the cell
14859 texts are no longer exactly vertically centered.
14862 \begin_layout Standard
14863 An alternative method for extra row height is described in section\InsetSpace ~
14865 \begin_inset LatexCommand ref
14866 reference "sub:Vertical-Alignment"
14873 \begin_layout Subsection
14874 Special Cell Alignment
14875 \begin_inset LatexCommand index
14876 name "Table Customization ! Special Cell Alignment"
14883 \begin_layout Standard
14884 Sometimes it looks better when the cell entries of a column are aligned
14885 with a special character, e.\InsetSpace \thinspace{}
14887 with the decimal separator as in Table\InsetSpace ~
14889 \begin_inset LatexCommand ref
14890 reference "tab:Table-cells-of"
14897 \begin_layout Standard
14898 \begin_inset Float table
14903 \begin_layout Caption
14904 \begin_inset LatexCommand label
14905 name "tab:Table-cells-of"
14909 Table cells of a column aligned with the decimal separator.
14912 \begin_layout Standard
14914 \begin_inset Tabular
14915 <lyxtabular version="3" rows="4" columns="2">
14917 <column alignment="right" valignment="top" width="0">
14918 <column alignment="left" valignment="top" width="0" special="@{}l">
14919 <row bottomline="true">
14920 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
14923 \begin_layout Standard
14929 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14932 \begin_layout Standard
14940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14943 \begin_layout Standard
14949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14952 \begin_layout Standard
14960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14963 \begin_layout Standard
14969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14972 \begin_layout Standard
14980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14983 \begin_layout Standard
14989 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14992 \begin_layout Standard
15011 \begin_layout Standard
15012 This table was created with a 4×2 table.
15013 The heading is a centered multicolumn.
15014 The first column is right-aligned and contains the digits before the decimal
15015 point and the decimal point.
15016 The second column is left aligned and contains the digits after the decimal
15018 To omit the space that is normally between two table columns, use the following
15019 LaTeX-argument for the second column:
15022 \begin_layout Standard
15028 \begin_layout Standard
15029 If you need a vertical line right beside the second column, use this LaTeX-argum
15035 \begin_layout Standard
15038 \begin_inset LatexCommand ref
15039 reference "tab:Several-table-cell"
15043 shows some example alignments.
15044 For the alignment with the relation sign, you must add the second smallest
15045 math-space at the beginning of the last column to get the correct space
15046 surrounding the relation sign.
15049 \begin_layout Standard
15050 \begin_inset Float table
15055 \begin_layout Caption
15056 \begin_inset LatexCommand label
15057 name "tab:Several-table-cell"
15061 Several table cell alignments.
15064 \begin_layout Standard
15066 \begin_inset Tabular
15067 <lyxtabular version="3" rows="4" columns="6">
15069 <column alignment="right" valignment="top" width="0">
15070 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l|">
15071 <column alignment="right" valignment="top" width="0">
15072 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l|">
15073 <column alignment="right" valignment="top" width="0">
15074 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15075 <row bottomline="true">
15076 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15079 \begin_layout Standard
15085 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15088 \begin_layout Standard
15094 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15097 \begin_layout Standard
15103 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15106 \begin_layout Standard
15112 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15115 \begin_layout Standard
15121 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15124 \begin_layout Standard
15132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15135 \begin_layout Standard
15141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15144 \begin_layout Standard
15145 24\InsetSpace \thinspace{}
15151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15154 \begin_layout Standard
15155 \begin_inset Formula $10\cdot$
15163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15166 \begin_layout Standard
15167 \begin_inset Formula $10^{\mbox{-}17}$
15175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15178 \begin_layout Standard
15179 \begin_inset Formula $\Gamma(t)\propto$
15187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15190 \begin_layout Standard
15191 \begin_inset Formula $\:\Upsilon(t)$
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 768\InsetSpace \thinspace{}
15220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15223 \begin_layout Standard
15224 \begin_inset Formula $5.78\cdot$
15232 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15235 \begin_layout Standard
15236 \begin_inset Formula $10^{7}$
15244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15247 \begin_layout Standard
15248 \begin_inset Formula $A\ne$
15256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15259 \begin_layout Standard
15260 \begin_inset Formula $\: B_{\mathrm{red}}$
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 6\InsetSpace \thinspace{}
15289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15292 \begin_layout Standard
15294 \begin_inset Formula $33.5\cdot$
15302 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15305 \begin_layout Standard
15306 \begin_inset Formula $10^{4}$
15314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15317 \begin_layout Standard
15318 \begin_inset Formula $\sin(\alpha)\ge$
15326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15329 \begin_layout Standard
15330 \begin_inset Formula $\:\sin(\beta)$
15351 \begin_layout Standard
15352 \begin_inset VSpace bigskip
15355 There is also the LaTeX-package
15360 \begin_inset LatexCommand index
15361 name "LaTeX-packages ! dcolumn"
15365 that provides table cell alignments.
15366 But this unfortunately treats the cell entries as math and doesn't allow
15367 formulas in table cells: The first column of Table\InsetSpace ~
15369 \begin_inset LatexCommand ref
15370 reference "tab:Several-table-cell"
15378 like the first column in Table\InsetSpace ~
15380 \begin_inset LatexCommand ref
15381 reference "tab:Alignments-when"
15385 and only with some tricks like the expected.
15386 The alignment of the second and third column of Table\InsetSpace ~
15388 \begin_inset LatexCommand ref
15389 reference "tab:Several-table-cell"
15393 is not possible with
15400 \begin_layout Standard
15401 \begin_inset Float table
15407 \begin_layout Caption
15408 \begin_inset LatexCommand label
15409 name "tab:Alignments-when"
15413 Alignments when LaTeX-package dcolumn is used.
15414 For the second and third alignment some tricks were used.
15417 \begin_layout Standard
15419 \begin_inset Tabular
15420 <lyxtabular version="3" rows="4" columns="3">
15422 <column alignment="center" valignment="top" rightline="true" width="0" special="D{×}{\times}{-1}|">
15423 <column alignment="center" valignment="top" width="0" special="D{×}{\times}{4.9}|">
15424 <column alignment="center" valignment="top" rightline="true" width="0" special="D{~}{\,}{9.7}">
15425 <row bottomline="true">
15426 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15429 \begin_layout Standard
15435 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15438 \begin_layout Standard
15444 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15447 \begin_layout Standard
15455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15458 \begin_layout Standard
15459 12×24\InsetSpace \thinspace{}
15465 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15468 \begin_layout Standard
15469 12×24\InsetSpace \thinspace{}
15471 \begin_inset Formula $\mbox{bottles}$
15479 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15482 \begin_layout Standard
15484 \begin_inset Formula $\mbox{bottles}$
15494 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15497 \begin_layout Standard
15498 1024×768\InsetSpace \thinspace{}
15504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15507 \begin_layout Standard
15508 1024×768\InsetSpace \thinspace{}
15510 \begin_inset Formula $\mbox{Pixels}$
15518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15521 \begin_layout Standard
15523 \begin_inset Formula $\mbox{Pixels}$
15533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15536 \begin_layout Standard
15537 32×6\InsetSpace \thinspace{}
15543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15546 \begin_layout Standard
15547 32×6\InsetSpace \thinspace{}
15549 \begin_inset Formula $\mbox{cm}$
15557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15560 \begin_layout Standard
15562 \begin_inset Formula $\mbox{cm}$
15583 \begin_layout Subsection
15584 Customized Cell/Column Format
15585 \begin_inset LatexCommand label
15586 name "sub:Customized-Format"
15591 \begin_inset LatexCommand index
15592 name "Table Customization ! Cell/Column Format"
15599 \begin_layout Standard
15600 Calculating the needed width for spanned columns like in section\InsetSpace ~
15602 \begin_inset LatexCommand ref
15603 reference "sub:Multicolumn-Calculations"
15607 is very annoying if you have several tables with multicolumn cells.
15608 To make life easier, you can define a cell/column format in the preamble,
15609 so that it can be used in all tables of the document.
15610 The format is defined with the command
15613 \begin_layout Standard
15618 newcolumntype{name of format}[number of arguments]{commands}
15621 \begin_layout Standard
15622 The format name may only consist of one letter.
15647 are predefined and cannot be used.
15648 But all letters are allowed as capitals.
15651 \begin_layout Standard
15652 \begin_inset VSpace medskip
15658 \begin_layout Standard
15659 For vertically and horizontally centered multicolumn cells with a fixed
15660 width you can define the cell format
15663 \begin_layout Standard
15668 newcolumntype{M}[1]{>{
15675 \begin_layout Standard
15682 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15684 \begin_inset LatexCommand ref
15685 reference "sub:Multiple-Lines-in"
15690 Now you can simply enter
15693 \begin_layout Standard
15699 \begin_layout Standard
15700 as LaTeX-argument in the table dialog to create a multicolumn.
15703 \begin_layout Standard
15704 \begin_inset VSpace bigskip
15710 \begin_layout Standard
15711 For cells spanned by a multicolumn cell, you can define the format
15714 \begin_layout Standard
15719 newcolumntype{S}[2]{>{
15729 \begin_layout Standard
15740 newcolumntype{S}[2]
15744 \begin_layout Standard
15755 arrayrulewidth)*(1-#2))/#2}}
15758 \begin_layout Standard
15759 This format uses equation
15760 \begin_inset LatexCommand eqref
15765 to calculate the needed width so that each spanned cell has the same width.
15768 \begin_layout Standard
15772 \begin_layout Standard
15775 |S{width of multicolumn cell}{number of spanned columns}
15778 \begin_layout Standard
15779 as LaTeX-argument of the column.
15782 \begin_layout Standard
15783 \begin_inset VSpace bigskip
15789 \begin_layout Standard
15790 For colored columns, you can define
15793 \begin_layout Standard
15798 newcolumntype{K}[1]{>{
15805 \begin_layout Standard
15807 \begin_inset Quotes eld
15811 \begin_inset Quotes erd
15814 at the end creates a column with a flexible width whose text is horizontally
15819 \begin_layout Standard
15825 \begin_layout Standard
15829 \begin_layout Standard
15830 \begin_inset VSpace bigskip
15836 \begin_layout Standard
15837 To create Table\InsetSpace ~
15839 \begin_inset LatexCommand ref
15840 reference "tab:Table-using-user-defined"
15844 use the LaTeX-arguments
15847 \begin_layout Standard
15853 \begin_layout Standard
15854 for the first column and the multicolumn,
15857 \begin_layout Standard
15863 \begin_layout Standard
15864 for the the last column, and
15867 \begin_layout Standard
15873 \begin_layout Standard
15874 for the cells in the second column.
15877 \begin_layout Standard
15878 \begin_inset Float table
15884 \begin_layout Caption
15885 \begin_inset LatexCommand label
15886 name "tab:Table-using-user-defined"
15890 Table using user-defined table formats
15893 \begin_layout Standard
15895 \begin_inset Tabular
15896 <lyxtabular version="3" rows="3" columns="4">
15898 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="|M{2.5cm}">
15899 <column alignment="center" valignment="middle" leftline="true" width="0" special="|S{2.5cm}{2}">
15900 <column alignment="center" valignment="middle" leftline="true" width="0">
15901 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="|K{red}|">
15902 <row topline="true">
15903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15906 \begin_layout Standard
15907 verylongtablecellword
15912 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}|">
15915 \begin_layout Standard
15916 multiple lines multicolumn
15921 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15924 \begin_layout Standard
15930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15933 \begin_layout Standard
15940 <row topline="true">
15941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15944 \begin_layout Standard
15950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15953 \begin_layout Standard
15959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15962 \begin_layout Standard
15968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15971 \begin_layout Standard
15978 <row topline="true" bottomline="true">
15979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15982 \begin_layout Standard
15988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15991 \begin_layout Standard
15997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16000 \begin_layout Standard
16006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16009 \begin_layout Standard
16028 \begin_layout Subsection
16030 \begin_inset LatexCommand label
16031 name "sub:Line-Thickness"
16036 \begin_inset LatexCommand index
16037 name "Table Customization ! Line Thickness"
16044 \begin_layout Standard
16045 The line thickness for all lines in a table can be adjusted with the length
16053 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16054 pt, like in Table\InsetSpace ~
16056 \begin_inset LatexCommand ref
16057 reference "tab:Table-with-1.5"
16061 , insert the command
16064 \begin_layout Standard
16071 arrayrulewidth}{1.5pt}
16074 \begin_layout Standard
16075 in ERT before the table or table float.
16076 The changed thickness is valid for all following tables.
16077 To use the default value again, set
16083 to 0.4\InsetSpace \thinspace{}
16084 pt in ERT behind the table or table float.
16087 \begin_layout Standard
16091 \begin_layout Standard
16097 arrayrulewidth}{1.5pt}
16103 \begin_inset Float table
16108 \begin_layout Caption
16109 \begin_inset LatexCommand label
16110 name "tab:Table-with-1.5"
16114 Table with 1.5\InsetSpace \thinspace{}
16118 \begin_layout Standard
16120 \begin_inset Tabular
16121 <lyxtabular version="3" rows="3" columns="3">
16123 <column alignment="center" valignment="top" leftline="true" width="0">
16124 <column alignment="center" valignment="top" leftline="true" width="0">
16125 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16126 <row topline="true">
16127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16130 \begin_layout Standard
16136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16139 \begin_layout Standard
16145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16148 \begin_layout Standard
16155 <row topline="true">
16156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16159 \begin_layout Standard
16165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16168 \begin_layout Standard
16174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16177 \begin_layout Standard
16184 <row topline="true" bottomline="true">
16185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16188 \begin_layout Standard
16194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16197 \begin_layout Standard
16203 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16206 \begin_layout Standard
16226 \begin_layout Standard
16232 arrayrulewidth}{0.4pt}
16240 \begin_layout Standard
16241 \begin_inset VSpace bigskip
16244 To set the line thickness to 1.5\InsetSpace \thinspace{}
16245 pt only for horizontal lines, like in Table\InsetSpace ~
16247 \begin_inset LatexCommand ref
16248 reference "tab:Table-with-horizontal"
16252 , insert these commands in ERT before the table or table float:
16255 \begin_layout Standard
16278 arrayrulewidth 1.5pt}
16288 arrayrulewidth 0.4pt}}
16291 \begin_layout Standard
16292 To return to the default line thickness, insert this command in ERT behind
16293 the table or table float:
16296 \begin_layout Standard
16308 \begin_layout Standard
16312 \begin_layout Standard
16323 \begin_layout Standard
16332 \begin_layout Standard
16340 arrayrulewidth 1.5pt}
16343 \begin_layout Standard
16353 arrayrulewidth 0.4pt}}
16359 \begin_inset Float table
16364 \begin_layout Caption
16365 \begin_inset LatexCommand label
16366 name "tab:Table-with-horizontal"
16370 Table with 1.5\InsetSpace \thinspace{}
16371 pt thick horizontal lines
16374 \begin_layout Standard
16376 \begin_inset Tabular
16377 <lyxtabular version="3" rows="3" columns="3">
16379 <column alignment="center" valignment="top" leftline="true" width="0">
16380 <column alignment="center" valignment="top" leftline="true" width="0">
16381 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16382 <row topline="true">
16383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16386 \begin_layout Standard
16392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16395 \begin_layout Standard
16401 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16404 \begin_layout Standard
16411 <row topline="true">
16412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16415 \begin_layout Standard
16421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16424 \begin_layout Standard
16430 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16433 \begin_layout Standard
16440 <row topline="true" bottomline="true">
16441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16444 \begin_layout Standard
16450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16453 \begin_layout Standard
16459 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16462 \begin_layout Standard
16482 \begin_layout Standard
16498 \begin_layout Standard
16499 \begin_inset VSpace bigskip
16502 To set the line thickness to 1.5\InsetSpace \thinspace{}
16503 pt only for vertical lines, create the following
16504 column format in the document preamble, according to the description in
16505 section\InsetSpace ~
16507 \begin_inset LatexCommand ref
16508 reference "sub:Customized-Format"
16515 \begin_layout Standard
16520 newcolumntype{V}{!{
16522 vrule width 1.5pt}}
16525 \begin_layout Standard
16526 For Table\InsetSpace ~
16528 \begin_inset LatexCommand ref
16529 reference "tab:Table-with-vertical"
16536 \begin_layout Standard
16542 \begin_layout Standard
16543 was used for the last column and
16546 \begin_layout Standard
16552 \begin_layout Standard
16553 for the other columns.
16556 \begin_layout Standard
16557 \begin_inset Float table
16562 \begin_layout Caption
16563 \begin_inset LatexCommand label
16564 name "tab:Table-with-vertical"
16568 Table with 1.5\InsetSpace \thinspace{}
16569 pt thick vertical lines
16572 \begin_layout Standard
16574 \begin_inset Tabular
16575 <lyxtabular version="3" rows="3" columns="3">
16577 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16578 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16579 <column alignment="center" valignment="top" leftline="true" width="0" special="VcV">
16580 <row topline="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
16609 <row topline="true">
16610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16613 \begin_layout Standard
16619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16622 \begin_layout Standard
16628 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16631 \begin_layout Standard
16638 <row topline="true" bottomline="true">
16639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16642 \begin_layout Standard
16648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16651 \begin_layout Standard
16657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16660 \begin_layout Standard
16679 \begin_layout Subsection
16681 \begin_inset LatexCommand index
16682 name "Table Customization ! Dashed Lines"
16689 \begin_layout Standard
16690 \begin_inset Float table
16696 \begin_layout Caption
16697 \begin_inset LatexCommand label
16698 name "tab:Table-with-dashed"
16702 Table with dashed lines
16705 \begin_layout Standard
16707 \begin_inset Tabular
16708 <lyxtabular version="3" rows="5" columns="5">
16710 <column alignment="center" valignment="top" leftline="true" width="0">
16711 <column alignment="center" valignment="top" leftline="true" width="0">
16712 <column alignment="center" valignment="top" width="0" special=":c">
16713 <column alignment="center" valignment="top" leftline="true" width="0">
16714 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16715 <row topline="true" bottomline="true">
16716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16719 \begin_layout Standard
16725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16728 \begin_layout Standard
16734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16737 \begin_layout Standard
16743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16746 \begin_layout Standard
16752 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16755 \begin_layout Standard
16762 <row topline="true">
16763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16766 \begin_layout Standard
16772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16775 \begin_layout Standard
16781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16784 \begin_layout Standard
16790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16793 \begin_layout Standard
16799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16802 \begin_layout Standard
16810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16813 \begin_layout Standard
16817 \begin_layout Standard
16831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16834 \begin_layout Standard
16840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16843 \begin_layout Standard
16849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16852 \begin_layout Standard
16858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16861 \begin_layout Standard
16868 <row topline="true">
16869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16872 \begin_layout Standard
16876 \begin_layout Standard
16890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16893 \begin_layout Standard
16899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
16902 \begin_layout Standard
16908 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
16911 \begin_layout Standard
16917 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16920 \begin_layout Standard
16927 <row topline="true" bottomline="true">
16928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16931 \begin_layout Standard
16937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16940 \begin_layout Standard
16946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16949 \begin_layout Standard
16955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16958 \begin_layout Standard
16964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16967 \begin_layout Standard
16986 \begin_layout Standard
16987 LyX doesn't natively support dashed lines, so you have to use ERT.
16988 As prerequisite the LaTeX-package
16993 \begin_inset LatexCommand index
16994 name "LaTeX-packages ! arydshln"
16998 must be loaded in the document preamble with the command
17001 \begin_layout Standard
17006 usepackage{arydshln}
17009 \begin_layout Standard
17010 To make a vertical line dashed, enter the colon
17011 \begin_inset Quotes eld
17015 \begin_inset Quotes erd
17018 together with the character for the horizontal alignment as LaTeX-argument
17019 in the table cell dialog.
17022 \begin_layout Standard
17023 For a horizontal dashed line add the command
17026 \begin_layout Standard
17034 \begin_layout Standard
17035 in ERT as first element of the first cell in the table row.
17038 \begin_layout Standard
17039 For dashed multicolumn lines use the command
17042 \begin_layout Standard
17047 cdashline{line number
17052 \begin_layout Standard
17053 in ERT as first element of the first cell in the table row.
17054 If you have for example a multicolumn spanning over columns 2 to 4 and
17055 you want to have a dashed line above, add the command
17058 \begin_layout Standard
17066 \begin_layout Standard
17067 as first element of the first cell in the row of the multicolumn.
17070 \begin_layout Standard
17071 \begin_inset VSpace bigskip
17077 \begin_layout Standard
17080 \begin_inset LatexCommand ref
17081 reference "tab:Table-with-dashed"
17086 \begin_inset Quotes eld
17094 \begin_inset Quotes erd
17097 as LaTeX-argument of the third column.
17104 was inserted to the first cell of the third row and the the ERT command
17113 was inserted to the first cell of the fourth row.
17116 \begin_layout Standard
17117 \begin_inset Note Greyedout
17120 \begin_layout Standard
17125 The used LaTeX-package
17129 is apparently not compatible with the LaTeX-package
17134 \begin_inset LatexCommand index
17135 name "LaTeX-packages ! colortbl"
17139 that is used for colored tables in section\InsetSpace ~
17141 \begin_inset LatexCommand ref
17142 reference "sec:Colored-Tables"
17147 That means colored tables cannot have dashed lines.
17155 \begin_layout Chapter
17157 \begin_inset LatexCommand index
17163 \begin_inset LatexCommand label
17171 \begin_layout Section
17173 \begin_inset LatexCommand label
17174 name "sec:FloatIntroduction"
17179 \begin_inset LatexCommand index
17180 name "Floats ! Introduction"
17187 \begin_layout Standard
17188 A float is a block of text associated with some sort of label, which doesn't
17189 have a fixed location.
17191 \begin_inset Quotes eld
17195 \begin_inset Quotes erd
17198 forward or backward a page or two, to wherever it fits best.
17205 Margin\InsetSpace ~
17208 are also floats, because they can float to the next page when there are
17209 too many notes at the page.
17212 \begin_layout Standard
17213 Floats allow a high quality layout.
17214 Images and tables can evenly be spread to the pages to avoid white space
17215 and pages without text.
17216 As the floating often destroys the context between the text and the image/table
17217 , every float can be referenced in the text.
17218 Floats are therefore numbered.
17219 Referencing is described in section\InsetSpace ~
17221 \begin_inset LatexCommand ref
17222 reference "sec:Referencing-Floats"
17229 \begin_layout Standard
17230 To insert a float, use the menu
17232 Insert\SpecialChar \menuseparator
17236 This inserts a box with a label in the
17244 \begin_layout Standard
17249 environment is described in LyX's
17258 into your document.
17259 Every label ends with the character
17260 \begin_inset Quotes eld
17264 \begin_inset Quotes erd
17267 as placeholder for the float number in the output.
17268 The label will automatically be translated to the document language in
17270 Behind the label you can insert the caption text.
17271 The image or table is inserted above or below the caption in a separate
17272 paragraph within the float.
17273 More about the caption placement is described in section\InsetSpace ~
17275 \begin_inset LatexCommand ref
17276 reference "sec:Caption-Placement"
17281 To keep your LyX-document readable, you can open and close the float box
17282 by left-clicking on the box label.
17283 A closed float box looks like this:
17284 \begin_inset Graphics
17285 filename ../clipart/floatQt4.png
17290 -- a gray button with a red label.
17293 \begin_layout Standard
17294 It is recommended to insert floats as a separate paragraph to avoid possible
17295 LaTeX-errors that can occur when the surrounding text is specially formatted.
17298 \begin_layout Standard
17299 Existing figures or tables can be put into a float by marking them and then
17300 pressing the corresponding toolbar button for a new float.
17303 \begin_layout Section
17307 \begin_layout Standard
17308 Besides figure and table floats that are described in section\InsetSpace ~
17310 \begin_inset LatexCommand ref
17311 reference "sec:Figure-Floats"
17316 \begin_inset LatexCommand ref
17317 reference "sec:Table-Floats"
17321 , respectively, LyX offers the float types
17334 \begin_layout Subsection
17336 \begin_inset LatexCommand index
17337 name "Floats ! Algorithm Floats"
17344 \begin_layout Standard
17345 \begin_inset Float algorithm
17351 \begin_layout Caption
17352 \begin_inset LatexCommand label
17353 name "alg:Example-Algorithm-float"
17357 Example Algorithm float
17360 \begin_layout LyX-Code
17363 Sum:= Sum + A(I); /*senseless comment*/
17366 \begin_inset VSpace -4mm
17377 \begin_layout Standard
17378 This float type is inserted with the menu
17380 Insert\SpecialChar \menuseparator
17381 Floats\SpecialChar \menuseparator
17385 It is used for program codes and descriptions of algorithms.
17386 A possible environment for algorithms is the
17390 , described in LyX's
17395 Algorithm\InsetSpace ~
17397 \begin_inset LatexCommand ref
17398 reference "alg:Example-Algorithm-float"
17402 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17403 mm vertical space was added
17404 at the end of the float to have the bottom rule exactly below the last
17408 \begin_layout Standard
17409 The float label is not automatically translated into the document language.
17410 If your document is not in English, you have to do this manually by adding
17415 to the document preamble
17420 \begin_layout Standard
17425 floatname{algorithm}{your\InsetSpace ~
17429 \begin_layout Standard
17436 \begin_inset Quotes eld
17444 \begin_inset Quotes erd
17450 \begin_layout Description
17455 When the LaTeX-package
17460 \begin_inset LatexCommand index
17461 name "LaTeX-packages ! hyperref"
17465 is used to link cross-references to floats in the PDF-output, it must be
17466 loaded in the document preamble before the definition of floats to be able
17467 to reference floats.
17468 As LyX sets the float definition for algorithm floats automatically before
17469 the user editable part of the document preamble, you need to insert the
17470 following preamble lines
17474 the loading command of
17481 \begin_inset VSpace defskip
17488 newfloat{Xalgorithm}{tbp}{loa}
17492 floatname{Xalgorithm}{your\InsetSpace ~
17505 renewenvironment{algorithm}[1][tbp]
17511 \begin_layout Standard
17522 begin{Xalgorithm}[#1]}{
17525 \begin_inset VSpace defskip
17538 \begin_inset Quotes eld
17546 \begin_inset Quotes erd
17552 \begin_layout Standard
17553 Algorithm floats are not by default numbered in the scheme
17554 \begin_inset Quotes eld
17558 \begin_inset Quotes erd
17561 like it is the case for table and figure floats in many document-classes.
17562 To number algorithm floats in the same scheme, add this command to your
17566 \begin_layout Standard
17571 numberwithin{algorithm}{chapter}
17574 \begin_layout Standard
17575 If you use the LaTeX-package
17579 , add this line instead
17587 (the commands from above) to the preamble:
17590 \begin_layout Standard
17595 numberwithin{Xalgorithm}{chapter}
17598 \begin_layout Standard
17599 To be able to use the command
17610 in the document settings the option
17620 \begin_layout Subsection
17622 \begin_inset LatexCommand index
17623 name "Floats ! Text Wrap Floats"
17628 \begin_inset LatexCommand label
17629 name "sub:floatflt-wrap-float"
17636 \begin_layout Standard
17637 This float type is used if you want to
17638 \begin_inset Quotes eld
17642 \begin_inset Quotes erd
17645 text around a figure so that it only occupies some fraction of the column
17647 It can be inserted using the menu
17648 \begin_inset Wrap figure
17653 \begin_layout Standard
17654 \begin_inset Graphics
17655 filename mobius.eps
17658 rotateOrigin center
17665 \begin_layout Caption
17666 \begin_inset LatexCommand label
17667 name "fig:This-is-a"
17671 This is a wrapped figure, and this is the brilliant caption that describes
17673 \begin_inset VSpace medskip
17683 Insert\SpecialChar \menuseparator
17684 Floats\SpecialChar \menuseparator
17689 if the LaTeX-package
17694 \begin_inset LatexCommand index
17695 name "LaTeX-packages ! floatflt"
17703 \begin_layout Standard
17704 Installing a LaTeX-package is explained it in the
17714 The width and placement of the float is adjusted by right-clicking on the
17716 Figure\InsetSpace ~
17718 \begin_inset LatexCommand ref
17719 reference "fig:This-is-a"
17723 is an example text wrap float with a width of 40
17724 \begin_inset Formula $\,$
17731 \begin_layout Standard
17732 Available units are explained in
17733 \begin_inset LatexCommand ref
17734 reference "cha:Units-available-in"
17743 Some space was added under the caption to separate it better from the surroundi
17747 \begin_layout Standard
17752 also supports table wrap floats, but they are not yet supported by LyX.
17753 If you need this, read the documentation of
17758 \begin_inset LatexCommand cite
17766 \begin_layout Standard
17767 \begin_inset Note Greyedout
17770 \begin_layout Standard
17776 wrap float floats are fragile! E.\InsetSpace \thinspace{}
17778 having a figure too close to the bottom
17779 of the page can mess things up in the way that the float doesn't appear
17780 in the output or that it is placed over some other text.
17784 \begin_layout Standard
17785 The better solution is to use the LaTeX-package
17790 \begin_inset LatexCommand index
17791 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
17799 , but it is currently not supported by LyX.
17812 \begin_layout Standard
17816 \begin_layout Itemize
17817 Wrap floats should not be placed in paragraphs that run over a page break.
17818 That means that wrap floats should better be inserted to the exact place
17819 when the document is nearly ready and you are able to estimate where page
17820 breaks will appear.
17823 \begin_layout Itemize
17824 Wrap floats should either be placed in an own paragraph before the paragraph
17825 where they should wrap into or within a paragraph.
17828 \begin_layout Itemize
17829 Wrap floats in consecutive paragraphs may cause troubles, so assure that
17830 there is a text paragraph between them as separator.
17833 \begin_layout Itemize
17834 Wrap floats are not allowed in section headings or tables.
17837 \begin_layout Section
17839 \begin_inset LatexCommand label
17840 name "sec:Referencing-Floats"
17845 \begin_inset LatexCommand index
17846 name "Floats ! References"
17851 \begin_inset LatexCommand index
17859 \begin_layout Standard
17860 To reference a float, insert a label into its caption using the menu
17862 Insert\SpecialChar \menuseparator
17865 or the toolbar button
17866 \begin_inset Graphics
17867 filename ../images/label-insert.xpm
17873 A grey label box like this one:
17874 \begin_inset Graphics
17875 filename ../clipart/labelQt4.png
17880 will be inserted and the label window pops up asking for the label text.
17881 LyX offers as text the first words of the caption with a prefix.
17882 The prefix depends on the float type, e.\InsetSpace \thinspace{}
17884 for figure floats the prefix will
17892 \begin_layout Standard
17893 The label is used as anchor and name for the reference.
17894 You can refer to the label using the menu
17896 Insert\SpecialChar \menuseparator
17899 or the toolbar button
17900 \begin_inset Graphics
17901 filename ../images/dialog-show-new-inset_ref.xpm
17907 A grey cross-reference box like this one:
17908 \begin_inset Graphics
17909 filename ../clipart/referenceQt4.png
17914 will be inserted and the cross-reference window appear showing all labels
17916 If you have multiple LyX-documents opened, choose the one you are working
17917 on from the drop-list at the top of the dialog.
17918 You can now sort the labels alphabetically and then choose one.
17919 At the position of the cross-reference box the float number will appear
17923 \begin_layout Standard
17924 It is recommended to use a protected space between the cross-reference name
17925 and its number to avoid line breaks between them.
17926 If a cross-reference refers to a non-existing label, you will see two question
17927 marks in the output instead of the reference.
17930 \begin_layout Standard
17931 You can change labels at any time by clicking on the label box.
17932 References to the changed label will automatically change its link to the
17933 new label text, so that you don't need to take care about this.
17936 \begin_layout Standard
17943 in the cross-reference window sets the cursor before the referred label.
17944 The button text changes then to Go\InsetSpace ~
17945 Back and you can use it to set the cursor
17946 back to the cross-reference.
17947 Right-clicking on a cross-reference box also sets the cursor before the
17948 referenced label but without a possibility to go back.
17951 \begin_layout Subsection
17952 Cross-reference formats
17953 \begin_inset LatexCommand label
17954 name "sub:Cross-reference-formats"
17959 \begin_inset LatexCommand index
17960 name "References ! Formats"
17967 \begin_layout Standard
17968 There are six varieties of cross-references:
17971 \begin_layout Description
17972 <reference>: prints the float number, this is the default:
17973 \begin_inset LatexCommand ref
17974 reference "fig:Two-distorted-images"
17981 \begin_layout Description
17982 (<reference>): prints the float number within two parentheses, this is the
17983 style normally used to reference formulas, especially when the reference
17985 \begin_inset Quotes eld
17989 \begin_inset Quotes erd
17993 \begin_inset LatexCommand eqref
18001 \begin_layout Description
18002 <page>: prints the page number: Page\InsetSpace ~
18004 \begin_inset LatexCommand pageref
18005 reference "fig:Two-distorted-images"
18012 \begin_layout Description
18015 <page>: prints the text "on page" and the page number:
18016 \begin_inset LatexCommand vpageref
18017 reference "fig:Two-distorted-images"
18024 \begin_layout Description
18025 <reference>\InsetSpace ~
18028 <page>: prints the float number, the text "on page", and
18030 \begin_inset LatexCommand vref
18031 reference "fig:Two-distorted-images"
18038 \begin_layout Description
18039 Formatted\InsetSpace ~
18040 reference: prints a self defined cross-reference format:
18043 \begin_inset LatexCommand prettyref
18044 reference "fig:Two-distorted-images"
18051 \begin_layout Standard
18052 Note that the style <page> won't print the page number if the label is on
18053 the previous, the same, or the next page.
18054 You will e.\InsetSpace \thinspace{}
18057 \begin_inset Quotes eld
18065 \begin_inset Quotes erd
18071 \begin_layout Standard
18072 The number and current page of the referred document part in the output,
18073 is automatically calculated by LaTeX.
18074 The varieties are adjusted in the field
18078 of the cross-reference window, that appear when you click on the cross-referenc
18080 \begin_inset VSpace bigskip
18086 \begin_layout Standard
18087 To define a format for the
18089 Formatted\InsetSpace ~
18092 style, you have to use the following command in the document preamble:
18095 \begin_layout Standard
18100 newrefformat{prefix}{text}
18103 \begin_layout Standard
18104 This formatting command affects all references to labels with the same prefix.
18105 To get the format of the
18107 Formatted\InsetSpace ~
18110 example above, this command was used:
18113 \begin_layout Standard
18124 \begin_layout Standard
18135 ref{#1} printed on page~
18140 \begin_layout Standard
18141 The tilde "~" is the LaTeX equivalent for the protected space.
18148 refers to the float number, the command
18154 to the page number.
18157 \begin_layout Subsection
18158 Automatic Reference Naming
18159 \begin_inset LatexCommand index
18160 name "References ! Automatic Reference Naming"
18167 \begin_layout Standard
18172 provides a very useful feature that cross-references automatically include
18173 the name of the referenced floats (or text parts like sections).
18174 You save to write e.\InsetSpace \thinspace{}
18177 \begin_inset Quotes eld
18181 \begin_inset Quotes erd
18184 before every reference box.
18185 To get this automatic reference naming, you have to load the LaTeX-package
18191 \begin_inset LatexCommand index
18192 name "LaTeX-packages ! hyperref"
18196 in the document preamble with
18199 \begin_layout Standard
18204 usepackage[pdfborder={0 0 0}]{hyperref}
18219 \begin_layout Standard
18224 is used to link cross-references in the DVI- and PDF-output, this means
18225 that the reader of your document will be able to click on a table of content
18226 (TOC) entry or on a reference and he will be shown the referenced document
18232 also creates PDF-bookmarks for every section of your document to make it
18233 easier for readers to navigate through the document.
18234 This is also used in this document but when you have a look in the document
18235 preamble you will find various options in the load command of
18240 To learn more about the
18244 package, we refer to its documentation
18245 \begin_inset LatexCommand cite
18253 \begin_layout Standard
18254 \begin_inset Note Greyedout
18257 \begin_layout Standard
18262 Automatic reference naming cannot be used when you use cross-references
18265 Formatted\InsetSpace ~
18268 style, described in section\InsetSpace ~
18270 \begin_inset LatexCommand ref
18271 reference "sub:Cross-reference-formats"
18276 That is the reason why it is not used in this document.
18284 \begin_layout Subsection
18286 \begin_inset LatexCommand label
18287 name "sub:Reference-Position"
18292 \begin_inset LatexCommand index
18293 name "References ! Reference Position"
18300 \begin_layout Standard
18306 \begin_inset LatexCommand index
18307 name "LaTeX-packages ! hyperref"
18311 to link cross-references in the output, you will see that clicking on an
18312 image float reference jumps to the image label.
18313 The caption will be the first text part on the screen, so that you cannot
18314 see the image without scrolling.
18315 This is because the reference link anchor is placed at the position of
18317 With the use of the package
18322 \begin_inset LatexCommand index
18323 name "LaTeX-packages ! hypcap"
18327 , which is part of the LaTeX-package
18332 \begin_inset LatexCommand index
18333 name "LaTeX-packages ! oberdiek"
18337 , the link anchor is placed at the beginning of a float.
18338 To use this feature for figure floats, load
18342 in the document preamble with the line
18345 \begin_layout Standard
18350 usepackage[figure]{hypcap}
18353 \begin_layout Standard
18358 for all floats but this isn't recommended for stability reasons.
18359 For more informations, have a look at
18364 \begin_inset LatexCommand cite
18372 \begin_layout Standard
18373 \begin_inset Note Greyedout
18376 \begin_layout Standard
18385 must be loaded after
18389 in the document preamble.
18397 \begin_layout Section
18399 \begin_inset LatexCommand label
18400 name "sec:Float-Placement"
18405 \begin_inset LatexCommand index
18406 name "Floats ! Placement"
18413 \begin_layout Standard
18414 Right-clicking on a float-box opens a dialog where you can alter the placement
18415 options that LaTeX uses for positioning the float.
18422 is only useful for two-column documents: If you select it, the float will
18423 span across both columns on the page instead of being confined to just
18428 Rotate\InsetSpace ~
18431 is used to rotate floats, see section
18432 \begin_inset LatexCommand ref
18433 reference "sec:Rotated-Floats"
18440 \begin_layout Standard
18441 You can use one ore more of the following options in the float dialog to
18442 set the placement for a particular float when you uncheck the option
18445 default\InsetSpace ~
18451 \begin_layout Description
18454 possible: try to place the float on the position where it is inserted
18457 \begin_layout Description
18460 page: try to place the float on the top of the current page
18463 \begin_layout Description
18464 Bottom\InsetSpace ~
18466 page: try to place the float on the bottom of the current page
18469 \begin_layout Description
18472 floats: try to place the float on an own page
18475 \begin_layout Standard
18476 The order of the above option is
18481 That means, if you use the default placement, LaTeX will first try out
18494 , and then the others.
18495 If you don't use the default, LaTeX will try only the checked options but
18497 If none of the 4 placements are possible the procedure is internally repeated
18498 but it is tried to put the float on the following page.
18501 \begin_layout Standard
18502 By default, each options has its own rules:
18505 \begin_layout Labeling
18506 \labelwidthstring 00.00.0000
18513 only floats occupying less than 70\InsetSpace \thinspace{}
18514 % of the page can be placed at the top
18524 \begin_layout Labeling
18525 \labelwidthstring 00.00.0000
18528 Bottom\InsetSpace ~
18532 : only floats occupying less than 30\InsetSpace \thinspace{}
18533 % of the page can be placed at the bottom
18544 \begin_layout Labeling
18545 \labelwidthstring 00.00.0000
18552 : only if more than 50\InsetSpace \thinspace{}
18553 % of the page are occupied by floats, several floats
18554 can be set together on a page.
18564 \begin_layout Standard
18565 If you don't like these rules, you can ignore them by using the additional
18568 Ignore\InsetSpace ~
18574 You can also redefine the rules with LaTeX-commands that are given in parenthese
18575 s behind the rules description above.
18576 To increase for example the often too small default of the bottom-rule
18577 to 50\InsetSpace \thinspace{}
18578 % of the page, add this line to your document preamble:
18581 \begin_layout Standard
18588 bottomfraction}{0.5}
18591 \begin_layout Standard
18592 Sometimes you might need, under all circumstances, a float to be placed
18593 exactly at the position where it is inserted.
18594 For this case you can use the option
18600 Use this option very rarely and only if the document is nearly ready to
18602 Because the float is then no longer able to
18603 \begin_inset Quotes eld
18607 \begin_inset Quotes erd
18610 when you change your document and this will often destroy the page layout.
18613 \begin_layout Standard
18614 There are no placement options for text wrap floats, because they are always
18615 surrounded by the text of a certain paragraph.
18616 \begin_inset VSpace bigskip
18622 \begin_layout Standard
18623 Sometimes you have the problem that a float is placed at the top of a page
18624 while its corresponding section starts at the middle of the page, so that
18625 the reader could think the float is part of the previous section.
18626 To avoid this the LaTeX-command
18633 It suppresses a given float placement for the page where it is inserted
18634 and can therefore be used to avoid that floats could be set before a section
18636 To get this, add these commands to your document preamble:
18639 \begin_layout Standard
18661 \begin_layout Standard
18662 You can define the same for all section headings, like chapters and subsections.
18663 This definition is not recommended to be used for small text parts like
18664 subsubsections because LaTeX may then have problems to find a suitable
18668 \begin_layout Standard
18669 \begin_inset VSpace bigskip
18672 In some cases it is required to have all figures/tables at the end of the
18674 For this purpose the LaTeX-package
18679 \begin_inset LatexCommand index
18680 name "LaTeX-packages ! endfloat"
18685 It puts all figure and table floats at the end of the document into own
18687 At the original float position a text hint like
18688 \begin_inset Quotes eld
18693 [Figure\InsetSpace ~
18697 \begin_inset Quotes erd
18701 The endfloat-package is loaded in the preamble with the line
18704 \begin_layout Standard
18709 usepackage[options]{endfloat}
18712 \begin_layout Standard
18713 There are various package options to format the created figure/table sections.
18714 For more information we refer to the
18719 \begin_inset LatexCommand cite
18727 \begin_inset Note Greyedout
18730 \begin_layout Standard
18735 doesn't provide an automatic translation for the text hint, you have to
18736 do this manually, see section\InsetSpace ~
18738 \begin_inset LatexCommand cite
18751 \begin_inset Note Greyedout
18754 \begin_layout Standard
18759 There is currently a bug in
18763 when the caption contains a German
18764 \begin_inset Quotes eld
18768 \begin_inset Quotes erd
18772 Use in this case the command
18773 \begin_inset Quotes eld
18783 \begin_inset Quotes erd
18787 \begin_inset Quotes eld
18791 \begin_inset Quotes erd
18802 \begin_layout Standard
18803 \begin_inset VSpace bigskip
18806 For more details about float placements, have a look at LaTeX books,
18807 \begin_inset LatexCommand cite
18808 key "latexcompanion,latexguide,latexbook"
18815 \begin_layout Section
18817 \begin_inset LatexCommand label
18818 name "sec:Rotated-Floats"
18823 \begin_inset LatexCommand index
18824 name "Floats ! Rotating"
18831 \begin_layout Standard
18832 Especially for wide tables you might have floats rotated.
18833 To rotate a whole float including the caption, right-click on the float-box
18836 Rotate\InsetSpace ~
18842 \begin_layout Standard
18843 Rotated floats are always placed on its own page (or column, when you have
18844 a two-column document).
18845 They are normally rotated so that you can read them from the outside margin
18846 -- to the left on even pages, to the right on odd pages.
18849 \begin_layout Standard
18850 Referencing rotated floats is the same like for normal floats, the caption
18851 format is also the same: Table\InsetSpace ~
18853 \begin_inset LatexCommand ref
18854 reference "tab:Rotated-table"
18858 is an example of a rotated table float.
18861 \begin_layout Standard
18862 \begin_inset Note Greyedout
18865 \begin_layout Standard
18870 Not all DVI-viewers are able to display rotated floats.
18878 \begin_layout Standard
18879 \begin_inset Float table
18884 \begin_layout Caption
18885 \begin_inset LatexCommand label
18886 name "tab:Rotated-table"
18893 \begin_layout Standard
18895 \begin_inset Tabular
18896 <lyxtabular version="3" rows="1" columns="5">
18898 <column alignment="center" valignment="top" leftline="true" width="0">
18899 <column alignment="center" valignment="top" leftline="true" width="0">
18900 <column alignment="center" valignment="top" leftline="true" width="0">
18901 <column alignment="center" valignment="top" leftline="true" width="0">
18902 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
18903 <row topline="true" bottomline="true">
18904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18907 \begin_layout Standard
18913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18916 \begin_layout Standard
18922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18925 \begin_layout Standard
18931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18934 \begin_layout Standard
18940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18943 \begin_layout Standard
18962 \begin_layout Section
18964 \begin_inset LatexCommand index
18965 name "Caption ! Formatting"
18970 \begin_inset LatexCommand index
18971 name "Floats ! Caption Formatting"
18976 \begin_inset LatexCommand index
18977 name "LaTeX-packages ! caption"
18982 \begin_inset LatexCommand label
18983 name "sec:Caption-Formatting"
18990 \begin_layout Standard
18995 environment is the default paragraph environment for
19000 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19003 \begin_inset Quotes eld
19011 \begin_inset Quotes erd
19014 followed by the caption text.
19016 \begin_inset Quotes eld
19020 \begin_inset Quotes erd
19023 is substituted in the printed output by the actual reference number.
19024 By default the label and the number are in the same font as the caption
19025 text and a colon follows the number to divide then label from the text.
19026 This caption format is not suitable for all document formats.
19030 \begin_layout Standard
19031 To change the default caption format, load the LaTeX-package
19036 \begin_inset LatexCommand index
19037 name "LaTeX-packages ! caption"
19041 in the document preamble with this line:
19044 \begin_layout Standard
19049 usepackage[format definition]{caption}
19052 \begin_layout Standard
19053 To have for example the label and the number in sans-serif bold font and
19054 the table captions always above the table like in this document, use the
19058 \begin_layout Standard
19063 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19066 \begin_layout Standard
19067 You can also define different caption formats for the different float types.
19068 In this case load the
19072 package without format specific options and define the different formats
19073 with the help of the command
19076 \begin_layout Standard
19081 captionsetup[float type]{format definition}
19084 \begin_layout Standard
19085 in the document preamble.
19086 For example the caption formats of Figure\InsetSpace ~
19088 \begin_inset LatexCommand ref
19089 reference "fig:This-is-an-fig"
19093 and Table\InsetSpace ~
19095 \begin_inset LatexCommand ref
19096 reference "tab:This-is-an-tab"
19100 can be created using these commands in the document preamble:
19103 \begin_layout Standard
19108 usepackage[tableposition=top]{caption}
19116 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
19122 \begin_layout Standard
19130 captionsetup[figure]
19141 captionsetup[table]{labelfont={bf,sf}}
19144 \begin_layout Standard
19145 For more information about the package
19149 we refer to its documentation
19150 \begin_inset LatexCommand cite
19151 key "caption,caption-de"
19158 \begin_layout Standard
19159 \begin_inset VSpace bigskip
19167 \begin_inset LatexCommand index
19168 name "LaTeX-packages ! koma-script"
19174 article (koma-script)
19182 letter (koma-script)
19186 report (koma-script)
19188 \InsetSpace \thinspace{}
19189 ), you can alternatively to the
19197 's built-in command
19204 For example, to have the caption label in bold, add this command to your
19208 \begin_layout Standard
19213 setkomafont{captionlabel}{
19218 \begin_layout Standard
19219 For more information about
19230 \begin_inset LatexCommand cite
19231 key "koma-script,koma-script-de"
19238 \begin_layout Standard
19242 \begin_layout Standard
19246 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19253 \begin_inset Note Note
19256 \begin_layout Standard
19257 The caption format is changed only for this example.
19265 \begin_layout Standard
19266 \begin_inset Float figure
19272 \begin_layout Standard
19274 \begin_inset Graphics
19275 filename mobius.eps
19284 \begin_layout Caption
19285 \begin_inset LatexCommand label
19286 name "fig:This-is-an-fig"
19290 This is an example figure caption that is longer than one line to show the
19291 different caption format.
19292 Here a self-defined caption format is used.
19300 \begin_layout Standard
19304 \begin_layout Standard
19308 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19317 \begin_layout Standard
19318 \begin_inset Float table
19324 \begin_layout Caption
19325 \begin_inset LatexCommand label
19326 name "tab:This-is-an-tab"
19330 This is an example table caption that is longer than one line to show the
19331 different caption format.
19332 Here the standard caption format for tables in this document is used.
19335 \begin_layout Standard
19337 \begin_inset Tabular
19338 <lyxtabular version="3" rows="1" columns="5">
19340 <column alignment="center" valignment="top" leftline="true" width="0">
19341 <column alignment="center" valignment="top" leftline="true" width="0">
19342 <column alignment="center" valignment="top" leftline="true" width="0">
19343 <column alignment="center" valignment="top" leftline="true" width="0">
19344 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19345 <row topline="true" bottomline="true">
19346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19349 \begin_layout Standard
19355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19358 \begin_layout Standard
19364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19367 \begin_layout Standard
19373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19376 \begin_layout Standard
19382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19385 \begin_layout Standard
19404 \begin_layout Section
19406 \begin_inset LatexCommand index
19407 name "Caption ! Placement"
19412 \begin_inset LatexCommand index
19413 name "Floats ! Caption Placement"
19418 \begin_inset LatexCommand label
19419 name "sec:Caption-Placement"
19426 \begin_layout Standard
19427 The common caption placement rule is:
19430 \begin_layout Description
19431 Figure: Caption is set below the figure
19434 \begin_layout Description
19435 Table: Caption is set above the table
19438 \begin_layout Standard
19439 Having the caption above the table is unfortunately not supported in LaTeX's
19441 That means if you are using the document classes
19457 there will be no space between the caption and the table.
19458 To insert the needed space, add the following option to the load command
19459 of the LaTeX-package
19463 in your document preamble
19467 \begin_layout Standard
19468 See section\InsetSpace ~
19470 \begin_inset LatexCommand ref
19471 reference "sec:Caption-Formatting"
19475 for more information of the package
19487 \begin_layout Standard
19493 \begin_layout Standard
19499 \begin_inset LatexCommand index
19500 name "LaTeX-packages ! koma-script"
19506 article (koma-script)
19514 letter (koma-script)
19518 report (koma-script)
19520 \InsetSpace \thinspace{}
19521 ), you can alternatively to the
19525 package set the document class option
19529 , or you can use the environment
19531 caption\InsetSpace ~
19541 \begin_layout Standard
19542 \begin_inset VSpace bigskip
19545 It is also possible to set the caption beside a figure or table.
19546 To get this the LaTeX-package
19551 \begin_inset LatexCommand index
19552 name "LaTeX-packages ! sidecap"
19556 has to be loaded in the document preamble with the line
19559 \begin_layout Standard
19564 usepackage[option]{sidecap}
19567 \begin_layout Standard
19568 If you set no option, the caption is placed on the side of the outer page
19569 margin -- to the right on odd pages, to the left on even pages.
19570 You can change the placement to inner margin with the option
19575 To force the placement always to the right or left, use the option
19586 \begin_layout Standard
19587 To place in LyX the caption of a float on the side, it is necessary to add
19588 these commands to the document preamble:
19591 \begin_layout Standard
19597 \begin_layout Standard
19610 \begin_layout Standard
19631 \begin_layout Standard
19652 \begin_layout Standard
19663 renewenvironment{table}{
19670 \begin_layout Standard
19683 \begin_layout Standard
19704 \begin_layout Standard
19722 \begin_layout Standard
19735 \begin_layout Standard
19756 \begin_layout Standard
19777 \begin_layout Standard
19788 renewenvironment{figure}{
19795 \begin_layout Standard
19808 \begin_layout Standard
19829 \begin_layout Standard
19847 \begin_layout Standard
19853 \begin_layout Standard
19854 The commands allow you to redefine the floats so that the caption is set
19856 For figure floats use the command
19859 \begin_layout Standard
19867 \begin_layout Standard
19868 in ERT before the float.
19869 Behind the float insert the command
19872 \begin_layout Standard
19880 \begin_layout Standard
19881 in ERT to get back to the original float definition.
19884 \begin_layout Standard
19885 For table floats use the corresponding commands
19888 \begin_layout Standard
19902 \begin_layout Standard
19903 Figure\InsetSpace ~
19905 \begin_inset LatexCommand ref
19906 reference "fig:cap-beside-fig"
19910 and Table\InsetSpace ~
19912 \begin_inset LatexCommand ref
19913 reference "tab:cap-beside-tab"
19917 are examples where the caption is set beside.
19920 \begin_layout Standard
19921 You can see in the examples that the caption text appears at the top of
19922 the floats for table floats and at the bottom for figure floats.
19923 To change this, you can use the command
19926 \begin_layout Standard
19931 sidecaptionvpos{float type}{placement}
19934 \begin_layout Standard
19935 in the document preamble or in ERT before the float.
19936 The float type is either
19944 , the placement can be
19945 \begin_inset Quotes eld
19953 \begin_inset Quotes erd
19957 \begin_inset Quotes eld
19965 \begin_inset Quotes erd
19969 \begin_inset Quotes eld
19977 \begin_inset Quotes erd
19981 To have for example the caption of figure floats vertically centered, use
19985 \begin_layout Standard
19990 sidecaptionvpos{figure}{c}
19993 \begin_layout Standard
19994 This was used for Figure\InsetSpace ~
19996 \begin_inset LatexCommand ref
19997 reference "fig:cap-beside-fig-2"
20004 \begin_layout Standard
20005 \begin_inset VSpace defskip
20008 For more information about the package
20012 we refer to its documentation
20013 \begin_inset LatexCommand cite
20021 \begin_layout Standard
20022 \begin_inset Note Greyedout
20025 \begin_layout Standard
20035 \begin_inset LatexCommand index
20036 name "LaTeX-packages ! hypcap"
20040 , described in section\InsetSpace ~
20042 \begin_inset LatexCommand ref
20043 reference "sub:Reference-Position"
20047 , has no effect on floats with the caption set beside.
20055 \begin_layout Standard
20059 \begin_layout Standard
20071 \begin_layout Standard
20072 \begin_inset Float figure
20077 \begin_layout Standard
20078 \begin_inset Graphics
20079 filename escher-lsd.eps
20087 \begin_layout Caption
20088 \begin_inset LatexCommand label
20089 name "fig:cap-beside-fig"
20093 This is a caption beside a figure.
20101 \begin_layout Standard
20105 \begin_layout Standard
20117 \begin_layout Standard
20118 \begin_inset Float table
20123 \begin_layout Caption
20124 \begin_inset LatexCommand label
20125 name "tab:cap-beside-tab"
20129 This is a caption beside a table.
20132 \begin_layout Standard
20133 \begin_inset Tabular
20134 <lyxtabular version="3" rows="4" columns="5">
20136 <column alignment="center" valignment="top" leftline="true" width="0">
20137 <column alignment="center" valignment="top" leftline="true" width="0">
20138 <column alignment="center" valignment="top" leftline="true" width="0">
20139 <column alignment="center" valignment="top" leftline="true" width="0">
20140 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20141 <row topline="true">
20142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20145 \begin_layout Standard
20151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20154 \begin_layout Standard
20160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20163 \begin_layout Standard
20169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20172 \begin_layout Standard
20178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20181 \begin_layout Standard
20188 <row topline="true">
20189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20192 \begin_layout Standard
20198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20201 \begin_layout Standard
20207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20210 \begin_layout Standard
20216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20219 \begin_layout Standard
20225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20228 \begin_layout Standard
20235 <row topline="true">
20236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20239 \begin_layout Standard
20245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20248 \begin_layout Standard
20254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20257 \begin_layout Standard
20263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20266 \begin_layout Standard
20272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20275 \begin_layout Standard
20282 <row topline="true" bottomline="true">
20283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20286 \begin_layout Standard
20292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20295 \begin_layout Standard
20301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20304 \begin_layout Standard
20310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20313 \begin_layout Standard
20319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20322 \begin_layout Standard
20341 \begin_layout Standard
20345 \begin_layout Standard
20357 \begin_layout Standard
20361 \begin_layout Standard
20365 sidecaptionvpos{figure}{c}
20371 \begin_inset Float figure
20376 \begin_layout Standard
20377 \begin_inset Graphics
20378 filename escher-lsd.eps
20386 \begin_layout Caption
20387 \begin_inset LatexCommand label
20388 name "fig:cap-beside-fig-2"
20392 This is a vertically centered caption beside a figure.
20400 \begin_layout Standard
20404 \begin_layout Standard
20416 \begin_layout Section
20418 \begin_inset LatexCommand label
20419 name "sec:Listings-of-Floats"
20424 \begin_inset LatexCommand index
20425 name "Floats ! Listings"
20432 \begin_layout Standard
20433 Similar to the the table of contents where the sections of the document
20434 are listed, there are listings for all float types, like the figures of
20436 You can insert them via the
20438 Insert\SpecialChar \menuseparator
20446 \begin_layout Standard
20447 The list entries are the float captions or its short title, the float number,
20448 and the page number where they appear in the document.
20451 \begin_layout Standard
20452 You can find the list of figures and tables at the end of this document.
20455 \begin_layout Chapter
20459 \begin_layout Section
20463 \begin_layout Standard
20476 \begin_layout Standard
20484 \begin_inset LatexCommand label
20485 name "sec:LyX-Notes"
20490 \begin_inset LatexCommand index
20491 name "Notes ! LyX Notes"
20496 \begin_inset Note Note
20499 \begin_layout Standard
20502 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
20503 are displayed wrongly in PDF-bookmarks.
20504 For more information about this, have a look at
20505 \begin_inset LatexCommand cite
20518 \begin_layout Standard
20519 Notes are inserted with the toolbar button
20520 \begin_inset Graphics
20521 filename ../images/note-insert.xpm
20528 Insert\SpecialChar \menuseparator
20532 There are three types of notes:
20535 \begin_layout Description
20537 Note This note type is for internal notes that won't appear in the output:
20538 Its note-box looks like this:
20543 \begin_inset Graphics
20544 filename ../clipart/LyXNoteImageQt4.png
20551 \begin_inset Note Note
20554 \begin_layout Standard
20555 This is text in a note box that doesn't appear in the output.
20563 \begin_layout Description
20564 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
20565 ent, when you export the document to LaTeX via the menu
20567 File\SpecialChar \menuseparator
20568 Export\SpecialChar \menuseparator
20569 LaTeX (pdflatex) / LaTeX (plain)
20572 Its note-box looks like this:
20577 \begin_inset Graphics
20578 filename ../clipart/CommentNoteImageQt4.png
20585 \begin_inset Note Comment
20588 \begin_layout Standard
20589 This is text in a note box that only appears as comment in LaTeX-files.
20597 \begin_layout Description
20598 Greyed\InsetSpace ~
20599 Out This note will appear in the output as grey text: Its note-box
20605 \begin_inset Graphics
20606 filename ../clipart/GreyedOutNoteImageQt4.png
20618 \begin_layout Standard
20622 renewenvironment{lyxgreyedout}
20625 \begin_layout Standard
20629 textcolor[gray]{0.8}
20639 \begin_inset Note Greyedout
20642 \begin_layout Standard
20647 \begin_layout Standard
20648 This is an example footnote within a greyed out note.
20653 of a comment that appears in the output as grey text.
20662 \begin_layout Standard
20666 renewenvironment{lyxgreyedout}
20669 \begin_layout Standard
20685 \begin_layout Standard
20686 When you use the toolbar button to insert notes, a
20692 You can switch between the three note types by right-clicking on the note-box.
20697 If you want to turn existing text into a note, mark it and click on the
20713 \begin_layout Standard
20714 As you can see in the example above: The first line of greyed out notes
20715 is a bit indented and greyed out notes can have footnotes.
20718 \begin_layout Standard
20719 \begin_inset VSpace bigskip
20722 You can change the color of the greyed out notes in the preamble with the
20726 \begin_layout Standard
20731 renewenvironment{lyxgreyedout}
20737 \begin_layout Standard
20755 \begin_layout Standard
20756 The available colors and the method to define own colors is explained in
20757 section\InsetSpace ~
20759 \begin_inset LatexCommand ref
20760 reference "sec:Colored-Tables"
20767 \begin_layout Standard
20768 Notes that appear in blue in this document are set using greyed out notes
20772 \begin_layout Section
20774 \begin_inset LatexCommand label
20775 name "sec:Footnotes"
20780 \begin_inset LatexCommand index
20781 name "Notes ! Footnotes"
20786 \begin_inset LatexCommand index
20794 \begin_layout Standard
20795 Footnotes can be inserted using the toolbar button
20796 \begin_inset Graphics
20797 filename ../images/footnote-insert.xpm
20804 Insert\SpecialChar \menuseparator
20816 then the following footnote-box:
20817 \begin_inset Graphics
20818 filename ../clipart/footnoteQt4.png
20827 where you can enter the footnote text.
20828 If you want to turn existing text into a footnote, mark it and click on
20844 \begin_layout Standard
20845 Here is an example footnote:
20853 \begin_layout Standard
20854 \begin_inset LatexCommand label
20855 name "foot:This-is-an"
20859 This is an example footnote.
20872 \begin_layout Standard
20876 newcounter{MyRepeatFoot}
20879 \begin_layout Standard
20883 setcounter{MyRepeatFoot}{
20893 \begin_layout Standard
20894 The footnote will appear in the output as a superscript number at the text
20895 position where the footnote box is placed.
20896 The footnote text is placed at the bottom of the current page.
20897 The footnote number is calculated by LaTeX, the numbers are consecutive.
20898 It depends on your document-class, if the footnote number is reset for
20902 \begin_layout Standard
20903 Footnotes can be referenced like floats: Insert a label into the footnote
20904 and cross-reference this label in the text as described in section\InsetSpace ~
20906 \begin_inset LatexCommand ref
20907 reference "sec:Referencing-Floats"
20913 This is a cross-reference of Footnote\InsetSpace ~
20915 \begin_inset LatexCommand prettyref
20916 reference "foot:This-is-an"
20923 \begin_inset Note Greyedout
20926 \begin_layout Standard
20931 LyX doesn't provide a prefix for labels in footnotes, so you have to insert
20932 e.\InsetSpace \thinspace{}
20937 \begin_inset Quotes eld
20943 \begin_inset Quotes erd
20946 manually when you want to use the reference style
20948 Formatted\InsetSpace ~
20959 \begin_layout Standard
20960 \begin_inset VSpace defskip
20963 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
20965 \begin_inset LatexCommand ref
20966 reference "sec:Minipages"
20971 Footnotes within longtables are described in section\InsetSpace ~
20973 \begin_inset LatexCommand ref
20974 reference "sub:Footnotes-in-Longtables"
20981 \begin_layout Standard
20982 \begin_inset VSpace defskip
20985 To create only a mark for a footnote, use the command
20989 footnotemark[number]
20992 This is used when you have the same annotation several times in a text
20993 but doesn't want to print the footnote text every time.
20996 the number of the repeating footnote while you are writing the text, you
20997 have to store its number.
20998 For the following footnote mark example, these commands were inserted in
20999 ERT behind Footnote\InsetSpace ~
21001 \begin_inset LatexCommand ref
21002 reference "foot:This-is-an"
21006 to store the footnote number:
21009 \begin_layout Standard
21014 newcounter{MyRepeatFoot}
21018 setcounter{MyRepeatFoot}{
21023 \begin_layout Standard
21024 The footnote mark was then created with this command:
21027 \begin_layout Standard
21037 \begin_layout Standard
21038 Here is an example footnote mark:
21046 \begin_layout Standard
21060 \begin_layout Subsection
21062 \begin_inset LatexCommand label
21063 name "sub:Footnote-Numbering"
21068 \begin_inset LatexCommand index
21069 name "Footnotes ! Numbering"
21076 \begin_layout Standard
21077 If you want to have footnotes numbered in the scheme
21078 \begin_inset Quotes eld
21082 \begin_inset Quotes erd
21085 , add the following command to your document preamble:
21088 \begin_layout Standard
21093 numberwithin{footnote}{chapter}
21096 \begin_layout Standard
21097 To be able to use the command
21108 in the document settings the option
21118 \begin_layout Standard
21122 \begin_layout Standard
21126 numberwithin{footnote}{chapter}
21131 This is another example footnote:
21137 \begin_layout Standard
21138 This is a footnote numbered in the scheme
21139 \begin_inset Quotes eld
21143 \begin_inset Quotes erd
21157 \begin_layout Standard
21161 numberwithin{footnote}{part}
21169 \begin_layout Standard
21170 \begin_inset VSpace bigskip
21176 \begin_layout Standard
21177 To reset the footnote number back to 1 after each section
21179 , add this command to your document preamble:
21182 \begin_layout Standard
21187 @addtoreset{footnote}{section}
21190 \begin_layout Standard
21191 \begin_inset VSpace bigskip
21194 The following preamble command changes the footnote numbering style to small
21198 \begin_layout Standard
21210 \begin_layout Standard
21214 \begin_layout Standard
21227 This is a footnote with roman numbering:
21231 \begin_layout Standard
21232 This is an example footnote with roman numbering.
21241 \begin_layout Standard
21257 \begin_layout Standard
21258 To change the numbering style to capital roman numerals replace in the command
21273 \begin_inset Quotes eld
21277 \begin_inset Quotes erd
21280 footnotes with capital or small Latin letters use
21294 \begin_inset Quotes eld
21298 \begin_inset Quotes erd
21301 footnotes with symbols use
21310 \begin_layout Standard
21311 \begin_inset Note Greyedout
21314 \begin_layout Standard
21321 You can only number 26 footnotes with Latin letters, because this numbering
21322 is limited to single letters.
21330 \begin_inset Note Greyedout
21333 \begin_layout Standard
21338 You can only number 9 footnotes with symbols.
21346 \begin_layout Standard
21347 To return to the default numbering style when you changed to another one,
21360 in the command above.
21363 \begin_layout Subsection
21365 \begin_inset LatexCommand index
21366 name "Footnotes ! Placement"
21373 \begin_layout Standard
21374 If you have several footnotes in one page, they appear without vertical
21375 space between them at the bottom of the page.
21376 To make them better readable you can e.\InsetSpace \thinspace{}
21378 add 1.5\InsetSpace \thinspace{}
21379 mm space with the following
21383 \begin_layout Standard
21405 \begin_layout Standard
21406 \begin_inset VSpace bigskip
21409 In a two-column document the footnotes appear at the bottom of every column,
21410 see Figure\InsetSpace ~
21412 \begin_inset LatexCommand ref
21413 reference "fig:Standard-footnote-placement"
21418 If the footnotes should only appear at the bottom of the right column,
21419 as in Figure\InsetSpace ~
21421 \begin_inset LatexCommand ref
21422 reference "fig:Footnote-placement-in"
21426 , use the LaTeX-package
21431 \begin_inset LatexCommand index
21432 name "LaTeX-packages ! ftnright"
21436 with this command in the document preamble:
21439 \begin_layout Standard
21444 usepackage{ftnright}
21447 \begin_layout Standard
21448 \begin_inset Float figure
21454 \begin_layout Standard
21458 \begin_layout Standard
21468 \begin_inset Graphics
21469 filename ../clipart/without_fntright.pdf
21478 \begin_layout Standard
21488 \begin_layout Caption
21489 \begin_inset LatexCommand label
21490 name "fig:Standard-footnote-placement"
21494 Standard footnote placement in two-column documents.
21502 \begin_layout Standard
21503 \begin_inset Float figure
21509 \begin_layout Standard
21513 \begin_layout Standard
21523 \begin_inset Graphics
21524 filename ../clipart/with_fntright.pdf
21533 \begin_layout Standard
21543 \begin_layout Caption
21544 \begin_inset LatexCommand label
21545 name "fig:Footnote-placement-in"
21549 Footnote placement in two-column documents when the LaTeX-package
21561 \begin_layout Standard
21562 \begin_inset VSpace bigskip
21565 In some scientific literature it is usual to collect the footnotes and print
21566 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
21568 \begin_inset LatexCommand ref
21569 reference "fig:Endnotes----footnotes"
21574 They are then so called
21575 \begin_inset Quotes eld
21579 \begin_inset Quotes erd
21583 To use endnotes instead of footnotes in your document, load the LaTeX-package
21589 \begin_inset LatexCommand index
21590 name "LaTeX-packages ! endnotes"
21594 with the document preamble lines
21597 \begin_layout Standard
21602 usepackage{endnotes}
21613 \begin_layout Standard
21614 To insert the collected footnotes, insert the command
21617 \begin_layout Standard
21625 \begin_layout Standard
21626 in ERT at the the end of a section or chapter.
21629 \begin_layout Standard
21630 \begin_inset Float figure
21635 \begin_layout Standard
21640 \begin_layout Standard
21650 \begin_inset Graphics
21651 filename ../clipart/endnotes.pdf
21659 \begin_layout Standard
21669 \begin_layout Caption
21670 \begin_inset LatexCommand label
21671 name "fig:Endnotes----footnotes"
21675 Endnotes -- footnotes are printed in a separate paragraph at the end of
21676 sections or chapters.
21684 \begin_layout Standard
21685 \begin_inset VSpace defskip
21688 The paragraph heading for the endnotes isn't automatically translated into
21689 the document language, this must be done manually.
21690 The following preamble command translate the default English name
21691 \begin_inset Quotes eld
21695 \begin_inset Quotes erd
21698 to the German translation
21699 \begin_inset Quotes eld
21703 \begin_inset Quotes erd
21709 \begin_layout Standard
21716 notesname}{Anmerkungen}
21719 \begin_layout Standard
21720 \begin_inset VSpace defskip
21723 The numbering of endnotes can be changed like the footnote numbering as
21724 described in section\InsetSpace ~
21726 \begin_inset LatexCommand ref
21727 reference "sub:Footnote-Numbering"
21731 ; just replace the command
21744 To reset the endnote number use the command
21750 as described in section\InsetSpace ~
21752 \begin_inset LatexCommand ref
21753 reference "sub:Footnote-Numbering"
21757 and replace the command parameter
21768 \begin_layout Standard
21769 To create only a mark for an endnote, use the command
21773 endnotemark[number]
21775 similar to the command
21781 , described in section\InsetSpace ~
21783 \begin_inset LatexCommand ref
21784 reference "sec:Footnotes"
21791 \begin_layout Standard
21792 \begin_inset VSpace bigskip
21795 Footnotes can also be placed in the page margin and the footnote text alignment
21796 can be changed, see the LaTeX-package
21801 \begin_inset LatexCommand index
21802 name "LaTeX-packages ! footmisc"
21807 \begin_inset LatexCommand cite
21812 for more information about this.
21815 \begin_layout Standard
21816 For various further footnote formatting issues have a look at LaTeX-books,
21818 \begin_inset LatexCommand cite
21819 key "latexcompanion,latexguide,latexbook"
21826 \begin_layout Section
21828 \begin_inset LatexCommand index
21829 name "Notes ! Margin Notes"
21836 \begin_layout Standard
21837 Margin notes look and behave in LyX like footnotes.
21838 They are inserted via the menu
21840 Insert\SpecialChar \menuseparator
21841 Marginal\InsetSpace ~
21844 or the toolbar button
21845 \begin_inset Graphics
21846 filename ../images/marginalnote-insert.xpm
21868 \begin_inset Quotes eld
21872 \begin_inset Quotes erd
21875 appears where you can enter the text of the margin note.
21878 \begin_layout Standard
21879 At the side is an example margin note.
21883 \begin_inset Marginal
21886 \begin_layout Standard
21887 This is a margin note.
21895 \begin_layout Standard
21896 Margin notes appear at the right side in single-sided documents.
21897 In double-sided documents they appear in the outer margin -- left on even
21898 pages, right on odd pages.
21899 The text of margin notes is aligned opposite to the outer margin -- right-align
21900 ed when the note appears in the left margin.
21901 The first line of the margin note is placed at the position of the text
21902 line where it is inserted in the document.
21905 \begin_layout Standard
21906 \begin_inset VSpace bigskip
21909 To place the margin note in the inner margin, add the command
21912 \begin_layout Standard
21920 \begin_layout Standard
21921 in ERT before a margin note.
21922 The new placement is valid for all following margin notes.
21926 \begin_layout Standard
21936 \begin_inset Marginal
21939 \begin_layout Standard
21940 This is a margin note in the inner margin.
21952 \begin_inset Note Greyedout
21955 \begin_layout Standard
21960 There is often not enough space in the inner margin so that the notes are
21961 not correctly displayed in the output.
21969 \begin_layout Standard
21973 \begin_layout Standard
21982 To return to the default placement insert the command
21985 \begin_layout Standard
21993 \begin_layout Standard
21996 \begin_inset Note Greyedout
21999 \begin_layout Standard
22004 The command is ignored when it is within a paragraph where also the command
22019 \begin_layout Standard
22020 \begin_inset VSpace bigskip
22027 \begin_inset Marginal
22030 \begin_layout Standard
22031 AVeryLongMarginParWord that isn't hyphenated.
22039 Similar to the case described in section\InsetSpace ~
22041 \begin_inset LatexCommand ref
22042 reference "sub:Multiple-Lines-in"
22046 , long words cannot be hyphenated when they are the first word in a margin
22048 To avoid this, insert the command
22051 \begin_layout Standard
22059 \begin_layout Standard
22060 in ERT before the word
22064 \begin_inset Marginal
22067 \begin_layout Standard
22071 \begin_layout Standard
22080 AVeryLongMarginParWord that is hyphenated.
22088 \begin_layout Standard
22089 \begin_inset VSpace bigskip
22095 \begin_layout Standard
22096 \begin_inset Note Greyedout
22099 \begin_layout Standard
22104 Margin notes can normally not be used inside tables, floats, and footnotes.
22112 \begin_layout Standard
22113 This restriction can be evaded by using the LaTeX-package
22118 \begin_inset LatexCommand index
22119 name "LaTeX-packages ! marginnote"
22124 By adding these two lines to your document preamble, the command used by
22125 LyX for margin notes is redefined to use the command provided by the
22132 \begin_layout Standard
22137 usepackage{marginnote}
22148 \begin_layout Standard
22149 This is also used in this document because
22153 has another useful feature: You can set a vertical offset for the note.
22154 This is often needed when too many margin notes are too close together
22155 or for a better page layout.
22156 The offset is set in LyX as ERT directly behind the margin note in the
22160 \begin_layout Standard
22166 \begin_layout Standard
22167 where the offset is a length with one of the units listed in Table\InsetSpace ~
22169 \begin_inset LatexCommand ref
22170 reference "tab:Units"
22175 A negative value shifts the note up, a positive value shifts it down.
22179 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
22182 \begin_inset Quotes eld
22192 \begin_inset Quotes erd
22196 \begin_inset Marginal
22199 \begin_layout Standard
22200 This margin note is shifted up 1.5\InsetSpace \thinspace{}
22201 cm from its original position.
22213 \begin_layout Standard
22223 \begin_layout Standard
22224 \begin_inset VSpace defskip
22231 you can also change the alignment of the text in the margin note.
22232 For example the commands
22235 \begin_layout Standard
22242 raggedleftmarginnote}{
22250 raggedrightmarginnote}{
22255 \begin_layout Standard
22256 set the alignment to centered.
22261 raggedleftmarginnote
22263 denotes margin notes that appear at the left side.
22270 \begin_layout Standard
22276 raggedleftmarginnote}{
22281 \begin_layout Standard
22287 raggedrightmarginnote}{
22295 \begin_inset Marginal
22298 \begin_layout Standard
22299 The text of this margin note is centered.
22310 \begin_layout Standard
22317 raggedleftmarginnote}{
22325 raggedrightmarginnote}{
22334 \begin_layout Standard
22340 raggedleftmarginnote}{
22345 \begin_layout Standard
22351 raggedrightmarginnote}{
22361 \begin_layout Standard
22362 \begin_inset VSpace defskip
22365 For the other features of
22369 we refer to its documentation
22370 \begin_inset LatexCommand cite
22378 \begin_layout Standard
22379 \begin_inset VSpace bigskip
22382 You can change the layout of margin notes by redefining its definition.
22383 To create for example a header for all margin notes with the underlined,
22384 sans-serif, and bold header text
22385 \begin_inset Quotes eld
22397 \begin_inset Quotes erd
22400 , add this to your document preamble:
22403 \begin_layout Standard
22426 \begin_layout Standard
22443 underbar{Attention!}}}%
22449 \begin_layout Standard
22467 \begin_layout Standard
22474 \begin_layout Standard
22485 \begin_layout Standard
22496 \begin_layout Standard
22504 underbar{Attention!}}}%
22507 \begin_layout Standard
22521 \begin_inset Marginal
22524 \begin_layout Standard
22525 This is a margin note with a defined heading.
22537 \begin_layout Standard
22551 \begin_layout Standard
22568 \begin_inset Note Note
22571 \begin_layout Standard
22572 The margin note format is changed only for this example.
22580 \begin_layout Chapter
22584 \begin_layout Section
22586 \begin_inset LatexCommand index
22587 name "Boxes ! Introduction"
22594 \begin_layout Standard
22595 Boxes are used to format a block of text.
22596 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
22598 \begin_inset LatexCommand ref
22599 reference "sec:Minipages"
22603 , to frame texts, see section\InsetSpace ~
22605 \begin_inset LatexCommand ref
22606 reference "sec:Framed-Boxes"
22610 , to prevent words to be hyphenated, see section\InsetSpace ~
22612 \begin_inset LatexCommand ref
22613 reference "sec:Prevent-Hyphenation"
22617 , to align text, see section\InsetSpace ~
22619 \begin_inset LatexCommand ref
22620 reference "sub:Vertical-Alignment"
22624 , or to set the background color of texts, see section\InsetSpace ~
22626 \begin_inset LatexCommand ref
22627 reference "sec:Colored-Boxes"
22634 \begin_layout Standard
22635 Boxes can be inserted with the menu Insert\SpecialChar \menuseparator
22637 A grey box with the label
22642 \begin_inset Graphics
22643 filename D:/LyXSVN/lyx-devel/lib/clipart/BoxInsetDefaultQt4.png
22648 , will be inserted.
22649 The box type can be specified by right-clicking on the box.
22650 The appearing box dialog offers the
22668 is the default for new boxes and is explained in section\InsetSpace ~
22670 \begin_inset LatexCommand ref
22671 reference "sec:Minipages"
22679 is described in section\InsetSpace ~
22681 \begin_inset LatexCommand ref
22682 reference "sec:Parboxes"
22689 \begin_layout Standard
22690 Boxes aren't numbered and can therefore not be referenced like floats or
22694 \begin_layout Standard
22695 \begin_inset Note Greyedout
22698 \begin_layout Standard
22703 Due to a bug in LyX you have to insert a protected space behind a box when
22704 you want to separate in a line the box from the following text with a space.
22712 \begin_layout Standard
22713 \begin_inset Note Greyedout
22716 \begin_layout Standard
22721 Boxes must not be the item in an
22737 \begin_layout Standard
22738 \begin_inset Note Greyedout
22741 \begin_layout Standard
22746 For an unknown reason you can only set the
22755 when you use a framed box.
22761 type and without frames are explained in section\InsetSpace ~
22763 \begin_inset LatexCommand ref
22764 reference "sec:Prevent-Hyphenation"
22776 \begin_layout Section
22778 \begin_inset LatexCommand label
22779 name "sec:Box-Dialog"
22784 \begin_inset LatexCommand index
22785 name "Boxes ! Box Dialog"
22790 \begin_inset LatexCommand index
22791 name "Boxes ! Alignment"
22798 \begin_layout Standard
22799 In the box dialog you can adjust the box geometry in the fields
22808 The available units for the geometry are explained in Table\InsetSpace ~
22810 \begin_inset LatexCommand ref
22811 reference "tab:Units"
22820 offers the following additional sizes:
22823 \begin_layout Description
22824 Depth This is the plain text
22825 \begin_inset Quotes eld
22829 \begin_inset Quotes erd
22833 It ignores the total depth when there are multiple text lines in the box:
22840 \begin_inset Box Boxed
22849 height_special "depth"
22852 \begin_layout Standard
22854 Box height set to 1\InsetSpace \thinspace{}
22867 \begin_layout Description
22868 Height This is the heigth of the text that is inside the box.
22869 A value of e.\InsetSpace \thinspace{}
22871 2 for this size will set the box heigth to 2 times the text
22873 \begin_inset Box Boxed
22882 height_special "height"
22885 \begin_layout Standard
22887 Box height set to 2\InsetSpace \thinspace{}
22896 \begin_layout Description
22898 Height This is the Height\InsetSpace \thinspace{}
22899 +\InsetSpace \thinspace{}
22901 \begin_inset Box Boxed
22910 height_special "totalheight"
22913 \begin_layout Standard
22915 Box height set to 1\InsetSpace \thinspace{}
22925 \begin_layout Description
22926 Width This set the width of the box as heigth:
22927 \begin_inset Box Boxed
22936 height_special "width"
22939 \begin_layout Standard
22941 Box height set to 1\InsetSpace \thinspace{}
22950 \begin_layout Standard
22951 \begin_inset VSpace bigskip
22954 When you have chosen an
22959 , the vertical box alignment can be:
22962 \begin_layout Description
22963 Top This is an example text line.
22965 \begin_inset Box Boxed
22974 height_special "totalheight"
22977 \begin_layout Standard
22979 This box is top-aligned.
22985 This is an example text line.
22988 \begin_layout Description
22989 Middle This is an example text line.
22991 \begin_inset Box Boxed
23000 height_special "totalheight"
23003 \begin_layout Standard
23005 This box is middle-aligned.
23011 This is an example text line.
23014 \begin_layout Description
23015 Bottom This is an example text line.
23017 \begin_inset Box Boxed
23026 height_special "totalheight"
23029 \begin_layout Standard
23031 This box is bottom-aligned.
23037 This is an example text line.
23040 \begin_layout Standard
23041 The horizontal box alignment can be set via LyX's paragraph dialog when
23042 you set the box into its own paragraph.
23045 \begin_layout Standard
23046 \begin_inset VSpace bigskip
23049 When you have chosen an
23054 , the box content can be vertical aligned to:
23057 \begin_layout Description
23058 top This is an example text line.
23060 \begin_inset Box Boxed
23069 height_special "totalheight"
23072 \begin_layout Standard
23074 This box text is top-aligned.
23080 This is an example text line.
23083 \begin_layout Description
23084 middle This is an example text line.
23086 \begin_inset Box Boxed
23095 height_special "totalheight"
23098 \begin_layout Standard
23100 This box text is middle-aligned.
23106 This is an example text line.
23109 \begin_layout Description
23110 bottom This is an example text line.
23112 \begin_inset Box Boxed
23121 height_special "totalheight"
23124 \begin_layout Standard
23126 This box text is bottom-aligned.
23132 This is an example text line.
23135 \begin_layout Description
23136 stretch This is an example text line.
23138 \begin_inset Box Boxed
23147 height_special "totalheight"
23150 \begin_layout Standard
23155 \begin_layout Standard
23160 \begin_layout Standard
23168 This is an example text line.
23171 \begin_layout Standard
23172 To stretch the box content, it must consist of more than one paragraph.
23173 In the example above every text line is in an own paragraph.
23176 \begin_layout Standard
23177 \begin_inset VSpace bigskip
23180 To align the box content horizontally use LyX's paragraph dialog when If
23189 \begin_layout Standard
23191 \begin_inset Box Boxed
23200 height_special "totalheight"
23203 \begin_layout Standard
23208 \begin_layout Standard
23213 \begin_layout Standard
23223 \begin_layout Standard
23224 If you haven't set an
23229 , you can align the box content horizontally in the box dialog.
23232 \begin_layout Standard
23234 \begin_inset Box Boxed
23243 height_special "totalheight"
23246 \begin_layout Standard
23248 This box text is horizontally stretched.
23256 \begin_layout Section
23258 \begin_inset LatexCommand label
23259 name "sec:Framed-Boxes"
23264 \begin_inset LatexCommand index
23265 name "Boxes ! Frames"
23272 \begin_layout Standard
23273 The frame style of the box can be specified in the box-dialog in the drop-down
23279 The following frame types are possible:
23282 \begin_layout Description
23283 Rectangular\InsetSpace ~
23284 box This draws a rectangle frame around the box.
23285 The frame line thickness has the size of
23293 \begin_inset Box Boxed
23302 height_special "totalheight"
23305 \begin_layout Standard
23315 \begin_layout Description
23318 thin This draws an oval frame around the box.
23319 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
23322 \begin_inset Box ovalbox
23331 height_special "totalheight"
23334 \begin_layout Standard
23344 \begin_layout Description
23347 thick This draws an oval frame around the box.
23348 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
23351 \begin_inset Box Ovalbox
23360 height_special "totalheight"
23363 \begin_layout Standard
23373 \begin_layout Description
23374 Shadow\InsetSpace ~
23375 box This draws a rectangle frame with a shadow around the box.
23376 The frame line thickness has the size of
23382 , the shadow has a width of 4\InsetSpace \thinspace{}
23385 \begin_inset Box Shadowbox
23394 height_special "totalheight"
23397 \begin_layout Standard
23407 \begin_layout Description
23408 Double\InsetSpace ~
23409 box This draws a double-line rectangle frame around the box.
23410 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
23417 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
23425 The distance between the lines is 1.5\InsetSpace \thinspace{}
23432 \InsetSpace \thinspace{}
23433 +\InsetSpace \thinspace{}
23434 0.5\InsetSpace \thinspace{}
23437 \begin_inset Box Doublebox
23446 height_special "totalheight"
23449 \begin_layout Standard
23459 \begin_layout Standard
23460 \begin_inset VSpace bigskip
23463 LyX's box label will change to the used frame style when you set a frame.
23464 To be able to use the different frame styles, the LaTeX-package
23469 \begin_inset LatexCommand index
23470 name "LaTeX-packages ! fancybox"
23477 \begin_layout Standard
23478 \begin_inset VSpace bigskip
23481 The default value for the size
23487 is 0.4\InsetSpace \thinspace{}
23489 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
23491 2\InsetSpace \thinspace{}
23495 \begin_layout Standard
23505 \begin_layout Standard
23509 \begin_layout Standard
23521 \begin_inset Box Boxed
23530 height_special "totalheight"
23533 \begin_layout Standard
23535 Rectangular box with
23541 \InsetSpace \thinspace{}
23542 =\InsetSpace \thinspace{}
23543 2\InsetSpace \thinspace{}
23553 \begin_layout Standard
23567 \begin_layout Standard
23568 \begin_inset VSpace bigskip
23571 The space between the frame and the box content is for all frame styles
23572 by default 3\InsetSpace \thinspace{}
23574 You can change it by setting the length
23581 For example the command
23584 \begin_layout Standard
23594 \begin_layout Standard
23595 sets the value to 10\InsetSpace \thinspace{}
23596 pt, like for the following box:
23599 \begin_layout Standard
23603 \begin_layout Standard
23615 \begin_inset Box Boxed
23624 height_special "totalheight"
23627 \begin_layout Standard
23629 Rectangular box with
23635 \InsetSpace \thinspace{}
23636 =\InsetSpace \thinspace{}
23637 10\InsetSpace \thinspace{}
23647 \begin_layout Standard
23661 \begin_layout Standard
23662 \begin_inset VSpace bigskip
23665 The diameter of the round corners of the oval boxes can be set with the
23676 \begin_layout Standard
23684 \begin_layout Standard
23685 sets the diameter to 1\InsetSpace \thinspace{}
23690 \begin_layout Standard
23698 \begin_layout Standard
23699 sets the diameter to
23701 num\InsetSpace \thinspace{}
23702 ×\InsetSpace \thinspace{}
23703 minimum(width and heigth of box)
23715 \begin_layout Standard
23719 \begin_layout Standard
23729 \begin_inset Box Ovalbox
23738 height_special "totalheight"
23741 \begin_layout Standard
23749 \InsetSpace \thinspace{}
23750 =\InsetSpace \thinspace{}
23751 1.5\InsetSpace \thinspace{}
23761 \begin_layout Standard
23773 \begin_layout Standard
23774 \begin_inset VSpace bigskip
23777 The size of the shadow can be adjusted by changing the length
23784 It it set to 2\InsetSpace \thinspace{}
23785 pt for the following box by this command:
23788 \begin_layout Standard
23798 \begin_layout Standard
23802 \begin_layout Standard
23814 \begin_inset Box Shadowbox
23823 height_special "totalheight"
23826 \begin_layout Standard
23834 \InsetSpace \thinspace{}
23835 =\InsetSpace \thinspace{}
23836 2\InsetSpace \thinspace{}
23846 \begin_layout Standard
23860 \begin_layout Standard
23861 \begin_inset VSpace bigskip
23864 Changed lengths and widths are valid for all boxes following the commands
23868 \begin_layout Section
23870 \begin_inset LatexCommand label
23871 name "sec:Minipages"
23876 \begin_inset LatexCommand index
23877 name "Boxes ! Minipages"
23884 \begin_layout Standard
23885 Minipages are treated by LaTeX as pages within pages and can therefore for
23886 example have their own footnotes.
23889 \begin_layout Standard
23890 Minipages are useful when you write documents with different languages.
23893 \begin_layout Standard
23894 Below are two example minipages side by side.
23895 Their width is set to 45\InsetSpace \thinspace{}
23896 col% and they are separated by a horizontal fill,
23897 that was inserted via the menu
23899 Insert\SpecialChar \menuseparator
23900 Special\InsetSpace ~
23901 Formatting\SpecialChar \menuseparator
23902 Horizontal\InsetSpace ~
23908 \begin_layout Standard
23909 \begin_inset Box Frameless
23918 height_special "totalheight"
23921 \begin_layout Standard
23924 Dies ist ein deutscher Text.
23925 Dies ist ein deutscher Text.
23926 Dies ist ein deutscher Text.
23927 Dies ist ein deutscher Text.
23928 Dies ist ein deutscher Text.
23929 Dies ist ein deutscher Text.
23930 Dies ist ein deutscher Text.
23931 Dies ist ein deutscher Text.
23932 Dies ist ein deutscher Text.
23933 Dies ist ein deutscher Text.
23934 Dies ist ein deutscher Text.
23935 Dies ist ein deutscher Text.
23936 Dies ist ein deutscher Text
23940 \begin_layout Standard
23943 Dies ist eine deutsche Fußnote.
23949 Dies ist ein deutscher Text.
23950 Dies ist ein deutscher Text.
23958 \begin_inset Box Frameless
23967 height_special "totalheight"
23970 \begin_layout Standard
23971 This is an English Text.
23972 This is an English Text.
23973 This is an English Text.
23974 This is an English Text.
23975 This is an English Text.
23976 This is an English Text.
23977 This is an English Text.
23978 This is an English Text.
23979 This is an English Text.
23980 This is an English Text.
23981 This is an English Text.
23982 This is an English Text.
23983 This is an English Text.
23984 This is an English Text.
23985 This is an English Text.
23986 This is an English Text.
23990 \begin_layout Standard
23991 This is an English footnote.
23996 This is an English Text.
24005 \begin_layout Standard
24006 \begin_inset VSpace bigskip
24009 Another application for minipages are footnotes within tables.
24010 Due to a LaTeX restriction footnotes within tables doesn't appear at the
24011 bottom of the current page.
24012 But when you put the table with the footnote to a minipage, the footnote
24013 will appear at its bottom, numbered with Latin letters.
24014 The footnote number is reset to 1 in every minipage but not outside the
24018 \begin_layout Standard
24019 The footnote of this table doesn't appear:
24020 \begin_inset Tabular
24021 <lyxtabular version="3" rows="3" columns="4">
24023 <column alignment="center" valignment="top" leftline="true" width="0pt">
24024 <column alignment="center" valignment="top" leftline="true" width="0pt">
24025 <column alignment="center" valignment="top" leftline="true" width="0pt">
24026 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24027 <row topline="true">
24028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24031 \begin_layout Standard
24037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24040 \begin_layout Standard
24046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24049 \begin_layout Standard
24054 \begin_layout Standard
24055 This is a footnote within a table.
24065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24068 \begin_layout Standard
24075 <row topline="true">
24076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24079 \begin_layout Standard
24085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24088 \begin_layout Standard
24094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24097 \begin_layout Standard
24103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24106 \begin_layout Standard
24113 <row topline="true" bottomline="true">
24114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24117 \begin_layout Standard
24123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24126 \begin_layout Standard
24132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24135 \begin_layout Standard
24141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24144 \begin_layout Standard
24158 \begin_layout Standard
24160 \begin_inset Box Frameless
24169 height_special "totalheight"
24172 \begin_layout Standard
24174 \begin_inset Tabular
24175 <lyxtabular version="3" rows="3" columns="4">
24177 <column alignment="center" valignment="top" leftline="true" width="0pt">
24178 <column alignment="center" valignment="top" leftline="true" width="0pt">
24179 <column alignment="center" valignment="top" leftline="true" width="0pt">
24180 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24181 <row topline="true">
24182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24185 \begin_layout Standard
24191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24194 \begin_layout Standard
24200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24203 \begin_layout Standard
24208 \begin_layout Standard
24209 This is a footnote within a table.
24219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24222 \begin_layout Standard
24229 <row topline="true">
24230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24233 \begin_layout Standard
24239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24242 \begin_layout Standard
24248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24251 \begin_layout Standard
24257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24260 \begin_layout Standard
24267 <row topline="true" bottomline="true">
24268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24271 \begin_layout Standard
24277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24280 \begin_layout Standard
24286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24289 \begin_layout Standard
24295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24298 \begin_layout Standard
24317 \begin_layout Standard
24318 \begin_inset VSpace bigskip
24321 The document-wide paragraph settings are ignored within minipages.
24322 That means that there will be no space between paragraphs in minipages
24323 although you set it to e.\InsetSpace \thinspace{}
24329 in the document settings.
24332 \begin_layout Standard
24333 Minipages can also be used to set a background color for text parts, see
24334 section\InsetSpace ~
24336 \begin_inset LatexCommand ref
24337 reference "sub:Color-for-Paragraphs"
24344 \begin_layout Standard
24345 \begin_inset Note Greyedout
24348 \begin_layout Standard
24353 You cannot have floats or margin notes inside minipages but minipages can
24354 be used inside tables, floats, and other boxes.
24362 \begin_layout Section
24364 \begin_inset LatexCommand label
24365 name "sec:Parboxes"
24370 \begin_inset LatexCommand index
24371 name "Boxes ! Parboxes"
24378 \begin_layout Standard
24379 Parboxes are very similar to minipages with the difference that they cannot
24381 The main difference to minipages is that minipages are in contrary to parboxes
24382 no real boxes but LaTeX-environments.
24385 \begin_layout Standard
24387 \begin_inset Box Frameless
24396 height_special "totalheight"
24399 \begin_layout Standard
24400 This a text within a parbox.
24401 This a text within a parbox.
24404 \begin_layout Standard
24405 This footnote won't appear:
24409 \begin_layout Standard
24410 This footnote is inside a parbox and will therefore not appear.
24423 \begin_layout Section
24424 Boxes for Words and Characters
24425 \begin_inset LatexCommand index
24426 name "Boxes ! for Characters"
24433 \begin_layout Subsection
24434 Prevent Hyphenation
24435 \begin_inset LatexCommand label
24436 name "sec:Prevent-Hyphenation"
24441 \begin_inset LatexCommand index
24442 name "Boxes ! to Prevent Hyphenation"
24449 \begin_layout Standard
24450 You can use a special kind of boxes to prevent words or text to be hyphenated.
24453 e is an example text:
24456 \begin_layout Standard
24457 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
24463 \begin_layout Standard
24464 To prevent the hyphenation of the word
24465 \begin_inset Quotes eld
24469 \begin_inset Quotes erd
24475 \begin_layout Standard
24483 \begin_layout Standard
24484 in ERT before the word.
24485 Behind the word insert a closing brace
24486 \begin_inset Quotes eld
24494 \begin_inset Quotes erd
24501 \begin_layout Standard
24513 \begin_layout Standard
24514 This is the result:
24517 \begin_layout Standard
24518 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
24524 \begin_layout Standard
24537 \begin_layout Standard
24547 \begin_layout Standard
24548 Of course the word now protrudes over the side margin.
24549 To avoid this, add via the menu
24551 Insert\SpecialChar \menuseparator
24552 Special\InsetSpace ~
24553 Formatting\SpecialChar \menuseparator
24561 ) a line break before the word:
24564 \begin_layout Standard
24565 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
24573 \begin_layout Standard
24586 \begin_layout Standard
24596 \begin_layout Subsection
24598 \begin_inset LatexCommand label
24599 name "sub:Vertical-Alignment"
24604 \begin_inset LatexCommand index
24605 name "Boxes ! for Vertical Alignment"
24610 \begin_inset LatexCommand index
24611 name "Boxes ! Raiseboxes"
24618 \begin_layout Standard
24619 With the help of the command
24625 you can align words, characters or other boxes vertically to the surrounding
24633 is used with the following scheme:
24636 \begin_layout Standard
24641 raisebox{lift}[height][depth]{box content}
24644 \begin_layout Standard
24645 The lift can be a positive value to raise the box or a negative value to
24649 \begin_layout Standard
24650 To align for example the word
24651 \begin_inset Quotes eld
24655 \begin_inset Quotes erd
24658 so that the bottom of the
24659 \begin_inset Quotes eld
24663 \begin_inset Quotes erd
24667 \begin_inset Quotes eld
24671 \begin_inset Quotes erd
24674 is at the baseline, insert the command
24677 \begin_layout Standard
24687 \begin_layout Standard
24688 in ERT before the word.
24689 Behind the word insert a closing brace
24690 \begin_inset Quotes eld
24698 \begin_inset Quotes erd
24703 This is the result:
24706 \begin_layout Standard
24707 This is a text line with the word
24711 \begin_layout Standard
24723 \begin_inset Quotes eld
24727 \begin_inset Quotes erd
24734 \begin_layout Standard
24744 \begin_layout Standard
24745 \begin_inset VSpace bigskip
24748 When you raise or lower characters in a line, the line distance will be
24752 \begin_layout Standard
24753 This is a text line with the word
24757 \begin_layout Standard
24769 \begin_inset Quotes eld
24773 \begin_inset Quotes erd
24780 \begin_layout Standard
24789 This is a text line with the word
24793 \begin_layout Standard
24803 \begin_inset Quotes eld
24807 \begin_inset Quotes erd
24814 \begin_layout Standard
24824 \begin_layout Standard
24825 If you want to prevent this for a certain reason, set the box height to
24830 \begin_layout Standard
24840 \begin_layout Standard
24841 This is a text line with the word
24845 \begin_layout Standard
24857 \begin_inset Quotes eld
24861 \begin_inset Quotes erd
24868 \begin_layout Standard
24877 This is a text line with the word
24881 \begin_layout Standard
24885 raisebox{0.5cm}[0pt]{
24891 \begin_inset Quotes eld
24895 \begin_inset Quotes erd
24902 \begin_layout Standard
24912 \begin_layout Standard
24913 \begin_inset VSpace bigskip
24922 command is useful when you want to insert some extra vertical space for
24923 certain table rows so that the row content is better separated from the
24925 In Table\InsetSpace ~
24927 \begin_inset LatexCommand ref
24928 reference "tab:Two-tables-showing"
24932 the table rows with the sub- and superscripts got extra space by raising
24933 an empty box: The command
24936 \begin_layout Standard
24944 \begin_layout Standard
24945 was inserted to the table rows.
24948 \begin_layout Standard
24949 To add extra vertical space for all rows of all tables, the method described
24950 in section\InsetSpace ~
24952 \begin_inset LatexCommand ref
24953 reference "sub:Extra-Row-Height"
24957 might be more convenient.
24960 \begin_layout Standard
24961 \begin_inset Float table
24966 \begin_layout Caption
24967 \begin_inset LatexCommand label
24968 name "tab:Two-tables-showing"
24972 Two tables showing the effect of extra vertical space using
24979 \begin_layout Standard
24983 \begin_inset Tabular
24984 <lyxtabular version="3" rows="5" columns="2">
24986 <column alignment="center" valignment="top" leftline="true" width="0pt">
24987 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24988 <row topline="true">
24989 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24992 \begin_layout Standard
25002 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25005 \begin_layout Standard
25012 <row topline="true">
25013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25016 \begin_layout Standard
25022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25025 \begin_layout Standard
25032 <row topline="true">
25033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25036 \begin_layout Standard
25042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25045 \begin_layout Standard
25046 \begin_inset Formula $B_{V}$
25055 <row topline="true">
25056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25059 \begin_layout Standard
25065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25068 \begin_layout Standard
25069 \begin_inset Formula $B^{V}$
25078 <row topline="true" bottomline="true">
25079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25082 \begin_layout Standard
25087 \begin_layout Standard
25101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25104 \begin_layout Standard
25105 \begin_inset Formula $B^{A}$
25122 \begin_layout Standard
25132 \begin_inset Tabular
25133 <lyxtabular version="3" rows="5" columns="2">
25135 <column alignment="center" valignment="top" leftline="true" width="0">
25136 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
25137 <row topline="true" bottomline="true">
25138 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25141 \begin_layout Standard
25151 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25154 \begin_layout Standard
25161 <row topline="true">
25162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25165 \begin_layout Standard
25171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25174 \begin_layout Standard
25181 <row topline="true">
25182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25185 \begin_layout Standard
25191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25194 \begin_layout Standard
25195 \begin_inset Formula $B_{V}$
25204 <row topline="true">
25205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25208 \begin_layout Standard
25214 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25217 \begin_layout Standard
25218 \begin_inset Formula $\raisebox{5mm}{}B^{V}$
25227 <row topline="true" bottomline="true">
25228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25231 \begin_layout Standard
25236 \begin_layout Standard
25250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25253 \begin_layout Standard
25254 \begin_inset Formula $\raisebox{5mm}{}B^{A}$
25277 \begin_layout Section
25279 \begin_inset LatexCommand label
25280 name "sec:Colored-Boxes"
25285 \begin_inset LatexCommand index
25286 name "Boxes ! Color"
25293 \begin_layout Subsection
25295 \begin_inset LatexCommand index
25296 name "Color ! for Text"
25303 \begin_layout Standard
25304 To color the background of text the text must be put into a so called colorbox.
25305 This requires that the LaTeX-package
25310 \begin_inset LatexCommand index
25311 name "LaTeX-packages ! color"
25315 is loaded in the document preamble with the command
25318 \begin_layout Standard
25323 @ifundefined{textcolor}
25329 \begin_layout Standard
25340 usepackage{color}}{}
25343 \begin_layout Standard
25348 will be loaded automatically by LyX when you color text
25352 \begin_layout Standard
25353 To avoid that it is loaded twice the command
25367 \begin_layout Standard
25368 \begin_inset VSpace medskip
25371 Colorboxes are created with the command
25378 This will be used with the following scheme:
25381 \begin_layout Standard
25386 colorbox{color}{box content}
25389 \begin_layout Standard
25390 The box content can also be a box and colorboxes can also be within other
25394 \begin_layout Standard
25395 The following colors are predefined:
25433 You can also define your own color as described in section\InsetSpace ~
25435 \begin_inset LatexCommand ref
25436 reference "sec:Colored-Tables"
25443 \begin_layout Standard
25444 To have e.\InsetSpace \thinspace{}
25446 a red background for a word, insert the command
25449 \begin_layout Standard
25457 \begin_layout Standard
25458 before the word in ERT.
25459 Behind the word insert a closing brace
25460 \begin_inset Quotes eld
25468 \begin_inset Quotes erd
25473 This is the result:
25476 \begin_layout Standard
25477 This is a line where the word
25481 \begin_layout Standard
25491 \begin_inset Quotes eld
25495 \begin_inset Quotes erd
25502 \begin_layout Standard
25509 has a red background.
25512 \begin_layout Standard
25513 \begin_inset VSpace bigskip
25516 If you would have the box frame in a different color, you can use the command
25523 with the following scheme:
25526 \begin_layout Standard
25531 fcolorbox{frame color}{box color}{box content}
25534 \begin_layout Standard
25548 The frame thickness and the space between the frame and the box content
25549 can be adjusted with the lengths
25561 , respectively, as described in section\InsetSpace ~
25563 \begin_inset LatexCommand ref
25564 reference "sec:Framed-Boxes"
25571 \begin_layout Standard
25572 For the following example the command
25575 \begin_layout Standard
25580 fcolorbox{cyan}{magenta}{
25583 \begin_layout Standard
25587 \begin_layout Standard
25588 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
25595 \begin_layout Standard
25610 \begin_layout Standard
25614 fcolorbox{cyan}{magenta}{
25619 This is text within a colored, framed box.
25623 \begin_layout Standard
25633 \begin_layout Standard
25634 \begin_inset VSpace bigskip
25637 Of course you can also have colored text inside a colorbox:
25643 \begin_layout Standard
25647 fcolorbox{cyan}{magenta}{
25654 This is colored text within a colored, framed box.
25660 \begin_layout Standard
25671 \begin_layout Standard
25685 \begin_layout Standard
25688 \begin_inset VSpace medskip
25694 \begin_layout Standard
25695 \begin_inset Note Greyedout
25698 \begin_layout Standard
25703 Text in colorboxes cannot have line breaks.
25704 To color multiple text lines or paragraphs, use a box inside a colorbox
25705 as described in the following.
25713 \begin_layout Subsection
25714 Color for Paragraphs
25715 \begin_inset LatexCommand label
25716 name "sub:Color-for-Paragraphs"
25721 \begin_inset LatexCommand index
25722 name "Color ! for Paragraphs"
25729 \begin_layout Standard
25730 To set the background color for more than one text line, put the text into
25732 Before the minipage insert the
25741 \begin_layout Standard
25749 \begin_layout Standard
25751 Behind the minipage insert a closing brace
25752 \begin_inset Quotes eld
25760 \begin_inset Quotes erd
25766 \begin_layout Standard
25770 \begin_layout Standard
25774 colorbox{lightgrey}{
25780 \begin_inset Box Frameless
25789 height_special "totalheight"
25792 \begin_layout Standard
25793 This is text with background color.
25794 This is text with background color.
25797 \begin_layout Standard
25798 \begin_inset VSpace defskip
25801 The text can have footnotes
25805 \begin_layout Standard
25806 Another example footnote
25811 and can include tables and figures.
25814 \begin_layout Standard
25816 \begin_inset Tabular
25817 <lyxtabular version="3" rows="3" columns="3">
25819 <column alignment="center" valignment="top" leftline="true" width="0">
25820 <column alignment="center" valignment="top" leftline="true" width="0">
25821 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
25822 <row topline="true">
25823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25826 \begin_layout Standard
25832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25835 \begin_layout Standard
25841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25844 \begin_layout Standard
25851 <row topline="true">
25852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25855 \begin_layout Standard
25861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25864 \begin_layout Standard
25866 \begin_inset Quotes erd
25874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25877 \begin_layout Standard
25884 <row topline="true" bottomline="true">
25885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25888 \begin_layout Standard
25894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25897 \begin_layout Standard
25903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25906 \begin_layout Standard
25926 \begin_layout Standard
25936 \begin_layout Section
25937 URLs (Uniform Resource Locators)
25938 \begin_inset LatexCommand index
25946 \begin_layout Standard
25947 Links to web pages or email addresses can be inserted via the menu
25949 Insert\SpecialChar \menuseparator
25953 The appearing URL dialog has two fields; the
25961 field for the URL description, which will be typeset as plain text immediately
25965 \begin_layout Standard
25966 Here is an example URL:
25967 \begin_inset LatexCommand url
25968 name "LyX's homepage"
25969 target "http://www.lyx.org"
25976 \begin_layout Standard
25979 Generate\InsetSpace ~
25982 in the URL dialog has only an affect when you export your document to the
25984 \begin_inset Quotes eld
25992 \begin_inset Quotes erd
25998 \begin_layout Standard
25999 You cannot change the style of the link text.
26004 field will have the default text style of the document while the text of
26009 field will have the style
26010 \begin_inset Quotes eld
26018 \begin_inset Quotes erd
26024 \begin_layout Standard
26025 When you use the LaTeX-package
26030 \begin_inset LatexCommand index
26031 name "LaTeX-packages ! hyperref"
26035 to link cross-references in the output, URLs will automatically become
26036 clickable hyperlinks in DVI and PDF-output.
26039 \begin_layout Standard
26040 \begin_inset Note Greyedout
26043 \begin_layout Standard
26048 When you use the following characters: "%", "#", "^", you have to write
26049 them with a preceding backslash, e.\InsetSpace \thinspace{}
26052 \begin_inset Quotes eld
26058 \begin_inset Quotes erd
26062 URLs must not end with a backslash.
26070 \begin_layout Standard
26071 \begin_inset VSpace bigskip
26074 To create real hyperlinks without the force to write the link location to
26075 the text, you can use the command
26078 \begin_layout Standard
26083 href{link location}{link text}
26086 \begin_layout Standard
26088 To get for example a link to LyX's web page, write the command
26091 \begin_layout Standard
26096 href{http://www.lyx.org}{
26099 \begin_layout Standard
26101 Insert after the command the link text
26102 \begin_inset Quotes eld
26106 \begin_inset Quotes erd
26109 followed by a brace that is inside an ERT-box.
26110 This is the result:
26114 \begin_layout Standard
26118 href{http://www.lyx.org}{
26127 \begin_layout Standard
26137 \begin_layout Standard
26138 To link to email addresses, add the prefix
26139 \begin_inset Quotes eld
26147 \begin_inset Quotes erd
26150 to the link location:
26156 \begin_layout Standard
26160 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26165 lyx-docs mailing list
26169 \begin_layout Standard
26179 \begin_layout Standard
26186 instead of LyX's URL box has the advantage that you can specify the text
26187 style of the link text for all other text parts and that you are able to
26188 change the text style for all URLs in your document with an option in
26193 Furthermore the restrictions mentioned above doesn't apply for
26203 \begin_layout Standard
26207 \begin_layout Standard
26213 \begin_layout Chapter
26219 \begin_layout Standard
26232 \begin_layout Standard
26240 \begin_inset LatexCommand index
26246 \begin_inset LatexCommand label
26247 name "cha:Units-available-in"
26252 \begin_inset Note Note
26255 \begin_layout Standard
26258 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
26259 are displayed wrongly in PDF-bookmarks.
26260 For more information about this, have a look at
26261 \begin_inset LatexCommand cite
26274 \begin_layout Standard
26275 To understand the units described in this documentation, Table\InsetSpace ~
26277 \begin_inset LatexCommand ref
26278 reference "tab:Units"
26282 explains all units available in LyX.
26285 \begin_layout Standard
26286 \begin_inset Float table
26292 \begin_layout Caption
26293 \begin_inset LatexCommand label
26301 \begin_layout Standard
26302 \begin_inset VSpace medskip
26308 \begin_layout Standard
26310 \begin_inset Tabular
26311 <lyxtabular version="3" rows="20" columns="2">
26313 <column alignment="center" valignment="top" leftline="true" width="0">
26314 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26315 <row topline="true" bottomline="true">
26316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26319 \begin_layout Standard
26325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26328 \begin_layout Standard
26335 <row topline="true">
26336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26339 \begin_layout Standard
26345 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26348 \begin_layout Standard
26355 <row topline="true">
26356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26359 \begin_layout Standard
26365 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26368 \begin_layout Standard
26375 <row topline="true">
26376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26379 \begin_layout Standard
26385 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26388 \begin_layout Standard
26395 <row topline="true">
26396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26399 \begin_layout Standard
26405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26408 \begin_layout Standard
26409 point (72.27\InsetSpace \thinspace{}
26410 pt = 1\InsetSpace \thinspace{}
26417 <row topline="true">
26418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26421 \begin_layout Standard
26427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26430 \begin_layout Standard
26431 pica (1\InsetSpace \thinspace{}
26432 pc = 12\InsetSpace \thinspace{}
26439 <row topline="true">
26440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26443 \begin_layout Standard
26449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26452 \begin_layout Standard
26453 scaled point (65536\InsetSpace \thinspace{}
26454 sp = 1\InsetSpace \thinspace{}
26461 <row topline="true">
26462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26465 \begin_layout Standard
26471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26474 \begin_layout Standard
26475 big point (72\InsetSpace \thinspace{}
26476 bp = 1\InsetSpace \thinspace{}
26483 <row topline="true">
26484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26487 \begin_layout Standard
26493 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26496 \begin_layout Standard
26497 didot (72\InsetSpace \thinspace{}
26499 \begin_inset Formula $\approx$
26502 37.6\InsetSpace \thinspace{}
26509 <row topline="true">
26510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26513 \begin_layout Standard
26519 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26522 \begin_layout Standard
26523 cicero (1\InsetSpace \thinspace{}
26524 cc = 12\InsetSpace \thinspace{}
26531 <row topline="true">
26532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26535 \begin_layout Standard
26541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26544 \begin_layout Standard
26545 % of original image width
26551 <row topline="true">
26552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26555 \begin_layout Standard
26561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26564 \begin_layout Standard
26571 <row topline="true">
26572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26575 \begin_layout Standard
26581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26584 \begin_layout Standard
26591 <row topline="true">
26592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26595 \begin_layout Standard
26601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26604 \begin_layout Standard
26611 <row topline="true">
26612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26615 \begin_layout Standard
26621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26624 \begin_layout Standard
26631 <row topline="true">
26632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26635 \begin_layout Standard
26641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26644 \begin_layout Standard
26651 <row topline="true">
26652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26655 \begin_layout Standard
26661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26664 \begin_layout Standard
26671 <row topline="true">
26672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26675 \begin_layout Standard
26681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26684 \begin_layout Standard
26695 <row topline="true">
26696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26699 \begin_layout Standard
26705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26708 \begin_layout Standard
26719 <row topline="true" bottomline="true">
26720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26723 \begin_layout Standard
26729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26732 \begin_layout Standard
26733 math unit (1\InsetSpace \thinspace{}
26734 mu = 1/18\InsetSpace \thinspace{}
26753 \begin_layout Chapter
26754 Output File Formats with Graphics
26755 \begin_inset LatexCommand label
26756 name "cha:Output-File-Formats"
26763 \begin_layout Section
26765 \begin_inset LatexCommand index
26766 name "File Formats ! DVI"
26771 \begin_inset LatexCommand index
26772 name "DVI|see{File Formats}"
26779 \begin_layout Standard
26780 This file type has the extension
26781 \begin_inset Quotes eld
26789 \begin_inset Quotes erd
26794 \begin_inset Quotes eld
26798 \begin_inset Quotes erd
26801 (DVI), because it is completely portable; you can move them from one machine
26802 to another without needing to do any sort of conversion.
26803 At the time when this file-format was developed, this was no matter of
26805 DVIs are used for quick previews and as pre-stage for other output formats,
26809 \begin_layout Standard
26810 \begin_inset Note Greyedout
26813 \begin_layout Standard
26818 DVI-files doesn't contain images, they will only be a linked.
26823 So don't forget this, if you move your
26827 file to another computer.
26828 This property can also slow down your computer when you view the DVI.
26829 Because the DVI-viewer has to convert the image in the background to make
26830 it visible when you scroll in the DVI.
26831 So we recommend to use PDF for files with many images.
26834 \begin_layout Standard
26835 You can export your document to DVI by using the menu
26837 File\SpecialChar \menuseparator
26838 Export\SpecialChar \menuseparator
26841 or the toolbar button
26842 \begin_inset Graphics
26843 filename ../clipart/buffer-view_dvi.png
26851 \begin_layout Section
26853 \begin_inset LatexCommand label
26854 name "sec:PostScript"
26859 \begin_inset LatexCommand index
26860 name "File Formats ! PostScript\\protect\\pagebreak"
26865 \begin_inset LatexCommand index
26866 name "PostScript|see{File Formats}"
26873 \begin_layout Standard
26874 This file type has the extension
26875 \begin_inset Quotes eld
26883 \begin_inset Quotes erd
26887 PostScript was developed by the company
26891 as printer language.
26892 The file contains therefore commands that the printer uses to print the
26894 PostScript can be seen as
26895 \begin_inset Quotes eld
26898 programming language
26899 \begin_inset Quotes erd
26902 ; you can calculate with it and draw diagrams and images
26906 \begin_layout Standard
26907 If you are interested to learn more about this, have a look at the LaTeX-package
26913 \begin_inset LatexCommand cite
26924 Due to this ability, the files are often bigger than PDFs.
26927 \begin_layout Standard
26928 PostScript can only contain images in the format
26929 \begin_inset Quotes eld
26932 Encapsulated PostScript
26933 \begin_inset Quotes erd
26936 (EPS, file extension
26937 \begin_inset Quotes eld
26945 \begin_inset Quotes erd
26949 As LyX allows you to use any known image format in your document, it has
26950 to convert images in the background to EPS.
26951 If you have e.g 50 images in your document, LyX has to do 50 conversions
26952 whenever you view or export your document.
26953 This will slow down your work flow with LyX drastically.
26954 So if you plan to use PostScript, you can insert your images directly as
26955 EPS to avoid this problem.
26958 \begin_layout Standard
26959 You can export your document to PostScript using the menu
26961 File\SpecialChar \menuseparator
26962 Export\SpecialChar \menuseparator
26968 \begin_layout Section
26970 \begin_inset LatexCommand label
26976 \begin_inset LatexCommand index
26977 name "File Formats ! PDF"
26982 \begin_inset LatexCommand index
26990 \begin_layout Standard
26991 This file type has the extension
26992 \begin_inset Quotes eld
27000 \begin_inset Quotes erd
27005 \begin_inset Quotes eld
27008 Portable Document Format
27009 \begin_inset Quotes erd
27012 (PDF) is developed by
27016 as derivative from PostScript.
27017 It is more compressed and it uses much less commands than PostScript.
27019 \begin_inset Quotes eld
27023 \begin_inset Quotes erd
27026 implies, it can be processed at any computer system and the printed output
27027 looks exactly the same.
27030 \begin_layout Standard
27031 PDF can contain images in its own PDF format, in the format
27032 \begin_inset Quotes eld
27035 Joint Photographic Experts Group
27036 \begin_inset Quotes erd
27039 (JPG, file extension
27040 \begin_inset Quotes eld
27048 \begin_inset Quotes erd
27052 \begin_inset Quotes eld
27060 \begin_inset Quotes erd
27063 ), and in the format
27064 \begin_inset Quotes eld
27067 Portable Network Graphics
27068 \begin_inset Quotes erd
27071 (PNG, file extension
27072 \begin_inset Quotes eld
27080 \begin_inset Quotes erd
27084 You can although use any other image format, because LyX converts them
27085 in the background to one of these formats.
27086 But as described in the section about PostScript, the image conversion
27087 will slow down your work flow.
27088 So it is recommended to use images in one of the three mentioned formats.
27091 \begin_layout Standard
27092 You can export your document to PDF via the menu
27094 File\SpecialChar \menuseparator
27097 in three different ways:
27100 \begin_layout Description
27101 PDF This uses the program
27105 that creates a PDF from a PostScript-version of your file.
27106 The PostScript-version is produced by the program
27110 which uses a DVI-version as intermediate step.
27111 So this export variant consist of three conversions.
27114 \begin_layout Description
27116 (dvipdfm) This uses the program
27120 that converts your file in the background to DVI and in a second step to
27124 \begin_layout Description
27126 (pdflatex) This uses the program
27130 that converts your file directly to PDF.
27131 You can alternatively use the toolbar button
27132 \begin_inset Graphics
27133 filename ../clipart/buffer-export_pdf2.png
27141 \begin_layout Standard
27142 It is recommended to use
27151 supports all features of actual PDF-versions, is quick and works stable
27157 is not under development and therefore a bit outdated.
27160 \begin_layout Chapter
27161 Explanation of Equation\InsetSpace ~
27163 \begin_inset LatexCommand eqref
27169 \begin_inset LatexCommand label
27170 name "cha:Explanation-of-Equation"
27177 \begin_layout Standard
27183 \begin_inset Formula $W_{\mathrm{tot\, n}}$
27186 can be calculated to
27189 \begin_layout Standard
27190 \begin_inset Formula \begin{equation}
27191 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
27198 \begin_layout Standard
27200 \begin_inset Formula $W_{g\, n}$
27203 is the given width of all cells.
27210 is the LaTeX-length between the cell text and the cell border, its default
27211 value is 6\InsetSpace \thinspace{}
27219 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
27223 \begin_layout Standard
27224 Following equation\InsetSpace ~
27226 \begin_inset LatexCommand eqref
27227 reference "eq:Wtot_n"
27231 , the total width of a multicolumn
27232 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
27238 \begin_layout Standard
27239 \begin_inset Formula \begin{equation}
27240 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
27247 \begin_layout Standard
27248 By setting equation\InsetSpace ~
27250 \begin_inset LatexCommand eqref
27251 reference "eq:Wtot_n"
27256 \begin_inset LatexCommand eqref
27257 reference "eq:Wtot_mult"
27261 equal we can calculate the needed given width
27262 \begin_inset Formula $W_{g\, n}$
27269 columns are spanned, so that each column has a total width of
27270 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
27276 \begin_layout Standard
27277 \begin_inset Formula \begin{equation}
27278 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
27285 \begin_layout Bibliography
27286 \begin_inset LatexCommand bibitem
27287 key "latexcompanion"
27291 Frank Mittelbach and Michel Goossens:
27293 The LaTeX Companion Second Edition.
27296 Addison-Wesley, 2004
27299 \begin_layout Bibliography
27300 \begin_inset LatexCommand bibitem
27305 Helmut Kopka and Patrick W.
27308 A Guide to LaTeX Fourth Edition.
27311 Addison-Wesley, 2003
27314 \begin_layout Bibliography
27315 \begin_inset LatexCommand bibitem
27322 LaTeX: A Document Preparation System.
27325 Addison-Wesley, second edition, 1994
27328 \begin_layout Bibliography
27329 \begin_inset LatexCommand bibitem
27338 \begin_layout Standard
27342 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
27352 \begin_layout Standard
27359 of the LaTeX-package
27364 \begin_inset LatexCommand index
27365 name "LaTeX-packages ! booktabs"
27372 \begin_layout Bibliography
27373 \begin_inset LatexCommand bibitem
27382 \begin_layout Standard
27386 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
27395 \begin_layout Standard
27402 of the LaTeX-package
27407 \begin_inset LatexCommand index
27408 name "LaTeX-packages ! caption"
27415 \begin_layout Bibliography
27416 \begin_inset LatexCommand bibitem
27425 \begin_layout Standard
27429 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
27439 \begin_layout Standard
27446 of the LaTeX-package
27451 \begin_layout Bibliography
27452 \begin_inset LatexCommand bibitem
27461 \begin_layout Standard
27465 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
27475 \begin_layout Standard
27482 of the LaTeX-package
27487 \begin_inset LatexCommand index
27488 name "LaTeX-packages ! endfloat"
27495 \begin_layout Bibliography
27496 \begin_inset LatexCommand bibitem
27505 \begin_layout Standard
27509 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
27519 \begin_layout Standard
27526 of the LaTeX-package
27531 \begin_inset LatexCommand index
27532 name "LaTeX-packages ! floatflt"
27539 \begin_layout Bibliography
27540 \begin_inset LatexCommand bibitem
27549 \begin_layout Standard
27553 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
27563 \begin_layout Standard
27570 of the LaTeX-package
27575 \begin_inset LatexCommand index
27576 name "LaTeX-packages ! footmisc"
27583 \begin_layout Bibliography
27584 \begin_inset LatexCommand bibitem
27593 \begin_layout Standard
27597 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
27606 \begin_layout Standard
27613 of the LaTeX-package
27618 \begin_inset LatexCommand index
27619 name "LaTeX-packages ! hyperref"
27626 \begin_layout Bibliography
27627 \begin_inset LatexCommand bibitem
27636 \begin_layout Standard
27640 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
27650 \begin_layout Standard
27657 of the LaTeX-package
27662 \begin_inset LatexCommand index
27663 name "LaTeX-packages ! hyperref"
27670 \begin_layout Bibliography
27671 \begin_inset LatexCommand bibitem
27680 \begin_layout Standard
27684 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
27694 \begin_layout Standard
27701 of the LaTeX-package
27706 \begin_inset LatexCommand index
27707 name "LaTeX-packages ! koma-script"
27714 \begin_layout Bibliography
27715 \begin_inset LatexCommand bibitem
27716 key "koma-script-de"
27724 \begin_layout Standard
27728 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
27738 \begin_layout Standard
27745 of the LaTeX-package
27750 \begin_inset LatexCommand index
27751 name "LaTeX-packages ! koma-script"
27758 \begin_layout Bibliography
27759 \begin_inset LatexCommand bibitem
27768 \begin_layout Standard
27772 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
27782 \begin_layout Standard
27789 of the LaTeX-package
27794 \begin_inset LatexCommand index
27795 name "LaTeX-packages ! marginnote"
27802 \begin_layout Bibliography
27803 \begin_inset LatexCommand bibitem
27812 \begin_layout Standard
27816 href{http://tug.org/PSTricks/main.cgi/}{
27825 \begin_layout Standard
27832 of the LaTeX-package
27837 \begin_inset LatexCommand index
27838 name "LaTeX-packages ! PSTricks"
27845 \begin_layout Bibliography
27846 \begin_inset LatexCommand bibitem
27855 \begin_layout Standard
27859 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
27868 \begin_layout Standard
27875 of the LaTeX-package
27880 \begin_inset LatexCommand index
27881 name "LaTeX-packages ! sidecap"
27888 \begin_layout Bibliography
27889 \begin_inset LatexCommand bibitem
27898 \begin_layout Standard
27902 href{http://wiki.lyx.org/LyX/NewInLyX15}{
27911 \begin_layout Standard
27918 about new LyX-features planned for the release
27925 \begin_layout Standard
27926 \begin_inset LatexCommand printindex
27933 \begin_layout Standard
27934 \begin_inset FloatList figure
27941 \begin_layout Standard
27942 \begin_inset FloatList table