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
8484 \begin_layout Standard
8485 must be inserted as ERT at the beginning of the cell.
8486 This assures that the part of the cell that will be displayed on the new
8487 page appears with the full width.
8491 \begin_layout Standard
8493 \begin_inset Tabular
8494 <lyxtabular version="3" rows="39" columns="3">
8495 <features islongtable="true">
8496 <column alignment="left" valignment="top" leftline="true" width="0cm">
8497 <column alignment="left" valignment="top" rightline="true" width="3cm">
8498 <column alignment="right" valignment="top" rightline="true" width="0pt">
8499 <row endfirsthead="true">
8500 <cell alignment="right" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8503 \begin_layout Standard
8507 \begin_layout Standard
8511 caption[Table with forced page break in table cell]{Table with forced page
8518 \begin_inset LatexCommand label
8519 name "tab:ForcedPagebreak"
8527 \begin_layout Standard
8543 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8546 \begin_layout Standard
8550 \begin_layout Standard
8562 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8565 \begin_layout Standard
8569 \begin_layout Standard
8582 <row topline="true" bottomline="true" endfirsthead="true">
8583 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8586 \begin_layout Standard
8589 Example Phone List (ignore the names)
8594 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8597 \begin_layout Standard
8603 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8606 \begin_layout Standard
8613 <row topline="true" bottomline="true" endfirsthead="true">
8614 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8617 \begin_layout Standard
8625 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8628 \begin_layout Standard
8634 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8637 \begin_layout Standard
8646 <row bottomline="true" endhead="true">
8647 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8650 \begin_layout Standard
8654 \begin_layout Standard
8658 caption{Continued table with forced page break in table cell}
8672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8675 \begin_layout Standard
8679 \begin_layout Standard
8691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8694 \begin_layout Standard
8698 \begin_layout Standard
8711 <row topline="true" bottomline="true" endhead="true">
8712 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8715 \begin_layout Standard
8723 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8726 \begin_layout Standard
8732 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8735 \begin_layout Standard
8742 <row topline="true" bottomline="true" endhead="true">
8743 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8746 \begin_layout Standard
8754 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8757 \begin_layout Standard
8763 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8766 \begin_layout Standard
8775 <row topline="true" bottomline="true" endfoot="true">
8776 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
8779 \begin_layout Standard
8780 continued on next page
8785 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8788 \begin_layout Standard
8794 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8797 \begin_layout Standard
8805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8808 \begin_layout Standard
8816 <cell alignment="center" valignment="top" topline="true" usebox="none">
8819 \begin_layout Standard
8825 <cell alignment="right" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8828 \begin_layout Standard
8836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8839 \begin_layout Standard
8847 <cell alignment="center" valignment="top" topline="true" usebox="none">
8850 \begin_layout Standard
8856 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8859 \begin_layout Standard
8867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8870 \begin_layout Standard
8878 <cell alignment="center" valignment="top" topline="true" usebox="none">
8881 \begin_layout Standard
8887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8890 \begin_layout Standard
8898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8901 \begin_layout Standard
8909 <cell alignment="center" valignment="top" topline="true" usebox="none">
8912 \begin_layout Standard
8918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8921 \begin_layout Standard
8929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8932 \begin_layout Standard
8940 <cell alignment="center" valignment="top" topline="true" usebox="none">
8943 \begin_layout Standard
8949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8952 \begin_layout Standard
8960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8963 \begin_layout Standard
8971 <cell alignment="center" valignment="top" topline="true" usebox="none">
8974 \begin_layout Standard
8980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8983 \begin_layout Standard
8991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8994 \begin_layout Standard
9002 <cell alignment="center" valignment="top" topline="true" usebox="none">
9005 \begin_layout Standard
9011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9014 \begin_layout Standard
9022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9025 \begin_layout Standard
9033 <cell alignment="center" valignment="top" topline="true" usebox="none">
9036 \begin_layout Standard
9042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9045 \begin_layout Standard
9053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9056 \begin_layout Standard
9064 <cell alignment="center" valignment="top" topline="true" usebox="none">
9067 \begin_layout Standard
9073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9076 \begin_layout Standard
9084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9087 \begin_layout Standard
9095 <cell alignment="center" valignment="top" topline="true" usebox="none">
9098 \begin_layout Standard
9104 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9107 \begin_layout Standard
9115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9118 \begin_layout Standard
9126 <cell alignment="center" valignment="top" topline="true" usebox="none">
9129 \begin_layout Standard
9135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9138 \begin_layout Standard
9146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9149 \begin_layout Standard
9157 <cell alignment="center" valignment="top" topline="true" usebox="none">
9160 \begin_layout Standard
9166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9169 \begin_layout Standard
9177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9180 \begin_layout Standard
9188 <cell alignment="center" valignment="top" topline="true" usebox="none">
9191 \begin_layout Standard
9197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9200 \begin_layout Standard
9208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9211 \begin_layout Standard
9219 <cell alignment="center" valignment="top" topline="true" usebox="none">
9222 \begin_layout Standard
9228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9231 \begin_layout Standard
9239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9242 \begin_layout Standard
9250 <cell alignment="center" valignment="top" topline="true" usebox="none">
9253 \begin_layout Standard
9259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9262 \begin_layout Standard
9270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9273 \begin_layout Standard
9281 <cell alignment="center" valignment="top" topline="true" usebox="none">
9284 \begin_layout Standard
9290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9293 \begin_layout Standard
9301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9304 \begin_layout Standard
9312 <cell alignment="center" valignment="top" topline="true" usebox="none">
9315 \begin_layout Standard
9321 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9324 \begin_layout Standard
9332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9335 \begin_layout Standard
9343 <cell alignment="center" valignment="top" topline="true" usebox="none">
9346 \begin_layout Standard
9352 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9355 \begin_layout Standard
9363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9366 \begin_layout Standard
9374 <cell alignment="center" valignment="top" topline="true" usebox="none">
9377 \begin_layout Standard
9383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9386 \begin_layout Standard
9394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9397 \begin_layout Standard
9405 <cell alignment="center" valignment="top" topline="true" usebox="none">
9408 \begin_layout Standard
9414 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9417 \begin_layout Standard
9425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9428 \begin_layout Standard
9436 <cell alignment="center" valignment="top" topline="true" usebox="none">
9439 \begin_layout Standard
9445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9448 \begin_layout Standard
9456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9459 \begin_layout Standard
9467 <cell alignment="center" valignment="top" topline="true" usebox="none">
9470 \begin_layout Standard
9476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9479 \begin_layout Standard
9487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9490 \begin_layout Standard
9498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9501 \begin_layout Standard
9503 Fürst von Montecompatri, 11.
9504 Fürst von Sulmona und Vivaro, 10.
9505 Fürst von Rossano, 5.
9506 Herzog von Canemorte, 11.
9507 Herzog von Palombara, 5.
9508 Herzog von Castelchiodato,
9512 \begin_layout Standard
9521 \begin_layout Standard
9529 Herzog von Poggionativo, 11.
9530 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
9531 Graf von Valinfreda, 11.
9532 Baron von Cropalati, 11.
9533 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
9538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9541 \begin_layout Standard
9549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9552 \begin_layout Standard
9560 <cell alignment="center" valignment="top" topline="true" usebox="none">
9563 \begin_layout Standard
9569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9572 \begin_layout Standard
9580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9583 \begin_layout Standard
9591 <cell alignment="center" valignment="top" topline="true" usebox="none">
9594 \begin_layout Standard
9600 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9603 \begin_layout Standard
9611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9614 \begin_layout Standard
9622 <cell alignment="center" valignment="top" topline="true" usebox="none">
9625 \begin_layout Standard
9631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9634 \begin_layout Standard
9642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9645 \begin_layout Standard
9653 <cell alignment="center" valignment="top" topline="true" usebox="none">
9656 \begin_layout Standard
9662 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9665 \begin_layout Standard
9673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9676 \begin_layout Standard
9684 <cell alignment="center" valignment="top" topline="true" usebox="none">
9687 \begin_layout Standard
9693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9696 \begin_layout Standard
9704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9707 \begin_layout Standard
9715 <cell alignment="center" valignment="top" topline="true" usebox="none">
9718 \begin_layout Standard
9724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9727 \begin_layout Standard
9735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9738 \begin_layout Standard
9746 <cell alignment="center" valignment="top" topline="true" usebox="none">
9749 \begin_layout Standard
9755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9758 \begin_layout Standard
9765 <row bottomline="true">
9766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9769 \begin_layout Standard
9777 <cell alignment="center" valignment="top" topline="true" usebox="none">
9780 \begin_layout Standard
9786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9789 \begin_layout Standard
9796 <row endlastfoot="true">
9797 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9800 \begin_layout Standard
9806 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9809 \begin_layout Standard
9815 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9818 \begin_layout Standard
9832 \begin_layout Section
9833 Multiple Lines Columns and Rows
9836 \begin_layout Subsection
9837 Multiple Lines in Table Cells
9838 \begin_inset LatexCommand label
9839 name "sub:Multiple-Lines-in"
9844 \begin_inset LatexCommand index
9845 name "Multiple Lines in Table Cells"
9850 \begin_inset LatexCommand index
9851 name "Table ! Linebreaks"
9858 \begin_layout Standard
9860 \begin_inset Float table
9866 \begin_layout Caption
9867 \begin_inset LatexCommand label
9868 name "tab:Table-with-multiple"
9872 Table with multiple lines in cells
9875 \begin_layout Standard
9877 \begin_inset Tabular
9878 <lyxtabular version="3" rows="3" columns="3">
9880 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
9881 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
9882 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
9883 <row topline="true">
9884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9887 \begin_layout Standard
9892 \begin_layout Standard
9906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9909 \begin_layout Standard
9915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9918 \begin_layout Standard
9925 <row topline="true">
9926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9929 \begin_layout Standard
9935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9938 \begin_layout Standard
9944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9947 \begin_layout Standard
9954 <row topline="true" bottomline="true">
9955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9958 \begin_layout Standard
9964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9967 \begin_layout Standard
9973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9976 \begin_layout Standard
9995 \begin_layout Standard
9996 Adjusting a fixed width for a column, enables to enter text as a paragraph
9997 with multiple lines and hyphenations.
10000 \begin_layout Standard
10001 To produce Table\InsetSpace ~
10003 \begin_inset LatexCommand ref
10004 reference "tab:Table-with-multiple"
10008 , create a 3×3 table, mark the first cell and right-click on it.
10009 In the appearing table dialog we set a cell width of 2.5\InsetSpace \thinspace{}
10010 cm and choose centered
10011 for the vertical and horizontal alignment.
10012 As our text is smaller than than 2.5\InsetSpace \thinspace{}
10013 cm, only one line will appear.
10014 To get two lines, we add a line break with the command
10017 \begin_layout Standard
10025 \begin_layout Standard
10027 If the text is wider than the set cell width it will automatically be broken
10031 \begin_layout Standard
10032 To center the text inside the two other cells of the first row vertically,
10033 right-click in the second cell, adjust a fixed width of 0.5\InsetSpace \thinspace{}
10035 centered alignments.
10036 Then do the same for the third cell of the row.
10039 \begin_layout Standard
10040 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10041 by LaTeX if it is the first entry.
10042 Therefore you need to insert something, to make the word not being the
10043 first entry: Add the command
10046 \begin_layout Standard
10054 \begin_layout Standard
10055 in ERT before the word.
10056 As the space is zero, it doesn't change the output.
10059 \begin_inset LatexCommand ref
10060 reference "tab:Table-with-and"
10067 \begin_layout Standard
10068 \begin_inset Float table
10073 \begin_layout Caption
10074 \begin_inset LatexCommand label
10075 name "tab:Table-with-and"
10079 Table with and without hyphenation
10082 \begin_layout Standard
10086 \begin_inset Tabular
10087 <lyxtabular version="3" rows="3" columns="3">
10089 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10090 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10091 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10092 <row topline="true">
10093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10096 \begin_layout Standard
10097 verylongtablecellword
10102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10105 \begin_layout Standard
10111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10114 \begin_layout Standard
10121 <row topline="true">
10122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10125 \begin_layout Standard
10131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10134 \begin_layout Standard
10140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10143 \begin_layout Standard
10150 <row topline="true" bottomline="true">
10151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10154 \begin_layout Standard
10160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10163 \begin_layout Standard
10169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10172 \begin_layout Standard
10186 \begin_inset Tabular
10187 <lyxtabular version="3" rows="3" columns="3">
10189 <column alignment="center" valignment="middle" leftline="true" width="2.5cm">
10190 <column alignment="center" valignment="middle" leftline="true" width="0.5cm">
10191 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0.5cm">
10192 <row topline="true">
10193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10196 \begin_layout Standard
10200 \begin_layout Standard
10209 verylongtablecellword
10214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10217 \begin_layout Standard
10223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10226 \begin_layout Standard
10233 <row topline="true">
10234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10237 \begin_layout Standard
10243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10246 \begin_layout Standard
10252 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10255 \begin_layout Standard
10262 <row topline="true" bottomline="true">
10263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10266 \begin_layout Standard
10272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10275 \begin_layout Standard
10281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10284 \begin_layout Standard
10305 \begin_layout Standard
10311 \begin_layout Subsection
10313 \begin_inset LatexCommand label
10314 name "sub:Multicolumns"
10319 \begin_inset LatexCommand index
10320 name "Multicolumns"
10325 \begin_inset LatexCommand index
10326 name "Table ! Multicolumns"
10333 \begin_layout Subsubsection
10337 \begin_layout Standard
10338 To span a cell over multiple columns, mark as much cells within a line that
10339 should be one spanned cell and use either the table-toolbar button
10340 \begin_inset Graphics
10341 filename ../images/tabular-feature_multicolumn.xpm
10348 Edit\SpecialChar \menuseparator
10349 Table\SpecialChar \menuseparator
10352 , or right click on the marked cells and choose multicolumn in the appearing
10353 table dialog under the tab
10360 \begin_layout Standard
10361 Multicolumns have there own cell settings.
10362 That means changing cell borders, cell alignment, and the width only affects
10364 Here is an example table with a multicolumn cell in the first row and one
10365 in the last row without the upper border:
10368 \begin_layout Standard
10370 \begin_inset Tabular
10371 <lyxtabular version="3" rows="3" columns="4">
10372 <features firstHeadTopDL="true" firstHeadBottomDL="true">
10373 <column alignment="center" valignment="top" leftline="true" width="0pt">
10374 <column alignment="center" valignment="middle" leftline="true" width="0">
10375 <column alignment="center" valignment="top" leftline="true" width="0in">
10376 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
10377 <row topline="true" bottomline="true">
10378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10381 \begin_layout Standard
10387 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
10390 \begin_layout Standard
10400 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10403 \begin_layout Standard
10409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10412 \begin_layout Standard
10419 <row topline="true">
10420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10423 \begin_layout Standard
10438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10441 \begin_layout Standard
10447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10450 \begin_layout Standard
10456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10459 \begin_layout Standard
10466 <row topline="true" bottomline="true">
10467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10470 \begin_layout Standard
10476 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10479 \begin_layout Standard
10485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10488 \begin_layout Standard
10494 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10497 \begin_layout Standard
10511 \begin_layout Subsubsection
10512 Multicolumn Calculations
10513 \begin_inset LatexCommand label
10514 name "sub:Multicolumn-Calculations"
10519 \begin_inset LatexCommand index
10520 name "Multicolumns ! Calculations"
10527 \begin_layout Standard
10528 LyX supports multicolumns directly, but we have to take notice of the cell
10529 width of the columns spanned by the multicolumn cell.
10532 \begin_layout Standard
10533 \begin_inset Float table
10538 \begin_layout Caption
10539 \begin_inset LatexCommand label
10540 name "tab:Table-with-centered"
10544 Table with centered multicolumn text above two columns that have exactly
10545 half the width of the multicolumn cell
10546 \begin_inset OptArg
10549 \begin_layout Standard
10550 Perfect multicolumn table
10558 \begin_layout Standard
10560 \begin_inset Tabular
10561 <lyxtabular version="3" rows="3" columns="3">
10563 <column alignment="center" valignment="middle" leftline="true" width="0" special="|>{\centering}m{1.25cm-6.2pt}">
10564 <column alignment="center" valignment="middle" leftline="true" width="0">
10565 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10566 <row topline="true">
10567 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special="|>{\centering}m{2.5cm}|">
10570 \begin_layout Standard
10571 multiple lines multicolumn
10576 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10579 \begin_layout Standard
10585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10588 \begin_layout Standard
10595 <row topline="true">
10596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10599 \begin_layout Standard
10605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10608 \begin_layout Standard
10614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10617 \begin_layout Standard
10624 <row topline="true" bottomline="true">
10625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10628 \begin_layout Standard
10634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10637 \begin_layout Standard
10643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10646 \begin_layout Standard
10665 \begin_layout Standard
10666 To create for example Table\InsetSpace ~
10668 \begin_inset LatexCommand ref
10669 reference "tab:Table-with-centered"
10673 , mark the first two cells in the first row a 3×3 table and right-click
10675 Now choose for this cell
10683 and a width of 2.5\InsetSpace \thinspace{}
10684 cm in the table dialog.
10685 The spanned columns should have exactly half the width of the multicolumn
10686 cell, so that you would adjust a width of 1.25\InsetSpace \thinspace{}
10687 cm for the first column.
10688 The second column has then automatically a width of 1.25\InsetSpace \thinspace{}
10690 width - width of first column).
10691 This was done for Table\InsetSpace ~
10693 \begin_inset LatexCommand ref
10694 reference "tab:Table-without-half"
10701 \begin_layout Standard
10702 \begin_inset Float table
10707 \begin_layout Caption
10708 \begin_inset LatexCommand label
10709 name "tab:Table-without-half"
10713 Table where the spanned table columns have not exactly half the width of
10714 the multicolumn cell
10715 \begin_inset OptArg
10718 \begin_layout Standard
10719 Imperfect multicolumn table
10727 \begin_layout Standard
10729 \begin_inset Tabular
10730 <lyxtabular version="3" rows="3" columns="3">
10732 <column alignment="center" valignment="top" leftline="true" width="1.25cm">
10733 <column alignment="center" valignment="top" leftline="true" width="0">
10734 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
10735 <row topline="true" bottomline="true">
10736 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
10739 \begin_layout Standard
10740 multiple lines multicolumn
10745 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10748 \begin_layout Standard
10754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10757 \begin_layout Standard
10764 <row topline="true">
10765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10768 \begin_layout Standard
10774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10777 \begin_layout Standard
10783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10786 \begin_layout Standard
10793 <row topline="true" bottomline="true">
10794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10797 \begin_layout Standard
10803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10806 \begin_layout Standard
10812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10815 \begin_layout Standard
10834 \begin_layout Standard
10835 You can see that the first column has not the half width of the multicolumn
10836 cell, it is a bit bigger.
10837 The reason is that the given width of a cell
10838 \begin_inset Formula $W_{g}$
10841 is not its total width
10842 \begin_inset Formula $W_{\mathrm{tot}}$
10845 because a cell is always a bit larger than its given width.
10846 Appendix\InsetSpace ~
10848 \begin_inset LatexCommand eqref
10849 reference "cha:Explanation-of-Equation"
10853 explains it in detail.
10856 \begin_layout Standard
10857 The needed given width
10858 \begin_inset Formula $W_{g\, n}$
10865 columns are spanned columns can be calculated, so that each column has
10867 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
10871 \begin_inset Formula \begin{equation}
10872 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)·(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
10879 \begin_layout Standard
10880 In our case we have
10881 \begin_inset Formula $n=2$
10885 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
10888 cm and the default values for the lengths, so that equation
10889 \begin_inset LatexCommand ref
10895 \begin_inset Formula \begin{equation}
10896 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
10903 \begin_layout Standard
10904 To enable calculations in LaTeX, the LaTeX-package
10908 must be loaded with the document preamble line
10909 \begin_inset LatexCommand index
10910 name "LaTeX-packages ! calc"
10917 \begin_layout Standard
10925 \begin_layout Standard
10926 LyX does not allow to calculate lengths in the width-field of the table
10928 Therefore you have to format the column by inserting a LaTeX-argument in
10930 Here is an overview about the arguments:
10933 \begin_layout Itemize
10938 creates cell with a fixed width, its text is vertically top-aligned
10941 \begin_layout Itemize
10946 creates cell with a fixed width, its text is vertically centered
10949 \begin_layout Itemize
10954 creates cell with a fixed width, its text is vertically bottom-aligned
10957 \begin_layout Standard
10958 By entering a LaTeX-argument, all cell properties set in the table dialog
10961 \begin_inset Note Greyedout
10964 \begin_layout Standard
10969 Due to a bug, LyX shows the overwritten properties anyway.
10974 As the text should be horizontally centered, the command
10981 You can now enter the following LaTeX-argument for the first spanned column:
10984 \begin_layout Standard
10989 centering}m{1.25cm-6.2pt}
10992 \begin_layout Standard
10994 \begin_inset Quotes eld
11002 \begin_inset Quotes erd
11005 at the beginning draws the border line and the command
11009 means, that the commands inside the braces are applied before the cell
11013 \begin_layout Standard
11014 Although we have chosen centered alignment for the text of the multicolumn
11015 cell, it is still left aligned.
11016 This is because LyX only applies the alignment to single columns.
11017 So we have to use for the multicolumn the LaTeX-argument
11020 \begin_layout Standard
11025 centering}m{2.5cm}|
11028 \begin_layout Subsection
11030 \begin_inset LatexCommand index
11036 \begin_inset LatexCommand index
11037 name "Table ! Multirows"
11042 \begin_inset LatexCommand index
11043 name "LaTeX-packages ! multirow"
11050 \begin_layout Standard
11051 In contrary to multicolumns multirows are not yet supported by LyX so a
11052 bit of ERT needs to be used.
11053 To use multirows load the LaTeX-package
11057 in your document preamble with the command
11060 \begin_layout Standard
11065 usepackage{multirow}
11068 \begin_layout Standard
11069 Multirows are created with the command
11072 \begin_layout Standard
11077 multirow{number of rows}{cell width}{cell entry}
11080 \begin_layout Standard
11081 To create the following table:
11084 \begin_layout Standard
11089 \begin_layout Standard
11103 \begin_inset Tabular
11104 <lyxtabular version="3" rows="3" columns="3">
11106 <column alignment="center" valignment="top" leftline="true" width="0">
11107 <column alignment="center" valignment="top" leftline="true" width="0">
11108 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
11109 <row topline="true">
11110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11113 \begin_layout Standard
11119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11122 \begin_layout Standard
11128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11131 \begin_layout Standard
11138 <row topline="true">
11139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11142 \begin_layout Standard
11146 \begin_layout Standard
11150 multirow{2}{2.5cm}{
11159 \begin_layout Standard
11171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11174 \begin_layout Standard
11180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11183 \begin_layout Standard
11190 <row topline="true" bottomline="true">
11191 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11194 \begin_layout Standard
11200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11203 \begin_layout Standard
11209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11212 \begin_layout Standard
11227 \begin_layout Standard
11243 \begin_layout Standard
11244 create a 3×3 table.
11245 To get rid of the line above the last cell in the first column, the cell
11246 is marked as multicolumn and the upper border is unset.
11247 The multirow is now created in the second row of the first column by inserting
11251 \begin_layout Standard
11256 multirow{2}{2.5cm}{
11259 \begin_layout Standard
11261 According to the command parameters the multirow spans now two rows and
11262 has a width of 2.5\InsetSpace \thinspace{}
11264 The content of the multirow cell follows outside the ERT box and the command
11265 is finished with a right brace
11269 in another ERT-box behind the text.
11272 \begin_layout Standard
11279 left-aligns its content by default.
11280 To override the default, renew the command
11289 \begin_layout Standard
11301 \begin_layout Standard
11302 in ERT in the document preamble.
11303 Then all entries of multirow cells in the document are centered.
11304 If centering is only needed for several tables, you can renew the command
11305 in an ERT box just before the table instead of the preamble.
11306 If the text should be right-aligned, replace
11319 To return to left-alignment
11328 \begin_layout Section
11330 \begin_inset LatexCommand label
11331 name "sec:Formal-Tables"
11336 \begin_inset LatexCommand index
11337 name "Table ! Formal"
11344 \begin_layout Standard
11345 Tables are often typeset in books similar to Table\InsetSpace ~
11347 \begin_inset LatexCommand ref
11348 reference "tab:Example-booktabs-table"
11353 This kind of tables is called
11354 \begin_inset Quotes eld
11362 \begin_inset Quotes erd
11366 To make a table a formal table use the option
11374 tab of the table dialog.
11377 \begin_layout Standard
11378 \begin_inset Float table
11384 \begin_layout Caption
11385 \begin_inset LatexCommand label
11386 name "tab:Example-booktabs-table"
11390 Example booktabs-table
11393 \begin_layout Standard
11395 \begin_inset Tabular
11396 <lyxtabular version="3" rows="8" columns="4">
11397 <features booktabs="true">
11398 <column alignment="center" valignment="top" rightline="true" width="0">
11399 <column alignment="center" valignment="top" width="0">
11400 <column alignment="center" valignment="top" width="0">
11401 <column alignment="center" valignment="top" width="0">
11402 <row topline="true">
11403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11406 \begin_layout Standard
11412 <cell alignment="center" valignment="top" topline="true" usebox="none">
11415 \begin_layout Standard
11417 \begin_inset Formula $\,$
11425 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
11428 \begin_layout Standard
11430 \begin_inset Formula $\,$
11438 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11441 \begin_layout Standard
11449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11452 \begin_layout Standard
11456 \begin_layout Standard
11469 \begin_layout Standard
11478 Detector thickness [
11482 \begin_layout Standard
11496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11499 \begin_layout Standard
11505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11508 \begin_layout Standard
11514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11517 \begin_layout Standard
11524 <row topline="true">
11525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11528 \begin_layout Standard
11534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11537 \begin_layout Standard
11543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11546 \begin_layout Standard
11552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11555 \begin_layout Standard
11562 <row topspace="default">
11563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11566 \begin_layout Standard
11567 Spatial resolution [
11571 \begin_layout Standard
11585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11588 \begin_layout Standard
11594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11597 \begin_layout Standard
11603 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11606 \begin_layout Standard
11613 <row topspace="default">
11614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11617 \begin_layout Standard
11619 \begin_inset Formula $f_{\mathrm{max}}$
11627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11630 \begin_layout Standard
11636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11639 \begin_layout Standard
11645 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11648 \begin_layout Standard
11655 <row topspace="default">
11656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11659 \begin_layout Standard
11663 \begin_layout Standard
11667 cmidrule(l{10pt}){1-1}
11672 LSF-spatial resolution
11677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11680 \begin_layout Standard
11686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11689 \begin_layout Standard
11695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11698 \begin_layout Standard
11706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11709 \begin_layout Standard
11714 \begin_layout Standard
11728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11731 \begin_layout Standard
11737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11740 \begin_layout Standard
11746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11749 \begin_layout Standard
11756 <row bottomline="true">
11757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11760 \begin_layout Standard
11766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11769 \begin_layout Standard
11775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11778 \begin_layout Standard
11784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11787 \begin_layout Standard
11806 \begin_layout Standard
11807 Spaces to table rows can be added using the
11811 tab of the table dialog as described in section\InsetSpace ~
11813 \begin_inset LatexCommand ref
11814 reference "sub:Row-Spacing"
11821 \begin_layout Standard
11822 In contrary to normal tables, formal tables have no vertical table lines.
11823 The horizontal table lines can be set like for normal tables but they appear
11824 with different width in the output:
11826 The first and the last table line have
11827 a default width of 0.08\InsetSpace \thinspace{}
11828 em while the other lines have a default width of
11829 0.05\InsetSpace \thinspace{}
11833 \begin_layout Standard
11834 The default widths can be changed with the following preamble lines
11837 \begin_layout Standard
11857 \begin_layout Standard
11858 This example is for the first line, the so called toprule.
11859 If you want to change the width for the last line, replace
11868 To change the width for the other lines replace
11877 You can use all units listed in appendix\InsetSpace ~
11879 \begin_inset LatexCommand ref
11880 reference "cha:Units-available-in"
11887 \begin_layout Standard
11888 Lines that don't span over all table columns can be created by setting a
11889 table line for multicolumn cells.
11890 LyX will then internally use the command
11896 to create this line.
11900 \begin_layout Standard
11905 cmidrule[width](trim){startcol-endcol}
11908 \begin_layout Standard
11915 are are currently not supported by LyX so you have to use ERT to be able
11923 s can manually be created by inserting the command as ERT as first cell
11924 entry of the first cell of a row.
11925 The line is then drawn in the output above the current row.
11928 \begin_layout Standard
11929 The default for the width is 0.03\InsetSpace \thinspace{}
11931 Startcol is the number of the column where the line starts and endcol the
11932 column number where the line ends.
11933 The endcol always needs to be specified, also when the line should span
11935 The optional parameter trim could be either
11943 where the trimwidth is also optional.
11944 Using for example the parameter
11948 means that the line is trimmed from its left end by 2\InsetSpace \thinspace{}
11950 If you don't specify the trimwidth the lines are trimmed by the default
11951 of 0.5\InsetSpace \thinspace{}
11955 \begin_layout Standard
11956 \begin_inset VSpace bigskip
11961 \begin_inset LatexCommand ref
11962 reference "tab:Example-booktabs-table"
11966 was created using the commands
11969 \begin_layout Standard
11979 \begin_layout Standard
11980 at the beginning of the in the second row and
11983 \begin_layout Standard
11988 cmidrule(l{10pt}){1-1}
11991 \begin_layout Standard
11995 \begin_layout Standard
11999 \begin_layout Standard
12000 \begin_inset VSpace bigskip
12006 \begin_layout Standard
12007 You might want to have overlapping
12013 s like in Table\InsetSpace ~
12015 \begin_inset LatexCommand ref
12016 reference "tab:Special-booktabs-table"
12021 This can be achieved with the ERT command
12024 \begin_layout Standard
12032 \begin_layout Standard
12033 The command that was used for the second row of Table\InsetSpace ~
12035 \begin_inset LatexCommand ref
12036 reference "tab:Special-booktabs-table"
12043 \begin_layout Standard
12057 \begin_layout Standard
12058 The command for the sixth row is
12061 \begin_layout Standard
12073 \begin_layout Standard
12074 \begin_inset VSpace bigskip
12080 \begin_layout Standard
12081 If you are anyway not satisfied with the border line spacing, you can use
12082 the following command to produce lines that span over all table columns
12087 \begin_layout Standard
12092 specialrule{width}{space above}{space below}
12095 \begin_layout Standard
12096 For more informations about these specialties, we refer to the manual of
12102 \begin_inset LatexCommand cite
12108 \begin_inset LatexCommand index
12109 name "LaTeX-packages ! booktabs"
12116 \begin_layout Standard
12117 \begin_inset Float table
12123 \begin_layout Caption
12124 \begin_inset LatexCommand label
12125 name "tab:Special-booktabs-table"
12129 Special booktabs-table
12132 \begin_layout Standard
12134 \begin_inset Tabular
12135 <lyxtabular version="3" rows="8" columns="4">
12136 <features booktabs="true">
12137 <column alignment="center" valignment="top" width="0">
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 <row topline="true">
12142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12145 \begin_layout Standard
12151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12154 \begin_layout Standard
12155 Medipix\InsetSpace \thinspace{}
12161 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
12164 \begin_layout Standard
12165 Medipix\InsetSpace \thinspace{}
12171 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12174 \begin_layout Standard
12182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12185 \begin_layout Standard
12189 \begin_layout Standard
12202 \begin_layout Standard
12215 \begin_layout Standard
12228 \begin_layout Standard
12237 Detector thickness [
12241 \begin_layout Standard
12255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12258 \begin_layout Standard
12264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12267 \begin_layout Standard
12273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12276 \begin_layout Standard
12283 <row topline="true">
12284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12287 \begin_layout Standard
12293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12296 \begin_layout Standard
12302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12305 \begin_layout Standard
12311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12314 \begin_layout Standard
12321 <row topspace="default">
12322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12325 \begin_layout Standard
12326 Spatial resolution [
12330 \begin_layout Standard
12344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12347 \begin_layout Standard
12353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12356 \begin_layout Standard
12362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12365 \begin_layout Standard
12372 <row topspace="default">
12373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12376 \begin_layout Standard
12378 \begin_inset Formula $f_{\mathrm{max}}$
12386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12389 \begin_layout Standard
12395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12398 \begin_layout Standard
12404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12407 \begin_layout Standard
12414 <row topline="true">
12415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12418 \begin_layout Standard
12422 \begin_layout Standard
12435 \begin_layout Standard
12444 LSF-spatial resolution
12449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12452 \begin_layout Standard
12458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12461 \begin_layout Standard
12467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12470 \begin_layout Standard
12478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12481 \begin_layout Standard
12486 \begin_layout Standard
12500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12503 \begin_layout Standard
12509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12512 \begin_layout Standard
12518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12521 \begin_layout Standard
12528 <row bottomline="true">
12529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12532 \begin_layout Standard
12538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12541 \begin_layout Standard
12547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12550 \begin_layout Standard
12556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12559 \begin_layout Standard
12578 \begin_layout Section
12579 Vertical Table Alignment
12580 \begin_inset LatexCommand index
12581 name "Table ! Alignment"
12588 \begin_layout Standard
12589 To align tables vertically in a text line the table must be inside a box.
12590 The box can then be vertically aligned as described in section\InsetSpace ~
12592 \begin_inset LatexCommand ref
12593 reference "sec:Box-Dialog"
12600 \begin_layout Standard
12601 In the following example the tables are inside a minipage
12605 \begin_layout Standard
12606 Minipages are described in section\InsetSpace ~
12608 \begin_inset LatexCommand ref
12609 reference "sec:Minipages"
12618 box that has a width of 15\InsetSpace \thinspace{}
12622 \begin_layout Itemize
12624 \begin_inset Box Frameless
12633 height_special "totalheight"
12636 \begin_layout Standard
12637 \begin_inset Tabular
12638 <lyxtabular version="3" rows="3" columns="3">
12640 <column alignment="center" valignment="top" leftline="true" width="0">
12641 <column alignment="center" valignment="top" leftline="true" width="0">
12642 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12643 <row topline="true">
12644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12647 \begin_layout Standard
12653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12656 \begin_layout Standard
12662 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12665 \begin_layout Standard
12672 <row topline="true">
12673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12676 \begin_layout Standard
12682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12685 \begin_layout Standard
12691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12694 \begin_layout Standard
12701 <row topline="true" bottomline="true">
12702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12705 \begin_layout Standard
12711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12714 \begin_layout Standard
12720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12723 \begin_layout Standard
12743 \begin_layout Standard
12755 \begin_inset Box Frameless
12764 height_special "totalheight"
12767 \begin_layout Standard
12768 \begin_inset Tabular
12769 <lyxtabular version="3" rows="3" columns="3">
12771 <column alignment="center" valignment="top" leftline="true" width="0">
12772 <column alignment="center" valignment="top" leftline="true" width="0">
12773 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12774 <row topline="true">
12775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12778 \begin_layout Standard
12784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12787 \begin_layout Standard
12793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12796 \begin_layout Standard
12803 <row topline="true">
12804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12807 \begin_layout Standard
12813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12816 \begin_layout Standard
12822 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12825 \begin_layout Standard
12832 <row topline="true" bottomline="true">
12833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12836 \begin_layout Standard
12842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12845 \begin_layout Standard
12851 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12854 \begin_layout Standard
12874 \begin_layout Standard
12884 \begin_layout Itemize
12886 \begin_inset Box Frameless
12895 height_special "totalheight"
12898 \begin_layout Standard
12899 \begin_inset Tabular
12900 <lyxtabular version="3" rows="3" columns="3">
12902 <column alignment="center" valignment="top" leftline="true" width="0">
12903 <column alignment="center" valignment="top" leftline="true" width="0">
12904 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
12905 <row topline="true">
12906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12909 \begin_layout Standard
12915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12918 \begin_layout Standard
12924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12927 \begin_layout Standard
12934 <row topline="true">
12935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12938 \begin_layout Standard
12944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12947 \begin_layout Standard
12953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12956 \begin_layout Standard
12963 <row topline="true" bottomline="true">
12964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12967 \begin_layout Standard
12973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12976 \begin_layout Standard
12982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12985 \begin_layout Standard
13004 \begin_layout Itemize
13006 \begin_inset Box Frameless
13015 height_special "totalheight"
13018 \begin_layout Standard
13019 \begin_inset Tabular
13020 <lyxtabular version="3" rows="3" columns="3">
13022 <column alignment="center" valignment="top" leftline="true" width="0">
13023 <column alignment="center" valignment="top" leftline="true" width="0">
13024 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13025 <row topline="true">
13026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13029 \begin_layout Standard
13035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13038 \begin_layout Standard
13044 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13047 \begin_layout Standard
13054 <row topline="true">
13055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13058 \begin_layout Standard
13064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13067 \begin_layout Standard
13073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13076 \begin_layout Standard
13083 <row topline="true" bottomline="true">
13084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13087 \begin_layout Standard
13093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13096 \begin_layout Standard
13102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13105 \begin_layout Standard
13125 \begin_layout Standard
13137 \begin_inset Box Frameless
13146 height_special "totalheight"
13149 \begin_layout Standard
13150 \begin_inset Tabular
13151 <lyxtabular version="3" rows="3" columns="3">
13153 <column alignment="center" valignment="top" leftline="true" width="0">
13154 <column alignment="center" valignment="top" leftline="true" width="0">
13155 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13156 <row topline="true">
13157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13160 \begin_layout Standard
13166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13169 \begin_layout Standard
13175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13178 \begin_layout Standard
13185 <row topline="true">
13186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13189 \begin_layout Standard
13195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13198 \begin_layout Standard
13204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13207 \begin_layout Standard
13214 <row topline="true" bottomline="true">
13215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13218 \begin_layout Standard
13224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13227 \begin_layout Standard
13233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13236 \begin_layout Standard
13256 \begin_layout Standard
13266 \begin_layout Standard
13267 As you can see, the content of the first and last table row is not correctly
13268 aligned with the text line where the table is in.
13269 To get this alignment, the minipage box must be set into a raisebox
13273 \begin_layout Standard
13274 Raiseboxes are described in section\InsetSpace ~
13276 \begin_inset LatexCommand ref
13277 reference "sub:Vertical-Alignment"
13287 In the example above the second table in the first item is aligned using
13291 \begin_layout Standard
13301 \begin_layout Standard
13303 Behind the box the closing brace
13307 is inserted as ERT.
13308 For the second table in the last item the command
13311 \begin_layout Standard
13321 \begin_layout Standard
13325 \begin_layout Standard
13326 \begin_inset Note Greyedout
13329 \begin_layout Standard
13334 The alignment of the table row content to the surrounding text line is not
13336 The needed factor of the
13342 command for this alignment depends on the document font, the font size,
13343 and the table line thickness.
13351 \begin_layout Section
13353 \begin_inset LatexCommand label
13354 name "sec:Colored-Tables"
13359 \begin_inset LatexCommand index
13360 name "Table ! Color"
13367 \begin_layout Subsection
13369 \begin_inset LatexCommand index
13370 name "Table Color ! for Cells"
13375 \begin_inset LatexCommand index
13376 name "Color ! for Table Cells"
13383 \begin_layout Standard
13384 \begin_inset Float table
13390 \begin_layout Caption
13391 \begin_inset LatexCommand label
13392 name "tab:Table-colored-without"
13396 Table colored without using the package
13401 \begin_inset OptArg
13404 \begin_layout Standard
13405 Table without colortbl
13413 \begin_layout Standard
13415 \begin_inset Tabular
13416 <lyxtabular version="3" rows="3" columns="3">
13418 <column alignment="center" valignment="top" leftline="true" width="0">
13419 <column alignment="center" valignment="top" leftline="true" width="0">
13420 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
13421 <row topline="true">
13422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13425 \begin_layout Standard
13433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13436 \begin_layout Standard
13444 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13447 \begin_layout Standard
13456 <row topline="true">
13457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13460 \begin_layout Standard
13468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13471 \begin_layout Standard
13479 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13482 \begin_layout Standard
13491 <row topline="true" bottomline="true">
13492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13495 \begin_layout Standard
13503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13506 \begin_layout Standard
13514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13517 \begin_layout Standard
13538 \begin_layout Standard
13539 If you only need colored text, mark the cells and choose a color in the
13542 Edit\SpecialChar \menuseparator
13547 This was used to create Table\InsetSpace ~
13549 \begin_inset LatexCommand ref
13550 reference "tab:Table-colored-without"
13555 In any other case you have to use the LaTeX-package
13560 \begin_inset LatexCommand index
13561 name "LaTeX-packages ! colortbl"
13568 \begin_layout Standard
13569 To create colored tables,
13573 must be loaded in the preamble with the line
13576 \begin_layout Standard
13581 usepackage{colortbl}
13584 \begin_layout Standard
13585 The color of a column is adjusted with the command
13588 \begin_layout Standard
13593 columncolor{name of color}
13596 \begin_layout Standard
13602 More about the command
13606 is described in section\InsetSpace ~
13608 \begin_inset LatexCommand ref
13609 reference "sub:Multicolumn-Calculations"
13616 \begin_layout Standard
13617 The following color names are predefined:
13620 \begin_layout Standard
13654 \begin_layout Standard
13655 \begin_inset VSpace medskip
13661 \begin_layout Standard
13662 You can also define your own color with the command
13665 \begin_layout Standard
13670 definecolor{color name}{color model}{color values}
13673 \begin_layout Standard
13674 The color model can be
13677 \begin_layout Labeling
13678 \labelwidthstring 00.00.0000
13679 cmyk: cyan, magenta, yellow, black
13682 \begin_layout Labeling
13683 \labelwidthstring 00.00.0000
13684 rgb: red, green blue
13687 \begin_layout Labeling
13688 \labelwidthstring 00.00.0000
13692 \begin_layout Standard
13693 and the color values are comma separated numbers between 0 and 1 describing
13694 the factor for the corresponding color of the color model.
13697 \begin_layout Standard
13698 You can e.\InsetSpace \thinspace{}
13704 " in the preamble with
13707 \begin_layout Standard
13712 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
13715 \begin_layout Standard
13723 \begin_layout Standard
13728 definecolor{lightgray}{gray}{0.8}
13731 \begin_layout Standard
13732 \begin_inset VSpace medskip
13738 \begin_layout Standard
13739 Lines are colored with the command
13742 \begin_layout Standard
13747 rowcolor{name of color}
13750 \begin_layout Standard
13751 and cells are colored with the command
13754 \begin_layout Standard
13759 cellcolor{name of color}
13762 \begin_layout Standard
13763 Both commands are inserted at the beginning of a cell as ERT.
13766 \begin_layout Standard
13767 To color characters in the table, mark the cells and use the LyX menu
13769 Edit\SpecialChar \menuseparator
13774 If a cell contains ERT mark only the characters, otherwise the colored
13775 ERT will cause LaTeX-errors.
13778 \begin_layout Standard
13779 \begin_inset VSpace bigskip
13785 \begin_layout Standard
13786 To create Table\InsetSpace ~
13788 \begin_inset LatexCommand ref
13789 reference "tab:Table-colored-using"
13793 do the following: The color of the first column should be
13801 \begin_layout Standard
13806 columncolor{darkgreen}
13811 \begin_layout Standard
13812 as LaTeX-argument for this column.
13813 The first row should be blue, therefore the ERT command
13816 \begin_layout Standard
13824 \begin_layout Standard
13825 is inserted to the first cell of this row.
13826 Note that this overwrites the column color for the first cell.
13827 The last cell of the last row is colored magenta by inserting the ERT command
13830 \begin_layout Standard
13838 \begin_layout Standard
13839 The characters could now be colored using the menu
13841 Edit\SpecialChar \menuseparator
13848 \begin_layout Standard
13849 \begin_inset Float table
13855 \begin_layout Caption
13856 \begin_inset LatexCommand label
13857 name "tab:Table-colored-using"
13861 Table colored using the package
13866 \begin_inset OptArg
13869 \begin_layout Standard
13870 Table with colortbl
13878 \begin_layout Standard
13880 \begin_inset Tabular
13881 <lyxtabular version="3" rows="3" columns="3">
13883 <column alignment="center" valignment="top" leftline="true" width="0" special=">{\columncolor{darkgreen}\centering}c">
13884 <column alignment="center" valignment="top" width="0">
13885 <column alignment="center" valignment="top" width="0">
13887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13890 \begin_layout Standard
13894 \begin_layout Standard
13910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13913 \begin_layout Standard
13921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13924 \begin_layout Standard
13934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13937 \begin_layout Standard
13945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13948 \begin_layout Standard
13956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13959 \begin_layout Standard
13969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13972 \begin_layout Standard
13980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13983 \begin_layout Standard
13991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13994 \begin_layout Standard
13998 \begin_layout Standard
14027 \begin_layout Subsection
14029 \begin_inset LatexCommand index
14030 name "Table Color ! for Lines"
14035 \begin_inset LatexCommand index
14036 name "Color ! for Table Lines"
14043 \begin_layout Standard
14044 As described in section\InsetSpace ~
14046 \begin_inset LatexCommand ref
14047 reference "sub:Line-Thickness"
14051 , the line thickness for all lines in a table can be adjusted with the length
14059 It is set to 1.5\InsetSpace \thinspace{}
14060 pt for all tables of this section.
14064 \begin_layout Standard
14070 arrayrulewidth}{1.5pt}
14078 \begin_layout Standard
14079 To color vertical lines for example with green, create the following column
14080 format in the document preamble, according to the description in section\InsetSpace ~
14082 \begin_inset LatexCommand ref
14083 reference "sub:Customized-Format"
14090 \begin_layout Standard
14095 newcolumntype{W}{!{
14102 \begin_layout Standard
14103 For Table\InsetSpace ~
14105 \begin_inset LatexCommand ref
14106 reference "tab:Table-with-vertical-colored"
14113 \begin_layout Standard
14119 \begin_layout Standard
14120 was used for the last column and
14123 \begin_layout Standard
14129 \begin_layout Standard
14130 for the other columns.
14133 \begin_layout Standard
14134 If you want to have several colors, define more column formats.
14137 \begin_layout Standard
14138 \begin_inset Float table
14143 \begin_layout Caption
14144 \begin_inset LatexCommand label
14145 name "tab:Table-with-vertical-colored"
14149 Table with colored vertical lines
14152 \begin_layout Standard
14154 \begin_inset Tabular
14155 <lyxtabular version="3" rows="3" columns="3">
14157 <column alignment="center" valignment="top" leftline="true" width="0" special="Wc">
14158 <column alignment="center" valignment="top" width="0" special="Wc">
14159 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0" special="WcW">
14160 <row topline="true">
14161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14164 \begin_layout Standard
14170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14173 \begin_layout Standard
14179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14182 \begin_layout Standard
14189 <row topline="true">
14190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14193 \begin_layout Standard
14199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14202 \begin_layout Standard
14208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14211 \begin_layout Standard
14218 <row topline="true" bottomline="true">
14219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14222 \begin_layout Standard
14228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14231 \begin_layout Standard
14237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14240 \begin_layout Standard
14259 \begin_layout Standard
14260 \begin_inset VSpace bigskip
14263 To color horizontal lines for example with red, like in Table\InsetSpace ~
14265 \begin_inset LatexCommand ref
14266 reference "tab:Table-with-horizontal-colored"
14270 , insert these commands in ERT before the table or table float:
14273 \begin_layout Standard
14290 arrayrulecolor{red}
14294 arrayrulecolor{black}}
14297 \begin_layout Standard
14301 \begin_layout Standard
14312 \begin_layout Standard
14320 arrayrulecolor{red}
14324 arrayrulecolor{black}}
14330 \begin_inset Float table
14335 \begin_layout Caption
14336 \begin_inset LatexCommand label
14337 name "tab:Table-with-horizontal-colored"
14341 Table with colored horizontal lines
14344 \begin_layout Standard
14346 \begin_inset Tabular
14347 <lyxtabular version="3" rows="3" columns="3">
14349 <column alignment="center" valignment="top" leftline="true" width="0">
14350 <column alignment="center" valignment="top" leftline="true" width="0">
14351 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14352 <row topline="true">
14353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14356 \begin_layout Standard
14362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14365 \begin_layout Standard
14371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14374 \begin_layout Standard
14381 <row topline="true">
14382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14385 \begin_layout Standard
14391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14394 \begin_layout Standard
14400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14403 \begin_layout Standard
14410 <row topline="true" bottomline="true">
14411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14414 \begin_layout Standard
14420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14423 \begin_layout Standard
14429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14432 \begin_layout Standard
14451 \begin_layout Standard
14455 \begin_layout Standard
14467 \begin_layout Standard
14468 To return to the default line color black, insert this command in ERT behind
14469 the table or table float:
14472 \begin_layout Standard
14484 \begin_layout Standard
14487 \begin_inset LatexCommand ref
14488 reference "tab:Table-with-colored"
14492 is an example with colored vertical and horizontal lines.
14495 \begin_layout Standard
14496 \begin_inset Float table
14501 \begin_layout Caption
14502 \begin_inset LatexCommand label
14503 name "tab:Table-with-colored"
14507 Table with colored lines
14510 \begin_layout Standard
14512 \begin_inset Tabular
14513 <lyxtabular version="3" rows="3" columns="3">
14515 <column alignment="center" valignment="top" leftline="true" width="0" special="Wc">
14516 <column alignment="center" valignment="top" width="0" special="Wc">
14517 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0" special="WcW">
14518 <row topline="true">
14519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14522 \begin_layout Standard
14528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14531 \begin_layout Standard
14537 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14540 \begin_layout Standard
14547 <row topline="true">
14548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14551 \begin_layout Standard
14557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14560 \begin_layout Standard
14566 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14569 \begin_layout Standard
14576 <row topline="true" bottomline="true" topspace="default">
14577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14580 \begin_layout Standard
14586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14589 \begin_layout Standard
14595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14598 \begin_layout Standard
14617 \begin_layout Standard
14621 \begin_layout Standard
14637 \begin_layout Standard
14641 \begin_layout Standard
14647 arrayrulewidth}{0.4pt}
14655 \begin_layout Section
14656 Table Customization
14657 \begin_inset LatexCommand index
14658 name "Table Customization"
14663 \begin_inset LatexCommand index
14664 name "Table ! Customization"
14671 \begin_layout Subsection
14673 \begin_inset LatexCommand label
14674 name "sub:Row-Spacing"
14679 \begin_inset LatexCommand index
14680 name "Table Customization ! Row Spacing"
14687 \begin_layout Standard
14688 You can add vertical space to table rows in the
14692 tab of the table dialog.
14693 You find there three possibilities:
14696 \begin_layout Description
14699 row will add space above the characters of the table row.
14700 If the table is a formal table
14704 \begin_layout Standard
14705 Formal tables are explained in section\InsetSpace ~
14707 \begin_inset LatexCommand ref
14708 reference "sec:Formal-Tables"
14717 LyX will insert as default 0.5\InsetSpace \thinspace{}
14719 For normal tables the inserted space will unfortunately destroy the vertical
14720 table lines as in the following table:
14721 \begin_inset Tabular
14722 <lyxtabular version="3" rows="3" columns="1">
14724 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14725 <row topline="true">
14726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14729 \begin_layout Standard
14736 <row topline="true" topspace="3mm">
14737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14740 \begin_layout Standard
14741 3\InsetSpace \thinspace{}
14742 mm space top of row
14748 <row topline="true" bottomline="true">
14749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14752 \begin_layout Standard
14765 So inserting space to the top of row for normal tables is only useful when
14766 you don't have vertical lines.
14769 \begin_layout Description
14770 Bottom\InsetSpace ~
14772 row will add space below the characters of the table row.
14773 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14775 normal tables the default size is 2\InsetSpace \thinspace{}
14779 \begin_layout Description
14780 Between\InsetSpace ~
14781 rows only has an effect when you have selected the whole table row
14783 The space is added between the current and the following row.
14784 If the table is a formal table LyX will insert as default 0.5\InsetSpace \thinspace{}
14786 For normal tables the inserted space will unfortunately destroy the vertical
14787 table lines as in the following table:
14788 \begin_inset Tabular
14789 <lyxtabular version="3" rows="3" columns="1">
14791 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
14792 <row topline="true">
14793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14796 \begin_layout Standard
14803 <row topline="true" interlinespace="3mm">
14804 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14807 \begin_layout Standard
14808 \begin_inset Formula $\downarrow$
14811 3\InsetSpace \thinspace{}
14812 mm space between row
14813 \begin_inset Formula $\downarrow$
14822 <row topline="true" bottomline="true">
14823 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14826 \begin_layout Standard
14827 \begin_inset Formula $\uparrow$
14830 3\InsetSpace \thinspace{}
14831 mm space between row
14832 \begin_inset Formula $\uparrow$
14847 So inserting space to the top of row for normal tables is only useful when
14848 you don't have vertical lines.
14851 \begin_layout Standard
14852 When you want to add extra height to all cells of all tables, you can do
14853 this with the following preamble line:
14856 \begin_layout Standard
14863 extrarowheight}{height}
14866 \begin_layout Standard
14867 But this has the disadvantage that the cell texts are no longer exactly
14868 vertically centered.
14871 \begin_layout Subsection
14872 Special Cell Alignment
14873 \begin_inset LatexCommand index
14874 name "Table Customization ! Special Cell Alignment"
14881 \begin_layout Standard
14882 Sometimes it looks better when the cell entries of a column are aligned
14883 with a special character, e.\InsetSpace \thinspace{}
14885 with the decimal separator as in Table\InsetSpace ~
14887 \begin_inset LatexCommand ref
14888 reference "tab:Table-cells-of"
14895 \begin_layout Standard
14896 \begin_inset Float table
14902 \begin_layout Caption
14903 \begin_inset LatexCommand label
14904 name "tab:Table-cells-of"
14908 Table cells of a column aligned with the decimal separator.
14911 \begin_layout Standard
14913 \begin_inset Tabular
14914 <lyxtabular version="3" rows="4" columns="2">
14916 <column alignment="right" valignment="top" width="0">
14917 <column alignment="left" valignment="top" width="0" special="@{}l">
14918 <row bottomline="true">
14919 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
14922 \begin_layout Standard
14928 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14931 \begin_layout Standard
14939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14942 \begin_layout Standard
14948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14951 \begin_layout Standard
14959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14962 \begin_layout Standard
14968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14971 \begin_layout Standard
14979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14982 \begin_layout Standard
14988 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14991 \begin_layout Standard
15010 \begin_layout Standard
15011 This table was created with a 4×2 table.
15012 The heading is a centered multicolumn.
15013 The first column is right-aligned and contains the digits before the decimal
15014 point and the decimal point.
15015 The second column is left aligned and contains the digits after the decimal
15017 To omit the space that is normally between two table columns, use the following
15018 LaTeX-argument for the second column:
15021 \begin_layout Standard
15027 \begin_layout Standard
15028 If you need a vertical line right beside the second column, use this LaTeX-argum
15034 \begin_layout Standard
15037 \begin_inset LatexCommand ref
15038 reference "tab:Several-table-cell"
15042 shows some example alignments.
15043 For the alignment with the relation sign, you must add the second smallest
15044 math-space at the beginning of the last column to get the correct space
15045 surrounding the relation sign.
15048 \begin_layout Standard
15049 \begin_inset Float table
15054 \begin_layout Caption
15055 \begin_inset LatexCommand label
15056 name "tab:Several-table-cell"
15060 Several table cell alignments.
15063 \begin_layout Standard
15065 \begin_inset Tabular
15066 <lyxtabular version="3" rows="4" columns="6">
15068 <column alignment="right" valignment="top" width="0">
15069 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l|">
15070 <column alignment="right" valignment="top" width="0">
15071 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l|">
15072 <column alignment="right" valignment="top" width="0">
15073 <column alignment="left" valignment="top" rightline="true" width="0" special="@{}l">
15074 <row bottomline="true">
15075 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15078 \begin_layout Standard
15084 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15087 \begin_layout Standard
15093 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15096 \begin_layout Standard
15102 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15105 \begin_layout Standard
15111 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15114 \begin_layout Standard
15120 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15123 \begin_layout Standard
15131 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15134 \begin_layout Standard
15140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15143 \begin_layout Standard
15144 24\InsetSpace \thinspace{}
15150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15153 \begin_layout Standard
15154 \begin_inset Formula $10\cdot$
15162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15165 \begin_layout Standard
15166 \begin_inset Formula $10^{\mbox{-}17}$
15174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15177 \begin_layout Standard
15178 \begin_inset Formula $\Gamma(t)\propto$
15186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15189 \begin_layout Standard
15190 \begin_inset Formula $\:\Upsilon(t)$
15200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15203 \begin_layout Standard
15209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15212 \begin_layout Standard
15213 768\InsetSpace \thinspace{}
15219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15222 \begin_layout Standard
15223 \begin_inset Formula $5.78\cdot$
15231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15234 \begin_layout Standard
15235 \begin_inset Formula $10^{7}$
15243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15246 \begin_layout Standard
15247 \begin_inset Formula $A\ne$
15255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15258 \begin_layout Standard
15259 \begin_inset Formula $\: B_{\mathrm{red}}$
15269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15272 \begin_layout Standard
15278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15281 \begin_layout Standard
15282 6\InsetSpace \thinspace{}
15288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15291 \begin_layout Standard
15293 \begin_inset Formula $33.5\cdot$
15301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15304 \begin_layout Standard
15305 \begin_inset Formula $10^{4}$
15313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15316 \begin_layout Standard
15317 \begin_inset Formula $\sin(\alpha)\ge$
15325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15328 \begin_layout Standard
15329 \begin_inset Formula $\:\sin(\beta)$
15350 \begin_layout Standard
15351 \begin_inset VSpace bigskip
15354 There is also the LaTeX-package
15359 \begin_inset LatexCommand index
15360 name "LaTeX-packages ! dcolumn"
15364 that provides table cell alignments.
15365 But this unfortunately treats the cell entries as math and doesn't allow
15366 formulas in table cells: The first column of Table\InsetSpace ~
15368 \begin_inset LatexCommand ref
15369 reference "tab:Several-table-cell"
15377 like the first column in Table\InsetSpace ~
15379 \begin_inset LatexCommand ref
15380 reference "tab:Alignments-when"
15384 and only with some tricks like the expected.
15385 The alignment of the second and third column of Table\InsetSpace ~
15387 \begin_inset LatexCommand ref
15388 reference "tab:Several-table-cell"
15392 is not possible with
15399 \begin_layout Standard
15400 \begin_inset Float table
15406 \begin_layout Caption
15407 \begin_inset LatexCommand label
15408 name "tab:Alignments-when"
15412 Alignments when LaTeX-package dcolumn is used.
15413 For the second and third alignment some tricks were used.
15416 \begin_layout Standard
15418 \begin_inset Tabular
15419 <lyxtabular version="3" rows="4" columns="3">
15421 <column alignment="center" valignment="top" rightline="true" width="0" special="D{×}{\times}{-1}|">
15422 <column alignment="center" valignment="top" width="0" special="D{×}{\times}{4.9}|">
15423 <column alignment="center" valignment="top" rightline="true" width="0" special="D{~}{\,}{9.7}">
15424 <row bottomline="true">
15425 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15428 \begin_layout Standard
15434 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15437 \begin_layout Standard
15443 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
15446 \begin_layout Standard
15454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15457 \begin_layout Standard
15458 12×24\InsetSpace \thinspace{}
15464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15467 \begin_layout Standard
15468 12×24\InsetSpace \thinspace{}
15470 \begin_inset Formula $\mbox{bottles}$
15478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15481 \begin_layout Standard
15483 \begin_inset Formula $\mbox{bottles}$
15493 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15496 \begin_layout Standard
15497 1024×768\InsetSpace \thinspace{}
15503 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15506 \begin_layout Standard
15507 1024×768\InsetSpace \thinspace{}
15509 \begin_inset Formula $\mbox{Pixels}$
15517 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15520 \begin_layout Standard
15522 \begin_inset Formula $\mbox{Pixels}$
15532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15535 \begin_layout Standard
15536 32×6\InsetSpace \thinspace{}
15542 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15545 \begin_layout Standard
15546 32×6\InsetSpace \thinspace{}
15548 \begin_inset Formula $\mbox{cm}$
15556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15559 \begin_layout Standard
15561 \begin_inset Formula $\mbox{cm}$
15582 \begin_layout Subsection
15583 Customized Cell/Column Format
15584 \begin_inset LatexCommand label
15585 name "sub:Customized-Format"
15590 \begin_inset LatexCommand index
15591 name "Table Customization ! Cell/Column Format"
15598 \begin_layout Standard
15599 Calculating the needed width for spanned columns like in section\InsetSpace ~
15601 \begin_inset LatexCommand ref
15602 reference "sub:Multicolumn-Calculations"
15606 is very annoying if you have several tables with multicolumn cells.
15607 To make life easier, you can define a cell/column format in the preamble,
15608 so that it can be used in all tables of the document.
15609 The format is defined with the command
15612 \begin_layout Standard
15617 newcolumntype{name of format}[number of arguments]{commands}
15620 \begin_layout Standard
15621 The format name may only consist of one letter.
15646 are predefined and cannot be used.
15647 But all letters are allowed as capitals.
15650 \begin_layout Standard
15651 \begin_inset VSpace medskip
15657 \begin_layout Standard
15658 For vertically and horizontally centered multicolumn cells with a fixed
15659 width you can define the cell format
15662 \begin_layout Standard
15667 newcolumntype{M}[1]{>{
15674 \begin_layout Standard
15681 avoids the problem of hyphenating the first word, as described in section\InsetSpace ~
15683 \begin_inset LatexCommand ref
15684 reference "sub:Multiple-Lines-in"
15689 Now you can simply enter
15692 \begin_layout Standard
15698 \begin_layout Standard
15699 as LaTeX-argument in the table dialog to create a multicolumn.
15702 \begin_layout Standard
15703 \begin_inset VSpace bigskip
15709 \begin_layout Standard
15710 For cells spanned by a multicolumn cell, you can define the format
15713 \begin_layout Standard
15718 newcolumntype{S}[2]{>{
15728 \begin_layout Standard
15739 newcolumntype{S}[2]
15743 \begin_layout Standard
15754 arrayrulewidth)*(1-#2))/#2}}
15757 \begin_layout Standard
15758 This format uses equation
15759 \begin_inset LatexCommand eqref
15764 to calculate the needed width so that each spanned cell has the same width.
15767 \begin_layout Standard
15771 \begin_layout Standard
15774 |S{width of multicolumn cell}{number of spanned columns}
15777 \begin_layout Standard
15778 as LaTeX-argument of the column.
15781 \begin_layout Standard
15782 \begin_inset VSpace bigskip
15788 \begin_layout Standard
15789 For colored columns, you can define
15792 \begin_layout Standard
15797 newcolumntype{K}[1]{>{
15804 \begin_layout Standard
15806 \begin_inset Quotes eld
15810 \begin_inset Quotes erd
15813 at the end creates a column with a flexible width whose text is horizontally
15818 \begin_layout Standard
15824 \begin_layout Standard
15828 \begin_layout Standard
15829 \begin_inset VSpace bigskip
15835 \begin_layout Standard
15836 To create Table\InsetSpace ~
15838 \begin_inset LatexCommand ref
15839 reference "tab:Table-using-user-defined"
15843 use the LaTeX-arguments
15846 \begin_layout Standard
15852 \begin_layout Standard
15853 for the first column and the multicolumn,
15856 \begin_layout Standard
15862 \begin_layout Standard
15863 for the the last column, and
15866 \begin_layout Standard
15872 \begin_layout Standard
15873 for the cells in the second column.
15876 \begin_layout Standard
15877 \begin_inset Float table
15883 \begin_layout Caption
15884 \begin_inset LatexCommand label
15885 name "tab:Table-using-user-defined"
15889 Table using user-defined table formats
15892 \begin_layout Standard
15894 \begin_inset Tabular
15895 <lyxtabular version="3" rows="3" columns="4">
15897 <column alignment="center" valignment="middle" leftline="true" width="2.5cm" special="|M{2.5cm}">
15898 <column alignment="center" valignment="middle" leftline="true" width="0" special="|S{2.5cm}{2}">
15899 <column alignment="center" valignment="middle" leftline="true" width="0">
15900 <column alignment="center" valignment="middle" leftline="true" rightline="true" width="0" special="|K{red}|">
15901 <row topline="true">
15902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15905 \begin_layout Standard
15906 verylongtablecellword
15911 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none" special="M{2.5cm}|">
15914 \begin_layout Standard
15915 multiple lines multicolumn
15920 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15923 \begin_layout Standard
15929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15932 \begin_layout Standard
15939 <row topline="true">
15940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15943 \begin_layout Standard
15949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15952 \begin_layout Standard
15958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15961 \begin_layout Standard
15967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15970 \begin_layout Standard
15977 <row topline="true" bottomline="true">
15978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15981 \begin_layout Standard
15987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15990 \begin_layout Standard
15996 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15999 \begin_layout Standard
16005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16008 \begin_layout Standard
16027 \begin_layout Subsection
16029 \begin_inset LatexCommand label
16030 name "sub:Line-Thickness"
16035 \begin_inset LatexCommand index
16036 name "Table Customization ! Line Thickness"
16043 \begin_layout Standard
16044 The line thickness for all lines in a table can be adjusted with the length
16052 To set for example a line thickness of 1.5\InsetSpace \thinspace{}
16053 pt, like in Table\InsetSpace ~
16055 \begin_inset LatexCommand ref
16056 reference "tab:Table-with-1.5"
16060 , insert the command
16063 \begin_layout Standard
16070 arrayrulewidth}{1.5pt}
16073 \begin_layout Standard
16074 in ERT before the table or table float.
16075 The changed thickness is valid for all following tables.
16076 To use the default value again, set
16082 to 0.4\InsetSpace \thinspace{}
16083 pt in ERT behind the table or table float.
16086 \begin_layout Standard
16090 \begin_layout Standard
16096 arrayrulewidth}{1.5pt}
16102 \begin_inset Float table
16107 \begin_layout Caption
16108 \begin_inset LatexCommand label
16109 name "tab:Table-with-1.5"
16113 Table with 1.5\InsetSpace \thinspace{}
16117 \begin_layout Standard
16119 \begin_inset Tabular
16120 <lyxtabular version="3" rows="3" columns="3">
16122 <column alignment="center" valignment="top" leftline="true" width="0">
16123 <column alignment="center" valignment="top" leftline="true" width="0">
16124 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16125 <row topline="true">
16126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16129 \begin_layout Standard
16135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16138 \begin_layout Standard
16144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16147 \begin_layout Standard
16154 <row topline="true">
16155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16158 \begin_layout Standard
16164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16167 \begin_layout Standard
16173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16176 \begin_layout Standard
16183 <row topline="true" bottomline="true">
16184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16187 \begin_layout Standard
16193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16196 \begin_layout Standard
16202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16205 \begin_layout Standard
16225 \begin_layout Standard
16231 arrayrulewidth}{0.4pt}
16239 \begin_layout Standard
16240 \begin_inset VSpace bigskip
16243 To set the line thickness to 1.5\InsetSpace \thinspace{}
16244 pt only for horizontal lines, like in Table\InsetSpace ~
16246 \begin_inset LatexCommand ref
16247 reference "tab:Table-with-horizontal"
16251 , insert these commands in ERT before the table or table float:
16254 \begin_layout Standard
16277 arrayrulewidth 1.5pt}
16287 arrayrulewidth 0.4pt}}
16290 \begin_layout Standard
16291 To return to the default line thickness, insert this command in ERT behind
16292 the table or table float:
16295 \begin_layout Standard
16307 \begin_layout Standard
16311 \begin_layout Standard
16322 \begin_layout Standard
16331 \begin_layout Standard
16339 arrayrulewidth 1.5pt}
16342 \begin_layout Standard
16352 arrayrulewidth 0.4pt}}
16358 \begin_inset Float table
16363 \begin_layout Caption
16364 \begin_inset LatexCommand label
16365 name "tab:Table-with-horizontal"
16369 Table with 1.5\InsetSpace \thinspace{}
16370 pt thick horizontal lines
16373 \begin_layout Standard
16375 \begin_inset Tabular
16376 <lyxtabular version="3" rows="3" columns="3">
16378 <column alignment="center" valignment="top" leftline="true" width="0">
16379 <column alignment="center" valignment="top" leftline="true" width="0">
16380 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16381 <row topline="true">
16382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16385 \begin_layout Standard
16391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16394 \begin_layout Standard
16400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16403 \begin_layout Standard
16410 <row topline="true">
16411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16414 \begin_layout Standard
16420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16423 \begin_layout Standard
16429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16432 \begin_layout Standard
16439 <row topline="true" bottomline="true">
16440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16443 \begin_layout Standard
16449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16452 \begin_layout Standard
16458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16461 \begin_layout Standard
16481 \begin_layout Standard
16497 \begin_layout Standard
16498 \begin_inset VSpace bigskip
16501 To set the line thickness to 1.5\InsetSpace \thinspace{}
16502 pt only for vertical lines, create the following
16503 column format in the document preamble, according to the description in
16504 section\InsetSpace ~
16506 \begin_inset LatexCommand ref
16507 reference "sub:Customized-Format"
16514 \begin_layout Standard
16519 newcolumntype{V}{!{
16521 vrule width 1.5pt}}
16524 \begin_layout Standard
16525 For Table\InsetSpace ~
16527 \begin_inset LatexCommand ref
16528 reference "tab:Table-with-vertical"
16535 \begin_layout Standard
16541 \begin_layout Standard
16542 was used for the last column and
16545 \begin_layout Standard
16551 \begin_layout Standard
16552 for the other columns.
16555 \begin_layout Standard
16556 \begin_inset Float table
16561 \begin_layout Caption
16562 \begin_inset LatexCommand label
16563 name "tab:Table-with-vertical"
16567 Table with 1.5\InsetSpace \thinspace{}
16568 pt thick vertical lines
16571 \begin_layout Standard
16573 \begin_inset Tabular
16574 <lyxtabular version="3" rows="3" columns="3">
16576 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16577 <column alignment="center" valignment="top" leftline="true" width="0" special="Vc">
16578 <column alignment="center" valignment="top" leftline="true" width="0" special="VcV">
16579 <row topline="true">
16580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16583 \begin_layout Standard
16589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16592 \begin_layout Standard
16598 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16601 \begin_layout Standard
16608 <row topline="true">
16609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16612 \begin_layout Standard
16618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16621 \begin_layout Standard
16627 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16630 \begin_layout Standard
16637 <row topline="true" bottomline="true">
16638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16641 \begin_layout Standard
16647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16650 \begin_layout Standard
16656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16659 \begin_layout Standard
16678 \begin_layout Subsection
16680 \begin_inset LatexCommand index
16681 name "Table Customization ! Dashed Lines"
16688 \begin_layout Standard
16689 \begin_inset Float table
16695 \begin_layout Caption
16696 \begin_inset LatexCommand label
16697 name "tab:Table-with-dashed"
16701 Table with dashed lines
16704 \begin_layout Standard
16706 \begin_inset Tabular
16707 <lyxtabular version="3" rows="5" columns="5">
16709 <column alignment="center" valignment="top" leftline="true" width="0">
16710 <column alignment="center" valignment="top" leftline="true" width="0">
16711 <column alignment="center" valignment="top" width="0" special=":c">
16712 <column alignment="center" valignment="top" leftline="true" width="0">
16713 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
16714 <row topline="true" bottomline="true">
16715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16718 \begin_layout Standard
16724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16727 \begin_layout Standard
16733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16736 \begin_layout Standard
16742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16745 \begin_layout Standard
16751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16754 \begin_layout Standard
16761 <row topline="true">
16762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16765 \begin_layout Standard
16771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16774 \begin_layout Standard
16780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16783 \begin_layout Standard
16789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16792 \begin_layout Standard
16798 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16801 \begin_layout Standard
16809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16812 \begin_layout Standard
16816 \begin_layout Standard
16830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16833 \begin_layout Standard
16839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16842 \begin_layout Standard
16848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16851 \begin_layout Standard
16857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16860 \begin_layout Standard
16867 <row topline="true">
16868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16871 \begin_layout Standard
16875 \begin_layout Standard
16889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16892 \begin_layout Standard
16898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="c:">
16901 \begin_layout Standard
16907 <cell multicolumn="1" alignment="center" valignment="top" rightline="true" usebox="none" special="c:">
16910 \begin_layout Standard
16916 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16919 \begin_layout Standard
16926 <row topline="true" bottomline="true">
16927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16930 \begin_layout Standard
16936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16939 \begin_layout Standard
16945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16948 \begin_layout Standard
16954 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16957 \begin_layout Standard
16963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16966 \begin_layout Standard
16985 \begin_layout Standard
16986 LyX doesn't natively support dashed lines, so you have to use ERT.
16987 As prerequisite the LaTeX-package
16992 \begin_inset LatexCommand index
16993 name "LaTeX-packages ! arydshln"
16997 must be loaded in the document preamble with the command
17000 \begin_layout Standard
17005 usepackage{arydshln}
17008 \begin_layout Standard
17009 To make a vertical line dashed, enter the colon
17010 \begin_inset Quotes eld
17014 \begin_inset Quotes erd
17017 together with the character for the horizontal alignment as LaTeX-argument
17018 in the table cell dialog.
17021 \begin_layout Standard
17022 For a horizontal dashed line add the command
17025 \begin_layout Standard
17033 \begin_layout Standard
17034 in ERT as first element of the first cell in the table row.
17037 \begin_layout Standard
17038 For dashed multicolumn lines use the command
17041 \begin_layout Standard
17046 cdashline{line number
17051 \begin_layout Standard
17052 in ERT as first element of the first cell in the table row.
17053 If you have for example a multicolumn spanning over columns 2 to 4 and
17054 you want to have a dashed line above, add the command
17057 \begin_layout Standard
17065 \begin_layout Standard
17066 as first element of the first cell in the row of the multicolumn.
17069 \begin_layout Standard
17070 \begin_inset VSpace bigskip
17076 \begin_layout Standard
17079 \begin_inset LatexCommand ref
17080 reference "tab:Table-with-dashed"
17085 \begin_inset Quotes eld
17093 \begin_inset Quotes erd
17096 as LaTeX-argument of the third column.
17103 was inserted to the first cell of the third row and the the ERT command
17112 was inserted to the first cell of the fourth row.
17115 \begin_layout Standard
17116 \begin_inset Note Greyedout
17119 \begin_layout Standard
17124 The used LaTeX-package
17128 is apparently not compatible with the LaTeX-package
17133 \begin_inset LatexCommand index
17134 name "LaTeX-packages ! colortbl"
17138 that is used for colored tables in section\InsetSpace ~
17140 \begin_inset LatexCommand ref
17141 reference "sec:Colored-Tables"
17146 That means colored tables cannot have dashed lines.
17154 \begin_layout Chapter
17156 \begin_inset LatexCommand index
17162 \begin_inset LatexCommand label
17170 \begin_layout Section
17172 \begin_inset LatexCommand label
17173 name "sec:FloatIntroduction"
17178 \begin_inset LatexCommand index
17179 name "Floats ! Introduction"
17186 \begin_layout Standard
17187 A float is a block of text associated with some sort of label, which doesn't
17188 have a fixed location.
17190 \begin_inset Quotes eld
17194 \begin_inset Quotes erd
17197 forward or backward a page or two, to wherever it fits best.
17204 Margin\InsetSpace ~
17207 are also floats, because they can float to the next page when there are
17208 too many notes at the page.
17211 \begin_layout Standard
17212 Floats allow a high quality layout.
17213 Images and tables can evenly be spread to the pages to avoid white space
17214 and pages without text.
17215 As the floating often destroys the context between the text and the image/table
17216 , every float can be referenced in the text.
17217 Floats are therefore numbered.
17218 Referencing is described in section\InsetSpace ~
17220 \begin_inset LatexCommand ref
17221 reference "sec:Referencing-Floats"
17228 \begin_layout Standard
17229 To insert a float, use the menu
17231 Insert\SpecialChar \menuseparator
17235 This inserts a box with a label in the
17243 \begin_layout Standard
17248 environment is described in LyX's
17257 into your document.
17258 Every label ends with the character
17259 \begin_inset Quotes eld
17263 \begin_inset Quotes erd
17266 as placeholder for the float number in the output.
17267 The label will automatically be translated to the document language in
17269 Behind the label you can insert the caption text.
17270 The image or table is inserted above or below the caption in a separate
17271 paragraph within the float.
17272 More about the caption placement is described in section\InsetSpace ~
17274 \begin_inset LatexCommand ref
17275 reference "sec:Caption-Placement"
17280 To keep your LyX-document readable, you can open and close the float box
17281 by left-clicking on the box label.
17282 A closed float box looks like this:
17283 \begin_inset Graphics
17284 filename ../clipart/floatQt4.png
17289 -- a gray button with a red label.
17292 \begin_layout Standard
17293 It is recommended to insert floats as a separate paragraph to avoid possible
17294 LaTeX-errors that can occur when the surrounding text is specially formatted.
17297 \begin_layout Standard
17298 Existing figures or tables can be put into a float by marking them and then
17299 pressing the corresponding toolbar button for a new float.
17302 \begin_layout Section
17306 \begin_layout Standard
17307 Besides figure and table floats that are described in section\InsetSpace ~
17309 \begin_inset LatexCommand ref
17310 reference "sec:Figure-Floats"
17315 \begin_inset LatexCommand ref
17316 reference "sec:Table-Floats"
17320 , respectively, LyX offers the float types
17333 \begin_layout Subsection
17335 \begin_inset LatexCommand index
17336 name "Floats ! Algorithm Floats"
17343 \begin_layout Standard
17344 \begin_inset Float algorithm
17350 \begin_layout Caption
17351 \begin_inset LatexCommand label
17352 name "alg:Example-Algorithm-float"
17356 Example Algorithm float
17359 \begin_layout LyX-Code
17362 Sum:= Sum + A(I); /*senseless comment*/
17365 \begin_inset VSpace -4mm
17376 \begin_layout Standard
17377 This float type is inserted with the menu
17379 Insert\SpecialChar \menuseparator
17380 Floats\SpecialChar \menuseparator
17384 It is used for program codes and descriptions of algorithms.
17385 A possible environment for algorithms is the
17389 , described in LyX's
17394 Algorithm\InsetSpace ~
17396 \begin_inset LatexCommand ref
17397 reference "alg:Example-Algorithm-float"
17401 is an example of an algorithm float where -4\InsetSpace \thinspace{}
17402 mm vertical space was added
17403 at the end of the float to have the bottom rule exactly below the last
17407 \begin_layout Standard
17408 The float label is not automatically translated into the document language.
17409 If your document is not in English, you have to do this manually by adding
17414 to the document preamble
17419 \begin_layout Standard
17424 floatname{algorithm}{your\InsetSpace ~
17428 \begin_layout Standard
17435 \begin_inset Quotes eld
17443 \begin_inset Quotes erd
17449 \begin_layout Description
17454 When the LaTeX-package
17459 \begin_inset LatexCommand index
17460 name "LaTeX-packages ! hyperref"
17464 is used to link cross-references to floats in the PDF-output, it must be
17465 loaded in the document preamble before the definition of floats to be able
17466 to reference floats.
17467 As LyX sets the float definition for algorithm floats automatically before
17468 the user editable part of the document preamble, you need to insert the
17469 following preamble lines
17473 the loading command of
17480 \begin_inset VSpace defskip
17487 newfloat{Xalgorithm}{tbp}{loa}
17491 floatname{Xalgorithm}{your\InsetSpace ~
17504 renewenvironment{algorithm}[1][tbp]
17510 \begin_layout Standard
17521 begin{Xalgorithm}[#1]}{
17524 \begin_inset VSpace defskip
17537 \begin_inset Quotes eld
17545 \begin_inset Quotes erd
17551 \begin_layout Standard
17552 Algorithm floats are not by default numbered in the scheme
17553 \begin_inset Quotes eld
17557 \begin_inset Quotes erd
17560 like it is the case for table and figure floats in many document-classes.
17561 To number algorithm floats in the same scheme, add this command to your
17565 \begin_layout Standard
17570 numberwithin{algorithm}{chapter}
17573 \begin_layout Standard
17574 If you use the LaTeX-package
17578 , add this line instead
17586 (the commands from above) to the preamble:
17589 \begin_layout Standard
17594 numberwithin{Xalgorithm}{chapter}
17597 \begin_layout Standard
17598 To be able to use the command
17609 in the document settings the option
17619 \begin_layout Subsection
17621 \begin_inset LatexCommand index
17622 name "Floats ! Text Wrap Floats"
17627 \begin_inset LatexCommand label
17628 name "sub:floatflt-wrap-float"
17635 \begin_layout Standard
17636 This float type is used if you want to
17637 \begin_inset Quotes eld
17641 \begin_inset Quotes erd
17644 text around a figure so that it only occupies some fraction of the column
17646 It can be inserted using the menu
17647 \begin_inset Wrap figure
17652 \begin_layout Standard
17653 \begin_inset Graphics
17654 filename mobius.eps
17657 rotateOrigin center
17664 \begin_layout Caption
17665 \begin_inset LatexCommand label
17666 name "fig:This-is-a"
17670 This is a wrapped figure, and this is the brilliant caption that describes
17672 \begin_inset VSpace medskip
17682 Insert\SpecialChar \menuseparator
17683 Floats\SpecialChar \menuseparator
17688 if the LaTeX-package
17693 \begin_inset LatexCommand index
17694 name "LaTeX-packages ! floatflt"
17702 \begin_layout Standard
17703 Installing a LaTeX-package is explained it in the
17713 The width and placement of the float is adjusted by right-clicking on the
17715 Figure\InsetSpace ~
17717 \begin_inset LatexCommand ref
17718 reference "fig:This-is-a"
17722 is an example text wrap float with a width of 40
17723 \begin_inset Formula $\,$
17730 \begin_layout Standard
17731 Available units are explained in
17732 \begin_inset LatexCommand ref
17733 reference "cha:Units-available-in"
17742 Some space was added under the caption to separate it better from the surroundi
17746 \begin_layout Standard
17751 also supports table wrap floats, but they are not yet supported by LyX.
17752 If you need this, read the documentation of
17757 \begin_inset LatexCommand cite
17765 \begin_layout Standard
17766 \begin_inset Note Greyedout
17769 \begin_layout Standard
17775 wrap float floats are fragile! E.\InsetSpace \thinspace{}
17777 having a figure too close to the bottom
17778 of the page can mess things up in the way that the float doesn't appear
17779 in the output or that it is placed over some other text.
17783 \begin_layout Standard
17784 The better solution is to use the LaTeX-package
17789 \begin_inset LatexCommand index
17790 name "LaTeX-packages ! wrapfig\\vspace{4mm}"
17798 , but it is currently not supported by LyX.
17811 \begin_layout Standard
17815 \begin_layout Itemize
17816 Wrap floats should not be placed in paragraphs that run over a page break.
17817 That means that wrap floats should better be inserted to the exact place
17818 when the document is nearly ready and you are able to estimate where page
17819 breaks will appear.
17822 \begin_layout Itemize
17823 Wrap floats should either be placed in an own paragraph before the paragraph
17824 where they should wrap into or within a paragraph.
17827 \begin_layout Itemize
17828 Wrap floats in consecutive paragraphs may cause troubles, so assure that
17829 there is a text paragraph between them as separator.
17832 \begin_layout Itemize
17833 Wrap floats are not allowed in section headings or tables.
17836 \begin_layout Section
17838 \begin_inset LatexCommand label
17839 name "sec:Referencing-Floats"
17844 \begin_inset LatexCommand index
17845 name "Floats ! References"
17850 \begin_inset LatexCommand index
17858 \begin_layout Standard
17859 To reference a float, insert a label into its caption using the menu
17861 Insert\SpecialChar \menuseparator
17864 or the toolbar button
17865 \begin_inset Graphics
17866 filename ../images/label-insert.xpm
17872 A grey label box like this one:
17873 \begin_inset Graphics
17874 filename ../clipart/labelQt4.png
17879 will be inserted and the label window pops up asking for the label text.
17880 LyX offers as text the first words of the caption with a prefix.
17881 The prefix depends on the float type, e.\InsetSpace \thinspace{}
17883 for figure floats the prefix will
17891 \begin_layout Standard
17892 The label is used as anchor and name for the reference.
17893 You can refer to the label using the menu
17895 Insert\SpecialChar \menuseparator
17898 or the toolbar button
17899 \begin_inset Graphics
17900 filename ../images/dialog-show-new-inset_ref.xpm
17906 A grey cross-reference box like this one:
17907 \begin_inset Graphics
17908 filename ../clipart/referenceQt4.png
17913 will be inserted and the cross-reference window appear showing all labels
17915 If you have multiple LyX-documents opened, choose the one you are working
17916 on from the drop-list at the top of the dialog.
17917 You can now sort the labels alphabetically and then choose one.
17918 At the position of the cross-reference box the float number will appear
17922 \begin_layout Standard
17923 It is recommended to use a protected space between the cross-reference name
17924 and its number to avoid line breaks between them.
17925 If a cross-reference refers to a non-existing label, you will see two question
17926 marks in the output instead of the reference.
17929 \begin_layout Standard
17930 You can change labels at any time by clicking on the label box.
17931 References to the changed label will automatically change its link to the
17932 new label text, so that you don't need to take care about this.
17935 \begin_layout Standard
17942 in the cross-reference window sets the cursor before the referred label.
17943 The button text changes then to Go\InsetSpace ~
17944 Back and you can use it to set the cursor
17945 back to the cross-reference.
17946 Right-clicking on a cross-reference box also sets the cursor before the
17947 referenced label but without a possibility to go back.
17950 \begin_layout Subsection
17951 Cross-reference formats
17952 \begin_inset LatexCommand label
17953 name "sub:Cross-reference-formats"
17958 \begin_inset LatexCommand index
17959 name "References ! Formats"
17966 \begin_layout Standard
17967 There are six varieties of cross-references:
17970 \begin_layout Description
17971 <reference>: prints the float number, this is the default:
17972 \begin_inset LatexCommand ref
17973 reference "fig:Two-distorted-images"
17980 \begin_layout Description
17981 (<reference>): prints the float number within two parentheses, this is the
17982 style normally used to reference formulas, especially when the reference
17984 \begin_inset Quotes eld
17988 \begin_inset Quotes erd
17992 \begin_inset LatexCommand eqref
18000 \begin_layout Description
18001 <page>: prints the page number: Page\InsetSpace ~
18003 \begin_inset LatexCommand pageref
18004 reference "fig:Two-distorted-images"
18011 \begin_layout Description
18014 <page>: prints the text "on page" and the page number:
18015 \begin_inset LatexCommand vpageref
18016 reference "fig:Two-distorted-images"
18023 \begin_layout Description
18024 <reference>\InsetSpace ~
18027 <page>: prints the float number, the text "on page", and
18029 \begin_inset LatexCommand vref
18030 reference "fig:Two-distorted-images"
18037 \begin_layout Description
18038 Formatted\InsetSpace ~
18039 reference: prints a self defined cross-reference format:
18042 \begin_inset LatexCommand prettyref
18043 reference "fig:Two-distorted-images"
18050 \begin_layout Standard
18051 Note that the style <page> won't print the page number if the label is on
18052 the previous, the same, or the next page.
18053 You will e.\InsetSpace \thinspace{}
18056 \begin_inset Quotes eld
18064 \begin_inset Quotes erd
18070 \begin_layout Standard
18071 The number and current page of the referred document part in the output,
18072 is automatically calculated by LaTeX.
18073 The varieties are adjusted in the field
18077 of the cross-reference window, that appear when you click on the cross-referenc
18079 \begin_inset VSpace bigskip
18085 \begin_layout Standard
18086 To define a format for the
18088 Formatted\InsetSpace ~
18091 style, you have to use the following command in the document preamble:
18094 \begin_layout Standard
18099 newrefformat{prefix}{text}
18102 \begin_layout Standard
18103 This formatting command affects all references to labels with the same prefix.
18104 To get the format of the
18106 Formatted\InsetSpace ~
18109 example above, this command was used:
18112 \begin_layout Standard
18123 \begin_layout Standard
18134 ref{#1} printed on page~
18139 \begin_layout Standard
18140 The tilde "~" is the LaTeX equivalent for the protected space.
18147 refers to the float number, the command
18153 to the page number.
18156 \begin_layout Subsection
18157 Automatic Reference Naming
18158 \begin_inset LatexCommand index
18159 name "References ! Automatic Reference Naming"
18166 \begin_layout Standard
18171 provides a very useful feature that cross-references automatically include
18172 the name of the referenced floats (or text parts like sections).
18173 You save to write e.\InsetSpace \thinspace{}
18176 \begin_inset Quotes eld
18180 \begin_inset Quotes erd
18183 before every reference box.
18184 To get this automatic reference naming, you have to load the LaTeX-package
18190 \begin_inset LatexCommand index
18191 name "LaTeX-packages ! hyperref"
18195 in the document preamble with
18198 \begin_layout Standard
18203 usepackage[pdfborder={0 0 0}]{hyperref}
18218 \begin_layout Standard
18223 is used to link cross-references in the DVI- and PDF-output, this means
18224 that the reader of your document will be able to click on a table of content
18225 (TOC) entry or on a reference and he will be shown the referenced document
18231 also creates PDF-bookmarks for every section of your document to make it
18232 easier for readers to navigate through the document.
18233 This is also used in this document but when you have a look in the document
18234 preamble you will find various options in the load command of
18239 To learn more about the
18243 package, we refer to its documentation
18244 \begin_inset LatexCommand cite
18252 \begin_layout Standard
18253 \begin_inset Note Greyedout
18256 \begin_layout Standard
18261 Automatic reference naming cannot be used when you use cross-references
18264 Formatted\InsetSpace ~
18267 style, described in section\InsetSpace ~
18269 \begin_inset LatexCommand ref
18270 reference "sub:Cross-reference-formats"
18275 That is the reason why it is not used in this document.
18283 \begin_layout Subsection
18285 \begin_inset LatexCommand label
18286 name "sub:Reference-Position"
18291 \begin_inset LatexCommand index
18292 name "References ! Reference Position"
18299 \begin_layout Standard
18305 \begin_inset LatexCommand index
18306 name "LaTeX-packages ! hyperref"
18310 to link cross-references in the output, you will see that clicking on an
18311 image float reference jumps to the image label.
18312 The caption will be the first text part on the screen, so that you cannot
18313 see the image without scrolling.
18314 This is because the reference link anchor is placed at the position of
18316 With the use of the package
18321 \begin_inset LatexCommand index
18322 name "LaTeX-packages ! hypcap"
18326 , which is part of the LaTeX-package
18331 \begin_inset LatexCommand index
18332 name "LaTeX-packages ! oberdiek"
18336 , the link anchor is placed at the beginning of a float.
18337 To use this feature for figure floats, load
18341 in the document preamble with the line
18344 \begin_layout Standard
18349 usepackage[figure]{hypcap}
18352 \begin_layout Standard
18357 for all floats but this isn't recommended for stability reasons.
18358 For more informations, have a look at
18363 \begin_inset LatexCommand cite
18371 \begin_layout Standard
18372 \begin_inset Note Greyedout
18375 \begin_layout Standard
18384 must be loaded after
18388 in the document preamble.
18396 \begin_layout Section
18398 \begin_inset LatexCommand label
18399 name "sec:Float-Placement"
18404 \begin_inset LatexCommand index
18405 name "Floats ! Placement"
18412 \begin_layout Standard
18413 Right-clicking on a float-box opens a dialog where you can alter the placement
18414 options that LaTeX uses for positioning the float.
18421 is only useful for two-column documents: If you select it, the float will
18422 span across both columns on the page instead of being confined to just
18427 Rotate\InsetSpace ~
18430 is used to rotate floats, see section
18431 \begin_inset LatexCommand ref
18432 reference "sec:Rotated-Floats"
18439 \begin_layout Standard
18440 You can use one ore more of the following options in the float dialog to
18441 set the placement for a particular float when you uncheck the option
18444 default\InsetSpace ~
18450 \begin_layout Description
18453 possible: try to place the float on the position where it is inserted
18456 \begin_layout Description
18459 page: try to place the float on the top of the current page
18462 \begin_layout Description
18463 Bottom\InsetSpace ~
18465 page: try to place the float on the bottom of the current page
18468 \begin_layout Description
18471 floats: try to place the float on an own page
18474 \begin_layout Standard
18475 The order of the above option is
18480 That means, if you use the default placement, LaTeX will first try out
18493 , and then the others.
18494 If you don't use the default, LaTeX will try only the checked options but
18496 If none of the 4 placements are possible the procedure is internally repeated
18497 but it is tried to put the float on the following page.
18500 \begin_layout Standard
18501 By default, each options has its own rules:
18504 \begin_layout Labeling
18505 \labelwidthstring 00.00.0000
18512 only floats occupying less than 70\InsetSpace \thinspace{}
18513 % of the page can be placed at the top
18523 \begin_layout Labeling
18524 \labelwidthstring 00.00.0000
18527 Bottom\InsetSpace ~
18531 : only floats occupying less than 30\InsetSpace \thinspace{}
18532 % of the page can be placed at the bottom
18543 \begin_layout Labeling
18544 \labelwidthstring 00.00.0000
18551 : only if more than 50\InsetSpace \thinspace{}
18552 % of the page are occupied by floats, several floats
18553 can be set together on a page.
18563 \begin_layout Standard
18564 If you don't like these rules, you can ignore them by using the additional
18567 Ignore\InsetSpace ~
18573 You can also redefine the rules with LaTeX-commands that are given in parenthese
18574 s behind the rules description above.
18575 To increase for example the often too small default of the bottom-rule
18576 to 50\InsetSpace \thinspace{}
18577 % of the page, add this line to your document preamble:
18580 \begin_layout Standard
18587 bottomfraction}{0.5}
18590 \begin_layout Standard
18591 Sometimes you might need, under all circumstances, a float to be placed
18592 exactly at the position where it is inserted.
18593 For this case you can use the option
18599 Use this option very rarely and only if the document is nearly ready to
18601 Because the float is then no longer able to
18602 \begin_inset Quotes eld
18606 \begin_inset Quotes erd
18609 when you change your document and this will often destroy the page layout.
18612 \begin_layout Standard
18613 There are no placement options for text wrap floats, because they are always
18614 surrounded by the text of a certain paragraph.
18615 \begin_inset VSpace bigskip
18621 \begin_layout Standard
18622 Sometimes you have the problem that a float is placed at the top of a page
18623 while its corresponding section starts at the middle of the page, so that
18624 the reader could think the float is part of the previous section.
18625 To avoid this the LaTeX-command
18632 It suppresses a given float placement for the page where it is inserted
18633 and can therefore be used to avoid that floats could be set before a section
18635 To get this, add these commands to your document preamble:
18638 \begin_layout Standard
18660 \begin_layout Standard
18661 You can define the same for all section headings, like chapters and subsections.
18662 This definition is not recommended to be used for small text parts like
18663 subsubsections because LaTeX may then have problems to find a suitable
18667 \begin_layout Standard
18668 \begin_inset VSpace bigskip
18671 In some cases it is required to have all figures/tables at the end of the
18673 For this purpose the LaTeX-package
18678 \begin_inset LatexCommand index
18679 name "LaTeX-packages ! endfloat"
18684 It puts all figure and table floats at the end of the document into own
18686 At the original float position a text hint like
18687 \begin_inset Quotes eld
18692 [Figure\InsetSpace ~
18696 \begin_inset Quotes erd
18700 The endfloat-package is loaded in the preamble with the line
18703 \begin_layout Standard
18708 usepackage[options]{endfloat}
18711 \begin_layout Standard
18712 There are various package options to format the created figure/table sections.
18713 For more information we refer to the
18718 \begin_inset LatexCommand cite
18726 \begin_inset Note Greyedout
18729 \begin_layout Standard
18734 doesn't provide an automatic translation for the text hint, you have to
18735 do this manually, see section\InsetSpace ~
18737 \begin_inset LatexCommand cite
18750 \begin_inset Note Greyedout
18753 \begin_layout Standard
18758 There is currently a bug in
18762 when the caption contains a German
18763 \begin_inset Quotes eld
18767 \begin_inset Quotes erd
18771 Use in this case the command
18772 \begin_inset Quotes eld
18782 \begin_inset Quotes erd
18786 \begin_inset Quotes eld
18790 \begin_inset Quotes erd
18801 \begin_layout Standard
18802 \begin_inset VSpace bigskip
18805 For more details about float placements, have a look at LaTeX books,
18806 \begin_inset LatexCommand cite
18807 key "latexcompanion,latexguide,latexbook"
18814 \begin_layout Section
18816 \begin_inset LatexCommand label
18817 name "sec:Rotated-Floats"
18822 \begin_inset LatexCommand index
18823 name "Floats ! Rotating"
18830 \begin_layout Standard
18831 Especially for wide tables you might have floats rotated.
18832 To rotate a whole float including the caption, right-click on the float-box
18835 Rotate\InsetSpace ~
18841 \begin_layout Standard
18842 Rotated floats are always placed on its own page (or column, when you have
18843 a two-column document).
18844 They are normally rotated so that you can read them from the outside margin
18845 -- to the left on even pages, to the right on odd pages.
18848 \begin_layout Standard
18849 Referencing rotated floats is the same like for normal floats, the caption
18850 format is also the same: Table\InsetSpace ~
18852 \begin_inset LatexCommand ref
18853 reference "tab:Rotated-table"
18857 is an example of a rotated table float.
18860 \begin_layout Standard
18861 \begin_inset Note Greyedout
18864 \begin_layout Standard
18869 Not all DVI-viewers are able to display rotated floats.
18877 \begin_layout Standard
18878 \begin_inset Float table
18883 \begin_layout Caption
18884 \begin_inset LatexCommand label
18885 name "tab:Rotated-table"
18892 \begin_layout Standard
18894 \begin_inset Tabular
18895 <lyxtabular version="3" rows="1" columns="5">
18897 <column alignment="center" valignment="top" leftline="true" width="0">
18898 <column alignment="center" valignment="top" leftline="true" width="0">
18899 <column alignment="center" valignment="top" leftline="true" width="0">
18900 <column alignment="center" valignment="top" leftline="true" width="0">
18901 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
18902 <row topline="true" bottomline="true">
18903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18906 \begin_layout Standard
18912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18915 \begin_layout Standard
18921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18924 \begin_layout Standard
18930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18933 \begin_layout Standard
18939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18942 \begin_layout Standard
18961 \begin_layout Section
18963 \begin_inset LatexCommand index
18964 name "Caption ! Formatting"
18969 \begin_inset LatexCommand index
18970 name "Floats ! Caption Formatting"
18975 \begin_inset LatexCommand index
18976 name "LaTeX-packages ! caption"
18981 \begin_inset LatexCommand label
18982 name "sec:Caption-Formatting"
18989 \begin_layout Standard
18994 environment is the default paragraph environment for
18999 On the LyX screen captions appear as label, e.\InsetSpace \thinspace{}
19002 \begin_inset Quotes eld
19010 \begin_inset Quotes erd
19013 followed by the caption text.
19015 \begin_inset Quotes eld
19019 \begin_inset Quotes erd
19022 is substituted in the printed output by the actual reference number.
19023 By default the label and the number are in the same font as the caption
19024 text and a colon follows the number to divide then label from the text.
19025 This caption format is not suitable for all document formats.
19029 \begin_layout Standard
19030 To change the default caption format, load the LaTeX-package
19035 \begin_inset LatexCommand index
19036 name "LaTeX-packages ! caption"
19040 in the document preamble with this line:
19043 \begin_layout Standard
19048 usepackage[format definition]{caption}
19051 \begin_layout Standard
19052 To have for example the label and the number in sans-serif bold font and
19053 the table captions always above the table like in this document, use the
19057 \begin_layout Standard
19062 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
19065 \begin_layout Standard
19066 You can also define different caption formats for the different float types.
19067 In this case load the
19071 package without format specific options and define the different formats
19072 with the help of the command
19075 \begin_layout Standard
19080 captionsetup[float type]{format definition}
19083 \begin_layout Standard
19084 in the document preamble.
19085 For example the caption formats of Figure\InsetSpace ~
19087 \begin_inset LatexCommand ref
19088 reference "fig:This-is-an-fig"
19092 and Table\InsetSpace ~
19094 \begin_inset LatexCommand ref
19095 reference "tab:This-is-an-tab"
19099 can be created using these commands in the document preamble:
19102 \begin_layout Standard
19107 usepackage[tableposition=top]{caption}
19115 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
19121 \begin_layout Standard
19129 captionsetup[figure]
19140 captionsetup[table]{labelfont={bf,sf}}
19143 \begin_layout Standard
19144 For more information about the package
19148 we refer to its documentation
19149 \begin_inset LatexCommand cite
19150 key "caption,caption-de"
19157 \begin_layout Standard
19158 \begin_inset VSpace bigskip
19166 \begin_inset LatexCommand index
19167 name "LaTeX-packages ! koma-script"
19173 article (koma-script)
19181 letter (koma-script)
19185 report (koma-script)
19187 \InsetSpace \thinspace{}
19188 ), you can alternatively to the
19196 's built-in command
19203 For example, to have the caption label in bold, add this command to your
19207 \begin_layout Standard
19212 setkomafont{captionlabel}{
19217 \begin_layout Standard
19218 For more information about
19229 \begin_inset LatexCommand cite
19230 key "koma-script,koma-script-de"
19237 \begin_layout Standard
19241 \begin_layout Standard
19245 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
19252 \begin_inset Note Note
19255 \begin_layout Standard
19256 The caption format is changed only for this example.
19264 \begin_layout Standard
19265 \begin_inset Float figure
19271 \begin_layout Standard
19273 \begin_inset Graphics
19274 filename mobius.eps
19283 \begin_layout Caption
19284 \begin_inset LatexCommand label
19285 name "fig:This-is-an-fig"
19289 This is an example figure caption that is longer than one line to show the
19290 different caption format.
19291 Here a self-defined caption format is used.
19299 \begin_layout Standard
19303 \begin_layout Standard
19307 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
19316 \begin_layout Standard
19317 \begin_inset Float table
19323 \begin_layout Caption
19324 \begin_inset LatexCommand label
19325 name "tab:This-is-an-tab"
19329 This is an example table caption that is longer than one line to show the
19330 different caption format.
19331 Here the standard caption format for tables in this document is used.
19334 \begin_layout Standard
19336 \begin_inset Tabular
19337 <lyxtabular version="3" rows="1" columns="5">
19339 <column alignment="center" valignment="top" leftline="true" width="0">
19340 <column alignment="center" valignment="top" leftline="true" width="0">
19341 <column alignment="center" valignment="top" leftline="true" width="0">
19342 <column alignment="center" valignment="top" leftline="true" width="0">
19343 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
19344 <row topline="true" bottomline="true">
19345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19348 \begin_layout Standard
19354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19357 \begin_layout Standard
19363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19366 \begin_layout Standard
19372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19375 \begin_layout Standard
19381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19384 \begin_layout Standard
19403 \begin_layout Section
19405 \begin_inset LatexCommand index
19406 name "Caption ! Placement"
19411 \begin_inset LatexCommand index
19412 name "Floats ! Caption Placement"
19417 \begin_inset LatexCommand label
19418 name "sec:Caption-Placement"
19425 \begin_layout Standard
19426 The common caption placement rule is:
19429 \begin_layout Description
19430 Figure: Caption is set below the figure
19433 \begin_layout Description
19434 Table: Caption is set above the table
19437 \begin_layout Standard
19438 Having the caption above the table is unfortunately not supported in LaTeX's
19440 That means if you are using the document classes
19456 there will be no space between the caption and the table.
19457 To insert the needed space, add the following option to the load command
19458 of the LaTeX-package
19462 in your document preamble
19466 \begin_layout Standard
19467 See section\InsetSpace ~
19469 \begin_inset LatexCommand ref
19470 reference "sec:Caption-Formatting"
19474 for more information of the package
19486 \begin_layout Standard
19492 \begin_layout Standard
19498 \begin_inset LatexCommand index
19499 name "LaTeX-packages ! koma-script"
19505 article (koma-script)
19513 letter (koma-script)
19517 report (koma-script)
19519 \InsetSpace \thinspace{}
19520 ), you can alternatively to the
19524 package set the document class option
19528 , or you can use the environment
19530 caption\InsetSpace ~
19540 \begin_layout Standard
19541 \begin_inset VSpace bigskip
19544 It is also possible to set the caption beside a figure or table.
19545 To get this the LaTeX-package
19550 \begin_inset LatexCommand index
19551 name "LaTeX-packages ! sidecap"
19555 has to be loaded in the document preamble with the line
19558 \begin_layout Standard
19563 usepackage[option]{sidecap}
19566 \begin_layout Standard
19567 If you set no option, the caption is placed on the side of the outer page
19568 margin -- to the right on odd pages, to the left on even pages.
19569 You can change the placement to inner margin with the option
19574 To force the placement always to the right or left, use the option
19585 \begin_layout Standard
19586 To place in LyX the caption of a float on the side, it is necessary to add
19587 these commands to the document preamble:
19590 \begin_layout Standard
19596 \begin_layout Standard
19609 \begin_layout Standard
19630 \begin_layout Standard
19651 \begin_layout Standard
19662 renewenvironment{table}{
19669 \begin_layout Standard
19682 \begin_layout Standard
19703 \begin_layout Standard
19721 \begin_layout Standard
19734 \begin_layout Standard
19755 \begin_layout Standard
19776 \begin_layout Standard
19787 renewenvironment{figure}{
19794 \begin_layout Standard
19807 \begin_layout Standard
19828 \begin_layout Standard
19846 \begin_layout Standard
19852 \begin_layout Standard
19853 The commands allow you to redefine the floats so that the caption is set
19855 For figure floats use the command
19858 \begin_layout Standard
19866 \begin_layout Standard
19867 in ERT before the float.
19868 Behind the float insert the command
19871 \begin_layout Standard
19879 \begin_layout Standard
19880 in ERT to get back to the original float definition.
19883 \begin_layout Standard
19884 For table floats use the corresponding commands
19887 \begin_layout Standard
19901 \begin_layout Standard
19902 Figure\InsetSpace ~
19904 \begin_inset LatexCommand ref
19905 reference "fig:cap-beside-fig"
19909 and Table\InsetSpace ~
19911 \begin_inset LatexCommand ref
19912 reference "tab:cap-beside-tab"
19916 are examples where the caption is set beside.
19919 \begin_layout Standard
19920 You can see in the examples that the caption text appears at the top of
19921 the floats for table floats and at the bottom for figure floats.
19922 To change this, you can use the command
19925 \begin_layout Standard
19930 sidecaptionvpos{float type}{placement}
19933 \begin_layout Standard
19934 in the document preamble or in ERT before the float.
19935 The float type is either
19943 , the placement can be
19944 \begin_inset Quotes eld
19952 \begin_inset Quotes erd
19956 \begin_inset Quotes eld
19964 \begin_inset Quotes erd
19968 \begin_inset Quotes eld
19976 \begin_inset Quotes erd
19980 To have for example the caption of figure floats vertically centered, use
19984 \begin_layout Standard
19989 sidecaptionvpos{figure}{c}
19992 \begin_layout Standard
19993 This was used for Figure\InsetSpace ~
19995 \begin_inset LatexCommand ref
19996 reference "fig:cap-beside-fig-2"
20003 \begin_layout Standard
20004 \begin_inset VSpace defskip
20007 For more information about the package
20011 we refer to its documentation
20012 \begin_inset LatexCommand cite
20020 \begin_layout Standard
20021 \begin_inset Note Greyedout
20024 \begin_layout Standard
20034 \begin_inset LatexCommand index
20035 name "LaTeX-packages ! hypcap"
20039 , described in section\InsetSpace ~
20041 \begin_inset LatexCommand ref
20042 reference "sub:Reference-Position"
20046 , has no effect on floats with the caption set beside.
20054 \begin_layout Standard
20058 \begin_layout Standard
20070 \begin_layout Standard
20071 \begin_inset Float figure
20076 \begin_layout Standard
20077 \begin_inset Graphics
20078 filename escher-lsd.eps
20086 \begin_layout Caption
20087 \begin_inset LatexCommand label
20088 name "fig:cap-beside-fig"
20092 This is a caption beside a figure.
20100 \begin_layout Standard
20104 \begin_layout Standard
20116 \begin_layout Standard
20117 \begin_inset Float table
20122 \begin_layout Caption
20123 \begin_inset LatexCommand label
20124 name "tab:cap-beside-tab"
20128 This is a caption beside a table.
20131 \begin_layout Standard
20132 \begin_inset Tabular
20133 <lyxtabular version="3" rows="4" columns="5">
20135 <column alignment="center" valignment="top" leftline="true" width="0">
20136 <column alignment="center" valignment="top" leftline="true" width="0">
20137 <column alignment="center" valignment="top" leftline="true" width="0">
20138 <column alignment="center" valignment="top" leftline="true" width="0">
20139 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
20140 <row topline="true">
20141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20144 \begin_layout Standard
20150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20153 \begin_layout Standard
20159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20162 \begin_layout Standard
20168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20171 \begin_layout Standard
20177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20180 \begin_layout Standard
20187 <row topline="true">
20188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20191 \begin_layout Standard
20197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20200 \begin_layout Standard
20206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20209 \begin_layout Standard
20215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20218 \begin_layout Standard
20224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20227 \begin_layout Standard
20234 <row topline="true">
20235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20238 \begin_layout Standard
20244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20247 \begin_layout Standard
20253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20256 \begin_layout Standard
20262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20265 \begin_layout Standard
20271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20274 \begin_layout Standard
20281 <row topline="true" bottomline="true">
20282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20285 \begin_layout Standard
20291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20294 \begin_layout Standard
20300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20303 \begin_layout Standard
20309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20312 \begin_layout Standard
20318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20321 \begin_layout Standard
20340 \begin_layout Standard
20344 \begin_layout Standard
20356 \begin_layout Standard
20360 \begin_layout Standard
20364 sidecaptionvpos{figure}{c}
20370 \begin_inset Float figure
20375 \begin_layout Standard
20376 \begin_inset Graphics
20377 filename escher-lsd.eps
20385 \begin_layout Caption
20386 \begin_inset LatexCommand label
20387 name "fig:cap-beside-fig-2"
20391 This is a vertically centered caption beside a figure.
20399 \begin_layout Standard
20403 \begin_layout Standard
20415 \begin_layout Section
20417 \begin_inset LatexCommand label
20418 name "sec:Listings-of-Floats"
20423 \begin_inset LatexCommand index
20424 name "Floats ! Listings"
20431 \begin_layout Standard
20432 Similar to the the table of contents where the sections of the document
20433 are listed, there are listings for all float types, like the figures of
20435 You can insert them via the
20437 Insert\SpecialChar \menuseparator
20445 \begin_layout Standard
20446 The list entries are the float captions or its short title, the float number,
20447 and the page number where they appear in the document.
20450 \begin_layout Standard
20451 You can find the list of figures and tables at the end of this document.
20454 \begin_layout Chapter
20458 \begin_layout Section
20462 \begin_layout Standard
20475 \begin_layout Standard
20483 \begin_inset LatexCommand label
20484 name "sec:LyX-Notes"
20489 \begin_inset LatexCommand index
20490 name "Notes ! LyX Notes"
20495 \begin_inset Note Note
20498 \begin_layout Standard
20501 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
20502 are displayed wrongly in PDF-bookmarks.
20503 For more information about this, have a look at
20504 \begin_inset LatexCommand cite
20517 \begin_layout Standard
20518 Notes are inserted with the toolbar button
20519 \begin_inset Graphics
20520 filename ../images/note-insert.xpm
20527 Insert\SpecialChar \menuseparator
20531 There are three types of notes:
20534 \begin_layout Description
20536 Note This note type is for internal notes that won't appear in the output:
20537 Its note-box looks like this:
20542 \begin_inset Graphics
20543 filename ../clipart/LyXNoteImageQt4.png
20550 \begin_inset Note Note
20553 \begin_layout Standard
20554 This is text in a note box that doesn't appear in the output.
20562 \begin_layout Description
20563 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
20564 ent, when you export the document to LaTeX via the menu
20566 File\SpecialChar \menuseparator
20567 Export\SpecialChar \menuseparator
20568 LaTeX (pdflatex) / LaTeX (plain)
20571 Its note-box looks like this:
20576 \begin_inset Graphics
20577 filename ../clipart/CommentNoteImageQt4.png
20584 \begin_inset Note Comment
20587 \begin_layout Standard
20588 This is text in a note box that only appears as comment in LaTeX-files.
20596 \begin_layout Description
20597 Greyed\InsetSpace ~
20598 Out This note will appear in the output as grey text: Its note-box
20604 \begin_inset Graphics
20605 filename ../clipart/GreyedOutNoteImageQt4.png
20617 \begin_layout Standard
20621 renewenvironment{lyxgreyedout}
20624 \begin_layout Standard
20628 textcolor[gray]{0.8}
20638 \begin_inset Note Greyedout
20641 \begin_layout Standard
20646 \begin_layout Standard
20647 This is an example footnote within a greyed out note.
20652 of a comment that appears in the output as grey text.
20661 \begin_layout Standard
20665 renewenvironment{lyxgreyedout}
20668 \begin_layout Standard
20684 \begin_layout Standard
20685 When you use the toolbar button to insert notes, a
20691 You can switch between the three note types by right-clicking on the note-box.
20696 If you want to turn existing text into a note, mark it and click on the
20712 \begin_layout Standard
20713 As you can see in the example above: The first line of greyed out notes
20714 is a bit indented and greyed out notes can have footnotes.
20717 \begin_layout Standard
20718 \begin_inset VSpace bigskip
20721 You can change the color of the greyed out notes in the preamble with the
20725 \begin_layout Standard
20730 renewenvironment{lyxgreyedout}
20736 \begin_layout Standard
20754 \begin_layout Standard
20755 The available colors and the method to define own colors is explained in
20756 section\InsetSpace ~
20758 \begin_inset LatexCommand ref
20759 reference "sec:Colored-Tables"
20766 \begin_layout Standard
20767 Notes that appear in blue in this document are set using greyed out notes
20771 \begin_layout Section
20773 \begin_inset LatexCommand label
20774 name "sec:Footnotes"
20779 \begin_inset LatexCommand index
20780 name "Notes ! Footnotes"
20785 \begin_inset LatexCommand index
20793 \begin_layout Standard
20794 Footnotes can be inserted using the toolbar button
20795 \begin_inset Graphics
20796 filename ../images/footnote-insert.xpm
20803 Insert\SpecialChar \menuseparator
20815 then the following footnote-box:
20816 \begin_inset Graphics
20817 filename ../clipart/footnoteQt4.png
20826 where you can enter the footnote text.
20827 If you want to turn existing text into a footnote, mark it and click on
20843 \begin_layout Standard
20844 Here is an example footnote:
20852 \begin_layout Standard
20853 \begin_inset LatexCommand label
20854 name "foot:This-is-an"
20858 This is an example footnote.
20871 \begin_layout Standard
20875 newcounter{MyRepeatFoot}
20878 \begin_layout Standard
20882 setcounter{MyRepeatFoot}{
20892 \begin_layout Standard
20893 The footnote will appear in the output as a superscript number at the text
20894 position where the footnote box is placed.
20895 The footnote text is placed at the bottom of the current page.
20896 The footnote number is calculated by LaTeX, the numbers are consecutive.
20897 It depends on your document-class, if the footnote number is reset for
20901 \begin_layout Standard
20902 Footnotes can be referenced like floats: Insert a label into the footnote
20903 and cross-reference this label in the text as described in section\InsetSpace ~
20905 \begin_inset LatexCommand ref
20906 reference "sec:Referencing-Floats"
20912 This is a cross-reference of Footnote\InsetSpace ~
20914 \begin_inset LatexCommand prettyref
20915 reference "foot:This-is-an"
20922 \begin_inset Note Greyedout
20925 \begin_layout Standard
20930 LyX doesn't provide a prefix for labels in footnotes, so you have to insert
20931 e.\InsetSpace \thinspace{}
20936 \begin_inset Quotes eld
20942 \begin_inset Quotes erd
20945 manually when you want to use the reference style
20947 Formatted\InsetSpace ~
20958 \begin_layout Standard
20959 \begin_inset VSpace defskip
20962 To use footnotes within tables, you have to use minipages, see section\InsetSpace ~
20964 \begin_inset LatexCommand ref
20965 reference "sec:Minipages"
20970 Footnotes within longtables are described in section\InsetSpace ~
20972 \begin_inset LatexCommand ref
20973 reference "sub:Footnotes-in-Longtables"
20980 \begin_layout Standard
20981 \begin_inset VSpace defskip
20984 To create only a mark for a footnote, use the command
20988 footnotemark[number]
20991 This is used when you have the same annotation several times in a text
20992 but doesn't want to print the footnote text every time.
20995 the number of the repeating footnote while you are writing the text, you
20996 have to store its number.
20997 For the following footnote mark example, these commands were inserted in
20998 ERT behind Footnote\InsetSpace ~
21000 \begin_inset LatexCommand ref
21001 reference "foot:This-is-an"
21005 to store the footnote number:
21008 \begin_layout Standard
21013 newcounter{MyRepeatFoot}
21017 setcounter{MyRepeatFoot}{
21022 \begin_layout Standard
21023 The footnote mark was then created with this command:
21026 \begin_layout Standard
21036 \begin_layout Standard
21037 Here is an example footnote mark:
21045 \begin_layout Standard
21059 \begin_layout Subsection
21061 \begin_inset LatexCommand label
21062 name "sub:Footnote-Numbering"
21067 \begin_inset LatexCommand index
21068 name "Footnotes ! Numbering"
21075 \begin_layout Standard
21076 If you want to have footnotes numbered in the scheme
21077 \begin_inset Quotes eld
21081 \begin_inset Quotes erd
21084 , add the following command to your document preamble:
21087 \begin_layout Standard
21092 numberwithin{footnote}{chapter}
21095 \begin_layout Standard
21096 To be able to use the command
21107 in the document settings the option
21117 \begin_layout Standard
21121 \begin_layout Standard
21125 numberwithin{footnote}{chapter}
21130 This is another example footnote:
21136 \begin_layout Standard
21137 This is a footnote numbered in the scheme
21138 \begin_inset Quotes eld
21142 \begin_inset Quotes erd
21156 \begin_layout Standard
21160 numberwithin{footnote}{part}
21168 \begin_layout Standard
21169 \begin_inset VSpace bigskip
21175 \begin_layout Standard
21176 To reset the footnote number back to 1 after each section
21178 , add this command to your document preamble:
21181 \begin_layout Standard
21186 @addtoreset{footnote}{section}
21189 \begin_layout Standard
21190 \begin_inset VSpace bigskip
21193 The following preamble command changes the footnote numbering style to small
21197 \begin_layout Standard
21209 \begin_layout Standard
21213 \begin_layout Standard
21226 This is a footnote with roman numbering:
21230 \begin_layout Standard
21231 This is an example footnote with roman numbering.
21240 \begin_layout Standard
21256 \begin_layout Standard
21257 To change the numbering style to capital roman numerals replace in the command
21272 \begin_inset Quotes eld
21276 \begin_inset Quotes erd
21279 footnotes with capital or small Latin letters use
21293 \begin_inset Quotes eld
21297 \begin_inset Quotes erd
21300 footnotes with symbols use
21309 \begin_layout Standard
21310 \begin_inset Note Greyedout
21313 \begin_layout Standard
21320 You can only number 26 footnotes with Latin letters, because this numbering
21321 is limited to single letters.
21329 \begin_inset Note Greyedout
21332 \begin_layout Standard
21337 You can only number 9 footnotes with symbols.
21345 \begin_layout Standard
21346 To return to the default numbering style when you changed to another one,
21359 in the command above.
21362 \begin_layout Subsection
21364 \begin_inset LatexCommand index
21365 name "Footnotes ! Placement"
21372 \begin_layout Standard
21373 If you have several footnotes in one page, they appear without vertical
21374 space between them at the bottom of the page.
21375 To make them better readable you can e.\InsetSpace \thinspace{}
21377 add 1.5\InsetSpace \thinspace{}
21378 mm space with the following
21382 \begin_layout Standard
21404 \begin_layout Standard
21405 \begin_inset VSpace bigskip
21408 In a two-column document the footnotes appear at the bottom of every column,
21409 see Figure\InsetSpace ~
21411 \begin_inset LatexCommand ref
21412 reference "fig:Standard-footnote-placement"
21417 If the footnotes should only appear at the bottom of the right column,
21418 as in Figure\InsetSpace ~
21420 \begin_inset LatexCommand ref
21421 reference "fig:Footnote-placement-in"
21425 , use the LaTeX-package
21430 \begin_inset LatexCommand index
21431 name "LaTeX-packages ! ftnright"
21435 with this command in the document preamble:
21438 \begin_layout Standard
21443 usepackage{ftnright}
21446 \begin_layout Standard
21447 \begin_inset Float figure
21453 \begin_layout Standard
21457 \begin_layout Standard
21467 \begin_inset Graphics
21468 filename ../clipart/without_fntright.pdf
21477 \begin_layout Standard
21487 \begin_layout Caption
21488 \begin_inset LatexCommand label
21489 name "fig:Standard-footnote-placement"
21493 Standard footnote placement in two-column documents.
21501 \begin_layout Standard
21502 \begin_inset Float figure
21508 \begin_layout Standard
21512 \begin_layout Standard
21522 \begin_inset Graphics
21523 filename ../clipart/with_fntright.pdf
21532 \begin_layout Standard
21542 \begin_layout Caption
21543 \begin_inset LatexCommand label
21544 name "fig:Footnote-placement-in"
21548 Footnote placement in two-column documents when the LaTeX-package
21560 \begin_layout Standard
21561 \begin_inset VSpace bigskip
21564 In some scientific literature it is usual to collect the footnotes and print
21565 them in a separate paragraph at the the end of a section, like in Figure\InsetSpace ~
21567 \begin_inset LatexCommand ref
21568 reference "fig:Endnotes----footnotes"
21573 They are then so called
21574 \begin_inset Quotes eld
21578 \begin_inset Quotes erd
21582 To use endnotes instead of footnotes in your document, load the LaTeX-package
21588 \begin_inset LatexCommand index
21589 name "LaTeX-packages ! endnotes"
21593 with the document preamble lines
21596 \begin_layout Standard
21601 usepackage{endnotes}
21612 \begin_layout Standard
21613 To insert the collected footnotes, insert the command
21616 \begin_layout Standard
21624 \begin_layout Standard
21625 in ERT at the the end of a section or chapter.
21628 \begin_layout Standard
21629 \begin_inset Float figure
21634 \begin_layout Standard
21639 \begin_layout Standard
21649 \begin_inset Graphics
21650 filename ../clipart/endnotes.pdf
21658 \begin_layout Standard
21668 \begin_layout Caption
21669 \begin_inset LatexCommand label
21670 name "fig:Endnotes----footnotes"
21674 Endnotes -- footnotes are printed in a separate paragraph at the end of
21675 sections or chapters.
21683 \begin_layout Standard
21684 \begin_inset VSpace defskip
21687 The paragraph heading for the endnotes isn't automatically translated into
21688 the document language, this must be done manually.
21689 The following preamble command translate the default English name
21690 \begin_inset Quotes eld
21694 \begin_inset Quotes erd
21697 to the German translation
21698 \begin_inset Quotes eld
21702 \begin_inset Quotes erd
21708 \begin_layout Standard
21715 notesname}{Anmerkungen}
21718 \begin_layout Standard
21719 \begin_inset VSpace defskip
21722 The numbering of endnotes can be changed like the footnote numbering as
21723 described in section\InsetSpace ~
21725 \begin_inset LatexCommand ref
21726 reference "sub:Footnote-Numbering"
21730 ; just replace the command
21743 To reset the endnote number use the command
21749 as described in section\InsetSpace ~
21751 \begin_inset LatexCommand ref
21752 reference "sub:Footnote-Numbering"
21756 and replace the command parameter
21767 \begin_layout Standard
21768 To create only a mark for an endnote, use the command
21772 endnotemark[number]
21774 similar to the command
21780 , described in section\InsetSpace ~
21782 \begin_inset LatexCommand ref
21783 reference "sec:Footnotes"
21790 \begin_layout Standard
21791 \begin_inset VSpace bigskip
21794 Footnotes can also be placed in the page margin and the footnote text alignment
21795 can be changed, see the LaTeX-package
21800 \begin_inset LatexCommand index
21801 name "LaTeX-packages ! footmisc"
21806 \begin_inset LatexCommand cite
21811 for more information about this.
21814 \begin_layout Standard
21815 For various further footnote formatting issues have a look at LaTeX-books,
21817 \begin_inset LatexCommand cite
21818 key "latexcompanion,latexguide,latexbook"
21825 \begin_layout Section
21827 \begin_inset LatexCommand index
21828 name "Notes ! Margin Notes"
21835 \begin_layout Standard
21836 Margin notes look and behave in LyX like footnotes.
21837 They are inserted via the menu
21839 Insert\SpecialChar \menuseparator
21840 Marginal\InsetSpace ~
21843 or the toolbar button
21844 \begin_inset Graphics
21845 filename ../images/marginalnote-insert.xpm
21867 \begin_inset Quotes eld
21871 \begin_inset Quotes erd
21874 appears where you can enter the text of the margin note.
21877 \begin_layout Standard
21878 At the side is an example margin note.
21882 \begin_inset Marginal
21885 \begin_layout Standard
21886 This is a margin note.
21894 \begin_layout Standard
21895 Margin notes appear at the right side in single-sided documents.
21896 In double-sided documents they appear in the outer margin -- left on even
21897 pages, right on odd pages.
21898 The text of margin notes is aligned opposite to the outer margin -- right-align
21899 ed when the note appears in the left margin.
21900 The first line of the margin note is placed at the position of the text
21901 line where it is inserted in the document.
21904 \begin_layout Standard
21905 \begin_inset VSpace bigskip
21908 To place the margin note in the inner margin, add the command
21911 \begin_layout Standard
21919 \begin_layout Standard
21920 in ERT before a margin note.
21921 The new placement is valid for all following margin notes.
21925 \begin_layout Standard
21935 \begin_inset Marginal
21938 \begin_layout Standard
21939 This is a margin note in the inner margin.
21951 \begin_inset Note Greyedout
21954 \begin_layout Standard
21959 There is often not enough space in the inner margin so that the notes are
21960 not correctly displayed in the output.
21968 \begin_layout Standard
21972 \begin_layout Standard
21981 To return to the default placement insert the command
21984 \begin_layout Standard
21992 \begin_layout Standard
21995 \begin_inset Note Greyedout
21998 \begin_layout Standard
22003 The command is ignored when it is within a paragraph where also the command
22018 \begin_layout Standard
22019 \begin_inset VSpace bigskip
22026 \begin_inset Marginal
22029 \begin_layout Standard
22030 AVeryLongMarginParWord that isn't hyphenated.
22038 Similar to the case described in section\InsetSpace ~
22040 \begin_inset LatexCommand ref
22041 reference "sub:Multiple-Lines-in"
22045 , long words cannot be hyphenated when they are the first word in a margin
22047 To avoid this, insert the command
22050 \begin_layout Standard
22058 \begin_layout Standard
22059 in ERT before the word
22063 \begin_inset Marginal
22066 \begin_layout Standard
22070 \begin_layout Standard
22079 AVeryLongMarginParWord that is hyphenated.
22087 \begin_layout Standard
22088 \begin_inset VSpace bigskip
22094 \begin_layout Standard
22095 \begin_inset Note Greyedout
22098 \begin_layout Standard
22103 Margin notes can normally not be used inside tables, floats, and footnotes.
22111 \begin_layout Standard
22112 This restriction can be evaded by using the LaTeX-package
22117 \begin_inset LatexCommand index
22118 name "LaTeX-packages ! marginnote"
22123 By adding these two lines to your document preamble, the command used by
22124 LyX for margin notes is redefined to use the command provided by the
22131 \begin_layout Standard
22136 usepackage{marginnote}
22147 \begin_layout Standard
22148 This is also used in this document because
22152 has another useful feature: You can set a vertical offset for the note.
22153 This is often needed when too many margin notes are too close together
22154 or for a better page layout.
22155 The offset is set in LyX as ERT directly behind the margin note in the
22159 \begin_layout Standard
22165 \begin_layout Standard
22166 where the offset is a length with one of the units listed in Table\InsetSpace ~
22168 \begin_inset LatexCommand ref
22169 reference "tab:Units"
22174 A negative value shifts the note up, a positive value shifts it down.
22178 For example the margin note beside this text line is shifted up 1.5\InsetSpace \thinspace{}
22181 \begin_inset Quotes eld
22191 \begin_inset Quotes erd
22195 \begin_inset Marginal
22198 \begin_layout Standard
22199 This margin note is shifted up 1.5\InsetSpace \thinspace{}
22200 cm from its original position.
22212 \begin_layout Standard
22222 \begin_layout Standard
22223 \begin_inset VSpace defskip
22230 you can also change the alignment of the text in the margin note.
22231 For example the commands
22234 \begin_layout Standard
22241 raggedleftmarginnote}{
22249 raggedrightmarginnote}{
22254 \begin_layout Standard
22255 set the alignment to centered.
22260 raggedleftmarginnote
22262 denotes margin notes that appear at the left side.
22269 \begin_layout Standard
22275 raggedleftmarginnote}{
22280 \begin_layout Standard
22286 raggedrightmarginnote}{
22294 \begin_inset Marginal
22297 \begin_layout Standard
22298 The text of this margin note is centered.
22309 \begin_layout Standard
22316 raggedleftmarginnote}{
22324 raggedrightmarginnote}{
22333 \begin_layout Standard
22339 raggedleftmarginnote}{
22344 \begin_layout Standard
22350 raggedrightmarginnote}{
22360 \begin_layout Standard
22361 \begin_inset VSpace defskip
22364 For the other features of
22368 we refer to its documentation
22369 \begin_inset LatexCommand cite
22377 \begin_layout Standard
22378 \begin_inset VSpace bigskip
22381 You can change the layout of margin notes by redefining its definition.
22382 To create for example a header for all margin notes with the underlined,
22383 sans-serif, and bold header text
22384 \begin_inset Quotes eld
22396 \begin_inset Quotes erd
22399 , add this to your document preamble:
22402 \begin_layout Standard
22425 \begin_layout Standard
22442 underbar{Attention!}}}%
22448 \begin_layout Standard
22466 \begin_layout Standard
22473 \begin_layout Standard
22484 \begin_layout Standard
22495 \begin_layout Standard
22503 underbar{Attention!}}}%
22506 \begin_layout Standard
22520 \begin_inset Marginal
22523 \begin_layout Standard
22524 This is a margin note with a defined heading.
22536 \begin_layout Standard
22550 \begin_layout Standard
22567 \begin_inset Note Note
22570 \begin_layout Standard
22571 The margin note format is changed only for this example.
22579 \begin_layout Chapter
22583 \begin_layout Section
22585 \begin_inset LatexCommand index
22586 name "Boxes ! Introduction"
22593 \begin_layout Standard
22594 Boxes are used to format a block of text.
22595 Boxes can be used to write documents with multiple languages, see section\InsetSpace ~
22597 \begin_inset LatexCommand ref
22598 reference "sec:Minipages"
22602 , to frame texts, see section\InsetSpace ~
22604 \begin_inset LatexCommand ref
22605 reference "sec:Framed-Boxes"
22609 , to prevent words to be hyphenated, see section\InsetSpace ~
22611 \begin_inset LatexCommand ref
22612 reference "sec:Prevent-Hyphenation"
22616 , to align text, see section\InsetSpace ~
22618 \begin_inset LatexCommand ref
22619 reference "sub:Vertical-Alignment"
22623 , or to set the background color of texts, see section\InsetSpace ~
22625 \begin_inset LatexCommand ref
22626 reference "sec:Colored-Boxes"
22633 \begin_layout Standard
22634 Boxes can be inserted with the menu
22636 Insert\SpecialChar \menuseparator
22640 A grey box with the label
22645 \begin_inset Graphics
22646 filename ../clipart/BoxInsetDefaultQt4.png
22651 , will be inserted.
22652 The box type can be specified by right-clicking on the box.
22653 The appearing box dialog offers the
22671 is the default for new boxes and is explained in section\InsetSpace ~
22673 \begin_inset LatexCommand ref
22674 reference "sec:Minipages"
22682 is described in section\InsetSpace ~
22684 \begin_inset LatexCommand ref
22685 reference "sec:Parboxes"
22692 \begin_layout Standard
22693 Boxes aren't numbered and can therefore not be referenced like floats or
22697 \begin_layout Standard
22698 \begin_inset Note Greyedout
22701 \begin_layout Standard
22706 Due to a bug in LyX you have to insert a protected space behind a box when
22707 you want to separate in a line the box from the following text with a space.
22715 \begin_layout Standard
22716 \begin_inset Note Greyedout
22719 \begin_layout Standard
22724 Boxes must not be the item in an
22740 \begin_layout Standard
22741 \begin_inset Note Greyedout
22744 \begin_layout Standard
22749 For an unknown reason you can only set the
22758 when you use a framed box.
22764 type and without frames are explained in section\InsetSpace ~
22766 \begin_inset LatexCommand ref
22767 reference "sec:Prevent-Hyphenation"
22779 \begin_layout Section
22781 \begin_inset LatexCommand label
22782 name "sec:Box-Dialog"
22787 \begin_inset LatexCommand index
22788 name "Boxes ! Box Dialog"
22793 \begin_inset LatexCommand index
22794 name "Boxes ! Alignment"
22801 \begin_layout Standard
22802 In the box dialog you can adjust the box geometry in the fields
22811 The available units for the geometry are explained in Table\InsetSpace ~
22813 \begin_inset LatexCommand ref
22814 reference "tab:Units"
22823 offers the following additional sizes:
22826 \begin_layout Description
22827 Depth This is the plain text
22828 \begin_inset Quotes eld
22832 \begin_inset Quotes erd
22836 It ignores the total depth when there are multiple text lines in the box:
22843 \begin_inset Box Boxed
22852 height_special "depth"
22855 \begin_layout Standard
22857 Box height set to 1\InsetSpace \thinspace{}
22870 \begin_layout Description
22871 Height This is the heigth of the text that is inside the box.
22872 A value of e.\InsetSpace \thinspace{}
22874 2 for this size will set the box heigth to 2 times the text
22876 \begin_inset Box Boxed
22885 height_special "height"
22888 \begin_layout Standard
22890 Box height set to 2\InsetSpace \thinspace{}
22899 \begin_layout Description
22901 Height This is the Height\InsetSpace \thinspace{}
22902 +\InsetSpace \thinspace{}
22904 \begin_inset Box Boxed
22913 height_special "totalheight"
22916 \begin_layout Standard
22918 Box height set to 1\InsetSpace \thinspace{}
22928 \begin_layout Description
22929 Width This set the width of the box as heigth:
22930 \begin_inset Box Boxed
22939 height_special "width"
22942 \begin_layout Standard
22944 Box height set to 1\InsetSpace \thinspace{}
22953 \begin_layout Standard
22954 \begin_inset VSpace bigskip
22957 When you have chosen an
22962 , the vertical box alignment can be:
22965 \begin_layout Description
22966 Top This is an example text line.
22968 \begin_inset Box Boxed
22977 height_special "totalheight"
22980 \begin_layout Standard
22982 This box is top-aligned.
22988 This is an example text line.
22991 \begin_layout Description
22992 Middle This is an example text line.
22994 \begin_inset Box Boxed
23003 height_special "totalheight"
23006 \begin_layout Standard
23008 This box is middle-aligned.
23014 This is an example text line.
23017 \begin_layout Description
23018 Bottom This is an example text line.
23020 \begin_inset Box Boxed
23029 height_special "totalheight"
23032 \begin_layout Standard
23034 This box is bottom-aligned.
23040 This is an example text line.
23043 \begin_layout Standard
23044 The horizontal box alignment can be set via LyX's paragraph dialog when
23045 you set the box into its own paragraph.
23048 \begin_layout Standard
23049 \begin_inset VSpace bigskip
23052 When you have chosen an
23057 , the box content can be vertical aligned to:
23060 \begin_layout Description
23061 top This is an example text line.
23063 \begin_inset Box Boxed
23072 height_special "totalheight"
23075 \begin_layout Standard
23077 This box text is top-aligned.
23083 This is an example text line.
23086 \begin_layout Description
23087 middle This is an example text line.
23089 \begin_inset Box Boxed
23098 height_special "totalheight"
23101 \begin_layout Standard
23103 This box text is middle-aligned.
23109 This is an example text line.
23112 \begin_layout Description
23113 bottom This is an example text line.
23115 \begin_inset Box Boxed
23124 height_special "totalheight"
23127 \begin_layout Standard
23129 This box text is bottom-aligned.
23135 This is an example text line.
23138 \begin_layout Description
23139 stretch This is an example text line.
23141 \begin_inset Box Boxed
23150 height_special "totalheight"
23153 \begin_layout Standard
23158 \begin_layout Standard
23163 \begin_layout Standard
23171 This is an example text line.
23174 \begin_layout Standard
23175 To stretch the box content, it must consist of more than one paragraph.
23176 In the example above every text line is in an own paragraph.
23179 \begin_layout Standard
23180 \begin_inset VSpace bigskip
23183 To align the box content horizontally use LyX's paragraph dialog when If
23192 \begin_layout Standard
23194 \begin_inset Box Boxed
23203 height_special "totalheight"
23206 \begin_layout Standard
23211 \begin_layout Standard
23216 \begin_layout Standard
23226 \begin_layout Standard
23227 If you haven't set an
23232 , you can align the box content horizontally in the box dialog.
23235 \begin_layout Standard
23237 \begin_inset Box Boxed
23246 height_special "totalheight"
23249 \begin_layout Standard
23251 This box text is horizontally stretched.
23259 \begin_layout Section
23261 \begin_inset LatexCommand label
23262 name "sec:Framed-Boxes"
23267 \begin_inset LatexCommand index
23268 name "Boxes ! Frames"
23275 \begin_layout Standard
23276 The frame style of the box can be specified in the box-dialog in the drop-down
23282 The following frame types are possible:
23285 \begin_layout Description
23286 Rectangular\InsetSpace ~
23287 box This draws a rectangle frame around the box.
23288 The frame line thickness has the size of
23296 \begin_inset Box Boxed
23305 height_special "totalheight"
23308 \begin_layout Standard
23318 \begin_layout Description
23321 thin This draws an oval frame around the box.
23322 The frame line thickness has the size 0.4\InsetSpace \thinspace{}
23325 \begin_inset Box ovalbox
23334 height_special "totalheight"
23337 \begin_layout Standard
23347 \begin_layout Description
23350 thick This draws an oval frame around the box.
23351 The frame line thickness has the size 0.8\InsetSpace \thinspace{}
23354 \begin_inset Box Ovalbox
23363 height_special "totalheight"
23366 \begin_layout Standard
23376 \begin_layout Description
23377 Shadow\InsetSpace ~
23378 box This draws a rectangle frame with a shadow around the box.
23379 The frame line thickness has the size of
23385 , the shadow has a width of 4\InsetSpace \thinspace{}
23388 \begin_inset Box Shadowbox
23397 height_special "totalheight"
23400 \begin_layout Standard
23410 \begin_layout Description
23411 Double\InsetSpace ~
23412 box This draws a double-line rectangle frame around the box.
23413 The line thickness of the inner frame is 0.75\InsetSpace \thinspace{}
23420 , the thickness of the outer frame is 1.5\InsetSpace \thinspace{}
23428 The distance between the lines is 1.5\InsetSpace \thinspace{}
23435 \InsetSpace \thinspace{}
23436 +\InsetSpace \thinspace{}
23437 0.5\InsetSpace \thinspace{}
23440 \begin_inset Box Doublebox
23449 height_special "totalheight"
23452 \begin_layout Standard
23462 \begin_layout Standard
23463 \begin_inset VSpace bigskip
23466 LyX's box label will change to the used frame style when you set a frame.
23467 To be able to use the different frame styles, the LaTeX-package
23472 \begin_inset LatexCommand index
23473 name "LaTeX-packages ! fancybox"
23480 \begin_layout Standard
23481 \begin_inset VSpace bigskip
23484 The default value for the size
23490 is 0.4\InsetSpace \thinspace{}
23492 It can be changed with the following command in ERT to e.\InsetSpace \thinspace{}
23494 2\InsetSpace \thinspace{}
23498 \begin_layout Standard
23508 \begin_layout Standard
23512 \begin_layout Standard
23524 \begin_inset Box Boxed
23533 height_special "totalheight"
23536 \begin_layout Standard
23538 Rectangular box with
23544 \InsetSpace \thinspace{}
23545 =\InsetSpace \thinspace{}
23546 2\InsetSpace \thinspace{}
23556 \begin_layout Standard
23570 \begin_layout Standard
23571 \begin_inset VSpace bigskip
23574 The space between the frame and the box content is for all frame styles
23575 by default 3\InsetSpace \thinspace{}
23577 You can change it by setting the length
23584 For example the command
23587 \begin_layout Standard
23597 \begin_layout Standard
23598 sets the value to 10\InsetSpace \thinspace{}
23599 pt, like for the following box:
23602 \begin_layout Standard
23606 \begin_layout Standard
23618 \begin_inset Box Boxed
23627 height_special "totalheight"
23630 \begin_layout Standard
23632 Rectangular box with
23638 \InsetSpace \thinspace{}
23639 =\InsetSpace \thinspace{}
23640 10\InsetSpace \thinspace{}
23650 \begin_layout Standard
23664 \begin_layout Standard
23665 \begin_inset VSpace bigskip
23668 The diameter of the round corners of the oval boxes can be set with the
23679 \begin_layout Standard
23687 \begin_layout Standard
23688 sets the diameter to 1\InsetSpace \thinspace{}
23693 \begin_layout Standard
23701 \begin_layout Standard
23702 sets the diameter to
23704 num\InsetSpace \thinspace{}
23705 ×\InsetSpace \thinspace{}
23706 minimum(width and heigth of box)
23718 \begin_layout Standard
23722 \begin_layout Standard
23732 \begin_inset Box Ovalbox
23741 height_special "totalheight"
23744 \begin_layout Standard
23752 \InsetSpace \thinspace{}
23753 =\InsetSpace \thinspace{}
23754 1.5\InsetSpace \thinspace{}
23764 \begin_layout Standard
23776 \begin_layout Standard
23777 \begin_inset VSpace bigskip
23780 The size of the shadow can be adjusted by changing the length
23787 It it set to 2\InsetSpace \thinspace{}
23788 pt for the following box by this command:
23791 \begin_layout Standard
23801 \begin_layout Standard
23805 \begin_layout Standard
23817 \begin_inset Box Shadowbox
23826 height_special "totalheight"
23829 \begin_layout Standard
23837 \InsetSpace \thinspace{}
23838 =\InsetSpace \thinspace{}
23839 2\InsetSpace \thinspace{}
23849 \begin_layout Standard
23863 \begin_layout Standard
23864 \begin_inset VSpace bigskip
23867 Changed lengths and widths are valid for all boxes following the commands
23871 \begin_layout Section
23873 \begin_inset LatexCommand label
23874 name "sec:Minipages"
23879 \begin_inset LatexCommand index
23880 name "Boxes ! Minipages"
23887 \begin_layout Standard
23888 Minipages are treated by LaTeX as pages within pages and can therefore for
23889 example have their own footnotes.
23892 \begin_layout Standard
23893 Minipages are useful when you write documents with different languages.
23896 \begin_layout Standard
23897 Below are two example minipages side by side.
23898 Their width is set to 45\InsetSpace \thinspace{}
23899 col% and they are separated by a horizontal fill,
23900 that was inserted via the menu
23902 Insert\SpecialChar \menuseparator
23903 Special\InsetSpace ~
23904 Formatting\SpecialChar \menuseparator
23905 Horizontal\InsetSpace ~
23911 \begin_layout Standard
23912 \begin_inset Box Frameless
23921 height_special "totalheight"
23924 \begin_layout Standard
23927 Dies ist ein deutscher Text.
23928 Dies ist ein deutscher Text.
23929 Dies ist ein deutscher Text.
23930 Dies ist ein deutscher Text.
23931 Dies ist ein deutscher Text.
23932 Dies ist ein deutscher Text.
23933 Dies ist ein deutscher Text.
23934 Dies ist ein deutscher Text.
23935 Dies ist ein deutscher Text.
23936 Dies ist ein deutscher Text.
23937 Dies ist ein deutscher Text.
23938 Dies ist ein deutscher Text.
23939 Dies ist ein deutscher Text
23943 \begin_layout Standard
23946 Dies ist eine deutsche Fußnote.
23952 Dies ist ein deutscher Text.
23953 Dies ist ein deutscher Text.
23961 \begin_inset Box Frameless
23970 height_special "totalheight"
23973 \begin_layout Standard
23974 This is an English Text.
23975 This is an English Text.
23976 This is an English Text.
23977 This is an English Text.
23978 This is an English Text.
23979 This is an English Text.
23980 This is an English Text.
23981 This is an English Text.
23982 This is an English Text.
23983 This is an English Text.
23984 This is an English Text.
23985 This is an English Text.
23986 This is an English Text.
23987 This is an English Text.
23988 This is an English Text.
23989 This is an English Text.
23993 \begin_layout Standard
23994 This is an English footnote.
23999 This is an English Text.
24008 \begin_layout Standard
24009 \begin_inset VSpace bigskip
24012 Another application for minipages are footnotes within tables.
24013 Due to a LaTeX restriction footnotes within tables doesn't appear at the
24014 bottom of the current page.
24015 But when you put the table with the footnote to a minipage, the footnote
24016 will appear at its bottom, numbered with Latin letters.
24017 The footnote number is reset to 1 in every minipage but not outside the
24021 \begin_layout Standard
24022 The footnote of this table doesn't appear:
24023 \begin_inset Tabular
24024 <lyxtabular version="3" rows="3" columns="4">
24026 <column alignment="center" valignment="top" leftline="true" width="0pt">
24027 <column alignment="center" valignment="top" leftline="true" width="0pt">
24028 <column alignment="center" valignment="top" leftline="true" width="0pt">
24029 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24030 <row topline="true">
24031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24034 \begin_layout Standard
24040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24043 \begin_layout Standard
24049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24052 \begin_layout Standard
24057 \begin_layout Standard
24058 This is a footnote within a table.
24068 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24071 \begin_layout Standard
24078 <row topline="true">
24079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24082 \begin_layout Standard
24088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24091 \begin_layout Standard
24097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24100 \begin_layout Standard
24106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24109 \begin_layout Standard
24116 <row topline="true" bottomline="true">
24117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24120 \begin_layout Standard
24126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24129 \begin_layout Standard
24135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24138 \begin_layout Standard
24144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24147 \begin_layout Standard
24161 \begin_layout Standard
24163 \begin_inset Box Frameless
24172 height_special "totalheight"
24175 \begin_layout Standard
24177 \begin_inset Tabular
24178 <lyxtabular version="3" rows="3" columns="4">
24180 <column alignment="center" valignment="top" leftline="true" width="0pt">
24181 <column alignment="center" valignment="top" leftline="true" width="0pt">
24182 <column alignment="center" valignment="top" leftline="true" width="0pt">
24183 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
24184 <row topline="true">
24185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24188 \begin_layout Standard
24194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24197 \begin_layout Standard
24203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24206 \begin_layout Standard
24211 \begin_layout Standard
24212 This is a footnote within a table.
24222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24225 \begin_layout Standard
24232 <row topline="true">
24233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24236 \begin_layout Standard
24242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24245 \begin_layout Standard
24251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24254 \begin_layout Standard
24260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24263 \begin_layout Standard
24270 <row topline="true" bottomline="true">
24271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24274 \begin_layout Standard
24280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24283 \begin_layout Standard
24289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24292 \begin_layout Standard
24298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24301 \begin_layout Standard
24320 \begin_layout Standard
24321 \begin_inset VSpace bigskip
24324 The document-wide paragraph settings are ignored within minipages.
24325 That means that there will be no space between paragraphs in minipages
24326 although you set it to e.\InsetSpace \thinspace{}
24332 in the document settings.
24335 \begin_layout Standard
24336 Minipages can also be used to set a background color for text parts, see
24337 section\InsetSpace ~
24339 \begin_inset LatexCommand ref
24340 reference "sub:Color-for-Paragraphs"
24347 \begin_layout Standard
24348 \begin_inset Note Greyedout
24351 \begin_layout Standard
24356 You cannot have floats or margin notes inside minipages but minipages can
24357 be used inside tables, floats, and other boxes.
24365 \begin_layout Section
24367 \begin_inset LatexCommand label
24368 name "sec:Parboxes"
24373 \begin_inset LatexCommand index
24374 name "Boxes ! Parboxes"
24381 \begin_layout Standard
24382 Parboxes are very similar to minipages with the difference that they cannot
24384 The main difference to minipages is that minipages are in contrary to parboxes
24385 no real boxes but LaTeX-environments.
24388 \begin_layout Standard
24390 \begin_inset Box Frameless
24399 height_special "totalheight"
24402 \begin_layout Standard
24403 This a text within a parbox.
24404 This a text within a parbox.
24407 \begin_layout Standard
24408 This footnote won't appear:
24412 \begin_layout Standard
24413 This footnote is inside a parbox and will therefore not appear.
24426 \begin_layout Section
24427 Boxes for Words and Characters
24428 \begin_inset LatexCommand index
24429 name "Boxes ! for Characters"
24436 \begin_layout Subsection
24437 Prevent Hyphenation
24438 \begin_inset LatexCommand label
24439 name "sec:Prevent-Hyphenation"
24444 \begin_inset LatexCommand index
24445 name "Boxes ! to Prevent Hyphenation"
24452 \begin_layout Standard
24453 You can use a special kind of boxes to prevent words or text to be hyphenated.
24456 e is an example text:
24459 \begin_layout Standard
24460 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
24466 \begin_layout Standard
24467 To prevent the hyphenation of the word
24468 \begin_inset Quotes eld
24472 \begin_inset Quotes erd
24478 \begin_layout Standard
24486 \begin_layout Standard
24487 in ERT before the word.
24488 Behind the word insert a closing brace
24489 \begin_inset Quotes eld
24497 \begin_inset Quotes erd
24504 \begin_layout Standard
24516 \begin_layout Standard
24517 This is the result:
24520 \begin_layout Standard
24521 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
24527 \begin_layout Standard
24540 \begin_layout Standard
24550 \begin_layout Standard
24551 Of course the word now protrudes over the side margin.
24552 To avoid this, add via the menu
24554 Insert\SpecialChar \menuseparator
24555 Special\InsetSpace ~
24556 Formatting\SpecialChar \menuseparator
24564 ) a line break before the word:
24567 \begin_layout Standard
24568 This line is an example to show how you can prevent the hyphenation of e.\InsetSpace \thinspace{}
24576 \begin_layout Standard
24589 \begin_layout Standard
24599 \begin_layout Subsection
24601 \begin_inset LatexCommand label
24602 name "sub:Vertical-Alignment"
24607 \begin_inset LatexCommand index
24608 name "Boxes ! for Vertical Alignment"
24613 \begin_inset LatexCommand index
24614 name "Boxes ! Raiseboxes"
24621 \begin_layout Standard
24622 With the help of the command
24628 you can align words, characters or other boxes vertically to the surrounding
24636 is used with the following scheme:
24639 \begin_layout Standard
24644 raisebox{lift}[height][depth]{box content}
24647 \begin_layout Standard
24648 The lift can be a positive value to raise the box or a negative value to
24652 \begin_layout Standard
24653 To align for example the word
24654 \begin_inset Quotes eld
24658 \begin_inset Quotes erd
24661 so that the bottom of the
24662 \begin_inset Quotes eld
24666 \begin_inset Quotes erd
24670 \begin_inset Quotes eld
24674 \begin_inset Quotes erd
24677 is at the baseline, insert the command
24680 \begin_layout Standard
24690 \begin_layout Standard
24691 in ERT before the word.
24692 Behind the word insert a closing brace
24693 \begin_inset Quotes eld
24701 \begin_inset Quotes erd
24706 This is the result:
24709 \begin_layout Standard
24710 This is a text line with the word
24714 \begin_layout Standard
24726 \begin_inset Quotes eld
24730 \begin_inset Quotes erd
24737 \begin_layout Standard
24747 \begin_layout Standard
24748 \begin_inset VSpace bigskip
24751 When you raise or lower characters in a line, the line distance will be
24755 \begin_layout Standard
24756 This is a text line with the word
24760 \begin_layout Standard
24772 \begin_inset Quotes eld
24776 \begin_inset Quotes erd
24783 \begin_layout Standard
24792 This is a text line with the word
24796 \begin_layout Standard
24806 \begin_inset Quotes eld
24810 \begin_inset Quotes erd
24817 \begin_layout Standard
24827 \begin_layout Standard
24828 If you want to prevent this for a certain reason, set the box height to
24833 \begin_layout Standard
24843 \begin_layout Standard
24844 This is a text line with the word
24848 \begin_layout Standard
24860 \begin_inset Quotes eld
24864 \begin_inset Quotes erd
24871 \begin_layout Standard
24880 This is a text line with the word
24884 \begin_layout Standard
24888 raisebox{0.5cm}[0pt]{
24894 \begin_inset Quotes eld
24898 \begin_inset Quotes erd
24905 \begin_layout Standard
24915 \begin_layout Section
24917 \begin_inset LatexCommand label
24918 name "sec:Colored-Boxes"
24923 \begin_inset LatexCommand index
24924 name "Boxes ! Color"
24931 \begin_layout Subsection
24933 \begin_inset LatexCommand index
24934 name "Color ! for Text"
24941 \begin_layout Standard
24942 To color the background of text the text must be put into a so called colorbox.
24943 This requires that the LaTeX-package
24948 \begin_inset LatexCommand index
24949 name "LaTeX-packages ! color"
24953 is loaded in the document preamble with the command
24956 \begin_layout Standard
24961 @ifundefined{textcolor}
24967 \begin_layout Standard
24978 usepackage{color}}{}
24981 \begin_layout Standard
24986 will be loaded automatically by LyX when you color text
24990 \begin_layout Standard
24991 To avoid that it is loaded twice the command
25005 \begin_layout Standard
25006 \begin_inset VSpace medskip
25009 Colorboxes are created with the command
25016 This will be used with the following scheme:
25019 \begin_layout Standard
25024 colorbox{color}{box content}
25027 \begin_layout Standard
25028 The box content can also be a box and colorboxes can also be within other
25032 \begin_layout Standard
25033 The following colors are predefined:
25071 You can also define your own color as described in section\InsetSpace ~
25073 \begin_inset LatexCommand ref
25074 reference "sec:Colored-Tables"
25081 \begin_layout Standard
25082 To have e.\InsetSpace \thinspace{}
25084 a red background for a word, insert the command
25087 \begin_layout Standard
25095 \begin_layout Standard
25096 before the word in ERT.
25097 Behind the word insert a closing brace
25098 \begin_inset Quotes eld
25106 \begin_inset Quotes erd
25111 This is the result:
25114 \begin_layout Standard
25115 This is a line where the word
25119 \begin_layout Standard
25129 \begin_inset Quotes eld
25133 \begin_inset Quotes erd
25140 \begin_layout Standard
25147 has a red background.
25150 \begin_layout Standard
25151 \begin_inset VSpace bigskip
25154 If you would have the box frame in a different color, you can use the command
25161 with the following scheme:
25164 \begin_layout Standard
25169 fcolorbox{frame color}{box color}{box content}
25172 \begin_layout Standard
25186 The frame thickness and the space between the frame and the box content
25187 can be adjusted with the lengths
25199 , respectively, as described in section\InsetSpace ~
25201 \begin_inset LatexCommand ref
25202 reference "sec:Framed-Boxes"
25209 \begin_layout Standard
25210 For the following example the command
25213 \begin_layout Standard
25218 fcolorbox{cyan}{magenta}{
25221 \begin_layout Standard
25225 \begin_layout Standard
25226 Here is an example where the frame line thickness was set to 1\InsetSpace \thinspace{}
25233 \begin_layout Standard
25248 \begin_layout Standard
25252 fcolorbox{cyan}{magenta}{
25257 This is text within a colored, framed box.
25261 \begin_layout Standard
25271 \begin_layout Standard
25272 \begin_inset VSpace bigskip
25275 Of course you can also have colored text inside a colorbox:
25281 \begin_layout Standard
25285 fcolorbox{cyan}{magenta}{
25292 This is colored text within a colored, framed box.
25298 \begin_layout Standard
25309 \begin_layout Standard
25323 \begin_layout Standard
25326 \begin_inset VSpace medskip
25332 \begin_layout Standard
25333 \begin_inset Note Greyedout
25336 \begin_layout Standard
25341 Text in colorboxes cannot have line breaks.
25342 To color multiple text lines or paragraphs, use a box inside a colorbox
25343 as described in the following.
25351 \begin_layout Subsection
25352 Color for Paragraphs
25353 \begin_inset LatexCommand label
25354 name "sub:Color-for-Paragraphs"
25359 \begin_inset LatexCommand index
25360 name "Color ! for Paragraphs"
25367 \begin_layout Standard
25368 To set the background color for more than one text line, put the text into
25370 Before the minipage insert the
25379 \begin_layout Standard
25387 \begin_layout Standard
25389 Behind the minipage insert a closing brace
25390 \begin_inset Quotes eld
25398 \begin_inset Quotes erd
25404 \begin_layout Standard
25408 \begin_layout Standard
25412 colorbox{lightgrey}{
25418 \begin_inset Box Frameless
25427 height_special "totalheight"
25430 \begin_layout Standard
25431 This is text with background color.
25432 This is text with background color.
25435 \begin_layout Standard
25436 \begin_inset VSpace defskip
25439 The text can have footnotes
25443 \begin_layout Standard
25444 Another example footnote
25449 and can include tables and figures.
25452 \begin_layout Standard
25454 \begin_inset Tabular
25455 <lyxtabular version="3" rows="3" columns="3">
25457 <column alignment="center" valignment="top" leftline="true" width="0">
25458 <column alignment="center" valignment="top" leftline="true" width="0">
25459 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
25460 <row topline="true">
25461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25464 \begin_layout Standard
25470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25473 \begin_layout Standard
25479 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25482 \begin_layout Standard
25489 <row topline="true">
25490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25493 \begin_layout Standard
25499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25502 \begin_layout Standard
25504 \begin_inset Quotes erd
25512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25515 \begin_layout Standard
25522 <row topline="true" bottomline="true">
25523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25526 \begin_layout Standard
25532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25535 \begin_layout Standard
25541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25544 \begin_layout Standard
25564 \begin_layout Standard
25574 \begin_layout Section
25575 URLs (Uniform Resource Locators)
25576 \begin_inset LatexCommand index
25584 \begin_layout Standard
25585 Links to web pages or email addresses can be inserted via the menu
25587 Insert\SpecialChar \menuseparator
25591 The appearing URL dialog has two fields; the
25599 field for the URL description, which will be typeset as plain text immediately
25603 \begin_layout Standard
25604 Here is an example URL:
25605 \begin_inset LatexCommand url
25606 name "LyX's homepage"
25607 target "http://www.lyx.org"
25614 \begin_layout Standard
25617 Generate\InsetSpace ~
25620 in the URL dialog has only an affect when you export your document to the
25622 \begin_inset Quotes eld
25630 \begin_inset Quotes erd
25636 \begin_layout Standard
25637 You cannot change the style of the link text.
25642 field will have the default text style of the document while the text of
25647 field will have the style
25648 \begin_inset Quotes eld
25656 \begin_inset Quotes erd
25662 \begin_layout Standard
25663 When you use the LaTeX-package
25668 \begin_inset LatexCommand index
25669 name "LaTeX-packages ! hyperref"
25673 to link cross-references in the output, URLs will automatically become
25674 clickable hyperlinks in DVI and PDF-output.
25677 \begin_layout Standard
25678 \begin_inset Note Greyedout
25681 \begin_layout Standard
25686 When you use the following characters: "%", "#", "^", you have to write
25687 them with a preceding backslash, e.\InsetSpace \thinspace{}
25690 \begin_inset Quotes eld
25696 \begin_inset Quotes erd
25700 URLs must not end with a backslash.
25708 \begin_layout Standard
25709 \begin_inset VSpace bigskip
25712 To create real hyperlinks without the force to write the link location to
25713 the text, you can use the command
25716 \begin_layout Standard
25721 href{link location}{link text}
25724 \begin_layout Standard
25726 To get for example a link to LyX's web page, write the command
25729 \begin_layout Standard
25734 href{http://www.lyx.org}{
25737 \begin_layout Standard
25739 Insert after the command the link text
25740 \begin_inset Quotes eld
25744 \begin_inset Quotes erd
25747 followed by a brace that is inside an ERT-box.
25748 This is the result:
25752 \begin_layout Standard
25756 href{http://www.lyx.org}{
25765 \begin_layout Standard
25775 \begin_layout Standard
25776 To link to email addresses, add the prefix
25777 \begin_inset Quotes eld
25785 \begin_inset Quotes erd
25788 to the link location:
25794 \begin_layout Standard
25798 href{mailto:lyx-docs@lists.lyx.org?subject=LyX's documentation}{
25803 lyx-docs mailing list
25807 \begin_layout Standard
25817 \begin_layout Standard
25824 instead of LyX's URL box has the advantage that you can specify the text
25825 style of the link text for all other text parts and that you are able to
25826 change the text style for all URLs in your document with an option in
25831 Furthermore the restrictions mentioned above doesn't apply for
25841 \begin_layout Standard
25845 \begin_layout Standard
25851 \begin_layout Chapter
25857 \begin_layout Standard
25870 \begin_layout Standard
25878 \begin_inset LatexCommand index
25884 \begin_inset LatexCommand label
25885 name "cha:Units-available-in"
25890 \begin_inset Note Note
25893 \begin_layout Standard
25896 texorpdfstring is provided by the LaTeX-package hyperref to avoid that ligatures
25897 are displayed wrongly in PDF-bookmarks.
25898 For more information about this, have a look at
25899 \begin_inset LatexCommand cite
25912 \begin_layout Standard
25913 To understand the units described in this documentation, Table\InsetSpace ~
25915 \begin_inset LatexCommand ref
25916 reference "tab:Units"
25920 explains all units available in LyX.
25923 \begin_layout Standard
25924 \begin_inset Float table
25930 \begin_layout Caption
25931 \begin_inset LatexCommand label
25939 \begin_layout Standard
25940 \begin_inset VSpace medskip
25946 \begin_layout Standard
25948 \begin_inset Tabular
25949 <lyxtabular version="3" rows="20" columns="2">
25951 <column alignment="center" valignment="top" leftline="true" width="0">
25952 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
25953 <row topline="true" bottomline="true">
25954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25957 \begin_layout Standard
25963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25966 \begin_layout Standard
25973 <row topline="true">
25974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25977 \begin_layout Standard
25983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25986 \begin_layout Standard
25993 <row topline="true">
25994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25997 \begin_layout Standard
26003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26006 \begin_layout Standard
26013 <row topline="true">
26014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26017 \begin_layout Standard
26023 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26026 \begin_layout Standard
26033 <row topline="true">
26034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26037 \begin_layout Standard
26043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26046 \begin_layout Standard
26047 point (72.27\InsetSpace \thinspace{}
26048 pt = 1\InsetSpace \thinspace{}
26055 <row topline="true">
26056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26059 \begin_layout Standard
26065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26068 \begin_layout Standard
26069 pica (1\InsetSpace \thinspace{}
26070 pc = 12\InsetSpace \thinspace{}
26077 <row topline="true">
26078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26081 \begin_layout Standard
26087 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26090 \begin_layout Standard
26091 scaled point (65536\InsetSpace \thinspace{}
26092 sp = 1\InsetSpace \thinspace{}
26099 <row topline="true">
26100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26103 \begin_layout Standard
26109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26112 \begin_layout Standard
26113 big point (72\InsetSpace \thinspace{}
26114 bp = 1\InsetSpace \thinspace{}
26121 <row topline="true">
26122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26125 \begin_layout Standard
26131 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26134 \begin_layout Standard
26135 didot (72\InsetSpace \thinspace{}
26137 \begin_inset Formula $\approx$
26140 37.6\InsetSpace \thinspace{}
26147 <row topline="true">
26148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26151 \begin_layout Standard
26157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26160 \begin_layout Standard
26161 cicero (1\InsetSpace \thinspace{}
26162 cc = 12\InsetSpace \thinspace{}
26169 <row topline="true">
26170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26173 \begin_layout Standard
26179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26182 \begin_layout Standard
26183 % of original image width
26189 <row topline="true">
26190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26193 \begin_layout Standard
26199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26202 \begin_layout Standard
26209 <row topline="true">
26210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26213 \begin_layout Standard
26219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26222 \begin_layout Standard
26229 <row topline="true">
26230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26233 \begin_layout Standard
26239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26242 \begin_layout Standard
26249 <row topline="true">
26250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26253 \begin_layout Standard
26259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26262 \begin_layout Standard
26269 <row topline="true">
26270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26273 \begin_layout Standard
26279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26282 \begin_layout Standard
26289 <row topline="true">
26290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26293 \begin_layout Standard
26299 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26302 \begin_layout Standard
26309 <row topline="true">
26310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26313 \begin_layout Standard
26319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26322 \begin_layout Standard
26333 <row topline="true">
26334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26337 \begin_layout Standard
26343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26346 \begin_layout Standard
26357 <row topline="true" bottomline="true">
26358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26361 \begin_layout Standard
26367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26370 \begin_layout Standard
26371 math unit (1\InsetSpace \thinspace{}
26372 mu = 1/18\InsetSpace \thinspace{}
26391 \begin_layout Chapter
26392 Output File Formats with Graphics
26393 \begin_inset LatexCommand label
26394 name "cha:Output-File-Formats"
26401 \begin_layout Section
26403 \begin_inset LatexCommand index
26404 name "File Formats ! DVI"
26409 \begin_inset LatexCommand index
26410 name "DVI|see{File Formats}"
26417 \begin_layout Standard
26418 This file type has the extension
26419 \begin_inset Quotes eld
26427 \begin_inset Quotes erd
26432 \begin_inset Quotes eld
26436 \begin_inset Quotes erd
26439 (DVI), because it is completely portable; you can move them from one machine
26440 to another without needing to do any sort of conversion.
26441 At the time when this file-format was developed, this was no matter of
26443 DVIs are used for quick previews and as pre-stage for other output formats,
26447 \begin_layout Standard
26448 \begin_inset Note Greyedout
26451 \begin_layout Standard
26456 DVI-files doesn't contain images, they will only be a linked.
26461 So don't forget this, if you move your
26465 file to another computer.
26466 This property can also slow down your computer when you view the DVI.
26467 Because the DVI-viewer has to convert the image in the background to make
26468 it visible when you scroll in the DVI.
26469 So we recommend to use PDF for files with many images.
26472 \begin_layout Standard
26473 You can export your document to DVI by using the menu
26475 File\SpecialChar \menuseparator
26476 Export\SpecialChar \menuseparator
26480 You can view your document as PostScript via the
26484 menu or by using the toolbar button
26485 \begin_inset Graphics
26486 filename ../images/buffer-view_dvi.xpm
26494 \begin_layout Section
26496 \begin_inset LatexCommand label
26497 name "sec:PostScript"
26502 \begin_inset LatexCommand index
26503 name "File Formats ! PostScript\\protect\\pagebreak"
26508 \begin_inset LatexCommand index
26509 name "PostScript|see{File Formats}"
26516 \begin_layout Standard
26517 This file type has the extension
26518 \begin_inset Quotes eld
26526 \begin_inset Quotes erd
26530 PostScript was developed by the company
26534 as printer language.
26535 The file contains therefore commands that the printer uses to print the
26537 PostScript can be seen as
26538 \begin_inset Quotes eld
26541 programming language
26542 \begin_inset Quotes erd
26545 ; you can calculate with it and draw diagrams and images
26549 \begin_layout Standard
26550 If you are interested to learn more about this, have a look at the LaTeX-package
26556 \begin_inset LatexCommand cite
26567 Due to this ability, the files are often bigger than PDFs.
26570 \begin_layout Standard
26571 PostScript can only contain images in the format
26572 \begin_inset Quotes eld
26575 Encapsulated PostScript
26576 \begin_inset Quotes erd
26579 (EPS, file extension
26580 \begin_inset Quotes eld
26588 \begin_inset Quotes erd
26592 As LyX allows you to use any known image format in your document, it has
26593 to convert images in the background to EPS.
26594 If you have e.g 50 images in your document, LyX has to do 50 conversions
26595 whenever you view or export your document.
26596 This will slow down your work flow with LyX drastically.
26597 So if you plan to use PostScript, you can insert your images directly as
26598 EPS to avoid this problem.
26601 \begin_layout Standard
26602 You can export your document to PostScript using the menu
26604 File\SpecialChar \menuseparator
26605 Export\SpecialChar \menuseparator
26609 You can view your document as PostScript via the
26613 menu or by using the toolbar button
26614 \begin_inset Graphics
26615 filename ../images/buffer-view_ps.xpm
26623 \begin_layout Section
26625 \begin_inset LatexCommand label
26631 \begin_inset LatexCommand index
26632 name "File Formats ! PDF"
26637 \begin_inset LatexCommand index
26645 \begin_layout Standard
26646 This file type has the extension
26647 \begin_inset Quotes eld
26655 \begin_inset Quotes erd
26660 \begin_inset Quotes eld
26663 Portable Document Format
26664 \begin_inset Quotes erd
26667 (PDF) is developed by
26671 as derivative from PostScript.
26672 It is more compressed and it uses much less commands than PostScript.
26674 \begin_inset Quotes eld
26678 \begin_inset Quotes erd
26681 implies, it can be processed at any computer system and the printed output
26682 looks exactly the same.
26685 \begin_layout Standard
26686 PDF can contain images in its own PDF format, in the format
26687 \begin_inset Quotes eld
26690 Joint Photographic Experts Group
26691 \begin_inset Quotes erd
26694 (JPG, file extension
26695 \begin_inset Quotes eld
26703 \begin_inset Quotes erd
26707 \begin_inset Quotes eld
26715 \begin_inset Quotes erd
26718 ), and in the format
26719 \begin_inset Quotes eld
26722 Portable Network Graphics
26723 \begin_inset Quotes erd
26726 (PNG, file extension
26727 \begin_inset Quotes eld
26735 \begin_inset Quotes erd
26739 You can although use any other image format, because LyX converts them
26740 in the background to one of these formats.
26741 But as described in the section about PostScript, the image conversion
26742 will slow down your work flow.
26743 So it is recommended to use images in one of the three mentioned formats.
26746 \begin_layout Standard
26747 You can export your document to PDF via the menu
26749 File\SpecialChar \menuseparator
26752 in three different ways:
26755 \begin_layout Description
26756 PDF This uses the program
26760 that creates a PDF from a PostScript-version of your file.
26761 The PostScript-version is produced by the program
26765 which uses a DVI-version as intermediate step.
26766 So this export variant consist of three conversions.
26769 \begin_layout Description
26771 (dvipdfm) This uses the program
26775 that converts your file in the background to DVI and in a second step to
26779 \begin_layout Description
26781 (pdflatex) This uses the program
26785 that converts your file directly to PDF.
26788 \begin_layout Standard
26789 It is recommended to use
26798 supports all features of actual PDF-versions, is quick and works stable
26804 is not under development and therefore a bit outdated.
26807 \begin_layout Standard
26808 You can view your document as PDF via the
26812 menu or by using the toolbar button
26813 \begin_inset Graphics
26814 filename ../images/buffer-view_pdf2.xpm
26831 \begin_layout Chapter
26832 Explanation of Equation\InsetSpace ~
26834 \begin_inset LatexCommand eqref
26840 \begin_inset LatexCommand label
26841 name "cha:Explanation-of-Equation"
26848 \begin_layout Standard
26854 \begin_inset Formula $W_{\mathrm{tot\, n}}$
26857 can be calculated to
26860 \begin_layout Standard
26861 \begin_inset Formula \begin{equation}
26862 W_{\mathrm{tot}\, n}=n·(W_{g\, n}+2·\backslash\mbox{tabcolsep})+(n+1)·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
26869 \begin_layout Standard
26871 \begin_inset Formula $W_{g\, n}$
26874 is the given width of all cells.
26881 is the LaTeX-length between the cell text and the cell border, its default
26882 value is 6\InsetSpace \thinspace{}
26890 is the thickness of the cell border line, the default is 0.4\InsetSpace \thinspace{}
26894 \begin_layout Standard
26895 Following equation\InsetSpace ~
26897 \begin_inset LatexCommand eqref
26898 reference "eq:Wtot_n"
26902 , the total width of a multicolumn
26903 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
26909 \begin_layout Standard
26910 \begin_inset Formula \begin{equation}
26911 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2·\backslash\mbox{tabcolsep}+2·\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
26918 \begin_layout Standard
26919 By setting equation\InsetSpace ~
26921 \begin_inset LatexCommand eqref
26922 reference "eq:Wtot_n"
26927 \begin_inset LatexCommand eqref
26928 reference "eq:Wtot_mult"
26932 equal we can calculate the needed given width
26933 \begin_inset Formula $W_{g\, n}$
26940 columns are spanned, so that each column has a total width of
26941 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
26947 \begin_layout Standard
26948 \begin_inset Formula \begin{equation}
26949 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)·(2·\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
26956 \begin_layout Bibliography
26957 \begin_inset LatexCommand bibitem
26958 key "latexcompanion"
26962 Frank Mittelbach and Michel Goossens:
26964 The LaTeX Companion Second Edition.
26967 Addison-Wesley, 2004
26970 \begin_layout Bibliography
26971 \begin_inset LatexCommand bibitem
26976 Helmut Kopka and Patrick W.
26979 A Guide to LaTeX Fourth Edition.
26982 Addison-Wesley, 2003
26985 \begin_layout Bibliography
26986 \begin_inset LatexCommand bibitem
26993 LaTeX: A Document Preparation System.
26996 Addison-Wesley, second edition, 1994
26999 \begin_layout Bibliography
27000 \begin_inset LatexCommand bibitem
27009 \begin_layout Standard
27013 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf}
27023 \begin_layout Standard
27030 of the LaTeX-package
27035 \begin_inset LatexCommand index
27036 name "LaTeX-packages ! booktabs"
27043 \begin_layout Bibliography
27044 \begin_inset LatexCommand bibitem
27053 \begin_layout Standard
27057 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf}{
27066 \begin_layout Standard
27073 of the LaTeX-package
27078 \begin_inset LatexCommand index
27079 name "LaTeX-packages ! caption"
27086 \begin_layout Bibliography
27087 \begin_inset LatexCommand bibitem
27096 \begin_layout Standard
27100 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/anleitung.pdf}
27110 \begin_layout Standard
27117 of the LaTeX-package
27122 \begin_layout Bibliography
27123 \begin_inset LatexCommand bibitem
27132 \begin_layout Standard
27136 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf}
27146 \begin_layout Standard
27153 of the LaTeX-package
27158 \begin_inset LatexCommand index
27159 name "LaTeX-packages ! endfloat"
27166 \begin_layout Bibliography
27167 \begin_inset LatexCommand bibitem
27176 \begin_layout Standard
27180 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/floatflt/floatflt.pdf}
27190 \begin_layout Standard
27197 of the LaTeX-package
27202 \begin_inset LatexCommand index
27203 name "LaTeX-packages ! floatflt"
27210 \begin_layout Bibliography
27211 \begin_inset LatexCommand bibitem
27220 \begin_layout Standard
27224 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf}
27234 \begin_layout Standard
27241 of the LaTeX-package
27246 \begin_inset LatexCommand index
27247 name "LaTeX-packages ! footmisc"
27254 \begin_layout Bibliography
27255 \begin_inset LatexCommand bibitem
27264 \begin_layout Standard
27268 href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf}{
27277 \begin_layout Standard
27284 of the LaTeX-package
27289 \begin_inset LatexCommand index
27290 name "LaTeX-packages ! hyperref"
27297 \begin_layout Bibliography
27298 \begin_inset LatexCommand bibitem
27307 \begin_layout Standard
27311 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf}
27321 \begin_layout Standard
27328 of the LaTeX-package
27333 \begin_inset LatexCommand index
27334 name "LaTeX-packages ! hyperref"
27341 \begin_layout Bibliography
27342 \begin_inset LatexCommand bibitem
27351 \begin_layout Standard
27355 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.p
27365 \begin_layout Standard
27372 of the LaTeX-package
27377 \begin_inset LatexCommand index
27378 name "LaTeX-packages ! koma-script"
27385 \begin_layout Bibliography
27386 \begin_inset LatexCommand bibitem
27387 key "koma-script-de"
27395 \begin_layout Standard
27399 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.p
27409 \begin_layout Standard
27416 of the LaTeX-package
27421 \begin_inset LatexCommand index
27422 name "LaTeX-packages ! koma-script"
27429 \begin_layout Bibliography
27430 \begin_inset LatexCommand bibitem
27439 \begin_layout Standard
27443 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.
27453 \begin_layout Standard
27460 of the LaTeX-package
27465 \begin_inset LatexCommand index
27466 name "LaTeX-packages ! marginnote"
27473 \begin_layout Bibliography
27474 \begin_inset LatexCommand bibitem
27483 \begin_layout Standard
27487 href{http://tug.org/PSTricks/main.cgi/}{
27496 \begin_layout Standard
27503 of the LaTeX-package
27508 \begin_inset LatexCommand index
27509 name "LaTeX-packages ! PSTricks"
27516 \begin_layout Bibliography
27517 \begin_inset LatexCommand bibitem
27526 \begin_layout Standard
27530 href{ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf}{
27539 \begin_layout Standard
27546 of the LaTeX-package
27551 \begin_inset LatexCommand index
27552 name "LaTeX-packages ! sidecap"
27559 \begin_layout Bibliography
27560 \begin_inset LatexCommand bibitem
27569 \begin_layout Standard
27573 href{http://wiki.lyx.org/LyX/NewInLyX15}{
27582 \begin_layout Standard
27589 about new LyX-features planned for the release
27596 \begin_layout Standard
27597 \begin_inset LatexCommand printindex
27604 \begin_layout Standard
27605 \begin_inset FloatList figure
27612 \begin_layout Standard
27613 \begin_inset FloatList table