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 Figure, Table, Floats, Notes, and Boxes manual},
80 pdfsubject={LyX-documentation about figures, tables, floats, notes, and boxes},
81 pdfkeywords={LyX, Tables, Figures, Floats, Boxes, Notes}]{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 Figure, Table, Floats, Notes, and Boxes 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="0">
1192 <column alignment="center" valignment="top" leftline="true" width="0">
1193 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
1194 <row topline="true" bottomline="true">
1195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1198 \begin_layout Standard
1204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1207 \begin_layout Standard
1222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1225 \begin_layout Standard
1231 <cell alignment="center" valignment="top" topline="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" usebox="none">
1319 \begin_layout Standard
1325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1328 \begin_layout Standard
1335 <row topline="true" bottomline="true">
1336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1339 \begin_layout Standard
1354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1357 \begin_layout Standard
1363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1366 \begin_layout Standard
1372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1375 \begin_layout Standard
1389 \begin_layout Section
1391 \begin_inset LatexCommand index
1392 name "Table ! Dialog"
1399 \begin_layout Standard
1400 You can alter a table by clicking on it with the right mouse button, which
1401 brings up the table dialog.
1402 Here you can adjust the settings of that cell and row/column respectively
1403 where the cursor is currently placed.
1404 Most of the dialog options also work on selections.
1405 This means if you select more cells, columns or rows, the action is done
1406 for the whole selection.
1407 Note that there is a difference between selecting the
1411 of the cell, and the cell itself.
1412 You can alter tables with the following tabs of the table dialog:
1415 \begin_layout Description
1421 Here you can set the horizontal alignment for the current row and the width
1422 of the current column.
1423 When you have set a width you can also adjust the vertical alignment of
1425 A given width will allow the cell to have line breaks and multiple paragraphs
1426 of text, see section\InsetSpace ~
1428 \begin_inset LatexCommand ref
1429 reference "sub:Multiple-Lines-in"
1434 If you set no width, the column is as wide as their widest cell content
1437 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1438 cell, see section\InsetSpace ~
1440 \begin_inset LatexCommand ref
1441 reference "sub:Multicolumns"
1447 The rotate check boxes rotates the current cell, a selection, or the whole
1448 table counter-clockwise by 90°.
1449 The rotation is not shown within LyX, only in the output.
1452 \begin_inset Note Greyedout
1455 \begin_layout Standard
1460 Not all DVI-viewers are able to display rotations.
1467 It is also possible to enter a LaTeX-argument which is needed for special
1468 table formattings, see section\InsetSpace ~
1470 \begin_inset LatexCommand ref
1471 reference "sub:Multicolumn-Calculations"
1476 \begin_inset LatexCommand ref
1477 reference "sec:Colored-Tables"
1484 \begin_layout Description
1489 In this tab you can add and delete border lines for the current row/column.
1496 will convert the table to a formal table as described in section\InsetSpace ~
1498 \begin_inset LatexCommand ref
1499 reference "sec:Formal-Tables"
1505 You can also add here space to table rows as decribed in section\InsetSpace ~
1507 \begin_inset LatexCommand ref
1508 reference "sub:Row-Spacing"
1515 \begin_layout Description
1520 This tab is to make a table a so called
1521 \begin_inset Quotes eld
1529 \begin_inset Quotes erd
1532 that can run over several pages.
1533 Section\InsetSpace ~
1535 \begin_inset LatexCommand ref
1536 reference "sec:Longtables"
1541 \begin_inset LatexCommand ref
1542 reference "sec:Special-Longtable-Issues"
1546 describe the longtable features in detail.
1549 \begin_layout Standard
1550 When the table toolbar is opened, you can move the cursor with the arrow
1551 keys from cell to cell and the property of the current cell will immediately
1552 be displayed in the dialog.
1555 \begin_layout Section
1557 \begin_inset LatexCommand index
1558 name "Table ! Toolbar"
1565 \begin_layout Standard
1566 The table toolbar is an alternative to the table dialog to be able to alter
1568 It should normally appear at the bottom of LyX's main window when the cursor
1570 You can alternatively switch it on to appear always, by right-clicking
1571 in LyX's main menu bar.
1574 \begin_layout Standard
1575 The toolbar has the following icons:
1578 \begin_layout Labeling
1579 \labelwidthstring 00.00.0000
1580 \begin_inset Graphics
1581 filename ../images/tabular-feature_append-row.xpm
1585 adds a row below the current cell or selection
1588 \begin_layout Labeling
1589 \labelwidthstring 00.00.0000
1590 \begin_inset Graphics
1591 filename ../images/tabular-feature_append-column.xpm
1595 adds a column right beside the current cell or selection
1598 \begin_layout Labeling
1599 \labelwidthstring 00.00.0000
1600 \begin_inset Graphics
1601 filename ../images/tabular-feature_delete-row.xpm
1605 deletes the current row or selection
1608 \begin_layout Labeling
1609 \labelwidthstring 00.00.0000
1610 \begin_inset Graphics
1611 filename ../images/tabular-feature_delete-column.xpm
1615 deletes the current column or selection
1618 \begin_layout Labeling
1619 \labelwidthstring 00.00.0000
1620 \begin_inset Graphics
1621 filename ../images/tabular-feature_toggle-line-top.xpm
1625 adds a line at the top of the current cell / row or of a selection
1628 \begin_layout Labeling
1629 \labelwidthstring 00.00.0000
1630 \begin_inset Graphics
1631 filename ../images/tabular-feature_toggle-line-bottom.xpm
1635 adds a line at the bottom of the current cell / row or of a selection
1638 \begin_layout Labeling
1639 \labelwidthstring 00.00.0000
1640 \begin_inset Graphics
1641 filename ../images/tabular-feature_toggle-line-left.xpm
1645 adds a line at the left side of the current cell / row or of a selection
1648 \begin_layout Labeling
1649 \labelwidthstring 00.00.0000
1650 \begin_inset Graphics
1651 filename ../images/tabular-feature_toggle-line-right.xpm
1655 adds a line at the right side of the current cell / row or of a selection
1658 \begin_layout Labeling
1659 \labelwidthstring 00.00.0000
1660 \begin_inset Graphics
1661 filename ../images/tabular-feature_set-all-lines.xpm
1665 adds lines around the current or selected cells - if the current cell no
1666 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_unset-all-lines.xpm
1676 deletes all lines of the current or selected cells - if the current cell
1677 no multicolumn this also affects the current row and column
1680 \begin_layout Labeling
1681 \labelwidthstring 00.00.0000
1682 \begin_inset Graphics
1683 filename ../images/tabular-feature_align-left.xpm
1687 left-aligns the content of the current cell / column
1690 \begin_layout Labeling
1691 \labelwidthstring 00.00.0000
1692 \begin_inset Graphics
1693 filename ../images/tabular-feature_align-center.xpm
1697 centers the content of the current cell / column horizontally
1700 \begin_layout Labeling
1701 \labelwidthstring 00.00.0000
1702 \begin_inset Graphics
1703 filename ../images/tabular-feature_align-right.xpm
1707 right-aligns the content of the current cell / column
1710 \begin_layout Labeling
1711 \labelwidthstring 00.00.0000
1712 \begin_inset Graphics
1713 filename ../images/tabular-feature_valign-top.xpm
1717 aligns the content of the current cell vertically to the top
1720 \begin_layout Labeling
1721 \labelwidthstring 00.00.0000
1722 \begin_inset Graphics
1723 filename ../images/tabular-feature_valign-middle.xpm
1727 centers the content of the current cell vertically
1730 \begin_layout Labeling
1731 \labelwidthstring 00.00.0000
1732 \begin_inset Graphics
1733 filename ../images/tabular-feature_valign-bottom.xpm
1737 aligns the content of the current cell vertically to the bottom
1740 \begin_layout Labeling
1741 \labelwidthstring 00.00.0000
1742 \begin_inset Graphics
1743 filename ../images/tabular-feature_set-rotate-cell.xpm
1747 rotates the current cell or selection counter-clockwise by 90°
1750 \begin_layout Labeling
1751 \labelwidthstring 00.00.0000
1752 \begin_inset Graphics
1753 filename ../images/tabular-feature_set-rotate-tabular.xpm
1757 rotates the whole table counter-clockwise by 90°
1760 \begin_layout Labeling
1761 \labelwidthstring 00.00.0000
1762 \begin_inset Graphics
1763 filename ../images/tabular-feature_multicolumn.xpm
1767 sets the current cell or selection as a multicolumn
1770 \begin_layout Section
1772 \begin_inset LatexCommand index
1773 name "Table ! Edit Menu"
1780 \begin_layout Standard
1781 Additionally to the table dialog and toolbar, the menu
1783 Edit\SpecialChar \menuseparator
1786 allows you to add and delete border lines for the current row/column and
1787 to set the current selection as multicolumn.
1788 The menu is only available when the cursor is inside a table.
1791 \begin_layout Section
1793 \begin_inset LatexCommand label
1794 name "sec:Table-Floats"
1799 \begin_inset LatexCommand index
1800 name "Floats ! Tables"
1805 \begin_inset LatexCommand index
1806 name "Table ! Floats"
1813 \begin_layout Standard
1814 For general explanations about floats, have a look at section\InsetSpace ~
1816 \begin_inset LatexCommand ref
1817 reference "sec:FloatIntroduction"
1824 \begin_layout Standard
1825 \begin_inset Float table
1831 \begin_layout Caption
1832 \begin_inset LatexCommand label
1833 name "tab:a table float"
1840 \begin_layout Standard
1842 \begin_inset Tabular
1843 <lyxtabular version="3" rows="3" columns="3">
1845 <column alignment="center" valignment="top" leftline="true" width="0pt">
1846 <column alignment="center" valignment="top" leftline="true" width="0pt">
1847 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
1848 <row topline="true" bottomline="true">
1849 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1852 \begin_layout Standard
1867 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1870 \begin_layout Standard
1885 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1888 \begin_layout Standard
1904 <row topline="true">
1905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1908 \begin_layout Standard
1923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1926 \begin_layout Standard
1941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1944 \begin_layout Standard
1960 <row topline="true" bottomline="true">
1961 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1964 \begin_layout Standard
1974 \begin_inset Formula $\int x^{2}dx$
1982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1985 \begin_layout Standard
1995 \begin_inset Formula $\left[\begin{array}{cc}
1997 c & d\end{array}\right]$
2005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2008 \begin_layout Standard
2018 \begin_inset Formula $1+1=2$
2039 \begin_layout Standard
2040 Table floats can be inserted using the menu
2042 Insert\SpecialChar \menuseparator
2043 Float\SpecialChar \menuseparator
2046 or the toolbar button
2047 \begin_inset Graphics
2048 filename ../images/float-insert_table.xpm
2056 \begin_layout Standard
2057 The float appears as a collapsible box with the label
2058 \begin_inset Quotes eld
2067 \begin_inset Quotes erd
2071 The text following the label is the caption of the table.
2072 To insert a table to the the float set the cursor at the end of the caption
2073 text, press enter and insert the table.
2074 The caption is now printed above the table.
2077 \begin_layout Standard
2080 \begin_inset LatexCommand ref
2081 reference "tab:a table float"
2085 is an example table within a table float.
2088 \begin_layout Standard
2089 Having the caption above the table is the common rule that is unfortunately
2090 not supported in LaTeX's standard classes.
2091 That means if you are using the document classes
2107 there will be no space between the caption and the table.
2108 To insert the needed space, add the following option to the load command
2109 of the LaTeX-package
2114 \begin_inset LatexCommand index
2115 name "LaTeX-packages ! caption"
2119 in your document preamble
2123 \begin_layout Standard
2124 For more information have a look at section\InsetSpace ~
2126 \begin_inset LatexCommand ref
2127 reference "sec:Caption-Placement"
2139 \begin_layout Standard
2145 \begin_layout Standard
2150 , which is described in section\InsetSpace ~
2152 \begin_inset LatexCommand ref
2153 reference "sec:Caption-Formatting"
2157 , is used to adjust the caption format.
2160 \begin_layout Standard
2161 \begin_inset LatexCommand index
2162 name "References ! to Tables"
2166 Tables can be cross-referenced in the text by referencing their label.
2167 To do this insert a label in the caption using the menu
2169 Insert\SpecialChar \menuseparator
2172 or the toolbar button
2173 \begin_inset Graphics
2174 filename ../images/label-insert.xpm
2180 You can now refer to the label using the menu
2182 Insert\SpecialChar \menuseparator
2186 or the toolbar button
2187 \begin_inset Graphics
2188 filename ../images/dialog-show-new-inset_ref.xpm
2196 \begin_layout Standard
2200 \begin_layout Section
2202 \begin_inset LatexCommand label
2203 name "sec:Longtables"
2208 \begin_inset LatexCommand index
2214 \begin_inset LatexCommand index
2215 name "Table ! Longtables"
2222 \begin_layout Standard
2223 If the table is too long to fit on one page, you can use the option
2233 of the table dialog to split the table automatically over more pages.
2234 Doing this enables some check boxes and you can now define:
2237 \begin_layout Description
2242 : The current row and all rows above, that don't have any special options
2243 defined, are defined to be the header rows of all pages of the longtable;
2244 except for the first page, if
2250 This therefore called the main header.
2253 \begin_layout Description
2259 : The current row and all rows above, that don't have any special options
2260 defined, are defined to be the header rows of the first page of the longtable.
2263 \begin_layout Description
2268 : The current row and all rows below, that don't have any special options
2269 defined, are defined to be the footer rows of all pages of the longtable;
2270 except for the last page, if
2278 \begin_layout Description
2284 : The current row and all rows below, that don't have any special options
2285 defined, are defined to be the footer rows of the last page of the longtable.
2288 \begin_layout Standard
2289 You can also specify a row where the table is splitted.
2290 If you set more than one option in the same table row, you should be aware
2291 of the fact that only the first one is used in the given table row.
2292 The others will then be defined as
2297 In this context, first means first in this order:
2299 Footer, Last\InsetSpace ~
2315 See the following longtable to see how it works:
2318 \begin_layout Standard
2320 \begin_inset Tabular
2321 <lyxtabular version="3" rows="69" columns="3">
2322 <features islongtable="true">
2323 <column alignment="left" valignment="top" leftline="true" width="0cm">
2324 <column alignment="left" valignment="top" width="0pt">
2325 <column alignment="right" valignment="top" leftline="true" rightline="true" width="0pt">
2326 <row topline="true" bottomline="true" endfirsthead="true">
2327 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2330 \begin_layout Standard
2333 Example Phone List (ignore the names)
2338 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2341 \begin_layout Standard
2347 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2350 \begin_layout Standard
2357 <row topline="true" bottomline="true" endfirsthead="true">
2358 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2361 \begin_layout Standard
2369 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2372 \begin_layout Standard
2378 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2381 \begin_layout Standard
2390 <row topline="true" bottomline="true" endhead="true">
2391 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2394 \begin_layout Standard
2402 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2405 \begin_layout Standard
2411 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2414 \begin_layout Standard
2421 <row topline="true" bottomline="true" endhead="true">
2422 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
2425 \begin_layout Standard
2433 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2436 \begin_layout Standard
2442 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
2445 \begin_layout Standard
2454 <row topline="true" bottomline="true" endfoot="true">
2455 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
2458 \begin_layout Standard
2459 continued on next page
2464 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
2467 \begin_layout Standard
2473 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2476 \begin_layout Standard
2484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2487 \begin_layout Standard
2495 <cell alignment="center" valignment="top" topline="true" usebox="none">
2498 \begin_layout Standard
2504 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2507 \begin_layout Standard
2515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2518 \begin_layout Standard
2526 <cell alignment="center" valignment="top" topline="true" usebox="none">
2529 \begin_layout Standard
2535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2538 \begin_layout Standard
2546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2549 \begin_layout Standard
2557 <cell alignment="center" valignment="top" topline="true" usebox="none">
2560 \begin_layout Standard
2566 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2569 \begin_layout Standard
2577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2580 \begin_layout Standard
2588 <cell alignment="center" valignment="top" topline="true" usebox="none">
2591 \begin_layout Standard
2597 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2600 \begin_layout Standard
2608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2611 \begin_layout Standard
2619 <cell alignment="center" valignment="top" topline="true" usebox="none">
2622 \begin_layout Standard
2628 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2631 \begin_layout Standard
2639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2642 \begin_layout Standard
2650 <cell alignment="center" valignment="top" topline="true" usebox="none">
2653 \begin_layout Standard
2659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2662 \begin_layout Standard
2670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2673 \begin_layout Standard
2681 <cell alignment="center" valignment="top" topline="true" usebox="none">
2684 \begin_layout Standard
2690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2693 \begin_layout Standard
2701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2704 \begin_layout Standard
2712 <cell alignment="center" valignment="top" topline="true" usebox="none">
2715 \begin_layout Standard
2721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2724 \begin_layout Standard
2732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2735 \begin_layout Standard
2743 <cell alignment="center" valignment="top" topline="true" usebox="none">
2746 \begin_layout Standard
2752 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2755 \begin_layout Standard
2763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2766 \begin_layout Standard
2774 <cell alignment="center" valignment="top" topline="true" usebox="none">
2777 \begin_layout Standard
2783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2786 \begin_layout Standard
2794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2797 \begin_layout Standard
2805 <cell alignment="center" valignment="top" topline="true" usebox="none">
2808 \begin_layout Standard
2814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2817 \begin_layout Standard
2825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2828 \begin_layout Standard
2836 <cell alignment="center" valignment="top" topline="true" usebox="none">
2839 \begin_layout Standard
2845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2848 \begin_layout Standard
2856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2859 \begin_layout Standard
2867 <cell alignment="center" valignment="top" topline="true" usebox="none">
2870 \begin_layout Standard
2876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2879 \begin_layout Standard
2887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2890 \begin_layout Standard
2898 <cell alignment="center" valignment="top" topline="true" usebox="none">
2901 \begin_layout Standard
2907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2910 \begin_layout Standard
2918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2921 \begin_layout Standard
2929 <cell alignment="center" valignment="top" topline="true" usebox="none">
2932 \begin_layout Standard
2938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2941 \begin_layout Standard
2949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2952 \begin_layout Standard
2960 <cell alignment="center" valignment="top" topline="true" usebox="none">
2963 \begin_layout Standard
2969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2972 \begin_layout Standard
2980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2983 \begin_layout Standard
2991 <cell alignment="center" valignment="top" topline="true" usebox="none">
2994 \begin_layout Standard
3000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3003 \begin_layout Standard
3011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3014 \begin_layout Standard
3022 <cell alignment="center" valignment="top" topline="true" usebox="none">
3025 \begin_layout Standard
3031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3034 \begin_layout Standard
3042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3045 \begin_layout Standard
3053 <cell alignment="center" valignment="top" topline="true" usebox="none">
3056 \begin_layout Standard
3062 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3065 \begin_layout Standard
3073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3076 \begin_layout Standard
3084 <cell alignment="center" valignment="top" topline="true" usebox="none">
3087 \begin_layout Standard
3093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3096 \begin_layout Standard
3104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3107 \begin_layout Standard
3115 <cell alignment="center" valignment="top" topline="true" usebox="none">
3118 \begin_layout Standard
3124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3127 \begin_layout Standard
3135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3138 \begin_layout Standard
3146 <cell alignment="center" valignment="top" topline="true" usebox="none">
3149 \begin_layout Standard
3155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3158 \begin_layout Standard
3166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3169 \begin_layout Standard
3177 <cell alignment="center" valignment="top" topline="true" usebox="none">
3180 \begin_layout Standard
3186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3189 \begin_layout Standard
3197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3200 \begin_layout Standard
3208 <cell alignment="center" valignment="top" topline="true" usebox="none">
3211 \begin_layout Standard
3217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3220 \begin_layout Standard
3228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3231 \begin_layout Standard
3239 <cell alignment="center" valignment="top" topline="true" usebox="none">
3242 \begin_layout Standard
3248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3251 \begin_layout Standard
3259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3262 \begin_layout Standard
3270 <cell alignment="center" valignment="top" topline="true" usebox="none">
3273 \begin_layout Standard
3279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3282 \begin_layout Standard
3290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3293 \begin_layout Standard
3301 <cell alignment="center" valignment="top" topline="true" usebox="none">
3304 \begin_layout Standard
3310 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3313 \begin_layout Standard
3321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3324 \begin_layout Standard
3332 <cell alignment="center" valignment="top" topline="true" usebox="none">
3335 \begin_layout Standard
3341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3344 \begin_layout Standard
3352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3355 \begin_layout Standard
3363 <cell alignment="center" valignment="top" topline="true" usebox="none">
3366 \begin_layout Standard
3372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3375 \begin_layout Standard
3383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3386 \begin_layout Standard
3394 <cell alignment="center" valignment="top" topline="true" usebox="none">
3397 \begin_layout Standard
3403 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3406 \begin_layout Standard
3413 <row bottomline="true">
3414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3417 \begin_layout Standard
3425 <cell alignment="center" valignment="top" topline="true" usebox="none">
3428 \begin_layout Standard
3434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3437 \begin_layout Standard
3444 <row bottomline="true">
3445 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3448 \begin_layout Standard
3454 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
3457 \begin_layout Standard
3463 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3466 \begin_layout Standard
3474 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3477 \begin_layout Standard
3485 <cell alignment="center" valignment="top" topline="true" usebox="none">
3488 \begin_layout Standard
3494 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3497 \begin_layout Standard
3505 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3508 \begin_layout Standard
3516 <cell alignment="center" valignment="top" topline="true" usebox="none">
3519 \begin_layout Standard
3525 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3528 \begin_layout Standard
3536 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3539 \begin_layout Standard
3547 <cell alignment="center" valignment="top" topline="true" usebox="none">
3550 \begin_layout Standard
3556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3559 \begin_layout Standard
3567 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3570 \begin_layout Standard
3578 <cell alignment="center" valignment="top" topline="true" usebox="none">
3581 \begin_layout Standard
3587 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3590 \begin_layout Standard
3598 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3601 \begin_layout Standard
3609 <cell alignment="center" valignment="top" topline="true" usebox="none">
3612 \begin_layout Standard
3618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3621 \begin_layout Standard
3629 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3632 \begin_layout Standard
3640 <cell alignment="center" valignment="top" topline="true" usebox="none">
3643 \begin_layout Standard
3649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3652 \begin_layout Standard
3660 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3663 \begin_layout Standard
3671 <cell alignment="center" valignment="top" topline="true" usebox="none">
3674 \begin_layout Standard
3680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3683 \begin_layout Standard
3691 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3694 \begin_layout Standard
3702 <cell alignment="center" valignment="top" topline="true" usebox="none">
3705 \begin_layout Standard
3711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3714 \begin_layout Standard
3722 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3725 \begin_layout Standard
3733 <cell alignment="center" valignment="top" topline="true" usebox="none">
3736 \begin_layout Standard
3742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3745 \begin_layout Standard
3753 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3756 \begin_layout Standard
3764 <cell alignment="center" valignment="top" topline="true" usebox="none">
3767 \begin_layout Standard
3773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3776 \begin_layout Standard
3784 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3787 \begin_layout Standard
3795 <cell alignment="center" valignment="top" topline="true" usebox="none">
3798 \begin_layout Standard
3804 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3807 \begin_layout Standard
3815 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3818 \begin_layout Standard
3826 <cell alignment="center" valignment="top" topline="true" usebox="none">
3829 \begin_layout Standard
3835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3838 \begin_layout Standard
3846 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3849 \begin_layout Standard
3857 <cell alignment="center" valignment="top" topline="true" usebox="none">
3860 \begin_layout Standard
3866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3869 \begin_layout Standard
3877 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3880 \begin_layout Standard
3888 <cell alignment="center" valignment="top" topline="true" usebox="none">
3891 \begin_layout Standard
3897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3900 \begin_layout Standard
3908 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3911 \begin_layout Standard
3919 <cell alignment="center" valignment="top" topline="true" usebox="none">
3922 \begin_layout Standard
3928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3931 \begin_layout Standard
3939 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3942 \begin_layout Standard
3950 <cell alignment="center" valignment="top" topline="true" usebox="none">
3953 \begin_layout Standard
3959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3962 \begin_layout Standard
3970 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
3973 \begin_layout Standard
3981 <cell alignment="center" valignment="top" topline="true" usebox="none">
3984 \begin_layout Standard
3990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3993 \begin_layout Standard
4001 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4004 \begin_layout Standard
4012 <cell alignment="center" valignment="top" topline="true" usebox="none">
4015 \begin_layout Standard
4021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4024 \begin_layout Standard
4032 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4035 \begin_layout Standard
4043 <cell alignment="center" valignment="top" topline="true" usebox="none">
4046 \begin_layout Standard
4052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4055 \begin_layout Standard
4063 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4066 \begin_layout Standard
4074 <cell alignment="center" valignment="top" topline="true" usebox="none">
4077 \begin_layout Standard
4083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4086 \begin_layout Standard
4094 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4097 \begin_layout Standard
4105 <cell alignment="center" valignment="top" topline="true" usebox="none">
4108 \begin_layout Standard
4114 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4117 \begin_layout Standard
4125 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4128 \begin_layout Standard
4136 <cell alignment="center" valignment="top" topline="true" usebox="none">
4139 \begin_layout Standard
4145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4148 \begin_layout Standard
4156 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4159 \begin_layout Standard
4167 <cell alignment="center" valignment="top" topline="true" usebox="none">
4170 \begin_layout Standard
4176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4179 \begin_layout Standard
4187 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4190 \begin_layout Standard
4198 <cell alignment="center" valignment="top" topline="true" usebox="none">
4201 \begin_layout Standard
4207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4210 \begin_layout Standard
4218 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4221 \begin_layout Standard
4229 <cell alignment="center" valignment="top" topline="true" usebox="none">
4232 \begin_layout Standard
4238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4241 \begin_layout Standard
4249 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4252 \begin_layout Standard
4260 <cell alignment="center" valignment="top" topline="true" usebox="none">
4263 \begin_layout Standard
4269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4272 \begin_layout Standard
4280 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4283 \begin_layout Standard
4291 <cell alignment="center" valignment="top" topline="true" usebox="none">
4294 \begin_layout Standard
4300 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4303 \begin_layout Standard
4311 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4314 \begin_layout Standard
4322 <cell alignment="center" valignment="top" topline="true" usebox="none">
4325 \begin_layout Standard
4331 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4334 \begin_layout Standard
4342 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4345 \begin_layout Standard
4353 <cell alignment="center" valignment="top" topline="true" usebox="none">
4356 \begin_layout Standard
4362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4365 \begin_layout Standard
4373 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4376 \begin_layout Standard
4384 <cell alignment="center" valignment="top" topline="true" usebox="none">
4387 \begin_layout Standard
4393 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4396 \begin_layout Standard
4403 <row bottomline="true">
4404 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
4407 \begin_layout Standard
4415 <cell alignment="center" valignment="top" topline="true" usebox="none">
4418 \begin_layout Standard
4424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4427 \begin_layout Standard
4434 <row bottomline="true" endlastfoot="true">
4435 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
4438 \begin_layout Standard
4444 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4447 \begin_layout Standard
4453 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4456 \begin_layout Standard
4470 \begin_layout Subsection
4471 Footnotes in Longtables
4472 \begin_inset LatexCommand label
4473 name "sub:Footnotes-in-Longtables"
4478 \begin_inset LatexCommand index
4479 name "Longtables ! Footnotes"
4486 \begin_layout Standard
4487 Footnotes can be inserted to every longtable cell.
4488 They appear at the bottom of the page where the table cell with the footnote
4492 \begin_inset LatexCommand ref
4493 reference "tab:DiffCaptions"
4497 has for example a footnote.
4500 \begin_layout Subsection
4502 \begin_inset LatexCommand index
4503 name "Longtables ! Captions"
4510 \begin_layout Standard
4511 A longtable cannot be put into a table float because floats can only be
4513 Therefore the caption layout cannot be used for longtables.
4516 \begin_layout Standard
4517 To add a caption, a dirty hack is needed:
4520 \begin_layout Enumerate
4524 \begin_layout Enumerate
4525 Mark the first row an disable its upper line
4528 \begin_layout Enumerate
4529 Insert the following command as ERT into the first table cell:
4535 caption[short title]{full title}
4542 \begin_layout Enumerate
4544 \begin_inset Quotes eld
4552 \begin_inset Quotes erd
4555 as ERT into every cell of the first row
4558 \begin_layout Standard
4565 command is used like for normal captions, the short title that will appear
4566 in the LOT instead of the full title is optional.
4571 in the table cells omits the vertical line between the the cells.
4572 The first table row is now only a dummy row for the caption, the actual
4573 table starts with the second row.
4576 \begin_layout Standard
4577 Here is a short longtable to see how it works:
4580 \begin_layout Standard
4581 \begin_inset Tabular
4582 <lyxtabular version="3" rows="6" columns="5">
4583 <features islongtable="true">
4584 <column alignment="center" valignment="top" leftline="true" width="0">
4585 <column alignment="center" valignment="top" leftline="true" width="0">
4586 <column alignment="center" valignment="top" leftline="true" width="0">
4587 <column alignment="center" valignment="top" leftline="true" width="0">
4588 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4593 \begin_layout Standard
4597 \begin_layout Standard
4601 caption[Longtable]{Longtable with caption}
4615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4618 \begin_layout Standard
4622 \begin_layout Standard
4634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4637 \begin_layout Standard
4641 \begin_layout Standard
4653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4656 \begin_layout Standard
4660 \begin_layout Standard
4672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4675 \begin_layout Standard
4679 \begin_layout Standard
4692 <row topline="true">
4693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4696 \begin_layout Standard
4702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4705 \begin_layout Standard
4711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4714 \begin_layout Standard
4720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4723 \begin_layout Standard
4729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4732 \begin_layout Standard
4739 <row topline="true">
4740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4743 \begin_layout Standard
4749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4752 \begin_layout Standard
4758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4761 \begin_layout Standard
4767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4770 \begin_layout Standard
4776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4779 \begin_layout Standard
4786 <row topline="true">
4787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4790 \begin_layout Standard
4796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4799 \begin_layout Standard
4805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4808 \begin_layout Standard
4814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4817 \begin_layout Standard
4823 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4826 \begin_layout Standard
4833 <row topline="true">
4834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4837 \begin_layout Standard
4843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4846 \begin_layout Standard
4852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4855 \begin_layout Standard
4861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4864 \begin_layout Standard
4870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4873 \begin_layout Standard
4880 <row topline="true" bottomline="true">
4881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4884 \begin_layout Standard
4890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4893 \begin_layout Standard
4899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4902 \begin_layout Standard
4908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4911 \begin_layout Standard
4917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4920 \begin_layout Standard
4934 \begin_layout Standard
4935 \begin_inset VSpace medskip
4939 \begin_inset Note Greyedout
4942 \begin_layout Standard
4947 If you are using the LaTeX-package
4952 \begin_inset LatexCommand index
4953 name "LaTeX-packages ! hyperref"
4957 to link cross-references, the link to a longtable caption will always point
4958 to the beginning of the document.
4966 \begin_layout Subsubsection
4967 References to Longtables
4968 \begin_inset LatexCommand index
4969 name "Longtables ! References"
4976 \begin_layout Standard
4977 \begin_inset Tabular
4978 <lyxtabular version="3" rows="6" columns="5">
4979 <features islongtable="true">
4980 <column alignment="center" valignment="top" leftline="true" width="0">
4981 <column alignment="center" valignment="top" leftline="true" width="0">
4982 <column alignment="center" valignment="top" leftline="true" width="0">
4983 <column alignment="center" valignment="top" leftline="true" width="0">
4984 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
4986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4989 \begin_layout Standard
4993 \begin_layout Standard
4997 caption{Referenced longtable
5003 \begin_inset LatexCommand label
5004 name "tab:RefExample"
5012 \begin_layout Standard
5028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5031 \begin_layout Standard
5035 \begin_layout Standard
5047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5050 \begin_layout Standard
5054 \begin_layout Standard
5066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5069 \begin_layout Standard
5073 \begin_layout Standard
5085 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5088 \begin_layout Standard
5092 \begin_layout Standard
5105 <row topline="true">
5106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5109 \begin_layout Standard
5115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5118 \begin_layout Standard
5124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5127 \begin_layout Standard
5133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5136 \begin_layout Standard
5142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5145 \begin_layout Standard
5152 <row topline="true">
5153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5156 \begin_layout Standard
5162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5165 \begin_layout Standard
5171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5174 \begin_layout Standard
5180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5183 \begin_layout Standard
5189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5192 \begin_layout Standard
5199 <row topline="true">
5200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5203 \begin_layout Standard
5209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5212 \begin_layout Standard
5218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5221 \begin_layout Standard
5227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5230 \begin_layout Standard
5236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5239 \begin_layout Standard
5246 <row topline="true">
5247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5250 \begin_layout Standard
5256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5259 \begin_layout Standard
5265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5268 \begin_layout Standard
5274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5277 \begin_layout Standard
5283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5286 \begin_layout Standard
5293 <row topline="true" bottomline="true">
5294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5297 \begin_layout Standard
5303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5306 \begin_layout Standard
5312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5315 \begin_layout Standard
5321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5324 \begin_layout Standard
5330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5333 \begin_layout Standard
5347 \begin_layout Standard
5348 To reference a longtable, insert a label into the
5355 This is done by splitting the ERT of the caption command.
5356 The part of the caption command before the last closing brace
5359 \begin_layout Standard
5364 caption[short title]{full title
5367 \begin_layout Standard
5368 is in the first ERT box, the label is inserted behind it.
5369 Note that you have to add the label prefix
5370 \begin_inset Quotes eld
5378 \begin_inset Quotes eld
5381 manually in the label field.
5382 The second ERT box contains the rest of the
5387 \begin_layout Standard
5397 \begin_layout Standard
5398 and is inserted behind the label box, see Table\InsetSpace ~
5400 \begin_inset LatexCommand ref
5401 reference "tab:RefExample"
5408 \begin_layout Standard
5409 The caption layout can be set together with all other caption of your document
5410 using the LaTeX-package
5415 \begin_inset LatexCommand index
5416 name "LaTeX-packages ! caption"
5420 , see section\InsetSpace ~
5422 \begin_inset LatexCommand ref
5423 reference "sec:Caption-Formatting"
5430 \begin_layout Subsubsection
5432 \begin_inset LatexCommand index
5433 name "Longtables ! Caption Width"
5440 \begin_layout Standard
5441 The maximal width of of caption lines is defined by the length
5448 It default value is 4\InsetSpace \thinspace{}
5450 To change it add the following command to your document preamble or as
5451 ERT into your document before the longtable that should be affected
5454 \begin_layout Standard
5464 \begin_layout Standard
5465 where the width could have one of the units listed in appendix\InsetSpace ~
5467 \begin_inset LatexCommand ref
5468 reference "cha:Units-available-in"
5475 \begin_layout Standard
5476 The following tables show the difference:
5479 \begin_layout Standard
5480 \begin_inset Tabular
5481 <lyxtabular version="3" rows="6" columns="5">
5482 <features islongtable="true">
5483 <column alignment="center" valignment="top" leftline="true" width="0">
5484 <column alignment="center" valignment="top" leftline="true" width="0">
5485 <column alignment="center" valignment="top" leftline="true" width="0">
5486 <column alignment="center" valignment="top" leftline="true" width="0">
5487 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5492 \begin_layout Standard
5496 \begin_layout Standard
5500 caption[caption with default width]{long full title with default width
5503 \begin_layout Standard
5505 long full title with default width long full title with default width}
5519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5522 \begin_layout Standard
5526 \begin_layout Standard
5538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5541 \begin_layout Standard
5545 \begin_layout Standard
5557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5560 \begin_layout Standard
5564 \begin_layout Standard
5576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5579 \begin_layout Standard
5583 \begin_layout Standard
5596 <row topline="true">
5597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5600 \begin_layout Standard
5606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5609 \begin_layout Standard
5615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5618 \begin_layout Standard
5624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5627 \begin_layout Standard
5633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5636 \begin_layout Standard
5643 <row topline="true">
5644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5647 \begin_layout Standard
5653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5656 \begin_layout Standard
5662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5665 \begin_layout Standard
5671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5674 \begin_layout Standard
5680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5683 \begin_layout Standard
5690 <row topline="true">
5691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5694 \begin_layout Standard
5700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5703 \begin_layout Standard
5709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5712 \begin_layout Standard
5718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5721 \begin_layout Standard
5727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5730 \begin_layout Standard
5737 <row topline="true">
5738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5741 \begin_layout Standard
5747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5750 \begin_layout Standard
5756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5759 \begin_layout Standard
5765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5768 \begin_layout Standard
5774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5777 \begin_layout Standard
5784 <row topline="true" bottomline="true">
5785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5788 \begin_layout Standard
5794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5797 \begin_layout Standard
5803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5806 \begin_layout Standard
5812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5815 \begin_layout Standard
5821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5824 \begin_layout Standard
5838 \begin_layout Standard
5842 \begin_layout Standard
5854 \begin_inset Tabular
5855 <lyxtabular version="3" rows="6" columns="5">
5856 <features islongtable="true">
5857 <column alignment="center" valignment="top" leftline="true" width="0">
5858 <column alignment="center" valignment="top" leftline="true" width="0">
5859 <column alignment="center" valignment="top" leftline="true" width="0">
5860 <column alignment="center" valignment="top" leftline="true" width="0">
5861 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
5863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5866 \begin_layout Standard
5870 \begin_layout Standard
5874 caption[caption with width
5880 ,cm]{long full title with width set to 5
5885 \begin_layout Standard
5887 long full title with width set to 15
5889 ,cm long full title with width set to 5
5905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5908 \begin_layout Standard
5912 \begin_layout Standard
5924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5927 \begin_layout Standard
5931 \begin_layout Standard
5943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5946 \begin_layout Standard
5950 \begin_layout Standard
5962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5965 \begin_layout Standard
5969 \begin_layout Standard
5982 <row topline="true">
5983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5986 \begin_layout Standard
5992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5995 \begin_layout Standard
6001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6004 \begin_layout Standard
6010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6013 \begin_layout Standard
6019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6022 \begin_layout Standard
6029 <row topline="true">
6030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6033 \begin_layout Standard
6039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6042 \begin_layout Standard
6048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6051 \begin_layout Standard
6057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6060 \begin_layout Standard
6066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6069 \begin_layout Standard
6076 <row topline="true">
6077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6080 \begin_layout Standard
6086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6089 \begin_layout Standard
6095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6098 \begin_layout Standard
6104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6107 \begin_layout Standard
6113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6116 \begin_layout Standard
6123 <row topline="true">
6124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6127 \begin_layout Standard
6133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6136 \begin_layout Standard
6142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6145 \begin_layout Standard
6151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6154 \begin_layout Standard
6160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6163 \begin_layout Standard
6170 <row topline="true" bottomline="true">
6171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6174 \begin_layout Standard
6180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6183 \begin_layout Standard
6189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6192 \begin_layout Standard
6198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6201 \begin_layout Standard
6207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6210 \begin_layout Standard
6225 \begin_layout Standard
6239 \begin_layout Standard
6243 \begin_layout Subsubsection
6244 Different Captions for Table Pages
6245 \begin_inset LatexCommand index
6246 name "Longtables ! Different Captions for Pages"
6253 \begin_layout Standard
6254 When the other captions should differ from the one of the first table page,
6261 command with a non-empty short title in a dummy caption row marked as first
6263 The caption used for the other table pages is inserted as
6269 command without a short title in a dummy caption row that is marked as
6271 When this caption shouldn't include the table number, use the command
6284 The label to reference the table is inserted into the caption of the first
6288 \begin_inset LatexCommand ref
6289 reference "tab:DiffCaptions"
6293 is an example for a longtable with different heading where the second caption
6294 doesn't include the table number.
6297 \begin_layout Standard
6299 \begin_inset Tabular
6300 <lyxtabular version="3" rows="60" columns="3">
6301 <features islongtable="true">
6302 <column alignment="left" valignment="top" leftline="true" width="0cm">
6303 <column alignment="left" valignment="top" rightline="true" width="0pt">
6304 <column alignment="right" valignment="top" rightline="true" width="0pt">
6305 <row endfirsthead="true">
6306 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6309 \begin_layout Standard
6313 \begin_layout Standard
6317 caption[Example Phone List]{Example Phone List
6323 \begin_inset LatexCommand label
6324 name "tab:DiffCaptions"
6332 \begin_layout Standard
6348 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6351 \begin_layout Standard
6355 \begin_layout Standard
6367 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6370 \begin_layout Standard
6374 \begin_layout Standard
6387 <row topline="true" bottomline="true" endfirsthead="true">
6388 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6391 \begin_layout Standard
6394 Example Phone List (ignore the names)
6399 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6402 \begin_layout Standard
6408 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6411 \begin_layout Standard
6418 <row topline="true" bottomline="true" endfirsthead="true">
6419 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6422 \begin_layout Standard
6430 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6433 \begin_layout Standard
6439 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6442 \begin_layout Standard
6451 <row bottomline="true" endhead="true">
6452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6455 \begin_layout Standard
6459 \begin_layout Standard
6463 caption*{Continued Example Phone List}
6477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6480 \begin_layout Standard
6484 \begin_layout Standard
6496 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6499 \begin_layout Standard
6503 \begin_layout Standard
6516 <row topline="true" bottomline="true" endhead="true">
6517 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6520 \begin_layout Standard
6528 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6531 \begin_layout Standard
6537 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6540 \begin_layout Standard
6547 <row topline="true" bottomline="true" endhead="true">
6548 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
6551 \begin_layout Standard
6559 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6562 \begin_layout Standard
6568 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
6571 \begin_layout Standard
6580 <row topline="true" bottomline="true" endfoot="true">
6581 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
6584 \begin_layout Standard
6585 continued on next page
6590 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
6593 \begin_layout Standard
6599 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6602 \begin_layout Standard
6610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6613 \begin_layout Standard
6621 <cell alignment="center" valignment="top" topline="true" usebox="none">
6624 \begin_layout Standard
6630 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6633 \begin_layout Standard
6641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6644 \begin_layout Standard
6652 <cell alignment="center" valignment="top" topline="true" usebox="none">
6655 \begin_layout Standard
6661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6664 \begin_layout Standard
6672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6675 \begin_layout Standard
6683 <cell alignment="center" valignment="top" topline="true" usebox="none">
6686 \begin_layout Standard
6692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6695 \begin_layout Standard
6703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6706 \begin_layout Standard
6714 <cell alignment="center" valignment="top" topline="true" usebox="none">
6717 \begin_layout Standard
6723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6726 \begin_layout Standard
6734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6737 \begin_layout Standard
6745 <cell alignment="center" valignment="top" topline="true" usebox="none">
6748 \begin_layout Standard
6754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6757 \begin_layout Standard
6765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6768 \begin_layout Standard
6776 <cell alignment="center" valignment="top" topline="true" usebox="none">
6779 \begin_layout Standard
6785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6788 \begin_layout Standard
6796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6799 \begin_layout Standard
6807 <cell alignment="center" valignment="top" topline="true" usebox="none">
6810 \begin_layout Standard
6816 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6819 \begin_layout Standard
6827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6830 \begin_layout Standard
6838 <cell alignment="center" valignment="top" topline="true" usebox="none">
6841 \begin_layout Standard
6847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6850 \begin_layout Standard
6858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6861 \begin_layout Standard
6869 <cell alignment="center" valignment="top" topline="true" usebox="none">
6872 \begin_layout Standard
6878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6881 \begin_layout Standard
6889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6892 \begin_layout Standard
6900 <cell alignment="center" valignment="top" topline="true" usebox="none">
6903 \begin_layout Standard
6909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6912 \begin_layout Standard
6920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6923 \begin_layout Standard
6931 <cell alignment="center" valignment="top" topline="true" usebox="none">
6934 \begin_layout Standard
6940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6943 \begin_layout Standard
6951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6954 \begin_layout Standard
6962 <cell alignment="center" valignment="top" topline="true" usebox="none">
6965 \begin_layout Standard
6971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6974 \begin_layout Standard
6982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6985 \begin_layout Standard
6993 <cell alignment="center" valignment="top" topline="true" usebox="none">
6996 \begin_layout Standard
7002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7005 \begin_layout Standard
7013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7016 \begin_layout Standard
7024 <cell alignment="center" valignment="top" topline="true" usebox="none">
7027 \begin_layout Standard
7033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7036 \begin_layout Standard
7044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7047 \begin_layout Standard
7056 \begin_layout Standard
7067 <cell alignment="center" valignment="top" topline="true" usebox="none">
7070 \begin_layout Standard
7076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7079 \begin_layout Standard
7087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7090 \begin_layout Standard
7098 <cell alignment="center" valignment="top" topline="true" usebox="none">
7101 \begin_layout Standard
7107 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7110 \begin_layout Standard
7118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7121 \begin_layout Standard
7129 <cell alignment="center" valignment="top" topline="true" usebox="none">
7132 \begin_layout Standard
7138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7141 \begin_layout Standard
7149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7152 \begin_layout Standard
7160 <cell alignment="center" valignment="top" topline="true" usebox="none">
7163 \begin_layout Standard
7169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7172 \begin_layout Standard
7180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7183 \begin_layout Standard
7191 <cell alignment="center" valignment="top" topline="true" usebox="none">
7194 \begin_layout Standard
7200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7203 \begin_layout Standard
7211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7214 \begin_layout Standard
7222 <cell alignment="center" valignment="top" topline="true" usebox="none">
7225 \begin_layout Standard
7231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7234 \begin_layout Standard
7242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7245 \begin_layout Standard
7253 <cell alignment="center" valignment="top" topline="true" usebox="none">
7256 \begin_layout Standard
7262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7265 \begin_layout Standard
7273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7276 \begin_layout Standard
7284 <cell alignment="center" valignment="top" topline="true" usebox="none">
7287 \begin_layout Standard
7293 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7296 \begin_layout Standard
7304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7307 \begin_layout Standard
7315 <cell alignment="center" valignment="top" topline="true" usebox="none">
7318 \begin_layout Standard
7324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7327 \begin_layout Standard
7335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7338 \begin_layout Standard
7346 <cell alignment="center" valignment="top" topline="true" usebox="none">
7349 \begin_layout Standard
7355 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7358 \begin_layout Standard
7366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7369 \begin_layout Standard
7377 <cell alignment="center" valignment="top" topline="true" usebox="none">
7380 \begin_layout Standard
7386 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7389 \begin_layout Standard
7397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7400 \begin_layout Standard
7408 <cell alignment="center" valignment="top" topline="true" usebox="none">
7411 \begin_layout Standard
7417 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7420 \begin_layout Standard
7428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7431 \begin_layout Standard
7439 <cell alignment="center" valignment="top" topline="true" usebox="none">
7442 \begin_layout Standard
7448 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7451 \begin_layout Standard
7459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7462 \begin_layout Standard
7470 <cell alignment="center" valignment="top" topline="true" usebox="none">
7473 \begin_layout Standard
7479 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7482 \begin_layout Standard
7490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7493 \begin_layout Standard
7501 <cell alignment="center" valignment="top" topline="true" usebox="none">
7504 \begin_layout Standard
7510 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7513 \begin_layout Standard
7521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7524 \begin_layout Standard
7532 <cell alignment="center" valignment="top" topline="true" usebox="none">
7535 \begin_layout Standard
7541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7544 \begin_layout Standard
7551 <row bottomline="true">
7552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7555 \begin_layout Standard
7563 <cell alignment="center" valignment="top" topline="true" usebox="none">
7566 \begin_layout Standard
7572 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7575 \begin_layout Standard
7582 <row bottomline="true">
7583 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7586 \begin_layout Standard
7592 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
7595 \begin_layout Standard
7601 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7604 \begin_layout Standard
7612 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7615 \begin_layout Standard
7623 <cell alignment="center" valignment="top" topline="true" usebox="none">
7626 \begin_layout Standard
7632 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7635 \begin_layout Standard
7643 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7646 \begin_layout Standard
7654 <cell alignment="center" valignment="top" topline="true" usebox="none">
7657 \begin_layout Standard
7663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7666 \begin_layout Standard
7674 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7677 \begin_layout Standard
7685 <cell alignment="center" valignment="top" topline="true" usebox="none">
7688 \begin_layout Standard
7694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7697 \begin_layout Standard
7705 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7708 \begin_layout Standard
7716 <cell alignment="center" valignment="top" topline="true" usebox="none">
7719 \begin_layout Standard
7725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7728 \begin_layout Standard
7736 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7739 \begin_layout Standard
7747 <cell alignment="center" valignment="top" topline="true" usebox="none">
7750 \begin_layout Standard
7756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7759 \begin_layout Standard
7767 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7770 \begin_layout Standard
7778 <cell alignment="center" valignment="top" topline="true" usebox="none">
7781 \begin_layout Standard
7787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7790 \begin_layout Standard
7798 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7801 \begin_layout Standard
7809 <cell alignment="center" valignment="top" topline="true" usebox="none">
7812 \begin_layout Standard
7818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7821 \begin_layout Standard
7829 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7832 \begin_layout Standard
7840 <cell alignment="center" valignment="top" topline="true" usebox="none">
7843 \begin_layout Standard
7849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7852 \begin_layout Standard
7860 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7863 \begin_layout Standard
7871 <cell alignment="center" valignment="top" topline="true" usebox="none">
7874 \begin_layout Standard
7880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7883 \begin_layout Standard
7891 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7894 \begin_layout Standard
7902 <cell alignment="center" valignment="top" topline="true" usebox="none">
7905 \begin_layout Standard
7911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7914 \begin_layout Standard
7922 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7925 \begin_layout Standard
7933 <cell alignment="center" valignment="top" topline="true" usebox="none">
7936 \begin_layout Standard
7942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7945 \begin_layout Standard
7953 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7956 \begin_layout Standard
7964 <cell alignment="center" valignment="top" topline="true" usebox="none">
7967 \begin_layout Standard
7973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7976 \begin_layout Standard
7984 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
7987 \begin_layout Standard
7995 <cell alignment="center" valignment="top" topline="true" usebox="none">
7998 \begin_layout Standard
8004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8007 \begin_layout Standard
8015 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8018 \begin_layout Standard
8026 <cell alignment="center" valignment="top" topline="true" usebox="none">
8029 \begin_layout Standard
8035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8038 \begin_layout Standard
8046 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8049 \begin_layout Standard
8057 <cell alignment="center" valignment="top" topline="true" usebox="none">
8060 \begin_layout Standard
8066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8069 \begin_layout Standard
8077 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8080 \begin_layout Standard
8088 <cell alignment="center" valignment="top" topline="true" usebox="none">
8091 \begin_layout Standard
8097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8100 \begin_layout Standard
8108 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8111 \begin_layout Standard
8119 <cell alignment="center" valignment="top" topline="true" usebox="none">
8122 \begin_layout Standard
8128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8131 \begin_layout Standard
8139 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8142 \begin_layout Standard
8150 <cell alignment="center" valignment="top" topline="true" usebox="none">
8153 \begin_layout Standard
8159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8162 \begin_layout Standard
8170 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8173 \begin_layout Standard
8181 <cell alignment="center" valignment="top" topline="true" usebox="none">
8184 \begin_layout Standard
8190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8193 \begin_layout Standard
8200 <row bottomline="true">
8201 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
8204 \begin_layout Standard
8212 <cell alignment="center" valignment="top" topline="true" usebox="none">
8215 \begin_layout Standard
8221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8224 \begin_layout Standard
8231 <row bottomline="true" endlastfoot="true">
8232 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
8235 \begin_layout Standard
8241 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8244 \begin_layout Standard
8250 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8253 \begin_layout Standard
8267 \begin_layout Section
8268 Special Longtable Issues
8269 \begin_inset LatexCommand label
8270 name "sec:Special-Longtable-Issues"
8277 \begin_layout Subsection
8278 Longtable Calculation
8279 \begin_inset LatexCommand index
8280 name "Longtables ! Calculation"
8287 \begin_layout Standard
8288 LaTeX calculates the height of table pages and their page breaks using so
8290 Chunks are pieces of the tables that are at once in LaTeX's memory.
8291 The default value is historically set to only 20 table rows.
8292 If you are using longtables with many pages this may slow down the creation
8294 You can safely increase the chunk size to values of 100-1000 by adding
8295 this command line to your document preamble:
8298 \begin_layout Standard
8303 setcounter{LTchunksize}{100}
8306 \begin_layout Subsection
8307 Floats and Longtables
8308 \begin_inset LatexCommand index
8309 name "Longtables ! Floats"
8316 \begin_layout Standard
8317 There might be problems when a float appears on the same page where a longtable
8319 To avoid such situation, add the command
8325 as ERT before your longtable.
8328 \begin_layout Subsection
8330 \begin_inset LatexCommand index
8331 name "Longtables ! Forced Page Breaks"
8338 \begin_layout Standard
8339 By default tables are only broken between rows.
8340 If you have a cell with multiples lines and want to have a page break within
8341 the cell, insert the new line command
8342 \begin_inset Quotes eld
8354 \begin_inset Quotes erd
8357 as ERT at this point of the cell where it should be broken.
8366 command you have to insert in ERT so many
8367 \begin_inset Quotes eld
8375 \begin_inset Quotes erd
8378 characters like the number of the following table columns.
8383 is the character to separate table cells.
8384 Write in ERT after each
8388 the content of the corresponding following cell and delete the content
8399 command, insert so many
8403 characters like the number of table columns before the current column.
8404 In Table\InsetSpace ~
8406 \begin_inset LatexCommand ref
8407 reference "tab:ForcedPagebreak"
8411 the cell that should be broken is in the second column followed by another
8413 Therefore the following command was inserted in the cell as ERT behind
8415 \begin_inset Quotes eld
8423 \begin_inset Quotes erd
8429 \begin_layout Standard
8441 \begin_layout Standard
8443 \begin_inset Quotes eld
8447 \begin_inset Quotes erd
8450 in the third columns of the row was deleted.
8451 If your footer row of the longtable has for a certain reason no upper line
8452 but you would have a horizontal line where the cell is broken, use this
8456 \begin_layout Standard
8470 \begin_layout Standard
8471 When the cell to be broken is in the last column, the command
8474 \begin_layout Standard
8481 parf\SpecialChar \textcompwordmark{}
8485 \begin_layout Standard
8486 must be inserted as ERT at the beginning of the cell.
8487 This assures that the part of the cell that will be displayed on the new
8488 page appears with the full width.
8492 \begin_layout Standard
8494 \begin_inset Tabular
8495 <lyxtabular version="3" rows="39" columns="3">
8496 <features islongtable="true">
8497 <column alignment="left" valignment="top" leftline="true" width="0cm">
8498 <column alignment="left" valignment="top" rightline="true" width="3cm">
8499 <column alignment="right" valignment="top" rightline="true" width="0pt">
8500 <row endfirsthead="true">
8501 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8504 \begin_layout Standard
8508 \begin_layout Standard
8512 caption[Table with forced page break in table cell]{Table with forced page
8519 \begin_inset LatexCommand label
8520 name "tab:ForcedPagebreak"
8528 \begin_layout Standard
8544 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8547 \begin_layout Standard
8551 \begin_layout Standard
8563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8566 \begin_layout Standard
8570 \begin_layout Standard
8583 <row topline="true" bottomline="true" endfirsthead="true">
8584 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8587 \begin_layout Standard
8590 Example Phone List (ignore the names)
8595 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8598 \begin_layout Standard
8604 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8607 \begin_layout Standard
8614 <row topline="true" bottomline="true" endfirsthead="true">
8615 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8618 \begin_layout Standard
8626 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8629 \begin_layout Standard
8635 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8638 \begin_layout Standard
8647 <row bottomline="true" endhead="true">
8648 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8651 \begin_layout Standard
8655 \begin_layout Standard
8659 caption{Continued table with forced page break in table cell}
8673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8676 \begin_layout Standard
8680 \begin_layout Standard
8692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8695 \begin_layout Standard
8699 \begin_layout Standard
8712 <row topline="true" bottomline="true" endhead="true">
8713 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8716 \begin_layout Standard
8724 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8727 \begin_layout Standard
8733 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8736 \begin_layout Standard
8743 <row topline="true" bottomline="true" endhead="true">
8744 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8747 \begin_layout Standard
8755 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8758 \begin_layout Standard
8764 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8767 \begin_layout Standard
8776 <row topline="true" bottomline="true" endfoot="true">
8777 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8780 \begin_layout Standard
8781 continued on next page
8786 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8789 \begin_layout Standard
8795 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8798 \begin_layout Standard
8806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8809 \begin_layout Standard
8817 <cell alignment="center" valignment="top" topline="true" usebox="none">
8820 \begin_layout Standard
8826 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8829 \begin_layout Standard
8837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8840 \begin_layout Standard
8848 <cell alignment="center" valignment="top" topline="true" usebox="none">
8851 \begin_layout Standard
8857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8860 \begin_layout Standard
8868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8871 \begin_layout Standard
8879 <cell alignment="center" valignment="top" topline="true" usebox="none">
8882 \begin_layout Standard
8888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8891 \begin_layout Standard
8899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8902 \begin_layout Standard
8910 <cell alignment="center" valignment="top" topline="true" usebox="none">
8913 \begin_layout Standard
8919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8922 \begin_layout Standard
8930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8933 \begin_layout Standard
8941 <cell alignment="center" valignment="top" topline="true" usebox="none">
8944 \begin_layout Standard
8950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8953 \begin_layout Standard
8961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8964 \begin_layout Standard
8972 <cell alignment="center" valignment="top" topline="true" usebox="none">
8975 \begin_layout Standard
8981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8984 \begin_layout Standard
8992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8995 \begin_layout Standard
9003 <cell alignment="center" valignment="top" topline="true" usebox="none">
9006 \begin_layout Standard
9012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9015 \begin_layout Standard
9023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9026 \begin_layout Standard
9034 <cell alignment="center" valignment="top" topline="true" usebox="none">
9037 \begin_layout Standard
9043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9046 \begin_layout Standard
9054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9057 \begin_layout Standard
9065 <cell alignment="center" valignment="top" topline="true" usebox="none">
9068 \begin_layout Standard
9074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9077 \begin_layout Standard
9085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9088 \begin_layout Standard
9096 <cell alignment="center" valignment="top" topline="true" usebox="none">
9099 \begin_layout Standard
9105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9108 \begin_layout Standard
9116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9119 \begin_layout Standard
9127 <cell alignment="center" valignment="top" topline="true" usebox="none">
9130 \begin_layout Standard
9136 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9139 \begin_layout Standard
9147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9150 \begin_layout Standard
9158 <cell alignment="center" valignment="top" topline="true" usebox="none">
9161 \begin_layout Standard
9167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9170 \begin_layout Standard
9178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9181 \begin_layout Standard
9189 <cell alignment="center" valignment="top" topline="true" usebox="none">
9192 \begin_layout Standard
9198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9201 \begin_layout Standard
9209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9212 \begin_layout Standard
9220 <cell alignment="center" valignment="top" topline="true" usebox="none">
9223 \begin_layout Standard
9229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9232 \begin_layout Standard
9240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9243 \begin_layout Standard
9251 <cell alignment="center" valignment="top" topline="true" usebox="none">
9254 \begin_layout Standard
9260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9263 \begin_layout Standard
9271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9274 \begin_layout Standard
9282 <cell alignment="center" valignment="top" topline="true" usebox="none">
9285 \begin_layout Standard
9291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9294 \begin_layout Standard
9302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9305 \begin_layout Standard
9313 <cell alignment="center" valignment="top" topline="true" usebox="none">
9316 \begin_layout Standard
9322 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9325 \begin_layout Standard
9333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9336 \begin_layout Standard
9344 <cell alignment="center" valignment="top" topline="true" usebox="none">
9347 \begin_layout Standard
9353 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9356 \begin_layout Standard
9364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9367 \begin_layout Standard
9375 <cell alignment="center" valignment="top" topline="true" usebox="none">
9378 \begin_layout Standard
9384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9387 \begin_layout Standard
9395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9398 \begin_layout Standard
9406 <cell alignment="center" valignment="top" topline="true" usebox="none">
9409 \begin_layout Standard
9415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9418 \begin_layout Standard
9426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9429 \begin_layout Standard
9437 <cell alignment="center" valignment="top" topline="true" usebox="none">
9440 \begin_layout Standard
9446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9449 \begin_layout Standard
9457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9460 \begin_layout Standard
9468 <cell alignment="center" valignment="top" topline="true" usebox="none">
9471 \begin_layout Standard
9477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9480 \begin_layout Standard
9488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9491 \begin_layout Standard
9499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9502 \begin_layout Standard
9504 Fürst von Montecompatri, 11.
9505 Fürst von Sulmona und Vivaro, 10.
9506 Fürst von Rossano, 5.
9507 Herzog von Canemorte, 11.
9508 Herzog von Palombara, 5.
9509 Herzog von Castelchiodato,
9513 \begin_layout Standard
9522 \begin_layout Standard
9530 Herzog von Poggionativo, 11.
9531 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9532 Graf von Valinfreda, 11.
9533 Baron von Cropalati, 11.
9534 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9542 \begin_layout Standard
9550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9553 \begin_layout Standard
9561 <cell alignment="center" valignment="top" topline="true" usebox="none">
9564 \begin_layout Standard
9570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9573 \begin_layout Standard
9581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9584 \begin_layout Standard
9592 <cell alignment="center" valignment="top" topline="true" usebox="none">
9595 \begin_layout Standard
9601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9604 \begin_layout Standard
9612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9615 \begin_layout Standard
9623 <cell alignment="center" valignment="top" topline="true" usebox="none">
9626 \begin_layout Standard
9632 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9635 \begin_layout Standard
9643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9646 \begin_layout Standard
9654 <cell alignment="center" valignment="top" topline="true" usebox="none">
9657 \begin_layout Standard
9663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9666 \begin_layout Standard
9674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9677 \begin_layout Standard
9685 <cell alignment="center" valignment="top" topline="true" usebox="none">
9688 \begin_layout Standard
9694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9697 \begin_layout Standard
9705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9708 \begin_layout Standard
9716 <cell alignment="center" valignment="top" topline="true" usebox="none">
9719 \begin_layout Standard
9725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9728 \begin_layout Standard
9736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9739 \begin_layout Standard
9747 <cell alignment="center" valignment="top" topline="true" usebox="none">
9750 \begin_layout Standard
9756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9759 \begin_layout Standard
9766 <row bottomline="true">
9767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9770 \begin_layout Standard
9778 <cell alignment="center" valignment="top" topline="true" usebox="none">
9781 \begin_layout Standard
9787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9790 \begin_layout Standard
9797 <row endlastfoot="true">
9798 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9801 \begin_layout Standard
9807 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9810 \begin_layout Standard
9816 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9819 \begin_layout Standard
9833 \begin_layout Section
9834 Multiple Lines Columns and Rows
9837 \begin_layout Subsection
9838 Multiple Lines in Table Cells
9839 \begin_inset LatexCommand label
9840 name "sub:Multiple-Lines-in"
9845 \begin_inset LatexCommand index
9846 name "Multiple Lines in Table Cells"
9851 \begin_inset LatexCommand index
9852 name "Table ! Linebreaks"
9859 \begin_layout Standard
9861 \begin_inset Float table
9867 \begin_layout Caption
9868 \begin_inset LatexCommand label
9869 name "tab:Table-with-multiple"
9873 Table with multiple lines in cells
9876 \begin_layout Standard
9878 \begin_inset Tabular
9879 <lyxtabular version="3" rows="3" columns="3">
9881 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9882 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
9883 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
9884 <row topline="true">
9885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9888 \begin_layout Standard
9893 \begin_layout Standard
9907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9910 \begin_layout Standard
9916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9919 \begin_layout Standard
9926 <row topline="true">
9927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9930 \begin_layout Standard
9936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9939 \begin_layout Standard
9945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9948 \begin_layout Standard
9955 <row topline="true" bottomline="true">
9956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9959 \begin_layout Standard
9965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9968 \begin_layout Standard
9974 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9977 \begin_layout Standard
9996 \begin_layout Standard
9997 Adjusting a fixed width for a column, enables to enter text as a paragraph
9998 with multiple lines and hyphenations.
10001 \begin_layout Standard
10002 To produce Table\InsetSpace ~
10004 \begin_inset LatexCommand ref
10005 reference "tab:Table-with-multiple"
10009 , create a 3×3 table, mark the first cell and right-click on it.
10010 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10011 cm and choose centered
10012 for the vertical and horizontal alignment.
10013 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10014 cm, only one line will appear.
10015 To get two lines, we add a line break with the command
10018 \begin_layout Standard
10026 \begin_layout Standard
10028 If the text is wider than the set cell width it will automatically be broken
10032 \begin_layout Standard
10033 To center the text inside the two other cells of the first row vertically,
10034 right-click in the second cell, adjust a fixed width of 0.5\InsetSpace \thinspace{}
10036 centered alignments.
10037 Then do the same for the third cell of the row.
10040 \begin_layout Standard
10041 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10042 by LaTeX if it is the first entry.
10043 Therefore you need to insert something, to make the word not being the
10044 first entry: Add the command
10047 \begin_layout Standard
10055 \begin_layout Standard
10056 in ERT before the word.
10057 As the space is zero, it doesn't change the output.
10060 \begin_inset LatexCommand ref
10061 reference "tab:Table-with-and"
10068 \begin_layout Standard
10069 \begin_inset Float table
10074 \begin_layout Caption
10075 \begin_inset LatexCommand label
10076 name "tab:Table-with-and"
10080 Table with and without hyphenation
10083 \begin_layout Standard
10087 \begin_inset Tabular
10088 <lyxtabular version="3" rows="3" columns="3">
10090 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10091 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10092 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10093 <row topline="true">
10094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10097 \begin_layout Standard
10098 verylongtablecellword
10103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10106 \begin_layout Standard
10112 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10115 \begin_layout Standard
10122 <row topline="true">
10123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10126 \begin_layout Standard
10132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10135 \begin_layout Standard
10141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10144 \begin_layout Standard
10151 <row topline="true" bottomline="true">
10152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10155 \begin_layout Standard
10161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10164 \begin_layout Standard
10170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10173 \begin_layout Standard
10187 \begin_inset Tabular
10188 <lyxtabular version="3" rows="3" columns="3">
10190 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10191 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10192 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10193 <row topline="true">
10194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10197 \begin_layout Standard
10201 \begin_layout Standard
10210 verylongtablecellword
10215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10218 \begin_layout Standard
10224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10227 \begin_layout Standard
10234 <row topline="true">
10235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10238 \begin_layout Standard
10244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10247 \begin_layout Standard
10253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10256 \begin_layout Standard
10263 <row topline="true" bottomline="true">
10264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10267 \begin_layout Standard
10273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10276 \begin_layout Standard
10282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10285 \begin_layout Standard
10306 \begin_layout Standard
10312 \begin_layout Subsection
10314 \begin_inset LatexCommand label
10315 name "sub:Multicolumns"
10320 \begin_inset LatexCommand index
10321 name "Multicolumns"
10326 \begin_inset LatexCommand index
10327 name "Table ! Multicolumns"
10334 \begin_layout Subsubsection
10338 \begin_layout Standard
10339 To span a cell over multiple columns, mark as much cells within a line that
10340 should be one spanned cell and use either the table-toolbar button
10341 \begin_inset Graphics
10342 filename ../images/tabular-feature_multicolumn.xpm
10349 Edit\SpecialChar \menuseparator
10350 Table\SpecialChar \menuseparator
10353 , or right click on the marked cells and choose multicolumn in the appearing
10354 table dialog under the tab
10361 \begin_layout Standard
10362 Multicolumns have there own cell settings.
10363 That means changing cell borders, cell alignment, and the width only affects
10365 Here is an example table with a multicolumn cell in the first row and one
10366 in the last row without the upper border:
10369 \begin_layout Standard
10371 \begin_inset Tabular
10372 <lyxtabular version="3" rows="3" columns="4">
10373 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10374 <column alignment="center" valignment="top" leftline="true" width="0pt">
10375 <column alignment="center" valignment="middle" leftline="true" width="0">
10376 <column alignment="center" valignment="top" leftline="true" width="0in">
10377 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10378 <row topline="true" bottomline="true">
10379 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10382 \begin_layout Standard
10388 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10391 \begin_layout Standard
10401 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10404 \begin_layout Standard
10410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10413 \begin_layout Standard
10420 <row topline="true">
10421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10424 \begin_layout Standard
10439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10442 \begin_layout Standard
10448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10451 \begin_layout Standard
10457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10460 \begin_layout Standard
10467 <row topline="true" bottomline="true">
10468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10471 \begin_layout Standard
10477 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10480 \begin_layout Standard
10486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10489 \begin_layout Standard
10495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10498 \begin_layout Standard
10512 \begin_layout Subsubsection
10513 Multicolumn Calculations
10514 \begin_inset LatexCommand label
10515 name "sub:Multicolumn-Calculations"
10520 \begin_inset LatexCommand index
10521 name "Multicolumns ! Calculations"
10528 \begin_layout Standard
10529 LyX supports multicolumns directly, but we have to take notice of the cell
10530 width of the columns spanned by the multicolumn cell.
10533 \begin_layout Standard
10534 \begin_inset Float table
10539 \begin_layout Caption
10540 \begin_inset LatexCommand label
10541 name "tab:Table-with-centered"
10545 Table with centered multicolumn text above two columns that have exactly
10546 half the width of the multicolumn cell
10547 \begin_inset OptArg
10550 \begin_layout Standard
10551 Perfect multicolumn table
10559 \begin_layout Standard
10561 \begin_inset Tabular
10562 <lyxtabular version="3" rows="3" columns="3">
10564 <column alignment="center" valignment="middle" leftline="true" width="0" special="|>{\centering}m{1.25cm-6.2pt}">
10565 <column alignment="center" valignment="middle" leftline="true" width="0">
10566 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10567 <row topline="true">
10568 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special="|>{\centering}m{2.5cm}|">
10571 \begin_layout Standard
10572 multiple lines multicolumn
10577 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10580 \begin_layout Standard
10586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10589 \begin_layout Standard
10596 <row topline="true">
10597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10600 \begin_layout Standard
10606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10609 \begin_layout Standard
10615 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10618 \begin_layout Standard
10625 <row topline="true" bottomline="true">
10626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10629 \begin_layout Standard
10635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10638 \begin_layout Standard
10644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10647 \begin_layout Standard
10666 \begin_layout Standard
10667 To create for example Table\InsetSpace ~
10669 \begin_inset LatexCommand ref
10670 reference "tab:Table-with-centered"
10674 , mark the first two cells in the first row a 3×3 table and right-click
10676 Now choose for this cell
10684 and a width of 2.5\InsetSpace \thinspace{}
10685 cm in the table dialog.
10686 The spanned columns should have exactly half the width of the multicolumn
10687 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10688 cm for the first column.
10689 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10691 width - width of first column).
10692 This was done for Table\InsetSpace ~
10694 \begin_inset LatexCommand ref
10695 reference "tab:Table-without-half"
10702 \begin_layout Standard
10703 \begin_inset Float table
10708 \begin_layout Caption
10709 \begin_inset LatexCommand label
10710 name "tab:Table-without-half"
10714 Table where the spanned table columns have not exactly half the width of
10715 the multicolumn cell
10716 \begin_inset OptArg
10719 \begin_layout Standard
10720 Imperfect multicolumn table
10728 \begin_layout Standard
10730 \begin_inset Tabular
10731 <lyxtabular version="3" rows="3" columns="3">
10733 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10734 <column alignment="center" valignment="top" leftline="true" width="0">
10735 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10736 <row topline="true" bottomline="true">
10737 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10740 \begin_layout Standard
10741 multiple lines multicolumn
10746 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10749 \begin_layout Standard
10755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10758 \begin_layout Standard
10765 <row topline="true">
10766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10769 \begin_layout Standard
10775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10778 \begin_layout Standard
10784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10787 \begin_layout Standard
10794 <row topline="true" bottomline="true">
10795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10798 \begin_layout Standard
10804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10807 \begin_layout Standard
10813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10816 \begin_layout Standard
10835 \begin_layout Standard
10836 You can see that the first column has not the half width of the multicolumn
10837 cell, it is a bit bigger.
10838 The reason is that the given width of a cell
10839 \begin_inset Formula $W_{g}$
10842 is not its total width
10843 \begin_inset Formula $W_{\mathrm{tot}}$
10846 because a cell is always a bit larger than its given width.
10847 Appendix\InsetSpace ~
10849 \begin_inset LatexCommand eqref
10850 reference "cha:Explanation-of-Equation"
10854 explains it in detail.
10857 \begin_layout Standard
10858 The needed given width
10859 \begin_inset Formula $W_{g\, n}$
10866 columns are spanned columns can be calculated, so that each column has
10868 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10872 \begin_inset Formula \begin{equation}
10873 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10880 \begin_layout Standard
10881 In our case we have
10882 \begin_inset Formula $n=2$
10886 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10889 cm and the default values for the lengths, so that equation
10890 \begin_inset LatexCommand ref
10896 \begin_inset Formula \begin{equation}
10897 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10904 \begin_layout Standard
10905 To enable calculations in LaTeX, the LaTeX-package
10909 must be loaded with the document preamble line
10910 \begin_inset LatexCommand index
10911 name "LaTeX-packages ! calc"
10918 \begin_layout Standard
10926 \begin_layout Standard
10927 LyX does not allow to calculate lengths in the width-field of the table
10929 Therefore you have to format the column by inserting a LaTeX-argument in
10931 Here is an overview about the arguments:
10934 \begin_layout Itemize
10939 creates cell with a fixed width, its text is vertically top-aligned
10942 \begin_layout Itemize
10947 creates cell with a fixed width, its text is vertically centered
10950 \begin_layout Itemize
10955 creates cell with a fixed width, its text is vertically bottom-aligned
10958 \begin_layout Standard
10959 By entering a LaTeX-argument, all cell properties set in the table dialog
10962 \begin_inset Note Greyedout
10965 \begin_layout Standard
10970 Due to a bug, LyX shows the overwritten properties anyway.
10975 As the text should be horizontally centered, the command
10982 You can now enter the following LaTeX-argument for the first spanned column:
10985 \begin_layout Standard
10990 centering}m{1.25cm-6.2pt}
10993 \begin_layout Standard
10995 \begin_inset Quotes eld
11003 \begin_inset Quotes erd
11006 at the beginning draws the border line and the command
11010 means, that the commands inside the braces are applied before the cell
11014 \begin_layout Standard
11015 Although we have chosen centered alignment for the text of the multicolumn
11016 cell, it is still left aligned.
11017 This is because LyX only applies the alignment to single columns.
11018 So we have to use for the multicolumn the LaTeX-argument
11021 \begin_layout Standard
11026 centering}m{2.5cm}|
11029 \begin_layout Subsection
11031 \begin_inset LatexCommand index
11037 \begin_inset LatexCommand index
11038 name "Table ! Multirows"
11043 \begin_inset LatexCommand index
11044 name "LaTeX-packages ! multirow"
11051 \begin_layout Standard
11052 In contrary to multicolumns multirows are not yet supported by LyX so a
11053 bit of ERT needs to be used.
11054 To use multirows load the LaTeX-package
11058 in your document preamble with the command
11061 \begin_layout Standard
11066 usepackage{multirow}
11069 \begin_layout Standard
11070 Multirows are created with the command
11073 \begin_layout Standard
11078 multirow{number of rows}{cell width}{cell entry}
11081 \begin_layout Standard
11082 To create the following table:
11085 \begin_layout Standard
11090 \begin_layout Standard
11104 \begin_inset Tabular
11105 <lyxtabular version="3" rows="3" columns="3">
11107 <column alignment="center" valignment="top" leftline="true" width="0">
11108 <column alignment="center" valignment="top" leftline="true" width="0">
11109 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11110 <row topline="true">
11111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11114 \begin_layout Standard
11120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11123 \begin_layout Standard
11129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11132 \begin_layout Standard
11139 <row topline="true">
11140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11143 \begin_layout Standard
11147 \begin_layout Standard
11151 multirow{2}{2.5cm}{
11160 \begin_layout Standard
11172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11175 \begin_layout Standard
11181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11184 \begin_layout Standard
11191 <row topline="true" bottomline="true">
11192 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11195 \begin_layout Standard
11201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11204 \begin_layout Standard
11210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11213 \begin_layout Standard
11228 \begin_layout Standard
11244 \begin_layout Standard
11245 create a 3×3 table.
11246 To get rid of the line above the last cell in the first column, the cell
11247 is marked as multicolumn and the upper border is unset.
11248 The multirow is now created in the second row of the first column by inserting
11252 \begin_layout Standard
11257 multirow{2}{2.5cm}{
11260 \begin_layout Standard
11262 According to the command parameters the multirow spans now two rows and
11263 has a width of 2.5\InsetSpace \thinspace{}
11265 The content of the multirow cell follows outside the ERT box and the command
11266 is finished with a right brace
11270 in another ERT-box behind the text.
11273 \begin_layout Standard
11280 left-aligns its content by default.
11281 To override the default, renew the command
11290 \begin_layout Standard
11302 \begin_layout Standard
11303 in ERT in the document preamble.
11304 Then all entries of multirow cells in the document are centered.
11305 If centering is only needed for several tables, you can renew the command
11306 in an ERT box just before the table instead of the preamble.
11307 If the text should be right-aligned, replace
11320 To return to left-alignment
11329 \begin_layout Section
11331 \begin_inset LatexCommand label
11332 name "sec:Formal-Tables"
11337 \begin_inset LatexCommand index
11338 name "Table ! Formal"
11345 \begin_layout Standard
11346 Tables are often typeset in books similar to Table\InsetSpace ~
11348 \begin_inset LatexCommand ref
11349 reference "tab:Example-booktabs-table"
11354 This kind of tables is called
11355 \begin_inset Quotes eld
11363 \begin_inset Quotes erd
11367 To make a table a formal table use the option
11375 tab of the table dialog.
11378 \begin_layout Standard
11379 \begin_inset Float table
11385 \begin_layout Caption
11386 \begin_inset LatexCommand label
11387 name "tab:Example-booktabs-table"
11391 Example booktabs-table
11394 \begin_layout Standard
11396 \begin_inset Tabular
11397 <lyxtabular version="3" rows="8" columns="4">
11398 <features booktabs="true">
11399 <column alignment="center" valignment="top" rightline="true" width="0">
11400 <column alignment="center" valignment="top" width="0">
11401 <column alignment="center" valignment="top" width="0">
11402 <column alignment="center" valignment="top" width="0">
11403 <row topline="true">
11404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11407 \begin_layout Standard
11413 <cell alignment="center" valignment="top" topline="true" usebox="none">
11416 \begin_layout Standard
11418 \begin_inset Formula $\,$
11426 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11429 \begin_layout Standard
11431 \begin_inset Formula $\,$
11439 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11442 \begin_layout Standard
11450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11453 \begin_layout Standard
11457 \begin_layout Standard
11470 \begin_layout Standard
11479 Detector thickness [
11483 \begin_layout Standard
11497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11500 \begin_layout Standard
11506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11509 \begin_layout Standard
11515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11518 \begin_layout Standard
11525 <row topline="true">
11526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11529 \begin_layout Standard
11535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11538 \begin_layout Standard
11544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11547 \begin_layout Standard
11553 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11556 \begin_layout Standard
11563 <row topspace="default">
11564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11567 \begin_layout Standard
11568 Spatial resolution [
11572 \begin_layout Standard
11586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11589 \begin_layout Standard
11595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11598 \begin_layout Standard
11604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11607 \begin_layout Standard
11614 <row topspace="default">
11615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11618 \begin_layout Standard
11620 \begin_inset Formula $f_{\mathrm{max}}$
11628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11631 \begin_layout Standard
11637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11640 \begin_layout Standard
11646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11649 \begin_layout Standard
11656 <row topspace="default">
11657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11660 \begin_layout Standard
11664 \begin_layout Standard
11668 cmidrule(l{10pt}){1-1}
11673 LSF-spatial resolution
11678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11681 \begin_layout Standard
11687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11690 \begin_layout Standard
11696 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11699 \begin_layout Standard
11707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11710 \begin_layout Standard
11715 \begin_layout Standard
11729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11732 \begin_layout Standard
11738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11741 \begin_layout Standard
11747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11750 \begin_layout Standard
11757 <row bottomline="true">
11758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11761 \begin_layout Standard
11767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11770 \begin_layout Standard
11776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11779 \begin_layout Standard
11785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11788 \begin_layout Standard
11807 \begin_layout Standard
11808 Spaces to table rows can be added using the
11812 tab of the table dialog as described in section\InsetSpace ~
11814 \begin_inset LatexCommand ref
11815 reference "sub:Row-Spacing"
11822 \begin_layout Standard
11823 In contrary to normal tables, formal tables have no vertical table lines.
11824 The horizontal table lines can be set like for normal tables but they appear
11825 with different width in the output:
11827 The first and the last table line have
11828 a default width of 0.08\InsetSpace \thinspace{}
11829 em while the other lines have a default width of
11830 0.05\InsetSpace \thinspace{}
11834 \begin_layout Standard
11835 The default widths can be changed with the following preamble lines
11838 \begin_layout Standard
11858 \begin_layout Standard
11859 This example is for the first line, the so called toprule.
11860 If you want to change the width for the last line, replace
11869 To change the width for the other lines replace
11878 You can use all units listed in appendix\InsetSpace ~
11880 \begin_inset LatexCommand ref
11881 reference "cha:Units-available-in"
11888 \begin_layout Standard
11889 Lines that don't span over all table columns can be created by setting a
11890 table line for multicolumn cells.
11891 LyX will then internally use the command
11897 to create this line.
11901 \begin_layout Standard
11906 cmidrule[width](trim){startcol-endcol}
11909 \begin_layout Standard
11916 are are currently not supported by LyX so you have to use ERT to be able
11924 s can manually be created by inserting the command as ERT as first cell
11925 entry of the first cell of a row.
11926 The line is then drawn in the output above the current row.
11929 \begin_layout Standard
11930 The default for the width is 0.03\InsetSpace \thinspace{}
11932 Startcol is the number of the column where the line starts and endcol the
11933 column number where the line ends.
11934 The endcol always needs to be specified, also when the line should span
11936 The optional parameter trim could be either
11944 where the trimwidth is also optional.
11945 Using for example the parameter
11949 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11951 If you don't specify the trimwidth the lines are trimmed by the default
11952 of 0.5\InsetSpace \thinspace{}
11956 \begin_layout Standard
11957 \begin_inset VSpace bigskip
11962 \begin_inset LatexCommand ref
11963 reference "tab:Example-booktabs-table"
11967 was created using the commands
11970 \begin_layout Standard
11980 \begin_layout Standard
11981 at the beginning of the in the second row and
11984 \begin_layout Standard
11989 cmidrule(l{10pt}){1-1}
11992 \begin_layout Standard
11996 \begin_layout Standard
12000 \begin_layout Standard
12001 \begin_inset VSpace bigskip
12007 \begin_layout Standard
12008 You might want to have overlapping
12014 s like in Table\InsetSpace ~
12016 \begin_inset LatexCommand ref
12017 reference "tab:Special-booktabs-table"
12022 This can be achieved with the ERT command
12025 \begin_layout Standard
12033 \begin_layout Standard
12034 The command that was used for the second row of Table\InsetSpace ~
12036 \begin_inset LatexCommand ref
12037 reference "tab:Special-booktabs-table"
12044 \begin_layout Standard
12058 \begin_layout Standard
12059 The command for the sixth row is
12062 \begin_layout Standard
12074 \begin_layout Standard
12075 \begin_inset VSpace bigskip
12081 \begin_layout Standard
12082 If you are anyway not satisfied with the border line spacing, you can use
12083 the following command to produce lines that span over all table columns
12088 \begin_layout Standard
12093 specialrule{width}{space above}{space below}
12096 \begin_layout Standard
12097 For more informations about these specialties, we refer to the manual of
12103 \begin_inset LatexCommand cite
12109 \begin_inset LatexCommand index
12110 name "LaTeX-packages ! booktabs"
12117 \begin_layout Standard
12118 \begin_inset Float table
12124 \begin_layout Caption
12125 \begin_inset LatexCommand label
12126 name "tab:Special-booktabs-table"
12130 Special booktabs-table
12133 \begin_layout Standard
12135 \begin_inset Tabular
12136 <lyxtabular version="3" rows="8" columns="4">
12137 <features booktabs="true">
12138 <column alignment="center" valignment="top" width="0">
12139 <column alignment="center" valignment="top" width="0">
12140 <column alignment="center" valignment="top" width="0">
12141 <column alignment="center" valignment="top" width="0">
12142 <row topline="true">
12143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12146 \begin_layout Standard
12152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12155 \begin_layout Standard
12156 Medipix\InsetSpace \thinspace{}
12162 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12165 \begin_layout Standard
12166 Medipix\InsetSpace \thinspace{}
12172 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12175 \begin_layout Standard
12183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12186 \begin_layout Standard
12190 \begin_layout Standard
12203 \begin_layout Standard
12216 \begin_layout Standard
12229 \begin_layout Standard
12238 Detector thickness [
12242 \begin_layout Standard
12256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12259 \begin_layout Standard
12265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12268 \begin_layout Standard
12274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12277 \begin_layout Standard
12284 <row topline="true">
12285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12288 \begin_layout Standard
12294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12297 \begin_layout Standard
12303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12306 \begin_layout Standard
12312 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12315 \begin_layout Standard
12322 <row topspace="default">
12323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12326 \begin_layout Standard
12327 Spatial resolution [
12331 \begin_layout Standard
12345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12348 \begin_layout Standard
12354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12357 \begin_layout Standard
12363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12366 \begin_layout Standard
12373 <row topspace="default">
12374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12377 \begin_layout Standard
12379 \begin_inset Formula $f_{\mathrm{max}}$
12387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12390 \begin_layout Standard
12396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12399 \begin_layout Standard
12405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12408 \begin_layout Standard
12415 <row topline="true">
12416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12419 \begin_layout Standard
12423 \begin_layout Standard
12436 \begin_layout Standard
12445 LSF-spatial resolution
12450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12453 \begin_layout Standard
12459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12462 \begin_layout Standard
12468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12471 \begin_layout Standard
12479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12482 \begin_layout Standard
12487 \begin_layout Standard
12501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12504 \begin_layout Standard
12510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12513 \begin_layout Standard
12519 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12522 \begin_layout Standard
12529 <row bottomline="true">
12530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12533 \begin_layout Standard
12539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12542 \begin_layout Standard
12548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12551 \begin_layout Standard
12557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12560 \begin_layout Standard
12579 \begin_layout Section
12580 Vertical Table Alignment
12581 \begin_inset LatexCommand index
12582 name "Table ! Alignment"
12589 \begin_layout Standard
12590 To align tables vertically in a text line the table must be inside a box.
12591 The box can then be vertically aligned as described in section\InsetSpace ~
12593 \begin_inset LatexCommand ref
12594 reference "sec:Box-Dialog"
12601 \begin_layout Standard
12602 In the following example the tables are inside a minipage
12606 \begin_layout Standard
12607 Minipages are described in section\InsetSpace ~
12609 \begin_inset LatexCommand ref
12610 reference "sec:Minipages"
12619 box that has a width of 15\InsetSpace \thinspace{}
12623 \begin_layout Itemize
12625 \begin_inset Box Frameless
12634 height_special "totalheight"
12637 \begin_layout Standard
12638 \begin_inset Tabular
12639 <lyxtabular version="3" rows="3" columns="3">
12641 <column alignment="center" valignment="top" leftline="true" width="0">
12642 <column alignment="center" valignment="top" leftline="true" width="0">
12643 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12644 <row topline="true">
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 topline="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" rightline="true" usebox="none">
12695 \begin_layout Standard
12702 <row topline="true" bottomline="true">
12703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12706 \begin_layout Standard
12712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12715 \begin_layout Standard
12721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12724 \begin_layout Standard
12744 \begin_layout Standard
12756 \begin_inset Box Frameless
12765 height_special "totalheight"
12768 \begin_layout Standard
12769 \begin_inset Tabular
12770 <lyxtabular version="3" rows="3" columns="3">
12772 <column alignment="center" valignment="top" leftline="true" width="0">
12773 <column alignment="center" valignment="top" leftline="true" width="0">
12774 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12775 <row topline="true">
12776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12779 \begin_layout Standard
12785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12788 \begin_layout Standard
12794 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12797 \begin_layout Standard
12804 <row topline="true">
12805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12808 \begin_layout Standard
12814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12817 \begin_layout Standard
12823 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12826 \begin_layout Standard
12833 <row topline="true" bottomline="true">
12834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12837 \begin_layout Standard
12843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12846 \begin_layout Standard
12852 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12855 \begin_layout Standard
12875 \begin_layout Standard
12885 \begin_layout Itemize
12887 \begin_inset Box Frameless
12896 height_special "totalheight"
12899 \begin_layout Standard
12900 \begin_inset Tabular
12901 <lyxtabular version="3" rows="3" columns="3">
12903 <column alignment="center" valignment="top" leftline="true" width="0">
12904 <column alignment="center" valignment="top" leftline="true" width="0">
12905 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12906 <row topline="true">
12907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12910 \begin_layout Standard
12916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12919 \begin_layout Standard
12925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12928 \begin_layout Standard
12935 <row topline="true">
12936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12939 \begin_layout Standard
12945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12948 \begin_layout Standard
12954 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12957 \begin_layout Standard
12964 <row topline="true" bottomline="true">
12965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12968 \begin_layout Standard
12974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12977 \begin_layout Standard
12983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12986 \begin_layout Standard
13005 \begin_layout Itemize
13007 \begin_inset Box Frameless
13016 height_special "totalheight"
13019 \begin_layout Standard
13020 \begin_inset Tabular
13021 <lyxtabular version="3" rows="3" columns="3">
13023 <column alignment="center" valignment="top" leftline="true" width="0">
13024 <column alignment="center" valignment="top" leftline="true" width="0">
13025 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13026 <row topline="true">
13027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13030 \begin_layout Standard
13036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13039 \begin_layout Standard
13045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13048 \begin_layout Standard
13055 <row topline="true">
13056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13059 \begin_layout Standard
13065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13068 \begin_layout Standard
13074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13077 \begin_layout Standard
13084 <row topline="true" bottomline="true">
13085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13088 \begin_layout Standard
13094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13097 \begin_layout Standard
13103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13106 \begin_layout Standard
13126 \begin_layout Standard
13138 \begin_inset Box Frameless
13147 height_special "totalheight"
13150 \begin_layout Standard
13151 \begin_inset Tabular
13152 <lyxtabular version="3" rows="3" columns="3">
13154 <column alignment="center" valignment="top" leftline="true" width="0">
13155 <column alignment="center" valignment="top" leftline="true" width="0">
13156 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13157 <row topline="true">
13158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13161 \begin_layout Standard
13167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13170 \begin_layout Standard
13176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13179 \begin_layout Standard
13186 <row topline="true">
13187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13190 \begin_layout Standard
13196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13199 \begin_layout Standard
13205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13208 \begin_layout Standard
13215 <row topline="true" bottomline="true">
13216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13219 \begin_layout Standard
13225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13228 \begin_layout Standard
13234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13237 \begin_layout Standard
13257 \begin_layout Standard
13267 \begin_layout Standard
13268 As you can see, the content of the first and last table row is not correctly
13269 aligned with the text line where the table is in.
13270 To get this alignment, the minipage box must be set into a raisebox
13274 \begin_layout Standard
13275 Raiseboxes are described in section\InsetSpace ~
13277 \begin_inset LatexCommand ref
13278 reference "sub:Vertical-Alignment"
13288 In the example above the second table in the first item is aligned using
13292 \begin_layout Standard
13302 \begin_layout Standard
13304 Behind the box the closing brace
13308 is inserted as ERT.
13309 For the second table in the last item the command
13312 \begin_layout Standard
13322 \begin_layout Standard
13326 \begin_layout Standard
13327 \begin_inset Note Greyedout
13330 \begin_layout Standard
13335 The alignment of the table row content to the surrounding text line is not
13337 The needed factor of the
13343 command for this alignment depends on the document font, the font size,
13344 and the table line thickness.
13352 \begin_layout Section
13354 \begin_inset LatexCommand label
13355 name "sec:Colored-Tables"
13360 \begin_inset LatexCommand index
13361 name "Table ! Color"
13368 \begin_layout Subsection
13370 \begin_inset LatexCommand index
13371 name "Table Color ! for Cells"
13376 \begin_inset LatexCommand index
13377 name "Color ! for Table Cells"
13384 \begin_layout Standard
13385 \begin_inset Float table
13391 \begin_layout Caption
13392 \begin_inset LatexCommand label
13393 name "tab:Table-colored-without"
13397 Table colored without using the package
13402 \begin_inset OptArg
13405 \begin_layout Standard
13406 Table without colortbl
13414 \begin_layout Standard
13416 \begin_inset Tabular
13417 <lyxtabular version="3" rows="3" columns="3">
13419 <column alignment="center" valignment="top" leftline="true" width="0">
13420 <column alignment="center" valignment="top" leftline="true" width="0">
13421 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13422 <row topline="true">
13423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13426 \begin_layout Standard
13434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13437 \begin_layout Standard
13445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13448 \begin_layout Standard
13457 <row topline="true">
13458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13461 \begin_layout Standard
13469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13472 \begin_layout Standard
13480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13483 \begin_layout Standard
13492 <row topline="true" bottomline="true">
13493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13496 \begin_layout Standard
13504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13507 \begin_layout Standard
13515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13518 \begin_layout Standard
13539 \begin_layout Standard
13540 If you only need colored text, mark the cells and choose a color in the
13543 Edit\SpecialChar \menuseparator
13548 This was used to create Table\InsetSpace ~
13550 \begin_inset LatexCommand ref
13551 reference "tab:Table-colored-without"
13556 In any other case you have to use the LaTeX-package
13561 \begin_inset LatexCommand index
13562 name "LaTeX-packages ! colortbl"
13569 \begin_layout Standard
13570 To create colored tables,
13574 must be loaded in the preamble with the line
13577 \begin_layout Standard
13582 usepackage{colortbl}
13585 \begin_layout Standard
13586 The color of a column is adjusted with the command
13589 \begin_layout Standard
13594 columncolor{name of color}
13597 \begin_layout Standard
13603 More about the command
13607 is described in section\InsetSpace ~
13609 \begin_inset LatexCommand ref
13610 reference "sub:Multicolumn-Calculations"
13617 \begin_layout Standard
13618 The following color names are predefined:
13621 \begin_layout Standard
13655 \begin_layout Standard
13656 \begin_inset VSpace medskip
13662 \begin_layout Standard
13663 You can also define your own color with the command
13666 \begin_layout Standard
13671 def\SpecialChar \textcompwordmark{}
13672 inecolor{color name}{color model}{color values}
13675 \begin_layout Standard
13676 The color model can be
13679 \begin_layout Labeling
13680 \labelwidthstring 00.00.0000
13681 cmyk: cyan, magenta, yellow, black
13684 \begin_layout Labeling
13685 \labelwidthstring 00.00.0000
13686 rgb: red, green blue
13689 \begin_layout Labeling
13690 \labelwidthstring 00.00.0000
13694 \begin_layout Standard
13695 and the color values are comma separated numbers between 0 and 1 describing
13696 the factor for the corresponding color of the color model.
13699 \begin_layout Standard
13700 You can e.\InsetSpace \thinspace{}
13706 " in the preamble with
13709 \begin_layout Standard
13714 def\SpecialChar \textcompwordmark{}
13715 inecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13718 \begin_layout Standard
13726 \begin_layout Standard
13731 def\SpecialChar \textcompwordmark{}
13732 inecolor{lightgray}{gray}{0.8}
13735 \begin_layout Standard
13736 \begin_inset VSpace medskip
13742 \begin_layout Standard
13743 Lines are colored with the command
13746 \begin_layout Standard
13751 rowcolor{name of color}
13754 \begin_layout Standard
13755 and cells are colored with the command
13758 \begin_layout Standard
13763 cellcolor{name of color}
13766 \begin_layout Standard
13767 Both commands are inserted at the beginning of a cell as ERT.
13770 \begin_layout Standard
13771 To color characters in the table, mark the cells and use the LyX menu
13773 Edit\SpecialChar \menuseparator
13778 If a cell contains ERT mark only the characters, otherwise the colored
13779 ERT will cause LaTeX-errors.
13782 \begin_layout Standard
13783 \begin_inset VSpace bigskip
13789 \begin_layout Standard
13790 To create Table\InsetSpace ~
13792 \begin_inset LatexCommand ref
13793 reference "tab:Table-colored-using"
13797 do the following: The color of the first column should be
13805 \begin_layout Standard
13810 columncolor{darkgreen}
13815 \begin_layout Standard
13816 as LaTeX-argument for this column.
13817 The first row should be blue, therefore the ERT command
13820 \begin_layout Standard
13828 \begin_layout Standard
13829 is inserted to the first cell of this row.
13830 Note that this overwrites the column color for the first cell.
13831 The last cell of the last row is colored magenta by inserting the ERT command
13834 \begin_layout Standard
13842 \begin_layout Standard
13843 The characters could now be colored using the menu
13845 Edit\SpecialChar \menuseparator
13852 \begin_layout Standard
13853 \begin_inset Float table
13859 \begin_layout Caption
13860 \begin_inset LatexCommand label
13861 name "tab:Table-colored-using"
13865 Table colored using the package
13870 \begin_inset OptArg
13873 \begin_layout Standard
13874 Table with colortbl
13882 \begin_layout Standard
13884 \begin_inset Tabular
13885 <lyxtabular version="3" rows="3" columns="3">
13887 <column alignment="center" valignment="top" leftline="true" width="0" special=">{\columncolor{darkgreen}\centering}c">
13888 <column alignment="center" valignment="top" width="0">
13889 <column alignment="center" valignment="top" width="0">
13891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13894 \begin_layout Standard
13898 \begin_layout Standard
13914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13917 \begin_layout Standard
13925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13928 \begin_layout Standard
13938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13941 \begin_layout Standard
13949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13952 \begin_layout Standard
13960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13963 \begin_layout Standard
13973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13976 \begin_layout Standard
13984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13987 \begin_layout Standard
13995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13998 \begin_layout Standard
14002 \begin_layout Standard
14031 \begin_layout Subsection
14033 \begin_inset LatexCommand index
14034 name "Table Color ! for Lines"
14039 \begin_inset LatexCommand index
14040 name "Color ! for Table Lines"
14047 \begin_layout Standard
14048 As described in section\InsetSpace ~
14050 \begin_inset LatexCommand ref
14051 reference "sub:Line-Thickness"
14055 , the line thickness for all lines in a table can be adjusted with the length
14063 It is set to 1.5\InsetSpace \thinspace{}
14064 pt for all tables of this section.
14068 \begin_layout Standard
14074 arrayrulewidth}{1.5pt}
14082 \begin_layout Standard
14083 To color vertical lines for example with green, create the following column
14084 format in the document preamble, according to the description in section\InsetSpace ~
14086 \begin_inset LatexCommand ref
14087 reference "sub:Customized-Format"
14094 \begin_layout Standard
14099 newcolumntype{W}{!{
14106 \begin_layout Standard
14107 For Table\InsetSpace ~
14109 \begin_inset LatexCommand ref
14110 reference "tab:Table-with-vertical-colored"
14117 \begin_layout Standard
14123 \begin_layout Standard
14124 was used for the last column and
14127 \begin_layout Standard
14133 \begin_layout Standard
14134 for the other columns.
14137 \begin_layout Standard
14138 If you want to have several colors, define more column formats.
14141 \begin_layout Standard
14142 \begin_inset Float table
14147 \begin_layout Caption
14148 \begin_inset LatexCommand label
14149 name "tab:Table-with-vertical-colored"
14153 Table with colored vertical lines
14156 \begin_layout Standard
14158 \begin_inset Tabular
14159 <lyxtabular version="3" rows="3" columns="3">
14161 <column alignment="center" valignment="top" leftline="true" width="0" special="Wc">
14162 <column alignment="center" valignment="top" width="0" special="Wc">
14163 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0" special="WcW">
14164 <row topline="true">
14165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14168 \begin_layout Standard
14174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14177 \begin_layout Standard
14183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14186 \begin_layout Standard
14193 <row topline="true">
14194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14197 \begin_layout Standard
14203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14206 \begin_layout Standard
14212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14215 \begin_layout Standard
14222 <row topline="true" bottomline="true">
14223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14226 \begin_layout Standard
14232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14235 \begin_layout Standard
14241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14244 \begin_layout Standard
14263 \begin_layout Standard
14264 \begin_inset VSpace bigskip
14267 To color horizontal lines for example with red, like in Table\InsetSpace ~
14269 \begin_inset LatexCommand ref
14270 reference "tab:Table-with-horizontal-colored"
14274 , insert these commands in ERT before the table or table float:
14277 \begin_layout Standard
14294 arrayrulecolor{red}
14298 arrayrulecolor{black}}
14301 \begin_layout Standard
14305 \begin_layout Standard
14316 \begin_layout Standard
14324 arrayrulecolor{red}
14328 arrayrulecolor{black}}
14334 \begin_inset Float table
14339 \begin_layout Caption
14340 \begin_inset LatexCommand label
14341 name "tab:Table-with-horizontal-colored"
14345 Table with colored horizontal lines
14348 \begin_layout Standard
14350 \begin_inset Tabular
14351 <lyxtabular version="3" rows="3" columns="3">
14353 <column alignment="center" valignment="top" leftline="true" width="0">
14354 <column alignment="center" valignment="top" leftline="true" width="0">
14355 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14356 <row topline="true">
14357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14360 \begin_layout Standard
14366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14369 \begin_layout Standard
14375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14378 \begin_layout Standard
14385 <row topline="true">
14386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14389 \begin_layout Standard
14395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14398 \begin_layout Standard
14404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14407 \begin_layout Standard
14414 <row topline="true" bottomline="true">
14415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14418 \begin_layout Standard
14424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14427 \begin_layout Standard
14433 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14436 \begin_layout Standard
14455 \begin_layout Standard
14459 \begin_layout Standard
14471 \begin_layout Standard
14472 To return to the default line color black, insert this command in ERT behind
14473 the table or table float:
14476 \begin_layout Standard
14488 \begin_layout Standard
14491 \begin_inset LatexCommand ref
14492 reference "tab:Table-with-colored"
14496 is an example with colored vertical and horizontal lines.
14499 \begin_layout Standard
14500 \begin_inset Float table
14505 \begin_layout Caption
14506 \begin_inset LatexCommand label
14507 name "tab:Table-with-colored"
14511 Table with colored lines
14514 \begin_layout Standard
14516 \begin_inset Tabular
14517 <lyxtabular version="3" rows="3" columns="3">
14519 <column alignment="center" valignment="top" leftline="true" width="0" special="Wc">
14520 <column alignment="center" valignment="top" width="0" special="Wc">
14521 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0" special="WcW">
14522 <row topline="true">
14523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14526 \begin_layout Standard
14532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14535 \begin_layout Standard
14541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14544 \begin_layout Standard
14551 <row topline="true">
14552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14555 \begin_layout Standard
14561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14564 \begin_layout Standard
14570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14573 \begin_layout Standard
14580 <row topline="true" bottomline="true" topspace="default">
14581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14584 \begin_layout Standard
14590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14593 \begin_layout Standard
14599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14602 \begin_layout Standard
14621 \begin_layout Standard
14625 \begin_layout Standard
14641 \begin_layout Standard
14645 \begin_layout Standard
14651 arrayrulewidth}{0.4pt}
14659 \begin_layout Section
14660 Table Customization
14661 \begin_inset LatexCommand index
14662 name "Table Customization"
14667 \begin_inset LatexCommand index
14668 name "Table ! Customization"
14675 \begin_layout Subsection
14677 \begin_inset LatexCommand label
14678 name "sub:Row-Spacing"
14683 \begin_inset LatexCommand index
14684 name "Table Customization ! Row Spacing"
14691 \begin_layout Standard
14692 You can add vertical space to table rows in the
14696 tab of the table dialog.
14697 You find there three possibilities:
14700 \begin_layout Description
14703 row will add space above the characters of the table row.
14704 If the table is a formal table
14708 \begin_layout Standard
14709 Formal tables are explained in section\InsetSpace ~
14711 \begin_inset LatexCommand ref
14712 reference "sec:Formal-Tables"
14721 LyX will insert as default 0.5\InsetSpace \thinspace{}
14723 For normal tables the inserted space will unfortunately destroy the vertical
14724 table lines as in the following table:
14725 \begin_inset Tabular
14726 <lyxtabular version="3" rows="3" columns="1">
14728 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14729 <row topline="true">
14730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14733 \begin_layout Standard
14740 <row topline="true" topspace="3mm">
14741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14744 \begin_layout Standard
14745 3\InsetSpace \thinspace{}
14746 mm space top of row
14752 <row topline="true" bottomline="true">
14753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14756 \begin_layout Standard
14769 So inserting space to the top of row for normal tables is only useful when
14770 you don't have vertical lines.
14773 \begin_layout Description
14774 Bottom\InsetSpace ~
14776 row will add space below the characters of the table row.
14777 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14779 normal tables the default size is 2\InsetSpace \thinspace{}
14783 \begin_layout Description
14784 Between\InsetSpace ~
14785 rows only has an effect when you have selected the whole table row
14787 The space is added between the current and the following row.
14788 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14790 For normal tables the inserted space will unfortunately destroy the vertical
14791 table lines as in the following table:
14792 \begin_inset Tabular
14793 <lyxtabular version="3" rows="3" columns="1">
14795 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14796 <row topline="true">
14797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14800 \begin_layout Standard
14807 <row topline="true" interlinespace="3mm">
14808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14811 \begin_layout Standard
14812 \begin_inset Formula $\downarrow$
14815 3\InsetSpace \thinspace{}
14816 mm space between row
14817 \begin_inset Formula $\downarrow$
14826 <row topline="true" bottomline="true">
14827 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14830 \begin_layout Standard
14831 \begin_inset Formula $\uparrow$
14834 3\InsetSpace \thinspace{}
14835 mm space between row
14836 \begin_inset Formula $\uparrow$
14851 So inserting space to the top of row for normal tables is only useful when
14852 you don't have vertical lines.
14855 \begin_layout Standard
14856 When you want to add extra height to all cells of all tables, you can do
14857 this with the following preamble line:
14860 \begin_layout Standard
14867 extrarowheight}{height}
14870 \begin_layout Standard
14871 But this has the disadvantage that the cell texts are no longer exactly
14872 vertically centered.
14875 \begin_layout Subsection
14876 Special Cell Alignment
14877 \begin_inset LatexCommand index
14878 name "Table Customization ! Special Cell Alignment"
14885 \begin_layout Standard
14886 Sometimes it looks better when the cell entries of a column are aligned
14887 with a special character, e.\InsetSpace \thinspace{}
14889 with the decimal separator as in Table\InsetSpace ~
14891 \begin_inset LatexCommand ref
14892 reference "tab:Table-cells-of"
14899 \begin_layout Standard
14900 \begin_inset Float table
14906 \begin_layout Caption
14907 \begin_inset LatexCommand label
14908 name "tab:Table-cells-of"
14912 Table cells of a column aligned with the decimal separator.
14915 \begin_layout Standard
14917 \begin_inset Tabular
14918 <lyxtabular version="3" rows="4" columns="2">
14920 <column alignment="right" valignment="top" width="0">
14921 <column alignment="left" valignment="top" width="0" special="@{}l">
14922 <row bottomline="true">
14923 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
14926 \begin_layout Standard
14932 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14935 \begin_layout Standard
14943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14946 \begin_layout Standard
14952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14955 \begin_layout Standard
14963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14966 \begin_layout Standard
14972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14975 \begin_layout Standard
14983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14986 \begin_layout Standard
14992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14995 \begin_layout Standard
15014 \begin_layout Standard
15015 This table was created with a 4×2 table.
15016 The heading is a centered multicolumn.
15017 The first column is right-aligned and contains the digits before the decimal
15018 point and the decimal point.
15019 The second column is left aligned and contains the digits after the decimal
15021 To omit the space that is normally between two table columns, use the following
15022 LaTeX-argument for the second column:
15025 \begin_layout Standard
15031 \begin_layout Standard
15032 If you need a vertical line right beside the second column, use this LaTeX-argum
15038 \begin_layout Standard
15041 \begin_inset LatexCommand ref
15042 reference "tab:Several-table-cell"
15046 shows some example alignments.
15047 For the alignment with the relation sign, you must add the second smallest
15048 math-space at the beginning of the last column to get the correct space
15049 surrounding the relation sign.
15052 \begin_layout Standard
15053 \begin_inset Float table
15058 \begin_layout Caption
15059 \begin_inset LatexCommand label
15060 name "tab:Several-table-cell"
15064 Several table cell alignments.
15067 \begin_layout Standard
15069 \begin_inset Tabular
15070 <lyxtabular version="3" rows="4" columns="6">
15072 <column alignment="right" valignment="top" width="0">
15073 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l|">
15074 <column alignment="right" valignment="top" width="0">
15075 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l|">
15076 <column alignment="right" valignment="top" width="0">
15077 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15078 <row bottomline="true">
15079 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15082 \begin_layout Standard
15088 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15091 \begin_layout Standard
15097 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15100 \begin_layout Standard
15106 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15109 \begin_layout Standard
15115 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15118 \begin_layout Standard
15124 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15127 \begin_layout Standard
15135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15138 \begin_layout Standard
15144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15147 \begin_layout Standard
15148 24\InsetSpace \thinspace{}
15154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15157 \begin_layout Standard
15158 \begin_inset Formula $10\cdot$
15166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15169 \begin_layout Standard
15170 \begin_inset Formula $10^{\mbox{-}17}$
15178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15181 \begin_layout Standard
15182 \begin_inset Formula $\Gamma(t)\propto$
15190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15193 \begin_layout Standard
15194 \begin_inset Formula $\:\Upsilon(t)$
15204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15207 \begin_layout Standard
15213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15216 \begin_layout Standard
15217 768\InsetSpace \thinspace{}
15223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15226 \begin_layout Standard
15227 \begin_inset Formula $5.78\cdot$
15235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15238 \begin_layout Standard
15239 \begin_inset Formula $10^{7}$
15247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15250 \begin_layout Standard
15251 \begin_inset Formula $A\ne$
15259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15262 \begin_layout Standard
15263 \begin_inset Formula $\: B_{\mathrm{red}}$
15273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15276 \begin_layout Standard
15282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15285 \begin_layout Standard
15286 6\InsetSpace \thinspace{}
15292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15295 \begin_layout Standard
15297 \begin_inset Formula $33.5\cdot$
15305 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15308 \begin_layout Standard
15309 \begin_inset Formula $10^{4}$
15317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15320 \begin_layout Standard
15321 \begin_inset Formula $\sin(\alpha)\ge$
15329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15332 \begin_layout Standard
15333 \begin_inset Formula $\:\sin(\beta)$
15354 \begin_layout Standard
15355 \begin_inset VSpace bigskip
15358 There is also the LaTeX-package
15363 \begin_inset LatexCommand index
15364 name "LaTeX-packages ! dcolumn"
15368 that provides table cell alignments.
15369 But this unfortunately treats the cell entries as math and doesn't allow
15370 formulas in table cells: The first column of Table\InsetSpace ~
15372 \begin_inset LatexCommand ref
15373 reference "tab:Several-table-cell"
15381 like the first column in Table\InsetSpace ~
15383 \begin_inset LatexCommand ref
15384 reference "tab:Alignments-when"
15388 and only with some tricks like the expected.
15389 The alignment of the second and third column of Table\InsetSpace ~
15391 \begin_inset LatexCommand ref
15392 reference "tab:Several-table-cell"
15396 is not possible with
15403 \begin_layout Standard
15404 \begin_inset Float table
15410 \begin_layout Caption
15411 \begin_inset LatexCommand label
15412 name "tab:Alignments-when"
15416 Alignments when LaTeX-package dcolumn is used.
15417 For the second and third alignment some tricks were used.
15420 \begin_layout Standard
15422 \begin_inset Tabular
15423 <lyxtabular version="3" rows="4" columns="3">
15425 <column alignment="center" valignment="top" rightline="true" width="0" special="D{×}{\times}{-1}|">
15426 <column alignment="center" valignment="top" width="0" special="D{×}{\times}{4.9}|">
15427 <column alignment="center" valignment="top" rightline="true" width="0" special="D{~}{\,}{9.7}">
15428 <row bottomline="true">
15429 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15432 \begin_layout Standard
15438 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15441 \begin_layout Standard
15447 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15450 \begin_layout Standard
15458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15461 \begin_layout Standard
15462 12×24\InsetSpace \thinspace{}
15468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15471 \begin_layout Standard
15472 12×24\InsetSpace \thinspace{}
15474 \begin_inset Formula $\mbox{bottles}$
15482 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15485 \begin_layout Standard
15487 \begin_inset Formula $\mbox{bottles}$
15497 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15500 \begin_layout Standard
15501 1024×768\InsetSpace \thinspace{}
15507 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15510 \begin_layout Standard
15511 1024×768\InsetSpace \thinspace{}
15513 \begin_inset Formula $\mbox{Pixels}$
15521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15524 \begin_layout Standard
15526 \begin_inset Formula $\mbox{Pixels}$
15536 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15539 \begin_layout Standard
15540 32×6\InsetSpace \thinspace{}
15546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15549 \begin_layout Standard
15550 32×6\InsetSpace \thinspace{}
15552 \begin_inset Formula $\mbox{cm}$
15560 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15563 \begin_layout Standard
15565 \begin_inset Formula $\mbox{cm}$
15586 \begin_layout Subsection
15587 Customized Cell/Column Format
15588 \begin_inset LatexCommand label
15589 name "sub:Customized-Format"
15594 \begin_inset LatexCommand index
15595 name "Table Customization ! Cell/Column Format"
15602 \begin_layout Standard
15603 Calculating the needed width for spanned columns like in section\InsetSpace ~
15605 \begin_inset LatexCommand ref
15606 reference "sub:Multicolumn-Calculations"
15610 is very annoying if you have several tables with multicolumn cells.
15611 To make life easier, you can define a cell/column format in the preamble,
15612 so that it can be used in all tables of the document.
15613 The format is defined with the command
15616 \begin_layout Standard
15621 newcolumntype{name of format}[number of arguments]{commands}
15624 \begin_layout Standard
15625 The format name may only consist of one letter.
15650 are predefined and cannot be used.
15651 But all letters are allowed as capitals.
15654 \begin_layout Standard
15655 \begin_inset VSpace medskip
15661 \begin_layout Standard
15662 For vertically and horizontally centered multicolumn cells with a fixed
15663 width you can define the cell format
15666 \begin_layout Standard
15671 newcolumntype{M}[1]{>{
15678 \begin_layout Standard
15685 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15687 \begin_inset LatexCommand ref
15688 reference "sub:Multiple-Lines-in"
15693 Now you can simply enter
15696 \begin_layout Standard
15702 \begin_layout Standard
15703 as LaTeX-argument in the table dialog to create a multicolumn.
15706 \begin_layout Standard
15707 \begin_inset VSpace bigskip
15713 \begin_layout Standard
15714 For cells spanned by a multicolumn cell, you can define the format
15717 \begin_layout Standard
15722 newcolumntype{S}[2]{>{
15732 \begin_layout Standard
15743 newcolumntype{S}[2]
15747 \begin_layout Standard
15758 arrayrulewidth)*(1-#2))/#2}}
15761 \begin_layout Standard
15762 This format uses equation
15763 \begin_inset LatexCommand eqref
15768 to calculate the needed width so that each spanned cell has the same width.
15771 \begin_layout Standard
15775 \begin_layout Standard
15778 |S{width of multicolumn cell}{number of spanned columns}
15781 \begin_layout Standard
15782 as LaTeX-argument of the column.
15785 \begin_layout Standard
15786 \begin_inset VSpace bigskip
15792 \begin_layout Standard
15793 For colored columns, you can define
15796 \begin_layout Standard
15801 newcolumntype{K}[1]{>{
15808 \begin_layout Standard
15810 \begin_inset Quotes eld
15814 \begin_inset Quotes erd
15817 at the end creates a column with a flexible width whose text is horizontally
15822 \begin_layout Standard
15828 \begin_layout Standard
15832 \begin_layout Standard
15833 \begin_inset VSpace bigskip
15839 \begin_layout Standard
15840 To create Table\InsetSpace ~
15842 \begin_inset LatexCommand ref
15843 reference "tab:Table-using-user-defined"
15847 use the LaTeX-arguments
15850 \begin_layout Standard
15856 \begin_layout Standard
15857 for the first column and the multicolumn,
15860 \begin_layout Standard
15866 \begin_layout Standard
15867 for the the last column, and
15870 \begin_layout Standard
15876 \begin_layout Standard
15877 for the cells in the second column.
15880 \begin_layout Standard
15881 \begin_inset Float table
15887 \begin_layout Caption
15888 \begin_inset LatexCommand label
15889 name "tab:Table-using-user-defined"
15893 Table using user-defined table formats
15896 \begin_layout Standard
15898 \begin_inset Tabular
15899 <lyxtabular version="3" rows="3" columns="4">
15901 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="|M{2.5cm}">
15902 <column alignment="center" valignment="middle" leftline="true" width="0" special="|S{2.5cm}{2}">
15903 <column alignment="center" valignment="middle" leftline="true" width="0">
15904 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="|K{red}|">
15905 <row topline="true">
15906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15909 \begin_layout Standard
15910 verylongtablecellword
15915 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}|">
15918 \begin_layout Standard
15919 multiple lines multicolumn
15924 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15927 \begin_layout Standard
15933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15936 \begin_layout Standard
15943 <row topline="true">
15944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15947 \begin_layout Standard
15953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15956 \begin_layout Standard
15962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15965 \begin_layout Standard
15971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15974 \begin_layout Standard
15981 <row topline="true" bottomline="true">
15982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15985 \begin_layout Standard
15991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15994 \begin_layout Standard
16000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16003 \begin_layout Standard
16009 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16012 \begin_layout Standard
16031 \begin_layout Subsection
16033 \begin_inset LatexCommand label
16034 name "sub:Line-Thickness"
16039 \begin_inset LatexCommand index
16040 name "Table Customization ! Line Thickness"
16047 \begin_layout Standard
16048 The line thickness for all lines in a table can be adjusted with the length
16056 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16057 pt, like in Table\InsetSpace ~
16059 \begin_inset LatexCommand ref
16060 reference "tab:Table-with-1.5"
16064 , insert the command
16067 \begin_layout Standard
16074 arrayrulewidth}{1.5pt}
16077 \begin_layout Standard
16078 in ERT before the table or table float.
16079 The changed thickness is valid for all following tables.
16080 To use the default value again, set
16086 to 0.4\InsetSpace \thinspace{}
16087 pt in ERT behind the table or table float.
16090 \begin_layout Standard
16094 \begin_layout Standard
16100 arrayrulewidth}{1.5pt}
16106 \begin_inset Float table
16111 \begin_layout Caption
16112 \begin_inset LatexCommand label
16113 name "tab:Table-with-1.5"
16117 Table with 1.5\InsetSpace \thinspace{}
16121 \begin_layout Standard
16123 \begin_inset Tabular
16124 <lyxtabular version="3" rows="3" columns="3">
16126 <column alignment="center" valignment="top" leftline="true" width="0">
16127 <column alignment="center" valignment="top" leftline="true" width="0">
16128 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16129 <row topline="true">
16130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16133 \begin_layout Standard
16139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16142 \begin_layout Standard
16148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16151 \begin_layout Standard
16158 <row topline="true">
16159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16162 \begin_layout Standard
16168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16171 \begin_layout Standard
16177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16180 \begin_layout Standard
16187 <row topline="true" bottomline="true">
16188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16191 \begin_layout Standard
16197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16200 \begin_layout Standard
16206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16209 \begin_layout Standard
16229 \begin_layout Standard
16235 arrayrulewidth}{0.4pt}
16243 \begin_layout Standard
16244 \begin_inset VSpace bigskip
16247 To set the line thickness to 1.5\InsetSpace \thinspace{}
16248 pt only for horizontal lines, like in Table\InsetSpace ~
16250 \begin_inset LatexCommand ref
16251 reference "tab:Table-with-horizontal"
16255 , insert these commands in ERT before the table or table float:
16258 \begin_layout Standard
16281 arrayrulewidth 1.5pt}
16291 arrayrulewidth 0.4pt}}
16294 \begin_layout Standard
16295 To return to the default line thickness, insert this command in ERT behind
16296 the table or table float:
16299 \begin_layout Standard
16311 \begin_layout Standard
16315 \begin_layout Standard
16326 \begin_layout Standard
16335 \begin_layout Standard
16343 arrayrulewidth 1.5pt}
16346 \begin_layout Standard
16356 arrayrulewidth 0.4pt}}
16362 \begin_inset Float table
16367 \begin_layout Caption
16368 \begin_inset LatexCommand label
16369 name "tab:Table-with-horizontal"
16373 Table with 1.5\InsetSpace \thinspace{}
16374 pt thick horizontal lines
16377 \begin_layout Standard
16379 \begin_inset Tabular
16380 <lyxtabular version="3" rows="3" columns="3">
16382 <column alignment="center" valignment="top" leftline="true" width="0">
16383 <column alignment="center" valignment="top" leftline="true" width="0">
16384 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16385 <row topline="true">
16386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16389 \begin_layout Standard
16395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16398 \begin_layout Standard
16404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16407 \begin_layout Standard
16414 <row topline="true">
16415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16418 \begin_layout Standard
16424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16427 \begin_layout Standard
16433 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16436 \begin_layout Standard
16443 <row topline="true" bottomline="true">
16444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16447 \begin_layout Standard
16453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16456 \begin_layout Standard
16462 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16465 \begin_layout Standard
16485 \begin_layout Standard
16501 \begin_layout Standard
16502 \begin_inset VSpace bigskip
16505 To set the line thickness to 1.5\InsetSpace \thinspace{}
16506 pt only for vertical lines, create the following
16507 column format in the document preamble, according to the description in
16508 section\InsetSpace ~
16510 \begin_inset LatexCommand ref
16511 reference "sub:Customized-Format"
16518 \begin_layout Standard
16523 newcolumntype{V}{!{
16525 vrule width 1.5pt}}
16528 \begin_layout Standard
16529 For Table\InsetSpace ~
16531 \begin_inset LatexCommand ref
16532 reference "tab:Table-with-vertical"
16539 \begin_layout Standard
16545 \begin_layout Standard
16546 was used for the last column and
16549 \begin_layout Standard
16555 \begin_layout Standard
16556 for the other columns.
16559 \begin_layout Standard
16560 \begin_inset Float table
16565 \begin_layout Caption
16566 \begin_inset LatexCommand label
16567 name "tab:Table-with-vertical"
16571 Table with 1.5\InsetSpace \thinspace{}
16572 pt thick vertical lines
16575 \begin_layout Standard
16577 \begin_inset Tabular
16578 <lyxtabular version="3" rows="3" columns="3">
16580 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16581 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16582 <column alignment="center" valignment="top" leftline="true" width="0" special="VcV">
16583 <row topline="true">
16584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16587 \begin_layout Standard
16593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16596 \begin_layout Standard
16602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16605 \begin_layout Standard
16612 <row topline="true">
16613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16616 \begin_layout Standard
16622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16625 \begin_layout Standard
16631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16634 \begin_layout Standard
16641 <row topline="true" bottomline="true">
16642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16645 \begin_layout Standard
16651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16654 \begin_layout Standard
16660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16663 \begin_layout Standard
16682 \begin_layout Subsection
16684 \begin_inset LatexCommand index
16685 name "Table Customization ! Dashed Lines"
16692 \begin_layout Standard
16693 \begin_inset Float table
16699 \begin_layout Caption
16700 \begin_inset LatexCommand label
16701 name "tab:Table-with-dashed"
16705 Table with dashed lines
16708 \begin_layout Standard
16710 \begin_inset Tabular
16711 <lyxtabular version="3" rows="5" columns="5">
16713 <column alignment="center" valignment="top" leftline="true" width="0">
16714 <column alignment="center" valignment="top" leftline="true" width="0">
16715 <column alignment="center" valignment="top" width="0" special=":c">
16716 <column alignment="center" valignment="top" leftline="true" width="0">
16717 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16718 <row topline="true" bottomline="true">
16719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16722 \begin_layout Standard
16728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16731 \begin_layout Standard
16737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16740 \begin_layout Standard
16746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16749 \begin_layout Standard
16755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16758 \begin_layout Standard
16765 <row topline="true">
16766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16769 \begin_layout Standard
16775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16778 \begin_layout Standard
16784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16787 \begin_layout Standard
16793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16796 \begin_layout Standard
16802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16805 \begin_layout Standard
16813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16816 \begin_layout Standard
16820 \begin_layout Standard
16834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16837 \begin_layout Standard
16843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16846 \begin_layout Standard
16852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16855 \begin_layout Standard
16861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16864 \begin_layout Standard
16871 <row topline="true">
16872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16875 \begin_layout Standard
16879 \begin_layout Standard
16893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16896 \begin_layout Standard
16902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
16905 \begin_layout Standard
16911 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
16914 \begin_layout Standard
16920 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16923 \begin_layout Standard
16930 <row topline="true" bottomline="true">
16931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16934 \begin_layout Standard
16940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16943 \begin_layout Standard
16949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16952 \begin_layout Standard
16958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16961 \begin_layout Standard
16967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16970 \begin_layout Standard
16989 \begin_layout Standard
16990 LyX doesn't natively support dashed lines, so you have to use ERT.
16991 As prerequisite the LaTeX-package
16996 \begin_inset LatexCommand index
16997 name "LaTeX-packages ! arydshln"
17001 must be loaded in the document preamble with the command
17004 \begin_layout Standard
17009 usepackage{arydshln}
17012 \begin_layout Standard
17013 To make a vertical line dashed, enter the colon
17014 \begin_inset Quotes eld
17018 \begin_inset Quotes erd
17021 together with the character for the horizontal alignment as LaTeX-argument
17022 in the table cell dialog.
17025 \begin_layout Standard
17026 For a horizontal dashed line add the command
17029 \begin_layout Standard
17037 \begin_layout Standard
17038 in ERT as first element of the first cell in the table row.
17041 \begin_layout Standard
17042 For dashed multicolumn lines use the command
17045 \begin_layout Standard
17050 cdashline{line number
17055 \begin_layout Standard
17056 in ERT as first element of the first cell in the table row.
17057 If you have for example a multicolumn spanning over columns 2 to 4 and
17058 you want to have a dashed line above, add the command
17061 \begin_layout Standard
17069 \begin_layout Standard
17070 as first element of the first cell in the row of the multicolumn.
17073 \begin_layout Standard
17074 \begin_inset VSpace bigskip
17080 \begin_layout Standard
17083 \begin_inset LatexCommand ref
17084 reference "tab:Table-with-dashed"
17089 \begin_inset Quotes eld
17097 \begin_inset Quotes erd
17100 as LaTeX-argument of the third column.
17107 was inserted to the first cell of the third row and the the ERT command
17116 was inserted to the first cell of the fourth row.
17119 \begin_layout Standard
17120 \begin_inset Note Greyedout
17123 \begin_layout Standard
17128 The used LaTeX-package
17132 is apparently not compatible with the LaTeX-package
17137 \begin_inset LatexCommand index
17138 name "LaTeX-packages ! colortbl"
17142 that is used for colored tables in section\InsetSpace ~
17144 \begin_inset LatexCommand ref
17145 reference "sec:Colored-Tables"
17150 That means colored tables cannot have dashed lines.
17158 \begin_layout Chapter
17160 \begin_inset LatexCommand index
17166 \begin_inset LatexCommand label
17174 \begin_layout Section
17176 \begin_inset LatexCommand label
17177 name "sec:FloatIntroduction"
17182 \begin_inset LatexCommand index
17183 name "Floats ! Introduction"
17190 \begin_layout Standard
17191 A float is a block of text associated with some sort of label, which doesn't
17192 have a fixed location.
17194 \begin_inset Quotes eld
17198 \begin_inset Quotes erd
17201 forward or backward a page or two, to wherever it fits best.
17208 Margin\InsetSpace ~
17211 are also floats, because they can float to the next page when there are
17212 too many notes at the page.
17215 \begin_layout Standard
17216 Floats allow a high quality layout.
17217 Images and tables can evenly be spread to the pages to avoid white space
17218 and pages without text.
17219 As the floating often destroys the context between the text and the image/table
17220 , every float can be referenced in the text.
17221 Floats are therefore numbered.
17222 Referencing is described in section\InsetSpace ~
17224 \begin_inset LatexCommand ref
17225 reference "sec:Referencing-Floats"
17232 \begin_layout Standard
17233 To insert a float, use the menu
17235 Insert\SpecialChar \menuseparator
17239 This inserts a box with a label in the
17247 \begin_layout Standard
17252 environment is described in LyX's
17261 into your document.
17262 Every label ends with the character
17263 \begin_inset Quotes eld
17267 \begin_inset Quotes erd
17270 as placeholder for the float number in the output.
17271 The label will automatically be translated to the document language in
17273 Behind the label you can insert the caption text.
17274 The image or table is inserted above or below the caption in a separate
17275 paragraph within the float.
17276 More about the caption placement is described in section\InsetSpace ~
17278 \begin_inset LatexCommand ref
17279 reference "sec:Caption-Placement"
17284 To keep your LyX-document readable, you can open and close the float box
17285 by left-clicking on the box label.
17286 A closed float box looks like this:
17287 \begin_inset Graphics
17288 filename ../clipart/floatQt4.png
17293 -- a gray button with a red label.
17296 \begin_layout Standard
17297 It is recommended to insert floats as a separate paragraph to avoid possible
17298 LaTeX-errors that can occur when the surrounding text is specially formatted.
17301 \begin_layout Standard
17302 Existing figures or tables can be put into a float by marking them and then
17303 pressing the corresponding toolbar button for a new float.
17306 \begin_layout Section
17310 \begin_layout Standard
17311 Besides figure and table floats that are described in section\InsetSpace ~
17313 \begin_inset LatexCommand ref
17314 reference "sec:Figure-Floats"
17319 \begin_inset LatexCommand ref
17320 reference "sec:Table-Floats"
17324 , respectively, LyX offers the float types
17337 \begin_layout Subsection
17339 \begin_inset LatexCommand index
17340 name "Floats ! Algorithm Floats"
17347 \begin_layout Standard
17348 \begin_inset Float algorithm
17354 \begin_layout Caption
17355 \begin_inset LatexCommand label
17356 name "alg:Example-Algorithm-float"
17360 Example Algorithm float
17363 \begin_layout LyX-Code
17366 Sum:= Sum + A(I); /*senseless comment*/
17369 \begin_inset VSpace -4mm
17380 \begin_layout Standard
17381 This float type is inserted with the menu
17383 Insert\SpecialChar \menuseparator
17384 Floats\SpecialChar \menuseparator
17388 It is used for program codes and descriptions of algorithms.
17389 A possible environment for algorithms is the
17393 , described in LyX's
17398 Algorithm\InsetSpace ~
17400 \begin_inset LatexCommand ref
17401 reference "alg:Example-Algorithm-float"
17405 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17406 mm vertical space was added
17407 at the end of the float to have the bottom rule exactly below the last
17411 \begin_layout Standard
17412 The float label is not automatically translated into the document language.
17413 If your document is not in English, you have to do this manually by adding
17418 to the document preamble
17423 \begin_layout Standard
17428 floatname{algorithm}{your\InsetSpace ~
17432 \begin_layout Standard
17439 \begin_inset Quotes eld
17447 \begin_inset Quotes erd
17453 \begin_layout Description
17458 When the LaTeX-package
17463 \begin_inset LatexCommand index
17464 name "LaTeX-packages ! hyperref"
17468 is used to link cross-references to floats in the PDF-output, it must be
17469 loaded in the document preamble before the definition of floats to be able
17470 to reference floats.
17471 As LyX sets the float definition for algorithm floats automatically before
17472 the user editable part of the document preamble, you need to insert the
17473 following preamble lines
17477 the loading command of
17484 \begin_inset VSpace defskip
17491 newfloat{Xalgorithm}{tbp}{loa}
17495 floatname{Xalgorithm}{your\InsetSpace ~
17508 renewenvironment{algorithm}[1][tbp]
17514 \begin_layout Standard
17525 begin{Xalgorithm}[#1]}{
17528 \begin_inset VSpace defskip
17541 \begin_inset Quotes eld
17549 \begin_inset Quotes erd
17555 \begin_layout Standard
17556 Algorithm floats are not by default numbered in the scheme
17557 \begin_inset Quotes eld
17561 \begin_inset Quotes erd
17564 like it is the case for table and figure floats in many document-classes.
17565 To number algorithm floats in the same scheme, add this command to your
17569 \begin_layout Standard
17574 numberwithin{algorithm}{chapter}
17577 \begin_layout Standard
17578 If you use the LaTeX-package
17582 , add this line instead
17590 (the commands from above) to the preamble:
17593 \begin_layout Standard
17598 numberwithin{Xalgorithm}{chapter}
17601 \begin_layout Standard
17602 To be able to use the command
17613 in the document settings the option
17623 \begin_layout Subsection
17625 \begin_inset LatexCommand index
17626 name "Floats ! Text Wrap Floats"
17631 \begin_inset LatexCommand label
17632 name "sub:floatflt-wrap-float"
17639 \begin_layout Standard
17640 This float type is used if you want to
17641 \begin_inset Quotes eld
17645 \begin_inset Quotes erd
17648 text around a figure so that it only occupies some fraction of the column
17650 It can be inserted using the menu
17651 \begin_inset Wrap figure
17656 \begin_layout Standard
17657 \begin_inset Graphics
17658 filename mobius.eps
17661 rotateOrigin center
17668 \begin_layout Caption
17669 \begin_inset LatexCommand label
17670 name "fig:This-is-a"
17674 This is a wrapped figure, and this is the brilliant caption that describes
17676 \begin_inset VSpace medskip
17686 Insert\SpecialChar \menuseparator
17687 Floats\SpecialChar \menuseparator
17692 if the LaTeX-package
17697 \begin_inset LatexCommand index
17698 name "LaTeX-packages ! floatflt"
17706 \begin_layout Standard
17707 Installing a LaTeX-package is explained it in the
17717 The width and placement of the float is adjusted by right-clicking on the
17719 Figure\InsetSpace ~
17721 \begin_inset LatexCommand ref
17722 reference "fig:This-is-a"
17726 is an example text wrap float with a width of 40
17727 \begin_inset Formula $\,$
17734 \begin_layout Standard
17735 Available units are explained in
17736 \begin_inset LatexCommand ref
17737 reference "cha:Units-available-in"
17746 Some space was added under the caption to separate it better from the surroundi
17750 \begin_layout Standard
17755 also supports table wrap floats, but they are not yet supported by LyX.
17756 If you need this, read the documentation of
17761 \begin_inset LatexCommand cite
17769 \begin_layout Standard
17770 \begin_inset Note Greyedout
17773 \begin_layout Standard
17779 wrap float floats are fragile! E.\InsetSpace \thinspace{}
17781 having a figure too close to the bottom
17782 of the page can mess things up in the way that the float doesn't appear
17783 in the output or that it is placed over some other text.
17787 \begin_layout Standard
17788 The better solution is to use the LaTeX-package
17790 wrapf\SpecialChar \textcompwordmark{}
17794 \begin_inset LatexCommand index
17795 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
17801 floatf\SpecialChar \textcompwordmark{}
17804 , but it is currently not supported by LyX.
17817 \begin_layout Standard
17821 \begin_layout Itemize
17822 Wrap floats should not be placed in paragraphs that run over a page break.
17823 That means that wrap floats should better be inserted to the exact place
17824 when the document is nearly ready and you are able to estimate where page
17825 breaks will appear.
17828 \begin_layout Itemize
17829 Wrap floats should either be placed in an own paragraph before the paragraph
17830 where they should wrap into or within a paragraph.
17833 \begin_layout Itemize
17834 Wrap floats in consecutive paragraphs may cause troubles, so assure that
17835 there is a text paragraph between them as separator.
17838 \begin_layout Itemize
17839 Wrap floats are not allowed in section headings or tables.
17842 \begin_layout Section
17844 \begin_inset LatexCommand label
17845 name "sec:Referencing-Floats"
17850 \begin_inset LatexCommand index
17851 name "Floats ! References"
17856 \begin_inset LatexCommand index
17864 \begin_layout Standard
17865 To reference a float, insert a label into its caption using the menu
17867 Insert\SpecialChar \menuseparator
17870 or the toolbar button
17871 \begin_inset Graphics
17872 filename ../images/label-insert.xpm
17878 A grey label box like this one:
17879 \begin_inset Graphics
17880 filename ../clipart/labelQt4.png
17885 will be inserted and the label window pops up asking for the label text.
17886 LyX offers as text the first words of the caption with a prefix.
17887 The prefix depends on the float type, e.\InsetSpace \thinspace{}
17889 for figure floats the prefix will
17897 \begin_layout Standard
17898 The label is used as anchor and name for the reference.
17899 You can refer to the label using the menu
17901 Insert\SpecialChar \menuseparator
17904 or the toolbar button
17905 \begin_inset Graphics
17906 filename ../images/dialog-show-new-inset_ref.xpm
17912 A grey cross-reference box like this one:
17913 \begin_inset Graphics
17914 filename ../clipart/referenceQt4.png
17919 will be inserted and the cross-reference window appear showing all labels
17921 If you have multiple LyX-documents opened, choose the one you are working
17922 on from the drop-list at the top of the dialog.
17923 You can now sort the labels alphabetically and then choose one.
17924 At the position of the cross-reference box the float number will appear
17928 \begin_layout Standard
17929 It is recommended to use a protected space between the cross-reference name
17930 and its number to avoid line breaks between them.
17931 If a cross-reference refers to a non-existing label, you will see two question
17932 marks in the output instead of the reference.
17935 \begin_layout Standard
17936 You can change labels at any time by clicking on the label box.
17937 References to the changed label will automatically change its link to the
17938 new label text, so that you don't need to take care about this.
17941 \begin_layout Standard
17948 in the cross-reference window sets the cursor before the referred label.
17949 The button text changes then to Go\InsetSpace ~
17950 Back and you can use it to set the cursor
17951 back to the cross-reference.
17952 Right-clicking on a cross-reference box also sets the cursor before the
17953 referenced label but without a possibility to go back.
17956 \begin_layout Subsection
17957 Cross-reference formats
17958 \begin_inset LatexCommand label
17959 name "sub:Cross-reference-formats"
17964 \begin_inset LatexCommand index
17965 name "References ! Formats"
17972 \begin_layout Standard
17973 There are six varieties of cross-references:
17976 \begin_layout Description
17977 <reference>: prints the float number, this is the default:
17978 \begin_inset LatexCommand ref
17979 reference "fig:Two-distorted-images"
17986 \begin_layout Description
17987 (<reference>): prints the float number within two parentheses, this is the
17988 style normally used to reference formulas, especially when the reference
17990 \begin_inset Quotes eld
17994 \begin_inset Quotes erd
17998 \begin_inset LatexCommand eqref
18006 \begin_layout Description
18007 <page>: prints the page number: Page\InsetSpace ~
18009 \begin_inset LatexCommand pageref
18010 reference "fig:Two-distorted-images"
18017 \begin_layout Description
18020 <page>: prints the text "on page" and the page number:
18021 \begin_inset LatexCommand vpageref
18022 reference "fig:Two-distorted-images"
18029 \begin_layout Description
18030 <reference>\InsetSpace ~
18033 <page>: prints the float number, the text "on page", and
18035 \begin_inset LatexCommand vref
18036 reference "fig:Two-distorted-images"
18043 \begin_layout Description
18044 Formatted\InsetSpace ~
18045 reference: prints a self defined cross-reference format:
18048 \begin_inset LatexCommand prettyref
18049 reference "fig:Two-distorted-images"
18056 \begin_layout Standard
18057 Note that the style <page> won't print the page number if the label is on
18058 the previous, the same, or the next page.
18059 You will e.\InsetSpace \thinspace{}
18062 \begin_inset Quotes eld
18070 \begin_inset Quotes erd
18076 \begin_layout Standard
18077 The number and current page of the referred document part in the output,
18078 is automatically calculated by LaTeX.
18079 The varieties are adjusted in the field
18083 of the cross-reference window, that appear when you click on the cross-referenc
18085 \begin_inset VSpace bigskip
18091 \begin_layout Standard
18092 To define a format for the
18094 Formatted\InsetSpace ~
18097 style, you have to use the following command in the document preamble:
18100 \begin_layout Standard
18105 newrefformat{prefix}{text}
18108 \begin_layout Standard
18109 This formatting command affects all references to labels with the same prefix.
18110 To get the format of the
18112 Formatted\InsetSpace ~
18115 example above, this command was used:
18118 \begin_layout Standard
18129 \begin_layout Standard
18140 ref{#1} printed on page~
18145 \begin_layout Standard
18146 The tilde "~" is the LaTeX equivalent for the protected space.
18153 refers to the float number, the command
18159 to the page number.
18162 \begin_layout Subsection
18163 Automatic Reference Naming
18164 \begin_inset LatexCommand index
18165 name "References ! Automatic Reference Naming"
18172 \begin_layout Standard
18177 provides a very useful feature that cross-references automatically include
18178 the name of the referenced floats (or text parts like sections).
18179 You save to write e.\InsetSpace \thinspace{}
18182 \begin_inset Quotes eld
18186 \begin_inset Quotes erd
18189 before every reference box.
18190 To get this automatic reference naming, you have to load the LaTeX-package
18196 \begin_inset LatexCommand index
18197 name "LaTeX-packages ! hyperref"
18201 in the document preamble with
18204 \begin_layout Standard
18209 usepackage[pdfborder={0 0 0}]{hyperref}
18224 \begin_layout Standard
18229 is used to link cross-references in the DVI- and PDF-output, this means
18230 that the reader of your document will be able to click on a table of content
18231 (TOC) entry or on a reference and he will be shown the referenced document
18237 also creates PDF-bookmarks for every section of your document to make it
18238 easier for readers to navigate through the document.
18239 This is also used in this document but when you have a look in the document
18240 preamble you will find various options in the load command of
18245 To learn more about the
18249 package, we refer to its documentation
18250 \begin_inset LatexCommand cite
18258 \begin_layout Standard
18259 \begin_inset Note Greyedout
18262 \begin_layout Standard
18267 Automatic reference naming cannot be used when you use cross-references
18270 Formatted\InsetSpace ~
18273 style, described in section\InsetSpace ~
18275 \begin_inset LatexCommand ref
18276 reference "sub:Cross-reference-formats"
18281 That is the reason why it is not used in this document.
18289 \begin_layout Subsection
18291 \begin_inset LatexCommand label
18292 name "sub:Reference-Position"
18297 \begin_inset LatexCommand index
18298 name "References ! Reference Position"
18305 \begin_layout Standard
18311 \begin_inset LatexCommand index
18312 name "LaTeX-packages ! hyperref"
18316 to link cross-references in the output, you will see that clicking on an
18317 image float reference jumps to the image label.
18318 The caption will be the first text part on the screen, so that you cannot
18319 see the image without scrolling.
18320 This is because the reference link anchor is placed at the position of
18322 With the use of the package
18327 \begin_inset LatexCommand index
18328 name "LaTeX-packages ! hypcap"
18332 , which is part of the LaTeX-package
18337 \begin_inset LatexCommand index
18338 name "LaTeX-packages ! oberdiek"
18342 , the link anchor is placed at the beginning of a float.
18343 To use this feature for figure floats, load
18347 in the document preamble with the line
18350 \begin_layout Standard
18355 usepackage[f\SpecialChar \textcompwordmark{}
18359 \begin_layout Standard
18364 for all floats but this isn't recommended for stability reasons.
18365 For more informations, have a look at
18370 \begin_inset LatexCommand cite
18378 \begin_layout Standard
18379 \begin_inset Note Greyedout
18382 \begin_layout Standard
18391 must be loaded after
18395 in the document preamble.
18403 \begin_layout Section
18405 \begin_inset LatexCommand label
18406 name "sec:Float-Placement"
18411 \begin_inset LatexCommand index
18412 name "Floats ! Placement"
18419 \begin_layout Standard
18420 Right-clicking on a float-box opens a dialog where you can alter the placement
18421 options that LaTeX uses for positioning the float.
18428 is only useful for two-column documents: If you select it, the float will
18429 span across both columns on the page instead of being confined to just
18434 Rotate\InsetSpace ~
18437 is used to rotate floats, see section
18438 \begin_inset LatexCommand ref
18439 reference "sec:Rotated-Floats"
18446 \begin_layout Standard
18447 You can use one ore more of the following options in the float dialog to
18448 set the placement for a particular float when you uncheck the option
18451 default\InsetSpace ~
18457 \begin_layout Description
18460 possible: try to place the float on the position where it is inserted
18463 \begin_layout Description
18466 page: try to place the float on the top of the current page
18469 \begin_layout Description
18470 Bottom\InsetSpace ~
18472 page: try to place the float on the bottom of the current page
18475 \begin_layout Description
18478 floats: try to place the float on an own page
18481 \begin_layout Standard
18482 The order of the above option is
18487 That means, if you use the default placement, LaTeX will first try out
18500 , and then the others.
18501 If you don't use the default, LaTeX will try only the checked options but
18503 If none of the 4 placements are possible the procedure is internally repeated
18504 but it is tried to put the float on the following page.
18507 \begin_layout Standard
18508 By default, each options has its own rules:
18511 \begin_layout Labeling
18512 \labelwidthstring 00.00.0000
18519 only floats occupying less than 70\InsetSpace \thinspace{}
18520 % of the page can be placed at the top
18530 \begin_layout Labeling
18531 \labelwidthstring 00.00.0000
18534 Bottom\InsetSpace ~
18538 : only floats occupying less than 30\InsetSpace \thinspace{}
18539 % of the page can be placed at the bottom
18550 \begin_layout Labeling
18551 \labelwidthstring 00.00.0000
18558 : only if more than 50\InsetSpace \thinspace{}
18559 % of the page are occupied by floats, several floats
18560 can be set together on a page.
18570 \begin_layout Standard
18571 If you don't like these rules, you can ignore them by using the additional
18574 Ignore\InsetSpace ~
18580 You can also redefine the rules with LaTeX-commands that are given in parenthese
18581 s behind the rules description above.
18582 To increase for example the often too small default of the bottom-rule
18583 to 50\InsetSpace \thinspace{}
18584 % of the page, add this line to your document preamble:
18587 \begin_layout Standard
18594 bottomfraction}{0.5}
18597 \begin_layout Standard
18598 Sometimes you might need, under all circumstances, a float to be placed
18599 exactly at the position where it is inserted.
18600 For this case you can use the option
18606 Use this option very rarely and only if the document is nearly ready to
18608 Because the float is then no longer able to
18609 \begin_inset Quotes eld
18613 \begin_inset Quotes erd
18616 when you change your document and this will often destroy the page layout.
18619 \begin_layout Standard
18620 There are no placement options for text wrap floats, because they are always
18621 surrounded by the text of a certain paragraph.
18622 \begin_inset VSpace bigskip
18628 \begin_layout Standard
18629 Sometimes you have the problem that a float is placed at the top of a page
18630 while its corresponding section starts at the middle of the page, so that
18631 the reader could think the float is part of the previous section.
18632 To avoid this the LaTeX-command
18636 suppressf\SpecialChar \textcompwordmark{}
18640 It suppresses a given float placement for the page where it is inserted
18641 and can therefore be used to avoid that floats could be set before a section
18643 To get this, add these commands to your document preamble:
18646 \begin_layout Standard
18663 suppressf\SpecialChar \textcompwordmark{}
18669 \begin_layout Standard
18670 You can define the same for all section headings, like chapters and subsections.
18671 This definition is not recommended to be used for small text parts like
18672 subsubsections because LaTeX may then have problems to find a suitable
18676 \begin_layout Standard
18677 \begin_inset VSpace bigskip
18680 In some cases it is required to have all figures/tables at the end of the
18682 For this purpose the LaTeX-package
18684 endf\SpecialChar \textcompwordmark{}
18688 \begin_inset LatexCommand index
18689 name "LaTeX-packages ! endfloat"
18694 It puts all figure and table floats at the end of the document into own
18696 At the original float position a text hint like
18697 \begin_inset Quotes eld
18702 [Figure\InsetSpace ~
18706 \begin_inset Quotes erd
18710 The endfloat-package is loaded in the preamble with the line
18713 \begin_layout Standard
18718 usepackage[options]{endf\SpecialChar \textcompwordmark{}
18722 \begin_layout Standard
18723 There are various package options to format the created figure/table sections.
18724 For more information we refer to the
18726 endf\SpecialChar \textcompwordmark{}
18730 \begin_inset LatexCommand cite
18738 \begin_inset Note Greyedout
18741 \begin_layout Standard
18744 Note: endf\SpecialChar \textcompwordmark{}
18747 doesn't provide an automatic translation for the text hint, you have to
18748 do this manually, see section\InsetSpace ~
18750 \begin_inset LatexCommand cite
18763 \begin_inset Note Greyedout
18766 \begin_layout Standard
18771 There is currently a bug in
18773 endf\SpecialChar \textcompwordmark{}
18776 when the caption contains a German
18777 \begin_inset Quotes eld
18781 \begin_inset Quotes erd
18785 Use in this case the command
18786 \begin_inset Quotes eld
18796 \begin_inset Quotes erd
18800 \begin_inset Quotes eld
18804 \begin_inset Quotes erd
18815 \begin_layout Standard
18816 \begin_inset VSpace bigskip
18819 For more details about float placements, have a look at LaTeX books,
18820 \begin_inset LatexCommand cite
18821 key "latexcompanion,latexguide,latexbook"
18828 \begin_layout Section
18830 \begin_inset LatexCommand label
18831 name "sec:Rotated-Floats"
18836 \begin_inset LatexCommand index
18837 name "Floats ! Rotating"
18844 \begin_layout Standard
18845 Especially for wide tables you might have floats rotated.
18846 To rotate a whole float including the caption, right-click on the float-box
18849 Rotate\InsetSpace ~
18855 \begin_layout Standard
18856 Rotated floats are always placed on its own page (or column, when you have
18857 a two-column document).
18858 They are normally rotated so that you can read them from the outside margin
18859 -- to the left on even pages, to the right on odd pages.
18862 \begin_layout Standard
18863 Referencing rotated floats is the same like for normal floats, the caption
18864 format is also the same: Table\InsetSpace ~
18866 \begin_inset LatexCommand ref
18867 reference "tab:Rotated-table"
18871 is an example of a rotated table float.
18874 \begin_layout Standard
18875 \begin_inset Note Greyedout
18878 \begin_layout Standard
18883 Not all DVI-viewers are able to display rotated floats.
18891 \begin_layout Standard
18892 \begin_inset Float table
18897 \begin_layout Caption
18898 \begin_inset LatexCommand label
18899 name "tab:Rotated-table"
18906 \begin_layout Standard
18908 \begin_inset Tabular
18909 <lyxtabular version="3" rows="1" columns="5">
18911 <column alignment="center" valignment="top" leftline="true" width="0">
18912 <column alignment="center" valignment="top" leftline="true" width="0">
18913 <column alignment="center" valignment="top" leftline="true" width="0">
18914 <column alignment="center" valignment="top" leftline="true" width="0">
18915 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
18916 <row topline="true" bottomline="true">
18917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18920 \begin_layout Standard
18926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18929 \begin_layout Standard
18935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18938 \begin_layout Standard
18944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18947 \begin_layout Standard
18953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18956 \begin_layout Standard
18975 \begin_layout Section
18977 \begin_inset LatexCommand index
18978 name "Caption ! Formatting"
18983 \begin_inset LatexCommand index
18984 name "Floats ! Caption Formatting"
18989 \begin_inset LatexCommand index
18990 name "LaTeX-packages ! caption"
18995 \begin_inset LatexCommand label
18996 name "sec:Caption-Formatting"
19003 \begin_layout Standard
19008 environment is the default paragraph environment for
19013 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19016 \begin_inset Quotes eld
19024 \begin_inset Quotes erd
19027 followed by the caption text.
19029 \begin_inset Quotes eld
19033 \begin_inset Quotes erd
19036 is substituted in the printed output by the actual reference number.
19037 By default the label and the number are in the same font as the caption
19038 text and a colon follows the number to divide then label from the text.
19039 This caption format is not suitable for all document formats.
19043 \begin_layout Standard
19044 To change the default caption format, load the LaTeX-package
19049 \begin_inset LatexCommand index
19050 name "LaTeX-packages ! caption"
19054 in the document preamble with this line:
19057 \begin_layout Standard
19062 usepackage[format definition]{caption}
19065 \begin_layout Standard
19066 To have for example the label and the number in sans-serif bold font and
19067 the table captions always above the table like in this document, use the
19071 \begin_layout Standard
19076 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19079 \begin_layout Standard
19080 You can also define different caption formats for the different float types.
19081 In this case load the
19085 package without format specific options and define the different formats
19086 with the help of the command
19089 \begin_layout Standard
19094 captionsetup[float type]{format definition}
19097 \begin_layout Standard
19098 in the document preamble.
19099 For example the caption formats of Figure\InsetSpace ~
19101 \begin_inset LatexCommand ref
19102 reference "fig:This-is-an-fig"
19106 and Table\InsetSpace ~
19108 \begin_inset LatexCommand ref
19109 reference "tab:This-is-an-tab"
19113 can be created using these commands in the document preamble:
19116 \begin_layout Standard
19121 usepackage[tableposition=top]{caption}
19129 captionsetup[f\SpecialChar \textcompwordmark{}
19130 igure]{labelfont={tt}, textfont=it, indention=1cm,%
19136 \begin_layout Standard
19144 captionsetup[figure]
19155 captionsetup[table]{labelfont={bf,sf}}
19158 \begin_layout Standard
19159 For more information about the package
19163 we refer to its documentation
19164 \begin_inset LatexCommand cite
19165 key "caption,caption-de"
19172 \begin_layout Standard
19173 \begin_inset VSpace bigskip
19181 \begin_inset LatexCommand index
19182 name "LaTeX-packages ! koma-script"
19188 article (koma-script)
19196 letter (koma-script)
19200 report (koma-script)
19202 \InsetSpace \thinspace{}
19203 ), you can alternatively to the
19211 's built-in command
19218 For example, to have the caption label in bold, add this command to your
19222 \begin_layout Standard
19227 setkomafont{captionlabel}{
19232 \begin_layout Standard
19233 For more information about
19244 \begin_inset LatexCommand cite
19245 key "koma-script,koma-script-de"
19252 \begin_layout Standard
19256 \begin_layout Standard
19260 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19267 \begin_inset Note Note
19270 \begin_layout Standard
19271 The caption format is changed only for this example.
19279 \begin_layout Standard
19280 \begin_inset Float figure
19286 \begin_layout Standard
19288 \begin_inset Graphics
19289 filename mobius.eps
19298 \begin_layout Caption
19299 \begin_inset LatexCommand label
19300 name "fig:This-is-an-fig"
19304 This is an example figure caption that is longer than one line to show the
19305 different caption format.
19306 Here a self-defined caption format is used.
19314 \begin_layout Standard
19318 \begin_layout Standard
19322 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19331 \begin_layout Standard
19332 \begin_inset Float table
19338 \begin_layout Caption
19339 \begin_inset LatexCommand label
19340 name "tab:This-is-an-tab"
19344 This is an example table caption that is longer than one line to show the
19345 different caption format.
19346 Here the standard caption format for tables in this document is used.
19349 \begin_layout Standard
19351 \begin_inset Tabular
19352 <lyxtabular version="3" rows="1" columns="5">
19354 <column alignment="center" valignment="top" leftline="true" width="0">
19355 <column alignment="center" valignment="top" leftline="true" width="0">
19356 <column alignment="center" valignment="top" leftline="true" width="0">
19357 <column alignment="center" valignment="top" leftline="true" width="0">
19358 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19359 <row topline="true" bottomline="true">
19360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19363 \begin_layout Standard
19369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19372 \begin_layout Standard
19378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19381 \begin_layout Standard
19387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19390 \begin_layout Standard
19396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19399 \begin_layout Standard
19418 \begin_layout Section
19420 \begin_inset LatexCommand index
19421 name "Caption ! Placement"
19426 \begin_inset LatexCommand index
19427 name "Floats ! Caption Placement"
19432 \begin_inset LatexCommand label
19433 name "sec:Caption-Placement"
19440 \begin_layout Standard
19441 The common caption placement rule is:
19444 \begin_layout Description
19445 Figure: Caption is set below the figure
19448 \begin_layout Description
19449 Table: Caption is set above the table
19452 \begin_layout Standard
19453 Having the caption above the table is unfortunately not supported in LaTeX's
19455 That means if you are using the document classes
19471 there will be no space between the caption and the table.
19472 To insert the needed space, add the following option to the load command
19473 of the LaTeX-package
19477 in your document preamble
19481 \begin_layout Standard
19482 See section\InsetSpace ~
19484 \begin_inset LatexCommand ref
19485 reference "sec:Caption-Formatting"
19489 for more information of the package
19501 \begin_layout Standard
19507 \begin_layout Standard
19513 \begin_inset LatexCommand index
19514 name "LaTeX-packages ! koma-script"
19520 article (koma-script)
19528 letter (koma-script)
19532 report (koma-script)
19534 \InsetSpace \thinspace{}
19535 ), you can alternatively to the
19539 package set the document class option
19543 , or you can use the environment
19545 caption\InsetSpace ~
19555 \begin_layout Standard
19556 \begin_inset VSpace bigskip
19559 It is also possible to set the caption beside a figure or table.
19560 To get this the LaTeX-package
19565 \begin_inset LatexCommand index
19566 name "LaTeX-packages ! sidecap"
19570 has to be loaded in the document preamble with the line
19573 \begin_layout Standard
19578 usepackage[option]{sidecap}
19581 \begin_layout Standard
19582 If you set no option, the caption is placed on the side of the outer page
19583 margin -- to the right on odd pages, to the left on even pages.
19584 You can change the placement to inner margin with the option
19589 To force the placement always to the right or left, use the option
19600 \begin_layout Standard
19601 To place in LyX the caption of a float on the side, it is necessary to add
19602 these commands to the document preamble:
19605 \begin_layout Standard
19611 \begin_layout Standard
19624 \begin_layout Standard
19645 \begin_layout Standard
19666 \begin_layout Standard
19677 renewenvironment{table}{
19684 \begin_layout Standard
19697 \begin_layout Standard
19718 \begin_layout Standard
19736 \begin_layout Standard
19749 \begin_layout Standard
19764 f\SpecialChar \textcompwordmark{}
19771 \begin_layout Standard
19784 MyEndf\SpecialChar \textcompwordmark{}
19787 endf\SpecialChar \textcompwordmark{}
19794 \begin_layout Standard
19805 renewenvironment{f\SpecialChar \textcompwordmark{}
19808 begin{SCf\SpecialChar \textcompwordmark{}
19811 end{SCf\SpecialChar \textcompwordmark{}
19815 \begin_layout Standard
19828 \begin_layout Standard
19841 f\SpecialChar \textcompwordmark{}
19850 \begin_layout Standard
19863 endf\SpecialChar \textcompwordmark{}
19866 MyEndf\SpecialChar \textcompwordmark{}
19870 \begin_layout Standard
19876 \begin_layout Standard
19877 The commands allow you to redefine the floats so that the caption is set
19879 For figure floats use the command
19882 \begin_layout Standard
19890 \begin_layout Standard
19891 in ERT before the float.
19892 Behind the float insert the command
19895 \begin_layout Standard
19903 \begin_layout Standard
19904 in ERT to get back to the original float definition.
19907 \begin_layout Standard
19908 For table floats use the corresponding commands
19911 \begin_layout Standard
19925 \begin_layout Standard
19926 Figure\InsetSpace ~
19928 \begin_inset LatexCommand ref
19929 reference "fig:cap-beside-fig"
19933 and Table\InsetSpace ~
19935 \begin_inset LatexCommand ref
19936 reference "tab:cap-beside-tab"
19940 are examples where the caption is set beside.
19943 \begin_layout Standard
19944 You can see in the examples that the caption text appears at the top of
19945 the floats for table floats and at the bottom for figure floats.
19946 To change this, you can use the command
19949 \begin_layout Standard
19954 sidecaptionvpos{float type}{placement}
19957 \begin_layout Standard
19958 in the document preamble or in ERT before the float.
19959 The float type is either
19967 , the placement can be
19968 \begin_inset Quotes eld
19976 \begin_inset Quotes erd
19980 \begin_inset Quotes eld
19988 \begin_inset Quotes erd
19992 \begin_inset Quotes eld
20000 \begin_inset Quotes erd
20004 To have for example the caption of figure floats vertically centered, use
20008 \begin_layout Standard
20013 sidecaptionvpos{f\SpecialChar \textcompwordmark{}
20017 \begin_layout Standard
20018 This was used for Figure\InsetSpace ~
20020 \begin_inset LatexCommand ref
20021 reference "fig:cap-beside-fig-2"
20028 \begin_layout Standard
20029 \begin_inset VSpace defskip
20032 For more information about the package
20036 we refer to its documentation
20037 \begin_inset LatexCommand cite
20045 \begin_layout Standard
20046 \begin_inset Note Greyedout
20049 \begin_layout Standard
20059 \begin_inset LatexCommand index
20060 name "LaTeX-packages ! hypcap"
20064 , described in section\InsetSpace ~
20066 \begin_inset LatexCommand ref
20067 reference "sub:Reference-Position"
20071 , has no effect on floats with the caption set beside.
20079 \begin_layout Standard
20083 \begin_layout Standard
20095 \begin_layout Standard
20096 \begin_inset Float figure
20101 \begin_layout Standard
20102 \begin_inset Graphics
20103 filename escher-lsd.eps
20111 \begin_layout Caption
20112 \begin_inset LatexCommand label
20113 name "fig:cap-beside-fig"
20117 This is a caption beside a figure.
20125 \begin_layout Standard
20129 \begin_layout Standard
20141 \begin_layout Standard
20142 \begin_inset Float table
20147 \begin_layout Caption
20148 \begin_inset LatexCommand label
20149 name "tab:cap-beside-tab"
20153 This is a caption beside a table.
20156 \begin_layout Standard
20157 \begin_inset Tabular
20158 <lyxtabular version="3" rows="4" columns="5">
20160 <column alignment="center" valignment="top" leftline="true" width="0">
20161 <column alignment="center" valignment="top" leftline="true" width="0">
20162 <column alignment="center" valignment="top" leftline="true" width="0">
20163 <column alignment="center" valignment="top" leftline="true" width="0">
20164 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20165 <row topline="true">
20166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20169 \begin_layout Standard
20175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20178 \begin_layout Standard
20184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20187 \begin_layout Standard
20193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20196 \begin_layout Standard
20202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20205 \begin_layout Standard
20212 <row topline="true">
20213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20216 \begin_layout Standard
20222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20225 \begin_layout Standard
20231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20234 \begin_layout Standard
20240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20243 \begin_layout Standard
20249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20252 \begin_layout Standard
20259 <row topline="true">
20260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20263 \begin_layout Standard
20269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20272 \begin_layout Standard
20278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20281 \begin_layout Standard
20287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20290 \begin_layout Standard
20296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20299 \begin_layout Standard
20306 <row topline="true" bottomline="true">
20307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20310 \begin_layout Standard
20316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20319 \begin_layout Standard
20325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20328 \begin_layout Standard
20334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20337 \begin_layout Standard
20343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20346 \begin_layout Standard
20365 \begin_layout Standard
20369 \begin_layout Standard
20381 \begin_layout Standard
20385 \begin_layout Standard
20389 sidecaptionvpos{figure}{c}
20395 \begin_inset Float figure
20400 \begin_layout Standard
20401 \begin_inset Graphics
20402 filename escher-lsd.eps
20410 \begin_layout Caption
20411 \begin_inset LatexCommand label
20412 name "fig:cap-beside-fig-2"
20416 This is a vertically centered caption beside a figure.
20424 \begin_layout Standard
20428 \begin_layout Standard
20440 \begin_layout Section
20442 \begin_inset LatexCommand label
20443 name "sec:Listings-of-Floats"
20448 \begin_inset LatexCommand index
20449 name "Floats ! Listings"
20456 \begin_layout Standard
20457 Similar to the the table of contents where the sections of the document
20458 are listed, there are listings for all float types, like the figures of
20460 You can insert them via the
20462 Insert\SpecialChar \menuseparator
20470 \begin_layout Standard
20471 The list entries are the float captions or its short title, the float number,
20472 and the page number where they appear in the document.
20475 \begin_layout Standard
20476 You can find the list of figures and tables at the end of this document.
20479 \begin_layout Chapter
20483 \begin_layout Section
20487 \begin_layout Standard
20500 \begin_layout Standard
20508 \begin_inset LatexCommand label
20509 name "sec:LyX-Notes"
20514 \begin_inset LatexCommand index
20515 name "Notes ! LyX Notes"
20520 \begin_inset Note Note
20523 \begin_layout Standard
20526 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
20527 are displayed wrongly in PDF-bookmarks.
20528 For more information about this, have a look at
20529 \begin_inset LatexCommand cite
20542 \begin_layout Standard
20543 Notes are inserted with the toolbar button
20544 \begin_inset Graphics
20545 filename ../images/note-insert.xpm
20552 Insert\SpecialChar \menuseparator
20556 There are three types of notes:
20559 \begin_layout Description
20561 Note This note type is for internal notes that won't appear in the output.
20562 Its note-box looks like this:
20567 \begin_inset Graphics
20568 filename ../clipart/LyXNoteImageQt4.png
20575 \begin_inset Note Note
20578 \begin_layout Standard
20579 This is text in a note box that doesn't appear in the output.
20587 \begin_layout Description
20588 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
20589 ent, when you export the document to LaTeX via the menu
20591 File\SpecialChar \menuseparator
20592 Export\SpecialChar \menuseparator
20593 LaTeX (pdflatex) / LaTeX (plain)
20596 Its note-box looks like this:
20601 \begin_inset Graphics
20602 filename ../clipart/CommentNoteImageQt4.png
20609 \begin_inset Note Comment
20612 \begin_layout Standard
20613 This is text in a note box that only appears as comment in LaTeX-files.
20621 \begin_layout Description
20622 Greyed\InsetSpace ~
20623 Out This note will appear in the output as grey text.
20624 Its note-box looks like this:
20629 \begin_inset Graphics
20630 filename ../clipart/GreyedOutNoteImageQt4.png
20642 \begin_layout Standard
20646 renewenvironment{lyxgreyedout}
20649 \begin_layout Standard
20653 textcolor[gray]{0.8}
20663 \begin_inset Note Greyedout
20666 \begin_layout Standard
20671 \begin_layout Standard
20672 This is an example footnote within a greyed out note.
20677 of a comment that appears in the output as grey text.
20686 \begin_layout Standard
20690 renewenvironment{lyxgreyedout}
20693 \begin_layout Standard
20707 \begin_inset Note Note
20710 \begin_layout Standard
20711 The greyed out note is here redefined to show it with the original LyX definitio
20712 n because greyed out notes are redefined in the preamble of this document,
20713 as described below, to have blue text.
20722 As you can see in the example, the first line of greyed out notes is a bit
20723 indented and greyed out notes can have footnotes.
20726 \begin_layout Description
20727 Framed This note will appear in the output as framed text.
20728 Its note-box looks like this:
20733 \begin_inset Graphics
20734 filename ../clipart/FramedNoteImageQt4.png
20741 \begin_inset Note Framed
20744 \begin_layout Standard
20745 This is text in a note box that appears framed in the output.
20750 In contrary to framed boxes
20754 \begin_layout Standard
20755 Framed boxes are described in section\InsetSpace ~
20757 \begin_inset LatexCommand ref
20758 reference "sec:Framed-Boxes"
20767 the frame uses always the whole text width and the note is set into its
20771 \begin_layout Description
20772 Shaded This note will appear in the output with red background color.
20773 Its note box looks like this:
20778 \begin_inset Graphics
20779 filename ../clipart/ShadedNoteImageQt4.png
20786 \begin_inset Note Shaded
20789 \begin_layout Standard
20790 This text in a note box appears in the output with red background.
20795 In contrary to colored boxes
20799 \begin_layout Standard
20800 Colored boxes are described in section\InsetSpace ~
20802 \begin_inset LatexCommand ref
20803 reference "sec:Colored-Boxes"
20812 the note uses always the whole text width and the note is set into its
20816 \begin_layout Standard
20817 \begin_inset VSpace bigskip
20820 When you use the toolbar button to insert notes, a
20826 You can switch between the three note types by right-clicking on the note-box.
20831 If you want to turn existing text into a note, mark it and click on the
20847 \begin_layout Standard
20848 \begin_inset VSpace bigskip
20851 You can change the text color of the greyed out notes in the preamble with
20852 the following command:
20855 \begin_layout Standard
20860 renewenvironment{lyxgreyedout}
20866 \begin_layout Standard
20884 \begin_layout Standard
20885 The available colors and the method to define own colors is explained in
20886 section\InsetSpace ~
20888 \begin_inset LatexCommand ref
20889 reference "sec:Colored-Tables"
20896 \begin_layout Standard
20897 Notes that appear in blue in this document are set using greyed out notes
20901 \begin_layout Standard
20902 \begin_inset VSpace bigskip
20908 \begin_layout Standard
20917 notes can be set in the
20924 \begin_layout Standard
20925 The default frame width for
20929 notes is 0.4\InsetSpace \thinspace{}
20930 pt; it can be changed by changing the size
20937 The default space between the note content and the frame is 9\InsetSpace \thinspace{}
20939 be changed by changing the size
20946 For example the frame appearance of the following
20950 note is set with the ERT commands
20953 \begin_layout Standard
20963 \begin_layout Standard
20967 \begin_layout Standard
20979 \begin_inset Note Framed
20982 \begin_layout Standard
20996 \begin_layout Standard
21010 \begin_layout Standard
21011 \begin_inset VSpace bigskip
21017 \begin_layout Standard
21022 notes the default space between the note content and the note border is
21023 3\InsetSpace \thinspace{}
21024 pt; it can be changed by changing the size
21032 The default background color red can be changed with the command
21036 def\SpecialChar \textcompwordmark{}
21044 def\SpecialChar \textcompwordmark{}
21047 command is explained in section\InsetSpace ~
21049 \begin_inset LatexCommand ref
21050 reference "sec:Colored-Tables"
21058 \begin_layout Standard
21065 \SpecialChar \textcompwordmark{}
21070 requires the LaTeX-package
21074 in the preamble, see section\InsetSpace ~
21076 \begin_inset LatexCommand ref
21077 reference "sec:Colored-Boxes"
21089 \begin_layout Standard
21090 For example the appearance of the following
21094 note is set with the ERT commands
21097 \begin_layout Standard
21110 def\SpecialChar \textcompwordmark{}
21111 inecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21114 \begin_layout Standard
21118 \begin_layout Standard
21131 \begin_layout Standard
21135 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
21141 \begin_inset Note Shaded
21144 \begin_layout Standard
21147 This is yellow text in a
21151 note with darkgreen background.
21160 \begin_layout Standard
21173 \begin_layout Standard
21177 definecolor{shadecolor}{rgb}{1,0,0}
21185 \begin_layout Section
21187 \begin_inset LatexCommand label
21188 name "sec:Footnotes"
21193 \begin_inset LatexCommand index
21194 name "Notes ! Footnotes"
21199 \begin_inset LatexCommand index
21207 \begin_layout Standard
21208 Footnotes can be inserted using the toolbar button
21209 \begin_inset Graphics
21210 filename ../images/footnote-insert.xpm
21217 Insert\SpecialChar \menuseparator
21229 then the following footnote-box:
21230 \begin_inset Graphics
21231 filename ../clipart/footnoteQt4.png
21240 where you can enter the footnote text.
21241 If you want to turn existing text into a footnote, mark it and click on
21257 \begin_layout Standard
21258 Here is an example footnote:
21266 \begin_layout Standard
21267 \begin_inset LatexCommand label
21268 name "foot:This-is-an"
21272 This is an example footnote.
21285 \begin_layout Standard
21289 newcounter{MyRepeatFoot}
21292 \begin_layout Standard
21296 setcounter{MyRepeatFoot}{
21306 \begin_layout Standard
21307 The footnote will appear in the output as a superscript number at the text
21308 position where the footnote box is placed.
21309 The footnote text is placed at the bottom of the current page.
21310 The footnote number is calculated by LaTeX, the numbers are consecutive.
21311 It depends on your document-class, if the footnote number is reset for
21315 \begin_layout Standard
21316 Footnotes can be referenced like floats: Insert a label into the footnote
21317 and cross-reference this label in the text as described in section\InsetSpace ~
21319 \begin_inset LatexCommand ref
21320 reference "sec:Referencing-Floats"
21326 This is a cross-reference of Footnote\InsetSpace ~
21328 \begin_inset LatexCommand prettyref
21329 reference "foot:This-is-an"
21336 \begin_inset Note Greyedout
21339 \begin_layout Standard
21344 LyX doesn't provide a prefix for labels in footnotes, so you have to insert
21345 e.\InsetSpace \thinspace{}
21350 \begin_inset Quotes eld
21356 \begin_inset Quotes erd
21359 manually when you want to use the reference style
21361 Formatted\InsetSpace ~
21372 \begin_layout Standard
21373 \begin_inset VSpace defskip
21376 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
21378 \begin_inset LatexCommand ref
21379 reference "sec:Minipages"
21384 Footnotes within longtables are described in section\InsetSpace ~
21386 \begin_inset LatexCommand ref
21387 reference "sub:Footnotes-in-Longtables"
21394 \begin_layout Standard
21395 \begin_inset VSpace defskip
21398 To create only a mark for a footnote, use the command
21402 footnotemark[number]
21405 This is used when you have the same annotation several times in a text
21406 but doesn't want to print the footnote text every time.
21409 the number of the repeating footnote while you are writing the text, you
21410 have to store its number.
21411 For the following footnote mark example, these commands were inserted in
21412 ERT behind Footnote\InsetSpace ~
21414 \begin_inset LatexCommand ref
21415 reference "foot:This-is-an"
21419 to store the footnote number:
21422 \begin_layout Standard
21427 newcounter{MyRepeatFoot}
21431 setcounter{MyRepeatFoot}{
21436 \begin_layout Standard
21437 The footnote mark was then created with this command:
21440 \begin_layout Standard
21450 \begin_layout Standard
21451 Here is an example footnote mark:
21459 \begin_layout Standard
21473 \begin_layout Subsection
21475 \begin_inset LatexCommand label
21476 name "sub:Footnote-Numbering"
21481 \begin_inset LatexCommand index
21482 name "Footnotes ! Numbering"
21489 \begin_layout Standard
21490 If you want to have footnotes numbered in the scheme
21491 \begin_inset Quotes eld
21495 \begin_inset Quotes erd
21498 , add the following command to your document preamble:
21501 \begin_layout Standard
21506 numberwithin{footnote}{chapter}
21509 \begin_layout Standard
21510 To be able to use the command
21521 in the document settings the option
21531 \begin_layout Standard
21535 \begin_layout Standard
21539 numberwithin{footnote}{chapter}
21544 This is another example footnote:
21550 \begin_layout Standard
21551 This is a footnote numbered in the scheme
21552 \begin_inset Quotes eld
21556 \begin_inset Quotes erd
21570 \begin_layout Standard
21574 numberwithin{footnote}{part}
21582 \begin_layout Standard
21583 \begin_inset VSpace bigskip
21589 \begin_layout Standard
21590 To reset the footnote number back to 1 after each section
21592 , add this command to your document preamble:
21595 \begin_layout Standard
21600 @addtoreset{footnote}{section}
21603 \begin_layout Standard
21604 \begin_inset VSpace bigskip
21607 The following preamble command changes the footnote numbering style to small
21611 \begin_layout Standard
21623 \begin_layout Standard
21627 \begin_layout Standard
21640 This is a footnote with roman numbering:
21644 \begin_layout Standard
21645 This is an example footnote with roman numbering.
21654 \begin_layout Standard
21670 \begin_layout Standard
21671 To change the numbering style to capital roman numerals replace in the command
21686 \begin_inset Quotes eld
21690 \begin_inset Quotes erd
21693 footnotes with capital or small Latin letters use
21707 \begin_inset Quotes eld
21711 \begin_inset Quotes erd
21714 footnotes with symbols use
21723 \begin_layout Standard
21724 \begin_inset Note Greyedout
21727 \begin_layout Standard
21734 You can only number 26 footnotes with Latin letters, because this numbering
21735 is limited to single letters.
21743 \begin_inset Note Greyedout
21746 \begin_layout Standard
21751 You can only number 9 footnotes with symbols.
21759 \begin_layout Standard
21760 To return to the default numbering style when you changed to another one,
21773 in the command above.
21776 \begin_layout Subsection
21778 \begin_inset LatexCommand index
21779 name "Footnotes ! Placement"
21786 \begin_layout Standard
21787 If you have several footnotes in one page, they appear without vertical
21788 space between them at the bottom of the page.
21789 To make them better readable you can e.\InsetSpace \thinspace{}
21791 add 1.5\InsetSpace \thinspace{}
21792 mm space with the following
21796 \begin_layout Standard
21818 \begin_layout Standard
21819 \begin_inset VSpace bigskip
21822 In a two-column document the footnotes appear at the bottom of every column,
21823 see Figure\InsetSpace ~
21825 \begin_inset LatexCommand ref
21826 reference "fig:Standard-footnote-placement"
21831 If the footnotes should only appear at the bottom of the right column,
21832 as in Figure\InsetSpace ~
21834 \begin_inset LatexCommand ref
21835 reference "fig:Footnote-placement-in"
21839 , use the LaTeX-package
21844 \begin_inset LatexCommand index
21845 name "LaTeX-packages ! ftnright"
21849 with this command in the document preamble:
21852 \begin_layout Standard
21857 usepackage{ftnright}
21860 \begin_layout Standard
21861 \begin_inset Float figure
21867 \begin_layout Standard
21871 \begin_layout Standard
21881 \begin_inset Graphics
21882 filename ../clipart/without_fntright.pdf
21891 \begin_layout Standard
21901 \begin_layout Caption
21902 \begin_inset LatexCommand label
21903 name "fig:Standard-footnote-placement"
21907 Standard footnote placement in two-column documents.
21915 \begin_layout Standard
21916 \begin_inset Float figure
21922 \begin_layout Standard
21926 \begin_layout Standard
21936 \begin_inset Graphics
21937 filename ../clipart/with_fntright.pdf
21946 \begin_layout Standard
21956 \begin_layout Caption
21957 \begin_inset LatexCommand label
21958 name "fig:Footnote-placement-in"
21962 Footnote placement in two-column documents when the LaTeX-package
21974 \begin_layout Standard
21975 \begin_inset VSpace bigskip
21978 In some scientific literature it is usual to collect the footnotes and print
21979 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
21981 \begin_inset LatexCommand ref
21982 reference "fig:Endnotes----footnotes"
21987 They are then so called
21988 \begin_inset Quotes eld
21992 \begin_inset Quotes erd
21996 To use endnotes instead of footnotes in your document, load the LaTeX-package
22002 \begin_inset LatexCommand index
22003 name "LaTeX-packages ! endnotes"
22007 with the document preamble lines
22010 \begin_layout Standard
22015 usepackage{endnotes}
22026 \begin_layout Standard
22027 To insert the collected footnotes, insert the command
22030 \begin_layout Standard
22038 \begin_layout Standard
22039 in ERT at the the end of a section or chapter.
22042 \begin_layout Standard
22043 \begin_inset Float figure
22048 \begin_layout Standard
22053 \begin_layout Standard
22063 \begin_inset Graphics
22064 filename ../clipart/endnotes.pdf
22072 \begin_layout Standard
22082 \begin_layout Caption
22083 \begin_inset LatexCommand label
22084 name "fig:Endnotes----footnotes"
22088 Endnotes -- footnotes are printed in a separate paragraph at the end of
22089 sections or chapters.
22097 \begin_layout Standard
22098 \begin_inset VSpace defskip
22101 The paragraph heading for the endnotes isn't automatically translated into
22102 the document language, this must be done manually.
22103 The following preamble command translate the default English name
22104 \begin_inset Quotes eld
22108 \begin_inset Quotes erd
22111 to the German translation
22112 \begin_inset Quotes eld
22116 \begin_inset Quotes erd
22122 \begin_layout Standard
22129 notesname}{Anmerkungen}
22132 \begin_layout Standard
22133 \begin_inset VSpace defskip
22136 The numbering of endnotes can be changed like the footnote numbering as
22137 described in section\InsetSpace ~
22139 \begin_inset LatexCommand ref
22140 reference "sub:Footnote-Numbering"
22144 ; just replace the command
22157 To reset the endnote number use the command
22163 as described in section\InsetSpace ~
22165 \begin_inset LatexCommand ref
22166 reference "sub:Footnote-Numbering"
22170 and replace the command parameter
22181 \begin_layout Standard
22182 To create only a mark for an endnote, use the command
22186 endnotemark[number]
22188 similar to the command
22194 , described in section\InsetSpace ~
22196 \begin_inset LatexCommand ref
22197 reference "sec:Footnotes"
22204 \begin_layout Standard
22205 \begin_inset VSpace bigskip
22208 Footnotes can also be placed in the page margin and the footnote text alignment
22209 can be changed, see the LaTeX-package
22214 \begin_inset LatexCommand index
22215 name "LaTeX-packages ! footmisc"
22220 \begin_inset LatexCommand cite
22225 for more information about this.
22228 \begin_layout Standard
22229 For various further footnote formatting issues have a look at LaTeX-books,
22231 \begin_inset LatexCommand cite
22232 key "latexcompanion,latexguide,latexbook"
22239 \begin_layout Section
22241 \begin_inset LatexCommand index
22242 name "Notes ! Margin Notes"
22249 \begin_layout Standard
22250 Margin notes look and behave in LyX like footnotes.
22251 They are inserted via the menu
22253 Insert\SpecialChar \menuseparator
22254 Marginal\InsetSpace ~
22257 or the toolbar button
22258 \begin_inset Graphics
22259 filename ../images/marginalnote-insert.xpm
22281 \begin_inset Quotes eld
22285 \begin_inset Quotes erd
22288 appears where you can enter the text of the margin note.
22291 \begin_layout Standard
22292 At the side is an example margin note.
22296 \begin_inset Marginal
22299 \begin_layout Standard
22300 This is a margin note.
22308 \begin_layout Standard
22309 Margin notes appear at the right side in single-sided documents.
22310 In double-sided documents they appear in the outer margin -- left on even
22311 pages, right on odd pages.
22312 The text of margin notes is aligned opposite to the outer margin -- right-align
22313 ed when the note appears in the left margin.
22314 The first line of the margin note is placed at the position of the text
22315 line where it is inserted in the document.
22318 \begin_layout Standard
22319 \begin_inset VSpace bigskip
22322 To place the margin note in the inner margin, add the command
22325 \begin_layout Standard
22333 \begin_layout Standard
22334 in ERT before a margin note.
22335 The new placement is valid for all following margin notes.
22339 \begin_layout Standard
22349 \begin_inset Marginal
22352 \begin_layout Standard
22353 This is a margin note in the inner margin.
22365 \begin_inset Note Greyedout
22368 \begin_layout Standard
22373 There is often not enough space in the inner margin so that the notes are
22374 not correctly displayed in the output.
22382 \begin_layout Standard
22386 \begin_layout Standard
22395 To return to the default placement insert the command
22398 \begin_layout Standard
22406 \begin_layout Standard
22409 \begin_inset Note Greyedout
22412 \begin_layout Standard
22417 The command is ignored when it is within a paragraph where also the command
22432 \begin_layout Standard
22433 \begin_inset VSpace bigskip
22440 \begin_inset Marginal
22443 \begin_layout Standard
22444 AVeryLongMarginParWord that isn't hyphenated.
22452 Similar to the case described in section\InsetSpace ~
22454 \begin_inset LatexCommand ref
22455 reference "sub:Multiple-Lines-in"
22459 , long words cannot be hyphenated when they are the first word in a margin
22461 To avoid this, insert the command
22464 \begin_layout Standard
22472 \begin_layout Standard
22473 in ERT before the word
22477 \begin_inset Marginal
22480 \begin_layout Standard
22484 \begin_layout Standard
22493 AVeryLongMarginParWord that is hyphenated.
22501 \begin_layout Standard
22502 \begin_inset VSpace bigskip
22508 \begin_layout Standard
22509 \begin_inset Note Greyedout
22512 \begin_layout Standard
22517 Margin notes can normally not be used inside tables, floats, and footnotes.
22525 \begin_layout Standard
22526 This restriction can be evaded by using the LaTeX-package
22531 \begin_inset LatexCommand index
22532 name "LaTeX-packages ! marginnote"
22537 By adding these two lines to your document preamble, the command used by
22538 LyX for margin notes is redefined to use the command provided by the
22545 \begin_layout Standard
22550 usepackage{marginnote}
22561 \begin_layout Standard
22562 This is also used in this document because
22566 has another useful feature: You can set a vertical offset for the note.
22567 This is often needed when too many margin notes are too close together
22568 or for a better page layout.
22569 The offset is set in LyX as ERT directly behind the margin note in the
22573 \begin_layout Standard
22579 \begin_layout Standard
22580 where the offset is a length with one of the units listed in Table\InsetSpace ~
22582 \begin_inset LatexCommand ref
22583 reference "tab:Units"
22588 A negative value shifts the note up, a positive value shifts it down.
22592 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
22595 \begin_inset Quotes eld
22605 \begin_inset Quotes erd
22609 \begin_inset Marginal
22612 \begin_layout Standard
22613 This margin note is shifted up 1.5\InsetSpace \thinspace{}
22614 cm from its original position.
22626 \begin_layout Standard
22636 \begin_layout Standard
22637 \begin_inset VSpace defskip
22644 you can also change the alignment of the text in the margin note.
22645 For example the commands
22648 \begin_layout Standard
22655 raggedleftmarginnote}{
22663 raggedrightmarginnote}{
22668 \begin_layout Standard
22669 set the alignment to centered.
22674 raggedleftmarginnote
22676 denotes margin notes that appear at the left side.
22683 \begin_layout Standard
22689 raggedleftmarginnote}{
22694 \begin_layout Standard
22700 raggedrightmarginnote}{
22708 \begin_inset Marginal
22711 \begin_layout Standard
22712 The text of this margin note is centered.
22723 \begin_layout Standard
22730 raggedleftmarginnote}{
22738 raggedrightmarginnote}{
22747 \begin_layout Standard
22753 raggedleftmarginnote}{
22758 \begin_layout Standard
22764 raggedrightmarginnote}{
22774 \begin_layout Standard
22775 \begin_inset VSpace defskip
22778 For the other features of
22782 we refer to its documentation
22783 \begin_inset LatexCommand cite
22791 \begin_layout Standard
22792 \begin_inset VSpace bigskip
22795 You can change the layout of margin notes by redefining its definition.
22796 To create for example a header for all margin notes with the underlined,
22797 sans-serif, and bold header text
22798 \begin_inset Quotes eld
22810 \begin_inset Quotes erd
22813 , add this to your document preamble:
22816 \begin_layout Standard
22839 \begin_layout Standard
22856 underbar{Attention!}}}%
22862 \begin_layout Standard
22880 \begin_layout Standard
22887 \begin_layout Standard
22898 \begin_layout Standard
22909 \begin_layout Standard
22917 underbar{Attention!}}}%
22920 \begin_layout Standard
22934 \begin_inset Marginal
22937 \begin_layout Standard
22938 This is a margin note with a defined heading.
22950 \begin_layout Standard
22964 \begin_layout Standard
22981 \begin_inset Note Note
22984 \begin_layout Standard
22985 The margin note format is changed only for this example.
22993 \begin_layout Chapter
22997 \begin_layout Section
22999 \begin_inset LatexCommand index
23000 name "Boxes ! Introduction"
23007 \begin_layout Standard
23008 Boxes are used to format a block of text.
23009 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
23011 \begin_inset LatexCommand ref
23012 reference "sec:Minipages"
23016 , to frame texts, see section\InsetSpace ~
23018 \begin_inset LatexCommand ref
23019 reference "sec:Framed-Boxes"
23023 , to prevent words to be hyphenated, see section\InsetSpace ~
23025 \begin_inset LatexCommand ref
23026 reference "sec:Prevent-Hyphenation"
23030 , to align text, see section\InsetSpace ~
23032 \begin_inset LatexCommand ref
23033 reference "sub:Vertical-Alignment"
23037 , or to set the background color of texts, see section\InsetSpace ~
23039 \begin_inset LatexCommand ref
23040 reference "sec:Colored-Boxes"
23047 \begin_layout Standard
23048 Boxes can be inserted with the menu
23050 Insert\SpecialChar \menuseparator
23054 A grey box with the label
23059 \begin_inset Graphics
23060 filename ../clipart/BoxInsetDefaultQt4.png
23065 , will be inserted.
23066 The box type can be specified by right-clicking on the box.
23067 The appearing box dialog offers the
23085 is the default for new boxes and is explained in section\InsetSpace ~
23087 \begin_inset LatexCommand ref
23088 reference "sec:Minipages"
23096 is described in section\InsetSpace ~
23098 \begin_inset LatexCommand ref
23099 reference "sec:Parboxes"
23106 \begin_layout Standard
23107 Boxes aren't numbered and can therefore not be referenced like floats or
23111 \begin_layout Standard
23112 \begin_inset Note Greyedout
23115 \begin_layout Standard
23120 Due to a bug in LyX you have to insert a protected space behind a box when
23121 you want to separate in a line the box from the following text with a space.
23129 \begin_layout Standard
23130 \begin_inset Note Greyedout
23133 \begin_layout Standard
23138 Boxes must not be the item in an
23154 \begin_layout Standard
23155 \begin_inset Note Greyedout
23158 \begin_layout Standard
23163 For an unknown reason you can only set the
23172 when you use a framed box.
23178 type and without frames are explained in section\InsetSpace ~
23180 \begin_inset LatexCommand ref
23181 reference "sec:Prevent-Hyphenation"
23193 \begin_layout Section
23195 \begin_inset LatexCommand label
23196 name "sec:Box-Dialog"
23201 \begin_inset LatexCommand index
23202 name "Boxes ! Box Dialog"
23207 \begin_inset LatexCommand index
23208 name "Boxes ! Alignment"
23215 \begin_layout Standard
23216 In the box dialog you can adjust the box geometry in the fields
23225 The available units for the geometry are explained in Table\InsetSpace ~
23227 \begin_inset LatexCommand ref
23228 reference "tab:Units"
23237 offers the following additional sizes:
23240 \begin_layout Description
23241 Depth This is the plain text
23242 \begin_inset Quotes eld
23246 \begin_inset Quotes erd
23250 It ignores the total depth when there are multiple text lines in the box:
23257 \begin_inset Box Boxed
23266 height_special "depth"
23269 \begin_layout Standard
23271 Box height set to 1\InsetSpace \thinspace{}
23284 \begin_layout Description
23285 Height This is the heigth of the text that is inside the box.
23286 A value of e.\InsetSpace \thinspace{}
23288 2 for this size will set the box heigth to 2 times the text
23290 \begin_inset Box Boxed
23299 height_special "height"
23302 \begin_layout Standard
23304 Box height set to 2\InsetSpace \thinspace{}
23313 \begin_layout Description
23315 Height This is the Height\InsetSpace \thinspace{}
23316 +\InsetSpace \thinspace{}
23318 \begin_inset Box Boxed
23327 height_special "totalheight"
23330 \begin_layout Standard
23332 Box height set to 1\InsetSpace \thinspace{}
23342 \begin_layout Description
23343 Width This set the width of the box as heigth:
23344 \begin_inset Box Boxed
23353 height_special "width"
23356 \begin_layout Standard
23358 Box height set to 1\InsetSpace \thinspace{}
23367 \begin_layout Standard
23368 \begin_inset VSpace bigskip
23371 When you have chosen an
23376 , the vertical box alignment can be:
23379 \begin_layout Description
23380 Top This is an example text line.
23382 \begin_inset Box Boxed
23391 height_special "totalheight"
23394 \begin_layout Standard
23396 This box is top-aligned.
23402 This is an example text line.
23405 \begin_layout Description
23406 Middle This is an example text line.
23408 \begin_inset Box Boxed
23417 height_special "totalheight"
23420 \begin_layout Standard
23422 This box is middle-aligned.
23428 This is an example text line.
23431 \begin_layout Description
23432 Bottom This is an example text line.
23434 \begin_inset Box Boxed
23443 height_special "totalheight"
23446 \begin_layout Standard
23448 This box is bottom-aligned.
23454 This is an example text line.
23457 \begin_layout Standard
23458 The horizontal box alignment can be set via LyX's paragraph dialog when
23459 you set the box into its own paragraph.
23462 \begin_layout Standard
23463 \begin_inset VSpace bigskip
23466 When you have chosen an
23471 , the box content can be vertical aligned to:
23474 \begin_layout Description
23475 top This is an example text line.
23477 \begin_inset Box Boxed
23486 height_special "totalheight"
23489 \begin_layout Standard
23491 This box text is top-aligned.
23497 This is an example text line.
23500 \begin_layout Description
23501 middle This is an example text line.
23503 \begin_inset Box Boxed
23512 height_special "totalheight"
23515 \begin_layout Standard
23517 This box text is middle-aligned.
23523 This is an example text line.
23526 \begin_layout Description
23527 bottom This is an example text line.
23529 \begin_inset Box Boxed
23538 height_special "totalheight"
23541 \begin_layout Standard
23543 This box text is bottom-aligned.
23549 This is an example text line.
23552 \begin_layout Description
23553 stretch This is an example text line.
23555 \begin_inset Box Boxed
23564 height_special "totalheight"
23567 \begin_layout Standard
23572 \begin_layout Standard
23577 \begin_layout Standard
23585 This is an example text line.
23588 \begin_layout Standard
23589 To stretch the box content, it must consist of more than one paragraph.
23590 In the example above every text line is in an own paragraph.
23593 \begin_layout Standard
23594 \begin_inset VSpace bigskip
23597 To align the box content horizontally you can use LyX's paragraph dialog
23598 when you have chosen an
23606 \begin_layout Standard
23608 \begin_inset Box Boxed
23617 height_special "totalheight"
23620 \begin_layout Standard
23625 \begin_layout Standard
23630 \begin_layout Standard
23640 \begin_layout Standard
23641 If you haven't set an
23646 , you can align the box content horizontally in the box dialog.
23649 \begin_layout Standard
23651 \begin_inset Box Boxed
23660 height_special "totalheight"
23663 \begin_layout Standard
23665 This box text is horizontally stretched.
23673 \begin_layout Section
23675 \begin_inset LatexCommand label
23676 name "sec:Framed-Boxes"
23681 \begin_inset LatexCommand index
23682 name "Boxes ! Frames"
23689 \begin_layout Standard
23690 The frame style of the box can be specified in the box-dialog in the drop-down
23696 The following frame types are possible:
23699 \begin_layout Description
23700 Rectangular\InsetSpace ~
23701 box This draws a rectangle frame around the box.
23702 The frame line thickness has the size of
23710 \begin_inset Box Boxed
23719 height_special "totalheight"
23722 \begin_layout Standard
23732 \begin_layout Description
23735 thin This draws an oval frame around the box.
23736 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
23739 \begin_inset Box ovalbox
23748 height_special "totalheight"
23751 \begin_layout Standard
23761 \begin_layout Description
23764 thick This draws an oval frame around the box.
23765 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
23768 \begin_inset Box Ovalbox
23777 height_special "totalheight"
23780 \begin_layout Standard
23790 \begin_layout Description
23791 Shadow\InsetSpace ~
23792 box This draws a rectangle frame with a shadow around the box.
23793 The frame line thickness has the size of
23799 , the shadow has a width of 4\InsetSpace \thinspace{}
23802 \begin_inset Box Shadowbox
23811 height_special "totalheight"
23814 \begin_layout Standard
23824 \begin_layout Description
23825 Double\InsetSpace ~
23826 box This draws a double-line rectangle frame around the box.
23827 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
23834 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
23842 The distance between the lines is 1.5\InsetSpace \thinspace{}
23849 \InsetSpace \thinspace{}
23850 +\InsetSpace \thinspace{}
23851 0.5\InsetSpace \thinspace{}
23854 \begin_inset Box Doublebox
23863 height_special "totalheight"
23866 \begin_layout Standard
23876 \begin_layout Standard
23877 \begin_inset VSpace bigskip
23880 LyX's box label will change to the used frame style when you set a frame.
23881 To be able to use the different frame styles, the LaTeX-package
23886 \begin_inset LatexCommand index
23887 name "LaTeX-packages ! fancybox"
23894 \begin_layout Standard
23895 \begin_inset VSpace bigskip
23898 The default value for the size
23904 is 0.4\InsetSpace \thinspace{}
23906 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
23908 2\InsetSpace \thinspace{}
23912 \begin_layout Standard
23922 \begin_layout Standard
23926 \begin_layout Standard
23938 \begin_inset Box Boxed
23947 height_special "totalheight"
23950 \begin_layout Standard
23952 Rectangular box with
23958 \InsetSpace \thinspace{}
23959 =\InsetSpace \thinspace{}
23960 2\InsetSpace \thinspace{}
23970 \begin_layout Standard
23984 \begin_layout Standard
23985 \begin_inset VSpace bigskip
23988 The space between the frame and the box content is for all frame styles
23989 by default 3\InsetSpace \thinspace{}
23991 You can change it by setting the length
23998 For example the command
24001 \begin_layout Standard
24011 \begin_layout Standard
24012 sets the value to 10\InsetSpace \thinspace{}
24013 pt, like for the following box:
24016 \begin_layout Standard
24020 \begin_layout Standard
24032 \begin_inset Box Boxed
24041 height_special "totalheight"
24044 \begin_layout Standard
24046 Rectangular box with
24052 \InsetSpace \thinspace{}
24053 =\InsetSpace \thinspace{}
24054 10\InsetSpace \thinspace{}
24064 \begin_layout Standard
24078 \begin_layout Standard
24079 \begin_inset VSpace bigskip
24082 The diameter of the round corners of the oval boxes can be set with the
24093 \begin_layout Standard
24101 \begin_layout Standard
24102 sets the diameter to 1\InsetSpace \thinspace{}
24107 \begin_layout Standard
24115 \begin_layout Standard
24116 sets the diameter to
24118 num\InsetSpace \thinspace{}
24119 ×\InsetSpace \thinspace{}
24120 minimum(width and heigth of box)
24132 \begin_layout Standard
24136 \begin_layout Standard
24146 \begin_inset Box Ovalbox
24155 height_special "totalheight"
24158 \begin_layout Standard
24166 \InsetSpace \thinspace{}
24167 =\InsetSpace \thinspace{}
24168 1.5\InsetSpace \thinspace{}
24178 \begin_layout Standard
24190 \begin_layout Standard
24191 \begin_inset VSpace bigskip
24194 The size of the shadow can be adjusted by changing the length
24201 It it set to 2\InsetSpace \thinspace{}
24202 pt for the following box by this command:
24205 \begin_layout Standard
24215 \begin_layout Standard
24219 \begin_layout Standard
24231 \begin_inset Box Shadowbox
24240 height_special "totalheight"
24243 \begin_layout Standard
24251 \InsetSpace \thinspace{}
24252 =\InsetSpace \thinspace{}
24253 2\InsetSpace \thinspace{}
24263 \begin_layout Standard
24277 \begin_layout Standard
24278 \begin_inset VSpace bigskip
24281 Changed lengths and widths are valid for all boxes following the commands
24285 \begin_layout Section
24287 \begin_inset LatexCommand label
24288 name "sec:Minipages"
24293 \begin_inset LatexCommand index
24294 name "Boxes ! Minipages"
24301 \begin_layout Standard
24302 Minipages are treated by LaTeX as pages within pages and can therefore for
24303 example have their own footnotes.
24306 \begin_layout Standard
24307 Minipages are useful when you write documents with different languages.
24310 \begin_layout Standard
24311 Below are two example minipages side by side.
24312 Their width is set to 45\InsetSpace \thinspace{}
24313 col% and they are separated by a horizontal fill,
24314 that was inserted via the menu
24316 Insert\SpecialChar \menuseparator
24317 Special\InsetSpace ~
24318 Formatting\SpecialChar \menuseparator
24319 Horizontal\InsetSpace ~
24325 \begin_layout Standard
24326 \begin_inset Box Frameless
24335 height_special "totalheight"
24338 \begin_layout Standard
24341 Dies ist ein deutscher Text.
24342 Dies ist ein deutscher Text.
24343 Dies ist ein deutscher Text.
24344 Dies ist ein deutscher Text.
24345 Dies ist ein deutscher Text.
24346 Dies ist ein deutscher Text.
24347 Dies ist ein deutscher Text.
24348 Dies ist ein deutscher Text.
24349 Dies ist ein deutscher Text.
24350 Dies ist ein deutscher Text.
24351 Dies ist ein deutscher Text.
24352 Dies ist ein deutscher Text.
24353 Dies ist ein deutscher Text
24357 \begin_layout Standard
24360 Dies ist eine deutsche Fußnote.
24366 Dies ist ein deutscher Text.
24367 Dies ist ein deutscher Text.
24375 \begin_inset Box Frameless
24384 height_special "totalheight"
24387 \begin_layout Standard
24388 This is an English Text.
24389 This is an English Text.
24390 This is an English Text.
24391 This is an English Text.
24392 This is an English Text.
24393 This is an English Text.
24394 This is an English Text.
24395 This is an English Text.
24396 This is an English Text.
24397 This is an English Text.
24398 This is an English Text.
24399 This is an English Text.
24400 This is an English Text.
24401 This is an English Text.
24402 This is an English Text.
24403 This is an English Text.
24407 \begin_layout Standard
24408 This is an English footnote.
24413 This is an English Text.
24422 \begin_layout Standard
24423 \begin_inset VSpace bigskip
24426 Another application for minipages are footnotes within tables.
24427 Due to a LaTeX restriction footnotes within tables doesn't appear at the
24428 bottom of the current page.
24429 But when you put the table with the footnote to a minipage, the footnote
24430 will appear at its bottom, numbered with Latin letters.
24431 The footnote number is reset to 1 in every minipage but not outside the
24435 \begin_layout Standard
24436 The footnote of this table doesn't appear:
24437 \begin_inset Tabular
24438 <lyxtabular version="3" rows="3" columns="4">
24440 <column alignment="center" valignment="top" leftline="true" width="0pt">
24441 <column alignment="center" valignment="top" leftline="true" width="0pt">
24442 <column alignment="center" valignment="top" leftline="true" width="0pt">
24443 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24444 <row topline="true">
24445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24448 \begin_layout Standard
24454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24457 \begin_layout Standard
24463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24466 \begin_layout Standard
24471 \begin_layout Standard
24472 This is a footnote within a table.
24482 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24485 \begin_layout Standard
24492 <row topline="true">
24493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24496 \begin_layout Standard
24502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24505 \begin_layout Standard
24511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24514 \begin_layout Standard
24520 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24523 \begin_layout Standard
24530 <row topline="true" bottomline="true">
24531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24534 \begin_layout Standard
24540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24543 \begin_layout Standard
24549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24552 \begin_layout Standard
24558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24561 \begin_layout Standard
24575 \begin_layout Standard
24577 \begin_inset Box Frameless
24586 height_special "totalheight"
24589 \begin_layout Standard
24591 \begin_inset Tabular
24592 <lyxtabular version="3" rows="3" columns="4">
24594 <column alignment="center" valignment="top" leftline="true" width="0pt">
24595 <column alignment="center" valignment="top" leftline="true" width="0pt">
24596 <column alignment="center" valignment="top" leftline="true" width="0pt">
24597 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24598 <row topline="true">
24599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24602 \begin_layout Standard
24608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24611 \begin_layout Standard
24617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24620 \begin_layout Standard
24625 \begin_layout Standard
24626 This is a footnote within a table.
24636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24639 \begin_layout Standard
24646 <row topline="true">
24647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24650 \begin_layout Standard
24656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24659 \begin_layout Standard
24665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24668 \begin_layout Standard
24674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24677 \begin_layout Standard
24684 <row topline="true" bottomline="true">
24685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24688 \begin_layout Standard
24694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24697 \begin_layout Standard
24703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24706 \begin_layout Standard
24712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24715 \begin_layout Standard
24734 \begin_layout Standard
24735 \begin_inset VSpace bigskip
24738 The document-wide paragraph settings are ignored within minipages.
24739 That means that there will be no space between paragraphs in minipages
24740 although you set it to e.\InsetSpace \thinspace{}
24746 in the document settings.
24749 \begin_layout Standard
24750 Minipages can also be used to set a background color for text parts, see
24751 section\InsetSpace ~
24753 \begin_inset LatexCommand ref
24754 reference "sub:Color-for-Paragraphs"
24761 \begin_layout Standard
24762 \begin_inset Note Greyedout
24765 \begin_layout Standard
24770 You cannot have floats or margin notes inside minipages but minipages can
24771 be used inside tables, floats, and other boxes.
24779 \begin_layout Section
24781 \begin_inset LatexCommand label
24782 name "sec:Parboxes"
24787 \begin_inset LatexCommand index
24788 name "Boxes ! Parboxes"
24795 \begin_layout Standard
24796 Parboxes are very similar to minipages with the difference that they cannot
24798 The main difference to minipages is that minipages are in contrary to parboxes
24799 no real boxes but LaTeX-environments.
24802 \begin_layout Standard
24804 \begin_inset Box Frameless
24813 height_special "totalheight"
24816 \begin_layout Standard
24817 This a text within a parbox.
24818 This a text within a parbox.
24821 \begin_layout Standard
24822 This footnote won't appear:
24826 \begin_layout Standard
24827 This footnote is inside a parbox and will therefore not appear.
24840 \begin_layout Section
24841 Boxes for Words and Characters
24842 \begin_inset LatexCommand index
24843 name "Boxes ! for Characters"
24850 \begin_layout Subsection
24851 Prevent Hyphenation
24852 \begin_inset LatexCommand label
24853 name "sec:Prevent-Hyphenation"
24858 \begin_inset LatexCommand index
24859 name "Boxes ! to Prevent Hyphenation"
24866 \begin_layout Standard
24867 You can use a special kind of boxes to prevent words or text to be hyphenated.
24870 e is an example text:
24873 \begin_layout Standard
24874 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
24880 \begin_layout Standard
24881 To prevent the hyphenation of the word
24882 \begin_inset Quotes eld
24886 \begin_inset Quotes erd
24892 \begin_layout Standard
24900 \begin_layout Standard
24901 in ERT before the word.
24902 Behind the word insert a closing brace
24903 \begin_inset Quotes eld
24911 \begin_inset Quotes erd
24918 \begin_layout Standard
24930 \begin_layout Standard
24931 This is the result:
24934 \begin_layout Standard
24935 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
24941 \begin_layout Standard
24954 \begin_layout Standard
24964 \begin_layout Standard
24965 Of course the word now protrudes over the side margin.
24966 To avoid this, add via the menu
24968 Insert\SpecialChar \menuseparator
24969 Special\InsetSpace ~
24970 Formatting\SpecialChar \menuseparator
24978 ) a line break before the word:
24981 \begin_layout Standard
24982 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
24990 \begin_layout Standard
25003 \begin_layout Standard
25013 \begin_layout Subsection
25015 \begin_inset LatexCommand label
25016 name "sub:Vertical-Alignment"
25021 \begin_inset LatexCommand index
25022 name "Boxes ! for Vertical Alignment"
25027 \begin_inset LatexCommand index
25028 name "Boxes ! Raiseboxes"
25035 \begin_layout Standard
25036 With the help of the command
25042 you can align words, characters or other boxes vertically to the surrounding
25050 is used with the following scheme:
25053 \begin_layout Standard
25058 raisebox{lift}[height][depth]{box content}
25061 \begin_layout Standard
25062 The lift can be a positive value to raise the box or a negative value to
25066 \begin_layout Standard
25067 To align for example the word
25068 \begin_inset Quotes eld
25072 \begin_inset Quotes erd
25075 so that the bottom of the
25076 \begin_inset Quotes eld
25080 \begin_inset Quotes erd
25084 \begin_inset Quotes eld
25088 \begin_inset Quotes erd
25091 is at the baseline, insert the command
25094 \begin_layout Standard
25104 \begin_layout Standard
25105 in ERT before the word.
25106 Behind the word insert a closing brace
25107 \begin_inset Quotes eld
25115 \begin_inset Quotes erd
25120 This is the result:
25123 \begin_layout Standard
25124 This is a text line with the word
25128 \begin_layout Standard
25140 \begin_inset Quotes eld
25144 \begin_inset Quotes erd
25151 \begin_layout Standard
25161 \begin_layout Standard
25162 \begin_inset VSpace bigskip
25165 When you raise or lower characters in a line, the line distance will be
25169 \begin_layout Standard
25170 This is a text line with the word
25174 \begin_layout Standard
25186 \begin_inset Quotes eld
25190 \begin_inset Quotes erd
25197 \begin_layout Standard
25206 This is a text line with the word
25210 \begin_layout Standard
25220 \begin_inset Quotes eld
25224 \begin_inset Quotes erd
25231 \begin_layout Standard
25241 \begin_layout Standard
25242 If you want to prevent this for a certain reason, set the box height to
25247 \begin_layout Standard
25257 \begin_layout Standard
25258 This is a text line with the word
25262 \begin_layout Standard
25274 \begin_inset Quotes eld
25278 \begin_inset Quotes erd
25285 \begin_layout Standard
25294 This is a text line with the word
25298 \begin_layout Standard
25302 raisebox{0.5cm}[0pt]{
25308 \begin_inset Quotes eld
25312 \begin_inset Quotes erd
25319 \begin_layout Standard
25329 \begin_layout Section
25331 \begin_inset LatexCommand label
25332 name "sec:Colored-Boxes"
25337 \begin_inset LatexCommand index
25338 name "Boxes ! Color"
25345 \begin_layout Subsection
25347 \begin_inset LatexCommand index
25348 name "Color ! for Text"
25355 \begin_layout Standard
25356 To color the background of text the text must be put into a so called colorbox.
25357 This requires that the LaTeX-package
25362 \begin_inset LatexCommand index
25363 name "LaTeX-packages ! color"
25367 is loaded in the document preamble with the command
25370 \begin_layout Standard
25375 @ifundef\SpecialChar \textcompwordmark{}
25382 \begin_layout Standard
25393 usepackage{color}}{}
25396 \begin_layout Standard
25401 will be loaded automatically by LyX when you color text
25405 \begin_layout Standard
25406 To avoid that it is loaded twice the command
25410 @ifundef\SpecialChar \textcompwordmark{}
25421 \begin_layout Standard
25422 \begin_inset VSpace medskip
25425 Colorboxes are created with the command
25432 This will be used with the following scheme:
25435 \begin_layout Standard
25440 colorbox{color}{box content}
25443 \begin_layout Standard
25444 The box content can also be a box and colorboxes can also be within other
25448 \begin_layout Standard
25449 The following colors are predefined:
25487 You can also define your own color as described in section\InsetSpace ~
25489 \begin_inset LatexCommand ref
25490 reference "sec:Colored-Tables"
25497 \begin_layout Standard
25498 To have e.\InsetSpace \thinspace{}
25500 a red background for a word, insert the command
25503 \begin_layout Standard
25511 \begin_layout Standard
25512 before the word in ERT.
25513 Behind the word insert a closing brace
25514 \begin_inset Quotes eld
25522 \begin_inset Quotes erd
25527 This is the result:
25530 \begin_layout Standard
25531 This is a line where the word
25535 \begin_layout Standard
25545 \begin_inset Quotes eld
25549 \begin_inset Quotes erd
25556 \begin_layout Standard
25563 has a red background.
25566 \begin_layout Standard
25567 \begin_inset VSpace bigskip
25570 If you would have the box frame in a different color, you can use the command
25577 with the following scheme:
25580 \begin_layout Standard
25585 fcolorbox{frame color}{box color}{box content}
25588 \begin_layout Standard
25602 The frame thickness and the space between the frame and the box content
25603 can be adjusted with the lengths
25615 , respectively, as described in section\InsetSpace ~
25617 \begin_inset LatexCommand ref
25618 reference "sec:Framed-Boxes"
25625 \begin_layout Standard
25626 For the following example the command
25629 \begin_layout Standard
25634 fcolorbox{cyan}{magenta}{
25637 \begin_layout Standard
25641 \begin_layout Standard
25642 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
25649 \begin_layout Standard
25664 \begin_layout Standard
25668 fcolorbox{cyan}{magenta}{
25673 This is text within a colored, framed box.
25677 \begin_layout Standard
25687 \begin_layout Standard
25688 \begin_inset VSpace bigskip
25691 Of course you can also have colored text inside a colorbox:
25697 \begin_layout Standard
25701 fcolorbox{cyan}{magenta}{
25708 This is colored text within a colored, framed box.
25714 \begin_layout Standard
25725 \begin_layout Standard
25739 \begin_layout Standard
25742 \begin_inset VSpace medskip
25748 \begin_layout Standard
25749 \begin_inset Note Greyedout
25752 \begin_layout Standard
25757 Text in colorboxes cannot have line breaks.
25758 To color multiple text lines or paragraphs, use a box inside a colorbox
25759 as described in the following.
25767 \begin_layout Subsection
25768 Color for Paragraphs
25769 \begin_inset LatexCommand label
25770 name "sub:Color-for-Paragraphs"
25775 \begin_inset LatexCommand index
25776 name "Color ! for Paragraphs"
25783 \begin_layout Standard
25784 To set the background color for more than one text line, put the text into
25786 Before the minipage insert the
25795 \begin_layout Standard
25803 \begin_layout Standard
25805 Behind the minipage insert a closing brace
25806 \begin_inset Quotes eld
25814 \begin_inset Quotes erd
25820 \begin_layout Standard
25824 \begin_layout Standard
25828 colorbox{lightgrey}{
25834 \begin_inset Box Frameless
25843 height_special "totalheight"
25846 \begin_layout Standard
25847 This is text with background color.
25848 This is text with background color.
25851 \begin_layout Standard
25852 \begin_inset VSpace defskip
25855 The text can have footnotes
25859 \begin_layout Standard
25860 Another example footnote
25865 and can include tables and figures.
25868 \begin_layout Standard
25870 \begin_inset Tabular
25871 <lyxtabular version="3" rows="3" columns="3">
25873 <column alignment="center" valignment="top" leftline="true" width="0">
25874 <column alignment="center" valignment="top" leftline="true" width="0">
25875 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
25876 <row topline="true">
25877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25880 \begin_layout Standard
25886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25889 \begin_layout Standard
25895 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25898 \begin_layout Standard
25905 <row topline="true">
25906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25909 \begin_layout Standard
25915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25918 \begin_layout Standard
25920 \begin_inset Quotes erd
25928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25931 \begin_layout Standard
25938 <row topline="true" bottomline="true">
25939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25942 \begin_layout Standard
25948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25951 \begin_layout Standard
25957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25960 \begin_layout Standard
25980 \begin_layout Standard
25990 \begin_layout Section
25991 URLs (Uniform Resource Locators)
25992 \begin_inset LatexCommand index
26000 \begin_layout Standard
26001 Links to web pages or email addresses can be inserted via the menu
26003 Insert\SpecialChar \menuseparator
26007 The appearing URL dialog has two fields; the
26015 field for the URL description, which will be typeset as plain text immediately
26019 \begin_layout Standard
26020 Here is an example URL:
26021 \begin_inset LatexCommand url
26022 name "LyX's homepage"
26023 target "http://www.lyx.org"
26030 \begin_layout Standard
26033 Generate\InsetSpace ~
26036 in the URL dialog has only an affect when you export your document to the
26038 \begin_inset Quotes eld
26046 \begin_inset Quotes erd
26052 \begin_layout Standard
26053 You cannot change the style of the link text.
26058 field will have the default text style of the document while the text of
26063 field will have the style
26064 \begin_inset Quotes eld
26072 \begin_inset Quotes erd
26078 \begin_layout Standard
26079 When you use the LaTeX-package
26084 \begin_inset LatexCommand index
26085 name "LaTeX-packages ! hyperref"
26089 to link cross-references in the output, URLs will automatically become
26090 clickable hyperlinks in DVI and PDF-output.
26093 \begin_layout Standard
26094 \begin_inset Note Greyedout
26097 \begin_layout Standard
26102 When you use the following characters: "%", "#", "^", you have to write
26103 them with a preceding backslash, e.\InsetSpace \thinspace{}
26106 \begin_inset Quotes eld
26112 \begin_inset Quotes erd
26116 URLs must not end with a backslash.
26124 \begin_layout Standard
26125 \begin_inset VSpace bigskip
26128 To create real hyperlinks without the force to write the link location to
26129 the text, you can use the command
26132 \begin_layout Standard
26137 href{link location}{link text}
26140 \begin_layout Standard
26142 To get for example a link to LyX's web page, write the command
26145 \begin_layout Standard
26150 href{http://www.lyx.org}{
26153 \begin_layout Standard
26155 Insert after the command the link text
26156 \begin_inset Quotes eld
26160 \begin_inset Quotes erd
26163 as normal text followed by a closing brace
26164 \begin_inset Quotes eld
26172 \begin_inset Quotes erd
26176 This is the result:
26180 \begin_layout Standard
26184 href{http://www.lyx.org}{
26193 \begin_layout Standard
26203 \begin_layout Standard
26204 To link to email addresses, add the prefix
26205 \begin_inset Quotes eld
26213 \begin_inset Quotes erd
26216 to the link location:
26222 \begin_layout Standard
26226 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
26231 lyx-docs mailing list
26235 \begin_layout Standard
26245 \begin_layout Standard
26252 instead of LyX's URL box has the advantage that you can specify the text
26253 style of the link text like for all other text parts.
26254 You can therefore set hyphenation points and forced linebreaks to have
26255 long link text broken at the page margin.
26256 You are furthermore able to change the text style for all URLs in your
26257 document with an option in
26261 's load command and the restrictions mentioned above doesn't apply for
26270 \begin_layout Standard
26276 \begin_layout Chapter
26282 \begin_layout Standard
26295 \begin_layout Standard
26303 \begin_inset LatexCommand index
26309 \begin_inset LatexCommand label
26310 name "cha:Units-available-in"
26315 \begin_inset Note Note
26318 \begin_layout Standard
26321 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
26322 are displayed wrongly in PDF-bookmarks.
26323 For more information about this, have a look at
26324 \begin_inset LatexCommand cite
26337 \begin_layout Standard
26338 To understand the units described in this documentation, Table\InsetSpace ~
26340 \begin_inset LatexCommand ref
26341 reference "tab:Units"
26345 explains all units available in LyX.
26348 \begin_layout Standard
26349 \begin_inset Float table
26355 \begin_layout Caption
26356 \begin_inset LatexCommand label
26364 \begin_layout Standard
26365 \begin_inset VSpace medskip
26371 \begin_layout Standard
26373 \begin_inset Tabular
26374 <lyxtabular version="3" rows="20" columns="2">
26376 <column alignment="center" valignment="top" leftline="true" width="0">
26377 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
26378 <row topline="true" bottomline="true">
26379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26382 \begin_layout Standard
26388 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26391 \begin_layout Standard
26398 <row topline="true">
26399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26402 \begin_layout Standard
26408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26411 \begin_layout Standard
26418 <row topline="true">
26419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26422 \begin_layout Standard
26428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26431 \begin_layout Standard
26438 <row topline="true">
26439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26442 \begin_layout Standard
26448 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26451 \begin_layout Standard
26458 <row topline="true">
26459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26462 \begin_layout Standard
26468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26471 \begin_layout Standard
26472 point (72.27\InsetSpace \thinspace{}
26473 pt = 1\InsetSpace \thinspace{}
26480 <row topline="true">
26481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26484 \begin_layout Standard
26490 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26493 \begin_layout Standard
26494 pica (1\InsetSpace \thinspace{}
26495 pc = 12\InsetSpace \thinspace{}
26502 <row topline="true">
26503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26506 \begin_layout Standard
26512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26515 \begin_layout Standard
26516 scaled point (65536\InsetSpace \thinspace{}
26517 sp = 1\InsetSpace \thinspace{}
26524 <row topline="true">
26525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26528 \begin_layout Standard
26534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26537 \begin_layout Standard
26538 big point (72\InsetSpace \thinspace{}
26539 bp = 1\InsetSpace \thinspace{}
26546 <row topline="true">
26547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26550 \begin_layout Standard
26556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26559 \begin_layout Standard
26560 didot (72\InsetSpace \thinspace{}
26562 \begin_inset Formula $\approx$
26565 37.6\InsetSpace \thinspace{}
26572 <row topline="true">
26573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26576 \begin_layout Standard
26582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26585 \begin_layout Standard
26586 cicero (1\InsetSpace \thinspace{}
26587 cc = 12\InsetSpace \thinspace{}
26594 <row topline="true">
26595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26598 \begin_layout Standard
26604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26607 \begin_layout Standard
26608 % of original image width
26614 <row topline="true">
26615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26618 \begin_layout Standard
26624 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26627 \begin_layout Standard
26634 <row topline="true">
26635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26638 \begin_layout Standard
26644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26647 \begin_layout Standard
26654 <row topline="true">
26655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26658 \begin_layout Standard
26664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26667 \begin_layout Standard
26674 <row topline="true">
26675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26678 \begin_layout Standard
26684 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26687 \begin_layout Standard
26694 <row topline="true">
26695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26698 \begin_layout Standard
26704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26707 \begin_layout Standard
26714 <row topline="true">
26715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26718 \begin_layout Standard
26724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26727 \begin_layout Standard
26734 <row topline="true">
26735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26738 \begin_layout Standard
26744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26747 \begin_layout Standard
26758 <row topline="true">
26759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26762 \begin_layout Standard
26768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26771 \begin_layout Standard
26782 <row topline="true" bottomline="true">
26783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26786 \begin_layout Standard
26792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26795 \begin_layout Standard
26796 math unit (1\InsetSpace \thinspace{}
26797 mu = 1/18\InsetSpace \thinspace{}
26816 \begin_layout Chapter
26817 Output File Formats with Graphics
26818 \begin_inset LatexCommand label
26819 name "cha:Output-File-Formats"
26826 \begin_layout Section
26828 \begin_inset LatexCommand index
26829 name "File Formats ! DVI"
26834 \begin_inset LatexCommand index
26835 name "DVI|see{File Formats}"
26842 \begin_layout Standard
26843 This file type has the extension
26844 \begin_inset Quotes eld
26852 \begin_inset Quotes erd
26857 \begin_inset Quotes eld
26861 \begin_inset Quotes erd
26864 (DVI), because it is completely portable; you can move them from one machine
26865 to another without needing to do any sort of conversion.
26866 At the time when this file-format was developed, this was no matter of
26868 DVIs are used for quick previews and as pre-stage for other output formats,
26872 \begin_layout Standard
26873 \begin_inset Note Greyedout
26876 \begin_layout Standard
26881 DVI-files doesn't contain images, they will only be a linked.
26886 So don't forget this, if you move your
26890 file to another computer.
26891 This property can also slow down your computer when you view the DVI.
26892 Because the DVI-viewer has to convert the image in the background to make
26893 it visible when you scroll in the DVI.
26894 So we recommend to use PDF for files with many images.
26897 \begin_layout Standard
26898 You can export your document to DVI by using the menu
26900 File\SpecialChar \menuseparator
26901 Export\SpecialChar \menuseparator
26905 You can view your document as PostScript via the
26909 menu or by using the toolbar button
26910 \begin_inset Graphics
26911 filename ../images/buffer-view_dvi.xpm
26919 \begin_layout Section
26921 \begin_inset LatexCommand label
26922 name "sec:PostScript"
26927 \begin_inset LatexCommand index
26928 name "File Formats ! PostScript\\protect\\pagebreak"
26933 \begin_inset LatexCommand index
26934 name "PostScript|see{File Formats}"
26941 \begin_layout Standard
26942 This file type has the extension
26943 \begin_inset Quotes eld
26951 \begin_inset Quotes erd
26955 PostScript was developed by the company
26959 as printer language.
26960 The file contains therefore commands that the printer uses to print the
26962 PostScript can be seen as
26963 \begin_inset Quotes eld
26966 programming language
26967 \begin_inset Quotes erd
26970 ; you can calculate with it and draw diagrams and images
26974 \begin_layout Standard
26975 If you are interested to learn more about this, have a look at the LaTeX-package
26981 \begin_inset LatexCommand cite
26992 Due to this ability, the files are often bigger than PDFs.
26995 \begin_layout Standard
26996 PostScript can only contain images in the format
26997 \begin_inset Quotes eld
27000 Encapsulated PostScript
27001 \begin_inset Quotes erd
27004 (EPS, file extension
27005 \begin_inset Quotes eld
27013 \begin_inset Quotes erd
27017 As LyX allows you to use any known image format in your document, it has
27018 to convert images in the background to EPS.
27019 If you have e.g 50 images in your document, LyX has to do 50 conversions
27020 whenever you view or export your document.
27021 This will slow down your work flow with LyX drastically.
27022 So if you plan to use PostScript, you can insert your images directly as
27023 EPS to avoid this problem.
27026 \begin_layout Standard
27027 You can export your document to PostScript using the menu
27029 File\SpecialChar \menuseparator
27030 Export\SpecialChar \menuseparator
27034 You can view your document as PostScript via the
27038 menu or by using the toolbar button
27039 \begin_inset Graphics
27040 filename ../images/buffer-view_ps.xpm
27048 \begin_layout Section
27050 \begin_inset LatexCommand label
27056 \begin_inset LatexCommand index
27057 name "File Formats ! PDF"
27062 \begin_inset LatexCommand index
27070 \begin_layout Standard
27071 This file type has the extension
27072 \begin_inset Quotes eld
27080 \begin_inset Quotes erd
27085 \begin_inset Quotes eld
27088 Portable Document Format
27089 \begin_inset Quotes erd
27092 (PDF) is developed by
27096 as derivative from PostScript.
27097 It is more compressed and it uses much less commands than PostScript.
27099 \begin_inset Quotes eld
27103 \begin_inset Quotes erd
27106 implies, it can be processed at any computer system and the printed output
27107 looks exactly the same.
27110 \begin_layout Standard
27111 PDF can contain images in its own PDF format, in the format
27112 \begin_inset Quotes eld
27115 Joint Photographic Experts Group
27116 \begin_inset Quotes erd
27119 (JPG, file extension
27120 \begin_inset Quotes eld
27128 \begin_inset Quotes erd
27132 \begin_inset Quotes eld
27140 \begin_inset Quotes erd
27143 ), and in the format
27144 \begin_inset Quotes eld
27147 Portable Network Graphics
27148 \begin_inset Quotes erd
27151 (PNG, file extension
27152 \begin_inset Quotes eld
27160 \begin_inset Quotes erd
27164 You can although use any other image format, because LyX converts them
27165 in the background to one of these formats.
27166 But as described in the section about PostScript, the image conversion
27167 will slow down your work flow.
27168 So it is recommended to use images in one of the three mentioned formats.
27171 \begin_layout Standard
27172 You can export your document to PDF via the menu
27174 File\SpecialChar \menuseparator
27177 in three different ways:
27180 \begin_layout Description
27181 PDF This uses the program
27185 that creates a PDF from a PostScript-version of your file.
27186 The PostScript-version is produced by the program
27190 which uses a DVI-version as intermediate step.
27191 So this export variant consist of three conversions.
27194 \begin_layout Description
27196 (dvipdfm) This uses the program
27200 that converts your file in the background to DVI and in a second step to
27204 \begin_layout Description
27206 (pdflatex) This uses the program
27210 that converts your file directly to PDF.
27213 \begin_layout Standard
27214 It is recommended to use
27223 supports all features of actual PDF-versions, is quick and works stable
27229 is not under development and therefore a bit outdated.
27232 \begin_layout Standard
27233 You can view your document as PDF via the
27237 menu or by using the toolbar button
27238 \begin_inset Graphics
27239 filename ../images/buffer-view_pdf2.xpm
27256 \begin_layout Chapter
27257 Explanation of Equation\InsetSpace ~
27259 \begin_inset LatexCommand eqref
27265 \begin_inset LatexCommand label
27266 name "cha:Explanation-of-Equation"
27273 \begin_layout Standard
27279 \begin_inset Formula $W_{\mathrm{tot\, n}}$
27282 can be calculated to
27285 \begin_layout Standard
27286 \begin_inset Formula \begin{equation}
27287 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
27294 \begin_layout Standard
27296 \begin_inset Formula $W_{g\, n}$
27299 is the given width of all cells.
27306 is the LaTeX-length between the cell text and the cell border, its default
27307 value is 6\InsetSpace \thinspace{}
27315 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
27319 \begin_layout Standard
27320 Following equation\InsetSpace ~
27322 \begin_inset LatexCommand eqref
27323 reference "eq:Wtot_n"
27327 , the total width of a multicolumn
27328 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
27334 \begin_layout Standard
27335 \begin_inset Formula \begin{equation}
27336 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
27343 \begin_layout Standard
27344 By setting equation\InsetSpace ~
27346 \begin_inset LatexCommand eqref
27347 reference "eq:Wtot_n"
27352 \begin_inset LatexCommand eqref
27353 reference "eq:Wtot_mult"
27357 equal we can calculate the needed given width
27358 \begin_inset Formula $W_{g\, n}$
27365 columns are spanned, so that each column has a total width of
27366 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
27372 \begin_layout Standard
27373 \begin_inset Formula \begin{equation}
27374 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
27381 \begin_layout Bibliography
27382 \begin_inset LatexCommand bibitem
27383 key "latexcompanion"
27387 Frank Mittelbach and Michel Goossens:
27389 The LaTeX Companion Second Edition.
27392 Addison-Wesley, 2004
27395 \begin_layout Bibliography
27396 \begin_inset LatexCommand bibitem
27401 Helmut Kopka and Patrick W.
27404 A Guide to LaTeX Fourth Edition.
27407 Addison-Wesley, 2003
27410 \begin_layout Bibliography
27411 \begin_inset LatexCommand bibitem
27418 LaTeX: A Document Preparation System.
27421 Addison-Wesley, second edition, 1994
27424 \begin_layout Bibliography
27425 \begin_inset LatexCommand bibitem
27434 \begin_layout Standard
27438 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
27448 \begin_layout Standard
27455 of the LaTeX-package
27460 \begin_inset LatexCommand index
27461 name "LaTeX-packages ! booktabs"
27468 \begin_layout Bibliography
27469 \begin_inset LatexCommand bibitem
27478 \begin_layout Standard
27482 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
27491 \begin_layout Standard
27498 of the LaTeX-package
27503 \begin_inset LatexCommand index
27504 name "LaTeX-packages ! caption"
27511 \begin_layout Bibliography
27512 \begin_inset LatexCommand bibitem
27521 \begin_layout Standard
27525 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
27535 \begin_layout Standard
27542 of the LaTeX-package
27547 \begin_layout Bibliography
27548 \begin_inset LatexCommand bibitem
27557 \begin_layout Standard
27561 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
27571 \begin_layout Standard
27578 of the LaTeX-package
27580 endf\SpecialChar \textcompwordmark{}
27584 \begin_inset LatexCommand index
27585 name "LaTeX-packages ! endfloat"
27592 \begin_layout Bibliography
27593 \begin_inset LatexCommand bibitem
27602 \begin_layout Standard
27606 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
27616 \begin_layout Standard
27623 of the LaTeX-package
27625 floatf\SpecialChar \textcompwordmark{}
27629 \begin_inset LatexCommand index
27630 name "LaTeX-packages ! floatflt"
27637 \begin_layout Bibliography
27638 \begin_inset LatexCommand bibitem
27647 \begin_layout Standard
27651 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
27661 \begin_layout Standard
27668 of the LaTeX-package
27673 \begin_inset LatexCommand index
27674 name "LaTeX-packages ! footmisc"
27681 \begin_layout Bibliography
27682 \begin_inset LatexCommand bibitem
27691 \begin_layout Standard
27695 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
27704 \begin_layout Standard
27711 of the LaTeX-package
27716 \begin_inset LatexCommand index
27717 name "LaTeX-packages ! hyperref"
27724 \begin_layout Bibliography
27725 \begin_inset LatexCommand bibitem
27734 \begin_layout Standard
27738 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
27748 \begin_layout Standard
27755 of the LaTeX-package
27760 \begin_inset LatexCommand index
27761 name "LaTeX-packages ! hyperref"
27768 \begin_layout Bibliography
27769 \begin_inset LatexCommand bibitem
27778 \begin_layout Standard
27782 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
27792 \begin_layout Standard
27799 of the LaTeX-package
27804 \begin_inset LatexCommand index
27805 name "LaTeX-packages ! koma-script"
27812 \begin_layout Bibliography
27813 \begin_inset LatexCommand bibitem
27814 key "koma-script-de"
27822 \begin_layout Standard
27826 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
27836 \begin_layout Standard
27843 of the LaTeX-package
27848 \begin_inset LatexCommand index
27849 name "LaTeX-packages ! koma-script"
27856 \begin_layout Bibliography
27857 \begin_inset LatexCommand bibitem
27866 \begin_layout Standard
27870 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
27880 \begin_layout Standard
27887 of the LaTeX-package
27892 \begin_inset LatexCommand index
27893 name "LaTeX-packages ! marginnote"
27900 \begin_layout Bibliography
27901 \begin_inset LatexCommand bibitem
27910 \begin_layout Standard
27914 href{http://tug.org/PSTricks/main.cgi/}{
27923 \begin_layout Standard
27930 of the LaTeX-package
27935 \begin_inset LatexCommand index
27936 name "LaTeX-packages ! PSTricks"
27943 \begin_layout Bibliography
27944 \begin_inset LatexCommand bibitem
27953 \begin_layout Standard
27957 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
27966 \begin_layout Standard
27973 of the LaTeX-package
27978 \begin_inset LatexCommand index
27979 name "LaTeX-packages ! sidecap"
27986 \begin_layout Bibliography
27987 \begin_inset LatexCommand bibitem
27996 \begin_layout Standard
28000 href{http://wiki.lyx.org/LyX/NewInLyX15}{
28009 \begin_layout Standard
28016 about new LyX-features planned for the release
28023 \begin_layout Standard
28024 \begin_inset LatexCommand printindex
28031 \begin_layout Standard
28032 \begin_inset FloatList figure
28039 \begin_layout Standard
28040 \begin_inset FloatList table